feat(studio): authors/series/articles/subtopics/briefs/style-presets + agent tokens (show-once)

This commit is contained in:
2026-07-07 22:30:27 +08:00
parent 36df03baad
commit 61cb549e72
14 changed files with 1184 additions and 32 deletions
+337 -29
View File
@@ -9,68 +9,376 @@
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
import { Route as rootRouteImport } from './routes/__root'
import { Route as AboutRouteImport } from './routes/about'
import { Route as IndexRouteImport } from './routes/index'
import { Route as LoginRouteImport } from './routes/login'
import { Route as AuthedRouteImport } from './routes/_authed'
import { Route as AuthedIndexRouteImport } from './routes/_authed/index'
import { Route as AuthedSidRouteImport } from './routes/_authed/sid'
import { Route as AuthedRobotsRouteImport } from './routes/_authed/robots'
import { Route as AuthedLocalesRouteImport } from './routes/_authed/locales'
import { Route as AuthedDevicesRouteImport } from './routes/_authed/devices'
import { Route as AuthedCategoriesIndexRouteImport } from './routes/_authed/categories/index'
import { Route as AuthedStudioSubtopicsRouteImport } from './routes/_authed/studio/subtopics'
import { Route as AuthedStudioStylePresetsRouteImport } from './routes/_authed/studio/style-presets'
import { Route as AuthedStudioSeriesRouteImport } from './routes/_authed/studio/series'
import { Route as AuthedStudioRobotAuthorsRouteImport } from './routes/_authed/studio/robot-authors'
import { Route as AuthedStudioCategoryBriefsRouteImport } from './routes/_authed/studio/category-briefs'
import { Route as AuthedStudioArticlesRouteImport } from './routes/_authed/studio/articles'
import { Route as AuthedStudioAgentTokensRouteImport } from './routes/_authed/studio/agent-tokens'
import { Route as AuthedCategoriesPendingRouteImport } from './routes/_authed/categories/pending'
const AboutRoute = AboutRouteImport.update({
id: '/about',
path: '/about',
const LoginRoute = LoginRouteImport.update({
id: '/login',
path: '/login',
getParentRoute: () => rootRouteImport,
} as any)
const IndexRoute = IndexRouteImport.update({
const AuthedRoute = AuthedRouteImport.update({
id: '/_authed',
getParentRoute: () => rootRouteImport,
} as any)
const AuthedIndexRoute = AuthedIndexRouteImport.update({
id: '/',
path: '/',
getParentRoute: () => rootRouteImport,
getParentRoute: () => AuthedRoute,
} as any)
const AuthedSidRoute = AuthedSidRouteImport.update({
id: '/sid',
path: '/sid',
getParentRoute: () => AuthedRoute,
} as any)
const AuthedRobotsRoute = AuthedRobotsRouteImport.update({
id: '/robots',
path: '/robots',
getParentRoute: () => AuthedRoute,
} as any)
const AuthedLocalesRoute = AuthedLocalesRouteImport.update({
id: '/locales',
path: '/locales',
getParentRoute: () => AuthedRoute,
} as any)
const AuthedDevicesRoute = AuthedDevicesRouteImport.update({
id: '/devices',
path: '/devices',
getParentRoute: () => AuthedRoute,
} as any)
const AuthedCategoriesIndexRoute = AuthedCategoriesIndexRouteImport.update({
id: '/categories/',
path: '/categories/',
getParentRoute: () => AuthedRoute,
} as any)
const AuthedStudioSubtopicsRoute = AuthedStudioSubtopicsRouteImport.update({
id: '/studio/subtopics',
path: '/studio/subtopics',
getParentRoute: () => AuthedRoute,
} as any)
const AuthedStudioStylePresetsRoute =
AuthedStudioStylePresetsRouteImport.update({
id: '/studio/style-presets',
path: '/studio/style-presets',
getParentRoute: () => AuthedRoute,
} as any)
const AuthedStudioSeriesRoute = AuthedStudioSeriesRouteImport.update({
id: '/studio/series',
path: '/studio/series',
getParentRoute: () => AuthedRoute,
} as any)
const AuthedStudioRobotAuthorsRoute =
AuthedStudioRobotAuthorsRouteImport.update({
id: '/studio/robot-authors',
path: '/studio/robot-authors',
getParentRoute: () => AuthedRoute,
} as any)
const AuthedStudioCategoryBriefsRoute =
AuthedStudioCategoryBriefsRouteImport.update({
id: '/studio/category-briefs',
path: '/studio/category-briefs',
getParentRoute: () => AuthedRoute,
} as any)
const AuthedStudioArticlesRoute = AuthedStudioArticlesRouteImport.update({
id: '/studio/articles',
path: '/studio/articles',
getParentRoute: () => AuthedRoute,
} as any)
const AuthedStudioAgentTokensRoute = AuthedStudioAgentTokensRouteImport.update({
id: '/studio/agent-tokens',
path: '/studio/agent-tokens',
getParentRoute: () => AuthedRoute,
} as any)
const AuthedCategoriesPendingRoute = AuthedCategoriesPendingRouteImport.update({
id: '/categories/pending',
path: '/categories/pending',
getParentRoute: () => AuthedRoute,
} as any)
export interface FileRoutesByFullPath {
'/': typeof IndexRoute
'/about': typeof AboutRoute
'/': typeof AuthedIndexRoute
'/login': typeof LoginRoute
'/devices': typeof AuthedDevicesRoute
'/locales': typeof AuthedLocalesRoute
'/robots': typeof AuthedRobotsRoute
'/sid': typeof AuthedSidRoute
'/categories/pending': typeof AuthedCategoriesPendingRoute
'/studio/agent-tokens': typeof AuthedStudioAgentTokensRoute
'/studio/articles': typeof AuthedStudioArticlesRoute
'/studio/category-briefs': typeof AuthedStudioCategoryBriefsRoute
'/studio/robot-authors': typeof AuthedStudioRobotAuthorsRoute
'/studio/series': typeof AuthedStudioSeriesRoute
'/studio/style-presets': typeof AuthedStudioStylePresetsRoute
'/studio/subtopics': typeof AuthedStudioSubtopicsRoute
'/categories/': typeof AuthedCategoriesIndexRoute
}
export interface FileRoutesByTo {
'/': typeof IndexRoute
'/about': typeof AboutRoute
'/login': typeof LoginRoute
'/devices': typeof AuthedDevicesRoute
'/locales': typeof AuthedLocalesRoute
'/robots': typeof AuthedRobotsRoute
'/sid': typeof AuthedSidRoute
'/': typeof AuthedIndexRoute
'/categories/pending': typeof AuthedCategoriesPendingRoute
'/studio/agent-tokens': typeof AuthedStudioAgentTokensRoute
'/studio/articles': typeof AuthedStudioArticlesRoute
'/studio/category-briefs': typeof AuthedStudioCategoryBriefsRoute
'/studio/robot-authors': typeof AuthedStudioRobotAuthorsRoute
'/studio/series': typeof AuthedStudioSeriesRoute
'/studio/style-presets': typeof AuthedStudioStylePresetsRoute
'/studio/subtopics': typeof AuthedStudioSubtopicsRoute
'/categories': typeof AuthedCategoriesIndexRoute
}
export interface FileRoutesById {
__root__: typeof rootRouteImport
'/': typeof IndexRoute
'/about': typeof AboutRoute
'/_authed': typeof AuthedRouteWithChildren
'/login': typeof LoginRoute
'/_authed/devices': typeof AuthedDevicesRoute
'/_authed/locales': typeof AuthedLocalesRoute
'/_authed/robots': typeof AuthedRobotsRoute
'/_authed/sid': typeof AuthedSidRoute
'/_authed/': typeof AuthedIndexRoute
'/_authed/categories/pending': typeof AuthedCategoriesPendingRoute
'/_authed/studio/agent-tokens': typeof AuthedStudioAgentTokensRoute
'/_authed/studio/articles': typeof AuthedStudioArticlesRoute
'/_authed/studio/category-briefs': typeof AuthedStudioCategoryBriefsRoute
'/_authed/studio/robot-authors': typeof AuthedStudioRobotAuthorsRoute
'/_authed/studio/series': typeof AuthedStudioSeriesRoute
'/_authed/studio/style-presets': typeof AuthedStudioStylePresetsRoute
'/_authed/studio/subtopics': typeof AuthedStudioSubtopicsRoute
'/_authed/categories/': typeof AuthedCategoriesIndexRoute
}
export interface FileRouteTypes {
fileRoutesByFullPath: FileRoutesByFullPath
fullPaths: '/' | '/about'
fullPaths:
| '/'
| '/login'
| '/devices'
| '/locales'
| '/robots'
| '/sid'
| '/categories/pending'
| '/studio/agent-tokens'
| '/studio/articles'
| '/studio/category-briefs'
| '/studio/robot-authors'
| '/studio/series'
| '/studio/style-presets'
| '/studio/subtopics'
| '/categories/'
fileRoutesByTo: FileRoutesByTo
to: '/' | '/about'
id: '__root__' | '/' | '/about'
to:
| '/login'
| '/devices'
| '/locales'
| '/robots'
| '/sid'
| '/'
| '/categories/pending'
| '/studio/agent-tokens'
| '/studio/articles'
| '/studio/category-briefs'
| '/studio/robot-authors'
| '/studio/series'
| '/studio/style-presets'
| '/studio/subtopics'
| '/categories'
id:
| '__root__'
| '/_authed'
| '/login'
| '/_authed/devices'
| '/_authed/locales'
| '/_authed/robots'
| '/_authed/sid'
| '/_authed/'
| '/_authed/categories/pending'
| '/_authed/studio/agent-tokens'
| '/_authed/studio/articles'
| '/_authed/studio/category-briefs'
| '/_authed/studio/robot-authors'
| '/_authed/studio/series'
| '/_authed/studio/style-presets'
| '/_authed/studio/subtopics'
| '/_authed/categories/'
fileRoutesById: FileRoutesById
}
export interface RootRouteChildren {
IndexRoute: typeof IndexRoute
AboutRoute: typeof AboutRoute
AuthedRoute: typeof AuthedRouteWithChildren
LoginRoute: typeof LoginRoute
}
declare module '@tanstack/react-router' {
interface FileRoutesByPath {
'/about': {
id: '/about'
path: '/about'
fullPath: '/about'
preLoaderRoute: typeof AboutRouteImport
'/login': {
id: '/login'
path: '/login'
fullPath: '/login'
preLoaderRoute: typeof LoginRouteImport
parentRoute: typeof rootRouteImport
}
'/': {
id: '/'
'/_authed': {
id: '/_authed'
path: ''
fullPath: '/'
preLoaderRoute: typeof AuthedRouteImport
parentRoute: typeof rootRouteImport
}
'/_authed/': {
id: '/_authed/'
path: '/'
fullPath: '/'
preLoaderRoute: typeof IndexRouteImport
parentRoute: typeof rootRouteImport
preLoaderRoute: typeof AuthedIndexRouteImport
parentRoute: typeof AuthedRoute
}
'/_authed/sid': {
id: '/_authed/sid'
path: '/sid'
fullPath: '/sid'
preLoaderRoute: typeof AuthedSidRouteImport
parentRoute: typeof AuthedRoute
}
'/_authed/robots': {
id: '/_authed/robots'
path: '/robots'
fullPath: '/robots'
preLoaderRoute: typeof AuthedRobotsRouteImport
parentRoute: typeof AuthedRoute
}
'/_authed/locales': {
id: '/_authed/locales'
path: '/locales'
fullPath: '/locales'
preLoaderRoute: typeof AuthedLocalesRouteImport
parentRoute: typeof AuthedRoute
}
'/_authed/devices': {
id: '/_authed/devices'
path: '/devices'
fullPath: '/devices'
preLoaderRoute: typeof AuthedDevicesRouteImport
parentRoute: typeof AuthedRoute
}
'/_authed/categories/': {
id: '/_authed/categories/'
path: '/categories'
fullPath: '/categories/'
preLoaderRoute: typeof AuthedCategoriesIndexRouteImport
parentRoute: typeof AuthedRoute
}
'/_authed/studio/subtopics': {
id: '/_authed/studio/subtopics'
path: '/studio/subtopics'
fullPath: '/studio/subtopics'
preLoaderRoute: typeof AuthedStudioSubtopicsRouteImport
parentRoute: typeof AuthedRoute
}
'/_authed/studio/style-presets': {
id: '/_authed/studio/style-presets'
path: '/studio/style-presets'
fullPath: '/studio/style-presets'
preLoaderRoute: typeof AuthedStudioStylePresetsRouteImport
parentRoute: typeof AuthedRoute
}
'/_authed/studio/series': {
id: '/_authed/studio/series'
path: '/studio/series'
fullPath: '/studio/series'
preLoaderRoute: typeof AuthedStudioSeriesRouteImport
parentRoute: typeof AuthedRoute
}
'/_authed/studio/robot-authors': {
id: '/_authed/studio/robot-authors'
path: '/studio/robot-authors'
fullPath: '/studio/robot-authors'
preLoaderRoute: typeof AuthedStudioRobotAuthorsRouteImport
parentRoute: typeof AuthedRoute
}
'/_authed/studio/category-briefs': {
id: '/_authed/studio/category-briefs'
path: '/studio/category-briefs'
fullPath: '/studio/category-briefs'
preLoaderRoute: typeof AuthedStudioCategoryBriefsRouteImport
parentRoute: typeof AuthedRoute
}
'/_authed/studio/articles': {
id: '/_authed/studio/articles'
path: '/studio/articles'
fullPath: '/studio/articles'
preLoaderRoute: typeof AuthedStudioArticlesRouteImport
parentRoute: typeof AuthedRoute
}
'/_authed/studio/agent-tokens': {
id: '/_authed/studio/agent-tokens'
path: '/studio/agent-tokens'
fullPath: '/studio/agent-tokens'
preLoaderRoute: typeof AuthedStudioAgentTokensRouteImport
parentRoute: typeof AuthedRoute
}
'/_authed/categories/pending': {
id: '/_authed/categories/pending'
path: '/categories/pending'
fullPath: '/categories/pending'
preLoaderRoute: typeof AuthedCategoriesPendingRouteImport
parentRoute: typeof AuthedRoute
}
}
}
interface AuthedRouteChildren {
AuthedDevicesRoute: typeof AuthedDevicesRoute
AuthedLocalesRoute: typeof AuthedLocalesRoute
AuthedRobotsRoute: typeof AuthedRobotsRoute
AuthedSidRoute: typeof AuthedSidRoute
AuthedIndexRoute: typeof AuthedIndexRoute
AuthedCategoriesPendingRoute: typeof AuthedCategoriesPendingRoute
AuthedStudioAgentTokensRoute: typeof AuthedStudioAgentTokensRoute
AuthedStudioArticlesRoute: typeof AuthedStudioArticlesRoute
AuthedStudioCategoryBriefsRoute: typeof AuthedStudioCategoryBriefsRoute
AuthedStudioRobotAuthorsRoute: typeof AuthedStudioRobotAuthorsRoute
AuthedStudioSeriesRoute: typeof AuthedStudioSeriesRoute
AuthedStudioStylePresetsRoute: typeof AuthedStudioStylePresetsRoute
AuthedStudioSubtopicsRoute: typeof AuthedStudioSubtopicsRoute
AuthedCategoriesIndexRoute: typeof AuthedCategoriesIndexRoute
}
const AuthedRouteChildren: AuthedRouteChildren = {
AuthedDevicesRoute: AuthedDevicesRoute,
AuthedLocalesRoute: AuthedLocalesRoute,
AuthedRobotsRoute: AuthedRobotsRoute,
AuthedSidRoute: AuthedSidRoute,
AuthedIndexRoute: AuthedIndexRoute,
AuthedCategoriesPendingRoute: AuthedCategoriesPendingRoute,
AuthedStudioAgentTokensRoute: AuthedStudioAgentTokensRoute,
AuthedStudioArticlesRoute: AuthedStudioArticlesRoute,
AuthedStudioCategoryBriefsRoute: AuthedStudioCategoryBriefsRoute,
AuthedStudioRobotAuthorsRoute: AuthedStudioRobotAuthorsRoute,
AuthedStudioSeriesRoute: AuthedStudioSeriesRoute,
AuthedStudioStylePresetsRoute: AuthedStudioStylePresetsRoute,
AuthedStudioSubtopicsRoute: AuthedStudioSubtopicsRoute,
AuthedCategoriesIndexRoute: AuthedCategoriesIndexRoute,
}
const AuthedRouteWithChildren =
AuthedRoute._addFileChildren(AuthedRouteChildren)
const rootRouteChildren: RootRouteChildren = {
IndexRoute: IndexRoute,
AboutRoute: AboutRoute,
AuthedRoute: AuthedRouteWithChildren,
LoginRoute: LoginRoute,
}
export const routeTree = rootRouteImport
._addFileChildren(rootRouteChildren)