- Install Tailwind CSS v4 via @tailwindcss/vite; configure vite.config.ts - Rewrite app.css: Tailwind base, Exo 2 font, brand tokens (orange #fd6216, navy #050026), scrollbar utility; fix @import order - Rewrite AdminShell.tsx: fixed header, fixed inset body grid (sidebar + main), session check, sub-tab system, logout, admin avatar/name/role - Rewrite AdminSidebar.tsx: collapsible w-64/w-20, orange active rail + badge/dot, CSS filter for SVG icon tinting, min-h-0 flex fix - Replace 84 route stub CSS classes (page-title, card, btn, table-wrap, etc.) with Tailwind equivalents via safe class-attr-only regex script - Rewrite admin dashboard: Lucide icons in colored chip backgrounds, 4-col KPI grid, Control Plane 6-module grid, hover lift animations - Disable SSR (ssr: false) to fix Vinxi dev manifest error; clear stale .vinxi cache - Add lucide-solid icon library - Add scripts/cleanup-css.mjs for class migration Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
16 lines
561 B
TypeScript
16 lines
561 B
TypeScript
import { onMount } from 'solid-js';
|
|
import { useNavigate, useParams } from '@solidjs/router';
|
|
import AdminShell from '~/components/AdminShell';
|
|
|
|
export default function WorkspaceMenuAliasPage() {
|
|
const navigate = useNavigate();
|
|
const params = useParams();
|
|
onMount(() => navigate('/admin', { replace: true }));
|
|
return (
|
|
<AdminShell>
|
|
<div class="rounded-xl border border-gray-200 bg-white shadow-sm">
|
|
<p class="notice">Redirecting workspace menu <strong>{params.menuId}</strong> to dashboard...</p>
|
|
</div>
|
|
</AdminShell>
|
|
);
|
|
}
|