docs-i18n 0.6.2 → 0.7.0
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/{src/admin/ui → admin/app}/components/JobDialog.tsx +21 -2
- package/{src/admin/ui → admin/app}/components/JobPanel.tsx +1 -1
- package/{src/admin/ui → admin/app}/components/Preview.tsx +2 -5
- package/{src/admin/ui → admin/app}/lib/api.ts +18 -39
- package/admin/app/routeTree.gen.ts +68 -0
- package/admin/app/router.tsx +23 -0
- package/admin/app/routes/__root.tsx +55 -0
- package/admin/app/routes/index.tsx +416 -0
- package/{src/admin/ui → admin/app}/styles.css +36 -3
- package/admin/package.json +27 -0
- package/admin/server/functions/jobs.ts +53 -0
- package/admin/server/functions/misc.ts +84 -0
- package/{src/admin/server/routes → admin/server/functions}/models.ts +16 -29
- package/admin/server/functions/status.ts +61 -0
- package/admin/server/index.ts +35 -0
- package/admin/server/init.ts +46 -0
- package/{src/admin → admin}/server/services/job-manager.ts +39 -10
- package/{src/admin → admin}/server/services/status.ts +6 -6
- package/admin/tsconfig.json +19 -0
- package/{src/admin → admin}/vite.config.ts +8 -2
- package/dist/{assemble-7H4QCW35.js → assemble-CP2BRYQJ.js} +6 -4
- package/dist/{chunk-A3YQNPKZ.js → chunk-CLYUAWZE.js} +1 -1
- package/dist/{chunk-YN4VJHCQ.js → chunk-JHBSHTXC.js} +1 -1
- package/dist/chunk-L64GJ4OB.js +32 -0
- package/dist/{chunk-SKKZIV3L.js → chunk-PNKVD2UK.js} +1 -29
- package/dist/{chunk-XEOYZUHS.js → chunk-QKIR7RKQ.js} +4 -31
- package/dist/chunk-TRURQFP4.js +31 -0
- package/dist/cli.js +108 -23
- package/dist/index.d.ts +41 -1
- package/dist/index.js +92 -3
- package/dist/{rescan-O5D3CYC2.js → rescan-HXMWFAOC.js} +5 -3
- package/dist/{status-F4MYIAAY.js → status-AGZDXOTZ.js} +4 -2
- package/dist/{translate-ZIVKNAC4.js → translate-A5X6MX4Y.js} +14 -7
- package/dist/upload-XL6KG6S2.js +132 -0
- package/package.json +17 -15
- package/template/app/components/BlogArticle.tsx +159 -0
- package/template/app/components/BlogList.tsx +88 -0
- package/template/app/components/Breadcrumbs.tsx +81 -0
- package/template/app/components/Card.tsx +31 -0
- package/template/app/components/Doc.tsx +191 -0
- package/template/app/components/DocBreadcrumb.tsx +60 -0
- package/template/app/components/DocContainer.tsx +13 -0
- package/template/app/components/DocTitle.tsx +11 -0
- package/template/app/components/DocsLayout.tsx +715 -0
- package/template/app/components/Dropdown.tsx +116 -0
- package/template/app/components/FallbackBanner.tsx +36 -0
- package/template/app/components/Footer.tsx +29 -0
- package/template/app/components/FrameworkSelect.tsx +150 -0
- package/template/app/components/LibraryCard.tsx +178 -0
- package/template/app/components/LocaleSwitcher.tsx +43 -0
- package/template/app/components/Navbar.tsx +430 -0
- package/template/app/components/PostNotFound.tsx +20 -0
- package/template/app/components/SearchButton.tsx +32 -0
- package/template/app/components/Select.tsx +103 -0
- package/template/app/components/Spinner.tsx +18 -0
- package/template/app/components/ThemeProvider.tsx +141 -0
- package/template/app/components/ThemeToggle.tsx +31 -0
- package/template/app/components/Toc.tsx +86 -0
- package/template/app/components/VersionSelect.tsx +118 -0
- package/template/app/components/icons/BSkyIcon.tsx +27 -0
- package/template/app/components/icons/BaseballCapIcon.tsx +25 -0
- package/template/app/components/icons/BrandXIcon.tsx +28 -0
- package/template/app/components/icons/CheckCircleIcon.tsx +28 -0
- package/template/app/components/icons/CogsIcon.tsx +25 -0
- package/template/app/components/icons/DiscordIcon.tsx +24 -0
- package/template/app/components/icons/GithubIcon.tsx +24 -0
- package/template/app/components/icons/GoogleIcon.tsx +24 -0
- package/template/app/components/icons/InstagramIcon.tsx +24 -0
- package/template/app/components/icons/NpmIcon.tsx +26 -0
- package/template/app/components/icons/YinYangIcon.tsx +26 -0
- package/template/app/components/icons/YouTubeIcon.tsx +24 -0
- package/template/app/components/markdown/CodeBlock.tsx +254 -0
- package/template/app/components/markdown/FileTabs.tsx +58 -0
- package/template/app/components/markdown/FrameworkContent.tsx +76 -0
- package/template/app/components/markdown/Markdown.tsx +216 -0
- package/template/app/components/markdown/MarkdownContent.tsx +89 -0
- package/template/app/components/markdown/MarkdownFrameworkHandler.tsx +66 -0
- package/template/app/components/markdown/MarkdownHeadingContext.tsx +35 -0
- package/template/app/components/markdown/MarkdownLink.tsx +46 -0
- package/template/app/components/markdown/MarkdownTabsHandler.tsx +109 -0
- package/template/app/components/markdown/PackageManagerTabs.tsx +95 -0
- package/template/app/components/markdown/Tabs.tsx +139 -0
- package/template/app/components/markdown/index.ts +15 -0
- package/template/app/components/ui/Button.tsx +141 -0
- package/template/app/components/ui/InlineCode.tsx +16 -0
- package/template/app/components/ui/MarkdownImg.tsx +21 -0
- package/template/app/config/frameworks.ts +93 -0
- package/template/app/contexts/SearchContext.tsx +36 -0
- package/template/app/db/index.ts +17 -0
- package/template/app/db/schema.ts +74 -0
- package/template/app/hooks/useClickOutside.ts +106 -0
- package/template/app/routeTree.gen.ts +584 -0
- package/template/app/router.tsx +29 -0
- package/template/app/routes/$lang.$project.$version.docs.$.tsx +128 -0
- package/template/app/routes/$lang.$project.$version.docs.framework.$framework.$.tsx +106 -0
- package/template/app/routes/$lang.$project.$version.docs.framework.$framework.index.tsx +27 -0
- package/template/app/routes/$lang.$project.$version.docs.framework.index.tsx +44 -0
- package/template/app/routes/$lang.$project.$version.docs.index.tsx +27 -0
- package/template/app/routes/$lang.$project.$version.docs.tsx +70 -0
- package/template/app/routes/$lang.$project.$version.tsx +69 -0
- package/template/app/routes/$lang.$project.docs.$.tsx +104 -0
- package/template/app/routes/$lang.$project.docs.index.tsx +20 -0
- package/template/app/routes/$lang.$project.docs.tsx +79 -0
- package/template/app/routes/$lang.$project.tsx +89 -0
- package/template/app/routes/$lang.blog.$.tsx +82 -0
- package/template/app/routes/$lang.blog.index.tsx +56 -0
- package/template/app/routes/$lang.blog.tsx +26 -0
- package/template/app/routes/$lang.docs.$.tsx +100 -0
- package/template/app/routes/$lang.docs.framework.$framework.$.tsx +104 -0
- package/template/app/routes/$lang.docs.framework.$framework.index.tsx +32 -0
- package/template/app/routes/$lang.docs.framework.index.tsx +47 -0
- package/template/app/routes/$lang.docs.index.tsx +20 -0
- package/template/app/routes/$lang.docs.tsx +90 -0
- package/template/app/routes/$lang.tsx +16 -0
- package/template/app/routes/__root.tsx +180 -0
- package/template/app/routes/index.tsx +89 -0
- package/template/app/site.config.ts +182 -0
- package/template/app/styles/app.css +1029 -0
- package/template/app/types/index.ts +77 -0
- package/template/app/utils/blog.server.ts +193 -0
- package/template/app/utils/blog.ts +42 -0
- package/template/app/utils/config.ts +120 -0
- package/template/app/utils/content-loader.ts +400 -0
- package/template/app/utils/dates.ts +29 -0
- package/template/app/utils/docs.server.ts +150 -0
- package/template/app/utils/markdown/filterFrameworkContent.ts +233 -0
- package/template/app/utils/markdown/index.ts +2 -0
- package/template/app/utils/markdown/installCommand.ts +143 -0
- package/template/app/utils/markdown/plugins/collectHeadings.ts +104 -0
- package/template/app/utils/markdown/plugins/extractCodeMeta.ts +57 -0
- package/template/app/utils/markdown/plugins/helpers.ts +33 -0
- package/template/app/utils/markdown/plugins/index.ts +8 -0
- package/template/app/utils/markdown/plugins/parseCommentComponents.ts +103 -0
- package/template/app/utils/markdown/plugins/transformCommentComponents.ts +23 -0
- package/template/app/utils/markdown/plugins/transformFrameworkComponent.ts +217 -0
- package/template/app/utils/markdown/plugins/transformTabsComponent.ts +359 -0
- package/template/app/utils/markdown/processor.ts +75 -0
- package/template/app/utils/site-config.tsx +11 -0
- package/template/app/utils/upload.ts +232 -0
- package/template/app/utils/useLocalStorage.ts +65 -0
- package/template/app/utils/utils.ts +23 -0
- package/template/package.json +54 -0
- package/template/public/favicon.svg +1 -0
- package/template/public/fonts/Inter-latin-ext.woff2 +0 -0
- package/template/public/fonts/Inter-latin.woff2 +0 -0
- package/template/public/images/frameworks/angular-logo.svg +1 -0
- package/template/public/images/frameworks/js-logo.svg +1 -0
- package/template/public/images/frameworks/lit-logo.svg +1 -0
- package/template/public/images/frameworks/preact-logo.svg +6 -0
- package/template/public/images/frameworks/qwik-logo.svg +1 -0
- package/template/public/images/frameworks/react-logo.svg +1 -0
- package/template/public/images/frameworks/solid-logo.svg +1 -0
- package/template/public/images/frameworks/svelte-logo.svg +1 -0
- package/template/public/images/frameworks/vue-logo.svg +4 -0
- package/template/tsconfig.json +24 -0
- package/template/vite.config.ts +43 -0
- package/template/wrangler.jsonc +16 -0
- package/README.md +0 -161
- package/dist/server-73AVSOL5.js +0 -598
- package/src/admin/index.html +0 -13
- package/src/admin/server/index.ts +0 -138
- package/src/admin/server/routes/jobs.ts +0 -113
- package/src/admin/server/routes/status.ts +0 -57
- package/src/admin/ui/App.tsx +0 -332
- package/src/admin/ui/main.tsx +0 -19
- /package/{src/admin/ui → admin/app}/components/FileList.tsx +0 -0
- /package/{src/admin/ui → admin/app}/components/LangGrid.tsx +0 -0
- /package/{src/admin/ui → admin/app}/components/ProgressBar.tsx +0 -0
- /package/{src/admin/ui → admin/app}/lib/flags.ts +0 -0
|
@@ -0,0 +1,584 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
|
|
5
|
+
// noinspection JSUnusedGlobalSymbols
|
|
6
|
+
|
|
7
|
+
// This file was automatically generated by TanStack Router.
|
|
8
|
+
// You should NOT make any changes in this file as it will be overwritten.
|
|
9
|
+
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
|
|
10
|
+
|
|
11
|
+
import { Route as rootRouteImport } from './routes/__root'
|
|
12
|
+
import { Route as LangRouteImport } from './routes/$lang'
|
|
13
|
+
import { Route as IndexRouteImport } from './routes/index'
|
|
14
|
+
import { Route as LangDocsRouteImport } from './routes/$lang.docs'
|
|
15
|
+
import { Route as LangBlogRouteImport } from './routes/$lang.blog'
|
|
16
|
+
import { Route as LangProjectRouteImport } from './routes/$lang.$project'
|
|
17
|
+
import { Route as LangDocsIndexRouteImport } from './routes/$lang.docs.index'
|
|
18
|
+
import { Route as LangBlogIndexRouteImport } from './routes/$lang.blog.index'
|
|
19
|
+
import { Route as LangDocsSplatRouteImport } from './routes/$lang.docs.$'
|
|
20
|
+
import { Route as LangBlogSplatRouteImport } from './routes/$lang.blog.$'
|
|
21
|
+
import { Route as LangProjectDocsRouteImport } from './routes/$lang.$project.docs'
|
|
22
|
+
import { Route as LangProjectVersionRouteImport } from './routes/$lang.$project.$version'
|
|
23
|
+
import { Route as LangDocsFrameworkIndexRouteImport } from './routes/$lang.docs.framework.index'
|
|
24
|
+
import { Route as LangProjectDocsIndexRouteImport } from './routes/$lang.$project.docs.index'
|
|
25
|
+
import { Route as LangProjectDocsSplatRouteImport } from './routes/$lang.$project.docs.$'
|
|
26
|
+
import { Route as LangProjectVersionDocsRouteImport } from './routes/$lang.$project.$version.docs'
|
|
27
|
+
import { Route as LangDocsFrameworkFrameworkIndexRouteImport } from './routes/$lang.docs.framework.$framework.index'
|
|
28
|
+
import { Route as LangProjectVersionDocsIndexRouteImport } from './routes/$lang.$project.$version.docs.index'
|
|
29
|
+
import { Route as LangDocsFrameworkFrameworkSplatRouteImport } from './routes/$lang.docs.framework.$framework.$'
|
|
30
|
+
import { Route as LangProjectVersionDocsSplatRouteImport } from './routes/$lang.$project.$version.docs.$'
|
|
31
|
+
import { Route as LangProjectVersionDocsFrameworkIndexRouteImport } from './routes/$lang.$project.$version.docs.framework.index'
|
|
32
|
+
import { Route as LangProjectVersionDocsFrameworkFrameworkIndexRouteImport } from './routes/$lang.$project.$version.docs.framework.$framework.index'
|
|
33
|
+
import { Route as LangProjectVersionDocsFrameworkFrameworkSplatRouteImport } from './routes/$lang.$project.$version.docs.framework.$framework.$'
|
|
34
|
+
|
|
35
|
+
const LangRoute = LangRouteImport.update({
|
|
36
|
+
id: '/$lang',
|
|
37
|
+
path: '/$lang',
|
|
38
|
+
getParentRoute: () => rootRouteImport,
|
|
39
|
+
} as any)
|
|
40
|
+
const IndexRoute = IndexRouteImport.update({
|
|
41
|
+
id: '/',
|
|
42
|
+
path: '/',
|
|
43
|
+
getParentRoute: () => rootRouteImport,
|
|
44
|
+
} as any)
|
|
45
|
+
const LangDocsRoute = LangDocsRouteImport.update({
|
|
46
|
+
id: '/docs',
|
|
47
|
+
path: '/docs',
|
|
48
|
+
getParentRoute: () => LangRoute,
|
|
49
|
+
} as any)
|
|
50
|
+
const LangBlogRoute = LangBlogRouteImport.update({
|
|
51
|
+
id: '/blog',
|
|
52
|
+
path: '/blog',
|
|
53
|
+
getParentRoute: () => LangRoute,
|
|
54
|
+
} as any)
|
|
55
|
+
const LangProjectRoute = LangProjectRouteImport.update({
|
|
56
|
+
id: '/$project',
|
|
57
|
+
path: '/$project',
|
|
58
|
+
getParentRoute: () => LangRoute,
|
|
59
|
+
} as any)
|
|
60
|
+
const LangDocsIndexRoute = LangDocsIndexRouteImport.update({
|
|
61
|
+
id: '/',
|
|
62
|
+
path: '/',
|
|
63
|
+
getParentRoute: () => LangDocsRoute,
|
|
64
|
+
} as any)
|
|
65
|
+
const LangBlogIndexRoute = LangBlogIndexRouteImport.update({
|
|
66
|
+
id: '/',
|
|
67
|
+
path: '/',
|
|
68
|
+
getParentRoute: () => LangBlogRoute,
|
|
69
|
+
} as any)
|
|
70
|
+
const LangDocsSplatRoute = LangDocsSplatRouteImport.update({
|
|
71
|
+
id: '/$',
|
|
72
|
+
path: '/$',
|
|
73
|
+
getParentRoute: () => LangDocsRoute,
|
|
74
|
+
} as any)
|
|
75
|
+
const LangBlogSplatRoute = LangBlogSplatRouteImport.update({
|
|
76
|
+
id: '/$',
|
|
77
|
+
path: '/$',
|
|
78
|
+
getParentRoute: () => LangBlogRoute,
|
|
79
|
+
} as any)
|
|
80
|
+
const LangProjectDocsRoute = LangProjectDocsRouteImport.update({
|
|
81
|
+
id: '/docs',
|
|
82
|
+
path: '/docs',
|
|
83
|
+
getParentRoute: () => LangProjectRoute,
|
|
84
|
+
} as any)
|
|
85
|
+
const LangProjectVersionRoute = LangProjectVersionRouteImport.update({
|
|
86
|
+
id: '/$version',
|
|
87
|
+
path: '/$version',
|
|
88
|
+
getParentRoute: () => LangProjectRoute,
|
|
89
|
+
} as any)
|
|
90
|
+
const LangDocsFrameworkIndexRoute = LangDocsFrameworkIndexRouteImport.update({
|
|
91
|
+
id: '/framework/',
|
|
92
|
+
path: '/framework/',
|
|
93
|
+
getParentRoute: () => LangDocsRoute,
|
|
94
|
+
} as any)
|
|
95
|
+
const LangProjectDocsIndexRoute = LangProjectDocsIndexRouteImport.update({
|
|
96
|
+
id: '/',
|
|
97
|
+
path: '/',
|
|
98
|
+
getParentRoute: () => LangProjectDocsRoute,
|
|
99
|
+
} as any)
|
|
100
|
+
const LangProjectDocsSplatRoute = LangProjectDocsSplatRouteImport.update({
|
|
101
|
+
id: '/$',
|
|
102
|
+
path: '/$',
|
|
103
|
+
getParentRoute: () => LangProjectDocsRoute,
|
|
104
|
+
} as any)
|
|
105
|
+
const LangProjectVersionDocsRoute = LangProjectVersionDocsRouteImport.update({
|
|
106
|
+
id: '/docs',
|
|
107
|
+
path: '/docs',
|
|
108
|
+
getParentRoute: () => LangProjectVersionRoute,
|
|
109
|
+
} as any)
|
|
110
|
+
const LangDocsFrameworkFrameworkIndexRoute =
|
|
111
|
+
LangDocsFrameworkFrameworkIndexRouteImport.update({
|
|
112
|
+
id: '/framework/$framework/',
|
|
113
|
+
path: '/framework/$framework/',
|
|
114
|
+
getParentRoute: () => LangDocsRoute,
|
|
115
|
+
} as any)
|
|
116
|
+
const LangProjectVersionDocsIndexRoute =
|
|
117
|
+
LangProjectVersionDocsIndexRouteImport.update({
|
|
118
|
+
id: '/',
|
|
119
|
+
path: '/',
|
|
120
|
+
getParentRoute: () => LangProjectVersionDocsRoute,
|
|
121
|
+
} as any)
|
|
122
|
+
const LangDocsFrameworkFrameworkSplatRoute =
|
|
123
|
+
LangDocsFrameworkFrameworkSplatRouteImport.update({
|
|
124
|
+
id: '/framework/$framework/$',
|
|
125
|
+
path: '/framework/$framework/$',
|
|
126
|
+
getParentRoute: () => LangDocsRoute,
|
|
127
|
+
} as any)
|
|
128
|
+
const LangProjectVersionDocsSplatRoute =
|
|
129
|
+
LangProjectVersionDocsSplatRouteImport.update({
|
|
130
|
+
id: '/$',
|
|
131
|
+
path: '/$',
|
|
132
|
+
getParentRoute: () => LangProjectVersionDocsRoute,
|
|
133
|
+
} as any)
|
|
134
|
+
const LangProjectVersionDocsFrameworkIndexRoute =
|
|
135
|
+
LangProjectVersionDocsFrameworkIndexRouteImport.update({
|
|
136
|
+
id: '/framework/',
|
|
137
|
+
path: '/framework/',
|
|
138
|
+
getParentRoute: () => LangProjectVersionDocsRoute,
|
|
139
|
+
} as any)
|
|
140
|
+
const LangProjectVersionDocsFrameworkFrameworkIndexRoute =
|
|
141
|
+
LangProjectVersionDocsFrameworkFrameworkIndexRouteImport.update({
|
|
142
|
+
id: '/framework/$framework/',
|
|
143
|
+
path: '/framework/$framework/',
|
|
144
|
+
getParentRoute: () => LangProjectVersionDocsRoute,
|
|
145
|
+
} as any)
|
|
146
|
+
const LangProjectVersionDocsFrameworkFrameworkSplatRoute =
|
|
147
|
+
LangProjectVersionDocsFrameworkFrameworkSplatRouteImport.update({
|
|
148
|
+
id: '/framework/$framework/$',
|
|
149
|
+
path: '/framework/$framework/$',
|
|
150
|
+
getParentRoute: () => LangProjectVersionDocsRoute,
|
|
151
|
+
} as any)
|
|
152
|
+
|
|
153
|
+
export interface FileRoutesByFullPath {
|
|
154
|
+
'/': typeof IndexRoute
|
|
155
|
+
'/$lang': typeof LangRouteWithChildren
|
|
156
|
+
'/$lang/$project': typeof LangProjectRouteWithChildren
|
|
157
|
+
'/$lang/blog': typeof LangBlogRouteWithChildren
|
|
158
|
+
'/$lang/docs': typeof LangDocsRouteWithChildren
|
|
159
|
+
'/$lang/$project/$version': typeof LangProjectVersionRouteWithChildren
|
|
160
|
+
'/$lang/$project/docs': typeof LangProjectDocsRouteWithChildren
|
|
161
|
+
'/$lang/blog/$': typeof LangBlogSplatRoute
|
|
162
|
+
'/$lang/docs/$': typeof LangDocsSplatRoute
|
|
163
|
+
'/$lang/blog/': typeof LangBlogIndexRoute
|
|
164
|
+
'/$lang/docs/': typeof LangDocsIndexRoute
|
|
165
|
+
'/$lang/$project/$version/docs': typeof LangProjectVersionDocsRouteWithChildren
|
|
166
|
+
'/$lang/$project/docs/$': typeof LangProjectDocsSplatRoute
|
|
167
|
+
'/$lang/$project/docs/': typeof LangProjectDocsIndexRoute
|
|
168
|
+
'/$lang/docs/framework/': typeof LangDocsFrameworkIndexRoute
|
|
169
|
+
'/$lang/$project/$version/docs/$': typeof LangProjectVersionDocsSplatRoute
|
|
170
|
+
'/$lang/docs/framework/$framework/$': typeof LangDocsFrameworkFrameworkSplatRoute
|
|
171
|
+
'/$lang/$project/$version/docs/': typeof LangProjectVersionDocsIndexRoute
|
|
172
|
+
'/$lang/docs/framework/$framework/': typeof LangDocsFrameworkFrameworkIndexRoute
|
|
173
|
+
'/$lang/$project/$version/docs/framework/': typeof LangProjectVersionDocsFrameworkIndexRoute
|
|
174
|
+
'/$lang/$project/$version/docs/framework/$framework/$': typeof LangProjectVersionDocsFrameworkFrameworkSplatRoute
|
|
175
|
+
'/$lang/$project/$version/docs/framework/$framework/': typeof LangProjectVersionDocsFrameworkFrameworkIndexRoute
|
|
176
|
+
}
|
|
177
|
+
export interface FileRoutesByTo {
|
|
178
|
+
'/': typeof IndexRoute
|
|
179
|
+
'/$lang': typeof LangRouteWithChildren
|
|
180
|
+
'/$lang/$project': typeof LangProjectRouteWithChildren
|
|
181
|
+
'/$lang/$project/$version': typeof LangProjectVersionRouteWithChildren
|
|
182
|
+
'/$lang/blog/$': typeof LangBlogSplatRoute
|
|
183
|
+
'/$lang/docs/$': typeof LangDocsSplatRoute
|
|
184
|
+
'/$lang/blog': typeof LangBlogIndexRoute
|
|
185
|
+
'/$lang/docs': typeof LangDocsIndexRoute
|
|
186
|
+
'/$lang/$project/docs/$': typeof LangProjectDocsSplatRoute
|
|
187
|
+
'/$lang/$project/docs': typeof LangProjectDocsIndexRoute
|
|
188
|
+
'/$lang/docs/framework': typeof LangDocsFrameworkIndexRoute
|
|
189
|
+
'/$lang/$project/$version/docs/$': typeof LangProjectVersionDocsSplatRoute
|
|
190
|
+
'/$lang/docs/framework/$framework/$': typeof LangDocsFrameworkFrameworkSplatRoute
|
|
191
|
+
'/$lang/$project/$version/docs': typeof LangProjectVersionDocsIndexRoute
|
|
192
|
+
'/$lang/docs/framework/$framework': typeof LangDocsFrameworkFrameworkIndexRoute
|
|
193
|
+
'/$lang/$project/$version/docs/framework': typeof LangProjectVersionDocsFrameworkIndexRoute
|
|
194
|
+
'/$lang/$project/$version/docs/framework/$framework/$': typeof LangProjectVersionDocsFrameworkFrameworkSplatRoute
|
|
195
|
+
'/$lang/$project/$version/docs/framework/$framework': typeof LangProjectVersionDocsFrameworkFrameworkIndexRoute
|
|
196
|
+
}
|
|
197
|
+
export interface FileRoutesById {
|
|
198
|
+
__root__: typeof rootRouteImport
|
|
199
|
+
'/': typeof IndexRoute
|
|
200
|
+
'/$lang': typeof LangRouteWithChildren
|
|
201
|
+
'/$lang/$project': typeof LangProjectRouteWithChildren
|
|
202
|
+
'/$lang/blog': typeof LangBlogRouteWithChildren
|
|
203
|
+
'/$lang/docs': typeof LangDocsRouteWithChildren
|
|
204
|
+
'/$lang/$project/$version': typeof LangProjectVersionRouteWithChildren
|
|
205
|
+
'/$lang/$project/docs': typeof LangProjectDocsRouteWithChildren
|
|
206
|
+
'/$lang/blog/$': typeof LangBlogSplatRoute
|
|
207
|
+
'/$lang/docs/$': typeof LangDocsSplatRoute
|
|
208
|
+
'/$lang/blog/': typeof LangBlogIndexRoute
|
|
209
|
+
'/$lang/docs/': typeof LangDocsIndexRoute
|
|
210
|
+
'/$lang/$project/$version/docs': typeof LangProjectVersionDocsRouteWithChildren
|
|
211
|
+
'/$lang/$project/docs/$': typeof LangProjectDocsSplatRoute
|
|
212
|
+
'/$lang/$project/docs/': typeof LangProjectDocsIndexRoute
|
|
213
|
+
'/$lang/docs/framework/': typeof LangDocsFrameworkIndexRoute
|
|
214
|
+
'/$lang/$project/$version/docs/$': typeof LangProjectVersionDocsSplatRoute
|
|
215
|
+
'/$lang/docs/framework/$framework/$': typeof LangDocsFrameworkFrameworkSplatRoute
|
|
216
|
+
'/$lang/$project/$version/docs/': typeof LangProjectVersionDocsIndexRoute
|
|
217
|
+
'/$lang/docs/framework/$framework/': typeof LangDocsFrameworkFrameworkIndexRoute
|
|
218
|
+
'/$lang/$project/$version/docs/framework/': typeof LangProjectVersionDocsFrameworkIndexRoute
|
|
219
|
+
'/$lang/$project/$version/docs/framework/$framework/$': typeof LangProjectVersionDocsFrameworkFrameworkSplatRoute
|
|
220
|
+
'/$lang/$project/$version/docs/framework/$framework/': typeof LangProjectVersionDocsFrameworkFrameworkIndexRoute
|
|
221
|
+
}
|
|
222
|
+
export interface FileRouteTypes {
|
|
223
|
+
fileRoutesByFullPath: FileRoutesByFullPath
|
|
224
|
+
fullPaths:
|
|
225
|
+
| '/'
|
|
226
|
+
| '/$lang'
|
|
227
|
+
| '/$lang/$project'
|
|
228
|
+
| '/$lang/blog'
|
|
229
|
+
| '/$lang/docs'
|
|
230
|
+
| '/$lang/$project/$version'
|
|
231
|
+
| '/$lang/$project/docs'
|
|
232
|
+
| '/$lang/blog/$'
|
|
233
|
+
| '/$lang/docs/$'
|
|
234
|
+
| '/$lang/blog/'
|
|
235
|
+
| '/$lang/docs/'
|
|
236
|
+
| '/$lang/$project/$version/docs'
|
|
237
|
+
| '/$lang/$project/docs/$'
|
|
238
|
+
| '/$lang/$project/docs/'
|
|
239
|
+
| '/$lang/docs/framework/'
|
|
240
|
+
| '/$lang/$project/$version/docs/$'
|
|
241
|
+
| '/$lang/docs/framework/$framework/$'
|
|
242
|
+
| '/$lang/$project/$version/docs/'
|
|
243
|
+
| '/$lang/docs/framework/$framework/'
|
|
244
|
+
| '/$lang/$project/$version/docs/framework/'
|
|
245
|
+
| '/$lang/$project/$version/docs/framework/$framework/$'
|
|
246
|
+
| '/$lang/$project/$version/docs/framework/$framework/'
|
|
247
|
+
fileRoutesByTo: FileRoutesByTo
|
|
248
|
+
to:
|
|
249
|
+
| '/'
|
|
250
|
+
| '/$lang'
|
|
251
|
+
| '/$lang/$project'
|
|
252
|
+
| '/$lang/$project/$version'
|
|
253
|
+
| '/$lang/blog/$'
|
|
254
|
+
| '/$lang/docs/$'
|
|
255
|
+
| '/$lang/blog'
|
|
256
|
+
| '/$lang/docs'
|
|
257
|
+
| '/$lang/$project/docs/$'
|
|
258
|
+
| '/$lang/$project/docs'
|
|
259
|
+
| '/$lang/docs/framework'
|
|
260
|
+
| '/$lang/$project/$version/docs/$'
|
|
261
|
+
| '/$lang/docs/framework/$framework/$'
|
|
262
|
+
| '/$lang/$project/$version/docs'
|
|
263
|
+
| '/$lang/docs/framework/$framework'
|
|
264
|
+
| '/$lang/$project/$version/docs/framework'
|
|
265
|
+
| '/$lang/$project/$version/docs/framework/$framework/$'
|
|
266
|
+
| '/$lang/$project/$version/docs/framework/$framework'
|
|
267
|
+
id:
|
|
268
|
+
| '__root__'
|
|
269
|
+
| '/'
|
|
270
|
+
| '/$lang'
|
|
271
|
+
| '/$lang/$project'
|
|
272
|
+
| '/$lang/blog'
|
|
273
|
+
| '/$lang/docs'
|
|
274
|
+
| '/$lang/$project/$version'
|
|
275
|
+
| '/$lang/$project/docs'
|
|
276
|
+
| '/$lang/blog/$'
|
|
277
|
+
| '/$lang/docs/$'
|
|
278
|
+
| '/$lang/blog/'
|
|
279
|
+
| '/$lang/docs/'
|
|
280
|
+
| '/$lang/$project/$version/docs'
|
|
281
|
+
| '/$lang/$project/docs/$'
|
|
282
|
+
| '/$lang/$project/docs/'
|
|
283
|
+
| '/$lang/docs/framework/'
|
|
284
|
+
| '/$lang/$project/$version/docs/$'
|
|
285
|
+
| '/$lang/docs/framework/$framework/$'
|
|
286
|
+
| '/$lang/$project/$version/docs/'
|
|
287
|
+
| '/$lang/docs/framework/$framework/'
|
|
288
|
+
| '/$lang/$project/$version/docs/framework/'
|
|
289
|
+
| '/$lang/$project/$version/docs/framework/$framework/$'
|
|
290
|
+
| '/$lang/$project/$version/docs/framework/$framework/'
|
|
291
|
+
fileRoutesById: FileRoutesById
|
|
292
|
+
}
|
|
293
|
+
export interface RootRouteChildren {
|
|
294
|
+
IndexRoute: typeof IndexRoute
|
|
295
|
+
LangRoute: typeof LangRouteWithChildren
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
declare module '@tanstack/react-router' {
|
|
299
|
+
interface FileRoutesByPath {
|
|
300
|
+
'/$lang': {
|
|
301
|
+
id: '/$lang'
|
|
302
|
+
path: '/$lang'
|
|
303
|
+
fullPath: '/$lang'
|
|
304
|
+
preLoaderRoute: typeof LangRouteImport
|
|
305
|
+
parentRoute: typeof rootRouteImport
|
|
306
|
+
}
|
|
307
|
+
'/': {
|
|
308
|
+
id: '/'
|
|
309
|
+
path: '/'
|
|
310
|
+
fullPath: '/'
|
|
311
|
+
preLoaderRoute: typeof IndexRouteImport
|
|
312
|
+
parentRoute: typeof rootRouteImport
|
|
313
|
+
}
|
|
314
|
+
'/$lang/docs': {
|
|
315
|
+
id: '/$lang/docs'
|
|
316
|
+
path: '/docs'
|
|
317
|
+
fullPath: '/$lang/docs'
|
|
318
|
+
preLoaderRoute: typeof LangDocsRouteImport
|
|
319
|
+
parentRoute: typeof LangRoute
|
|
320
|
+
}
|
|
321
|
+
'/$lang/blog': {
|
|
322
|
+
id: '/$lang/blog'
|
|
323
|
+
path: '/blog'
|
|
324
|
+
fullPath: '/$lang/blog'
|
|
325
|
+
preLoaderRoute: typeof LangBlogRouteImport
|
|
326
|
+
parentRoute: typeof LangRoute
|
|
327
|
+
}
|
|
328
|
+
'/$lang/$project': {
|
|
329
|
+
id: '/$lang/$project'
|
|
330
|
+
path: '/$project'
|
|
331
|
+
fullPath: '/$lang/$project'
|
|
332
|
+
preLoaderRoute: typeof LangProjectRouteImport
|
|
333
|
+
parentRoute: typeof LangRoute
|
|
334
|
+
}
|
|
335
|
+
'/$lang/docs/': {
|
|
336
|
+
id: '/$lang/docs/'
|
|
337
|
+
path: '/'
|
|
338
|
+
fullPath: '/$lang/docs/'
|
|
339
|
+
preLoaderRoute: typeof LangDocsIndexRouteImport
|
|
340
|
+
parentRoute: typeof LangDocsRoute
|
|
341
|
+
}
|
|
342
|
+
'/$lang/blog/': {
|
|
343
|
+
id: '/$lang/blog/'
|
|
344
|
+
path: '/'
|
|
345
|
+
fullPath: '/$lang/blog/'
|
|
346
|
+
preLoaderRoute: typeof LangBlogIndexRouteImport
|
|
347
|
+
parentRoute: typeof LangBlogRoute
|
|
348
|
+
}
|
|
349
|
+
'/$lang/docs/$': {
|
|
350
|
+
id: '/$lang/docs/$'
|
|
351
|
+
path: '/$'
|
|
352
|
+
fullPath: '/$lang/docs/$'
|
|
353
|
+
preLoaderRoute: typeof LangDocsSplatRouteImport
|
|
354
|
+
parentRoute: typeof LangDocsRoute
|
|
355
|
+
}
|
|
356
|
+
'/$lang/blog/$': {
|
|
357
|
+
id: '/$lang/blog/$'
|
|
358
|
+
path: '/$'
|
|
359
|
+
fullPath: '/$lang/blog/$'
|
|
360
|
+
preLoaderRoute: typeof LangBlogSplatRouteImport
|
|
361
|
+
parentRoute: typeof LangBlogRoute
|
|
362
|
+
}
|
|
363
|
+
'/$lang/$project/docs': {
|
|
364
|
+
id: '/$lang/$project/docs'
|
|
365
|
+
path: '/docs'
|
|
366
|
+
fullPath: '/$lang/$project/docs'
|
|
367
|
+
preLoaderRoute: typeof LangProjectDocsRouteImport
|
|
368
|
+
parentRoute: typeof LangProjectRoute
|
|
369
|
+
}
|
|
370
|
+
'/$lang/$project/$version': {
|
|
371
|
+
id: '/$lang/$project/$version'
|
|
372
|
+
path: '/$version'
|
|
373
|
+
fullPath: '/$lang/$project/$version'
|
|
374
|
+
preLoaderRoute: typeof LangProjectVersionRouteImport
|
|
375
|
+
parentRoute: typeof LangProjectRoute
|
|
376
|
+
}
|
|
377
|
+
'/$lang/docs/framework/': {
|
|
378
|
+
id: '/$lang/docs/framework/'
|
|
379
|
+
path: '/framework'
|
|
380
|
+
fullPath: '/$lang/docs/framework/'
|
|
381
|
+
preLoaderRoute: typeof LangDocsFrameworkIndexRouteImport
|
|
382
|
+
parentRoute: typeof LangDocsRoute
|
|
383
|
+
}
|
|
384
|
+
'/$lang/$project/docs/': {
|
|
385
|
+
id: '/$lang/$project/docs/'
|
|
386
|
+
path: '/'
|
|
387
|
+
fullPath: '/$lang/$project/docs/'
|
|
388
|
+
preLoaderRoute: typeof LangProjectDocsIndexRouteImport
|
|
389
|
+
parentRoute: typeof LangProjectDocsRoute
|
|
390
|
+
}
|
|
391
|
+
'/$lang/$project/docs/$': {
|
|
392
|
+
id: '/$lang/$project/docs/$'
|
|
393
|
+
path: '/$'
|
|
394
|
+
fullPath: '/$lang/$project/docs/$'
|
|
395
|
+
preLoaderRoute: typeof LangProjectDocsSplatRouteImport
|
|
396
|
+
parentRoute: typeof LangProjectDocsRoute
|
|
397
|
+
}
|
|
398
|
+
'/$lang/$project/$version/docs': {
|
|
399
|
+
id: '/$lang/$project/$version/docs'
|
|
400
|
+
path: '/docs'
|
|
401
|
+
fullPath: '/$lang/$project/$version/docs'
|
|
402
|
+
preLoaderRoute: typeof LangProjectVersionDocsRouteImport
|
|
403
|
+
parentRoute: typeof LangProjectVersionRoute
|
|
404
|
+
}
|
|
405
|
+
'/$lang/docs/framework/$framework/': {
|
|
406
|
+
id: '/$lang/docs/framework/$framework/'
|
|
407
|
+
path: '/framework/$framework'
|
|
408
|
+
fullPath: '/$lang/docs/framework/$framework/'
|
|
409
|
+
preLoaderRoute: typeof LangDocsFrameworkFrameworkIndexRouteImport
|
|
410
|
+
parentRoute: typeof LangDocsRoute
|
|
411
|
+
}
|
|
412
|
+
'/$lang/$project/$version/docs/': {
|
|
413
|
+
id: '/$lang/$project/$version/docs/'
|
|
414
|
+
path: '/'
|
|
415
|
+
fullPath: '/$lang/$project/$version/docs/'
|
|
416
|
+
preLoaderRoute: typeof LangProjectVersionDocsIndexRouteImport
|
|
417
|
+
parentRoute: typeof LangProjectVersionDocsRoute
|
|
418
|
+
}
|
|
419
|
+
'/$lang/docs/framework/$framework/$': {
|
|
420
|
+
id: '/$lang/docs/framework/$framework/$'
|
|
421
|
+
path: '/framework/$framework/$'
|
|
422
|
+
fullPath: '/$lang/docs/framework/$framework/$'
|
|
423
|
+
preLoaderRoute: typeof LangDocsFrameworkFrameworkSplatRouteImport
|
|
424
|
+
parentRoute: typeof LangDocsRoute
|
|
425
|
+
}
|
|
426
|
+
'/$lang/$project/$version/docs/$': {
|
|
427
|
+
id: '/$lang/$project/$version/docs/$'
|
|
428
|
+
path: '/$'
|
|
429
|
+
fullPath: '/$lang/$project/$version/docs/$'
|
|
430
|
+
preLoaderRoute: typeof LangProjectVersionDocsSplatRouteImport
|
|
431
|
+
parentRoute: typeof LangProjectVersionDocsRoute
|
|
432
|
+
}
|
|
433
|
+
'/$lang/$project/$version/docs/framework/': {
|
|
434
|
+
id: '/$lang/$project/$version/docs/framework/'
|
|
435
|
+
path: '/framework'
|
|
436
|
+
fullPath: '/$lang/$project/$version/docs/framework/'
|
|
437
|
+
preLoaderRoute: typeof LangProjectVersionDocsFrameworkIndexRouteImport
|
|
438
|
+
parentRoute: typeof LangProjectVersionDocsRoute
|
|
439
|
+
}
|
|
440
|
+
'/$lang/$project/$version/docs/framework/$framework/': {
|
|
441
|
+
id: '/$lang/$project/$version/docs/framework/$framework/'
|
|
442
|
+
path: '/framework/$framework'
|
|
443
|
+
fullPath: '/$lang/$project/$version/docs/framework/$framework/'
|
|
444
|
+
preLoaderRoute: typeof LangProjectVersionDocsFrameworkFrameworkIndexRouteImport
|
|
445
|
+
parentRoute: typeof LangProjectVersionDocsRoute
|
|
446
|
+
}
|
|
447
|
+
'/$lang/$project/$version/docs/framework/$framework/$': {
|
|
448
|
+
id: '/$lang/$project/$version/docs/framework/$framework/$'
|
|
449
|
+
path: '/framework/$framework/$'
|
|
450
|
+
fullPath: '/$lang/$project/$version/docs/framework/$framework/$'
|
|
451
|
+
preLoaderRoute: typeof LangProjectVersionDocsFrameworkFrameworkSplatRouteImport
|
|
452
|
+
parentRoute: typeof LangProjectVersionDocsRoute
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
interface LangProjectVersionDocsRouteChildren {
|
|
458
|
+
LangProjectVersionDocsSplatRoute: typeof LangProjectVersionDocsSplatRoute
|
|
459
|
+
LangProjectVersionDocsIndexRoute: typeof LangProjectVersionDocsIndexRoute
|
|
460
|
+
LangProjectVersionDocsFrameworkIndexRoute: typeof LangProjectVersionDocsFrameworkIndexRoute
|
|
461
|
+
LangProjectVersionDocsFrameworkFrameworkSplatRoute: typeof LangProjectVersionDocsFrameworkFrameworkSplatRoute
|
|
462
|
+
LangProjectVersionDocsFrameworkFrameworkIndexRoute: typeof LangProjectVersionDocsFrameworkFrameworkIndexRoute
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
const LangProjectVersionDocsRouteChildren: LangProjectVersionDocsRouteChildren =
|
|
466
|
+
{
|
|
467
|
+
LangProjectVersionDocsSplatRoute: LangProjectVersionDocsSplatRoute,
|
|
468
|
+
LangProjectVersionDocsIndexRoute: LangProjectVersionDocsIndexRoute,
|
|
469
|
+
LangProjectVersionDocsFrameworkIndexRoute:
|
|
470
|
+
LangProjectVersionDocsFrameworkIndexRoute,
|
|
471
|
+
LangProjectVersionDocsFrameworkFrameworkSplatRoute:
|
|
472
|
+
LangProjectVersionDocsFrameworkFrameworkSplatRoute,
|
|
473
|
+
LangProjectVersionDocsFrameworkFrameworkIndexRoute:
|
|
474
|
+
LangProjectVersionDocsFrameworkFrameworkIndexRoute,
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
const LangProjectVersionDocsRouteWithChildren =
|
|
478
|
+
LangProjectVersionDocsRoute._addFileChildren(
|
|
479
|
+
LangProjectVersionDocsRouteChildren,
|
|
480
|
+
)
|
|
481
|
+
|
|
482
|
+
interface LangProjectVersionRouteChildren {
|
|
483
|
+
LangProjectVersionDocsRoute: typeof LangProjectVersionDocsRouteWithChildren
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
const LangProjectVersionRouteChildren: LangProjectVersionRouteChildren = {
|
|
487
|
+
LangProjectVersionDocsRoute: LangProjectVersionDocsRouteWithChildren,
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
const LangProjectVersionRouteWithChildren =
|
|
491
|
+
LangProjectVersionRoute._addFileChildren(LangProjectVersionRouteChildren)
|
|
492
|
+
|
|
493
|
+
interface LangProjectDocsRouteChildren {
|
|
494
|
+
LangProjectDocsSplatRoute: typeof LangProjectDocsSplatRoute
|
|
495
|
+
LangProjectDocsIndexRoute: typeof LangProjectDocsIndexRoute
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
const LangProjectDocsRouteChildren: LangProjectDocsRouteChildren = {
|
|
499
|
+
LangProjectDocsSplatRoute: LangProjectDocsSplatRoute,
|
|
500
|
+
LangProjectDocsIndexRoute: LangProjectDocsIndexRoute,
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
const LangProjectDocsRouteWithChildren = LangProjectDocsRoute._addFileChildren(
|
|
504
|
+
LangProjectDocsRouteChildren,
|
|
505
|
+
)
|
|
506
|
+
|
|
507
|
+
interface LangProjectRouteChildren {
|
|
508
|
+
LangProjectVersionRoute: typeof LangProjectVersionRouteWithChildren
|
|
509
|
+
LangProjectDocsRoute: typeof LangProjectDocsRouteWithChildren
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
const LangProjectRouteChildren: LangProjectRouteChildren = {
|
|
513
|
+
LangProjectVersionRoute: LangProjectVersionRouteWithChildren,
|
|
514
|
+
LangProjectDocsRoute: LangProjectDocsRouteWithChildren,
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
const LangProjectRouteWithChildren = LangProjectRoute._addFileChildren(
|
|
518
|
+
LangProjectRouteChildren,
|
|
519
|
+
)
|
|
520
|
+
|
|
521
|
+
interface LangBlogRouteChildren {
|
|
522
|
+
LangBlogSplatRoute: typeof LangBlogSplatRoute
|
|
523
|
+
LangBlogIndexRoute: typeof LangBlogIndexRoute
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
const LangBlogRouteChildren: LangBlogRouteChildren = {
|
|
527
|
+
LangBlogSplatRoute: LangBlogSplatRoute,
|
|
528
|
+
LangBlogIndexRoute: LangBlogIndexRoute,
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
const LangBlogRouteWithChildren = LangBlogRoute._addFileChildren(
|
|
532
|
+
LangBlogRouteChildren,
|
|
533
|
+
)
|
|
534
|
+
|
|
535
|
+
interface LangDocsRouteChildren {
|
|
536
|
+
LangDocsSplatRoute: typeof LangDocsSplatRoute
|
|
537
|
+
LangDocsIndexRoute: typeof LangDocsIndexRoute
|
|
538
|
+
LangDocsFrameworkIndexRoute: typeof LangDocsFrameworkIndexRoute
|
|
539
|
+
LangDocsFrameworkFrameworkSplatRoute: typeof LangDocsFrameworkFrameworkSplatRoute
|
|
540
|
+
LangDocsFrameworkFrameworkIndexRoute: typeof LangDocsFrameworkFrameworkIndexRoute
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
const LangDocsRouteChildren: LangDocsRouteChildren = {
|
|
544
|
+
LangDocsSplatRoute: LangDocsSplatRoute,
|
|
545
|
+
LangDocsIndexRoute: LangDocsIndexRoute,
|
|
546
|
+
LangDocsFrameworkIndexRoute: LangDocsFrameworkIndexRoute,
|
|
547
|
+
LangDocsFrameworkFrameworkSplatRoute: LangDocsFrameworkFrameworkSplatRoute,
|
|
548
|
+
LangDocsFrameworkFrameworkIndexRoute: LangDocsFrameworkFrameworkIndexRoute,
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
const LangDocsRouteWithChildren = LangDocsRoute._addFileChildren(
|
|
552
|
+
LangDocsRouteChildren,
|
|
553
|
+
)
|
|
554
|
+
|
|
555
|
+
interface LangRouteChildren {
|
|
556
|
+
LangProjectRoute: typeof LangProjectRouteWithChildren
|
|
557
|
+
LangBlogRoute: typeof LangBlogRouteWithChildren
|
|
558
|
+
LangDocsRoute: typeof LangDocsRouteWithChildren
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
const LangRouteChildren: LangRouteChildren = {
|
|
562
|
+
LangProjectRoute: LangProjectRouteWithChildren,
|
|
563
|
+
LangBlogRoute: LangBlogRouteWithChildren,
|
|
564
|
+
LangDocsRoute: LangDocsRouteWithChildren,
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
const LangRouteWithChildren = LangRoute._addFileChildren(LangRouteChildren)
|
|
568
|
+
|
|
569
|
+
const rootRouteChildren: RootRouteChildren = {
|
|
570
|
+
IndexRoute: IndexRoute,
|
|
571
|
+
LangRoute: LangRouteWithChildren,
|
|
572
|
+
}
|
|
573
|
+
export const routeTree = rootRouteImport
|
|
574
|
+
._addFileChildren(rootRouteChildren)
|
|
575
|
+
._addFileTypes<FileRouteTypes>()
|
|
576
|
+
|
|
577
|
+
import type { getRouter } from './router.tsx'
|
|
578
|
+
import type { createStart } from '@tanstack/react-start'
|
|
579
|
+
declare module '@tanstack/react-start' {
|
|
580
|
+
interface Register {
|
|
581
|
+
ssr: true
|
|
582
|
+
router: Awaited<ReturnType<typeof getRouter>>
|
|
583
|
+
}
|
|
584
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { createRouter } from '@tanstack/react-router'
|
|
2
|
+
import { QueryClient } from '@tanstack/react-query'
|
|
3
|
+
import { routeTree } from './routeTree.gen'
|
|
4
|
+
|
|
5
|
+
export function getRouter() {
|
|
6
|
+
const queryClient = new QueryClient({
|
|
7
|
+
defaultOptions: {
|
|
8
|
+
queries: {
|
|
9
|
+
staleTime: 5 * 60 * 1000, // 5 minutes
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
return createRouter({
|
|
15
|
+
routeTree,
|
|
16
|
+
defaultPreload: 'intent',
|
|
17
|
+
scrollRestoration: true,
|
|
18
|
+
context: {
|
|
19
|
+
queryClient,
|
|
20
|
+
},
|
|
21
|
+
})
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare module '@tanstack/react-start' {
|
|
25
|
+
interface Register {
|
|
26
|
+
ssr: true
|
|
27
|
+
router: ReturnType<typeof getRouter>
|
|
28
|
+
}
|
|
29
|
+
}
|