Files
UHD_Media_Tool/apps/web/app/routes.ts
T
rootandClaude Opus 5.5 738d4ce752 feat(web): IA-3 navigation, legacy redirects and top-bar inbox (FE-1)
Sidebar becomes 5 groups (overview / resources / subscriptions / organize /
system). Pending items move to a top-bar inbox with badge and grouped
dropdown. Engine panel, schedules and identity pages redirect to the task
page, its plan tab and media overview views; the download plan becomes a
second tab of the download panel. nav.test and smoke cover the new routes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 16:10:42 +08:00

43 lines
2.1 KiB
TypeScript

import { index, layout, prefix, type RouteConfig, route } from "@react-router/dev/routes";
// 显式路由表(W3-1 维护,其他工作区不改这里)。
// 控制台全部挂在 /console 下;/ 重定向到 /console;/login 为登录页(不经过控制台外壳)。
// 新增工作区:在这里加一行 + components/console/nav.ts 加导航项。
export default [
index("routes/index-redirect.tsx"),
route("login", "routes/login.tsx"),
...prefix("console", [
layout("routes/console/layout.tsx", [
index("routes/console/home.tsx"),
route("inbox", "routes/console/inbox.tsx"),
route("library", "routes/console/library.tsx"),
route("library/:id", "routes/console/library.$id.tsx"),
route("identity", "routes/console/identity.tsx"),
route("organize", "routes/console/organize.tsx"),
route("organize/:id", "routes/console/organize.$id.tsx"),
route("files", "routes/console/files.tsx"),
route("files/trash", "routes/console/files.trash.tsx"),
route("subscriptions", "routes/console/subscriptions.tsx"),
route("preferences", "routes/console/preferences.tsx"),
route("sites", "routes/console/sites.tsx"),
route("sites/:siteId", "routes/console/sites.$siteId.tsx"),
route("sources", "routes/console/sources.tsx"),
route("rules", "routes/console/rules.tsx"),
route("downloads", "routes/console/downloads.tsx"),
route("downloads/plans", "routes/console/downloads.plans.tsx"),
route("downloads/:id", "routes/console/downloads.$id.tsx"),
route("tasks", "routes/console/tasks.tsx"),
route("tasks/:id", "routes/console/tasks.$id.tsx"),
route("agent", "routes/console/agent.tsx"),
route("agent/:runId", "routes/console/agent.$runId.tsx"),
route("engine", "routes/console/engine.tsx"),
route("engine/:runId", "routes/console/engine.$runId.tsx"),
route("audit", "routes/console/audit.tsx"),
route("settings", "routes/console/settings.tsx"),
route("schedules", "routes/console/schedules.tsx"),
route("status", "routes/console/status.tsx"),
]),
]),
route("*", "routes/not-found.tsx"),
] satisfies RouteConfig;