diff --git a/frontend/src/routes/admin/+layout.svelte b/frontend/src/routes/admin/+layout.svelte new file mode 100644 index 0000000..740acf0 --- /dev/null +++ b/frontend/src/routes/admin/+layout.svelte @@ -0,0 +1,115 @@ + + +
{error}
+ {:else} +| Time | +User | +Action | +Object | +ID | +
|---|---|---|---|---|
| {formatTs(e.performed_at)} | +{e.user_name ?? '—'} | ++ + {actionLabel(e.action)} + + | +{e.object_type ?? '—'} | +{shortId(e.object_id)} | +
| + + | +||||
| No entries match the current filters. | +||||
{createError}
{/if} +{error}
+ {:else if loading} +No users found.
+ {:else} +| ID | +Name | +Role | +Status | ++ |
|---|---|---|---|---|
| {u.id} | ++ + | ++ + {u.is_admin ? 'Admin' : u.can_create ? 'Creator' : 'Viewer'} + + | ++ {#if u.is_blocked} + Blocked + {:else} + Active + {/if} + | ++ + + | +
{error}
+ {:else if loading} +{saveError}
{/if} + {#if saveSuccess}Saved.
{/if} + +Full access to all data and admin panel.
+Can upload files and create tags, pools, categories.
+Blocked users cannot log in.
+