wcz-test 1.8.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.
Files changed (57) hide show
  1. package/package.json +37 -35
  2. package/.prettierignore +0 -4
  3. package/.vs/VSWorkspaceState.json +0 -6
  4. package/.vs/slnx.sqlite +0 -0
  5. package/.vs/wcz-test/CopilotIndices/17.13.441.19478/CodeChunks.db +0 -0
  6. package/.vs/wcz-test/CopilotIndices/17.13.441.19478/SemanticSymbols.db +0 -0
  7. package/.vs/wcz-test/v17/.wsuo +0 -0
  8. package/.vs/wcz-test/v17/DocumentLayout.backup.json +0 -31
  9. package/.vs/wcz-test/v17/DocumentLayout.json +0 -31
  10. package/.vscode/settings.json +0 -11
  11. package/app.config.ts +0 -15
  12. package/postcss.config.mjs +0 -6
  13. package/public/android-chrome-192x192.png +0 -0
  14. package/public/android-chrome-512x512.png +0 -0
  15. package/public/apple-touch-icon.png +0 -0
  16. package/public/favicon-16x16.png +0 -0
  17. package/public/favicon-32x32.png +0 -0
  18. package/public/favicon.ico +0 -0
  19. package/public/favicon.png +0 -0
  20. package/public/site.webmanifest +0 -19
  21. package/src/api.ts +0 -6
  22. package/src/client.tsx +0 -8
  23. package/src/components/DefaultCatchBoundary.tsx +0 -53
  24. package/src/components/MyComponent.tsx +0 -8
  25. package/src/components/NotFound.tsx +0 -25
  26. package/src/components/PostError.tsx +0 -5
  27. package/src/components/UserError.tsx +0 -5
  28. package/src/global-middleware.ts +0 -6
  29. package/src/index.ts +0 -1
  30. package/src/routeTree.gen.ts +0 -483
  31. package/src/router.tsx +0 -22
  32. package/src/routes/__root.tsx +0 -139
  33. package/src/routes/_pathlessLayout/_nested-layout/route-a.tsx +0 -11
  34. package/src/routes/_pathlessLayout/_nested-layout/route-b.tsx +0 -11
  35. package/src/routes/_pathlessLayout/_nested-layout.tsx +0 -34
  36. package/src/routes/_pathlessLayout.tsx +0 -16
  37. package/src/routes/api/users.$id.ts +0 -24
  38. package/src/routes/api/users.ts +0 -17
  39. package/src/routes/deferred.tsx +0 -62
  40. package/src/routes/index.tsx +0 -13
  41. package/src/routes/posts.$postId.tsx +0 -34
  42. package/src/routes/posts.index.tsx +0 -9
  43. package/src/routes/posts.route.tsx +0 -38
  44. package/src/routes/posts_.$postId.deep.tsx +0 -29
  45. package/src/routes/redirect.tsx +0 -9
  46. package/src/routes/users.$userId.tsx +0 -33
  47. package/src/routes/users.index.tsx +0 -9
  48. package/src/routes/users.route.tsx +0 -48
  49. package/src/ssr.tsx +0 -13
  50. package/src/styles/app.css +0 -22
  51. package/src/utils/loggingMiddleware.tsx +0 -41
  52. package/src/utils/posts.tsx +0 -36
  53. package/src/utils/seo.ts +0 -33
  54. package/src/utils/users.tsx +0 -7
  55. package/tailwind.config.mjs +0 -4
  56. package/tsconfig.json +0 -22
  57. package/tsup.config.ts +0 -10
package/package.json CHANGED
@@ -1,36 +1,38 @@
1
- {
2
- "name": "wcz-test",
3
- "version": "1.8.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
- "scripts": {
11
- "dev": "vinxi dev",
12
- "prepublish": "tsup",
13
- "publish": "npm publish"
14
- },
15
- "dependencies": {
16
- "@tanstack/react-router": "^1.116.0",
17
- "@tanstack/react-router-devtools": "^1.116.0",
18
- "@tanstack/react-start": "^1.116.1",
19
- "react": "^19.0.0",
20
- "react-dom": "^19.0.0",
21
- "redaxios": "^0.5.1",
22
- "tailwind-merge": "^2.6.0",
23
- "vinxi": "0.5.3"
24
- },
25
- "devDependencies": {
26
- "@types/node": "^22.5.4",
27
- "@types/react": "^19.0.8",
28
- "@types/react-dom": "^19.0.3",
29
- "autoprefixer": "^10.4.20",
30
- "postcss": "^8.5.1",
31
- "tailwindcss": "^3.4.17",
32
- "tsup": "^8.4.0",
33
- "typescript": "^5.7.2",
34
- "vite-tsconfig-paths": "^5.1.4"
35
- }
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
+ }
36
38
  }
package/.prettierignore DELETED
@@ -1,4 +0,0 @@
1
- **/build
2
- **/public
3
- pnpm-lock.yaml
4
- routeTree.gen.ts
@@ -1,6 +0,0 @@
1
- {
2
- "ExpandedNodes": [
3
- ""
4
- ],
5
- "PreviewInSolutionExplorer": false
6
- }
package/.vs/slnx.sqlite DELETED
Binary file
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
- }
@@ -1,11 +0,0 @@
1
- {
2
- "files.watcherExclude": {
3
- "**/routeTree.gen.ts": true
4
- },
5
- "search.exclude": {
6
- "**/routeTree.gen.ts": true
7
- },
8
- "files.readonlyInclude": {
9
- "**/routeTree.gen.ts": true
10
- }
11
- }
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
- })
@@ -1,6 +0,0 @@
1
- export default {
2
- plugins: {
3
- tailwindcss: {},
4
- autoprefixer: {},
5
- },
6
- }
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -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
@@ -1,6 +0,0 @@
1
- import {
2
- createStartAPIHandler,
3
- defaultAPIFileRouteHandler,
4
- } from '@tanstack/react-start/api'
5
-
6
- export default createStartAPIHandler(defaultAPIFileRouteHandler)
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,8 +0,0 @@
1
-
2
- export const MyComponent = () => {
3
- return (
4
- <div>
5
- <h1>Hello, World!</h1>
6
- </div>
7
- );
8
- }
@@ -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
- }
@@ -1,5 +0,0 @@
1
- import { ErrorComponent, ErrorComponentProps } from '@tanstack/react-router'
2
-
3
- export function PostErrorComponent({ error }: ErrorComponentProps) {
4
- return <ErrorComponent error={error} />
5
- }
@@ -1,5 +0,0 @@
1
- import { ErrorComponent, ErrorComponentProps } from '@tanstack/react-router'
2
-
3
- export function UserErrorComponent({ error }: ErrorComponentProps) {
4
- return <ErrorComponent error={error} />
5
- }
@@ -1,6 +0,0 @@
1
- import { registerGlobalMiddleware } from '@tanstack/react-start'
2
- import { logMiddleware } from './utils/loggingMiddleware'
3
-
4
- registerGlobalMiddleware({
5
- middleware: [logMiddleware],
6
- })
package/src/index.ts DELETED
@@ -1 +0,0 @@
1
- export { MyComponent } from "./components/MyComponent";