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.
Files changed (164) hide show
  1. package/dist/index.js +5 -5
  2. package/package.json +7 -10
  3. package/template/.oxlintignore +11 -0
  4. package/template/README.md +6 -6
  5. package/template/apps/desktop/README.md +1 -1
  6. package/template/apps/desktop/electron-builder.yml +6 -6
  7. package/template/apps/desktop/electron.vite.config.ts +8 -8
  8. package/template/apps/desktop/package.json +4 -13
  9. package/template/apps/desktop/src/main/index.ts +32 -32
  10. package/template/apps/desktop/src/preload/index.d.ts +3 -3
  11. package/template/apps/desktop/src/preload/index.ts +8 -8
  12. package/template/apps/desktop/src/renderer/src/App.tsx +5 -5
  13. package/template/apps/desktop/src/renderer/src/assets/base.css +4 -4
  14. package/template/apps/desktop/src/renderer/src/assets/main.css +3 -3
  15. package/template/apps/desktop/src/renderer/src/components/Versions.tsx +4 -4
  16. package/template/apps/desktop/src/renderer/src/main.tsx +7 -7
  17. package/template/apps/desktop/tsconfig.json +1 -4
  18. package/template/apps/desktop/tsconfig.node.json +1 -1
  19. package/template/apps/desktop/tsconfig.web.json +4 -11
  20. package/template/apps/mobile/app/(tabs)/_layout.tsx +11 -10
  21. package/template/apps/mobile/app/(tabs)/explore.tsx +29 -27
  22. package/template/apps/mobile/app/(tabs)/index.tsx +25 -24
  23. package/template/apps/mobile/app/_layout.tsx +8 -8
  24. package/template/apps/mobile/app/modal.tsx +6 -6
  25. package/template/apps/mobile/components/external-link.tsx +5 -5
  26. package/template/apps/mobile/components/haptic-tab.tsx +4 -4
  27. package/template/apps/mobile/components/hello-wave.tsx +5 -4
  28. package/template/apps/mobile/components/parallax-scroll-view.tsx +15 -13
  29. package/template/apps/mobile/components/themed-text.tsx +14 -14
  30. package/template/apps/mobile/components/themed-view.tsx +3 -3
  31. package/template/apps/mobile/components/ui/collapsible.tsx +14 -13
  32. package/template/apps/mobile/components/ui/icon-symbol.ios.tsx +4 -4
  33. package/template/apps/mobile/components/ui/icon-symbol.tsx +9 -9
  34. package/template/apps/mobile/constants/theme.ts +19 -19
  35. package/template/apps/mobile/hooks/use-color-scheme.ts +1 -1
  36. package/template/apps/mobile/hooks/use-color-scheme.web.ts +3 -3
  37. package/template/apps/mobile/hooks/use-theme-color.ts +4 -4
  38. package/template/apps/mobile/package.json +3 -6
  39. package/template/apps/mobile/scripts/reset-project.js +2 -2
  40. package/template/apps/mobile/tsconfig.json +2 -9
  41. package/template/apps/platform/drizzle.config.ts +5 -5
  42. package/template/apps/platform/package.json +2 -6
  43. package/template/apps/platform/src/components/app-sidebar.tsx +60 -69
  44. package/template/apps/platform/src/components/login-form.tsx +32 -39
  45. package/template/apps/platform/src/components/search-form.tsx +5 -13
  46. package/template/apps/platform/src/components/signup-form.tsx +39 -49
  47. package/template/apps/platform/src/components/version-switcher.tsx +11 -21
  48. package/template/apps/platform/src/lib/auth-utils.ts +12 -14
  49. package/template/apps/platform/src/lib/orpc.ts +17 -17
  50. package/template/apps/platform/src/routeTree.gen.ts +264 -267
  51. package/template/apps/platform/src/router.tsx +5 -5
  52. package/template/apps/platform/src/routes/__root.tsx +13 -15
  53. package/template/apps/platform/src/routes/_auth/account.tsx +61 -50
  54. package/template/apps/platform/src/routes/_auth/dashboard.tsx +17 -17
  55. package/template/apps/platform/src/routes/_auth/examples/client-orpc-auth.tsx +13 -13
  56. package/template/apps/platform/src/routes/_auth/examples/ssr-orpc-auth.tsx +17 -17
  57. package/template/apps/platform/src/routes/_auth.tsx +5 -5
  58. package/template/apps/platform/src/routes/_public/examples/client-orpc.tsx +108 -88
  59. package/template/apps/platform/src/routes/_public/examples/isr.tsx +14 -14
  60. package/template/apps/platform/src/routes/_public/examples/ssr-orpc.tsx +92 -75
  61. package/template/apps/platform/src/routes/_public/index.tsx +22 -19
  62. package/template/apps/platform/src/routes/_public/login.tsx +4 -4
  63. package/template/apps/platform/src/routes/_public/signup.tsx +6 -5
  64. package/template/apps/platform/src/routes/_public.tsx +5 -5
  65. package/template/apps/platform/src/routes/api/auth/$.ts +13 -13
  66. package/template/apps/platform/src/routes/api/rpc.$.ts +13 -13
  67. package/template/apps/platform/tsconfig.json +1 -1
  68. package/template/apps/platform/vite.config.ts +8 -8
  69. package/template/docker-compose.yml +1 -1
  70. package/template/package.json +24 -22
  71. package/template/packages/auth/package.json +8 -12
  72. package/template/packages/auth/src/lib/auth.ts +1 -1
  73. package/template/packages/auth/tsconfig.json +1 -1
  74. package/template/packages/db/package.json +6 -10
  75. package/template/packages/db/src/index.ts +4 -4
  76. package/template/packages/db/src/schema.ts +2 -2
  77. package/template/packages/db/tsconfig.json +1 -1
  78. package/template/packages/orpc/package.json +6 -10
  79. package/template/packages/orpc/src/lib/planets.ts +39 -43
  80. package/template/packages/orpc/src/lib/router.ts +15 -15
  81. package/template/packages/orpc/tsconfig.json +1 -1
  82. package/template/packages/ui/package.json +8 -12
  83. package/template/packages/ui/src/components/accordion.tsx +20 -22
  84. package/template/packages/ui/src/components/alert-dialog.tsx +31 -56
  85. package/template/packages/ui/src/components/alert.tsx +15 -23
  86. package/template/packages/ui/src/components/aspect-ratio.tsx +3 -3
  87. package/template/packages/ui/src/components/avatar.tsx +19 -35
  88. package/template/packages/ui/src/components/badge.tsx +13 -17
  89. package/template/packages/ui/src/components/breadcrumb.tsx +22 -44
  90. package/template/packages/ui/src/components/button-group.tsx +16 -25
  91. package/template/packages/ui/src/components/button.tsx +8 -9
  92. package/template/packages/ui/src/components/calendar.tsx +43 -82
  93. package/template/packages/ui/src/components/card.tsx +15 -26
  94. package/template/packages/ui/src/components/carousel.tsx +70 -78
  95. package/template/packages/ui/src/components/chart.tsx +84 -117
  96. package/template/packages/ui/src/components/checkbox.tsx +8 -9
  97. package/template/packages/ui/src/components/collapsible.tsx +5 -9
  98. package/template/packages/ui/src/components/combobox.tsx +44 -68
  99. package/template/packages/ui/src/components/command.tsx +32 -47
  100. package/template/packages/ui/src/components/context-menu.tsx +45 -71
  101. package/template/packages/ui/src/components/dialog.tsx +29 -51
  102. package/template/packages/ui/src/components/direction.tsx +1 -4
  103. package/template/packages/ui/src/components/drawer.tsx +24 -38
  104. package/template/packages/ui/src/components/dropdown-menu.tsx +45 -55
  105. package/template/packages/ui/src/components/empty.tsx +16 -27
  106. package/template/packages/ui/src/components/field.tsx +49 -63
  107. package/template/packages/ui/src/components/hover-card.tsx +9 -14
  108. package/template/packages/ui/src/components/input-group.tsx +40 -52
  109. package/template/packages/ui/src/components/input-otp.tsx +17 -18
  110. package/template/packages/ui/src/components/input.tsx +6 -6
  111. package/template/packages/ui/src/components/item.tsx +31 -44
  112. package/template/packages/ui/src/components/kbd.tsx +5 -5
  113. package/template/packages/ui/src/components/label.tsx +6 -6
  114. package/template/packages/ui/src/components/menubar.tsx +51 -64
  115. package/template/packages/ui/src/components/mode-toggle.tsx +9 -15
  116. package/template/packages/ui/src/components/native-select.tsx +18 -24
  117. package/template/packages/ui/src/components/navigation-menu.tsx +28 -35
  118. package/template/packages/ui/src/components/pagination.tsx +19 -31
  119. package/template/packages/ui/src/components/popover.tsx +13 -26
  120. package/template/packages/ui/src/components/progress.tsx +13 -30
  121. package/template/packages/ui/src/components/radio-group.tsx +7 -7
  122. package/template/packages/ui/src/components/resizable.tsx +12 -20
  123. package/template/packages/ui/src/components/scroll-area.tsx +8 -12
  124. package/template/packages/ui/src/components/select.tsx +31 -42
  125. package/template/packages/ui/src/components/separator.tsx +6 -10
  126. package/template/packages/ui/src/components/sheet.tsx +25 -38
  127. package/template/packages/ui/src/components/sidebar.tsx +137 -170
  128. package/template/packages/ui/src/components/skeleton.tsx +3 -3
  129. package/template/packages/ui/src/components/slider.tsx +5 -5
  130. package/template/packages/ui/src/components/sonner.tsx +20 -24
  131. package/template/packages/ui/src/components/spinner.tsx +10 -5
  132. package/template/packages/ui/src/components/switch.tsx +6 -6
  133. package/template/packages/ui/src/components/table.tsx +18 -45
  134. package/template/packages/ui/src/components/tabs.tsx +14 -22
  135. package/template/packages/ui/src/components/textarea.tsx +5 -5
  136. package/template/packages/ui/src/components/theme-provider.tsx +43 -48
  137. package/template/packages/ui/src/components/toggle-group.tsx +18 -20
  138. package/template/packages/ui/src/components/toggle.tsx +9 -10
  139. package/template/packages/ui/src/components/tooltip.tsx +10 -22
  140. package/template/packages/ui/src/hooks/use-mobile.ts +11 -11
  141. package/template/packages/ui/src/lib/utils.ts +4 -4
  142. package/template/packages/ui/src/styles/globals.css +106 -106
  143. package/template/packages/ui/tsconfig.json +1 -1
  144. package/template/turbo.json +15 -6
  145. package/template/.prettierignore +0 -10
  146. package/template/apps/desktop/.prettierignore +0 -6
  147. package/template/apps/desktop/eslint.config.ts +0 -11
  148. package/template/apps/desktop/prettier.config.ts +0 -3
  149. package/template/apps/mobile/eslint.config.js +0 -10
  150. package/template/apps/platform/eslint.config.ts +0 -11
  151. package/template/apps/platform/prettier.config.ts +0 -3
  152. package/template/packages/auth/eslint.config.ts +0 -3
  153. package/template/packages/auth/prettier.config.ts +0 -3
  154. package/template/packages/config-eslint/index.ts +0 -24
  155. package/template/packages/config-eslint/package.json +0 -11
  156. package/template/packages/config-prettier/index.ts +0 -14
  157. package/template/packages/config-prettier/package.json +0 -7
  158. package/template/packages/db/eslint.config.ts +0 -3
  159. package/template/packages/db/prettier.config.ts +0 -3
  160. package/template/packages/orpc/eslint.config.ts +0 -3
  161. package/template/packages/orpc/prettier.config.ts +0 -3
  162. package/template/packages/ui/eslint.config.ts +0 -3
  163. package/template/packages/ui/prettier.config.ts +0 -3
  164. 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 './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'
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: '/_public',
28
+ id: "/_public",
29
29
  getParentRoute: () => rootRouteImport,
