feat: add CNB Board live information page with domain management

- Created a new page for managing domains with a table view and modal for editing.
- Implemented Zustand store for domain state management including fetching, updating, and deleting domains.
- Added components for displaying information cards with search functionality.
- Integrated API calls for fetching CNB Board live data including build, repo, pull, NPC, and comment information.
- Established routing for the CNB Board page.
This commit is contained in:
2026-02-24 04:34:25 +08:00
parent c2d4d706be
commit dd8d5b7341
16 changed files with 3762 additions and 45 deletions

View File

@@ -10,6 +10,7 @@
import { Route as rootRouteImport } from './routes/__root'
import { Route as DemoRouteImport } from './routes/demo'
import { Route as CnbBoardRouteImport } from './routes/cnb-board'
import { Route as IndexRouteImport } from './routes/index'
const DemoRoute = DemoRouteImport.update({
@@ -17,6 +18,11 @@ const DemoRoute = DemoRouteImport.update({
path: '/demo',
getParentRoute: () => rootRouteImport,
} as any)
const CnbBoardRoute = CnbBoardRouteImport.update({
id: '/cnb-board',
path: '/cnb-board',
getParentRoute: () => rootRouteImport,
} as any)
const IndexRoute = IndexRouteImport.update({
id: '/',
path: '/',
@@ -25,27 +31,31 @@ const IndexRoute = IndexRouteImport.update({
export interface FileRoutesByFullPath {
'/': typeof IndexRoute
'/cnb-board': typeof CnbBoardRoute
'/demo': typeof DemoRoute
}
export interface FileRoutesByTo {
'/': typeof IndexRoute
'/cnb-board': typeof CnbBoardRoute
'/demo': typeof DemoRoute
}
export interface FileRoutesById {
__root__: typeof rootRouteImport
'/': typeof IndexRoute
'/cnb-board': typeof CnbBoardRoute
'/demo': typeof DemoRoute
}
export interface FileRouteTypes {
fileRoutesByFullPath: FileRoutesByFullPath
fullPaths: '/' | '/demo'
fullPaths: '/' | '/cnb-board' | '/demo'
fileRoutesByTo: FileRoutesByTo
to: '/' | '/demo'
id: '__root__' | '/' | '/demo'
to: '/' | '/cnb-board' | '/demo'
id: '__root__' | '/' | '/cnb-board' | '/demo'
fileRoutesById: FileRoutesById
}
export interface RootRouteChildren {
IndexRoute: typeof IndexRoute
CnbBoardRoute: typeof CnbBoardRoute
DemoRoute: typeof DemoRoute
}
@@ -58,6 +68,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof DemoRouteImport
parentRoute: typeof rootRouteImport
}
'/cnb-board': {
id: '/cnb-board'
path: '/cnb-board'
fullPath: '/cnb-board'
preLoaderRoute: typeof CnbBoardRouteImport
parentRoute: typeof rootRouteImport
}
'/': {
id: '/'
path: '/'
@@ -70,6 +87,7 @@ declare module '@tanstack/react-router' {
const rootRouteChildren: RootRouteChildren = {
IndexRoute: IndexRoute,
CnbBoardRoute: CnbBoardRoute,
DemoRoute: DemoRoute,
}
export const routeTree = rootRouteImport