mirror of
https://github.com/juherr/kill-the-news.git
synced 2026-06-20 22:03:48 +00:00
refactor(admin): migrate admin.ts to admin.tsx with JSX login and dashboard
Convert login page and dashboard GET routes from hono/html tagged template literals to typed JSX using the <Layout> component. Extracts reusable CopyIcon, CheckIcon, and CopyFieldInline components. Dashboard inline script (~650 lines) preserved exactly via dangerouslySetInnerHTML constant. All auth logic, CSRF middleware, and API routes are unchanged. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in: