feat(moderation): comment/event report and dimzou translation pages

New 内容审核 nav group covering the remaining admin API groups:
- /comment-reports — status filter; hide/delete comment or dismiss
- /event-reports — status filter; hide/delete/resolve/dismiss
- /dimzou-translations — language/status filters, draft block progress,
  requeue machine translation

Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
2026-07-11 13:28:28 +08:00
co-authored by Claude Fable 5
parent ebe7665620
commit 999d5353fd
11 changed files with 908 additions and 9 deletions
+64
View File
@@ -15,7 +15,10 @@ 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 AuthedEventReportsRouteImport } from './routes/_authed/event-reports'
import { Route as AuthedDimzouTranslationsRouteImport } from './routes/_authed/dimzou-translations'
import { Route as AuthedDevicesRouteImport } from './routes/_authed/devices'
import { Route as AuthedCommentReportsRouteImport } from './routes/_authed/comment-reports'
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'
@@ -55,11 +58,27 @@ const AuthedLocalesRoute = AuthedLocalesRouteImport.update({
path: '/locales',
getParentRoute: () => AuthedRoute,
} as any)
const AuthedEventReportsRoute = AuthedEventReportsRouteImport.update({
id: '/event-reports',
path: '/event-reports',
getParentRoute: () => AuthedRoute,
} as any)
const AuthedDimzouTranslationsRoute =
AuthedDimzouTranslationsRouteImport.update({
id: '/dimzou-translations',
path: '/dimzou-translations',
getParentRoute: () => AuthedRoute,
} as any)
const AuthedDevicesRoute = AuthedDevicesRouteImport.update({
id: '/devices',
path: '/devices',
getParentRoute: () => AuthedRoute,
} as any)
const AuthedCommentReportsRoute = AuthedCommentReportsRouteImport.update({
id: '/comment-reports',
path: '/comment-reports',
getParentRoute: () => AuthedRoute,
} as any)
const AuthedCategoriesIndexRoute = AuthedCategoriesIndexRouteImport.update({
id: '/categories/',
path: '/categories/',
@@ -112,7 +131,10 @@ const AuthedCategoriesPendingRoute = AuthedCategoriesPendingRouteImport.update({
export interface FileRoutesByFullPath {
'/': typeof AuthedIndexRoute
'/login': typeof LoginRoute
'/comment-reports': typeof AuthedCommentReportsRoute
'/devices': typeof AuthedDevicesRoute
'/dimzou-translations': typeof AuthedDimzouTranslationsRoute
'/event-reports': typeof AuthedEventReportsRoute
'/locales': typeof AuthedLocalesRoute
'/robots': typeof AuthedRobotsRoute
'/sid': typeof AuthedSidRoute
@@ -128,7 +150,10 @@ export interface FileRoutesByFullPath {
}
export interface FileRoutesByTo {
'/login': typeof LoginRoute
'/comment-reports': typeof AuthedCommentReportsRoute
'/devices': typeof AuthedDevicesRoute
'/dimzou-translations': typeof AuthedDimzouTranslationsRoute
'/event-reports': typeof AuthedEventReportsRoute
'/locales': typeof AuthedLocalesRoute
'/robots': typeof AuthedRobotsRoute
'/sid': typeof AuthedSidRoute
@@ -147,7 +172,10 @@ export interface FileRoutesById {
__root__: typeof rootRouteImport
'/_authed': typeof AuthedRouteWithChildren
'/login': typeof LoginRoute
'/_authed/comment-reports': typeof AuthedCommentReportsRoute
'/_authed/devices': typeof AuthedDevicesRoute
'/_authed/dimzou-translations': typeof AuthedDimzouTranslationsRoute
'/_authed/event-reports': typeof AuthedEventReportsRoute
'/_authed/locales': typeof AuthedLocalesRoute
'/_authed/robots': typeof AuthedRobotsRoute
'/_authed/sid': typeof AuthedSidRoute
@@ -167,7 +195,10 @@ export interface FileRouteTypes {
fullPaths:
| '/'
| '/login'
| '/comment-reports'
| '/devices'
| '/dimzou-translations'
| '/event-reports'
| '/locales'
| '/robots'
| '/sid'
@@ -183,7 +214,10 @@ export interface FileRouteTypes {
fileRoutesByTo: FileRoutesByTo
to:
| '/login'
| '/comment-reports'
| '/devices'
| '/dimzou-translations'
| '/event-reports'
| '/locales'
| '/robots'
| '/sid'
@@ -201,7 +235,10 @@ export interface FileRouteTypes {
| '__root__'
| '/_authed'
| '/login'
| '/_authed/comment-reports'
| '/_authed/devices'
| '/_authed/dimzou-translations'
| '/_authed/event-reports'
| '/_authed/locales'
| '/_authed/robots'
| '/_authed/sid'
@@ -266,6 +303,20 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof AuthedLocalesRouteImport
parentRoute: typeof AuthedRoute
}
'/_authed/event-reports': {
id: '/_authed/event-reports'
path: '/event-reports'
fullPath: '/event-reports'
preLoaderRoute: typeof AuthedEventReportsRouteImport
parentRoute: typeof AuthedRoute
}
'/_authed/dimzou-translations': {
id: '/_authed/dimzou-translations'
path: '/dimzou-translations'
fullPath: '/dimzou-translations'
preLoaderRoute: typeof AuthedDimzouTranslationsRouteImport
parentRoute: typeof AuthedRoute
}
'/_authed/devices': {
id: '/_authed/devices'
path: '/devices'
@@ -273,6 +324,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof AuthedDevicesRouteImport
parentRoute: typeof AuthedRoute
}
'/_authed/comment-reports': {
id: '/_authed/comment-reports'
path: '/comment-reports'
fullPath: '/comment-reports'
preLoaderRoute: typeof AuthedCommentReportsRouteImport
parentRoute: typeof AuthedRoute
}
'/_authed/categories/': {
id: '/_authed/categories/'
path: '/categories'
@@ -340,7 +398,10 @@ declare module '@tanstack/react-router' {
}
interface AuthedRouteChildren {
AuthedCommentReportsRoute: typeof AuthedCommentReportsRoute
AuthedDevicesRoute: typeof AuthedDevicesRoute
AuthedDimzouTranslationsRoute: typeof AuthedDimzouTranslationsRoute
AuthedEventReportsRoute: typeof AuthedEventReportsRoute
AuthedLocalesRoute: typeof AuthedLocalesRoute
AuthedRobotsRoute: typeof AuthedRobotsRoute
AuthedSidRoute: typeof AuthedSidRoute
@@ -357,7 +418,10 @@ interface AuthedRouteChildren {
}
const AuthedRouteChildren: AuthedRouteChildren = {
AuthedCommentReportsRoute: AuthedCommentReportsRoute,
AuthedDevicesRoute: AuthedDevicesRoute,
AuthedDimzouTranslationsRoute: AuthedDimzouTranslationsRoute,
AuthedEventReportsRoute: AuthedEventReportsRoute,
AuthedLocalesRoute: AuthedLocalesRoute,
AuthedRobotsRoute: AuthedRobotsRoute,
AuthedSidRoute: AuthedSidRoute,