High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
chore: remove unused code (#32497)
Jason Rasmussen9213c8d6c39f
diff --git a/i18n/en.json b/i18n/en.jsonindex 6b28f373d7..c668736f98 100644--- a/i18n/en.json+++ b/i18n/en.json@@ -1239,7 +1239,6 @@"image_alt_text_date_place_3_people": "{isVideo, select, true {Video} other {Image}} taken in {city}, {country} with {person1}, {person2}, and {person3} on {date}","image_alt_text_date_place_4_or_more_people": "{isVideo, select, true {Video} other {Image}} taken in {city}, {country} with {person1}, {person2}, and {additionalCount, number} others on {date}","immich_logo": "Immich Logo",- "immich_web_interface": "Immich Web Interface","import_from_json": "Import from JSON","import_path": "Import path","in_albums": "In {count, plural, one {# album} other {# albums}}",@@ -2059,7 +2058,6 @@"shared_link_password_description": "Require a password to access this shared link","shared_links": "Shared links","shared_links_description": "Share photos and videos with a link",- "shared_photos_and_videos_count": "{assetCount, plural, other {# shared photos & videos.}}","shared_with": "Shared with","shared_with_count": "Shared ({count})","shared_with_me": "Shared with me",diff --git a/web/src/app.d.ts b/web/src/app.d.tsindex 644deae826..1a0c85be0e 100644--- a/web/src/app.d.ts+++ b/web/src/app.d.ts@@ -9,8 +9,6 @@ declare namespace App {interface PageData {meta: {title: string;- description?: string;- imageUrl?: string;};}diff --git a/web/src/lib/components/pages/SharedLinkPage.svelte b/web/src/lib/components/pages/SharedLinkPage.svelteindex 8cb4aadd7b..266f7d6a2f 100644--- a/web/src/lib/components/pages/SharedLinkPage.svelte+++ b/web/src/lib/components/pages/SharedLinkPage.svelte@@ -17,8 +17,6 @@data: {meta: {title: string;- description?: string;- imageUrl?: string;};sharedLink?: SharedLinkResponseDto;@@ -32,7 +30,7 @@const { data }: Props = $props();let { sharedLink, passwordRequired, key, slug, meta } = $state(data);- let { title, description } = $state(meta);+ let { title } = $state(meta);let isOwned = $derived(authManager.authenticated && authManager.user.id === sharedLink?.userId);let password = $state('');@@ -46,9 +44,6 @@setSharedLink(sharedLink);passwordRequired = false;title = (sharedLink.album ? sharedLink.album.albumName : $t('public_share')) + ' - Immich';- description =- sharedLink.description ||- $t('shared_photos_and_videos_count', { values: { assetCount: sharedLink.assets.length } });await tick();await navigate({ targetRoute: 'current', assetId: null, assetGridRouteSearchParams: assetViewerManager.gridScrollTarget },@@ -71,7 +66,6 @@<svelte:head><title>{title}</title>- <meta name="description" content={description} /></svelte:head>{#if passwordRequired}<maindiff --git a/web/src/lib/utils/shared-links.ts b/web/src/lib/utils/shared-links.tsindex be47df1dba..4c5c6a13af 100644--- a/web/src/lib/utils/shared-links.ts+++ b/web/src/lib/utils/shared-links.ts@@ -1,5 +1,5 @@import { getMySharedLink, isHttpError } from '@immich/sdk';-import { getAssetMediaUrl, getSharedLink as getCachedSharedLink, setSharedLink } from '$lib/utils';+import { getSharedLink as getCachedSharedLink, setSharedLink } from '$lib/utils';import { authenticate } from '$lib/utils/auth';import { getFormatter } from '$lib/utils/i18n';import { getAssetInfoFromParam } from '$lib/utils/navigation';@@ -39,9 +39,6 @@ export const loadSharedLink = async ({try {const [sharedLink, asset] = await Promise.all([sharedLinkPromise, getAssetInfoFromParam(params)]);setSharedLink(sharedLink);- const assetCount = sharedLink.assets.length;- const assetId = sharedLink.album?.albumThumbnailAssetId || sharedLink.assets[0]?.id;- const assetPath = assetId ? getAssetMediaUrl({ id: assetId }) : '/feature-panel.png';return {...common,@@ -49,8 +46,6 @@ export const loadSharedLink = async ({asset,meta: {title: sharedLink.album ? sharedLink.album.albumName : $t('public_share'),- description: sharedLink.description || $t('shared_photos_and_videos_count', { values: { assetCount } }),- imageUrl: assetPath,},};} catch (error) {diff --git a/web/src/routes/+layout.svelte b/web/src/routes/+layout.svelteindex b72f581b7a..fc72443677 100644--- a/web/src/routes/+layout.svelte+++ b/web/src/routes/+layout.svelte@@ -10,7 +10,6 @@import VersionAnnouncement from './VersionAnnouncement.svelte';import { authManager } from '$lib/managers/auth-manager.svelte';import { eventManager } from '$lib/managers/event-manager.svelte';- import { serverConfigManager } from '$lib/managers/server-config-manager.svelte';import ServerRestartingModal from '$lib/modals/ServerRestartingModal.svelte';import { queryClient } from '$lib/queries/client';import { Route } from '$lib/route';@@ -241,21 +240,6 @@<link rel="manifest" href="/manifest.json" crossorigin="use-credentials" /><meta name="theme-color" content="white" media="(prefers-color-scheme: light)" /><meta name="theme-color" content="black" media="(prefers-color-scheme: dark)" />-- {#if page.data.meta}- <meta name="description" content={page.data.meta.description} />-- <!-- Facebook Meta Tags -->- <meta property="og:type" content="website" />- <meta property="og:title" content={page.data.meta.title} />- <meta property="og:description" content={page.data.meta.description} />- {#if page.data.meta.imageUrl}- <meta- property="og:image"- content={new URL(page.data.meta.imageUrl, serverConfigManager.value.externalDomain || location.origin).href}- />- {/if}- {/if}</svelte:head><QueryClientProvider client={queryClient}>diff --git a/web/src/routes/+page.ts b/web/src/routes/+page.tsindex 74b559466a..9b171f6c46 100644--- a/web/src/routes/+page.ts+++ b/web/src/routes/+page.ts@@ -39,7 +39,6 @@ export const load = (async ({ fetch }) => {return {meta: {title: $t('welcome') + ' 🎉',- description: $t('immich_web_interface'),},};}) satisfies PageLoad;