alternative tangled frontend (extremely wip)

feat: repo routes

serenity cc79c8c5 011b3622

+64 -2
+46 -2
src/routeTree.gen.ts
··· 12 import { Route as LayoutRouteImport } from './routes/_layout' 13 import { Route as LayoutIndexRouteImport } from './routes/_layout/index' 14 import { Route as LayoutLoginRouteImport } from './routes/_layout/login' 15 import { Route as LayoutOauthCallbackRouteImport } from './routes/_layout/oauth/callback' 16 17 const LayoutRoute = LayoutRouteImport.update({ 18 id: '/_layout', ··· 28 path: '/login', 29 getParentRoute: () => LayoutRoute, 30 } as any) 31 const LayoutOauthCallbackRoute = LayoutOauthCallbackRouteImport.update({ 32 id: '/oauth/callback', 33 path: '/oauth/callback', 34 getParentRoute: () => LayoutRoute, 35 } as any) 36 37 export interface FileRoutesByFullPath { 38 '/login': typeof LayoutLoginRoute 39 '/': typeof LayoutIndexRoute 40 '/oauth/callback': typeof LayoutOauthCallbackRoute 41 } 42 export interface FileRoutesByTo { 43 '/login': typeof LayoutLoginRoute 44 '/': typeof LayoutIndexRoute 45 '/oauth/callback': typeof LayoutOauthCallbackRoute 46 } 47 export interface FileRoutesById { 48 __root__: typeof rootRouteImport ··· 50 '/_layout/login': typeof LayoutLoginRoute 51 '/_layout/': typeof LayoutIndexRoute 52 '/_layout/oauth/callback': typeof LayoutOauthCallbackRoute 53 } 54 export interface FileRouteTypes { 55 fileRoutesByFullPath: FileRoutesByFullPath 56 - fullPaths: '/login' | '/' | '/oauth/callback' 57 fileRoutesByTo: FileRoutesByTo 58 - to: '/login' | '/' | '/oauth/callback' 59 id: 60 | '__root__' 61 | '/_layout' 62 | '/_layout/login' 63 | '/_layout/' 64 | '/_layout/oauth/callback' 65 fileRoutesById: FileRoutesById 66 } 67 export interface RootRouteChildren { ··· 91 preLoaderRoute: typeof LayoutLoginRouteImport 92 parentRoute: typeof LayoutRoute 93 } 94 '/_layout/oauth/callback': { 95 id: '/_layout/oauth/callback' 96 path: '/oauth/callback' ··· 98 preLoaderRoute: typeof LayoutOauthCallbackRouteImport 99 parentRoute: typeof LayoutRoute 100 } 101 } 102 } 103 ··· 105 LayoutLoginRoute: typeof LayoutLoginRoute 106 LayoutIndexRoute: typeof LayoutIndexRoute 107 LayoutOauthCallbackRoute: typeof LayoutOauthCallbackRoute 108 } 109 110 const LayoutRouteChildren: LayoutRouteChildren = { 111 LayoutLoginRoute: LayoutLoginRoute, 112 LayoutIndexRoute: LayoutIndexRoute, 113 LayoutOauthCallbackRoute: LayoutOauthCallbackRoute, 114 } 115 116 const LayoutRouteWithChildren =
··· 12 import { Route as LayoutRouteImport } from './routes/_layout' 13 import { Route as LayoutIndexRouteImport } from './routes/_layout/index' 14 import { Route as LayoutLoginRouteImport } from './routes/_layout/login' 15 + import { Route as LayoutIdentifierIndexRouteImport } from './routes/_layout/$identifier/index' 16 import { Route as LayoutOauthCallbackRouteImport } from './routes/_layout/oauth/callback' 17 + import { Route as LayoutIdentifierRepoIndexRouteImport } from './routes/_layout/$identifier/$repo/index' 18 19 const LayoutRoute = LayoutRouteImport.update({ 20 id: '/_layout', ··· 30 path: '/login', 31 getParentRoute: () => LayoutRoute, 32 } as any) 33 + const LayoutIdentifierIndexRoute = LayoutIdentifierIndexRouteImport.update({ 34 + id: '/$identifier/', 35 + path: '/$identifier/', 36 + getParentRoute: () => LayoutRoute, 37 + } as any) 38 const LayoutOauthCallbackRoute = LayoutOauthCallbackRouteImport.update({ 39 id: '/oauth/callback', 40 path: '/oauth/callback', 41 getParentRoute: () => LayoutRoute, 42 } as any) 43 + const LayoutIdentifierRepoIndexRoute = 44 + LayoutIdentifierRepoIndexRouteImport.update({ 45 + id: '/$identifier/$repo/', 46 + path: '/$identifier/$repo/', 47 + getParentRoute: () => LayoutRoute, 48 + } as any) 49 50 export interface FileRoutesByFullPath { 51 '/login': typeof LayoutLoginRoute 52 '/': typeof LayoutIndexRoute 53 '/oauth/callback': typeof LayoutOauthCallbackRoute 54 + '/$identifier': typeof LayoutIdentifierIndexRoute 55 + '/$identifier/$repo': typeof LayoutIdentifierRepoIndexRoute 56 } 57 export interface FileRoutesByTo { 58 '/login': typeof LayoutLoginRoute 59 '/': typeof LayoutIndexRoute 60 '/oauth/callback': typeof LayoutOauthCallbackRoute 61 + '/$identifier': typeof LayoutIdentifierIndexRoute 62 + '/$identifier/$repo': typeof LayoutIdentifierRepoIndexRoute 63 } 64 export interface FileRoutesById { 65 __root__: typeof rootRouteImport ··· 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 } 73 export 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 } 93 export interface RootRouteChildren { ··· 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' ··· 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 ··· 145 LayoutLoginRoute: typeof LayoutLoginRoute 146 LayoutIndexRoute: typeof LayoutIndexRoute 147 LayoutOauthCallbackRoute: typeof LayoutOauthCallbackRoute 148 + LayoutIdentifierIndexRoute: typeof LayoutIdentifierIndexRoute 149 + LayoutIdentifierRepoIndexRoute: typeof LayoutIdentifierRepoIndexRoute 150 } 151 152 const LayoutRouteChildren: LayoutRouteChildren = { 153 LayoutLoginRoute: LayoutLoginRoute, 154 LayoutIndexRoute: LayoutIndexRoute, 155 LayoutOauthCallbackRoute: LayoutOauthCallbackRoute, 156 + LayoutIdentifierIndexRoute: LayoutIdentifierIndexRoute, 157 + LayoutIdentifierRepoIndexRoute: LayoutIdentifierRepoIndexRoute, 158 } 159 160 const LayoutRouteWithChildren =
+9
src/routes/_layout/$identifier/$repo/index.tsx
···
··· 1 + import { createFileRoute } from '@tanstack/react-router' 2 + 3 + export const Route = createFileRoute('/_layout/$identifier/$repo/')({ 4 + component: RouteComponent, 5 + }) 6 + 7 + function RouteComponent() { 8 + return <div>Hello "/_layout/$identifier/$repo/"!</div> 9 + }
+9
src/routes/_layout/$identifier/index.tsx
···
··· 1 + import { createFileRoute } from '@tanstack/react-router' 2 + 3 + export const Route = createFileRoute('/_layout/$identifier/')({ 4 + component: RouteComponent, 5 + }) 6 + 7 + function RouteComponent() { 8 + return <div>Hello "/_layout/$identifier/"!</div> 9 + }