feat(usage): add usage dashboard page with charts and navigation
This commit is contained in:
1 parent
1a1c0acd16
commit
a225791e71
3 files changed
+270
-3
No files matched your search
+21
-3
@@ -9,10 +9,16 @@
|
||||
// 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 UsageRouteImport } from './routes/usage'
|
||||
import { Route as SettingsRouteImport } from './routes/settings'
|
||||
import { Route as ProxyRouteImport } from './routes/proxy'
|
||||
import { Route as IndexRouteImport } from './routes/index'
|
||||
|
||||
const UsageRoute = UsageRouteImport.update({
|
||||
id: '/usage',
|
||||
path: '/usage',
|
||||
getParentRoute: () => rootRouteImport,
|
||||
} as any)
|
||||
const SettingsRoute = SettingsRouteImport.update({
|
||||
id: '/settings',
|
||||
path: '/settings',
|
||||
@@ -33,34 +39,45 @@ export interface FileRoutesByFullPath {
|
||||
'/': typeof IndexRoute
|
||||
'/proxy': typeof ProxyRoute
|
||||
'/settings': typeof SettingsRoute
|
||||
'/usage': typeof UsageRoute
|
||||
}
|
||||
export interface FileRoutesByTo {
|
||||
'/': typeof IndexRoute
|
||||
'/proxy': typeof ProxyRoute
|
||||
'/settings': typeof SettingsRoute
|
||||
'/usage': typeof UsageRoute
|
||||
}
|
||||
export interface FileRoutesById {
|
||||
__root__: typeof rootRouteImport
|
||||
'/': typeof IndexRoute
|
||||
'/proxy': typeof ProxyRoute
|
||||
'/settings': typeof SettingsRoute
|
||||
'/usage': typeof UsageRoute
|
||||
}
|
||||
export interface FileRouteTypes {
|
||||
fileRoutesByFullPath: FileRoutesByFullPath
|
||||
fullPaths: '/' | '/proxy' | '/settings'
|
||||
fullPaths: '/' | '/proxy' | '/settings' | '/usage'
|
||||
fileRoutesByTo: FileRoutesByTo
|
||||
to: '/' | '/proxy' | '/settings'
|
||||
id: '__root__' | '/' | '/proxy' | '/settings'
|
||||
to: '/' | '/proxy' | '/settings' | '/usage'
|
||||
id: '__root__' | '/' | '/proxy' | '/settings' | '/usage'
|
||||
fileRoutesById: FileRoutesById
|
||||
}
|
||||
export interface RootRouteChildren {
|
||||
IndexRoute: typeof IndexRoute
|
||||
ProxyRoute: typeof ProxyRoute
|
||||
SettingsRoute: typeof SettingsRoute
|
||||
UsageRoute: typeof UsageRoute
|
||||
}
|
||||
|
||||
declare module '@tanstack/react-router' {
|
||||
interface FileRoutesByPath {
|
||||
'/usage': {
|
||||
id: '/usage'
|
||||
path: '/usage'
|
||||
fullPath: '/usage'
|
||||
preLoaderRoute: typeof UsageRouteImport
|
||||
parentRoute: typeof rootRouteImport
|
||||
}
|
||||
'/settings': {
|
||||
id: '/settings'
|
||||
path: '/settings'
|
||||
@@ -89,6 +106,7 @@ const rootRouteChildren: RootRouteChildren = {
|
||||
IndexRoute: IndexRoute,
|
||||
ProxyRoute: ProxyRoute,
|
||||
SettingsRoute: SettingsRoute,
|
||||
UsageRoute: UsageRoute,
|
||||
}
|
||||
export const routeTree = rootRouteImport
|
||||
._addFileChildren(rootRouteChildren)
|
||||
|
||||
Reference in new issue
Block a user