@crapthings/run3d 0.2.11 → 0.2.13
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/README.md +25 -16
- package/package.json +1 -1
- package/template/AGENTS.md +18 -16
- package/template/package.json +9 -6
- package/template/pnpm-lock.yaml +161 -97
- package/template/src/App.jsx +4 -1
- package/template/src/i18n.js +34 -0
- package/template/src/locales/en.json +5 -0
- package/template/src/locales/zh.json +5 -0
- package/template/src/main.jsx +1 -0
package/README.md
CHANGED
|
@@ -18,8 +18,16 @@ Edit the components in `src/Scenes` to make the starter scene your own. To insta
|
|
|
18
18
|
|
|
19
19
|
Drag to orbit the scene, scroll to zoom, and right-drag to pan. Edit `src/Scenes/index.jsx` for the scene and its settings.
|
|
20
20
|
|
|
21
|
+
## Languages
|
|
22
|
+
|
|
23
|
+
The template initializes [react-i18next](https://react.i18next.com/latest) in `src/i18n.js`, with English and Chinese resources in `src/locales`. It detects the browser language, falls back to English, and remembers language changes in local storage. The document's `lang` attribute follows the active language.
|
|
24
|
+
|
|
25
|
+
Use `const { t, i18n } = useTranslation()` from `react-i18next` in components, render text with `t('scene.label')`, and switch languages with `i18n.changeLanguage('zh')` or `i18n.changeLanguage('en')`. Add new translation keys to both JSON files; register additional languages in `src/i18n.js`.
|
|
26
|
+
|
|
21
27
|
## Included tools
|
|
22
28
|
|
|
29
|
+
Ordered by importance to the starter and typical usage, with core tools first and specialized tools later.
|
|
30
|
+
|
|
23
31
|
### App foundation
|
|
24
32
|
|
|
25
33
|
- [React and React DOM](https://github.com/react/react) — build and render the app UI.
|
|
@@ -35,6 +43,22 @@ Drag to orbit the scene, scroll to zoom, and right-drag to pan. Edit `src/Scenes
|
|
|
35
43
|
- [pmndrs/math](https://github.com/pmndrs/math) — provides math utilities for 3D work.
|
|
36
44
|
- [R3F-Perf](https://github.com/utsuboco/r3f-perf) — monitors rendering performance while developing.
|
|
37
45
|
|
|
46
|
+
### Data and state
|
|
47
|
+
|
|
48
|
+
- [Zustand](https://github.com/pmndrs/zustand) — manages React app state.
|
|
49
|
+
- [Koota](https://github.com/pmndrs/koota) — manages game state with entities and components.
|
|
50
|
+
- [D3](https://github.com/d3/d3) — provides data scales, layouts, and visualizations.
|
|
51
|
+
- [p5.js](https://github.com/processing/p5.js) — creates interactive graphics and creative coding sketches.
|
|
52
|
+
|
|
53
|
+
### Interface
|
|
54
|
+
|
|
55
|
+
- [Tailwind CSS](https://github.com/tailwindlabs/tailwindcss) — styles the app.
|
|
56
|
+
- [Headless UI](https://github.com/tailwindlabs/headlessui) — provides accessible, unstyled React UI components.
|
|
57
|
+
- [React Router](https://github.com/remix-run/react-router) — connects URLs to pages and handles navigation.
|
|
58
|
+
- [react-i18next](https://react.i18next.com/) and [i18next](https://www.i18next.com/) — translate UI text, with browser language detection and a saved language preference.
|
|
59
|
+
- [React Hotkeys Hook](https://github.com/JohannesKlauss/react-hotkeys-hook) — adds declarative keyboard shortcuts with a React hook.
|
|
60
|
+
- [Floating UI](https://github.com/floating-ui/floating-ui) — positions menus, tooltips, and popovers.
|
|
61
|
+
|
|
38
62
|
### Worlds and movement
|
|
39
63
|
|
|
40
64
|
- [React Three Rapier](https://github.com/pmndrs/react-three-rapier) — adds physics and collisions.
|
|
@@ -44,23 +68,8 @@ Drag to orbit the scene, scroll to zoom, and right-drag to pan. Edit `src/Scenes
|
|
|
44
68
|
- [Three Hex Tiling](https://github.com/Ameobea/three-hex-tiling) — reduces visible repetition in tiled textures.
|
|
45
69
|
- [TSL Hex Tiling](https://github.com/crapthings/tsl-hex-tiling) — reduces texture repetition with Three.js TSL for WebGPU and WebGL 2.
|
|
46
70
|
|
|
47
|
-
### Data and state
|
|
48
|
-
|
|
49
|
-
- [Zustand](https://github.com/pmndrs/zustand) — manages React app state.
|
|
50
|
-
- [Koota](https://github.com/pmndrs/koota) — manages game state with entities and components.
|
|
51
|
-
- [D3](https://github.com/d3/d3) — provides data scales, layouts, and visualizations.
|
|
52
|
-
- [p5.js](https://github.com/processing/p5.js) — creates interactive graphics and creative coding sketches.
|
|
53
|
-
|
|
54
71
|
### Media
|
|
55
72
|
|
|
56
|
-
- [Elementary](https://github.com/elemaudio/elementary) — creates declarative audio DSP graphs with `@elemaudio/core` and runs them in the browser with `@elemaudio/web-renderer`.
|
|
57
73
|
- [Howler.js](https://github.com/goldfire/howler.js#documentation) — plays audio with volume controls, sound sprites, and 3D spatial sound.
|
|
58
74
|
- [Mediabunny](https://mediabunny.dev/) — reads, writes, and converts audio and video files in the browser.
|
|
59
|
-
|
|
60
|
-
### Interface
|
|
61
|
-
|
|
62
|
-
- [React Router](https://github.com/remix-run/react-router) — connects URLs to pages and handles navigation.
|
|
63
|
-
- [Tailwind CSS](https://github.com/tailwindlabs/tailwindcss) — styles the app.
|
|
64
|
-
- [React Hotkeys Hook](https://github.com/JohannesKlauss/react-hotkeys-hook) — adds declarative keyboard shortcuts with a React hook.
|
|
65
|
-
- [Headless UI](https://github.com/tailwindlabs/headlessui) — provides accessible, unstyled React UI components.
|
|
66
|
-
- [Floating UI](https://github.com/floating-ui/floating-ui) — positions menus, tooltips, and popovers.
|
|
75
|
+
- [Elementary](https://github.com/elemaudio/elementary) — creates declarative audio DSP graphs with `@elemaudio/core` and runs them in the browser with `@elemaudio/web-renderer`.
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.2.
|
|
6
|
+
"version": "0.2.13",
|
|
7
7
|
"description": "From idea to interactive 3D prototype in one command. A JavaScript starter with Vite, React Three Fiber, and tools for creative experimentation.",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"bin": {
|
package/template/AGENTS.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Rules
|
|
2
2
|
|
|
3
|
+
## Code Style
|
|
4
|
+
|
|
5
|
+
- Follow JavaScript Standard Style (standard.js) when writing `.js` and `.jsx` files.
|
|
6
|
+
- Explain each top-level declaration's purpose in a one-sentence comment; split it if one sentence cannot explain it clearly.
|
|
7
|
+
- Avoid overengineering: question whether each solution or abstraction is needed for current requirements before implementing it.
|
|
8
|
+
- Use Tailwind utilities in React `className` instead of writing styles in `.css` files.
|
|
9
|
+
- Use Zustand for shared state and actions; avoid prop drilling.
|
|
10
|
+
- Use react-i18next for UI translations; keep language resources in `src/locales` and initialize them in `src/i18n.js`.
|
|
11
|
+
|
|
12
|
+
## UI Design and Components
|
|
13
|
+
|
|
14
|
+
- Design self-explanatory interfaces: use clear labels and visual hierarchy instead of explanatory text; add help text only when necessary.
|
|
15
|
+
- For menus, dialogs, popovers, tabs, and form controls, consult [docs/headless-ui.md](docs/headless-ui.md) and its official Headless UI links before implementation.
|
|
16
|
+
|
|
17
|
+
## Commands
|
|
18
|
+
|
|
19
|
+
- Run `pnpm build/lint/test` only on explicit user request; never run `pnpm dev`.
|
|
20
|
+
|
|
3
21
|
## World Scale
|
|
4
22
|
|
|
5
23
|
- Use a consistent world scale of 1 unit = 1 meter for all scene geometry, object dimensions, and positions.
|
|
@@ -15,19 +33,3 @@
|
|
|
15
33
|
## Texture Maps
|
|
16
34
|
|
|
17
35
|
- Reduce visible texture repetition with hex tiling: use `three-hex-tiling` for `MeshStandardMaterial` and `MeshPhysicalMaterial` with `WebGLRenderer`, and `tsl-hex-tiling` for TSL node materials with `WebGPURenderer` (including its WebGL 2 fallback).
|
|
18
|
-
|
|
19
|
-
## Code Style
|
|
20
|
-
|
|
21
|
-
- Follow JavaScript Standard Style (standard.js) when writing `.js` and `.jsx` files.
|
|
22
|
-
- Explain each top-level declaration's purpose in a one-sentence comment; split it if one sentence cannot explain it clearly.
|
|
23
|
-
- Avoid overengineering: question whether each solution or abstraction is needed for current requirements before implementing it.
|
|
24
|
-
- Write component styles inline with Tailwind utilities in `className`, using arbitrary values when needed; use CSS files only for global setup or styles Tailwind cannot express.
|
|
25
|
-
- Use Zustand for shared state and actions; avoid prop drilling.
|
|
26
|
-
|
|
27
|
-
## UI Components
|
|
28
|
-
|
|
29
|
-
- For menus, dialogs, popovers, tabs, and form controls, consult [docs/headless-ui.md](docs/headless-ui.md) and its official Headless UI links before implementation.
|
|
30
|
-
|
|
31
|
-
## Commands
|
|
32
|
-
|
|
33
|
-
- Run `pnpm build/lint/test` only on explicit user request; never run `pnpm dev`.
|
package/template/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"private": true,
|
|
4
4
|
"version": "0.0.0",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"packageManager": "pnpm@12.
|
|
6
|
+
"packageManager": "pnpm@12.15.0",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=24"
|
|
9
9
|
},
|
|
@@ -20,34 +20,37 @@
|
|
|
20
20
|
"@headlessui/react": "^2.2.10",
|
|
21
21
|
"@react-three/drei": "^10.7.9",
|
|
22
22
|
"@react-three/fiber": "^9.8.2",
|
|
23
|
-
"@react-three/postprocessing": "^3.2.
|
|
23
|
+
"@react-three/postprocessing": "^3.2.2",
|
|
24
24
|
"@react-three/rapier": "^2.2.0",
|
|
25
25
|
"@recast-navigation/three": "^0.43.1",
|
|
26
26
|
"d3": "^7.9.0",
|
|
27
27
|
"fastnoise-lite": "^1.1.1",
|
|
28
28
|
"gsap": "^3.15.0",
|
|
29
29
|
"howler": "^2.2.4",
|
|
30
|
+
"i18next": "^26.5.11",
|
|
31
|
+
"i18next-browser-languagedetector": "^8.2.3",
|
|
30
32
|
"koota": "^0.6.6",
|
|
31
33
|
"math": "0.1.0",
|
|
32
|
-
"mediabunny": "^1.
|
|
34
|
+
"mediabunny": "^1.62.1",
|
|
33
35
|
"navcat": "^0.4.1",
|
|
34
36
|
"p5": "^2.3.4",
|
|
35
37
|
"postprocessing": "^6.39.5",
|
|
36
38
|
"react": "19.2.8",
|
|
37
39
|
"react-dom": "19.2.8",
|
|
38
40
|
"react-hotkeys-hook": "^5.3.3",
|
|
39
|
-
"react-
|
|
41
|
+
"react-i18next": "^17.1.9",
|
|
42
|
+
"react-router": "^8.5.0",
|
|
40
43
|
"recast-navigation": "^0.43.1",
|
|
41
44
|
"three": "^0.186.1",
|
|
42
45
|
"three-hex-tiling": "^0.1.5",
|
|
43
46
|
"tsl-hex-tiling": "^0.1.1",
|
|
44
|
-
"zustand": "^5.0.
|
|
47
|
+
"zustand": "^5.0.16"
|
|
45
48
|
},
|
|
46
49
|
"devDependencies": {
|
|
47
50
|
"@tailwindcss/vite": "^4.3.3",
|
|
48
51
|
"@vitejs/plugin-react": "^6.1.2",
|
|
49
52
|
"r3f-perf": "^7.2.3",
|
|
50
53
|
"tailwindcss": "^4.3.3",
|
|
51
|
-
"vite": "^8.3.
|
|
54
|
+
"vite": "^8.3.5"
|
|
52
55
|
}
|
|
53
56
|
}
|
package/template/pnpm-lock.yaml
CHANGED
|
@@ -7,153 +7,153 @@ importers:
|
|
|
7
7
|
configDependencies: {}
|
|
8
8
|
packageManagerDependencies:
|
|
9
9
|
pnpm:
|
|
10
|
-
specifier: 12.
|
|
11
|
-
version: 12.
|
|
10
|
+
specifier: 12.15.0
|
|
11
|
+
version: 12.15.0
|
|
12
12
|
|
|
13
13
|
packages:
|
|
14
14
|
|
|
15
|
-
'@pnpm/exe.android-arm64@12.
|
|
16
|
-
resolution: {integrity: sha512
|
|
15
|
+
'@pnpm/exe.android-arm64@12.15.0':
|
|
16
|
+
resolution: {integrity: sha512-eVCqmscY70LGvgRzu3mi8IBWBFGix+a6mNZoWmXxESsBdeiKEF9xQSuaeel10yn+zI7TXy2jlI63vFLzETk+aQ==}
|
|
17
17
|
cpu: [arm64]
|
|
18
18
|
os: [android]
|
|
19
19
|
|
|
20
|
-
'@pnpm/exe.android-x64@12.
|
|
21
|
-
resolution: {integrity: sha512-
|
|
20
|
+
'@pnpm/exe.android-x64@12.15.0':
|
|
21
|
+
resolution: {integrity: sha512-Gx/WbkFcdUFUg8g8AShezcS9EiQxfYvdAm2hfKLO8sfJmJvKOCt5fzlgHWDzmGhoclibgW+tUGZ/KF4F4wOTCA==}
|
|
22
22
|
cpu: [x64]
|
|
23
23
|
os: [android]
|
|
24
24
|
|
|
25
|
-
'@pnpm/exe.darwin-arm64@12.
|
|
26
|
-
resolution: {integrity: sha512-
|
|
25
|
+
'@pnpm/exe.darwin-arm64@12.15.0':
|
|
26
|
+
resolution: {integrity: sha512-N0ZykiDWCvqSBJvt71j7cSoBR993FqvYZFtmpCtqvW3pguiI+NAgraLPA5OTwu5mV+/d8hYpVcPktJA3xFDLtA==}
|
|
27
27
|
cpu: [arm64]
|
|
28
28
|
os: [darwin]
|
|
29
29
|
|
|
30
|
-
'@pnpm/exe.darwin-x64@12.
|
|
31
|
-
resolution: {integrity: sha512-
|
|
30
|
+
'@pnpm/exe.darwin-x64@12.15.0':
|
|
31
|
+
resolution: {integrity: sha512-7Ntr2HlBUxzwWOg7NwDxCbRW/3vXuqKO+hcXm+w3SBi9rrHY53li1wLqWVT7Gjxd+lVEHM1QJZo6WJEGFU8C6A==}
|
|
32
32
|
cpu: [x64]
|
|
33
33
|
os: [darwin]
|
|
34
34
|
|
|
35
|
-
'@pnpm/exe.freebsd-x64@12.
|
|
36
|
-
resolution: {integrity: sha512-
|
|
35
|
+
'@pnpm/exe.freebsd-x64@12.15.0':
|
|
36
|
+
resolution: {integrity: sha512-btOiyL7fL7W4uQGH0aqFai2TNC3IoKcZ7gNHBVbEFZt2dWrnrD0SufL3iGs3fLlmb4OtuU35uf4Zpr9V9Jh9mA==}
|
|
37
37
|
cpu: [x64]
|
|
38
38
|
os: [freebsd]
|
|
39
39
|
|
|
40
|
-
'@pnpm/exe.linux-arm64-musl@12.
|
|
41
|
-
resolution: {integrity: sha512-
|
|
40
|
+
'@pnpm/exe.linux-arm64-musl@12.15.0':
|
|
41
|
+
resolution: {integrity: sha512-pNC38k+O+90FOjbPNSnw0E7apq1PKTmz3fFe1amn+lys/U5kL++uzir8bRiho8ONcyA3d9EU7wdqcY0DKkj+JA==}
|
|
42
42
|
cpu: [arm64]
|
|
43
43
|
os: [linux]
|
|
44
44
|
libc: [musl]
|
|
45
45
|
|
|
46
|
-
'@pnpm/exe.linux-arm64@12.
|
|
47
|
-
resolution: {integrity: sha512-
|
|
46
|
+
'@pnpm/exe.linux-arm64@12.15.0':
|
|
47
|
+
resolution: {integrity: sha512-qML/8aCXslh8td/w4U+HJNqUcZ2+m6EfTbWScIzZRmyPsRFN+xB4LP1U/hymxc1iSJiKtG56HJx2fvUErWFIGw==}
|
|
48
48
|
cpu: [arm64]
|
|
49
49
|
os: [linux]
|
|
50
50
|
libc: [glibc]
|
|
51
51
|
|
|
52
|
-
'@pnpm/exe.linux-ppc64@12.
|
|
53
|
-
resolution: {integrity: sha512-
|
|
52
|
+
'@pnpm/exe.linux-ppc64@12.15.0':
|
|
53
|
+
resolution: {integrity: sha512-tjRDUUl7RCJ6T/6eoNPxOqkwU4Mzi5RtTXmSAxujyz37OTwwsMU7Ps087Zk4gHcUvRSeyF40ZFsew3vtE+nmUA==}
|
|
54
54
|
cpu: [ppc64]
|
|
55
55
|
os: [linux]
|
|
56
56
|
libc: [glibc]
|
|
57
57
|
|
|
58
|
-
'@pnpm/exe.linux-riscv64@12.
|
|
59
|
-
resolution: {integrity: sha512-
|
|
58
|
+
'@pnpm/exe.linux-riscv64@12.15.0':
|
|
59
|
+
resolution: {integrity: sha512-bF1uBWEfbwaeryz6lIiaJ8AWD082otZfvzGX5l+6LZRpRwUEpJHUsJrORaYP5/cNMv5ZR2p6TvvcJcQzwtDzmw==}
|
|
60
60
|
cpu: [riscv64]
|
|
61
61
|
os: [linux]
|
|
62
62
|
libc: [glibc]
|
|
63
63
|
|
|
64
|
-
'@pnpm/exe.linux-s390x@12.
|
|
65
|
-
resolution: {integrity: sha512-
|
|
64
|
+
'@pnpm/exe.linux-s390x@12.15.0':
|
|
65
|
+
resolution: {integrity: sha512-zKMhIzsexYMToeLmqV5jPsvV/f9vwsJb2kUH2NFYzalbxImeBrlA4kL7GwF8gD4pagV6jYYcJb8RjbZIdjHptg==}
|
|
66
66
|
cpu: [s390x]
|
|
67
67
|
os: [linux]
|
|
68
68
|
libc: [glibc]
|
|
69
69
|
|
|
70
|
-
'@pnpm/exe.linux-x64-musl@12.
|
|
71
|
-
resolution: {integrity: sha512-
|
|
70
|
+
'@pnpm/exe.linux-x64-musl@12.15.0':
|
|
71
|
+
resolution: {integrity: sha512-A9J0Jg0Rdx+qQU4qXtwyST5tto9IOu1zi4fDk35nbc6DWahggbcKtFvZPKFwL2qgUXGXOX//hXv6z/sp6emO8A==}
|
|
72
72
|
cpu: [x64]
|
|
73
73
|
os: [linux]
|
|
74
74
|
libc: [musl]
|
|
75
75
|
|
|
76
|
-
'@pnpm/exe.linux-x64@12.
|
|
77
|
-
resolution: {integrity: sha512-
|
|
76
|
+
'@pnpm/exe.linux-x64@12.15.0':
|
|
77
|
+
resolution: {integrity: sha512-yc+QlZR+9+nr29J4fRzhMoapgxTBDndq/+peyoq1XUufnQFnfbXUMFudDIKzHi545linGqmOmXfn0NoufNgcOg==}
|
|
78
78
|
cpu: [x64]
|
|
79
79
|
os: [linux]
|
|
80
80
|
libc: [glibc]
|
|
81
81
|
|
|
82
|
-
'@pnpm/exe.win32-arm64@12.
|
|
83
|
-
resolution: {integrity: sha512-
|
|
82
|
+
'@pnpm/exe.win32-arm64@12.15.0':
|
|
83
|
+
resolution: {integrity: sha512-fPXZxuY1VclkOga9bc53qNCXcegfeoBR8+Ue+AospDwKzuGGSHll0oDxkLfkmpjyRqpe7bH5DyQPYp/xSMaIVA==}
|
|
84
84
|
cpu: [arm64]
|
|
85
85
|
os: [win32]
|
|
86
86
|
|
|
87
|
-
'@pnpm/exe.win32-x64@12.
|
|
88
|
-
resolution: {integrity: sha512
|
|
87
|
+
'@pnpm/exe.win32-x64@12.15.0':
|
|
88
|
+
resolution: {integrity: sha512-nrd+Tp1We1DGj4DGG5Bea9lZNh9y1PjlLBdEwdInS4D0h0UIDtM7JaGGGDJhNzIwcHASyihWI7HLV+dtG+fhYg==}
|
|
89
89
|
cpu: [x64]
|
|
90
90
|
os: [win32]
|
|
91
91
|
|
|
92
|
-
pnpm@12.
|
|
93
|
-
resolution: {integrity: sha512-
|
|
94
|
-
engines: {node: '>=18
|
|
92
|
+
pnpm@12.15.0:
|
|
93
|
+
resolution: {integrity: sha512-s5UdbW/0qfE9x89WzSjSuOs328ycaOUuHhGRhz6p+CoBcoerULqtxczElPA2xnwOR+sTYIwvo29HcRth6hKOYQ==}
|
|
94
|
+
engines: {node: '>=18'}
|
|
95
95
|
hasBin: true
|
|
96
96
|
|
|
97
97
|
snapshots:
|
|
98
98
|
|
|
99
|
-
'@pnpm/exe.android-arm64@12.
|
|
99
|
+
'@pnpm/exe.android-arm64@12.15.0':
|
|
100
100
|
optional: true
|
|
101
101
|
|
|
102
|
-
'@pnpm/exe.android-x64@12.
|
|
102
|
+
'@pnpm/exe.android-x64@12.15.0':
|
|
103
103
|
optional: true
|
|
104
104
|
|
|
105
|
-
'@pnpm/exe.darwin-arm64@12.
|
|
105
|
+
'@pnpm/exe.darwin-arm64@12.15.0':
|
|
106
106
|
optional: true
|
|
107
107
|
|
|
108
|
-
'@pnpm/exe.darwin-x64@12.
|
|
108
|
+
'@pnpm/exe.darwin-x64@12.15.0':
|
|
109
109
|
optional: true
|
|
110
110
|
|
|
111
|
-
'@pnpm/exe.freebsd-x64@12.
|
|
111
|
+
'@pnpm/exe.freebsd-x64@12.15.0':
|
|
112
112
|
optional: true
|
|
113
113
|
|
|
114
|
-
'@pnpm/exe.linux-arm64-musl@12.
|
|
114
|
+
'@pnpm/exe.linux-arm64-musl@12.15.0':
|
|
115
115
|
optional: true
|
|
116
116
|
|
|
117
|
-
'@pnpm/exe.linux-arm64@12.
|
|
117
|
+
'@pnpm/exe.linux-arm64@12.15.0':
|
|
118
118
|
optional: true
|
|
119
119
|
|
|
120
|
-
'@pnpm/exe.linux-ppc64@12.
|
|
120
|
+
'@pnpm/exe.linux-ppc64@12.15.0':
|
|
121
121
|
optional: true
|
|
122
122
|
|
|
123
|
-
'@pnpm/exe.linux-riscv64@12.
|
|
123
|
+
'@pnpm/exe.linux-riscv64@12.15.0':
|
|
124
124
|
optional: true
|
|
125
125
|
|
|
126
|
-
'@pnpm/exe.linux-s390x@12.
|
|
126
|
+
'@pnpm/exe.linux-s390x@12.15.0':
|
|
127
127
|
optional: true
|
|
128
128
|
|
|
129
|
-
'@pnpm/exe.linux-x64-musl@12.
|
|
129
|
+
'@pnpm/exe.linux-x64-musl@12.15.0':
|
|
130
130
|
optional: true
|
|
131
131
|
|
|
132
|
-
'@pnpm/exe.linux-x64@12.
|
|
132
|
+
'@pnpm/exe.linux-x64@12.15.0':
|
|
133
133
|
optional: true
|
|
134
134
|
|
|
135
|
-
'@pnpm/exe.win32-arm64@12.
|
|
135
|
+
'@pnpm/exe.win32-arm64@12.15.0':
|
|
136
136
|
optional: true
|
|
137
137
|
|
|
138
|
-
'@pnpm/exe.win32-x64@12.
|
|
138
|
+
'@pnpm/exe.win32-x64@12.15.0':
|
|
139
139
|
optional: true
|
|
140
140
|
|
|
141
|
-
pnpm@12.
|
|
141
|
+
pnpm@12.15.0:
|
|
142
142
|
optionalDependencies:
|
|
143
|
-
'@pnpm/exe.android-arm64': 12.
|
|
144
|
-
'@pnpm/exe.android-x64': 12.
|
|
145
|
-
'@pnpm/exe.darwin-arm64': 12.
|
|
146
|
-
'@pnpm/exe.darwin-x64': 12.
|
|
147
|
-
'@pnpm/exe.freebsd-x64': 12.
|
|
148
|
-
'@pnpm/exe.linux-arm64': 12.
|
|
149
|
-
'@pnpm/exe.linux-arm64-musl': 12.
|
|
150
|
-
'@pnpm/exe.linux-ppc64': 12.
|
|
151
|
-
'@pnpm/exe.linux-riscv64': 12.
|
|
152
|
-
'@pnpm/exe.linux-s390x': 12.
|
|
153
|
-
'@pnpm/exe.linux-x64': 12.
|
|
154
|
-
'@pnpm/exe.linux-x64-musl': 12.
|
|
155
|
-
'@pnpm/exe.win32-arm64': 12.
|
|
156
|
-
'@pnpm/exe.win32-x64': 12.
|
|
143
|
+
'@pnpm/exe.android-arm64': 12.15.0
|
|
144
|
+
'@pnpm/exe.android-x64': 12.15.0
|
|
145
|
+
'@pnpm/exe.darwin-arm64': 12.15.0
|
|
146
|
+
'@pnpm/exe.darwin-x64': 12.15.0
|
|
147
|
+
'@pnpm/exe.freebsd-x64': 12.15.0
|
|
148
|
+
'@pnpm/exe.linux-arm64': 12.15.0
|
|
149
|
+
'@pnpm/exe.linux-arm64-musl': 12.15.0
|
|
150
|
+
'@pnpm/exe.linux-ppc64': 12.15.0
|
|
151
|
+
'@pnpm/exe.linux-riscv64': 12.15.0
|
|
152
|
+
'@pnpm/exe.linux-s390x': 12.15.0
|
|
153
|
+
'@pnpm/exe.linux-x64': 12.15.0
|
|
154
|
+
'@pnpm/exe.linux-x64-musl': 12.15.0
|
|
155
|
+
'@pnpm/exe.win32-arm64': 12.15.0
|
|
156
|
+
'@pnpm/exe.win32-x64': 12.15.0
|
|
157
157
|
|
|
158
158
|
---
|
|
159
159
|
lockfileVersion: '9.0'
|
|
@@ -188,8 +188,8 @@ importers:
|
|
|
188
188
|
specifier: ^9.8.2
|
|
189
189
|
version: 9.8.2(@types/react@19.3.0)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(three@0.186.1)
|
|
190
190
|
'@react-three/postprocessing':
|
|
191
|
-
specifier: ^3.2.
|
|
192
|
-
version: 3.2.
|
|
191
|
+
specifier: ^3.2.2
|
|
192
|
+
version: 3.2.2(@react-three/fiber@9.8.2(@types/react@19.3.0)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(three@0.186.1))(@types/three@0.186.0)(postprocessing@6.39.5(three@0.186.1))(react@19.2.8)(three@0.186.1)
|
|
193
193
|
'@react-three/rapier':
|
|
194
194
|
specifier: ^2.2.0
|
|
195
195
|
version: 2.2.0(@react-three/fiber@9.8.2(@types/react@19.3.0)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(three@0.186.1))(react@19.2.8)(three@0.186.1)
|
|
@@ -208,6 +208,12 @@ importers:
|
|
|
208
208
|
howler:
|
|
209
209
|
specifier: ^2.2.4
|
|
210
210
|
version: 2.2.4
|
|
211
|
+
i18next:
|
|
212
|
+
specifier: ^26.5.11
|
|
213
|
+
version: 26.5.11
|
|
214
|
+
i18next-browser-languagedetector:
|
|
215
|
+
specifier: ^8.2.3
|
|
216
|
+
version: 8.2.3
|
|
211
217
|
koota:
|
|
212
218
|
specifier: ^0.6.6
|
|
213
219
|
version: 0.6.6(@types/react@19.3.0)(react@19.2.8)
|
|
@@ -215,8 +221,8 @@ importers:
|
|
|
215
221
|
specifier: 0.1.0
|
|
216
222
|
version: 0.1.0
|
|
217
223
|
mediabunny:
|
|
218
|
-
specifier: ^1.
|
|
219
|
-
version: 1.
|
|
224
|
+
specifier: ^1.62.1
|
|
225
|
+
version: 1.62.1
|
|
220
226
|
navcat:
|
|
221
227
|
specifier: ^0.4.1
|
|
222
228
|
version: 0.4.1(three@0.186.1)
|
|
@@ -235,9 +241,12 @@ importers:
|
|
|
235
241
|
react-hotkeys-hook:
|
|
236
242
|
specifier: ^5.3.3
|
|
237
243
|
version: 5.3.3(react-dom@19.2.8(react@19.2.8))(react@19.2.8)
|
|
244
|
+
react-i18next:
|
|
245
|
+
specifier: ^17.1.9
|
|
246
|
+
version: 17.1.9(i18next@26.5.11)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)
|
|
238
247
|
react-router:
|
|
239
|
-
specifier: ^8.
|
|
240
|
-
version: 8.
|
|
248
|
+
specifier: ^8.5.0
|
|
249
|
+
version: 8.5.0(@types/react@19.3.0)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)
|
|
241
250
|
recast-navigation:
|
|
242
251
|
specifier: ^0.43.1
|
|
243
252
|
version: 0.43.1
|
|
@@ -251,15 +260,15 @@ importers:
|
|
|
251
260
|
specifier: ^0.1.1
|
|
252
261
|
version: 0.1.1(three@0.186.1)
|
|
253
262
|
zustand:
|
|
254
|
-
specifier: ^5.0.
|
|
255
|
-
version: 5.0.
|
|
263
|
+
specifier: ^5.0.16
|
|
264
|
+
version: 5.0.16(@types/react@19.3.0)(react@19.2.8)(use-sync-external-store@1.7.0(react@19.2.8))
|
|
256
265
|
devDependencies:
|
|
257
266
|
'@tailwindcss/vite':
|
|
258
267
|
specifier: ^4.3.3
|
|
259
|
-
version: 4.3.3(vite@8.3.
|
|
268
|
+
version: 4.3.3(vite@8.3.5(jiti@2.7.0))
|
|
260
269
|
'@vitejs/plugin-react':
|
|
261
270
|
specifier: ^6.1.2
|
|
262
|
-
version: 6.1.2(vite@8.3.
|
|
271
|
+
version: 6.1.2(vite@8.3.5(jiti@2.7.0))
|
|
263
272
|
r3f-perf:
|
|
264
273
|
specifier: ^7.2.3
|
|
265
274
|
version: 7.2.3(@react-three/fiber@9.8.2(@types/react@19.3.0)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(three@0.186.1))(@types/react@19.3.0)(@types/three@0.186.0)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(three@0.186.1)(use-sync-external-store@1.7.0(react@19.2.8))
|
|
@@ -267,8 +276,8 @@ importers:
|
|
|
267
276
|
specifier: ^4.3.3
|
|
268
277
|
version: 4.3.3
|
|
269
278
|
vite:
|
|
270
|
-
specifier: ^8.3.
|
|
271
|
-
version: 8.3.
|
|
279
|
+
specifier: ^8.3.5
|
|
280
|
+
version: 8.3.5(jiti@2.7.0)
|
|
272
281
|
|
|
273
282
|
packages:
|
|
274
283
|
|
|
@@ -462,8 +471,8 @@ packages:
|
|
|
462
471
|
react-native:
|
|
463
472
|
optional: true
|
|
464
473
|
|
|
465
|
-
'@react-three/postprocessing@3.2.
|
|
466
|
-
resolution: {integrity: sha512-
|
|
474
|
+
'@react-three/postprocessing@3.2.2':
|
|
475
|
+
resolution: {integrity: sha512-y/ePU8gytOCAjQMy7At9gZFr/Xi/YGSHlNEir3fCY88+FoBpzL4RsTpzyKnrGshcD8wmJ5ppI5kWzz0dtNPkWQ==}
|
|
467
476
|
peerDependencies:
|
|
468
477
|
'@react-three/fiber': '>=9.7.0'
|
|
469
478
|
postprocessing: ^6.36.0
|
|
@@ -1042,12 +1051,26 @@ packages:
|
|
|
1042
1051
|
howler@2.2.4:
|
|
1043
1052
|
resolution: {integrity: sha512-iARIBPgcQrwtEr+tALF+rapJ8qSc+Set2GJQl7xT1MQzWaVkFebdJhR3alVlSiUf5U7nAANKuj3aWpwerocD5w==}
|
|
1044
1053
|
|
|
1054
|
+
html-parse-stringify@4.0.1:
|
|
1055
|
+
resolution: {integrity: sha512-0zHsZJrK7S3K2aucXWL6ycoYJ/iNtIcFHC/nYQgFklPtrv5LpJctIiSCroWZWeuoXvuyFdzp6KzjJQ+OT5MfFw==}
|
|
1056
|
+
|
|
1045
1057
|
i18next-browser-languagedetector@4.3.1:
|
|
1046
1058
|
resolution: {integrity: sha512-KIToAzf8zwWvacgnRwJp63ase26o24AuNUlfNVJ5YZAFmdGhsJpmFClxXPuk9rv1FMI4lnc8zLSqgZPEZMrW4g==}
|
|
1047
1059
|
|
|
1060
|
+
i18next-browser-languagedetector@8.2.3:
|
|
1061
|
+
resolution: {integrity: sha512-0jSTK3ncpXj9MFdxRz+TVTKDkSvYH8ifB/OCmUdEMprvXC3vy7kEvdKpj0yYB72B0UKEHJLPMEeRVC/UXroWnw==}
|
|
1062
|
+
|
|
1048
1063
|
i18next@19.9.2:
|
|
1049
1064
|
resolution: {integrity: sha512-0i6cuo6ER6usEOtKajUUDj92zlG+KArFia0857xxiEHAQcUwh/RtOQocui1LPJwunSYT574Pk64aNva1kwtxZg==}
|
|
1050
1065
|
|
|
1066
|
+
i18next@26.5.11:
|
|
1067
|
+
resolution: {integrity: sha512-Wc0klBPKxqZ2tL2qdAnF8xvvnWgr1IMGSY2ikTiAvaFVbz7xiFARtkoU4RidBDw1SyziGROp0qxu6qnJ7l2Wug==}
|
|
1068
|
+
peerDependencies:
|
|
1069
|
+
typescript: ^5 || ^6 || ^7
|
|
1070
|
+
peerDependenciesMeta:
|
|
1071
|
+
typescript:
|
|
1072
|
+
optional: true
|
|
1073
|
+
|
|
1051
1074
|
iconv-lite@0.6.3:
|
|
1052
1075
|
resolution: {integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==}
|
|
1053
1076
|
engines: {node: '>=0.10.0'}
|
|
@@ -1267,8 +1290,8 @@ packages:
|
|
|
1267
1290
|
mathcat@0.0.12:
|
|
1268
1291
|
resolution: {integrity: sha512-gUBe1U/sh7JQ+aSMJDiLG++B3t5rSGAYdEIqPBSEEFUHK9mAcC7yE0f7RZ1SjXI57bDLSYJyrA74XQPT1tJxoA==}
|
|
1269
1292
|
|
|
1270
|
-
mediabunny@1.
|
|
1271
|
-
resolution: {integrity: sha512-
|
|
1293
|
+
mediabunny@1.62.1:
|
|
1294
|
+
resolution: {integrity: sha512-lYzeerDwo9QLhBCipqQDXOSV7InvaIFplllZQviPO5rPwH+IUr8M1uvumk1olIUgMRGkPiInRriv25WFErUgMw==}
|
|
1272
1295
|
|
|
1273
1296
|
meshline@3.3.1:
|
|
1274
1297
|
resolution: {integrity: sha512-/TQj+JdZkeSUOl5Mk2J7eLcYTLiQm2IDzmlSvYm7ov15anEcDJ92GHqqazxTSreeNgfnYu24kiEvvv0WlbCdFQ==}
|
|
@@ -1377,16 +1400,38 @@ packages:
|
|
|
1377
1400
|
react: '>=16.8.0'
|
|
1378
1401
|
react-dom: '>=16.8.0'
|
|
1379
1402
|
|
|
1403
|
+
react-i18next@17.1.9:
|
|
1404
|
+
resolution: {integrity: sha512-OgYqIH13XHPlWTaaI795Dz+k2AdKnXcOxNQVnf750T8Ij0TYWp1nYvXRpoJBulPqlyk2OAbn1PM4tFKiIj/byA==}
|
|
1405
|
+
peerDependencies:
|
|
1406
|
+
i18next: '>= 26.2.0'
|
|
1407
|
+
react: '>= 16.8.0'
|
|
1408
|
+
react-dom: '*'
|
|
1409
|
+
react-native: '*'
|
|
1410
|
+
typescript: ^5 || ^6 || ^7
|
|
1411
|
+
peerDependenciesMeta:
|
|
1412
|
+
react-dom:
|
|
1413
|
+
optional: true
|
|
1414
|
+
react-native:
|
|
1415
|
+
optional: true
|
|
1416
|
+
typescript:
|
|
1417
|
+
optional: true
|
|
1418
|
+
|
|
1380
1419
|
react-is@16.13.1:
|
|
1381
1420
|
resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==}
|
|
1382
1421
|
|
|
1383
|
-
react-router@8.
|
|
1384
|
-
resolution: {integrity: sha512-
|
|
1422
|
+
react-router@8.5.0:
|
|
1423
|
+
resolution: {integrity: sha512-9nEd/deifcTJIIcUaNIyQGkyXD0D6QVB9XD2O5GgHpP3xu3U5RXm87YQ8++Wn8JQWgMBM/5+PjWPM/7n7O7WHA==}
|
|
1385
1424
|
engines: {node: '>=22.22.0'}
|
|
1386
1425
|
peerDependencies:
|
|
1426
|
+
'@types/react': '>=19.2.0'
|
|
1427
|
+
'@types/react-dom': '>=19.2.0'
|
|
1387
1428
|
react: '>=19.2.7'
|
|
1388
1429
|
react-dom: '>=19.2.7'
|
|
1389
1430
|
peerDependenciesMeta:
|
|
1431
|
+
'@types/react':
|
|
1432
|
+
optional: true
|
|
1433
|
+
'@types/react-dom':
|
|
1434
|
+
optional: true
|
|
1390
1435
|
react-dom:
|
|
1391
1436
|
optional: true
|
|
1392
1437
|
|
|
@@ -1543,13 +1588,13 @@ packages:
|
|
|
1543
1588
|
resolution: {integrity: sha512-6Z7Ma2aVEWisaL6TvBCy7P8rm2LQoPv6dJ7ecIaIixHcwfbJ0x7mWdbcwlIM5IGQxPZSFYeqRCqlOOeKoJYMkw==}
|
|
1544
1589
|
engines: {node: '>= 4'}
|
|
1545
1590
|
|
|
1546
|
-
vite@8.3.
|
|
1547
|
-
resolution: {integrity: sha512-
|
|
1591
|
+
vite@8.3.5:
|
|
1592
|
+
resolution: {integrity: sha512-z1YpjieJ9g0ebTmQpLBv/oq9E3F9EIlOe+7LahW8SrE3LTiG3udBRUXQOlYXP9b+IC2q2phHeVxj9xGlw34OEQ==}
|
|
1548
1593
|
engines: {node: ^20.19.0 || >=22.12.0}
|
|
1549
1594
|
hasBin: true
|
|
1550
1595
|
peerDependencies:
|
|
1551
1596
|
'@types/node': ^20.19.0 || >=22.12.0
|
|
1552
|
-
'@vitejs/devtools': ^0.7.1
|
|
1597
|
+
'@vitejs/devtools': ^0.7.1 || ^0.8.0
|
|
1553
1598
|
esbuild: ^0.27.0 || ^0.28.0
|
|
1554
1599
|
jiti: '>=1.21.0'
|
|
1555
1600
|
less: ^4.0.0
|
|
@@ -1615,8 +1660,8 @@ packages:
|
|
|
1615
1660
|
react:
|
|
1616
1661
|
optional: true
|
|
1617
1662
|
|
|
1618
|
-
zustand@5.0.
|
|
1619
|
-
resolution: {integrity: sha512-
|
|
1663
|
+
zustand@5.0.16:
|
|
1664
|
+
resolution: {integrity: sha512-Uv7e327ihlCfayfja3hDc0M64Upev1LWBKpRobdK4NyovDDPeeX4imWXc/wzC1yc6fkYPoAY/ncKVPAs2jrtQw==}
|
|
1620
1665
|
engines: {node: '>=12.20.0'}
|
|
1621
1666
|
peerDependencies:
|
|
1622
1667
|
'@types/react': '>=18.0.0'
|
|
@@ -1821,7 +1866,7 @@ snapshots:
|
|
|
1821
1866
|
tunnel-rat: 0.1.2(@types/react@19.3.0)(react@19.2.8)
|
|
1822
1867
|
use-sync-external-store: 1.7.0(react@19.2.8)
|
|
1823
1868
|
utility-types: 3.11.0
|
|
1824
|
-
zustand: 5.0.
|
|
1869
|
+
zustand: 5.0.16(@types/react@19.3.0)(react@19.2.8)(use-sync-external-store@1.7.0(react@19.2.8))
|
|
1825
1870
|
optionalDependencies:
|
|
1826
1871
|
react-dom: 19.2.8(react@19.2.8)
|
|
1827
1872
|
transitivePeerDependencies:
|
|
@@ -1855,7 +1900,7 @@ snapshots:
|
|
|
1855
1900
|
troika-three-text: 0.52.5(three@0.186.1)
|
|
1856
1901
|
tunnel-rat: 0.1.2(@types/react@19.3.0)(react@19.2.8)
|
|
1857
1902
|
utility-types: 3.11.0
|
|
1858
|
-
zustand: 5.0.
|
|
1903
|
+
zustand: 5.0.16(@types/react@19.3.0)(react@19.2.8)(use-sync-external-store@1.7.0(react@19.2.8))
|
|
1859
1904
|
optionalDependencies:
|
|
1860
1905
|
react-dom: 19.2.8(react@19.2.8)
|
|
1861
1906
|
transitivePeerDependencies:
|
|
@@ -1877,14 +1922,14 @@ snapshots:
|
|
|
1877
1922
|
suspend-react: 0.1.3(react@19.2.8)
|
|
1878
1923
|
three: 0.186.1
|
|
1879
1924
|
use-sync-external-store: 1.7.0(react@19.2.8)
|
|
1880
|
-
zustand: 5.0.
|
|
1925
|
+
zustand: 5.0.16(@types/react@19.3.0)(react@19.2.8)(use-sync-external-store@1.7.0(react@19.2.8))
|
|
1881
1926
|
optionalDependencies:
|
|
1882
1927
|
react-dom: 19.2.8(react@19.2.8)
|
|
1883
1928
|
transitivePeerDependencies:
|
|
1884
1929
|
- '@types/react'
|
|
1885
1930
|
- immer
|
|
1886
1931
|
|
|
1887
|
-
'@react-three/postprocessing@3.2.
|
|
1932
|
+
'@react-three/postprocessing@3.2.2(@react-three/fiber@9.8.2(@types/react@19.3.0)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(three@0.186.1))(@types/three@0.186.0)(postprocessing@6.39.5(three@0.186.1))(react@19.2.8)(three@0.186.1)':
|
|
1888
1933
|
dependencies:
|
|
1889
1934
|
'@react-three/fiber': 9.8.2(@types/react@19.3.0)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(three@0.186.1)
|
|
1890
1935
|
maath: 0.10.8(@types/three@0.186.0)(three@0.186.1)
|
|
@@ -2044,12 +2089,12 @@ snapshots:
|
|
|
2044
2089
|
'@tailwindcss/oxide-win32-arm64-msvc': 4.3.3
|
|
2045
2090
|
'@tailwindcss/oxide-win32-x64-msvc': 4.3.3
|
|
2046
2091
|
|
|
2047
|
-
'@tailwindcss/vite@4.3.3(vite@8.3.
|
|
2092
|
+
'@tailwindcss/vite@4.3.3(vite@8.3.5(jiti@2.7.0))':
|
|
2048
2093
|
dependencies:
|
|
2049
2094
|
'@tailwindcss/node': 4.3.3
|
|
2050
2095
|
'@tailwindcss/oxide': 4.3.3
|
|
2051
2096
|
tailwindcss: 4.3.3
|
|
2052
|
-
vite: 8.3.
|
|
2097
|
+
vite: 8.3.5(jiti@2.7.0)
|
|
2053
2098
|
|
|
2054
2099
|
'@tanstack/react-virtual@3.14.13(react-dom@19.2.8(react@19.2.8))(react@19.2.8)':
|
|
2055
2100
|
dependencies:
|
|
@@ -2105,10 +2150,10 @@ snapshots:
|
|
|
2105
2150
|
optionalDependencies:
|
|
2106
2151
|
react: 19.2.8
|
|
2107
2152
|
|
|
2108
|
-
'@vitejs/plugin-react@6.1.2(vite@8.3.
|
|
2153
|
+
'@vitejs/plugin-react@6.1.2(vite@8.3.5(jiti@2.7.0))':
|
|
2109
2154
|
dependencies:
|
|
2110
2155
|
'@rolldown/pluginutils': 1.0.1
|
|
2111
|
-
vite: 8.3.
|
|
2156
|
+
vite: 8.3.5(jiti@2.7.0)
|
|
2112
2157
|
|
|
2113
2158
|
acorn-walk@8.3.5:
|
|
2114
2159
|
dependencies:
|
|
@@ -2371,14 +2416,22 @@ snapshots:
|
|
|
2371
2416
|
|
|
2372
2417
|
howler@2.2.4: {}
|
|
2373
2418
|
|
|
2419
|
+
html-parse-stringify@4.0.1: {}
|
|
2420
|
+
|
|
2374
2421
|
i18next-browser-languagedetector@4.3.1:
|
|
2375
2422
|
dependencies:
|
|
2376
2423
|
'@babel/runtime': 7.29.7
|
|
2377
2424
|
|
|
2425
|
+
i18next-browser-languagedetector@8.2.3:
|
|
2426
|
+
dependencies:
|
|
2427
|
+
'@babel/runtime': 7.29.7
|
|
2428
|
+
|
|
2378
2429
|
i18next@19.9.2:
|
|
2379
2430
|
dependencies:
|
|
2380
2431
|
'@babel/runtime': 7.29.7
|
|
2381
2432
|
|
|
2433
|
+
i18next@26.5.11: {}
|
|
2434
|
+
|
|
2382
2435
|
iconv-lite@0.6.3:
|
|
2383
2436
|
dependencies:
|
|
2384
2437
|
safer-buffer: 2.1.2
|
|
@@ -2534,7 +2587,7 @@ snapshots:
|
|
|
2534
2587
|
|
|
2535
2588
|
mathcat@0.0.12: {}
|
|
2536
2589
|
|
|
2537
|
-
mediabunny@1.
|
|
2590
|
+
mediabunny@1.62.1:
|
|
2538
2591
|
dependencies:
|
|
2539
2592
|
'@types/dom-mediacapture-transform': 0.1.12
|
|
2540
2593
|
'@types/dom-webcodecs': 0.1.13
|
|
@@ -2656,14 +2709,25 @@ snapshots:
|
|
|
2656
2709
|
react: 19.2.8
|
|
2657
2710
|
react-dom: 19.2.8(react@19.2.8)
|
|
2658
2711
|
|
|
2712
|
+
react-i18next@17.1.9(i18next@26.5.11)(react-dom@19.2.8(react@19.2.8))(react@19.2.8):
|
|
2713
|
+
dependencies:
|
|
2714
|
+
'@babel/runtime': 7.29.7
|
|
2715
|
+
html-parse-stringify: 4.0.1
|
|
2716
|
+
i18next: 26.5.11
|
|
2717
|
+
react: 19.2.8
|
|
2718
|
+
use-sync-external-store: 1.7.0(react@19.2.8)
|
|
2719
|
+
optionalDependencies:
|
|
2720
|
+
react-dom: 19.2.8(react@19.2.8)
|
|
2721
|
+
|
|
2659
2722
|
react-is@16.13.1: {}
|
|
2660
2723
|
|
|
2661
|
-
react-router@8.
|
|
2724
|
+
react-router@8.5.0(@types/react@19.3.0)(react-dom@19.2.8(react@19.2.8))(react@19.2.8):
|
|
2662
2725
|
dependencies:
|
|
2663
2726
|
'@remix-run/route-pattern': 0.22.1
|
|
2664
2727
|
cookie-es: 3.1.1
|
|
2665
2728
|
react: 19.2.8
|
|
2666
2729
|
optionalDependencies:
|
|
2730
|
+
'@types/react': 19.3.0
|
|
2667
2731
|
react-dom: 19.2.8(react@19.2.8)
|
|
2668
2732
|
|
|
2669
2733
|
react-stately@3.50.0(react@19.2.8):
|
|
@@ -2817,7 +2881,7 @@ snapshots:
|
|
|
2817
2881
|
|
|
2818
2882
|
utility-types@3.11.0: {}
|
|
2819
2883
|
|
|
2820
|
-
vite@8.3.
|
|
2884
|
+
vite@8.3.5(jiti@2.7.0):
|
|
2821
2885
|
dependencies:
|
|
2822
2886
|
lightningcss: 1.33.0
|
|
2823
2887
|
picomatch: 4.0.7
|
|
@@ -2845,7 +2909,7 @@ snapshots:
|
|
|
2845
2909
|
'@types/react': 19.3.0
|
|
2846
2910
|
react: 19.2.8
|
|
2847
2911
|
|
|
2848
|
-
zustand@5.0.
|
|
2912
|
+
zustand@5.0.16(@types/react@19.3.0)(react@19.2.8)(use-sync-external-store@1.7.0(react@19.2.8)):
|
|
2849
2913
|
optionalDependencies:
|
|
2850
2914
|
'@types/react': 19.3.0
|
|
2851
2915
|
react: 19.2.8
|
package/template/src/App.jsx
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { Scene } from '@/Scenes'
|
|
2
|
+
import { useTranslation } from 'react-i18next'
|
|
2
3
|
|
|
3
4
|
// The starter scene fills the viewport against the favicon's dark background.
|
|
4
5
|
export function App () {
|
|
6
|
+
const { t } = useTranslation()
|
|
7
|
+
|
|
5
8
|
return (
|
|
6
|
-
<main className='fixed inset-0 bg-slate-900'>
|
|
9
|
+
<main className='fixed inset-0 bg-slate-900' aria-label={t('scene.label')}>
|
|
7
10
|
<Scene />
|
|
8
11
|
</main>
|
|
9
12
|
)
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import i18n from 'i18next'
|
|
2
|
+
import LanguageDetector from 'i18next-browser-languagedetector'
|
|
3
|
+
import { initReactI18next } from 'react-i18next'
|
|
4
|
+
import en from '@/locales/en.json'
|
|
5
|
+
import zh from '@/locales/zh.json'
|
|
6
|
+
|
|
7
|
+
// Keep the document language aligned with the active translation language.
|
|
8
|
+
function updateDocumentLanguage (language) {
|
|
9
|
+
document.documentElement.lang = language
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
i18n.on('languageChanged', updateDocumentLanguage)
|
|
13
|
+
|
|
14
|
+
i18n
|
|
15
|
+
.use(LanguageDetector)
|
|
16
|
+
.use(initReactI18next)
|
|
17
|
+
.init({
|
|
18
|
+
resources: {
|
|
19
|
+
en: { translation: en },
|
|
20
|
+
zh: { translation: zh }
|
|
21
|
+
},
|
|
22
|
+
supportedLngs: ['en', 'zh'],
|
|
23
|
+
fallbackLng: 'en',
|
|
24
|
+
load: 'languageOnly',
|
|
25
|
+
detection: {
|
|
26
|
+
order: ['localStorage', 'navigator'],
|
|
27
|
+
caches: ['localStorage']
|
|
28
|
+
},
|
|
29
|
+
interpolation: {
|
|
30
|
+
escapeValue: false
|
|
31
|
+
}
|
|
32
|
+
})
|
|
33
|
+
|
|
34
|
+
export default i18n
|