feat(web): user detail page (#18230)

feat: user detail page
This commit is contained in:
Jason Rasmussen
2025-05-12 16:50:26 -04:00
committed by GitHub
parent eb8dfa283e
commit 3066c8198c
20 changed files with 640 additions and 160 deletions
+18
View File
@@ -0,0 +1,18 @@
import { authenticate, requestServerInfo } from '$lib/utils/auth';
import { getFormatter } from '$lib/utils/i18n';
import { searchUsersAdmin } from '@immich/sdk';
import type { PageLoad } from './$types';
export const load = (async () => {
await authenticate({ admin: true });
await requestServerInfo();
const allUsers = await searchUsersAdmin({ withDeleted: true });
const $t = await getFormatter();
return {
allUsers,
meta: {
title: $t('admin.user_management'),
},
};
}) satisfies PageLoad;