diff --git a/bun.lockb b/bun.lockb index 266733a0..81954c4a 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 99d009e6..e53ed1e5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { "name": "photon-lemmy", "version": "2.0.0", + "license": "AGPL-3.0-only", "devDependencies": { "@dicebear/core": "^8.0.1", "@dicebear/initials": "^8.0.1", @@ -16,6 +17,7 @@ "@tailwindcss/postcss": "^4.1.8", "@types/nprogress": "^0.2.0", "@types/ua-parser-js": "^0.7.39", + "@xylightdev/svelte-hero-icons": "^2.2.4", "eslint": "^9.28.0", "eslint-plugin-svelte": "^3.11.0", "jsdom": "^22.1.0", @@ -32,7 +34,6 @@ "svelte-check": "^4.0.0", "svelte-floating-ui": "^1.5.9", "svelte-focus-trap": "^1.2.0", - "svelte-hero-icons": "^5.2.0", "svelte-infinite-scroll": "^2.0.1", "svelte-markdown": "^0.4.1", "sveltekit-i18n": "^2.4.2", diff --git a/src/lib/components/lemmy/post/actions/PostActions.svelte b/src/lib/components/lemmy/post/actions/PostActions.svelte index fc73a996..f3601a46 100644 --- a/src/lib/components/lemmy/post/actions/PostActions.svelte +++ b/src/lib/components/lemmy/post/actions/PostActions.svelte @@ -180,7 +180,7 @@ animations={{ scale: true, large: true }} > {#snippet prefix()} - + {/snippet} {/snippet} diff --git a/src/lib/components/lemmy/post/actions/PostActionsMenu.svelte b/src/lib/components/lemmy/post/actions/PostActionsMenu.svelte index d4cc20ac..c49a07ea 100644 --- a/src/lib/components/lemmy/post/actions/PostActionsMenu.svelte +++ b/src/lib/components/lemmy/post/actions/PostActionsMenu.svelte @@ -194,7 +194,7 @@ report(post)} color="danger-subtle"> {#snippet prefix()} - + {/snippet} {$t('moderation.report')} diff --git a/src/lib/components/ui/sidebar/SidebarButton.svelte b/src/lib/components/ui/sidebar/SidebarButton.svelte index 4f87e07c..541dfe60 100644 --- a/src/lib/components/ui/sidebar/SidebarButton.svelte +++ b/src/lib/components/ui/sidebar/SidebarButton.svelte @@ -7,7 +7,6 @@ interface Props extends ButtonProps { href?: string | undefined icon?: IconSource | undefined - selected?: boolean class?: string customIcon?: import('svelte').Snippet<[{ selected: boolean }]> children?: import('svelte').Snippet @@ -17,7 +16,6 @@ let { href = undefined, icon = undefined, - selected = $bindable(false), class: clazz = '', customIcon, children, @@ -25,11 +23,7 @@ ...rest }: Props = $props() - $effect(() => { - if (href != undefined) { - selected = page.url.pathname == href - } - }) + let selected = $derived(page.url.pathname == href) diff --git a/svelte.config.js b/svelte.config.js index fe92fd3d..cd88830c 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -43,6 +43,7 @@ const config = { }, alias: { 'mono-svelte': 'src/lib/mono', + 'svelte-hero-icons': 'node_modules/@xylightdev/svelte-hero-icons', }, }, }