feat(web): meta tags for share links (#1290)

* feat(web): meta tags for share links

* refactor: svelte head tags

* chore: clean up

* chore: linting
This commit is contained in:
Jason Rasmussen
2023-01-10 22:36:50 -05:00
committed by GitHub
parent a3688fe642
commit fa31a6e441
34 changed files with 120 additions and 84 deletions

View File

@@ -26,10 +26,6 @@
};
</script>
<svelte:head>
<title>Administration - Immich</title>
</svelte:head>
<NavigationBar user={$page.data.user} />
<main>

View File

@@ -9,4 +9,10 @@ export const load: PageServerLoad = async ({ parent }) => {
} else if (!user.isAdmin) {
throw redirect(302, '/photos');
}
return {
meta: {
title: 'Job Status'
}
};
};

View File

@@ -2,10 +2,6 @@
import JobsPanel from '$lib/components/admin-page/jobs/jobs-panel.svelte';
</script>
<svelte:head>
<title>Jobs Status - Immich</title>
</svelte:head>
<section>
<JobsPanel />
</section>

View File

@@ -13,5 +13,10 @@ export const load: PageServerLoad = async ({ parent }) => {
const { data: allUsers } = await serverApi.userApi.getAllUsers(false);
return { allUsers };
return {
allUsers,
meta: {
title: 'Server Status'
}
};
};

View File

@@ -3,10 +3,6 @@
import { page } from '$app/stores';
</script>
<svelte:head>
<title>Server Status - Immich</title>
</svelte:head>
{#if $page.data.allUsers}
<ServerStatsPanel allUsers={$page.data.allUsers} />
{/if}

View File

@@ -10,5 +10,10 @@ export const load: PageServerLoad = async ({ parent }) => {
throw redirect(302, '/photos');
}
return { user };
return {
user,
meta: {
title: 'System Settings'
}
};
};

View File

@@ -17,10 +17,6 @@
};
</script>
<svelte:head>
<title>System Settings - Immich</title>
</svelte:head>
<section class="">
{#await getConfig()}
<LoadingSpinner />

View File

@@ -13,5 +13,11 @@ export const load: PageServerLoad = async ({ parent }) => {
const { data: allUsers } = await serverApi.userApi.getAllUsers(false);
return { user, allUsers };
return {
user,
allUsers,
meta: {
title: 'User Management'
}
};
};

View File

@@ -101,10 +101,6 @@
};
</script>
<svelte:head>
<title>User Management - Immich</title>
</svelte:head>
<section>
{#if shouldShowCreateUserForm}
<FullScreenModal on:clickOutside={() => (shouldShowCreateUserForm = false)}>