feat: init

This commit is contained in:
2025-09-04 11:29:00 +08:00
parent 2c9059ce2f
commit ddbee614e8
89 changed files with 3476 additions and 349 deletions

View File

@@ -0,0 +1,19 @@
import React from "react";
import Home from "@/view/home";
import TranslateDetail from "@/view/home/detail";
import Setting from "@/view/setting";
import Page404 from "@/view/error/page404";
export interface AppRoute {
path: string;
element: React.ReactNode;
auth?: boolean;
children?: AppRoute[];
}
export const routes: AppRoute[] = [
{ path: "/", element: <Home />, auth: false },
{ path: "/set", element: <Setting />, auth: false },
{ path: "/detail", element: <TranslateDetail />, auth: false },
{ path: "/mood", element: <Setting />, auth: false },
{ path: "*", element: <Page404 />, auth: false },
];