Refactor camera feed handling to support dynamic camera IDs and improve context management
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
import { Route as rootRouteImport } from './routes/__root'
|
||||
import { Route as SettingsRouteImport } from './routes/settings'
|
||||
import { Route as OutputRouteImport } from './routes/output'
|
||||
import { Route as BaywatchRouteImport } from './routes/baywatch'
|
||||
import { Route as CamerasRouteImport } from './routes/cameras'
|
||||
import { Route as AboutRouteImport } from './routes/about'
|
||||
import { Route as IndexRouteImport } from './routes/index'
|
||||
|
||||
@@ -25,9 +25,9 @@ const OutputRoute = OutputRouteImport.update({
|
||||
path: '/output',
|
||||
getParentRoute: () => rootRouteImport,
|
||||
} as any)
|
||||
const BaywatchRoute = BaywatchRouteImport.update({
|
||||
id: '/baywatch',
|
||||
path: '/baywatch',
|
||||
const CamerasRoute = CamerasRouteImport.update({
|
||||
id: '/cameras',
|
||||
path: '/cameras',
|
||||
getParentRoute: () => rootRouteImport,
|
||||
} as any)
|
||||
const AboutRoute = AboutRouteImport.update({
|
||||
@@ -44,14 +44,14 @@ const IndexRoute = IndexRouteImport.update({
|
||||
export interface FileRoutesByFullPath {
|
||||
'/': typeof IndexRoute
|
||||
'/about': typeof AboutRoute
|
||||
'/baywatch': typeof BaywatchRoute
|
||||
'/cameras': typeof CamerasRoute
|
||||
'/output': typeof OutputRoute
|
||||
'/settings': typeof SettingsRoute
|
||||
}
|
||||
export interface FileRoutesByTo {
|
||||
'/': typeof IndexRoute
|
||||
'/about': typeof AboutRoute
|
||||
'/baywatch': typeof BaywatchRoute
|
||||
'/cameras': typeof CamerasRoute
|
||||
'/output': typeof OutputRoute
|
||||
'/settings': typeof SettingsRoute
|
||||
}
|
||||
@@ -59,22 +59,22 @@ export interface FileRoutesById {
|
||||
__root__: typeof rootRouteImport
|
||||
'/': typeof IndexRoute
|
||||
'/about': typeof AboutRoute
|
||||
'/baywatch': typeof BaywatchRoute
|
||||
'/cameras': typeof CamerasRoute
|
||||
'/output': typeof OutputRoute
|
||||
'/settings': typeof SettingsRoute
|
||||
}
|
||||
export interface FileRouteTypes {
|
||||
fileRoutesByFullPath: FileRoutesByFullPath
|
||||
fullPaths: '/' | '/about' | '/baywatch' | '/output' | '/settings'
|
||||
fullPaths: '/' | '/about' | '/cameras' | '/output' | '/settings'
|
||||
fileRoutesByTo: FileRoutesByTo
|
||||
to: '/' | '/about' | '/baywatch' | '/output' | '/settings'
|
||||
id: '__root__' | '/' | '/about' | '/baywatch' | '/output' | '/settings'
|
||||
to: '/' | '/about' | '/cameras' | '/output' | '/settings'
|
||||
id: '__root__' | '/' | '/about' | '/cameras' | '/output' | '/settings'
|
||||
fileRoutesById: FileRoutesById
|
||||
}
|
||||
export interface RootRouteChildren {
|
||||
IndexRoute: typeof IndexRoute
|
||||
AboutRoute: typeof AboutRoute
|
||||
BaywatchRoute: typeof BaywatchRoute
|
||||
CamerasRoute: typeof CamerasRoute
|
||||
OutputRoute: typeof OutputRoute
|
||||
SettingsRoute: typeof SettingsRoute
|
||||
}
|
||||
@@ -95,11 +95,11 @@ declare module '@tanstack/react-router' {
|
||||
preLoaderRoute: typeof OutputRouteImport
|
||||
parentRoute: typeof rootRouteImport
|
||||
}
|
||||
'/baywatch': {
|
||||
id: '/baywatch'
|
||||
path: '/baywatch'
|
||||
fullPath: '/baywatch'
|
||||
preLoaderRoute: typeof BaywatchRouteImport
|
||||
'/cameras': {
|
||||
id: '/cameras'
|
||||
path: '/cameras'
|
||||
fullPath: '/cameras'
|
||||
preLoaderRoute: typeof CamerasRouteImport
|
||||
parentRoute: typeof rootRouteImport
|
||||
}
|
||||
'/about': {
|
||||
@@ -122,7 +122,7 @@ declare module '@tanstack/react-router' {
|
||||
const rootRouteChildren: RootRouteChildren = {
|
||||
IndexRoute: IndexRoute,
|
||||
AboutRoute: AboutRoute,
|
||||
BaywatchRoute: BaywatchRoute,
|
||||
CamerasRoute: CamerasRoute,
|
||||
OutputRoute: OutputRoute,
|
||||
SettingsRoute: SettingsRoute,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user