1 line
No EOL
7.7 KiB
Text
1 line
No EOL
7.7 KiB
Text
{"version":3,"file":"SettingsSidebar-DPXrvCeg.js","sources":["../../src/lib/components/atoms/SettingsSidebar.svelte"],"sourcesContent":["<!--\nSettingsSidebar atom.\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 { AppRail, AppRailAnchor, AppRailTile } from '@skeletonlabs/skeleton';\n\timport { createEventDispatcher } from 'svelte';\n\timport { _, locale, locales } from 'svelte-i18n';\n\timport { Bell24, Gear24, Key24, Paintbrush24, Person24 } from 'svelte-octicons';\n\n\tlet currentTile = 0;\n\tconst dispatcher = createEventDispatcher();\n\n\tfunction onTileChanged(ev) {\n\t\tdispatcher('switch-settings', ev.target.value);\n\t}\n</script>\n\n<AppRail aspectRatio=\"auto\" gap=\"gap-8\" height=\"h-auto\" width=\"w-[230px]\" spacing=\"my-2\">\n\t<svelte:fragment slot=\"lead\">\n\t\t<AppRailTile\n\t\t\tregionLabel=\"!text-3xl text-surface-500-400-token bg-surface-100-800-token float-start w-full text-start ps-8 pt-8 -my-2\"\n\t\t\t>{$_('settings.headline')}</AppRailTile\n\t\t>\n\t</svelte:fragment>\n\t<AppRailTile\n\t\tbind:group={currentTile}\n\t\tname=\"profile\"\n\t\tvalue=\"profile\"\n\t\ton:change={onTileChanged}\n\t\tregionLabel=\"float-start ps-2 py-1 font-normal text-surface-500-400-token !text-xl\"\n\t\tregionLead=\"float-start ps-8 text-surface-500-400-token\"\n\t\ttitle={$_('settings.profile.label')}\n\t>\n\t\t<svelte:fragment slot=\"lead\">\n\t\t\t<Person24 fill=\"currentColor\" class=\"inline\" />\n\t\t</svelte:fragment>\n\t\t<span>{$_('settings.profile.label')}</span>\n\t</AppRailTile>\n\t<AppRailTile\n\t\tbind:group={currentTile}\n\t\tname=\"account\"\n\t\tvalue=\"account\"\n\t\ton:change={onTileChanged}\n\t\tregionLabel=\"float-start ps-2 py-1 font-normal text-surface-500-400-token !text-xl\"\n\t\tregionLead=\"float-start ps-8 text-surface-500-400-token\"\n\t\ttitle={$_('settings.account.label')}\n\t>\n\t\t<svelte:fragment slot=\"lead\">\n\t\t\t<Gear24 fill=\"currentColor\" class=\"inline\" />\n\t\t</svelte:fragment>\n\t\t<span>{$_('settings.account.label')}</span>\n\t</AppRailTile>\n\t<AppRailTile\n\t\tbind:group={currentTile}\n\t\tname=\"ssh_gpg_keys\"\n\t\tvalue=\"ssh_gpg_keys\"\n\t\ton:change={onTileChanged}\n\t\tregionLabel=\"float-start ps-2 py-1 font-normal text-surface-500-400-token !text-xl\"\n\t\tregionLead=\"float-start ps-8 text-surface-500-400-token\"\n\t\ttitle={$_('settings.ssh_gpg_keys.label')}\n\t>\n\t\t<svelte:fragment slot=\"lead\">\n\t\t\t<Key24 fill=\"currentColor\" class=\"inline\" />\n\t\t</svelte:fragment>\n\t\t<span>{$_('settings.ssh_gpg_keys.label')}</span>\n\t</AppRailTile>\n\t<AppRailTile\n\t\tbind:group={currentTile}\n\t\tname=\"appearance\"\n\t\tvalue=\"appearance\"\n\t\ton:change={onTileChanged}\n\t\tregionLabel=\"float-start ps-2 py-1 font-normal text-surface-500-400-token !text-xl\"\n\t\tregionLead=\"float-start ps-8 text-surface-500-400-token\"\n\t\ttitle={$_('settings.appearance.label')}\n\t>\n\t\t<svelte:fragment slot=\"lead\">\n\t\t\t<Paintbrush24 fill=\"currentColor\" class=\"inline\" />\n\t\t</svelte:fragment>\n\t\t<span>{$_('settings.appearance.label')}</span>\n\t</AppRailTile>\n\t<AppRailTile\n\t\tbind:group={currentTile}\n\t\tname=\"notifications\"\n\t\tvalue=\"notifications\"\n\t\ton:change={onTileChanged}\n\t\tregionLabel=\"float-start ps-2 py-1 font-normal text-surface-500-400-token !text-xl\"\n\t\tregionLead=\"float-start ps-8 text-surface-500-400-token\"\n\t\ttitle={$_('settings.notifications.label')}\n\t>\n\t\t<svelte:fragment slot=\"lead\">\n\t\t\t<Bell24 fill=\"currentColor\" class=\"inline\" />\n\t\t</svelte:fragment>\n\t\t<span>{$_('settings.notifications.label')}</span>\n\t</AppRailTile>\n\t<svelte:fragment slot=\"trail\">\n\t\t<select bind:value={$locale} class=\"select\">\n\t\t\t{#each $locales as locale}\n\t\t\t\t<option value={locale}>{locale}</option>\n\t\t\t{/each}\n\t\t</select>\n\t\t<AppRailAnchor\n\t\t\thref=\"https://matrix.to/#/#general-forgefed:matrix.batsense.net\"\n\t\t\ttarget=\"_blank\"\n\t\t\trel=\"noreferrer\"\n\t\t>\n\t\t\tMatrix\n\t\t</AppRailAnchor>\n\t\t<AppRailAnchor href=\"https://forgefed.org\" target=\"_blank\" rel=\"noreferrer\">\n\t\t\tForgeFed\n\t\t</AppRailAnchor>\n\t\t<AppRailAnchor href=\"https://codeberg.org/anvil/anvil\" target=\"_blank\" rel=\"noreferrer\">\n\t\t\tCode\n\t\t</AppRailAnchor>\n\t</svelte:fragment>\n</AppRail>\n"],"names":["title","ctx","cov_gdxyhypa9","create_component","apprailtile0","t0","space","apprailtile1","t1","apprailtile2","t2","apprailtile3","t3","apprailtile4","nodes","claim_component","claim_space","target","anchor","mount_component","insert_hydration","current","dirty","apprailtile0_changes","b","s","t","claim_text"],"mappings":"mi6FAiBUA,SAAAA,GAAAA,EAAAA,CAAAA,EAAAA,EAAAA,EAAAA,EAAAA,IAAAA,IAAAA,EAAAA,EAAAA,EAAAA,EAAAA,EAAAA,EAAAA,EAAAA,EAAAA,EAAAA,EAAAA,EAAAA,EAAAA,EAAAA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