Initial commit: snakkimo CMT

React + Vite + Tailwind dashboard with:
- Login (JWT via snakkimo auth)
- Dashboard with Datenbankverwaltung + Contentverwaltung tiles
- Table overview with record counts (total, published, blocked)
- Table record viewer with text/status filters and linked field navigation

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-21 21:28:41 +02:00
parent 1f923947bd
commit 74082cd333
26 changed files with 3791 additions and 2 deletions

26
src/App.jsx Normal file
View File

@@ -0,0 +1,26 @@
import { BrowserRouter, Routes, Route, Navigate } from 'react-router-dom';
import { getUser } from './lib/api';
import Login from './pages/Login';
import Dashboard from './pages/Dashboard';
import DatabaseAdmin from './pages/DatabaseAdmin';
import TableView from './pages/TableView';
function RequireAuth({ children }) {
const user = getUser();
if (!user) return <Navigate to="/login" replace />;
return children;
}
export default function App() {
return (
<BrowserRouter>
<Routes>
<Route path="/login" element={<Login />} />
<Route path="/" element={<RequireAuth><Dashboard /></RequireAuth>} />
<Route path="/db" element={<RequireAuth><DatabaseAdmin /></RequireAuth>} />
<Route path="/db/:tableKey" element={<RequireAuth><TableView /></RequireAuth>} />
<Route path="*" element={<Navigate to="/" replace />} />
</Routes>
</BrowserRouter>
);
}