diff --git a/dashboard/src/lib/api.ts b/dashboard/src/lib/api.ts index eda739b..24046dd 100644 --- a/dashboard/src/lib/api.ts +++ b/dashboard/src/lib/api.ts @@ -274,9 +274,6 @@ export interface AdminDto { last_login_at: string | null; } -/** @deprecated use AdminDto. Kept until the /admins route is retired. */ -export type AdminUserRecord = AdminDto; - export interface CreateAdminInput { username: string; password: string; diff --git a/dashboard/src/routes/admins/+page.svelte b/dashboard/src/routes/admins/+page.svelte deleted file mode 100644 index 496b829..0000000 --- a/dashboard/src/routes/admins/+page.svelte +++ /dev/null @@ -1,687 +0,0 @@ - - -
-

Admin Users

- -
- -{#if banner} - -{/if} - -{#if loadError} -
- {loadError} - -
-{:else if admins.length === 0} -

No admin users yet. Add one to get started.

-{:else} -
-
-
Username
-
Status
-
Created
-
Last login
-
-
- {#each admins as row (row.id)} -
-
- {row.username} - {#if me && me.id === row.id} - (you) - {/if} -
-
- {#if row.is_active} - ● Active - {:else} - ○ Inactive - {/if} -
-
{shortDate(row.created_at)}
-
{relative(row.last_login_at)}
-
- - {#if actionsOpenFor === row.id} - - {/if} -
-
- {/each} -
-{/if} - - -{#if createOpen} - -{/if} - - -{#if passwordTarget} - -{/if} - - -{#if deleteTarget} - -{/if} - -