From b3b2397bfac1360bd096803ce99f4e7b09bc29f4 Mon Sep 17 00:00:00 2001 From: James Xylight Date: Sun, 2 Feb 2025 17:44:59 -0800 Subject: [PATCH] cleanup: remove pins --- .../lemmy/comment/CommentActions.svelte | 4 -- src/lib/components/ui/sidebar/Sidebar.svelte | 22 ----------- src/lib/settings.svelte.ts | 2 - src/routes/settings/+page.svelte | 39 ------------------- 4 files changed, 67 deletions(-) diff --git a/src/lib/components/lemmy/comment/CommentActions.svelte b/src/lib/components/lemmy/comment/CommentActions.svelte index 1b53dbdd..0f34a791 100644 --- a/src/lib/components/lemmy/comment/CommentActions.svelte +++ b/src/lib/components/lemmy/comment/CommentActions.svelte @@ -46,10 +46,6 @@ let translating = $state(false) -{#if translating} - -{/if} -
- {#if settings.dock.pins?.length ?? 0 > 0} -
- {#each settings.dock.pins as pin} - goto(pin.url)} - alignment="center" - selected={`${$page.url.pathname}${$page.url.search}` == pin.url} - oncontextmenu={(e) => { - e.preventDefault() - settings.dock.pins = settings.dock.pins.toSpliced( - settings.dock.pins.findLastIndex((p) => pin.url == p.url), - 1, - ) - return false - }} - size="square-md" - > - {/each} -
-
- {/if} {#if $profile?.jwt} {#snippet label()} diff --git a/src/lib/settings.svelte.ts b/src/lib/settings.svelte.ts index f3cb7f0d..a67bf8d7 100644 --- a/src/lib/settings.svelte.ts +++ b/src/lib/settings.svelte.ts @@ -86,7 +86,6 @@ interface Settings { dock: { noGap: boolean | null top: boolean | null - pins: Link[] paletteHotkey: string } posts: { @@ -167,7 +166,6 @@ export const defaultSettings: Settings = { dock: { noGap: toBool(env.PUBLIC_DOCK_PANEL) ?? null, top: toBool(env.PUBLIC_DOCK_TOP) ?? null, - pins: [], paletteHotkey: '/', }, posts: { diff --git a/src/routes/settings/+page.svelte b/src/routes/settings/+page.svelte index 8b823c90..f01e2ef4 100644 --- a/src/routes/settings/+page.svelte +++ b/src/routes/settings/+page.svelte @@ -473,45 +473,6 @@ bind:selected={settings.dock.noGap} /> - - {#snippet title()} - {$t('settings.navigation.pins.title')} - {/snippet} - {#snippet description()} - - {$t('settings.navigation.pins.description')} - - {/snippet} -
- {#each getDefaultLinks() as pin} - - {#snippet target()} - - {/snippet} - {#snippet popover()} - - {pin.label} - - {pin.url} - - - {/snippet} - - {/each} -
-