30
- } as any)
30
+ } as any);
31
31
  const AuthRoute = AuthRouteImport.update({
32
- id: '/_auth',
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: '/signup',
42
- path: '/signup',
41
+ id: "/signup",
42
+ path: "/signup",
43
43
  getParentRoute: () => PublicRoute,
44
- } as any)
44
+ } as any);
45
45
  const PublicLoginRoute = PublicLoginRouteImport.update({
46
- id: '/login',
47
- path: '/login',
46
+ id: "/login",
47
+ path: "/login",
48
48
  getParentRoute: () => PublicRoute,
49
- } as any)
49
+ } as any);
50
50
  const AuthDashboardRoute = AuthDashboardRouteImport.update({
51
- id: '/dashboard',
52
- path: '/dashboard',
51
+ id: "/dashboard",
52
+ path: "/dashboard",
53
53
  getParentRoute: () => AuthRoute,
54
- } as any)
54
+ } as any);
55
55
  const AuthAccountRoute = AuthAccountRouteImport.update({
56
- id: '/account',
57
- path: '/account',
56
+ id: "/account",
57
+ path: "/account",
58
58
  getParentRoute: () => AuthRoute,
59
- } as any)
59
+ } as any);
60
60
  const ApiRpcSplatRoute = ApiRpcSplatRouteImport.update({
61
- id: '/api/rpc/$',
62
- path: '/api/rpc/$',
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: '/api/auth/$',
67
- path: '/api/auth/$',
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: '/examples/ssr-orpc',
72
- path: '/examples/ssr-orpc',
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: '/examples/isr',
77
- path: '/examples/isr',
76
+ id: "/examples/isr",
77
+ path: "/examples/isr",
78
78
  getParentRoute: () => PublicRoute,
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)
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: '/examples/ssr-orpc-auth',
88
- path: '/examples/ssr-orpc-auth',
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
- '/': 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
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
- '/': 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
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
- '/_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
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
- | '/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
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
- | '/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/$'
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
- | '__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
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 '@tanstack/react-router' {
195
+ declare module "@tanstack/react-router" {
198
196
  interface FileRoutesByPath {
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
- }
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 './router.tsx'
348
- import type { createStart } from '@tanstack/react-start'
349
- declare module '@tanstack/react-start' {
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
  }