wcz-test 1.9.0 → 1.10.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/package.json +37 -34
- package/.prettierignore +0 -4
- package/.vs/VSWorkspaceState.json +0 -6
- package/.vs/slnx.sqlite +0 -0
- package/.vs/wcz-test/CopilotIndices/17.13.441.19478/CodeChunks.db +0 -0
- package/.vs/wcz-test/CopilotIndices/17.13.441.19478/SemanticSymbols.db +0 -0
- package/.vs/wcz-test/v17/.wsuo +0 -0
- package/.vs/wcz-test/v17/DocumentLayout.backup.json +0 -31
- package/.vs/wcz-test/v17/DocumentLayout.json +0 -31
- package/.vscode/settings.json +0 -11
- package/app.config.ts +0 -15
- package/postcss.config.mjs +0 -6
- package/public/android-chrome-192x192.png +0 -0
- package/public/android-chrome-512x512.png +0 -0
- package/public/apple-touch-icon.png +0 -0
- package/public/favicon-16x16.png +0 -0
- package/public/favicon-32x32.png +0 -0
- package/public/favicon.ico +0 -0
- package/public/favicon.png +0 -0
- package/public/site.webmanifest +0 -19
- package/src/api.ts +0 -6
- package/src/client.tsx +0 -8
- package/src/components/DefaultCatchBoundary.tsx +0 -53
- package/src/components/MyComponent.tsx +0 -8
- package/src/components/NotFound.tsx +0 -25
- package/src/components/PostError.tsx +0 -5
- package/src/components/UserError.tsx +0 -5
- package/src/global-middleware.ts +0 -6
- package/src/index.ts +0 -1
- package/src/routeTree.gen.ts +0 -483
- package/src/router.tsx +0 -22
- package/src/routes/__root.tsx +0 -139
- package/src/routes/_pathlessLayout/_nested-layout/route-a.tsx +0 -11
- package/src/routes/_pathlessLayout/_nested-layout/route-b.tsx +0 -11
- package/src/routes/_pathlessLayout/_nested-layout.tsx +0 -34
- package/src/routes/_pathlessLayout.tsx +0 -16
- package/src/routes/api/users.$id.ts +0 -24
- package/src/routes/api/users.ts +0 -17
- package/src/routes/deferred.tsx +0 -62
- package/src/routes/index.tsx +0 -13
- package/src/routes/posts.$postId.tsx +0 -34
- package/src/routes/posts.index.tsx +0 -9
- package/src/routes/posts.route.tsx +0 -38
- package/src/routes/posts_.$postId.deep.tsx +0 -29
- package/src/routes/redirect.tsx +0 -9
- package/src/routes/users.$userId.tsx +0 -33
- package/src/routes/users.index.tsx +0 -9
- package/src/routes/users.route.tsx +0 -48
- package/src/ssr.tsx +0 -13
- package/src/styles/app.css +0 -22
- package/src/utils/loggingMiddleware.tsx +0 -41
- package/src/utils/posts.tsx +0 -36
- package/src/utils/seo.ts +0 -33
- package/src/utils/users.tsx +0 -7
- package/tailwind.config.mjs +0 -4
- package/tsconfig.json +0 -22
- package/tsup.config.ts +0 -10
package/package.json
CHANGED
|
@@ -1,35 +1,38 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "wcz-test",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"private": false,
|
|
5
|
-
"sideEffects": false,
|
|
6
|
-
"type": "module",
|
|
7
|
-
"main": "dist/index.js",
|
|
8
|
-
"module": "dist/index.js",
|
|
9
|
-
"types": "dist/index.d.ts",
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"react": "^
|
|
19
|
-
"react-
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "wcz-test",
|
|
3
|
+
"version": "1.10.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"sideEffects": false,
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "dist/index.js",
|
|
8
|
+
"module": "dist/index.js",
|
|
9
|
+
"types": "dist/index.d.ts",
|
|
10
|
+
"files": [
|
|
11
|
+
"dist"
|
|
12
|
+
],
|
|
13
|
+
"scripts": {
|
|
14
|
+
"dev": "vinxi dev",
|
|
15
|
+
"prepublish": "tsup"
|
|
16
|
+
},
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@tanstack/react-router": "^1.116.0",
|
|
19
|
+
"@tanstack/react-router-devtools": "^1.116.0",
|
|
20
|
+
"@tanstack/react-start": "^1.116.1",
|
|
21
|
+
"react": "^19.0.0",
|
|
22
|
+
"react-dom": "^19.0.0",
|
|
23
|
+
"redaxios": "^0.5.1",
|
|
24
|
+
"tailwind-merge": "^2.6.0",
|
|
25
|
+
"vinxi": "0.5.3"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@types/node": "^22.5.4",
|
|
29
|
+
"@types/react": "^19.0.8",
|
|
30
|
+
"@types/react-dom": "^19.0.3",
|
|
31
|
+
"autoprefixer": "^10.4.20",
|
|
32
|
+
"postcss": "^8.5.1",
|
|
33
|
+
"tailwindcss": "^3.4.17",
|
|
34
|
+
"tsup": "^8.4.0",
|
|
35
|
+
"typescript": "^5.7.2",
|
|
36
|
+
"vite-tsconfig-paths": "^5.1.4"
|
|
37
|
+
}
|
|
35
38
|
}
|
package/.prettierignore
DELETED
package/.vs/slnx.sqlite
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/.vs/wcz-test/v17/.wsuo
DELETED
|
Binary file
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Version": 1,
|
|
3
|
-
"WorkspaceRootPath": "C:\\Users\\stama\\source\\repos\\wcz-test\\",
|
|
4
|
-
"Documents": [],
|
|
5
|
-
"DocumentGroupContainers": [
|
|
6
|
-
{
|
|
7
|
-
"Orientation": 0,
|
|
8
|
-
"VerticalTabListWidth": 256,
|
|
9
|
-
"DocumentGroups": [
|
|
10
|
-
{
|
|
11
|
-
"DockedWidth": 200,
|
|
12
|
-
"SelectedChildIndex": -1,
|
|
13
|
-
"Children": [
|
|
14
|
-
{
|
|
15
|
-
"$type": "Bookmark",
|
|
16
|
-
"Name": "ST:0:0:{0174dea2-fdbe-4ef1-8f99-c0beae78880f}"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"$type": "Bookmark",
|
|
20
|
-
"Name": "ST:0:0:{aa2115a1-9712-457b-9047-dbb71ca2cdd2}"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"$type": "Bookmark",
|
|
24
|
-
"Name": "ST:0:0:{1c4feeaa-4718-4aa9-859d-94ce25d182ba}"
|
|
25
|
-
}
|
|
26
|
-
]
|
|
27
|
-
}
|
|
28
|
-
]
|
|
29
|
-
}
|
|
30
|
-
]
|
|
31
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Version": 1,
|
|
3
|
-
"WorkspaceRootPath": "C:\\Users\\stama\\source\\repos\\wcz-test\\",
|
|
4
|
-
"Documents": [],
|
|
5
|
-
"DocumentGroupContainers": [
|
|
6
|
-
{
|
|
7
|
-
"Orientation": 0,
|
|
8
|
-
"VerticalTabListWidth": 256,
|
|
9
|
-
"DocumentGroups": [
|
|
10
|
-
{
|
|
11
|
-
"DockedWidth": 200,
|
|
12
|
-
"SelectedChildIndex": -1,
|
|
13
|
-
"Children": [
|
|
14
|
-
{
|
|
15
|
-
"$type": "Bookmark",
|
|
16
|
-
"Name": "ST:0:0:{0174dea2-fdbe-4ef1-8f99-c0beae78880f}"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"$type": "Bookmark",
|
|
20
|
-
"Name": "ST:0:0:{aa2115a1-9712-457b-9047-dbb71ca2cdd2}"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"$type": "Bookmark",
|
|
24
|
-
"Name": "ST:0:0:{1c4feeaa-4718-4aa9-859d-94ce25d182ba}"
|
|
25
|
-
}
|
|
26
|
-
]
|
|
27
|
-
}
|
|
28
|
-
]
|
|
29
|
-
}
|
|
30
|
-
]
|
|
31
|
-
}
|
package/.vscode/settings.json
DELETED
package/app.config.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from '@tanstack/react-start/config'
|
|
2
|
-
import tsConfigPaths from 'vite-tsconfig-paths'
|
|
3
|
-
|
|
4
|
-
export default defineConfig({
|
|
5
|
-
tsr: {
|
|
6
|
-
appDirectory: 'src',
|
|
7
|
-
},
|
|
8
|
-
vite: {
|
|
9
|
-
plugins: [
|
|
10
|
-
tsConfigPaths({
|
|
11
|
-
projects: ['./tsconfig.json'],
|
|
12
|
-
}),
|
|
13
|
-
],
|
|
14
|
-
},
|
|
15
|
-
})
|
package/postcss.config.mjs
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/public/favicon-16x16.png
DELETED
|
Binary file
|
package/public/favicon-32x32.png
DELETED
|
Binary file
|
package/public/favicon.ico
DELETED
|
Binary file
|
package/public/favicon.png
DELETED
|
Binary file
|
package/public/site.webmanifest
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "",
|
|
3
|
-
"short_name": "",
|
|
4
|
-
"icons": [
|
|
5
|
-
{
|
|
6
|
-
"src": "/android-chrome-192x192.png",
|
|
7
|
-
"sizes": "192x192",
|
|
8
|
-
"type": "image/png"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"src": "/android-chrome-512x512.png",
|
|
12
|
-
"sizes": "512x512",
|
|
13
|
-
"type": "image/png"
|
|
14
|
-
}
|
|
15
|
-
],
|
|
16
|
-
"theme_color": "#ffffff",
|
|
17
|
-
"background_color": "#ffffff",
|
|
18
|
-
"display": "standalone"
|
|
19
|
-
}
|
package/src/api.ts
DELETED
package/src/client.tsx
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="vinxi/types/client" />
|
|
2
|
-
import { hydrateRoot } from 'react-dom/client'
|
|
3
|
-
import { StartClient } from '@tanstack/react-start'
|
|
4
|
-
import { createRouter } from './router'
|
|
5
|
-
|
|
6
|
-
const router = createRouter()
|
|
7
|
-
|
|
8
|
-
hydrateRoot(document, <StartClient router={router} />)
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ErrorComponent,
|
|
3
|
-
Link,
|
|
4
|
-
rootRouteId,
|
|
5
|
-
useMatch,
|
|
6
|
-
useRouter,
|
|
7
|
-
} from '@tanstack/react-router'
|
|
8
|
-
import type { ErrorComponentProps } from '@tanstack/react-router'
|
|
9
|
-
|
|
10
|
-
export function DefaultCatchBoundary({ error }: ErrorComponentProps) {
|
|
11
|
-
const router = useRouter()
|
|
12
|
-
const isRoot = useMatch({
|
|
13
|
-
strict: false,
|
|
14
|
-
select: (state) => state.id === rootRouteId,
|
|
15
|
-
})
|
|
16
|
-
|
|
17
|
-
console.error('DefaultCatchBoundary Error:', error)
|
|
18
|
-
|
|
19
|
-
return (
|
|
20
|
-
<div className="min-w-0 flex-1 p-4 flex flex-col items-center justify-center gap-6">
|
|
21
|
-
<ErrorComponent error={error} />
|
|
22
|
-
<div className="flex gap-2 items-center flex-wrap">
|
|
23
|
-
<button
|
|
24
|
-
onClick={() => {
|
|
25
|
-
router.invalidate()
|
|
26
|
-
}}
|
|
27
|
-
className={`px-2 py-1 bg-gray-600 dark:bg-gray-700 rounded text-white uppercase font-extrabold`}
|
|
28
|
-
>
|
|
29
|
-
Try Again
|
|
30
|
-
</button>
|
|
31
|
-
{isRoot ? (
|
|
32
|
-
<Link
|
|
33
|
-
to="/"
|
|
34
|
-
className={`px-2 py-1 bg-gray-600 dark:bg-gray-700 rounded text-white uppercase font-extrabold`}
|
|
35
|
-
>
|
|
36
|
-
Home
|
|
37
|
-
</Link>
|
|
38
|
-
) : (
|
|
39
|
-
<Link
|
|
40
|
-
to="/"
|
|
41
|
-
className={`px-2 py-1 bg-gray-600 dark:bg-gray-700 rounded text-white uppercase font-extrabold`}
|
|
42
|
-
onClick={(e) => {
|
|
43
|
-
e.preventDefault()
|
|
44
|
-
window.history.back()
|
|
45
|
-
}}
|
|
46
|
-
>
|
|
47
|
-
Go Back
|
|
48
|
-
</Link>
|
|
49
|
-
)}
|
|
50
|
-
</div>
|
|
51
|
-
</div>
|
|
52
|
-
)
|
|
53
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Link } from '@tanstack/react-router'
|
|
2
|
-
|
|
3
|
-
export function NotFound({ children }: { children?: any }) {
|
|
4
|
-
return (
|
|
5
|
-
<div className="space-y-2 p-2">
|
|
6
|
-
<div className="text-gray-600 dark:text-gray-400">
|
|
7
|
-
{children || <p>The page you are looking for does not exist.</p>}
|
|
8
|
-
</div>
|
|
9
|
-
<p className="flex items-center gap-2 flex-wrap">
|
|
10
|
-
<button
|
|
11
|
-
onClick={() => window.history.back()}
|
|
12
|
-
className="bg-emerald-500 text-white px-2 py-1 rounded uppercase font-black text-sm"
|
|
13
|
-
>
|
|
14
|
-
Go back
|
|
15
|
-
</button>
|
|
16
|
-
<Link
|
|
17
|
-
to="/"
|
|
18
|
-
className="bg-cyan-600 text-white px-2 py-1 rounded uppercase font-black text-sm"
|
|
19
|
-
>
|
|
20
|
-
Start Over
|
|
21
|
-
</Link>
|
|
22
|
-
</p>
|
|
23
|
-
</div>
|
|
24
|
-
)
|
|
25
|
-
}
|
package/src/global-middleware.ts
DELETED
package/src/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { MyComponent } from "./components/MyComponent";
|