feat(admin-web): implement basic layout and navigation feat(admin-web): implement dashboard page with key metrics feat(admin-web): implement user management page feat(admin-web): implement analytics page with user stats feat(admin-web): implement logs explorer page style(admin-web): add tailwind css and shadcn/ui components build(admin-web): configure eslint and prettier for code quality This commit introduces the admin-web application, a React-based administration console built with Vite. - The application provides a central interface for managing users, monitoring platform health, and troubleshooting issues. - It includes a basic layout with navigation, a dashboard displaying key metrics, a user management page, an analytics page with user statistics, and a logs explorer page. - Tailwind CSS and shadcn/ui components are used for styling. - ESLint and Prettier are configured to ensure code quality.
24 lines
740 B
JavaScript
24 lines
740 B
JavaScript
import React from "react";
|
|
import Layout from "./pages/Layout";
|
|
import Dashboard from "./pages/Dashboard";
|
|
import UserManagement from "./pages/UserManagement";
|
|
import Analytics from "./pages/Analytics";
|
|
import Logs from "./pages/Logs";
|
|
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
|
|
|
|
function App() {
|
|
return (
|
|
<Router>
|
|
<Layout>
|
|
<Routes>
|
|
<Route path="/admin-web/" element={<Dashboard />} />
|
|
<Route path="/admin-web/user-management" element={<UserManagement />} />
|
|
<Route path="/admin-web/analytics" element={<Analytics />} />
|
|
<Route path="/admin-web/logs" element={<Logs />} />
|
|
</Routes>
|
|
</Layout>
|
|
</Router>
|
|
);
|
|
}
|
|
|
|
export default App; |