create-croissant 0.1.39 → 0.1.41
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/index.js +5 -5
- package/package.json +7 -10
- package/template/.oxlintignore +11 -0
- package/template/README.md +6 -6
- package/template/apps/desktop/README.md +1 -1
- package/template/apps/desktop/electron-builder.yml +6 -6
- package/template/apps/desktop/electron.vite.config.ts +8 -8
- package/template/apps/desktop/package.json +4 -13
- package/template/apps/desktop/src/main/index.ts +32 -32
- package/template/apps/desktop/src/preload/index.d.ts +3 -3
- package/template/apps/desktop/src/preload/index.ts +8 -8
- package/template/apps/desktop/src/renderer/src/App.tsx +5 -5
- package/template/apps/desktop/src/renderer/src/assets/base.css +4 -4
- package/template/apps/desktop/src/renderer/src/assets/main.css +3 -3
- package/template/apps/desktop/src/renderer/src/components/Versions.tsx +4 -4
- package/template/apps/desktop/src/renderer/src/main.tsx +7 -7
- package/template/apps/desktop/tsconfig.json +1 -4
- package/template/apps/desktop/tsconfig.node.json +1 -1
- package/template/apps/desktop/tsconfig.web.json +4 -11
- package/template/apps/mobile/app/(tabs)/_layout.tsx +11 -10
- package/template/apps/mobile/app/(tabs)/explore.tsx +29 -27
- package/template/apps/mobile/app/(tabs)/index.tsx +25 -24
- package/template/apps/mobile/app/_layout.tsx +8 -8
- package/template/apps/mobile/app/modal.tsx +6 -6
- package/template/apps/mobile/components/external-link.tsx +5 -5
- package/template/apps/mobile/components/haptic-tab.tsx +4 -4
- package/template/apps/mobile/components/hello-wave.tsx +5 -4
- package/template/apps/mobile/components/parallax-scroll-view.tsx +15 -13
- package/template/apps/mobile/components/themed-text.tsx +14 -14
- package/template/apps/mobile/components/themed-view.tsx +3 -3
- package/template/apps/mobile/components/ui/collapsible.tsx +14 -13
- package/template/apps/mobile/components/ui/icon-symbol.ios.tsx +4 -4
- package/template/apps/mobile/components/ui/icon-symbol.tsx +9 -9
- package/template/apps/mobile/constants/theme.ts +19 -19
- package/template/apps/mobile/hooks/use-color-scheme.ts +1 -1
- package/template/apps/mobile/hooks/use-color-scheme.web.ts +3 -3
- package/template/apps/mobile/hooks/use-theme-color.ts +4 -4
- package/template/apps/mobile/package.json +3 -6
- package/template/apps/mobile/scripts/reset-project.js +2 -2
- package/template/apps/mobile/tsconfig.json +2 -9
- package/template/apps/platform/drizzle.config.ts +5 -5
- package/template/apps/platform/package.json +2 -6
- package/template/apps/platform/src/components/app-sidebar.tsx +60 -69
- package/template/apps/platform/src/components/login-form.tsx +32 -39
- package/template/apps/platform/src/components/search-form.tsx +5 -13
- package/template/apps/platform/src/components/signup-form.tsx +39 -49
- package/template/apps/platform/src/components/version-switcher.tsx +11 -21
- package/template/apps/platform/src/lib/auth-utils.ts +12 -14
- package/template/apps/platform/src/lib/orpc.ts +17 -17
- package/template/apps/platform/src/routeTree.gen.ts +264 -267
- package/template/apps/platform/src/router.tsx +5 -5
- package/template/apps/platform/src/routes/__root.tsx +13 -15
- package/template/apps/platform/src/routes/_auth/account.tsx +61 -50
- package/template/apps/platform/src/routes/_auth/dashboard.tsx +17 -17
- package/template/apps/platform/src/routes/_auth/examples/client-orpc-auth.tsx +13 -13
- package/template/apps/platform/src/routes/_auth/examples/ssr-orpc-auth.tsx +17 -17
- package/template/apps/platform/src/routes/_auth.tsx +5 -5
- package/template/apps/platform/src/routes/_public/examples/client-orpc.tsx +108 -88
- package/template/apps/platform/src/routes/_public/examples/isr.tsx +14 -14
- package/template/apps/platform/src/routes/_public/examples/ssr-orpc.tsx +92 -75
- package/template/apps/platform/src/routes/_public/index.tsx +22 -19
- package/template/apps/platform/src/routes/_public/login.tsx +4 -4
- package/template/apps/platform/src/routes/_public/signup.tsx +6 -5
- package/template/apps/platform/src/routes/_public.tsx +5 -5
- package/template/apps/platform/src/routes/api/auth/$.ts +13 -13
- package/template/apps/platform/src/routes/api/rpc.$.ts +13 -13
- package/template/apps/platform/tsconfig.json +1 -1
- package/template/apps/platform/vite.config.ts +8 -8
- package/template/docker-compose.yml +1 -1
- package/template/package.json +24 -22
- package/template/packages/auth/package.json +8 -12
- package/template/packages/auth/src/lib/auth.ts +1 -1
- package/template/packages/auth/tsconfig.json +1 -1
- package/template/packages/db/package.json +6 -10
- package/template/packages/db/src/index.ts +4 -4
- package/template/packages/db/src/schema.ts +2 -2
- package/template/packages/db/tsconfig.json +1 -1
- package/template/packages/orpc/package.json +6 -10
- package/template/packages/orpc/src/lib/planets.ts +39 -43
- package/template/packages/orpc/src/lib/router.ts +15 -15
- package/template/packages/orpc/tsconfig.json +1 -1
- package/template/packages/ui/package.json +8 -12
- package/template/packages/ui/src/components/accordion.tsx +20 -22
- package/template/packages/ui/src/components/alert-dialog.tsx +31 -56
- package/template/packages/ui/src/components/alert.tsx +15 -23
- package/template/packages/ui/src/components/aspect-ratio.tsx +3 -3
- package/template/packages/ui/src/components/avatar.tsx +19 -35
- package/template/packages/ui/src/components/badge.tsx +13 -17
- package/template/packages/ui/src/components/breadcrumb.tsx +22 -44
- package/template/packages/ui/src/components/button-group.tsx +16 -25
- package/template/packages/ui/src/components/button.tsx +8 -9
- package/template/packages/ui/src/components/calendar.tsx +43 -82
- package/template/packages/ui/src/components/card.tsx +15 -26
- package/template/packages/ui/src/components/carousel.tsx +70 -78
- package/template/packages/ui/src/components/chart.tsx +84 -117
- package/template/packages/ui/src/components/checkbox.tsx +8 -9
- package/template/packages/ui/src/components/collapsible.tsx +5 -9
- package/template/packages/ui/src/components/combobox.tsx +44 -68
- package/template/packages/ui/src/components/command.tsx +32 -47
- package/template/packages/ui/src/components/context-menu.tsx +45 -71
- package/template/packages/ui/src/components/dialog.tsx +29 -51
- package/template/packages/ui/src/components/direction.tsx +1 -4
- package/template/packages/ui/src/components/drawer.tsx +24 -38
- package/template/packages/ui/src/components/dropdown-menu.tsx +45 -55
- package/template/packages/ui/src/components/empty.tsx +16 -27
- package/template/packages/ui/src/components/field.tsx +49 -63
- package/template/packages/ui/src/components/hover-card.tsx +9 -14
- package/template/packages/ui/src/components/input-group.tsx +40 -52
- package/template/packages/ui/src/components/input-otp.tsx +17 -18
- package/template/packages/ui/src/components/input.tsx +6 -6
- package/template/packages/ui/src/components/item.tsx +31 -44
- package/template/packages/ui/src/components/kbd.tsx +5 -5
- package/template/packages/ui/src/components/label.tsx +6 -6
- package/template/packages/ui/src/components/menubar.tsx +51 -64
- package/template/packages/ui/src/components/mode-toggle.tsx +9 -15
- package/template/packages/ui/src/components/native-select.tsx +18 -24
- package/template/packages/ui/src/components/navigation-menu.tsx +28 -35
- package/template/packages/ui/src/components/pagination.tsx +19 -31
- package/template/packages/ui/src/components/popover.tsx +13 -26
- package/template/packages/ui/src/components/progress.tsx +13 -30
- package/template/packages/ui/src/components/radio-group.tsx +7 -7
- package/template/packages/ui/src/components/resizable.tsx +12 -20
- package/template/packages/ui/src/components/scroll-area.tsx +8 -12
- package/template/packages/ui/src/components/select.tsx +31 -42
- package/template/packages/ui/src/components/separator.tsx +6 -10
- package/template/packages/ui/src/components/sheet.tsx +25 -38
- package/template/packages/ui/src/components/sidebar.tsx +137 -170
- package/template/packages/ui/src/components/skeleton.tsx +3 -3
- package/template/packages/ui/src/components/slider.tsx +5 -5
- package/template/packages/ui/src/components/sonner.tsx +20 -24
- package/template/packages/ui/src/components/spinner.tsx +10 -5
- package/template/packages/ui/src/components/switch.tsx +6 -6
- package/template/packages/ui/src/components/table.tsx +18 -45
- package/template/packages/ui/src/components/tabs.tsx +14 -22
- package/template/packages/ui/src/components/textarea.tsx +5 -5
- package/template/packages/ui/src/components/theme-provider.tsx +43 -48
- package/template/packages/ui/src/components/toggle-group.tsx +18 -20
- package/template/packages/ui/src/components/toggle.tsx +9 -10
- package/template/packages/ui/src/components/tooltip.tsx +10 -22
- package/template/packages/ui/src/hooks/use-mobile.ts +11 -11
- package/template/packages/ui/src/lib/utils.ts +4 -4
- package/template/packages/ui/src/styles/globals.css +106 -106
- package/template/packages/ui/tsconfig.json +1 -1
- package/template/turbo.json +15 -6
- package/template/.prettierignore +0 -10
- package/template/apps/desktop/.prettierignore +0 -6
- package/template/apps/desktop/eslint.config.ts +0 -11
- package/template/apps/desktop/prettier.config.ts +0 -3
- package/template/apps/mobile/eslint.config.js +0 -10
- package/template/apps/platform/eslint.config.ts +0 -11
- package/template/apps/platform/prettier.config.ts +0 -3
- package/template/packages/auth/eslint.config.ts +0 -3
- package/template/packages/auth/prettier.config.ts +0 -3
- package/template/packages/config-eslint/index.ts +0 -24
- package/template/packages/config-eslint/package.json +0 -11
- package/template/packages/config-prettier/index.ts +0 -14
- package/template/packages/config-prettier/package.json +0 -7
- package/template/packages/db/eslint.config.ts +0 -3
- package/template/packages/db/prettier.config.ts +0 -3
- package/template/packages/orpc/eslint.config.ts +0 -3
- package/template/packages/orpc/prettier.config.ts +0 -3
- package/template/packages/ui/eslint.config.ts +0 -3
- package/template/packages/ui/prettier.config.ts +0 -3
- package/template/prettier.config.ts +0 -15
|
@@ -8,300 +8,298 @@
|
|
|
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
|
-
|
|
85
|
-
} as any)
|
|
79
|
+
} as any);
|
|
80
|
+
const PublicExamplesClientOrpcRoute = PublicExamplesClientOrpcRouteImport.update({
|
|
81
|
+
id: "/examples/client-orpc",
|
|
82
|
+
path: "/examples/client-orpc",
|
|
83
|
+
getParentRoute: () => PublicRoute,
|
|
84
|
+
} as any);
|
|
86
85
|
const AuthExamplesSsrOrpcAuthRoute = AuthExamplesSsrOrpcAuthRouteImport.update({
|
|
87
|
-
id:
|
|
88
|
-
path:
|
|
86
|
+
id: "/examples/ssr-orpc-auth",
|
|
87
|
+
path: "/examples/ssr-orpc-auth",
|
|
88
|
+
getParentRoute: () => AuthRoute,
|
|
89
|
+
} as any);
|
|
90
|
+
const AuthExamplesClientOrpcAuthRoute = AuthExamplesClientOrpcAuthRouteImport.update({
|
|
91
|
+
id: "/examples/client-orpc-auth",
|
|
92
|
+
path: "/examples/client-orpc-auth",
|
|
89
93
|
getParentRoute: () => AuthRoute,
|
|
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)
|
|
94
|
+
} as any);
|
|
97
95
|
|
|
98
96
|
export interface FileRoutesByFullPath {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
97
|
+
"/": typeof PublicIndexRoute;
|
|
98
|
+
"/account": typeof AuthAccountRoute;
|
|
99
|
+
"/dashboard": typeof AuthDashboardRoute;
|
|
100
|
+
"/login": typeof PublicLoginRoute;
|
|
101
|
+
"/signup": typeof PublicSignupRoute;
|
|
102
|
+
"/examples/client-orpc-auth": typeof AuthExamplesClientOrpcAuthRoute;
|
|
103
|
+
"/examples/ssr-orpc-auth": typeof AuthExamplesSsrOrpcAuthRoute;
|
|
104
|
+
"/examples/client-orpc": typeof PublicExamplesClientOrpcRoute;
|
|
105
|
+
"/examples/isr": typeof PublicExamplesIsrRoute;
|
|
106
|
+
"/examples/ssr-orpc": typeof PublicExamplesSsrOrpcRoute;
|
|
107
|
+
"/api/auth/$": typeof ApiAuthSplatRoute;
|
|
108
|
+
"/api/rpc/$": typeof ApiRpcSplatRoute;
|
|
111
109
|
}
|
|
112
110
|
export interface FileRoutesByTo {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
111
|
+
"/": typeof PublicIndexRoute;
|
|
112
|
+
"/account": typeof AuthAccountRoute;
|
|
113
|
+
"/dashboard": typeof AuthDashboardRoute;
|
|
114
|
+
"/login": typeof PublicLoginRoute;
|
|
115
|
+
"/signup": typeof PublicSignupRoute;
|
|
116
|
+
"/examples/client-orpc-auth": typeof AuthExamplesClientOrpcAuthRoute;
|
|
117
|
+
"/examples/ssr-orpc-auth": typeof AuthExamplesSsrOrpcAuthRoute;
|
|
118
|
+
"/examples/client-orpc": typeof PublicExamplesClientOrpcRoute;
|
|
119
|
+
"/examples/isr": typeof PublicExamplesIsrRoute;
|
|
120
|
+
"/examples/ssr-orpc": typeof PublicExamplesSsrOrpcRoute;
|
|
121
|
+
"/api/auth/$": typeof ApiAuthSplatRoute;
|
|
122
|
+
"/api/rpc/$": typeof ApiRpcSplatRoute;
|
|
125
123
|
}
|
|
126
124
|
export interface FileRoutesById {
|
|
127
|
-
__root__: typeof rootRouteImport
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
125
|
+
__root__: typeof rootRouteImport;
|
|
126
|
+
"/_auth": typeof AuthRouteWithChildren;
|
|
127
|
+
"/_public": typeof PublicRouteWithChildren;
|
|
128
|
+
"/_auth/account": typeof AuthAccountRoute;
|
|
129
|
+
"/_auth/dashboard": typeof AuthDashboardRoute;
|
|
130
|
+
"/_public/login": typeof PublicLoginRoute;
|
|
131
|
+
"/_public/signup": typeof PublicSignupRoute;
|
|
132
|
+
"/_public/": typeof PublicIndexRoute;
|
|
133
|
+
"/_auth/examples/client-orpc-auth": typeof AuthExamplesClientOrpcAuthRoute;
|
|
134
|
+
"/_auth/examples/ssr-orpc-auth": typeof AuthExamplesSsrOrpcAuthRoute;
|
|
135
|
+
"/_public/examples/client-orpc": typeof PublicExamplesClientOrpcRoute;
|
|
136
|
+
"/_public/examples/isr": typeof PublicExamplesIsrRoute;
|
|
137
|
+
"/_public/examples/ssr-orpc": typeof PublicExamplesSsrOrpcRoute;
|
|
138
|
+
"/api/auth/$": typeof ApiAuthSplatRoute;
|
|
139
|
+
"/api/rpc/$": typeof ApiRpcSplatRoute;
|
|
142
140
|
}
|
|
143
141
|
export interface FileRouteTypes {
|
|
144
|
-
fileRoutesByFullPath: FileRoutesByFullPath
|
|
142
|
+
fileRoutesByFullPath: FileRoutesByFullPath;
|
|
145
143
|
fullPaths:
|
|
146
|
-
|
|
|
147
|
-
|
|
|
148
|
-
|
|
|
149
|
-
|
|
|
150
|
-
|
|
|
151
|
-
|
|
|
152
|
-
|
|
|
153
|
-
|
|
|
154
|
-
|
|
|
155
|
-
|
|
|
156
|
-
|
|
|
157
|
-
|
|
|
158
|
-
fileRoutesByTo: FileRoutesByTo
|
|
144
|
+
| "/"
|
|
145
|
+
| "/account"
|
|
146
|
+
| "/dashboard"
|
|
147
|
+
| "/login"
|
|
148
|
+
| "/signup"
|
|
149
|
+
| "/examples/client-orpc-auth"
|
|
150
|
+
| "/examples/ssr-orpc-auth"
|
|
151
|
+
| "/examples/client-orpc"
|
|
152
|
+
| "/examples/isr"
|
|
153
|
+
| "/examples/ssr-orpc"
|
|
154
|
+
| "/api/auth/$"
|
|
155
|
+
| "/api/rpc/$";
|
|
156
|
+
fileRoutesByTo: FileRoutesByTo;
|
|
159
157
|
to:
|
|
160
|
-
|
|
|
161
|
-
|
|
|
162
|
-
|
|
|
163
|
-
|
|
|
164
|
-
|
|
|
165
|
-
|
|
|
166
|
-
|
|
|
167
|
-
|
|
|
168
|
-
|
|
|
169
|
-
|
|
|
170
|
-
|
|
|
171
|
-
|
|
|
158
|
+
| "/"
|
|
159
|
+
| "/account"
|
|
160
|
+
| "/dashboard"
|
|
161
|
+
| "/login"
|
|
162
|
+
| "/signup"
|
|
163
|
+
| "/examples/client-orpc-auth"
|
|
164
|
+
| "/examples/ssr-orpc-auth"
|
|
165
|
+
| "/examples/client-orpc"
|
|
166
|
+
| "/examples/isr"
|
|
167
|
+
| "/examples/ssr-orpc"
|
|
168
|
+
| "/api/auth/$"
|
|
169
|
+
| "/api/rpc/$";
|
|
172
170
|
id:
|
|
173
|
-
|
|
|
174
|
-
|
|
|
175
|
-
|
|
|
176
|
-
|
|
|
177
|
-
|
|
|
178
|
-
|
|
|
179
|
-
|
|
|
180
|
-
|
|
|
181
|
-
|
|
|
182
|
-
|
|
|
183
|
-
|
|
|
184
|
-
|
|
|
185
|
-
|
|
|
186
|
-
|
|
|
187
|
-
|
|
|
188
|
-
fileRoutesById: FileRoutesById
|
|
171
|
+
| "__root__"
|
|
172
|
+
| "/_auth"
|
|
173
|
+
| "/_public"
|
|
174
|
+
| "/_auth/account"
|
|
175
|
+
| "/_auth/dashboard"
|
|
176
|
+
| "/_public/login"
|
|
177
|
+
| "/_public/signup"
|
|
178
|
+
| "/_public/"
|
|
179
|
+
| "/_auth/examples/client-orpc-auth"
|
|
180
|
+
| "/_auth/examples/ssr-orpc-auth"
|
|
181
|
+
| "/_public/examples/client-orpc"
|
|
182
|
+
| "/_public/examples/isr"
|
|
183
|
+
| "/_public/examples/ssr-orpc"
|
|
184
|
+
| "/api/auth/$"
|
|
185
|
+
| "/api/rpc/$";
|
|
186
|
+
fileRoutesById: FileRoutesById;
|
|
189
187
|
}
|
|
190
188
|
export interface RootRouteChildren {
|
|
191
|
-
AuthRoute: typeof AuthRouteWithChildren
|
|
192
|
-
PublicRoute: typeof PublicRouteWithChildren
|
|
193
|
-
ApiAuthSplatRoute: typeof ApiAuthSplatRoute
|
|
194
|
-
ApiRpcSplatRoute: typeof ApiRpcSplatRoute
|
|
189
|
+
AuthRoute: typeof AuthRouteWithChildren;
|
|
190
|
+
PublicRoute: typeof PublicRouteWithChildren;
|
|
191
|
+
ApiAuthSplatRoute: typeof ApiAuthSplatRoute;
|
|
192
|
+
ApiRpcSplatRoute: typeof ApiRpcSplatRoute;
|
|
195
193
|
}
|
|
196
194
|
|
|
197
|
-
declare module
|
|
195
|
+
declare module "@tanstack/react-router" {
|
|
198
196
|
interface FileRoutesByPath {
|
|
199
|
-
|
|
200
|
-
id:
|
|
201
|
-
path:
|
|
202
|
-
fullPath:
|
|
203
|
-
preLoaderRoute: typeof PublicRouteImport
|
|
204
|
-
parentRoute: typeof rootRouteImport
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
id:
|
|
208
|
-
path:
|
|
209
|
-
fullPath:
|
|
210
|
-
preLoaderRoute: typeof AuthRouteImport
|
|
211
|
-
parentRoute: typeof rootRouteImport
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
id:
|
|
215
|
-
path:
|
|
216
|
-
fullPath:
|
|
217
|
-
preLoaderRoute: typeof PublicIndexRouteImport
|
|
218
|
-
parentRoute: typeof PublicRoute
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
id:
|
|
222
|
-
path:
|
|
223
|
-
fullPath:
|
|
224
|
-
preLoaderRoute: typeof PublicSignupRouteImport
|
|
225
|
-
parentRoute: typeof PublicRoute
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
id:
|
|
229
|
-
path:
|
|
230
|
-
fullPath:
|
|
231
|
-
preLoaderRoute: typeof PublicLoginRouteImport
|
|
232
|
-
parentRoute: typeof PublicRoute
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
id:
|
|
236
|
-
path:
|
|
237
|
-
fullPath:
|
|
238
|
-
preLoaderRoute: typeof AuthDashboardRouteImport
|
|
239
|
-
parentRoute: typeof AuthRoute
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
id:
|
|
243
|
-
path:
|
|
244
|
-
fullPath:
|
|
245
|
-
preLoaderRoute: typeof AuthAccountRouteImport
|
|
246
|
-
parentRoute: typeof AuthRoute
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
id:
|
|
250
|
-
path:
|
|
251
|
-
fullPath:
|
|
252
|
-
preLoaderRoute: typeof ApiRpcSplatRouteImport
|
|
253
|
-
parentRoute: typeof rootRouteImport
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
id:
|
|
257
|
-
path:
|
|
258
|
-
fullPath:
|
|
259
|
-
preLoaderRoute: typeof ApiAuthSplatRouteImport
|
|
260
|
-
parentRoute: typeof rootRouteImport
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
id:
|
|
264
|
-
path:
|
|
265
|
-
fullPath:
|
|
266
|
-
preLoaderRoute: typeof PublicExamplesSsrOrpcRouteImport
|
|
267
|
-
parentRoute: typeof PublicRoute
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
id:
|
|
271
|
-
path:
|
|
272
|
-
fullPath:
|
|
273
|
-
preLoaderRoute: typeof PublicExamplesIsrRouteImport
|
|
274
|
-
parentRoute: typeof PublicRoute
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
id:
|
|
278
|
-
path:
|
|
279
|
-
fullPath:
|
|
280
|
-
preLoaderRoute: typeof PublicExamplesClientOrpcRouteImport
|
|
281
|
-
parentRoute: typeof PublicRoute
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
id:
|
|
285
|
-
path:
|
|
286
|
-
fullPath:
|
|
287
|
-
preLoaderRoute: typeof AuthExamplesSsrOrpcAuthRouteImport
|
|
288
|
-
parentRoute: typeof AuthRoute
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
id:
|
|
292
|
-
path:
|
|
293
|
-
fullPath:
|
|
294
|
-
preLoaderRoute: typeof AuthExamplesClientOrpcAuthRouteImport
|
|
295
|
-
parentRoute: typeof AuthRoute
|
|
296
|
-
}
|
|
197
|
+
"/_public": {
|
|
198
|
+
id: "/_public";
|
|
199
|
+
path: "";
|
|
200
|
+
fullPath: "/";
|
|
201
|
+
preLoaderRoute: typeof PublicRouteImport;
|
|
202
|
+
parentRoute: typeof rootRouteImport;
|
|
203
|
+
};
|
|
204
|
+
"/_auth": {
|
|
205
|
+
id: "/_auth";
|
|
206
|
+
path: "";
|
|
207
|
+
fullPath: "/";
|
|
208
|
+
preLoaderRoute: typeof AuthRouteImport;
|
|
209
|
+
parentRoute: typeof rootRouteImport;
|
|
210
|
+
};
|
|
211
|
+
"/_public/": {
|
|
212
|
+
id: "/_public/";
|
|
213
|
+
path: "/";
|
|
214
|
+
fullPath: "/";
|
|
215
|
+
preLoaderRoute: typeof PublicIndexRouteImport;
|
|
216
|
+
parentRoute: typeof PublicRoute;
|
|
217
|
+
};
|
|
218
|
+
"/_public/signup": {
|
|
219
|
+
id: "/_public/signup";
|
|
220
|
+
path: "/signup";
|
|
221
|
+
fullPath: "/signup";
|
|
222
|
+
preLoaderRoute: typeof PublicSignupRouteImport;
|
|
223
|
+
parentRoute: typeof PublicRoute;
|
|
224
|
+
};
|
|
225
|
+
"/_public/login": {
|
|
226
|
+
id: "/_public/login";
|
|
227
|
+
path: "/login";
|
|
228
|
+
fullPath: "/login";
|
|
229
|
+
preLoaderRoute: typeof PublicLoginRouteImport;
|
|
230
|
+
parentRoute: typeof PublicRoute;
|
|
231
|
+
};
|
|
232
|
+
"/_auth/dashboard": {
|
|
233
|
+
id: "/_auth/dashboard";
|
|
234
|
+
path: "/dashboard";
|
|
235
|
+
fullPath: "/dashboard";
|
|
236
|
+
preLoaderRoute: typeof AuthDashboardRouteImport;
|
|
237
|
+
parentRoute: typeof AuthRoute;
|
|
238
|
+
};
|
|
239
|
+
"/_auth/account": {
|
|
240
|
+
id: "/_auth/account";
|
|
241
|
+
path: "/account";
|
|
242
|
+
fullPath: "/account";
|
|
243
|
+
preLoaderRoute: typeof AuthAccountRouteImport;
|
|
244
|
+
parentRoute: typeof AuthRoute;
|
|
245
|
+
};
|
|
246
|
+
"/api/rpc/$": {
|
|
247
|
+
id: "/api/rpc/$";
|
|
248
|
+
path: "/api/rpc/$";
|
|
249
|
+
fullPath: "/api/rpc/$";
|
|
250
|
+
preLoaderRoute: typeof ApiRpcSplatRouteImport;
|
|
251
|
+
parentRoute: typeof rootRouteImport;
|
|
252
|
+
};
|
|
253
|
+
"/api/auth/$": {
|
|
254
|
+
id: "/api/auth/$";
|
|
255
|
+
path: "/api/auth/$";
|
|
256
|
+
fullPath: "/api/auth/$";
|
|
257
|
+
preLoaderRoute: typeof ApiAuthSplatRouteImport;
|
|
258
|
+
parentRoute: typeof rootRouteImport;
|
|
259
|
+
};
|
|
260
|
+
"/_public/examples/ssr-orpc": {
|
|
261
|
+
id: "/_public/examples/ssr-orpc";
|
|
262
|
+
path: "/examples/ssr-orpc";
|
|
263
|
+
fullPath: "/examples/ssr-orpc";
|
|
264
|
+
preLoaderRoute: typeof PublicExamplesSsrOrpcRouteImport;
|
|
265
|
+
parentRoute: typeof PublicRoute;
|
|
266
|
+
};
|
|
267
|
+
"/_public/examples/isr": {
|
|
268
|
+
id: "/_public/examples/isr";
|
|
269
|
+
path: "/examples/isr";
|
|
270
|
+
fullPath: "/examples/isr";
|
|
271
|
+
preLoaderRoute: typeof PublicExamplesIsrRouteImport;
|
|
272
|
+
parentRoute: typeof PublicRoute;
|
|
273
|
+
};
|
|
274
|
+
"/_public/examples/client-orpc": {
|
|
275
|
+
id: "/_public/examples/client-orpc";
|
|
276
|
+
path: "/examples/client-orpc";
|
|
277
|
+
fullPath: "/examples/client-orpc";
|
|
278
|
+
preLoaderRoute: typeof PublicExamplesClientOrpcRouteImport;
|
|
279
|
+
parentRoute: typeof PublicRoute;
|
|
280
|
+
};
|
|
281
|
+
"/_auth/examples/ssr-orpc-auth": {
|
|
282
|
+
id: "/_auth/examples/ssr-orpc-auth";
|
|
283
|
+
path: "/examples/ssr-orpc-auth";
|
|
284
|
+
fullPath: "/examples/ssr-orpc-auth";
|
|
285
|
+
preLoaderRoute: typeof AuthExamplesSsrOrpcAuthRouteImport;
|
|
286
|
+
parentRoute: typeof AuthRoute;
|
|
287
|
+
};
|
|
288
|
+
"/_auth/examples/client-orpc-auth": {
|
|
289
|
+
id: "/_auth/examples/client-orpc-auth";
|
|
290
|
+
path: "/examples/client-orpc-auth";
|
|
291
|
+
fullPath: "/examples/client-orpc-auth";
|
|
292
|
+
preLoaderRoute: typeof AuthExamplesClientOrpcAuthRouteImport;
|
|
293
|
+
parentRoute: typeof AuthRoute;
|
|
294
|
+
};
|
|
297
295
|
}
|
|
298
296
|
}
|
|
299
297
|
|
|
300
298
|
interface AuthRouteChildren {
|
|
301
|
-
AuthAccountRoute: typeof AuthAccountRoute
|
|
302
|
-
AuthDashboardRoute: typeof AuthDashboardRoute
|
|
303
|
-
AuthExamplesClientOrpcAuthRoute: typeof AuthExamplesClientOrpcAuthRoute
|
|
304
|
-
AuthExamplesSsrOrpcAuthRoute: typeof AuthExamplesSsrOrpcAuthRoute
|
|
299
|
+
AuthAccountRoute: typeof AuthAccountRoute;
|
|
300
|
+
AuthDashboardRoute: typeof AuthDashboardRoute;
|
|
301
|
+
AuthExamplesClientOrpcAuthRoute: typeof AuthExamplesClientOrpcAuthRoute;
|
|
302
|
+
AuthExamplesSsrOrpcAuthRoute: typeof AuthExamplesSsrOrpcAuthRoute;
|
|
305
303
|
}
|
|
306
304
|
|
|
307
305
|
const AuthRouteChildren: AuthRouteChildren = {
|
|
@@ -309,17 +307,17 @@ const AuthRouteChildren: AuthRouteChildren = {
|
|
|
309
307
|
AuthDashboardRoute: AuthDashboardRoute,
|
|
310
308
|
AuthExamplesClientOrpcAuthRoute: AuthExamplesClientOrpcAuthRoute,
|
|
311
309
|
AuthExamplesSsrOrpcAuthRoute: AuthExamplesSsrOrpcAuthRoute,
|
|
312
|
-
}
|
|
310
|
+
};
|
|
313
311
|
|
|
314
|
-
const AuthRouteWithChildren = AuthRoute._addFileChildren(AuthRouteChildren)
|
|
312
|
+
const AuthRouteWithChildren = AuthRoute._addFileChildren(AuthRouteChildren);
|
|
315
313
|
|
|
316
314
|
interface PublicRouteChildren {
|
|
317
|
-
PublicLoginRoute: typeof PublicLoginRoute
|
|
318
|
-
PublicSignupRoute: typeof PublicSignupRoute
|
|
319
|
-
PublicIndexRoute: typeof PublicIndexRoute
|
|
320
|
-
PublicExamplesClientOrpcRoute: typeof PublicExamplesClientOrpcRoute
|
|
321
|
-
PublicExamplesIsrRoute: typeof PublicExamplesIsrRoute
|
|
322
|
-
PublicExamplesSsrOrpcRoute: typeof PublicExamplesSsrOrpcRoute
|
|
315
|
+
PublicLoginRoute: typeof PublicLoginRoute;
|
|
316
|
+
PublicSignupRoute: typeof PublicSignupRoute;
|
|
317
|
+
PublicIndexRoute: typeof PublicIndexRoute;
|
|
318
|
+
PublicExamplesClientOrpcRoute: typeof PublicExamplesClientOrpcRoute;
|
|
319
|
+
PublicExamplesIsrRoute: typeof PublicExamplesIsrRoute;
|
|
320
|
+
PublicExamplesSsrOrpcRoute: typeof PublicExamplesSsrOrpcRoute;
|
|
323
321
|
}
|
|
324
322
|
|
|
325
323
|
const PublicRouteChildren: PublicRouteChildren = {
|
|
@@ -329,26 +327,25 @@ const PublicRouteChildren: PublicRouteChildren = {
|
|
|
329
327
|
PublicExamplesClientOrpcRoute: PublicExamplesClientOrpcRoute,
|
|
330
328
|
PublicExamplesIsrRoute: PublicExamplesIsrRoute,
|
|
331
329
|
PublicExamplesSsrOrpcRoute: PublicExamplesSsrOrpcRoute,
|
|
332
|
-
}
|
|
330
|
+
};
|
|
333
331
|
|
|
334
|
-
const PublicRouteWithChildren =
|
|
335
|
-
PublicRoute._addFileChildren(PublicRouteChildren)
|
|
332
|
+
const PublicRouteWithChildren = PublicRoute._addFileChildren(PublicRouteChildren);
|
|
336
333
|
|
|
337
334
|
const rootRouteChildren: RootRouteChildren = {
|
|
338
335
|
AuthRoute: AuthRouteWithChildren,
|
|
339
336
|
PublicRoute: PublicRouteWithChildren,
|
|
340
337
|
ApiAuthSplatRoute: ApiAuthSplatRoute,
|
|
341
338
|
ApiRpcSplatRoute: ApiRpcSplatRoute,
|
|
342
|
-
}
|
|
339
|
+
};
|
|
343
340
|
export const routeTree = rootRouteImport
|
|
344
341
|
._addFileChildren(rootRouteChildren)
|
|
345
|
-
._addFileTypes<FileRouteTypes>()
|
|
342
|
+
._addFileTypes<FileRouteTypes>();
|
|
346
343
|
|
|
347
|
-
import type { getRouter } from
|
|
348
|
-
import type { createStart } from
|
|
349
|
-
declare module
|
|
344
|
+
import type { getRouter } from "./router.tsx";
|
|
345
|
+
import type { createStart } from "@tanstack/react-start";
|
|
346
|
+
declare module "@tanstack/react-start" {
|
|
350
347
|
interface Register {
|
|
351
|
-
ssr: true
|
|
352
|
-
router: Awaited<ReturnType<typeof getRouter
|
|
348
|
+
ssr: true;
|
|
349
|
+
router: Awaited<ReturnType<typeof getRouter>>;
|
|
353
350
|
}
|
|
354
351
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createRouter as createTanStackRouter } from "@tanstack/react-router"
|
|
2
|
-
import { routeTree } from "./routeTree.gen"
|
|
1
|
+
import { createRouter as createTanStackRouter } from "@tanstack/react-router";
|
|
2
|
+
import { routeTree } from "./routeTree.gen";
|
|
3
3
|
|
|
4
4
|
export function getRouter() {
|
|
5
5
|
const router = createTanStackRouter({
|
|
@@ -8,13 +8,13 @@ export function getRouter() {
|
|
|
8
8
|
scrollRestoration: true,
|
|
9
9
|
defaultPreload: "intent",
|
|
10
10
|
defaultPreloadStaleTime: 0,
|
|
11
|
-
})
|
|
11
|
+
});
|
|
12
12
|
|
|
13
|
-
return router
|
|
13
|
+
return router;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
declare module "@tanstack/react-router" {
|
|
17
17
|
interface Register {
|
|
18
|
-
router: ReturnType<typeof getRouter
|
|
18
|
+
router: ReturnType<typeof getRouter>;
|
|
19
19
|
}
|
|
20
20
|
}
|