59 lines · 2.6 KBRaw
| 1 | import { type RouteConfig, index, route } from "@react-router/dev/routes"; |
| 2 | |
| 3 | export default [ |
| 4 | index("routes/dashboard.tsx"), |
| 5 | route("llms.txt", "routes/llms-txt.ts"), |
| 6 | route("install", "routes/install.ts"), |
| 7 | route("docs/:page?", "routes/docs.tsx"), |
| 8 | route("cli/refs.mjs", "routes/cli-script.ts"), |
| 9 | route("oauth/authorize", "routes/oauth-authorize.tsx"), |
| 10 | route("signup", "routes/signup.tsx"), |
| 11 | route("login", "routes/login.tsx"), |
| 12 | route("logout", "routes/logout.tsx"), |
| 13 | route("switch", "routes/switch.ts"), |
| 14 | route("invite/:token", "routes/invite.tsx"), |
| 15 | route("new", "routes/new.tsx"), |
| 16 | route("organizations/new", "routes/organization-new.tsx"), |
| 17 | route("tasks", "routes/tasks.tsx"), |
| 18 | route("tasks/new", "routes/task-new.tsx"), |
| 19 | route("tasks/labels", "routes/labels.tsx"), |
| 20 | route("settings/tokens", "routes/tokens.tsx"), |
| 21 | route("settings/agents", "routes/namespace-agents.tsx"), |
| 22 | route("settings/members", "routes/members.tsx"), |
| 23 | route("settings/secrets", "routes/namespace-secrets.tsx"), |
| 24 | route("admin", "routes/admin.tsx"), |
| 25 | route("forgot-password", "routes/forgot-password.tsx"), |
| 26 | route("reset-password/:token", "routes/reset-password.tsx"), |
| 27 | route(":ns", "routes/dashboard.tsx", { id: "namespace" }), |
| 28 | route(":ns/:repo/raw/*", "routes/repo-raw.ts"), |
| 29 | route(":ns/:repo/code-graph/:commit", "routes/repo-code-graph.ts"), |
| 30 | route(":ns/:repo/code-graph/:commit/file/*", "routes/repo-code-file.ts"), |
| 31 | route(":ns/:repo/last-commits/*", "routes/repo-last-commits.ts"), |
| 32 | route(":ns/:repo/live", "routes/repo-live.ts"), |
| 33 | route(":ns/:repo/runs/:id/events", "routes/repo-run-events.ts"), |
| 34 | route(":ns/:repo", "routes/repo.tsx", [ |
| 35 | index("routes/repo-home.tsx"), |
| 36 | route("map", "routes/repo-map.tsx"), |
| 37 | route("tree/*", "routes/repo-tree.tsx"), |
| 38 | route("blob/*", "routes/repo-blob.tsx"), |
| 39 | route("commits/*", "routes/repo-commits.tsx"), |
| 40 | route("commit/:hash", "routes/repo-commit.tsx"), |
| 41 | route("tasks", "routes/repo-tasks.tsx"), |
| 42 | route("pulls", "routes/repo-pulls.tsx"), |
| 43 | route("branches", "routes/repo-branches.tsx"), |
| 44 | route("compare", "routes/repo-compare.tsx"), |
| 45 | route("pulls/:number", "routes/pull-layout.tsx", [ |
| 46 | index("routes/pull.tsx"), |
| 47 | route("reasoning", "routes/pull-reasoning.tsx"), |
| 48 | route("commits", "routes/pull-commits.tsx"), |
| 49 | route("map", "routes/pull-map.tsx"), |
| 50 | route("files", "routes/pull-files.tsx"), |
| 51 | ]), |
| 52 | route("tasks/:number", "routes/task.tsx"), |
| 53 | route("agents", "routes/repo-agents.tsx"), |
| 54 | route("runs", "routes/repo-runs.tsx"), |
| 55 | route("runs/:id", "routes/repo-run.tsx"), |
| 56 | route("settings", "routes/repo-settings.tsx"), |
| 57 | route("fork", "routes/repo-fork.tsx"), |
| 58 | ]), |
| 59 | ] satisfies RouteConfig; |