From e2ced4e939a8c759530e60ea582aa1b99520f092 Mon Sep 17 00:00:00 2001 From: Daniel Pupius Date: Wed, 30 Apr 2025 13:11:27 -0700 Subject: [PATCH] packets --> stream --- web/src/components/Nav.tsx | 2 +- web/src/routeTree.gen.ts | 52 +++++++++++----------- web/src/routes/{packets.tsx => stream.tsx} | 2 +- 3 files changed, 28 insertions(+), 28 deletions(-) rename web/src/routes/{packets.tsx => stream.tsx} (82%) diff --git a/web/src/components/Nav.tsx b/web/src/components/Nav.tsx index 0f80b94..e9caa12 100644 --- a/web/src/components/Nav.tsx +++ b/web/src/components/Nav.tsx @@ -41,7 +41,7 @@ const navigationItems: NavItem[] = [ exact: true, }, { - to: "/packets", + to: "/stream", label: "Stream", icon: Radio, exact: true, diff --git a/web/src/routeTree.gen.ts b/web/src/routeTree.gen.ts index 12313d4..60dde62 100644 --- a/web/src/routeTree.gen.ts +++ b/web/src/routeTree.gen.ts @@ -11,8 +11,8 @@ // Import Routes import { Route as rootRoute } from './routes/__root' +import { Route as StreamImport } from './routes/stream' import { Route as RootImport } from './routes/root' -import { Route as PacketsImport } from './routes/packets' import { Route as MapImport } from './routes/map' import { Route as HomeImport } from './routes/home' import { Route as DemoImport } from './routes/demo' @@ -23,15 +23,15 @@ import { Route as ChannelChannelIdImport } from './routes/channel.$channelId' // Create/Update Routes -const RootRoute = RootImport.update({ - id: '/root', - path: '/root', +const StreamRoute = StreamImport.update({ + id: '/stream', + path: '/stream', getParentRoute: () => rootRoute, } as any) -const PacketsRoute = PacketsImport.update({ - id: '/packets', - path: '/packets', +const RootRoute = RootImport.update({ + id: '/root', + path: '/root', getParentRoute: () => rootRoute, } as any) @@ -116,13 +116,6 @@ declare module '@tanstack/react-router' { preLoaderRoute: typeof MapImport parentRoute: typeof rootRoute } - '/packets': { - id: '/packets' - path: '/packets' - fullPath: '/packets' - preLoaderRoute: typeof PacketsImport - parentRoute: typeof rootRoute - } '/root': { id: '/root' path: '/root' @@ -130,6 +123,13 @@ declare module '@tanstack/react-router' { preLoaderRoute: typeof RootImport parentRoute: typeof rootRoute } + '/stream': { + id: '/stream' + path: '/stream' + fullPath: '/stream' + preLoaderRoute: typeof StreamImport + parentRoute: typeof rootRoute + } '/channel/$channelId': { id: '/channel/$channelId' path: '/channel/$channelId' @@ -155,8 +155,8 @@ export interface FileRoutesByFullPath { '/demo': typeof DemoRoute '/home': typeof HomeRoute '/map': typeof MapRoute - '/packets': typeof PacketsRoute '/root': typeof RootRoute + '/stream': typeof StreamRoute '/channel/$channelId': typeof ChannelChannelIdRoute '/node/$nodeId': typeof NodeNodeIdRoute } @@ -167,8 +167,8 @@ export interface FileRoutesByTo { '/demo': typeof DemoRoute '/home': typeof HomeRoute '/map': typeof MapRoute - '/packets': typeof PacketsRoute '/root': typeof RootRoute + '/stream': typeof StreamRoute '/channel/$channelId': typeof ChannelChannelIdRoute '/node/$nodeId': typeof NodeNodeIdRoute } @@ -180,8 +180,8 @@ export interface FileRoutesById { '/demo': typeof DemoRoute '/home': typeof HomeRoute '/map': typeof MapRoute - '/packets': typeof PacketsRoute '/root': typeof RootRoute + '/stream': typeof StreamRoute '/channel/$channelId': typeof ChannelChannelIdRoute '/node/$nodeId': typeof NodeNodeIdRoute } @@ -194,8 +194,8 @@ export interface FileRouteTypes { | '/demo' | '/home' | '/map' - | '/packets' | '/root' + | '/stream' | '/channel/$channelId' | '/node/$nodeId' fileRoutesByTo: FileRoutesByTo @@ -205,8 +205,8 @@ export interface FileRouteTypes { | '/demo' | '/home' | '/map' - | '/packets' | '/root' + | '/stream' | '/channel/$channelId' | '/node/$nodeId' id: @@ -216,8 +216,8 @@ export interface FileRouteTypes { | '/demo' | '/home' | '/map' - | '/packets' | '/root' + | '/stream' | '/channel/$channelId' | '/node/$nodeId' fileRoutesById: FileRoutesById @@ -229,8 +229,8 @@ export interface RootRouteChildren { DemoRoute: typeof DemoRoute HomeRoute: typeof HomeRoute MapRoute: typeof MapRoute - PacketsRoute: typeof PacketsRoute RootRoute: typeof RootRoute + StreamRoute: typeof StreamRoute ChannelChannelIdRoute: typeof ChannelChannelIdRoute NodeNodeIdRoute: typeof NodeNodeIdRoute } @@ -241,8 +241,8 @@ const rootRouteChildren: RootRouteChildren = { DemoRoute: DemoRoute, HomeRoute: HomeRoute, MapRoute: MapRoute, - PacketsRoute: PacketsRoute, RootRoute: RootRoute, + StreamRoute: StreamRoute, ChannelChannelIdRoute: ChannelChannelIdRoute, NodeNodeIdRoute: NodeNodeIdRoute, } @@ -262,8 +262,8 @@ export const routeTree = rootRoute "/demo", "/home", "/map", - "/packets", "/root", + "/stream", "/channel/$channelId", "/node/$nodeId" ] @@ -283,12 +283,12 @@ export const routeTree = rootRoute "/map": { "filePath": "map.tsx" }, - "/packets": { - "filePath": "packets.tsx" - }, "/root": { "filePath": "root.tsx" }, + "/stream": { + "filePath": "stream.tsx" + }, "/channel/$channelId": { "filePath": "channel.$channelId.tsx" }, diff --git a/web/src/routes/packets.tsx b/web/src/routes/stream.tsx similarity index 82% rename from web/src/routes/packets.tsx rename to web/src/routes/stream.tsx index bd1ada1..8fd8ea6 100644 --- a/web/src/routes/packets.tsx +++ b/web/src/routes/stream.tsx @@ -1,7 +1,7 @@ import { PacketList, PageWrapper } from "../components"; import { createFileRoute } from "@tanstack/react-router"; -export const Route = createFileRoute("/packets")({ +export const Route = createFileRoute("/stream")({ component: PacketsPage, });