create-croissant 0.1.43 → 0.1.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/add.js +25 -0
- package/dist/index.js +20 -7
- package/package.json +5 -4
- package/template/.expo/README.md +13 -0
- package/template/.expo/devices.json +3 -0
- package/template/apps/desktop/.eslintcache +1 -0
- package/template/apps/mobile/app/(tabs)/_layout.tsx +21 -14
- package/template/apps/mobile/app/(tabs)/account.tsx +147 -0
- package/template/apps/mobile/app/(tabs)/explore.tsx +334 -104
- package/template/apps/mobile/app/(tabs)/index.tsx +102 -85
- package/template/apps/mobile/app/_layout.tsx +26 -7
- package/template/apps/mobile/app/index.tsx +136 -0
- package/template/apps/mobile/app/login.tsx +135 -0
- package/template/apps/mobile/app/signup.tsx +144 -0
- package/template/apps/mobile/app.json +3 -3
- package/template/apps/mobile/components/ui/button.tsx +86 -0
- package/template/apps/mobile/components/ui/input.tsx +56 -0
- package/template/apps/mobile/lib/auth-client.ts +14 -0
- package/template/apps/mobile/lib/orpc.ts +23 -0
- package/template/apps/mobile/package.json +17 -2
- package/template/apps/mobile/tsconfig.json +4 -1
- package/template/apps/platform/package.json +2 -1
- package/template/apps/platform/src/components/login-form.tsx +5 -4
- package/template/apps/platform/src/components/signup-form.tsx +12 -16
- package/template/apps/platform/src/routeTree.gen.ts +267 -264
- package/template/apps/platform/src/routes/__root.tsx +6 -2
- package/template/apps/platform/src/routes/_auth/account.tsx +13 -17
- package/template/apps/platform/src/routes/_auth/examples/client-orpc-auth.tsx +2 -6
- package/template/apps/platform/src/routes/_public/examples/client-orpc.tsx +16 -29
- package/template/apps/platform/src/routes/_public/examples/ssr-orpc.tsx +10 -14
- package/template/apps/platform/src/routes/api/auth/$.ts +23 -2
- package/template/apps/platform/src/routes/api/rpc.$.ts +18 -0
- package/template/package.json +2 -4
- package/template/packages/orpc/package.json +7 -1
- package/template/packages/orpc/src/lib/planets.ts +18 -18
- package/template/packages/orpc/src/lib/router.ts +3 -3
- package/template/packages/orpc/src/react/context.tsx +23 -0
- package/template/packages/orpc/src/react/general.ts +29 -0
- package/template/packages/orpc/src/react/index.ts +3 -0
- package/template/packages/orpc/src/react/planets.ts +90 -0
- package/template/tsconfig.json +2 -1
- package/template/apps/mobile/app/modal.tsx +0 -29
|
@@ -8,298 +8,300 @@
|
|
|
8
8
|
// You should NOT make any changes in this file as it will be overwritten.
|
|
9
9
|
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
|
|
10
10
|
|
|
11
|
-
import { Route as rootRouteImport } from
|
|
12
|
-
import { Route as PublicRouteImport } from
|
|
13
|
-
import { Route as AuthRouteImport } from
|
|
14
|
-
import { Route as PublicIndexRouteImport } from
|
|
15
|
-
import { Route as PublicSignupRouteImport } from
|
|
16
|
-
import { Route as PublicLoginRouteImport } from
|
|
17
|
-
import { Route as AuthDashboardRouteImport } from
|
|
18
|
-
import { Route as AuthAccountRouteImport } from
|
|
19
|
-
import { Route as ApiRpcSplatRouteImport } from
|
|
20
|
-
import { Route as ApiAuthSplatRouteImport } from
|
|
21
|
-
import { Route as PublicExamplesSsrOrpcRouteImport } from
|
|
22
|
-
import { Route as PublicExamplesIsrRouteImport } from
|
|
23
|
-
import { Route as PublicExamplesClientOrpcRouteImport } from
|
|
24
|
-
import { Route as AuthExamplesSsrOrpcAuthRouteImport } from
|
|
25
|
-
import { Route as AuthExamplesClientOrpcAuthRouteImport } from
|
|
11
|
+
import { Route as rootRouteImport } from './routes/__root'
|
|
12
|
+
import { Route as PublicRouteImport } from './routes/_public'
|
|
13
|
+
import { Route as AuthRouteImport } from './routes/_auth'
|
|
14
|
+
import { Route as PublicIndexRouteImport } from './routes/_public/index'
|
|
15
|
+
import { Route as PublicSignupRouteImport } from './routes/_public/signup'
|
|
16
|
+
import { Route as PublicLoginRouteImport } from './routes/_public/login'
|
|
17
|
+
import { Route as AuthDashboardRouteImport } from './routes/_auth/dashboard'
|
|
18
|
+
import { Route as AuthAccountRouteImport } from './routes/_auth/account'
|
|
19
|
+
import { Route as ApiRpcSplatRouteImport } from './routes/api/rpc.$'
|
|
20
|
+
import { Route as ApiAuthSplatRouteImport } from './routes/api/auth/$'
|
|
21
|
+
import { Route as PublicExamplesSsrOrpcRouteImport } from './routes/_public/examples/ssr-orpc'
|
|
22
|
+
import { Route as PublicExamplesIsrRouteImport } from './routes/_public/examples/isr'
|
|
23
|
+
import { Route as PublicExamplesClientOrpcRouteImport } from './routes/_public/examples/client-orpc'
|
|
24
|
+
import { Route as AuthExamplesSsrOrpcAuthRouteImport } from './routes/_auth/examples/ssr-orpc-auth'
|
|
25
|
+
import { Route as AuthExamplesClientOrpcAuthRouteImport } from './routes/_auth/examples/client-orpc-auth'
|
|
26
26
|
|
|
27
27
|
const PublicRoute = PublicRouteImport.update({
|
|
28
|
-
id:
|
|
28
|
+
id: '/_public',
|
|
29
29
|
getParentRoute: () => rootRouteImport,
|
|
30
|
-
} as any)
|
|
30
|
+
} as any)
|
|
31
31
|
const AuthRoute = AuthRouteImport.update({
|
|
32
|
-
id:
|
|
32
|
+
id: '/_auth',
|
|
33
33
|
getParentRoute: () => rootRouteImport,
|
|
34
|
-
} as any)
|
|
34
|
+
} as any)
|
|
35
35
|
const PublicIndexRoute = PublicIndexRouteImport.update({
|
|
36
|
-
id:
|
|
37
|
-
path:
|
|
36
|
+
id: '/',
|
|
37
|
+
path: '/',
|
|
38
38
|
getParentRoute: () => PublicRoute,
|
|
39
|
-
} as any)
|
|
39
|
+
} as any)
|
|
40
40
|
const PublicSignupRoute = PublicSignupRouteImport.update({
|
|
41
|
-
id:
|
|
42
|
-
path:
|
|
41
|
+
id: '/signup',
|
|
42
|
+
path: '/signup',
|
|
43
43
|
getParentRoute: () => PublicRoute,
|
|
44
|
-
} as any)
|
|
44
|
+
} as any)
|
|
45
45
|
const PublicLoginRoute = PublicLoginRouteImport.update({
|
|
46
|
-
id:
|
|
47
|
-
path:
|
|
46
|
+
id: '/login',
|
|
47
|
+
path: '/login',
|
|
48
48
|
getParentRoute: () => PublicRoute,
|
|
49
|
-
} as any)
|
|
49
|
+
} as any)
|
|
50
50
|
const AuthDashboardRoute = AuthDashboardRouteImport.update({
|
|
51
|
-
id:
|
|
52
|
-
path:
|
|
51
|
+
id: '/dashboard',
|
|
52
|
+
path: '/dashboard',
|
|
53
53
|
getParentRoute: () => AuthRoute,
|
|
54
|
-
} as any)
|
|
54
|
+
} as any)
|
|
55
55
|
const AuthAccountRoute = AuthAccountRouteImport.update({
|
|
56
|
-
id:
|
|
57
|
-
path:
|
|
56
|
+
id: '/account',
|
|
57
|
+
path: '/account',
|
|
58
58
|
getParentRoute: () => AuthRoute,
|
|
59
|
-
} as any)
|
|
59
|
+
} as any)
|
|
60
60
|
const ApiRpcSplatRoute = ApiRpcSplatRouteImport.update({
|
|
61
|
-
id:
|
|
62
|
-
path:
|
|
61
|
+
id: '/api/rpc/$',
|
|
62
|
+
path: '/api/rpc/$',
|
|
63
63
|
getParentRoute: () => rootRouteImport,
|
|
64
|
-
} as any)
|
|
64
|
+
} as any)
|
|
65
65
|
const ApiAuthSplatRoute = ApiAuthSplatRouteImport.update({
|
|
66
|
-
id:
|
|
67
|
-
path:
|
|
66
|
+
id: '/api/auth/$',
|
|
67
|
+
path: '/api/auth/$',
|
|
68
68
|
getParentRoute: () => rootRouteImport,
|
|
69
|
-
} as any)
|
|
69
|
+
} as any)
|
|
70
70
|
const PublicExamplesSsrOrpcRoute = PublicExamplesSsrOrpcRouteImport.update({
|
|
71
|
-
id:
|
|
72
|
-
path:
|
|
71
|
+
id: '/examples/ssr-orpc',
|
|
72
|
+
path: '/examples/ssr-orpc',
|
|
73
73
|
getParentRoute: () => PublicRoute,
|
|
74
|
-
} as any)
|
|
74
|
+
} as any)
|
|
75
75
|
const PublicExamplesIsrRoute = PublicExamplesIsrRouteImport.update({
|
|
76
|
-
id:
|
|
77
|
-
path:
|
|
76
|
+
id: '/examples/isr',
|
|
77
|
+
path: '/examples/isr',
|
|
78
78
|
getParentRoute: () => PublicRoute,
|
|
79
|
-
} as any)
|
|
80
|
-
const PublicExamplesClientOrpcRoute =
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
79
|
+
} as any)
|
|
80
|
+
const PublicExamplesClientOrpcRoute =
|
|
81
|
+
PublicExamplesClientOrpcRouteImport.update({
|
|
82
|
+
id: '/examples/client-orpc',
|
|
83
|
+
path: '/examples/client-orpc',
|
|
84
|
+
getParentRoute: () => PublicRoute,
|
|
85
|
+
} as any)
|
|
85
86
|
const AuthExamplesSsrOrpcAuthRoute = AuthExamplesSsrOrpcAuthRouteImport.update({
|
|
86
|
-
id:
|
|
87
|
-
path:
|
|
88
|
-
getParentRoute: () => AuthRoute,
|
|
89
|
-
} as any);
|
|
90
|
-
const AuthExamplesClientOrpcAuthRoute = AuthExamplesClientOrpcAuthRouteImport.update({
|
|
91
|
-
id: "/examples/client-orpc-auth",
|
|
92
|
-
path: "/examples/client-orpc-auth",
|
|
87
|
+
id: '/examples/ssr-orpc-auth',
|
|
88
|
+
path: '/examples/ssr-orpc-auth',
|
|
93
89
|
getParentRoute: () => AuthRoute,
|
|
94
|
-
} as any)
|
|
90
|
+
} as any)
|
|
91
|
+
const AuthExamplesClientOrpcAuthRoute =
|
|
92
|
+
AuthExamplesClientOrpcAuthRouteImport.update({
|
|
93
|
+
id: '/examples/client-orpc-auth',
|
|
94
|
+
path: '/examples/client-orpc-auth',
|
|
95
|
+
getParentRoute: () => AuthRoute,
|
|
96
|
+
} as any)
|
|
95
97
|
|
|
96
98
|
export interface FileRoutesByFullPath {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
99
|
+
'/': typeof PublicIndexRoute
|
|
100
|
+
'/account': typeof AuthAccountRoute
|
|
101
|
+
'/dashboard': typeof AuthDashboardRoute
|
|
102
|
+
'/login': typeof PublicLoginRoute
|
|
103
|
+
'/signup': typeof PublicSignupRoute
|
|
104
|
+
'/examples/client-orpc-auth': typeof AuthExamplesClientOrpcAuthRoute
|
|
105
|
+
'/examples/ssr-orpc-auth': typeof AuthExamplesSsrOrpcAuthRoute
|
|
106
|
+
'/examples/client-orpc': typeof PublicExamplesClientOrpcRoute
|
|
107
|
+
'/examples/isr': typeof PublicExamplesIsrRoute
|
|
108
|
+
'/examples/ssr-orpc': typeof PublicExamplesSsrOrpcRoute
|
|
109
|
+
'/api/auth/$': typeof ApiAuthSplatRoute
|
|
110
|
+
'/api/rpc/$': typeof ApiRpcSplatRoute
|
|
109
111
|
}
|
|
110
112
|
export interface FileRoutesByTo {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
113
|
+
'/': typeof PublicIndexRoute
|
|
114
|
+
'/account': typeof AuthAccountRoute
|
|
115
|
+
'/dashboard': typeof AuthDashboardRoute
|
|
116
|
+
'/login': typeof PublicLoginRoute
|
|
117
|
+
'/signup': typeof PublicSignupRoute
|
|
118
|
+
'/examples/client-orpc-auth': typeof AuthExamplesClientOrpcAuthRoute
|
|
119
|
+
'/examples/ssr-orpc-auth': typeof AuthExamplesSsrOrpcAuthRoute
|
|
120
|
+
'/examples/client-orpc': typeof PublicExamplesClientOrpcRoute
|
|
121
|
+
'/examples/isr': typeof PublicExamplesIsrRoute
|
|
122
|
+
'/examples/ssr-orpc': typeof PublicExamplesSsrOrpcRoute
|
|
123
|
+
'/api/auth/$': typeof ApiAuthSplatRoute
|
|
124
|
+
'/api/rpc/$': typeof ApiRpcSplatRoute
|
|
123
125
|
}
|
|
124
126
|
export interface FileRoutesById {
|
|
125
|
-
__root__: typeof rootRouteImport
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
127
|
+
__root__: typeof rootRouteImport
|
|
128
|
+
'/_auth': typeof AuthRouteWithChildren
|
|
129
|
+
'/_public': typeof PublicRouteWithChildren
|
|
130
|
+
'/_auth/account': typeof AuthAccountRoute
|
|
131
|
+
'/_auth/dashboard': typeof AuthDashboardRoute
|
|
132
|
+
'/_public/login': typeof PublicLoginRoute
|
|
133
|
+
'/_public/signup': typeof PublicSignupRoute
|
|
134
|
+
'/_public/': typeof PublicIndexRoute
|
|
135
|
+
'/_auth/examples/client-orpc-auth': typeof AuthExamplesClientOrpcAuthRoute
|
|
136
|
+
'/_auth/examples/ssr-orpc-auth': typeof AuthExamplesSsrOrpcAuthRoute
|
|
137
|
+
'/_public/examples/client-orpc': typeof PublicExamplesClientOrpcRoute
|
|
138
|
+
'/_public/examples/isr': typeof PublicExamplesIsrRoute
|
|
139
|
+
'/_public/examples/ssr-orpc': typeof PublicExamplesSsrOrpcRoute
|
|
140
|
+
'/api/auth/$': typeof ApiAuthSplatRoute
|
|
141
|
+
'/api/rpc/$': typeof ApiRpcSplatRoute
|
|
140
142
|
}
|
|
141
143
|
export interface FileRouteTypes {
|
|
142
|
-
fileRoutesByFullPath: FileRoutesByFullPath
|
|
144
|
+
fileRoutesByFullPath: FileRoutesByFullPath
|
|
143
145
|
fullPaths:
|
|
144
|
-
|
|
|
145
|
-
|
|
|
146
|
-
|
|
|
147
|
-
|
|
|
148
|
-
|
|
|
149
|
-
|
|
|
150
|
-
|
|
|
151
|
-
|
|
|
152
|
-
|
|
|
153
|
-
|
|
|
154
|
-
|
|
|
155
|
-
|
|
|
156
|
-
fileRoutesByTo: FileRoutesByTo
|
|
146
|
+
| '/'
|
|
147
|
+
| '/account'
|
|
148
|
+
| '/dashboard'
|
|
149
|
+
| '/login'
|
|
150
|
+
| '/signup'
|
|
151
|
+
| '/examples/client-orpc-auth'
|
|
152
|
+
| '/examples/ssr-orpc-auth'
|
|
153
|
+
| '/examples/client-orpc'
|
|
154
|
+
| '/examples/isr'
|
|
155
|
+
| '/examples/ssr-orpc'
|
|
156
|
+
| '/api/auth/$'
|
|
157
|
+
| '/api/rpc/$'
|
|
158
|
+
fileRoutesByTo: FileRoutesByTo
|
|
157
159
|
to:
|
|
158
|
-
|
|
|
159
|
-
|
|
|
160
|
-
|
|
|
161
|
-
|
|
|
162
|
-
|
|
|
163
|
-
|
|
|
164
|
-
|
|
|
165
|
-
|
|
|
166
|
-
|
|
|
167
|
-
|
|
|
168
|
-
|
|
|
169
|
-
|
|
|
160
|
+
| '/'
|
|
161
|
+
| '/account'
|
|
162
|
+
| '/dashboard'
|
|
163
|
+
| '/login'
|
|
164
|
+
| '/signup'
|
|
165
|
+
| '/examples/client-orpc-auth'
|
|
166
|
+
| '/examples/ssr-orpc-auth'
|
|
167
|
+
| '/examples/client-orpc'
|
|
168
|
+
| '/examples/isr'
|
|
169
|
+
| '/examples/ssr-orpc'
|
|
170
|
+
| '/api/auth/$'
|
|
171
|
+
| '/api/rpc/$'
|
|
170
172
|
id:
|
|
171
|
-
|
|
|
172
|
-
|
|
|
173
|
-
|
|
|
174
|
-
|
|
|
175
|
-
|
|
|
176
|
-
|
|
|
177
|
-
|
|
|
178
|
-
|
|
|
179
|
-
|
|
|
180
|
-
|
|
|
181
|
-
|
|
|
182
|
-
|
|
|
183
|
-
|
|
|
184
|
-
|
|
|
185
|
-
|
|
|
186
|
-
fileRoutesById: FileRoutesById
|
|
173
|
+
| '__root__'
|
|
174
|
+
| '/_auth'
|
|
175
|
+
| '/_public'
|
|
176
|
+
| '/_auth/account'
|
|
177
|
+
| '/_auth/dashboard'
|
|
178
|
+
| '/_public/login'
|
|
179
|
+
| '/_public/signup'
|
|
180
|
+
| '/_public/'
|
|
181
|
+
| '/_auth/examples/client-orpc-auth'
|
|
182
|
+
| '/_auth/examples/ssr-orpc-auth'
|
|
183
|
+
| '/_public/examples/client-orpc'
|
|
184
|
+
| '/_public/examples/isr'
|
|
185
|
+
| '/_public/examples/ssr-orpc'
|
|
186
|
+
| '/api/auth/$'
|
|
187
|
+
| '/api/rpc/$'
|
|
188
|
+
fileRoutesById: FileRoutesById
|
|
187
189
|
}
|
|
188
190
|
export interface RootRouteChildren {
|
|
189
|
-
AuthRoute: typeof AuthRouteWithChildren
|
|
190
|
-
PublicRoute: typeof PublicRouteWithChildren
|
|
191
|
-
ApiAuthSplatRoute: typeof ApiAuthSplatRoute
|
|
192
|
-
ApiRpcSplatRoute: typeof ApiRpcSplatRoute
|
|
191
|
+
AuthRoute: typeof AuthRouteWithChildren
|
|
192
|
+
PublicRoute: typeof PublicRouteWithChildren
|
|
193
|
+
ApiAuthSplatRoute: typeof ApiAuthSplatRoute
|
|
194
|
+
ApiRpcSplatRoute: typeof ApiRpcSplatRoute
|
|
193
195
|
}
|
|
194
196
|
|
|
195
|
-
declare module
|
|
197
|
+
declare module '@tanstack/react-router' {
|
|
196
198
|
interface FileRoutesByPath {
|
|
197
|
-
|
|
198
|
-
id:
|
|
199
|
-
path:
|
|
200
|
-
fullPath:
|
|
201
|
-
preLoaderRoute: typeof PublicRouteImport
|
|
202
|
-
parentRoute: typeof rootRouteImport
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
id:
|
|
206
|
-
path:
|
|
207
|
-
fullPath:
|
|
208
|
-
preLoaderRoute: typeof AuthRouteImport
|
|
209
|
-
parentRoute: typeof rootRouteImport
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
id:
|
|
213
|
-
path:
|
|
214
|
-
fullPath:
|
|
215
|
-
preLoaderRoute: typeof PublicIndexRouteImport
|
|
216
|
-
parentRoute: typeof PublicRoute
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
id:
|
|
220
|
-
path:
|
|
221
|
-
fullPath:
|
|
222
|
-
preLoaderRoute: typeof PublicSignupRouteImport
|
|
223
|
-
parentRoute: typeof PublicRoute
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
id:
|
|
227
|
-
path:
|
|
228
|
-
fullPath:
|
|
229
|
-
preLoaderRoute: typeof PublicLoginRouteImport
|
|
230
|
-
parentRoute: typeof PublicRoute
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
id:
|
|
234
|
-
path:
|
|
235
|
-
fullPath:
|
|
236
|
-
preLoaderRoute: typeof AuthDashboardRouteImport
|
|
237
|
-
parentRoute: typeof AuthRoute
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
id:
|
|
241
|
-
path:
|
|
242
|
-
fullPath:
|
|
243
|
-
preLoaderRoute: typeof AuthAccountRouteImport
|
|
244
|
-
parentRoute: typeof AuthRoute
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
id:
|
|
248
|
-
path:
|
|
249
|
-
fullPath:
|
|
250
|
-
preLoaderRoute: typeof ApiRpcSplatRouteImport
|
|
251
|
-
parentRoute: typeof rootRouteImport
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
id:
|
|
255
|
-
path:
|
|
256
|
-
fullPath:
|
|
257
|
-
preLoaderRoute: typeof ApiAuthSplatRouteImport
|
|
258
|
-
parentRoute: typeof rootRouteImport
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
id:
|
|
262
|
-
path:
|
|
263
|
-
fullPath:
|
|
264
|
-
preLoaderRoute: typeof PublicExamplesSsrOrpcRouteImport
|
|
265
|
-
parentRoute: typeof PublicRoute
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
id:
|
|
269
|
-
path:
|
|
270
|
-
fullPath:
|
|
271
|
-
preLoaderRoute: typeof PublicExamplesIsrRouteImport
|
|
272
|
-
parentRoute: typeof PublicRoute
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
id:
|
|
276
|
-
path:
|
|
277
|
-
fullPath:
|
|
278
|
-
preLoaderRoute: typeof PublicExamplesClientOrpcRouteImport
|
|
279
|
-
parentRoute: typeof PublicRoute
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
id:
|
|
283
|
-
path:
|
|
284
|
-
fullPath:
|
|
285
|
-
preLoaderRoute: typeof AuthExamplesSsrOrpcAuthRouteImport
|
|
286
|
-
parentRoute: typeof AuthRoute
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
id:
|
|
290
|
-
path:
|
|
291
|
-
fullPath:
|
|
292
|
-
preLoaderRoute: typeof AuthExamplesClientOrpcAuthRouteImport
|
|
293
|
-
parentRoute: typeof AuthRoute
|
|
294
|
-
}
|
|
199
|
+
'/_public': {
|
|
200
|
+
id: '/_public'
|
|
201
|
+
path: ''
|
|
202
|
+
fullPath: '/'
|
|
203
|
+
preLoaderRoute: typeof PublicRouteImport
|
|
204
|
+
parentRoute: typeof rootRouteImport
|
|
205
|
+
}
|
|
206
|
+
'/_auth': {
|
|
207
|
+
id: '/_auth'
|
|
208
|
+
path: ''
|
|
209
|
+
fullPath: '/'
|
|
210
|
+
preLoaderRoute: typeof AuthRouteImport
|
|
211
|
+
parentRoute: typeof rootRouteImport
|
|
212
|
+
}
|
|
213
|
+
'/_public/': {
|
|
214
|
+
id: '/_public/'
|
|
215
|
+
path: '/'
|
|
216
|
+
fullPath: '/'
|
|
217
|
+
preLoaderRoute: typeof PublicIndexRouteImport
|
|
218
|
+
parentRoute: typeof PublicRoute
|
|
219
|
+
}
|
|
220
|
+
'/_public/signup': {
|
|
221
|
+
id: '/_public/signup'
|
|
222
|
+
path: '/signup'
|
|
223
|
+
fullPath: '/signup'
|
|
224
|
+
preLoaderRoute: typeof PublicSignupRouteImport
|
|
225
|
+
parentRoute: typeof PublicRoute
|
|
226
|
+
}
|
|
227
|
+
'/_public/login': {
|
|
228
|
+
id: '/_public/login'
|
|
229
|
+
path: '/login'
|
|
230
|
+
fullPath: '/login'
|
|
231
|
+
preLoaderRoute: typeof PublicLoginRouteImport
|
|
232
|
+
parentRoute: typeof PublicRoute
|
|
233
|
+
}
|
|
234
|
+
'/_auth/dashboard': {
|
|
235
|
+
id: '/_auth/dashboard'
|
|
236
|
+
path: '/dashboard'
|
|
237
|
+
fullPath: '/dashboard'
|
|
238
|
+
preLoaderRoute: typeof AuthDashboardRouteImport
|
|
239
|
+
parentRoute: typeof AuthRoute
|
|
240
|
+
}
|
|
241
|
+
'/_auth/account': {
|
|
242
|
+
id: '/_auth/account'
|
|
243
|
+
path: '/account'
|
|
244
|
+
fullPath: '/account'
|
|
245
|
+
preLoaderRoute: typeof AuthAccountRouteImport
|
|
246
|
+
parentRoute: typeof AuthRoute
|
|
247
|
+
}
|
|
248
|
+
'/api/rpc/$': {
|
|
249
|
+
id: '/api/rpc/$'
|
|
250
|
+
path: '/api/rpc/$'
|
|
251
|
+
fullPath: '/api/rpc/$'
|
|
252
|
+
preLoaderRoute: typeof ApiRpcSplatRouteImport
|
|
253
|
+
parentRoute: typeof rootRouteImport
|
|
254
|
+
}
|
|
255
|
+
'/api/auth/$': {
|
|
256
|
+
id: '/api/auth/$'
|
|
257
|
+
path: '/api/auth/$'
|
|
258
|
+
fullPath: '/api/auth/$'
|
|
259
|
+
preLoaderRoute: typeof ApiAuthSplatRouteImport
|
|
260
|
+
parentRoute: typeof rootRouteImport
|
|
261
|
+
}
|
|
262
|
+
'/_public/examples/ssr-orpc': {
|
|
263
|
+
id: '/_public/examples/ssr-orpc'
|
|
264
|
+
path: '/examples/ssr-orpc'
|
|
265
|
+
fullPath: '/examples/ssr-orpc'
|
|
266
|
+
preLoaderRoute: typeof PublicExamplesSsrOrpcRouteImport
|
|
267
|
+
parentRoute: typeof PublicRoute
|
|
268
|
+
}
|
|
269
|
+
'/_public/examples/isr': {
|
|
270
|
+
id: '/_public/examples/isr'
|
|
271
|
+
path: '/examples/isr'
|
|
272
|
+
fullPath: '/examples/isr'
|
|
273
|
+
preLoaderRoute: typeof PublicExamplesIsrRouteImport
|
|
274
|
+
parentRoute: typeof PublicRoute
|
|
275
|
+
}
|
|
276
|
+
'/_public/examples/client-orpc': {
|
|
277
|
+
id: '/_public/examples/client-orpc'
|
|
278
|
+
path: '/examples/client-orpc'
|
|
279
|
+
fullPath: '/examples/client-orpc'
|
|
280
|
+
preLoaderRoute: typeof PublicExamplesClientOrpcRouteImport
|
|
281
|
+
parentRoute: typeof PublicRoute
|
|
282
|
+
}
|
|
283
|
+
'/_auth/examples/ssr-orpc-auth': {
|
|
284
|
+
id: '/_auth/examples/ssr-orpc-auth'
|
|
285
|
+
path: '/examples/ssr-orpc-auth'
|
|
286
|
+
fullPath: '/examples/ssr-orpc-auth'
|
|
287
|
+
preLoaderRoute: typeof AuthExamplesSsrOrpcAuthRouteImport
|
|
288
|
+
parentRoute: typeof AuthRoute
|
|
289
|
+
}
|
|
290
|
+
'/_auth/examples/client-orpc-auth': {
|
|
291
|
+
id: '/_auth/examples/client-orpc-auth'
|
|
292
|
+
path: '/examples/client-orpc-auth'
|
|
293
|
+
fullPath: '/examples/client-orpc-auth'
|
|
294
|
+
preLoaderRoute: typeof AuthExamplesClientOrpcAuthRouteImport
|
|
295
|
+
parentRoute: typeof AuthRoute
|
|
296
|
+
}
|
|
295
297
|
}
|
|
296
298
|
}
|
|
297
299
|
|
|
298
300
|
interface AuthRouteChildren {
|
|
299
|
-
AuthAccountRoute: typeof AuthAccountRoute
|
|
300
|
-
AuthDashboardRoute: typeof AuthDashboardRoute
|
|
301
|
-
AuthExamplesClientOrpcAuthRoute: typeof AuthExamplesClientOrpcAuthRoute
|
|
302
|
-
AuthExamplesSsrOrpcAuthRoute: typeof AuthExamplesSsrOrpcAuthRoute
|
|
301
|
+
AuthAccountRoute: typeof AuthAccountRoute
|
|
302
|
+
AuthDashboardRoute: typeof AuthDashboardRoute
|
|
303
|
+
AuthExamplesClientOrpcAuthRoute: typeof AuthExamplesClientOrpcAuthRoute
|
|
304
|
+
AuthExamplesSsrOrpcAuthRoute: typeof AuthExamplesSsrOrpcAuthRoute
|
|
303
305
|
}
|
|
304
306
|
|
|
305
307
|
const AuthRouteChildren: AuthRouteChildren = {
|
|
@@ -307,17 +309,17 @@ const AuthRouteChildren: AuthRouteChildren = {
|
|
|
307
309
|
AuthDashboardRoute: AuthDashboardRoute,
|
|
308
310
|
AuthExamplesClientOrpcAuthRoute: AuthExamplesClientOrpcAuthRoute,
|
|
309
311
|
AuthExamplesSsrOrpcAuthRoute: AuthExamplesSsrOrpcAuthRoute,
|
|
310
|
-
}
|
|
312
|
+
}
|
|
311
313
|
|
|
312
|
-
const AuthRouteWithChildren = AuthRoute._addFileChildren(AuthRouteChildren)
|
|
314
|
+
const AuthRouteWithChildren = AuthRoute._addFileChildren(AuthRouteChildren)
|
|
313
315
|
|
|
314
316
|
interface PublicRouteChildren {
|
|
315
|
-
PublicLoginRoute: typeof PublicLoginRoute
|
|
316
|
-
PublicSignupRoute: typeof PublicSignupRoute
|
|
317
|
-
PublicIndexRoute: typeof PublicIndexRoute
|
|
318
|
-
PublicExamplesClientOrpcRoute: typeof PublicExamplesClientOrpcRoute
|
|
319
|
-
PublicExamplesIsrRoute: typeof PublicExamplesIsrRoute
|
|
320
|
-
PublicExamplesSsrOrpcRoute: typeof PublicExamplesSsrOrpcRoute
|
|
317
|
+
PublicLoginRoute: typeof PublicLoginRoute
|
|
318
|
+
PublicSignupRoute: typeof PublicSignupRoute
|
|
319
|
+
PublicIndexRoute: typeof PublicIndexRoute
|
|
320
|
+
PublicExamplesClientOrpcRoute: typeof PublicExamplesClientOrpcRoute
|
|
321
|
+
PublicExamplesIsrRoute: typeof PublicExamplesIsrRoute
|
|
322
|
+
PublicExamplesSsrOrpcRoute: typeof PublicExamplesSsrOrpcRoute
|
|
321
323
|
}
|
|
322
324
|
|
|
323
325
|
const PublicRouteChildren: PublicRouteChildren = {
|
|
@@ -327,25 +329,26 @@ const PublicRouteChildren: PublicRouteChildren = {
|
|
|
327
329
|
PublicExamplesClientOrpcRoute: PublicExamplesClientOrpcRoute,
|
|
328
330
|
PublicExamplesIsrRoute: PublicExamplesIsrRoute,
|
|
329
331
|
PublicExamplesSsrOrpcRoute: PublicExamplesSsrOrpcRoute,
|
|
330
|
-
}
|
|
332
|
+
}
|
|
331
333
|
|
|
332
|
-
const PublicRouteWithChildren =
|
|
334
|
+
const PublicRouteWithChildren =
|
|
335
|
+
PublicRoute._addFileChildren(PublicRouteChildren)
|
|
333
336
|
|
|
334
337
|
const rootRouteChildren: RootRouteChildren = {
|
|
335
338
|
AuthRoute: AuthRouteWithChildren,
|
|
336
339
|
PublicRoute: PublicRouteWithChildren,
|
|
337
340
|
ApiAuthSplatRoute: ApiAuthSplatRoute,
|
|
338
341
|
ApiRpcSplatRoute: ApiRpcSplatRoute,
|
|
339
|
-
}
|
|
342
|
+
}
|
|
340
343
|
export const routeTree = rootRouteImport
|
|
341
344
|
._addFileChildren(rootRouteChildren)
|
|
342
|
-
._addFileTypes<FileRouteTypes>()
|
|
345
|
+
._addFileTypes<FileRouteTypes>()
|
|
343
346
|
|
|
344
|
-
import type { getRouter } from
|
|
345
|
-
import type { createStart } from
|
|
346
|
-
declare module
|
|
347
|
+
import type { getRouter } from './router.tsx'
|
|
348
|
+
import type { createStart } from '@tanstack/react-start'
|
|
349
|
+
declare module '@tanstack/react-start' {
|
|
347
350
|
interface Register {
|
|
348
|
-
ssr: true
|
|
349
|
-
router: Awaited<ReturnType<typeof getRouter
|
|
351
|
+
ssr: true
|
|
352
|
+
router: Awaited<ReturnType<typeof getRouter>>
|
|
350
353
|
}
|
|
351
354
|
}
|
|
@@ -2,6 +2,8 @@ import { HeadContent, Scripts, createRootRoute } from "@tanstack/react-router";
|
|
|
2
2
|
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
|
3
3
|
import { Toaster } from "@workspace/ui/components/sonner";
|
|
4
4
|
import { ThemeProvider } from "@workspace/ui/components/theme-provider";
|
|
5
|
+
import { ORPCProvider } from "@workspace/orpc/react";
|
|
6
|
+
import { orpc } from "@/lib/orpc";
|
|
5
7
|
|
|
6
8
|
import appCss from "@workspace/ui/globals.css?url";
|
|
7
9
|
|
|
@@ -40,8 +42,10 @@ function RootDocument({ children }: { children: React.ReactNode }) {
|
|
|
40
42
|
<body>
|
|
41
43
|
<ThemeProvider defaultTheme="system" storageKey="theme">
|
|
42
44
|
<QueryClientProvider client={queryClient}>
|
|
43
|
-
{
|
|
44
|
-
|
|
45
|
+
<ORPCProvider client={orpc}>
|
|
46
|
+
{children}
|
|
47
|
+
<Toaster />
|
|
48
|
+
</ORPCProvider>
|
|
45
49
|
</QueryClientProvider>
|
|
46
50
|
</ThemeProvider>
|
|
47
51
|
<Scripts />
|