feat(quick-2): initialize v2 project from sample_interface
- Copy React app structure from sample_interface/src/ - Copy package.json, vite.config.ts, postcss.config.mjs - Copy guidelines/ design system
This commit is contained in:
44
v2/src/app/routes.ts
Normal file
44
v2/src/app/routes.ts
Normal file
@@ -0,0 +1,44 @@
|
||||
import { createBrowserRouter } from "react-router";
|
||||
import { DashboardLayout } from "./components/DashboardLayout";
|
||||
import { RainfallView } from "./components/views/RainfallView";
|
||||
import { GraphView } from "./components/views/GraphView";
|
||||
import { StationInfoView } from "./components/views/StationInfoView";
|
||||
import { DateTimeSettingView } from "./components/views/DateTimeSettingView";
|
||||
import { MobileSettingView } from "./components/views/MobileSettingView";
|
||||
import { ADCSettingView } from "./components/views/ADCSettingView";
|
||||
import { RainfallSettingView } from "./components/views/RainfallSettingView";
|
||||
import { EVAPSettingView } from "./components/views/EVAPSettingView";
|
||||
import { GPRSSettingView } from "./components/views/GPRSSettingView";
|
||||
import { LevelSettingView } from "./components/views/LevelSettingView";
|
||||
import { SirenSettingView } from "./components/views/SirenSettingView";
|
||||
import { NetworkSetupView } from "./components/views/NetworkSetupView";
|
||||
import { CalibrationView } from "./components/views/CalibrationView";
|
||||
import { FlashMemoryView } from "./components/views/FlashMemoryView";
|
||||
import { SettingView } from "./components/views/SettingView";
|
||||
import { LoginView } from "./components/views/LoginView";
|
||||
|
||||
export const router = createBrowserRouter([
|
||||
{
|
||||
path: "/",
|
||||
Component: DashboardLayout,
|
||||
children: [
|
||||
{ index: true, Component: RainfallView },
|
||||
{ path: "rainfall", Component: RainfallView },
|
||||
{ path: "graph", Component: GraphView },
|
||||
{ path: "utility/station-info", Component: StationInfoView },
|
||||
{ path: "utility/datetime", Component: DateTimeSettingView },
|
||||
{ path: "utility/mobile", Component: MobileSettingView },
|
||||
{ path: "utility/adc", Component: ADCSettingView },
|
||||
{ path: "utility/rainfall", Component: RainfallSettingView },
|
||||
{ path: "utility/evap", Component: EVAPSettingView },
|
||||
{ path: "utility/gprs", Component: GPRSSettingView },
|
||||
{ path: "utility/level", Component: LevelSettingView },
|
||||
{ path: "utility/siren", Component: SirenSettingView },
|
||||
{ path: "utility/network", Component: NetworkSetupView },
|
||||
{ path: "calibration", Component: CalibrationView },
|
||||
{ path: "flash-memory", Component: FlashMemoryView },
|
||||
{ path: "setting", Component: SettingView },
|
||||
{ path: "login", Component: LoginView },
|
||||
],
|
||||
},
|
||||
]);
|
||||
Reference in New Issue
Block a user