Files
UHD_Media_Tool/apps/web/app/routes.ts
T
rootandClaude Opus 5.5 b7a7fd3958 feat(web): subscriptions overview groups, coverage matrix view and v2 form (FE-5)
- Overview: kind tabs, five groups with server counts, card/list views,
  slot badges, progress (unknown total = "?"), filters in URL, batch actions
- Detail /console/subscriptions/🆔 season tabs, episode x version-target
  matrix with cell sheet (manual fill, plan link), drag slot order,
  auto-fill switch and fill budget, refresh coverage
- Create/edit dialog (basic/advanced): work picker via global search,
  season/range/total, sites, rule groups, include/exclude, templates,
  upgrade strategy, downloader/save path; 409 links to existing subscription

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

44 lines
2.2 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("subscriptions/:id", "routes/console/subscriptions.$id.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;