Anvil/assets/SettingsKeys-Fu4zdNnc.js.map
André Jaenisch 957cae7b79
Updates
2024-08-12 15:09:11 +02:00

1 line
No EOL
5.6 KiB
Text

{"version":3,"file":"SettingsKeys-Fu4zdNnc.js","sources":["../../src/lib/components/molecules/SettingsKeys.svelte"],"sourcesContent":["<!--\nSettingsKeys molecule.\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 '@fontsource/spline-sans-mono';\n\timport { _ } from 'svelte-i18n';\n\timport { Key24 } from 'svelte-octicons';\n\n\tconst gpg_keys = [\n\t\t{\n\t\t\ttitle: 'Work key',\n\t\t\tfingerprint: 'CB9E C70F 2421 AF06 7D72 F980 8287 6A15 311B 1F84'\n\t\t}\n\t];\n\n\tconst ssh_keys = [\n\t\t{\n\t\t\ttitle: 'MyLaptop',\n\t\t\tfingerprint: '25:c7:06:3f:87:49:5d:95:96:3d:a8'\n\t\t},\n\t\t{\n\t\t\ttitle: 'Desktop',\n\t\t\tfingerprint: '87:49:5d:95:96:3d:a8:25:c7:06:3f'\n\t\t}\n\t];\n</script>\n\n<div class=\"flex flex-col flex-1 gap-4 pe-8 pb-8 ps-8 pt-20 bg-surface-100-800-token\">\n\t<div class=\"flex text-surface-500-400-token text-xl font-semibold\">\n\t\t{$_('settings.ssh_gpg_keys.headline')}\n\t</div>\n\t<div class=\"flex flex-col gap-6\">\n\t\t<div class=\"flex flex-col gap-1\">\n\t\t\t<div class=\"flex text-surface-500-400-token font-semibold py-1\">\n\t\t\t\t{$_('settings.ssh_gpg_keys.ssh.headline')}\n\t\t\t</div>\n\t\t\t<div class=\"flex flex-col gap-2\">\n\t\t\t\t<!-- Nesting required to trigger last: class -->\n\t\t\t\t{#each ssh_keys as key}\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass=\"flex border-b border-surface-200 last:border-b-0 items-center justify-between gap-4 pb-2\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<Key24 fill=\"currentColor\" />\n\t\t\t\t\t\t<span class=\"text-surface-500-400-token flex-1 shrink-0\">{key.title}</span>\n\t\t\t\t\t\t<code class=\"text-surface-500-400-token shrink-0\">{key.fingerprint}</code>\n\t\t\t\t\t\t<button type=\"button\" class=\"btn font-semibold variant-filled-warning\"\n\t\t\t\t\t\t\t>{$_('settings.ssh_gpg_keys.ssh.remove')}</button\n\t\t\t\t\t\t>\n\t\t\t\t\t</div>\n\t\t\t\t{/each}\n\t\t\t</div>\n\t\t\t<input\n\t\t\t\ttype=\"text\"\n\t\t\t\tclass=\"input bg-white dark:bg-black placeholder:text-surface-300 dark:placeholder:text-surface-600\"\n\t\t\t\tplaceholder={$_('settings.ssh_gpg_keys.ssh.title.placeholder')}\n\t\t\t/>\n\t\t\t<textarea\n\t\t\t\tplaceholder={$_('settings.ssh_gpg_keys.ssh.key.placeholder')}\n\t\t\t\trows=\"4\"\n\t\t\t\tclass=\"bg-white dark:bg-black placeholder:text-surface-300 dark:placeholder:text-surface-600\"\n\t\t\t></textarea>\n\t\t\t<button\n\t\t\t\ttype=\"button\"\n\t\t\t\tclass=\"btn font-semibold text-white dark:text-black variant-filled-success self-end\"\n\t\t\t\t>{$_('settings.ssh_gpg_keys.ssh.add')}</button\n\t\t\t>\n\t\t</div>\n\n\t\t<div class=\"flex flex-col gap-1\">\n\t\t\t<div class=\"flex text-surface-500-400-token font-semibold py-1\">\n\t\t\t\t{$_('settings.ssh_gpg_keys.gpg.headline')}\n\t\t\t</div>\n\t\t\t<div class=\"flex flex-col gap-2\">\n\t\t\t\t<!-- Nesting required to trigger last: class -->\n\t\t\t\t{#each gpg_keys as key}\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass=\"flex border-b border-surface-200 last:border-b-0 items-center justify-between gap-4 pb-2\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<Key24 fill=\"currentColor\" />\n\t\t\t\t\t\t<span class=\"text-surface-500-400-token flex-1 shrink-0\">{key.title}</span>\n\t\t\t\t\t\t<code class=\"text-surface-500-400-token font-medium shrink-0 w-[245px]\"\n\t\t\t\t\t\t\t>{key.fingerprint}</code\n\t\t\t\t\t\t>\n\t\t\t\t\t\t<button type=\"button\" class=\"btn font-semibold variant-filled-warning\"\n\t\t\t\t\t\t\t>{$_('settings.ssh_gpg_keys.gpg.remove')}</button\n\t\t\t\t\t\t>\n\t\t\t\t\t</div>\n\t\t\t\t{/each}\n\t\t\t</div>\n\t\t\t<input\n\t\t\t\ttype=\"text\"\n\t\t\t\tclass=\"input bg-white dark:bg-black placeholder:text-surface-300 dark:placeholder:text-surface-600\"\n\t\t\t\tplaceholder={$_('settings.ssh_gpg_keys.gpg.title.placeholder')}\n\t\t\t/>\n\t\t\t<textarea\n\t\t\t\tplaceholder={$_('settings.ssh_gpg_keys.gpg.key.placeholder')}\n\t\t\t\trows=\"4\"\n\t\t\t\tclass=\"bg-white dark:bg-black placeholder:text-surface-300 dark:placeholder:text-surface-600\"\n\t\t\t></textarea>\n\t\t\t<button\n\t\t\t\ttype=\"button\"\n\t\t\t\tclass=\"btn font-semibold text-white dark:text-black variant-filled-success self-end\"\n\t\t\t\t>{$_('settings.ssh_gpg_keys.gpg.add')}</button\n\t\t\t>\n\t\t</div>\n\t</div>\n</div>\n"],"names":["t1_value","cov_2fjg5c25gk","s","ctx","title","append_hydration","div","span","button","div7","div6","fingerprint"],"mappings":"643DAqDyEA,GAAAC,EAAAC,EAAAA,EAAAC,CAAAA,IAAAA,EAAAC,CAAAA,EAAAA,i8CAATC,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,EAAAA,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,CAAAA,EAAAA,IAAAA,EAAAA,EAAAA,IAAAA,EAASC,EAAAC,CAAA,EAAAN,EAAAC,EAAAA,yGAChBI,EAAAE,CAAA,EAAAP,EAAA,EAAAC,81QAEhDG,GAAAA,EAAAA,EAAAA,EAAAA,GAAAA,IAAAA,GAAAA,EAAAA,EAAAA,OAAAA,GAAAA,EAAAA,EAAAA,EAAAA,EAAAA,GAAAA,IAAAA,EAAAA,CAAAA,GAAAA,EAAAA,EAAAA,EAAAA,CAAAA,EAAAA,CAAAA,IAAAA,EAAAA,EAAAA,EAAAA,GAAAA,IAAAA,EAAAA,CAAAA,EAAAA,EAAAA,EAAAA,IAAAA,GAAAA,EAAAA,EAAAA,EAAAA,CAAAA,EAAAA,CAAAA,IAAAA,EAAAA,EAAAA,EAAAA,GAAAA,IAAAA,EAAAA,EAAAA,CAAAA,EAAAA,EAAAA,EAAAA,EAAAA,GAAAA,IAAAA,gJAECI,EAAAC,CAAA,EAAAT,IAAAC,EAAA,GAAA,y0HA5CFE,MAA8B,UAC5BO,YAAS"}