1 line
No EOL
7.4 KiB
Text
1 line
No EOL
7.4 KiB
Text
{"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)}\n\t\t\t/>\n\t\t</div>\n\n\t\t<div>\n\t\t\t<h3 class=\"text-surface-500-400-token\">{$_(i18n.form.avatar)}</h3>\n\t\t\t<div class=\"flex\">\n\t\t\t\t<span class=\"bg-surface-300-600-token flex justify-center items-center h-12 w-12\">\n\t\t\t\t\t<Repo24 class=\"h-6 w-6\" />\n\t\t\t\t</span>\n\t\t\t\t<label\n\t\t\t\t\tfor=\"project-avatar\"\n\t\t\t\t\tclass=\"h-12 flex flex-1 gap-2 items-center justify-center px-4 text-surface-400-500-token\"\n\t\t\t\t>\n\t\t\t\t\t<Upload16 fill=\"currentColor\" />\n\t\t\t\t\t{$_(i18n.form.fields.avatar.label)}\n\t\t\t\t</label>\n\t\t\t\t<input\n\t\t\t\t\tid=\"project-avatar\"\n\t\t\t\t\tname=\"project-avatar\"\n\t\t\t\t\tclass=\"opacity-0 w-1\"\n\t\t\t\t\ttype=\"file\"\n\t\t\t\t\taccept=\"image/*\"\n\t\t\t\t/>\n\t\t\t</div>\n\t\t</div>\n\n\t\t<div class=\"flex flex-col gap-2\">\n\t\t\t<h3 class=\"text-surface-500-400-token\">\n\t\t\t\t{$_(i18n.form.components)}\n\t\t\t</h3>\n\t\t\t<div>\n\t\t\t\t<input\n\t\t\t\t\tid=\"project-repository\"\n\t\t\t\t\tname=\"project-repository\"\n\t\t\t\t\tclass=\"input h-6 w-6\"\n\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t/>\n\t\t\t\t<label for=\"project-repository\" class=\"label inline text-surface-500-400-token\">\n\t\t\t\t\t{$_(i18n.form.fields.repository.label)}\n\t\t\t\t</label>\n\t\t\t\t<input\n\t\t\t\t\ttype=\"url\"\n\t\t\t\t\tclass=\"input ms-8 w-auto\"\n\t\t\t\t\tplaceholder={$_(i18n.form.fields.repository.placeholder)}\n\t\t\t\t/>\n\t\t\t\t<div class=\"flex gap-1 items-center ms-8 text-warning-700\">\n\t\t\t\t\t<Info16 fill=\"currentColor\" />\n\t\t\t\t\t{$_(i18n.form.fields.repository.hint)}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div>\n\t\t\t\t<input id=\"project-issues\" name=\"project-issues\" class=\"input h-6 w-6\" type=\"checkbox\" />\n\t\t\t\t<label for=\"project-issues\" class=\"label inline text-surface-500-400-token\">\n\t\t\t\t\t{$_(i18n.form.fields.issues.label)}\n\t\t\t\t</label>\n\t\t\t</div>\n\t\t\t<div>\n\t\t\t\t<input id=\"project-pr\" name=\"project-pr\" class=\"input h-6 w-6\" type=\"checkbox\" />\n\t\t\t\t<label for=\"project-pr\" class=\"label inline text-surface-500-400-token\">\n\t\t\t\t\t{$_(i18n.form.fields.pr.label)}\n\t\t\t\t</label>\n\t\t\t</div>\n\t\t</div>\n\t\t<button type=\"submit\" class=\"button bg-success-600 text-white h-12\">\n\t\t\t{$_(i18n.form.submit)}\n\t\t</button>\n\t</form>\n</section>\n"],"names":["ctx","heading","name","error","form","h2","cov_14y343udw2","s","div2","h30","append_hydration","div5","div4","b","set_data","t0","t0_value","t10","t10_value","components","fields","placeholder"],"mappings":"2g6DA8FcA,EAAA,CAAA,EAAAA,EAAK,CAAA,EAAMC,OAAY,EAAA,oMAsB7BC,KAAAC,KAAA,q+TAtB6BC,EAAAC,CAAA,EAAAC,EAAAC,EAAAA,uIAYMC,EAAAC,EAAA,EAAAH,EAAAC,EAAAA,6RAwBtCG,EAAAA,EAAAA,EAAAA,EAAAA,EAAAA,EAAAA,GAAAA,IAAAA,uOAoCDC,EAAAC,CAAA,EAAAN,EAAAC,EAAAA,w1BAxEUP,GAAAA,EAAAA,EAAAA,EAAAA,EAAAA,EAAAA,GAAAA,IAAAA,EAAAA,EAAAA,EAAAA,EAAAA,EAAAA,CAAAA,CAA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