Anvil/assets/ImportProject-B7RYmi78.js.map

1 line
7.4 KiB
Text
Raw Normal View History

2024-08-12 15:09:11 +02:00
{"version":3,"file":"ImportProject-B7RYmi78.js","sources":["../../src/lib/components/templates/ImportProject.svelte"],"sourcesContent":["<!--\nImportProject template.\nCopyright (C) 2024 André Jaenisch\nSPDX-FileCopyrightText: 2024 André Jaenisch\nSPDX-License-Identifier: AGPL-3.0-or-later\n\nThis program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.\n\nYou should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.\n-->\n\n<script>\n\timport { AlertFill16, Info16, Repo24, Upload16 } from 'svelte-octicons';\n\timport { _ } from 'svelte-i18n';\n\n\t/**\n\t * Required context for populating the template.\n\t */\n\texport let data = {};\n\n\t/**\n\t * Translation keys.\n\t */\n\tconst i18n = {\n\t\tform: {\n\t\t\tavatar: 'page.import_project.form.avatar',\n\t\t\tcomponents: 'page.import_project.form.components',\n\t\t\tfields: {\n\t\t\t\tavatar: {\n\t\t\t\t\tlabel: 'page.import_project.form.fields.avatar.label'\n\t\t\t\t},\n\t\t\t\tdescription: {\n\t\t\t\t\tlabel: 'page.import_project.form.fields.description.label',\n\t\t\t\t\tplaceholder: 'page.import_project.form.fields.description.placeholder'\n\t\t\t\t},\n\t\t\t\tissues: {\n\t\t\t\t\tlabel: 'page.import_project.form.fields.issues.label'\n\t\t\t\t},\n\t\t\t\tname: {\n\t\t\t\t\terror: 'page.import_project.form.fields.name.error',\n\t\t\t\t\tlabel: 'page.import_project.form.fields.name.label',\n\t\t\t\t\tplaceholder: 'page.import_project.form.fields.name.placeholder'\n\t\t\t\t},\n\t\t\t\tpr: {\n\t\t\t\t\tlabel: 'page.import_project.form.fields.pr.label'\n\t\t\t\t},\n\t\t\t\trepository: {\n\t\t\t\t\thint: 'page.import_project.form.fields.repository.hint',\n\t\t\t\t\tlabel: 'page.import_project.form.fields.repository.label',\n\t\t\t\t\tplaceholder: 'page.import_project.form.fields.repository.placeholder'\n\t\t\t\t}\n\t\t\t},\n\t\t\tsubmit: 'page.import_project.form.submit'\n\t\t},\n\t\theading: 'page.import_project.heading',\n\t\tintro: 'page.import_project.intro'\n\t};\n</script>\n\n<section class=\"w-full\">\n\t<form\n\t\tclass=\"w-96 flex flex-col gap-6 mx-auto px-8 py-8 bg-surface-100-800-token border border-surface-300-600-token\"\n\t\tname=\"import-project\"\n\t>\n\t\t<h2 class=\"h2 text-surface-500-400-token\">{$_(i18n.heading)}</h2>\n\t\t<p class=\"text-surface-500-400-token\">{$_(i18n.intro)}</p>\n\t\t<div class=\"flex flex-col gap-1\">\n\t\t\t<h3 class=\"text-surface-500-400-token\">\n\t\t\t\t<label class=\"label\" for=\"project-name\">\n\t\t\t\t\t{$_(i18n.form.fields.name.label)}\n\t\t\t\t\t<span class=\"required\">*</span>\n\t\t\t\t</label>\n\t\t\t</h3>\n\t\t\t<input\n\t\t\t\tid=\"project-name\"\n\t\t\t\tname=\"project-name\"\n\t\t\t\tclass=\"input input-error dark:text-warning-400 dark:bg-warning-900 dark:border-warning-400\"\n\t\t\t\ttype=\"text\"\n\t\t\t\tplaceholder={$_(i18n.form.fields.name.placeholder)}\n\t\t\t/>\n\t\t\t<div class=\"flex gap-2 items-center text-error-500 dark:text-error:400\">\n\t\t\t\t<AlertFill16 fill=\"currentColor\" />\n\t\t\t\t{$_(i18n.form.fields.name.error)}\n\t\t\t</div>\n\t\t\t<div class=\"text-surface-400-500-token\">\n\t\t\t\tdomain.example/projects/<span class=\"text-surface-500-400-token\">NameUpdateRealtime</span>\n\t\t\t</div>\n\t\t</div>\n\n\t\t<div>\n\t\t\t<h3 class=\"text-surface-500-400-token\">\n\t\t\t\t<label class=\"label\" for=\"project-description\">\n\t\t\t\t\t{$_(i18n.form.fields.description.label)}\n\t\t\t\t</label>\n\t\t\t</h3>\n\t\t\t<textarea\n\t\t\t\tid=\"project-description\"\n\t\t\t\tname=\"project-description\"\n\t\t\t\tclass=\"textarea\"\n\t\t\t\tplaceholder={$_(i18n.form.fields.description.placeholder