Redesign the admin UI

Replaces the single-page dashboard with a structured app shell:
sidebar on desktop, bottom tab bar on mobile (PWA), and separate
screens for overview, short links, link pages, API tokens and
administration.

- detail view with tabs: content, appearance, analytics, QR code,
  settings
- small component kit (buttons, form controls, cards, dialogs,
  toasts, tabs) built on semantic color tokens with light and dark
  mode following the system
- native <dialog> modals for creating pages, editing blocks and
  confirmations instead of window.confirm
- theme presets and a live preview of unsaved appearance changes
- removed the v1 screenshots for now

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-14 14:21:07 +02:00
co-authored by Claude Opus 5.5
parent b217214512
commit 3929ed7663
36 changed files with 2477 additions and 876 deletions
+4
View File
@@ -0,0 +1,4 @@
// Joins class names, skipping falsy values.
export function cx(...classes: (string | false | null | undefined)[]): string {
return classes.filter(Boolean).join(" ");
}
+8
View File
@@ -0,0 +1,8 @@
// Rough plain-text version of Markdown for compact previews in the editor.
export function stripMarkdown(markdown: string): string {
return markdown
.replace(/\[([^\]]*)\]\([^)]*\)/g, "$1")
.replace(/[*_`#>~]/g, "")
.replace(/\s+/g, " ")
.trim();
}