alternative tangled frontend (extremely wip)
at main 177 lines 5.9 kB view raw
1/* eslint-disable */ 2 3// @ts-nocheck 4 5// noinspection JSUnusedGlobalSymbols 6 7// This file was automatically generated by TanStack Router. 8// You should NOT make any changes in this file as it will be overwritten. 9// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified. 10 11import { Route as rootRouteImport } from './routes/__root' 12import { Route as LayoutRouteImport } from './routes/_layout' 13import { Route as LayoutIndexRouteImport } from './routes/_layout/index' 14import { Route as LayoutLoginRouteImport } from './routes/_layout/login' 15import { Route as LayoutIdentifierIndexRouteImport } from './routes/_layout/$identifier/index' 16import { Route as LayoutOauthCallbackRouteImport } from './routes/_layout/oauth/callback' 17import { Route as LayoutIdentifierRepoIndexRouteImport } from './routes/_layout/$identifier/$repo/index' 18 19const LayoutRoute = LayoutRouteImport.update({ 20 id: '/_layout', 21 getParentRoute: () => rootRouteImport, 22} as any) 23const LayoutIndexRoute = LayoutIndexRouteImport.update({ 24 id: '/', 25 path: '/', 26 getParentRoute: () => LayoutRoute, 27} as any) 28const LayoutLoginRoute = LayoutLoginRouteImport.update({ 29 id: '/login', 30 path: '/login', 31 getParentRoute: () => LayoutRoute, 32} as any) 33const LayoutIdentifierIndexRoute = LayoutIdentifierIndexRouteImport.update({ 34 id: '/$identifier/', 35 path: '/$identifier/', 36 getParentRoute: () => LayoutRoute, 37} as any) 38const LayoutOauthCallbackRoute = LayoutOauthCallbackRouteImport.update({ 39 id: '/oauth/callback', 40 path: '/oauth/callback', 41 getParentRoute: () => LayoutRoute, 42} as any) 43const LayoutIdentifierRepoIndexRoute = 44 LayoutIdentifierRepoIndexRouteImport.update({ 45 id: '/$identifier/$repo/', 46 path: '/$identifier/$repo/', 47 getParentRoute: () => LayoutRoute, 48 } as any) 49 50export interface FileRoutesByFullPath { 51 '/login': typeof LayoutLoginRoute 52 '/': typeof LayoutIndexRoute 53 '/oauth/callback': typeof LayoutOauthCallbackRoute 54 '/$identifier': typeof LayoutIdentifierIndexRoute 55 '/$identifier/$repo': typeof LayoutIdentifierRepoIndexRoute 56} 57export interface FileRoutesByTo { 58 '/login': typeof LayoutLoginRoute 59 '/': typeof LayoutIndexRoute 60 '/oauth/callback': typeof LayoutOauthCallbackRoute 61 '/$identifier': typeof LayoutIdentifierIndexRoute 62 '/$identifier/$repo': typeof LayoutIdentifierRepoIndexRoute 63} 64export interface FileRoutesById { 65 __root__: typeof rootRouteImport 66 '/_layout': typeof LayoutRouteWithChildren 67 '/_layout/login': typeof LayoutLoginRoute 68 '/_layout/': typeof LayoutIndexRoute 69 '/_layout/oauth/callback': typeof LayoutOauthCallbackRoute 70 '/_layout/$identifier/': typeof LayoutIdentifierIndexRoute 71 '/_layout/$identifier/$repo/': typeof LayoutIdentifierRepoIndexRoute 72} 73export interface FileRouteTypes { 74 fileRoutesByFullPath: FileRoutesByFullPath 75 fullPaths: 76 | '/login' 77 | '/' 78 | '/oauth/callback' 79 | '/$identifier' 80 | '/$identifier/$repo' 81 fileRoutesByTo: FileRoutesByTo 82 to: '/login' | '/' | '/oauth/callback' | '/$identifier' | '/$identifier/$repo' 83 id: 84 | '__root__' 85 | '/_layout' 86 | '/_layout/login' 87 | '/_layout/' 88 | '/_layout/oauth/callback' 89 | '/_layout/$identifier/' 90 | '/_layout/$identifier/$repo/' 91 fileRoutesById: FileRoutesById 92} 93export interface RootRouteChildren { 94 LayoutRoute: typeof LayoutRouteWithChildren 95} 96 97declare module '@tanstack/react-router' { 98 interface FileRoutesByPath { 99 '/_layout': { 100 id: '/_layout' 101 path: '' 102 fullPath: '' 103 preLoaderRoute: typeof LayoutRouteImport 104 parentRoute: typeof rootRouteImport 105 } 106 '/_layout/': { 107 id: '/_layout/' 108 path: '/' 109 fullPath: '/' 110 preLoaderRoute: typeof LayoutIndexRouteImport 111 parentRoute: typeof LayoutRoute 112 } 113 '/_layout/login': { 114 id: '/_layout/login' 115 path: '/login' 116 fullPath: '/login' 117 preLoaderRoute: typeof LayoutLoginRouteImport 118 parentRoute: typeof LayoutRoute 119 } 120 '/_layout/$identifier/': { 121 id: '/_layout/$identifier/' 122 path: '/$identifier' 123 fullPath: '/$identifier' 124 preLoaderRoute: typeof LayoutIdentifierIndexRouteImport 125 parentRoute: typeof LayoutRoute 126 } 127 '/_layout/oauth/callback': { 128 id: '/_layout/oauth/callback' 129 path: '/oauth/callback' 130 fullPath: '/oauth/callback' 131 preLoaderRoute: typeof LayoutOauthCallbackRouteImport 132 parentRoute: typeof LayoutRoute 133 } 134 '/_layout/$identifier/$repo/': { 135 id: '/_layout/$identifier/$repo/' 136 path: '/$identifier/$repo' 137 fullPath: '/$identifier/$repo' 138 preLoaderRoute: typeof LayoutIdentifierRepoIndexRouteImport 139 parentRoute: typeof LayoutRoute 140 } 141 } 142} 143 144interface LayoutRouteChildren { 145 LayoutLoginRoute: typeof LayoutLoginRoute 146 LayoutIndexRoute: typeof LayoutIndexRoute 147 LayoutOauthCallbackRoute: typeof LayoutOauthCallbackRoute 148 LayoutIdentifierIndexRoute: typeof LayoutIdentifierIndexRoute 149 LayoutIdentifierRepoIndexRoute: typeof LayoutIdentifierRepoIndexRoute 150} 151 152const LayoutRouteChildren: LayoutRouteChildren = { 153 LayoutLoginRoute: LayoutLoginRoute, 154 LayoutIndexRoute: LayoutIndexRoute, 155 LayoutOauthCallbackRoute: LayoutOauthCallbackRoute, 156 LayoutIdentifierIndexRoute: LayoutIdentifierIndexRoute, 157 LayoutIdentifierRepoIndexRoute: LayoutIdentifierRepoIndexRoute, 158} 159 160const LayoutRouteWithChildren = 161 LayoutRoute._addFileChildren(LayoutRouteChildren) 162 163const rootRouteChildren: RootRouteChildren = { 164 LayoutRoute: LayoutRouteWithChildren, 165} 166export const routeTree = rootRouteImport 167 ._addFileChildren(rootRouteChildren) 168 ._addFileTypes<FileRouteTypes>() 169 170import type { getRouter } from './router.tsx' 171import type { createStart } from '@tanstack/react-start' 172declare module '@tanstack/react-start' { 173 interface Register { 174 ssr: true 175 router: Awaited<ReturnType<typeof getRouter>> 176 } 177}