Anvil/assets/SettingsKeys-Dny9-Qnw.js.map

1 line
5.8 KiB
Text
Raw Normal View History

2024-08-06 09:17:06 +02:00
{"version":3,"file":"SettingsKeys-Dny9-Qnw.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 import \"@fontsource/spline-sans-mono\";\n\timport { _ } from 'svelte-i18n';\n import { Key24 } from 'svelte-octicons';\n\n const gpg_keys = [{\n title: \"Work key\",\n fingerprint: \"CB9E C70F 2421 AF06 7D72 F980 8287 6A15 311B 1F84\"\n }]\n\n const ssh_keys = [{\n title: \"MyLaptop\",\n fingerprint: \"25:c7:06:3f:87:49:5d:95:96:3d:a8\"\n }, {\n title: \"Desktop\",\n fingerprint: \"87:49:5d:95:96:3d:a8:25:c7:06:3f\"\n }]\n</script>\n\n<div class=\"flex flex-col flex-1 gap-4 pe-8 pb-8 ps-8 pt-20 bg-surface-100\">\n\t<div class=\"flex text-surface-500 text-xl font-semibold\">{$_('settings.ssh_gpg_keys.headline')}</div>\n\t<div class=\"flex flex-col gap-6\">\n\t\t<div class=\"flex flex-col gap-1\">\n <div class=\"flex text-surface-500 font-semibold py-1\">{$_('settings.ssh_gpg_keys.ssh.headline')}</div>\n <div class=\"flex flex-col gap-2\"><!-- Nesting required to trigger last: class -->\n {#each ssh_keys as key}\n <div class=\"flex border-b border-surface-200 last:border-b-0 items-center justify-between gap-4 pb-2\">\n <Key24 fill=\"currentColor\" />\n <span class=\"text-surface-500 flex-1 shrink-0\">{key.title}</span>\n <code class=\"text-surface-500 shrink-0\">{key.fingerprint}</code>\n <button type=\"button\" class=\"btn font-semibold variant-filled-warning\">{$_('settings.ssh_gpg_keys.ssh.remove')}</button>\n </div>\n {/each}\n </div>\n\t\t\t<input type=\"text\" class=\"input bg-white placeholder:text-surface-300\" placeholder={$_('settings.ssh_gpg_keys.ssh.title.placeholder')}/>\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=\"placeholder:text-surface-300\"\n\t\t\t></textarea>\n <button type=\"button\" class=\"btn font-semibold text-white variant-filled-success self-end\">{$_('settings.ssh_gpg_keys.ssh.add')}</button>\n\t\t</div>\n\n\t\t<div class=\"flex flex-col gap-1\">\n <div class=\"flex text-surface-500 font-semibold py-1\">{$_('settings.ssh_gpg_keys.gpg.headline')}</div>\n <div class=\"flex flex-col gap-2\"><!-- Nesting required to trigger last: class -->\n {#each gpg_keys as key}\n <div class=\"flex border-b border-surface-200 last:border-b-0 items-center justify-between gap-4 pb-2\">\n <Key24 fill=\"currentColor\" />\n <span class=\"text-surface-500 flex-1 shrink-0\">{key.title}</span>\n <code class=\"text-surface-500 font-medium shrink-0 w-[245px]\">{key.fingerprint}</code>\n <button type=\"button\" class=\"btn font-semibold variant-filled-warning\">{$_('settings.ssh_gpg_keys.gpg.remove')}</button>\n </div>\n {/each}\n </div>\n\t\t\t<input type=\"text\" class=\"input bg-white placeholder:text-surface-300\" placeholder={$_('settings.ssh_gpg_keys.gpg.t