mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-23 18:41:24 -08:00
Compare commits
37
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e3b3cb77d1 | ||
|
|
5a8804630b | ||
|
|
0df8b938d8 | ||
|
|
7180f4eaa7 | ||
|
|
2a55617e3a | ||
|
|
1777d584fe | ||
|
|
edd9ea02e1 | ||
|
|
119d9158c0 | ||
|
|
0e073a01fd | ||
|
|
4e9fdb206c | ||
|
|
0a08d57426 | ||
|
|
c316c50f30 | ||
|
|
81716be512 | ||
|
|
1d273ac651 | ||
|
|
7dc815cd86 | ||
|
|
d6f771e6b2 | ||
|
|
3aeb0569b1 | ||
|
|
bf2c5d59ab | ||
|
|
94b2309945 | ||
|
|
e81c9c5b2d | ||
|
|
900bdc03ca | ||
|
|
5a73ad77f2 | ||
|
|
1c6a29940a | ||
|
|
adb0ae969d | ||
|
|
ae5783ce9f | ||
|
|
4408b36ffb | ||
|
|
8708778596 | ||
|
|
b045c88158 | ||
|
|
0235660642 | ||
|
|
3d90d22b56 | ||
|
|
7ac3993543 | ||
|
|
79294e95c7 | ||
|
|
2e9256a630 | ||
|
|
0e0992e6d4 | ||
|
|
5be7896d8b | ||
|
|
25c659ba03 | ||
|
|
e38a4b40b5 |
No files matched your search
@@ -27,7 +27,7 @@ jobs:
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v5
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: '.node-version'
|
||||
cache: 'pnpm'
|
||||
@@ -65,7 +65,7 @@ jobs:
|
||||
|
||||
- if: startsWith(matrix.os, 'ubuntu')
|
||||
name: Set up Linux dependencies
|
||||
uses: awalsh128/cache-apt-pkgs-action@v1.5.3
|
||||
uses: awalsh128/cache-apt-pkgs-action@v1.6.0
|
||||
with:
|
||||
packages: libgtk-3-dev webkit2gtk-4.1 libappindicator3-dev librsvg2-dev patchelf
|
||||
# Increment to invalidate the cache
|
||||
@@ -85,7 +85,7 @@ jobs:
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v5
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: '.node-version'
|
||||
cache: 'pnpm'
|
||||
@@ -103,7 +103,7 @@ jobs:
|
||||
|
||||
- if: startsWith(matrix.os, 'windows')
|
||||
name: Upload a Build Artifact (Windows)
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v5
|
||||
with:
|
||||
# Artifact name
|
||||
name: ${{ format('SlimeVR-GUI-Windows-{0}', env.BUILD_ARCH) }}
|
||||
@@ -112,7 +112,7 @@ jobs:
|
||||
|
||||
- if: startsWith(matrix.os, 'ubuntu')
|
||||
name: Upload a Build Artifact (Linux)
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v5
|
||||
with:
|
||||
# Artifact name
|
||||
name: ${{ format('SlimeVR-GUI-Linux-{0}', env.BUILD_ARCH) }}
|
||||
@@ -121,7 +121,7 @@ jobs:
|
||||
|
||||
- if: matrix.os == 'macos-latest'
|
||||
name: Upload a Build Artifact (macOS)
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v5
|
||||
with:
|
||||
# Artifact name
|
||||
name: SlimeVR-GUI-macOS
|
||||
|
||||
@@ -12,7 +12,7 @@ jobs:
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
steps:
|
||||
- uses: actions/setup-node@v5
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: '22.x'
|
||||
|
||||
@@ -20,7 +20,7 @@ jobs:
|
||||
run: |
|
||||
npx @slimevr/update-manifest-generator@latest
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
- uses: actions/upload-artifact@v5
|
||||
with:
|
||||
name: "update-manifest.json"
|
||||
path: ./update-manifest.json
|
||||
|
||||
@@ -33,7 +33,7 @@ jobs:
|
||||
distribution: 'adopt'
|
||||
|
||||
- name: Setup Gradle
|
||||
uses: gradle/actions/setup-gradle@v4
|
||||
uses: gradle/actions/setup-gradle@v5
|
||||
|
||||
- run: mkdir ./gui/dist && touch ./gui/dist/somefile
|
||||
shell: bash
|
||||
@@ -62,13 +62,13 @@ jobs:
|
||||
distribution: 'adopt'
|
||||
|
||||
- name: Setup Gradle
|
||||
uses: gradle/actions/setup-gradle@v4
|
||||
uses: gradle/actions/setup-gradle@v5
|
||||
|
||||
- name: Build with Gradle
|
||||
run: ./gradlew shadowJar
|
||||
|
||||
- name: Upload the Server JAR as a Build Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v5
|
||||
with:
|
||||
# Artifact name
|
||||
name: 'SlimeVR-Server' # optional, default is artifact
|
||||
@@ -101,11 +101,11 @@ jobs:
|
||||
distribution: 'adopt'
|
||||
|
||||
- name: Setup Gradle
|
||||
uses: gradle/actions/setup-gradle@v4
|
||||
uses: gradle/actions/setup-gradle@v5
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v5
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: '.node-version'
|
||||
cache: 'pnpm'
|
||||
@@ -122,7 +122,7 @@ jobs:
|
||||
run: ./gradlew :server:android:assembleDebug
|
||||
|
||||
- name: Upload the Android Build Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v5
|
||||
with:
|
||||
# Artifact name
|
||||
name: 'SlimeVR-Android' # optional, default is artifact
|
||||
@@ -158,16 +158,16 @@ jobs:
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- uses: actions/download-artifact@v5
|
||||
- uses: actions/download-artifact@v6
|
||||
with:
|
||||
name: 'SlimeVR-Server'
|
||||
path: server/desktop/build/libs/
|
||||
|
||||
- name: Set up Linux dependencies
|
||||
uses: awalsh128/cache-apt-pkgs-action@v1.5.3
|
||||
uses: awalsh128/cache-apt-pkgs-action@v1.6.0
|
||||
with:
|
||||
packages: |
|
||||
build-essential curl wget file libssl-dev libgtk-3-dev libappindicator3-dev librsvg2-dev
|
||||
build-essential curl wget file libssl-dev libgtk-3-dev libappindicator3-dev librsvg2-dev xdg-utils
|
||||
# Increment to invalidate the cache
|
||||
version: ${{ format('v1.0-{0}', env.BUILD_ARCH) }}
|
||||
# Enables a workaround to attempt to run pre and post install scripts
|
||||
@@ -190,7 +190,7 @@ jobs:
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v5
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: '.node-version'
|
||||
cache: 'pnpm'
|
||||
@@ -207,23 +207,23 @@ jobs:
|
||||
run: |
|
||||
tar czf slimevr-gui-dist.tar.gz -C gui/dist/ .
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
- uses: actions/upload-artifact@v5
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
with:
|
||||
name: SlimeVR-GUI-Dist
|
||||
path: ./slimevr-gui-dist.tar.gz
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
- uses: actions/upload-artifact@v5
|
||||
with:
|
||||
name: ${{ format('SlimeVR-GUI-Deb-{0}', env.BUILD_ARCH) }}
|
||||
path: target/release/bundle/deb/slimevr*.deb
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
- uses: actions/upload-artifact@v5
|
||||
with:
|
||||
name: ${{ format('SlimeVR-GUI-AppImage-{0}', env.BUILD_ARCH) }}
|
||||
path: target/release/bundle/appimage/slimevr*.AppImage
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
- uses: actions/upload-artifact@v5
|
||||
with:
|
||||
name: ${{ format('SlimeVR-GUI-RPM-{0}', env.BUILD_ARCH) }}
|
||||
path: target/release/bundle/rpm/slimevr*.rpm
|
||||
@@ -256,7 +256,7 @@ jobs:
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- uses: actions/download-artifact@v5
|
||||
- uses: actions/download-artifact@v6
|
||||
with:
|
||||
name: 'SlimeVR-Server'
|
||||
path: server/desktop/build/libs/
|
||||
@@ -266,7 +266,7 @@ jobs:
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v5
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: '.node-version'
|
||||
cache: 'pnpm'
|
||||
@@ -297,12 +297,12 @@ jobs:
|
||||
--volicon ../macos/SlimeVR.app/Contents/Resources/icon.icns --skip-jenkins \
|
||||
--eula ../../../../../LICENSE-MIT slimevr.dmg ../macos/SlimeVR.app
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
- uses: actions/upload-artifact@v5
|
||||
with:
|
||||
name: SlimeVR-GUI-MacApp
|
||||
path: target/universal-apple-darwin/release/bundle/macos/SlimeVR*.app
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
- uses: actions/upload-artifact@v5
|
||||
with:
|
||||
name: SlimeVR-GUI-MacDmg
|
||||
path: target/universal-apple-darwin/release/bundle/dmg/slimevr.dmg
|
||||
@@ -336,7 +336,7 @@ jobs:
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- uses: actions/download-artifact@v5
|
||||
- uses: actions/download-artifact@v6
|
||||
with:
|
||||
name: 'SlimeVR-Server'
|
||||
path: server/desktop/build/libs/
|
||||
@@ -351,7 +351,7 @@ jobs:
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v5
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: '.node-version'
|
||||
cache: 'pnpm'
|
||||
@@ -376,7 +376,7 @@ jobs:
|
||||
cp target/release/slimevr.exe ./SlimeVR/
|
||||
7z a -tzip "SlimeVR-$BUILD_ARCH.zip" ./SlimeVR/
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
- uses: actions/upload-artifact@v5
|
||||
with:
|
||||
name: ${{ format('SlimeVR-GUI-Windows-{0}', env.BUILD_ARCH) }}
|
||||
path: ./SlimeVR*.zip
|
||||
|
||||
Generated
+571
-97
File diff suppressed because it is too large.
Load diff
+1
-1
@@ -9,7 +9,7 @@ members = ["gui/src-tauri"]
|
||||
[workspace.package]
|
||||
edition = "2021"
|
||||
license = "MIT OR Apache-2.0"
|
||||
rust-version = "1.75" # Tauri's MSRV
|
||||
rust-version = "1.82" # Tauri's MSRV
|
||||
repository = "https://github.com/SlimeVR/SlimeVR-Server"
|
||||
|
||||
[profile.release]
|
||||
|
||||
Generated
+57
-50
@@ -43,11 +43,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1750800495,
|
||||
"narHash": "sha256-wBTGFNCx3Gr3BkNkEoFrKx9+d7otSdQesCDCPGDKZHk=",
|
||||
"lastModified": 1757003908,
|
||||
"narHash": "sha256-Op3cnPTav+ObcL4R4BGuWHEFxW6YS2A0aE3Av6sZN2g=",
|
||||
"owner": "cachix",
|
||||
"repo": "devenv",
|
||||
"rev": "b33ab3610c084a7e3fabc5eefaeb437449f1efe7",
|
||||
"rev": "ac8ebf17828c0e7d9be0270d359123fffcc6f066",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -64,11 +64,11 @@
|
||||
"rust-analyzer-src": "rust-analyzer-src"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1750833544,
|
||||
"narHash": "sha256-e5W27mfPGiM35qr0DjTUzLHP4ET2MbvRc4HJHScw/ko=",
|
||||
"lastModified": 1756795219,
|
||||
"narHash": "sha256-tKBQtz1JLKWrCJUxVkHKR+YKmVpm0KZdJdPWmR2slQ8=",
|
||||
"owner": "nix-community",
|
||||
"repo": "fenix",
|
||||
"rev": "c3940d9ff4d37e965e5841149367234c2aad1ab6",
|
||||
"rev": "80dbdab137f2809e3c823ed027e1665ce2502d74",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -120,11 +120,11 @@
|
||||
"nixpkgs-lib": "nixpkgs-lib"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1749398372,
|
||||
"narHash": "sha256-tYBdgS56eXYaWVW3fsnPQ/nFlgWi/Z2Ymhyu21zVM98=",
|
||||
"lastModified": 1756770412,
|
||||
"narHash": "sha256-+uWLQZccFHwqpGqr2Yt5VsW/PbeJVTn9Dk6SHWhNRPw=",
|
||||
"owner": "hercules-ci",
|
||||
"repo": "flake-parts",
|
||||
"rev": "9305fe4e5c2a6fcf5ba6a3ff155720fbe4076569",
|
||||
"rev": "4524271976b625a4a605beefd893f270620fd751",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -133,12 +133,15 @@
|
||||
}
|
||||
},
|
||||
"flake-utils": {
|
||||
"inputs": {
|
||||
"systems": "systems"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1659877975,
|
||||
"narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=",
|
||||
"lastModified": 1731533236,
|
||||
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0",
|
||||
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -160,10 +163,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1749636823,
|
||||
"lastModified": 1750779888,
|
||||
"narHash": "sha256-wibppH3g/E2lxU43ZQHC5yA/7kIKLGxVEnsnVK1BtRg=",
|
||||
"owner": "cachix",
|
||||
"repo": "git-hooks.nix",
|
||||
"rev": "623c56286de5a3193aa38891a6991b28f9bab056",
|
||||
"rev": "16ec914f6fb6f599ce988427d9d94efddf25fe6d",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -182,6 +186,7 @@
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1709087332,
|
||||
"narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=",
|
||||
"owner": "hercules-ci",
|
||||
"repo": "gitignore.nix",
|
||||
"rev": "637db329424fd7e46cf4185293b9cc8c88c95394",
|
||||
@@ -219,7 +224,10 @@
|
||||
"devenv",
|
||||
"git-hooks"
|
||||
],
|
||||
"nixpkgs": "nixpkgs",
|
||||
"nixpkgs": [
|
||||
"devenv",
|
||||
"nixpkgs"
|
||||
],
|
||||
"nixpkgs-23-11": [
|
||||
"devenv"
|
||||
],
|
||||
@@ -228,11 +236,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1750117611,
|
||||
"narHash": "sha256-LTwASICtyN3AjzlF9l2ZNAIVZqclio3yRcwwZy3QSJA=",
|
||||
"lastModified": 1755029779,
|
||||
"narHash": "sha256-3+GHIYGg4U9XKUN4rg473frIVNn8YD06bjwxKS1IPrU=",
|
||||
"owner": "cachix",
|
||||
"repo": "nix",
|
||||
"rev": "9e4fc95c388e2223d47da865503dee20d179776a",
|
||||
"rev": "b0972b0eee6726081d10b1199f54de6d2917f861",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -249,11 +257,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1749158376,
|
||||
"narHash": "sha256-uirStFNxauh0lxzBowcp28X+Sq7JgsBIDnbwbAfZwf8=",
|
||||
"lastModified": 1752002763,
|
||||
"narHash": "sha256-JYAkdZvpdSx9GUoHPArctYMypSONob4DYKRkOubUWtY=",
|
||||
"owner": "nlewo",
|
||||
"repo": "nix2container",
|
||||
"rev": "0f8974c58755dba441df03598eefd1e1cd50e341",
|
||||
"rev": "4f2437f6a1844b843b380d483087ae6d461240ee",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -270,11 +278,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1713543440,
|
||||
"narHash": "sha256-lnzZQYG0+EXl/6NkGpyIz+FEOc/DSEG57AP1VsdeNrM=",
|
||||
"lastModified": 1752054764,
|
||||
"narHash": "sha256-Ob/HuUhANoDs+nvYqyTKrkcPXf4ZgXoqMTQoCK0RFgQ=",
|
||||
"owner": "guibou",
|
||||
"repo": "nixGL",
|
||||
"rev": "310f8e49a149e4c9ea52f1adf70cdc768ec53f8a",
|
||||
"rev": "a8e1ce7d49a149ed70df676785b07f63288f53c5",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -285,11 +293,11 @@
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1747179050,
|
||||
"narHash": "sha256-qhFMmDkeJX9KJwr5H32f1r7Prs7XbQWtO0h3V0a0rFY=",
|
||||
"lastModified": 1756787288,
|
||||
"narHash": "sha256-rw/PHa1cqiePdBxhF66V7R+WAP8WekQ0mCDG4CFqT8Y=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "adaa24fbf46737f3f1b5497bf64bae750f82942e",
|
||||
"rev": "d0fc30899600b9b3466ddb260fd83deb486c32f1",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -301,11 +309,11 @@
|
||||
},
|
||||
"nixpkgs-lib": {
|
||||
"locked": {
|
||||
"lastModified": 1748740939,
|
||||
"narHash": "sha256-rQaysilft1aVMwF14xIdGS3sj1yHlI6oKQNBRTF40cc=",
|
||||
"lastModified": 1754788789,
|
||||
"narHash": "sha256-x2rJ+Ovzq0sCMpgfgGaaqgBSwY+LST+WbZ6TytnT9Rk=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixpkgs.lib",
|
||||
"rev": "656a64127e9d791a334452c6b6606d17539476e2",
|
||||
"rev": "a73b9c743612e4244d865a2fdee11865283c04e6",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -314,22 +322,6 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1750741721,
|
||||
"narHash": "sha256-Z0djmTa1YmnGMfE9jEe05oO4zggjDmxOGKwt844bUhE=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "4b1164c3215f018c4442463a27689d973cffd750",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"devenv": "devenv",
|
||||
@@ -338,17 +330,17 @@
|
||||
"mk-shell-bin": "mk-shell-bin",
|
||||
"nix2container": "nix2container",
|
||||
"nixgl": "nixgl",
|
||||
"nixpkgs": "nixpkgs_2"
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
},
|
||||
"rust-analyzer-src": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1750788942,
|
||||
"narHash": "sha256-bBSdUlEw/7xh66rtMEDg39xQUNN2VaDJIbRPIwhpFYk=",
|
||||
"lastModified": 1756597274,
|
||||
"narHash": "sha256-wfaKRKsEVQDB7pQtAt04vRgFphkVscGRpSx3wG1l50E=",
|
||||
"owner": "rust-lang",
|
||||
"repo": "rust-analyzer",
|
||||
"rev": "c68c8a81a7d2979778ae1e8ba024beacb4fff6b6",
|
||||
"rev": "21614ed2d3279a9aa1f15c88d293e65a98991b30",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -357,6 +349,21 @@
|
||||
"repo": "rust-analyzer",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"systems": {
|
||||
"locked": {
|
||||
"lastModified": 1681028828,
|
||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"type": "github"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
|
||||
@@ -129,7 +129,7 @@
|
||||
enable = true;
|
||||
toolchain = fenixpkgs.fromToolchainName {
|
||||
name = rust_toolchain.toolchain.channel;
|
||||
sha256 = "sha256-yMuSb5eQPO/bHv+Bcf/US8LVMbf/G/0MSfiPwBhiPpk=";
|
||||
sha256 = "sha256-+9FmLhAOezBZCOziO0Qct1NOrfpjNsXxc/8I0c7BdKE=";
|
||||
};
|
||||
components = rust_toolchain.toolchain.components;
|
||||
};
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ android.nonTransitiveRClass=true
|
||||
org.gradle.unsafe.configuration-cache=false
|
||||
|
||||
kotlinVersion=2.0.20
|
||||
spotlessVersion=7.0.2
|
||||
spotlessVersion=8.0.0
|
||||
shadowJarVersion=8.3.2
|
||||
buildconfigVersion=5.5.0
|
||||
grgitVersion=5.2.2
|
||||
Vendored
BIN
Binary file not shown.
+3
-1
@@ -1,6 +1,8 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.1-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
|
||||
distributionSha256Sum=bd71102213493060956ec229d946beee57158dbd89d0e62b91bca0fa2c5f3531
|
||||
networkTimeout=10000
|
||||
validateDistributionUrl=true
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
@@ -15,6 +15,8 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
##############################################################################
|
||||
#
|
||||
@@ -55,7 +57,7 @@
|
||||
# Darwin, MinGW, and NonStop.
|
||||
#
|
||||
# (3) This script is generated from the Groovy template
|
||||
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||
# within the Gradle project.
|
||||
#
|
||||
# You can find Gradle at https://github.com/gradle/gradle/.
|
||||
@@ -83,10 +85,9 @@ done
|
||||
# This is normally unused
|
||||
# shellcheck disable=SC2034
|
||||
APP_BASE_NAME=${0##*/}
|
||||
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
|
||||
|
||||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
||||
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
|
||||
' "$PWD" ) || exit
|
||||
|
||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||
MAX_FD=maximum
|
||||
@@ -133,10 +134,13 @@ location of your Java installation."
|
||||
fi
|
||||
else
|
||||
JAVACMD=java
|
||||
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
if ! command -v java >/dev/null 2>&1
|
||||
then
|
||||
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
fi
|
||||
|
||||
# Increase the maximum file descriptors if we can.
|
||||
@@ -144,7 +148,7 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
|
||||
case $MAX_FD in #(
|
||||
max*)
|
||||
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
|
||||
# shellcheck disable=SC3045
|
||||
# shellcheck disable=SC2039,SC3045
|
||||
MAX_FD=$( ulimit -H -n ) ||
|
||||
warn "Could not query maximum file descriptor limit"
|
||||
esac
|
||||
@@ -152,7 +156,7 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
|
||||
'' | soft) :;; #(
|
||||
*)
|
||||
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
|
||||
# shellcheck disable=SC3045
|
||||
# shellcheck disable=SC2039,SC3045
|
||||
ulimit -n "$MAX_FD" ||
|
||||
warn "Could not set maximum file descriptor limit to $MAX_FD"
|
||||
esac
|
||||
@@ -197,11 +201,15 @@ if "$cygwin" || "$msys" ; then
|
||||
done
|
||||
fi
|
||||
|
||||
# Collect all arguments for the java command;
|
||||
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
|
||||
# shell script including quotes and variable substitutions, so put them in
|
||||
# double quotes to make sure that they get re-expanded; and
|
||||
# * put everything else in single quotes, so that it's not re-expanded.
|
||||
|
||||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||
|
||||
# Collect all arguments for the java command:
|
||||
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
|
||||
# and any embedded shellness will be escaped.
|
||||
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
|
||||
# treated as '${Hostname}' itself on the command line.
|
||||
|
||||
set -- \
|
||||
"-Dorg.gradle.appname=$APP_BASE_NAME" \
|
||||
|
||||
Vendored
+12
-10
@@ -13,6 +13,8 @@
|
||||
@rem See the License for the specific language governing permissions and
|
||||
@rem limitations under the License.
|
||||
@rem
|
||||
@rem SPDX-License-Identifier: Apache-2.0
|
||||
@rem
|
||||
|
||||
@if "%DEBUG%"=="" @echo off
|
||||
@rem ##########################################################################
|
||||
@@ -43,11 +45,11 @@ set JAVA_EXE=java.exe
|
||||
%JAVA_EXE% -version >NUL 2>&1
|
||||
if %ERRORLEVEL% equ 0 goto execute
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
echo. 1>&2
|
||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
|
||||
echo. 1>&2
|
||||
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
||||
echo location of your Java installation. 1>&2
|
||||
|
||||
goto fail
|
||||
|
||||
@@ -57,11 +59,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
||||
|
||||
if exist "%JAVA_EXE%" goto execute
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
echo. 1>&2
|
||||
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
|
||||
echo. 1>&2
|
||||
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
||||
echo location of your Java installation. 1>&2
|
||||
|
||||
goto fail
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
VITE_FIRMWARE_TOOL_URL=https://fw-tool-api.slimevr.io
|
||||
VITE_FIRMWARE_TOOL_S3_URL=https://fw-tool-bucket.slimevr.io
|
||||
FIRMWARE_TOOL_SCHEMA_URL=https://fw-tool-api.slimevr.io/api-json
|
||||
VITE_FIRMWARE_TOOL_URL=https://fw-tool-api-v2.slimevr.io
|
||||
VITE_FIRMWARE_TOOL_S3_URL=https://fw-tool-bucket-v2.slimevr.io
|
||||
FIRMWARE_TOOL_SCHEMA_URL=https://fw-tool-api-v2.slimevr.io/api-json
|
||||
|
||||
|
||||
# VITE_FIRMWARE_TOOL_URL=http://localhost:3000
|
||||
# VITE_FIRMWARE_TOOL_S3_URL=http://localhost:9000
|
||||
# VITE_FIRMWARE_TOOL_S3_URL=http://localhost:9099
|
||||
# FIRMWARE_TOOL_SCHEMA_URL=http://localhost:3000/api-json
|
||||
@@ -2,6 +2,7 @@ import { FlatCompat } from '@eslint/eslintrc';
|
||||
import eslint from '@eslint/js';
|
||||
import globals from 'globals';
|
||||
import tseslint from 'typescript-eslint';
|
||||
import stylistic from '@stylistic/eslint-plugin';
|
||||
|
||||
const compat = new FlatCompat();
|
||||
|
||||
@@ -41,6 +42,7 @@ export const gui = [
|
||||
files: ['src/**/*.{js,jsx,ts,tsx,json}'],
|
||||
plugins: {
|
||||
'@typescript-eslint': tseslint.plugin,
|
||||
'@stylistic': stylistic,
|
||||
},
|
||||
rules: {
|
||||
'react/react-in-jsx-scope': 'off',
|
||||
@@ -60,6 +62,7 @@ export const gui = [
|
||||
ignoreRestSiblings: true,
|
||||
},
|
||||
],
|
||||
'@stylistic/jsx-self-closing-comp': 'error',
|
||||
},
|
||||
settings: {
|
||||
'import/resolver': {
|
||||
|
||||
+20
-17
@@ -16,17 +16,19 @@
|
||||
"@sentry/vite-plugin": "^2.22.7",
|
||||
"@tailwindcss/typography": "^0.5.15",
|
||||
"@tanstack/react-query": "^5.48.0",
|
||||
"@tauri-apps/api": "^2.0.2",
|
||||
"@tauri-apps/plugin-dialog": "^2.0.0",
|
||||
"@tauri-apps/plugin-fs": "2.4.1",
|
||||
"@tauri-apps/plugin-http": "^2.5.0",
|
||||
"@tauri-apps/plugin-os": "^2.0.0",
|
||||
"@tauri-apps/plugin-shell": "^2.0.0",
|
||||
"@tauri-apps/plugin-store": "^2.0.0",
|
||||
"@tauri-apps/api": "~2",
|
||||
"@tauri-apps/plugin-dialog": "~2",
|
||||
"@tauri-apps/plugin-fs": "~2",
|
||||
"@tauri-apps/plugin-http": "~2",
|
||||
"@tauri-apps/plugin-log": "~2",
|
||||
"@tauri-apps/plugin-opener": "~2",
|
||||
"@tauri-apps/plugin-os": "~2",
|
||||
"@tauri-apps/plugin-shell": "~2",
|
||||
"@tauri-apps/plugin-store": "~2",
|
||||
"@tweenjs/tween.js": "^25.0.0",
|
||||
"@twemoji/svg": "^15.0.0",
|
||||
"ajv": "^8.17.1",
|
||||
"browser-fs-access": "^0.35.0",
|
||||
"chart.js": "^4.5.0",
|
||||
"classnames": "^2.5.1",
|
||||
"flatbuffers": "22.10.26",
|
||||
"intl-pluralrules": "^2.0.1",
|
||||
@@ -34,11 +36,10 @@
|
||||
"jotai": "^2.12.2",
|
||||
"prompts": "^2.4.2",
|
||||
"react": "^18.3.1",
|
||||
"react-chartjs-2": "^5.3.0",
|
||||
"react-dom": "^18.3.1",
|
||||
"react-error-boundary": "^4.0.13",
|
||||
"react-helmet": "^6.1.0",
|
||||
"react-hook-form": "^7.53.0",
|
||||
"react-hook-form": "^7.63.0",
|
||||
"react-markdown": "^9.0.1",
|
||||
"react-modal": "^3.16.1",
|
||||
"react-responsive": "^10.0.0",
|
||||
@@ -71,9 +72,11 @@
|
||||
"@dword-design/eslint-plugin-import-alias": "^4.0.9",
|
||||
"@openapi-codegen/cli": "^2.0.2",
|
||||
"@openapi-codegen/typescript": "^8.0.2",
|
||||
"@stylistic/eslint-plugin": "^5.5.0",
|
||||
"@tailwindcss/forms": "^0.5.9",
|
||||
"@tauri-apps/cli": "^2.0.2",
|
||||
"@tauri-apps/cli": "~2",
|
||||
"@types/file-saver": "^2.0.7",
|
||||
"@types/node": "^24.3.1",
|
||||
"@types/react": "^18.3.11",
|
||||
"@types/react-dom": "^18.3.0",
|
||||
"@types/react-helmet": "^6.1.11",
|
||||
@@ -86,12 +89,12 @@
|
||||
"autoprefixer": "^10.4.20",
|
||||
"cross-env": "^7.0.3",
|
||||
"dotenv": "^16.4.5",
|
||||
"eslint": "^8.57.1",
|
||||
"eslint": "^9.39.0",
|
||||
"eslint-config-airbnb": "^19.0.4",
|
||||
"eslint-import-resolver-typescript": "^3.6.3",
|
||||
"eslint-plugin-import": "^2.31.0",
|
||||
"eslint-plugin-jsx-a11y": "^6.10.0",
|
||||
"eslint-plugin-react": "^7.37.1",
|
||||
"eslint-import-resolver-typescript": "^3.10.1",
|
||||
"eslint-plugin-import": "^2.32.0",
|
||||
"eslint-plugin-jsx-a11y": "^6.10.2",
|
||||
"eslint-plugin-react": "^7.37.5",
|
||||
"eslint-plugin-react-hooks": "^4.6.2",
|
||||
"globals": "^15.10.0",
|
||||
"prettier": "^3.3.3",
|
||||
@@ -100,7 +103,7 @@
|
||||
"spdx-satisfies": "^5.0.1",
|
||||
"tailwind-gradient-mask-image": "^1.2.0",
|
||||
"tailwindcss": "^3.4.13",
|
||||
"typescript-eslint": "^8.8.0",
|
||||
"typescript-eslint": "^8.46.2",
|
||||
"vite": "^5.4.8"
|
||||
}
|
||||
}
|
||||
@@ -301,7 +301,7 @@ tracker-settings-use_mag = اسمح بالمقياس المغناطيسي على
|
||||
# Multiline!
|
||||
tracker-settings-use_mag-description =
|
||||
هل يجب أن يستخدم هذا المتتبع مقياس المغناطيسية لتقليل الانجراف عند السماح باستخدام المقياس المغناطيسي؟ <b>من فضلا لا تغلق جهاز التتبع الخاص بك أثناء تبديل هذا!</b>
|
||||
|
||||
|
||||
تحتاج إلى السماح باستخدام مقياس المغناطيسية أولا ، <magSetting>انقر هنا للذهاب إلى الإعداد</magSetting>.
|
||||
tracker-settings-use_mag-label = السماح بالمقياس المغناطيسي
|
||||
# The .<name> means it's an attribute and it's related to the top key.
|
||||
@@ -459,7 +459,7 @@ settings-general-tracker_mechanics-drift_compensation-prediction-label = الت
|
||||
settings-general-tracker_mechanics-drift_compensation_warning =
|
||||
<b>تحذير:</b> استخدم تعويض الانحراف فقط إذا كنت بحاجة إلى إعادة الضبط
|
||||
في كثير من الأحيان (كل ~ 5-10 دقائق).
|
||||
|
||||
|
||||
تتضمن بعض وحدات IMU المعرضة لإعادة الضبط المتكرر ما يلي:
|
||||
Joy-Cons و owoTrack و MPUs (بدون برامج ثابتة حديثة).
|
||||
settings-general-tracker_mechanics-drift_compensation_warning-cancel = إلغاء
|
||||
@@ -638,9 +638,9 @@ settings-general-interface-discord_presence-message =
|
||||
settings-interface-behavior-error_tracking = جمع الأخطاء عبر Sentry.io
|
||||
settings-interface-behavior-error_tracking-description_v2 =
|
||||
<h1>هل توافق على جمع بيانات الخطأ مجهولة المصدر؟</h1>
|
||||
|
||||
|
||||
<b>نحن لا نجمع معلومات شخصية</b> مثل عنوان IP الخاص بك أو بيانات الاعتماد اللاسلكية. يقدر SlimeVR خصوصيتك!
|
||||
|
||||
|
||||
لتوفير أفضل تجربة للمستخدم، نقوم بجمع تقارير الأخطاء ومقاييس الأداء ومعلومات نظام التشغيل مجهولة المصدر. يساعدنا هذا في اكتشاف الأخطاء والمشكلات المتعلقة ب SlimeVR. يتم جمع هذه المقاييس عبر Sentry.io.
|
||||
settings-interface-behavior-error_tracking-label = إرسال الأخطاء إلى المطورين
|
||||
|
||||
@@ -661,7 +661,6 @@ settings-serial-factory_reset-warning =
|
||||
مما يعني أن إعدادات واي فاي والمعايرة <b>ستفقد جميعا!</b>
|
||||
settings-serial-factory_reset-warning-ok = أنا أعرف ماذا أفعل
|
||||
settings-serial-factory_reset-warning-cancel = إلغاء
|
||||
settings-serial-get_infos = احصل على معلومات
|
||||
settings-serial-serial_select = اختر منفذ تسلسلي
|
||||
settings-serial-auto_dropdown_item = تلقائي
|
||||
settings-serial-get_wifi_scan = احصل على فحص WiFi
|
||||
@@ -797,20 +796,20 @@ onboarding-reset_tutorial-skip = تخطى الخطوة
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-0 =
|
||||
اضغط على جهاز التعقب المحدد { $taps } مرات لتشغيل إعادة ضبط الانعراج.
|
||||
|
||||
|
||||
سيؤدي ذلك إلى جعل أجهزة التعقب تواجه نفس اتجاه HMD الخاص بك.
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-1 =
|
||||
اضغط على جهاز التعقب المحدد { $taps } مرات لتشغيل إعادة تعيين كاملة.
|
||||
|
||||
|
||||
يجب أن تكون واقفًا (i-pose). هناك تأخير لمدة 3 ثوان (قابل للتكوين) قبل إعادة التعيين بالكامل.
|
||||
هذا يعيد تعيين موضع ودوران جميع جهاز التعقب. يجب أن يحل معظم المشاكل.
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-2 =
|
||||
اضغط على المتتبع المحدد { $taps } مرات لتشغيل إعادة تعيين متصاعد.
|
||||
|
||||
|
||||
يساعد إعادة التعيين المتصاعد في تحديد كيفية وضع أجهزة التعقب عليك بالفعل. لذلك إذا قمت بنقلهم عن طريق الخطأ وغيرت كيفية توجيههم بمقدار كبير ، فسيساعد ذلك.
|
||||
|
||||
|
||||
يجب أن تكون في وضع تزلج كما هو موضح في معالج "التثبيت التلقائي" ولديك تأخير لمدة 3 ثوانٍ (قابل للتكوين) قبل أن يتم تشغيله.
|
||||
|
||||
## Setup start
|
||||
@@ -988,7 +987,7 @@ onboarding-choose_mounting-manual_mounting-label-v2 = قد لا تكون الد
|
||||
onboarding-choose_mounting-manual_mounting-description = سيسمح لك باختيار اتجاه التثبيت يدويًا لكل جهاز تعقب
|
||||
# Multiline text
|
||||
onboarding-choose_mounting-manual_modal-title =
|
||||
هل أنت متأكد من أنك تريد
|
||||
هل أنت متأكد من أنك تريد
|
||||
معايرة التركيب التلقائي؟
|
||||
onboarding-choose_mounting-manual_modal-description = <b>يوصى بمعايرة التركيب اليدوي للمستخدمين الجدد</b> ، حيث قد يكون من الصعب الحصول على أوضاع معايرة التركيب التلقائي الصحيحة من اول مرة وقد تتطلب بعض التمرين.
|
||||
onboarding-choose_mounting-manual_modal-confirm = أنا أعرف ماذا أفعل
|
||||
@@ -1188,7 +1187,7 @@ tray_or_exit_modal-title = ماذا يجب أن يفعل زر الإغلاق؟
|
||||
# Multiline text
|
||||
tray_or_exit_modal-description =
|
||||
يتيح لك ذلك اختيار ما إذا كنت تريد الخروج من الخادم أو تصغيره إلى علبة النظام عند الضغط على زر الإغلاق.
|
||||
|
||||
|
||||
يمكنك تغيير هذا لاحقا في إعدادات الواجهة!
|
||||
tray_or_exit_modal-radio-exit = الخروج عند الإغلاق
|
||||
tray_or_exit_modal-radio-tray = تصغير إلى علبة النظام
|
||||
@@ -1205,4 +1204,3 @@ unknown_device-modal-confirm = أكيد
|
||||
unknown_device-modal-forget = تجاهلها
|
||||
|
||||
## Error collection consent modal
|
||||
|
||||
@@ -117,7 +117,7 @@ skeleton_bone-ELBOW_OFFSET = Odsazení loktů
|
||||
|
||||
reset-reset_all = Obnovit nastavení proporcí
|
||||
reset-reset_all_warning-v2 =
|
||||
<b>Varování:</b> vyše proporce budou obnoveny do výchozích hodnot založených na vaší nakonfigurované výšce.
|
||||
<b>Varování:</b> vyše proporce budou obnoveny do výchozích hodnot založených na vaší nakonfigurované výšce.
|
||||
Jste si jistí že chcete udělat?
|
||||
reset-reset_all_warning-reset = Obnovit proporce
|
||||
reset-reset_all_warning-cancel = Zrušit
|
||||
@@ -273,7 +273,7 @@ tracker-settings-use_mag = Povolit magnetometr na tomto trackeru
|
||||
# Multiline!
|
||||
tracker-settings-use_mag-description =
|
||||
Měl by tento tracker používat magnetometer k redukci driftu když je použití magnetometru povoleno? <b> Prosím nevypínejte váš tracker při přepínání tohoto nastavení!</b>
|
||||
|
||||
|
||||
Nejprve musíte povolit používání magnetometru, <magSetting>Kliknutím zde přejdete k nastavená magnetometru</magSetting>.
|
||||
tracker-settings-use_mag-label = Povolit magnetometr
|
||||
# The .<name> means it's an attribute and it's related to the top key.
|
||||
@@ -434,7 +434,7 @@ settings-general-tracker_mechanics-drift_compensation-prediction-label = Predikc
|
||||
settings-general-tracker_mechanics-drift_compensation_warning =
|
||||
<b>Varování:</b> Kompenzaci driftu používejte pouze tehdy kdy musíte resetovat
|
||||
Neobvykle často (každých ~5-10 minut).
|
||||
|
||||
|
||||
Některé IMU které náchylné k častým resetům zahrnují:
|
||||
Joy-Cons, owoTrack a MPU (bez aktuálního firmwaru).
|
||||
settings-general-tracker_mechanics-drift_compensation_warning-cancel = Zrušit
|
||||
@@ -613,9 +613,9 @@ settings-general-interface-discord_presence-message =
|
||||
settings-interface-behavior-error_tracking = Sběr chyb prostřednictvím Sentry.io
|
||||
settings-interface-behavior-error_tracking-description_v2 =
|
||||
<h1>Souhlasíte se shromažďováním anonymizovaých údajů o chybých?</h1>
|
||||
|
||||
|
||||
<b>Neschrožďujeme osobní udaje!</b> pro příklad IP adresy nebo přihlašovací údaje k sítím Wi-Fi. SlimeVR respektuje vaše soukromí!
|
||||
|
||||
|
||||
Aby jsme mohli poskytnout nejlepší zážitek uživatelům, schromažďujeme proto anonymizované zprávy o chybých, metriky výkon a informace o operačním systém. To nám pomáhá zjištovat chyby a problémy s SlimeVR. Tyto matriky jsou schromažďovány prostřednictvím Sentry.io.
|
||||
settings-interface-behavior-error_tracking-label = Odeslat chyby vývojářům
|
||||
|
||||
@@ -636,7 +636,6 @@ settings-serial-factory_reset-warning =
|
||||
To znamená, že nastavení Wi-Fi a kalibrace <b>budou ztracena!</b>
|
||||
settings-serial-factory_reset-warning-ok = Vím, co dělám
|
||||
settings-serial-factory_reset-warning-cancel = Zrušit
|
||||
settings-serial-get_infos = Získat informace
|
||||
settings-serial-serial_select = Vyberte sériový port
|
||||
settings-serial-auto_dropdown_item = Auto
|
||||
settings-serial-get_wifi_scan = Skenovat WiFi
|
||||
@@ -804,12 +803,12 @@ onboarding-reset_tutorial-skip = Přeskočit krok
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-0 =
|
||||
Klepněte na zvýrazněný snímač { $taps } krát pro resetování rotace.
|
||||
|
||||
|
||||
Tím nastavíte snímače tak, aby směřovaly stejným směrem jako váš headset (HMD).
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-1 =
|
||||
Pro plný reset poklepejte { $taps } krát na zvýrazněný tracker.
|
||||
|
||||
|
||||
Pro tuto funkci musíte stát v základní pozici (ruce podél těla). Před provedením resetu je zde 3 sekundová prodleva (lze nastavit).
|
||||
Tímto se kompletně resetuje pozice a rotace všech vašich trackerů, což by mělo vyřešit většinu problémů.
|
||||
|
||||
@@ -1102,7 +1101,7 @@ onboarding-scaled_proportions-manual_height-next_step = Uložit a pokračovat
|
||||
onboarding-scaled_proportions-manual_height-warning =
|
||||
Právě používáte manuální způsob nastavení škálování proporcí!
|
||||
<b>Tento režim je doporučen pouze pokud nepoužíváte HMD s SlimeVR</b>
|
||||
|
||||
|
||||
Abyste mohli používat automatcky škálované proporce, prosím:
|
||||
onboarding-scaled_proportions-manual_height-warning-no_hmd = Připojte VR headset
|
||||
onboarding-scaled_proportions-manual_height-warning-no_controllers = Ujistěte se, že jsou vaše ovladače připojeny a správně přirazeny k vaším rukám
|
||||
@@ -1308,7 +1307,7 @@ tray_or_exit_modal-title = Co chcete aby "křížek" udělal?
|
||||
# Multiline text
|
||||
tray_or_exit_modal-description =
|
||||
Tímto si zvolíte, zda chcete při stisknutí tlačítka pro zavření ukončit server, nebo jej pouze minimalizovat do systémové lišty.
|
||||
|
||||
|
||||
Toto nastavení můžete později změnit v nastavení aplikace.
|
||||
tray_or_exit_modal-radio-exit = Ukončit při zavření
|
||||
tray_or_exit_modal-radio-tray = Minimalizovat
|
||||
@@ -1363,7 +1362,7 @@ vrc_config-avatar_measurement_type-ARM_SPAN = Rozpětí paží
|
||||
error_collection_modal-title = Můžeme sbírat chyby?
|
||||
error_collection_modal-description_v2 =
|
||||
{ settings-interface-behavior-error_tracking-description_v2 }
|
||||
|
||||
|
||||
Tohle lze později změnit v sekci Chování v nastavení.
|
||||
error_collection_modal-confirm = Souhlasím
|
||||
error_collection_modal-cancel = Nesouhlasím
|
||||
@@ -378,7 +378,6 @@ settings-serial-factory_reset-warning =
|
||||
Hvilket betyder, at alle Wi-Fi- og kalibreringsindstillinger <b>går tabt!</b>
|
||||
settings-serial-factory_reset-warning-ok = Jeg ved hvad jeg laver
|
||||
settings-serial-factory_reset-warning-cancel = Annuller
|
||||
settings-serial-get_infos = Hent oplysninger
|
||||
settings-serial-serial_select = Vælg en seriel port
|
||||
settings-serial-auto_dropdown_item = Auto
|
||||
|
||||
|
||||
@@ -293,7 +293,7 @@ tracker-settings-use_mag = Magnetometer auf diesem Tracker zulassen
|
||||
# Multiline!
|
||||
tracker-settings-use_mag-description =
|
||||
Soll dieser Tracker das Magnetometer verwenden um Drift zu reduzieren, wenn die Verwendung von Magnetometer erlaubt ist? <b> Bitten schalten Sie den Tracker nicht aus, während Sie diese Einstellung umschalten!</b>
|
||||
|
||||
|
||||
Sie müssen zuerst die Verwendung des Magnetometers zulassen, <magSetting>klicken Sie hier, um zu den Einstellungen zu gelangen</magSetting>.
|
||||
tracker-settings-use_mag-label = Magnetometer zulassen
|
||||
# The .<name> means it's an attribute and it's related to the top key.
|
||||
@@ -450,9 +450,9 @@ settings-general-tracker_mechanics-drift_compensation-prediction-description =
|
||||
Aktivieren Sie diese Funktion, wenn sich der Tracker kontinuierlich um die gier-Achse dreht.
|
||||
settings-general-tracker_mechanics-drift_compensation-prediction-label = Prognose der Driftkompensation
|
||||
settings-general-tracker_mechanics-drift_compensation_warning =
|
||||
<b>Warnung:</b> Verwenden Sie die Driftkompensation nur, wenn sie sehr oft
|
||||
<b>Warnung:</b> Verwenden Sie die Driftkompensation nur, wenn sie sehr oft
|
||||
reseten müssen (alle ~5-10 Minuten).
|
||||
|
||||
|
||||
Zu den IMUs, die häufig einen Reset benötigen, gehören:
|
||||
Joy-Cons, owoTrack und MPUs (ohne aktuelle Firmware).
|
||||
settings-general-tracker_mechanics-drift_compensation_warning-cancel = Abbrechen
|
||||
@@ -461,7 +461,7 @@ settings-general-tracker_mechanics-drift_compensation-amount-label = Kompensieru
|
||||
settings-general-tracker_mechanics-drift_compensation-max_resets-label = Nutze die letzten x Resets
|
||||
settings-general-tracker_mechanics-save_mounting_reset = Automatische Befestigungs-Reset Kalibrierung speichern
|
||||
settings-general-tracker_mechanics-save_mounting_reset-description =
|
||||
Speichert die automatische Befestigungs-Reset Kalibrierung für die Tracker zwischen den Neustarts. Nützlich
|
||||
Speichert die automatische Befestigungs-Reset Kalibrierung für die Tracker zwischen den Neustarts. Nützlich
|
||||
wenn Sie einen Anzug tragen, bei dem sich die Tracker zwischen den Sitzungen nicht bewegen. <b>Für normale Benutzer nicht zu empfehlen!</b>
|
||||
settings-general-tracker_mechanics-save_mounting_reset-enabled-label = Befestigungs-Reset speichern
|
||||
settings-general-tracker_mechanics-use_mag_on_all_trackers = Verwende das Magnetometer auf allen IMU-Trackern, die dies unterstützen.
|
||||
@@ -618,9 +618,9 @@ settings-general-interface-discord_presence-message =
|
||||
settings-interface-behavior-error_tracking = Fehlererfassung über Sentry.io
|
||||
settings-interface-behavior-error_tracking-description_v2 =
|
||||
<h1>Sind Sie mit der Erhebung anonymisierter Fehlerdaten einverstanden?</h1>
|
||||
|
||||
|
||||
<b>Wir erfassen keine personenbezogenen Daten,</b> wie Ihre IP-Adresse oder WLAN-Zugangsdaten. SlimeVR respektiert Ihre Privatsphäre!
|
||||
|
||||
|
||||
Um die bestmögliche Benutzererfahrung zu bieten, erfassen wir anonymisierte Fehlerberichte, Leistungsmetriken und Informationen zum Betriebssystem. Dies hilft uns, Fehler und Probleme mit SlimeVR zu erkennen. Diese Metriken werden über Sentry.io erfasst.
|
||||
settings-interface-behavior-error_tracking-label = Fehler an Entwickler senden
|
||||
|
||||
@@ -641,7 +641,6 @@ settings-serial-factory_reset-warning =
|
||||
Das bedeutet, dass Wi-Fi- und Kalibrierungseinstellungen <b>verloren gehen!</b>
|
||||
settings-serial-factory_reset-warning-ok = Ich weiß, was ich tue
|
||||
settings-serial-factory_reset-warning-cancel = Abbruch
|
||||
settings-serial-get_infos = Informationen abrufen
|
||||
settings-serial-serial_select = Wählen Sie einen seriellen Anschluss
|
||||
settings-serial-auto_dropdown_item = Auto
|
||||
settings-serial-get_wifi_scan = WLAN-Scan
|
||||
@@ -679,7 +678,7 @@ settings-osc-vrchat = VRChat-OSC-Trackers
|
||||
# This cares about multilines
|
||||
settings-osc-vrchat-description-v1 =
|
||||
Ändern Sie die Einstellungen, die speziell für den OSC-Trackers-Standard verwendet werden, um Tracking-Daten an Anwendungen ohne SteamVR zu senden (z. B. für Quest Standalone).
|
||||
Stellen Sie sicher, dass Sie OSC in VRChat über das Aktionsmenü unter OSC > Aktiviert einschalten.
|
||||
Stellen Sie sicher, dass Sie OSC in VRChat über das Aktionsmenü unter OSC > Aktiviert einschalten.
|
||||
Um das Empfangen von HMD- und Controller-Daten von VRChat zu ermöglichen, gehen Sie in Ihrem Hauptmenü
|
||||
zu den Einstellungen unter Tracking & IK > Erlaube das Senden von Kopf- und Handgelenk-VR-Tracking-OSC-Daten.
|
||||
settings-osc-vrchat-enable = Aktivieren
|
||||
@@ -812,20 +811,20 @@ onboarding-reset_tutorial-skip = Schritt überspringen
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-0 =
|
||||
Tippen Sie { $taps } mal auf den markierten Tracker, um den horizontalen Reset auszulösen.
|
||||
|
||||
|
||||
Dadurch zeigen die Tracker in die gleiche Richtung wie Ihre VR-Brille.
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-1 =
|
||||
Tippen Sie { $taps } mal auf den markierten Tracker, um einen vollständigen Reset auszulösen.
|
||||
|
||||
|
||||
Sie müssen dafür in einer I-Pose stehen. Es gibt eine Verzögerung von 3 Sekunden (konfigurierbar), bevor der Reset tatsächlich durchgeführt wird.
|
||||
Dadurch werden die Position und Rotation aller Ihrer Tracker vollständig zurückgesetzt. Dies sollte die meisten Probleme beheben.
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-2 =
|
||||
Tippen Sie { $taps } mal auf den markierten Tracker um einen Befestigungs-Reset auszulösen.
|
||||
|
||||
|
||||
Ein Befestigungs-Reset hilft dabei, die Tracker neu auszurichten, so wie diese tatsächlich an Ihnen angebracht sind. Zum Beispiel, wenn Sie ein Tracker versehentlich verschoben haben und dessen Orientierung sich stark verändert hat.
|
||||
|
||||
|
||||
Sie müssen sich in einer "Skifahren"-Pose, wie im Befestigungs-Assistenten gezeigt wird, befinden. Nach dem Auslösen wird der Reset nach 3 Sekunden (konfigurierbar) durchgeführt.
|
||||
|
||||
## Setup start
|
||||
@@ -1165,7 +1164,7 @@ onboarding-scaled_proportions-manual_height-next_step = Fortfahren und speichern
|
||||
onboarding-scaled_proportions-manual_height-warning =
|
||||
Sie verwenden derzeit die manuelle Methode zur Einrichtung skalierter Proportionen!
|
||||
<b>Dieser Modus wird nur empfohlen, wenn Sie kein VR-Headset mit SlimeVR verwenden.</b>
|
||||
|
||||
|
||||
Um die automatische Skalierung der Proportionen nutzen zu können, bitte:
|
||||
onboarding-scaled_proportions-manual_height-warning-no_hmd = Schließen Sie ein VR-Headset an
|
||||
onboarding-scaled_proportions-manual_height-warning-no_controllers = Stellen Sie sicher, dass Ihre Controller verbunden und korrekt den Händen zugewiesen sind
|
||||
@@ -1356,7 +1355,7 @@ tray_or_exit_modal-title = Was soll der Schließen-Knopf tun?
|
||||
# Multiline text
|
||||
tray_or_exit_modal-description =
|
||||
Hier können Sie auswählen, ob sich der Server beim Schließen beenden oder in den Infobereich minimiert werden soll.
|
||||
|
||||
|
||||
Sie können dies später in den Einstellungen der Bedienoberfläche ändern!
|
||||
tray_or_exit_modal-radio-exit = Beenden
|
||||
tray_or_exit_modal-radio-tray = In den Infobereich minimieren
|
||||
@@ -1377,7 +1376,7 @@ unknown_device-modal-forget = Ignorieren
|
||||
error_collection_modal-title = Können wir Fehler sammeln?
|
||||
error_collection_modal-description_v2 =
|
||||
{ settings-interface-behavior-error_tracking-description_v2 }
|
||||
|
||||
|
||||
Sie können diese Einstellung später im Abschnitt Verhalten auf der Einstellungsseite ändern.
|
||||
error_collection_modal-confirm = Ich stimme zu
|
||||
error_collection_modal-cancel = Ich will nicht
|
||||
@@ -610,7 +610,6 @@ settings-serial-factory_reset-warning =
|
||||
which means wi-fi and cawibwation settings <b>wiww aww be wost!</b>
|
||||
settings-serial-factory_reset-warning-ok = i know what I'm doing :3
|
||||
settings-serial-factory_reset-warning-cancel = cancew
|
||||
settings-serial-get_infos = get infows
|
||||
settings-serial-serial_select = sewect a shewyaw pawt
|
||||
settings-serial-auto_dropdown_item = awto
|
||||
settings-serial-get_wifi_scan = get wifi scan uwu
|
||||
@@ -759,20 +758,20 @@ onboarding-reset_tutorial-skip = skip sedup
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-0 =
|
||||
bap { $taps } times the highwighted twackew fow twiggewing yaw weset.
|
||||
|
||||
|
||||
dis wiwl make the twackews face the same diwection as youw HMD. ^w^
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-1 =
|
||||
bap { $taps } times the highwighted twackew fow twiggewing fuwl weset.
|
||||
|
||||
|
||||
u need to be standing fow dis (i-pose). thewe is a 3 seconds deway (configuwabwe) befowe it actuawwy habbens.
|
||||
this fuwly wesets duh pawsition and wotation of awl youw twackews. it shouwd fix most issue.
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-2 =
|
||||
bap { $taps } time da highwighted twackew fow twiggewing meownting weset.
|
||||
|
||||
|
||||
meownting weset hewps on how the twackews awe actuawly put on u, so if you accidentawly move dem and change how dey awe owiented by a big ameownt, this wiwl hewp.
|
||||
|
||||
|
||||
u need to be on pose wike you awe skiing wike it's shown on da Pawtomatic Meownting wizawd and you have a 3 second deway (configuwabwe) befowe it gets twiggewed.
|
||||
|
||||
## Setup start
|
||||
@@ -1294,7 +1293,7 @@ tray_or_exit_modal-title = owo wat shud da cwose button do?
|
||||
# Multiline text
|
||||
tray_or_exit_modal-description =
|
||||
dis lets u choose wether u wanna exit te sewvew ow to minimaize it to da tway wen pwessing teh cwose buttin.
|
||||
|
||||
|
||||
yuow can cheange dis latew in da intewfayce setings! :D
|
||||
tray_or_exit_modal-radio-exit = exit on cwose
|
||||
tray_or_exit_modal-radio-tray = minimaize to systehm tway
|
||||
@@ -1311,4 +1310,3 @@ unknown_device-modal-confirm = sure!!
|
||||
unknown_device-modal-forget = ignowe it
|
||||
|
||||
## Error collection consent modal
|
||||
|
||||
@@ -89,6 +89,8 @@ board_type-WEMOSD1MINI = Wemos D1 Mini
|
||||
board_type-TTGO_TBASE = TTGO T-Base
|
||||
board_type-ESP01 = ESP-01
|
||||
board_type-SLIMEVR = SlimeVR
|
||||
board_type-SLIMEVR_DEV = SlimeVR Dev Board
|
||||
board_type-SLIMEVR_V1_2 = SlimeVR v1.2
|
||||
board_type-LOLIN_C3_MINI = Lolin C3 Mini
|
||||
board_type-BEETLE32C3 = Beetle ESP32-C3
|
||||
board_type-ESP32C3DEVKITM1 = Espressif ESP32-C3 DevKitM-1
|
||||
@@ -383,17 +385,14 @@ tracker-settings-name_section-label = Tracker name
|
||||
tracker-settings-forget = Forget tracker
|
||||
tracker-settings-forget-description = Removes the tracker from the SlimeVR Server and prevents it from connecting until the server is restarted. The configuration of the tracker won't be lost.
|
||||
tracker-settings-forget-label = Forget tracker
|
||||
tracker-settings-update-unavailable = Cannot be updated (DIY)
|
||||
tracker-settings-update-unavailable-v2 = No releases found
|
||||
tracker-settings-update-incompatible = Cannot update. Incompatible board
|
||||
tracker-settings-update-low-battery = Cannot update. Battery lower than 50%
|
||||
tracker-settings-update-up_to_date = Up to date
|
||||
tracker-settings-update-blocked = Update not available. No other releases available
|
||||
tracker-settings-update-available = { $versionName } is now available
|
||||
tracker-settings-update = Update now
|
||||
tracker-settings-update-title = Firmware version
|
||||
tracker-settings-graph-acceleration-title = Tracker Acceleration
|
||||
tracker-settings-graph-position-title = Tracker Position
|
||||
tracker-settings-graph-show-title = Show Tracker Graph
|
||||
tracker-settings-graph-hide-title = Hide Tracker Graph
|
||||
|
||||
## Tracker part card info
|
||||
tracker-part_card-no_name = No name
|
||||
@@ -597,6 +596,9 @@ settings-general-fk_settings-enforce_joint_constraints-enforce_constraints = Enf
|
||||
settings-general-fk_settings-enforce_joint_constraints-enforce_constraints-description = Prevents joints from rotating past their limit
|
||||
settings-general-fk_settings-enforce_joint_constraints-correct_constraints = Correct with constraints
|
||||
settings-general-fk_settings-enforce_joint_constraints-correct_constraints-description = Correct joint rotations when they push past their limit
|
||||
settings-general-fk_settings-ik = Position data
|
||||
settings-general-fk_settings-ik-use_position = Use Position data
|
||||
settings-general-fk_settings-ik-use_position-description = Enables the use of position data from trackers that provide it. When enabling this make sure to full reset and recalibrate in game.
|
||||
settings-general-fk_settings-arm_fk = Arm tracking
|
||||
settings-general-fk_settings-arm_fk-description = Force arms to be tracked from the headset (HMD) even if positional hand data is available.
|
||||
settings-general-fk_settings-arm_fk-force_arms = Force arms from HMD
|
||||
@@ -741,12 +743,17 @@ settings-serial-factory_reset-warning =
|
||||
Which means Wi-Fi and calibration settings <b>will all be lost!</b>
|
||||
settings-serial-factory_reset-warning-ok = I know what I'm doing
|
||||
settings-serial-factory_reset-warning-cancel = Cancel
|
||||
settings-serial-get_infos = Get Infos
|
||||
settings-serial-serial_select = Select a serial port
|
||||
settings-serial-auto_dropdown_item = Auto
|
||||
settings-serial-get_wifi_scan = Get WiFi Scan
|
||||
settings-serial-file_type = Plain text
|
||||
settings-serial-save_logs = Save To File
|
||||
settings-serial-send_command = Send
|
||||
settings-serial-send_command-placeholder = Command...
|
||||
settings-serial-send_command-warning =
|
||||
<b>Warning:</b> Running serial commands can lead to data loss or brick the trackers.
|
||||
settings-serial-send_command-warning-ok = I know what I'm doing
|
||||
settings-serial-send_command-warning-cancel = Cancel
|
||||
|
||||
## OSC router settings
|
||||
settings-osc-router = OSC router
|
||||
@@ -839,6 +846,10 @@ settings-osc-vmc-mirror_tracking = Mirror tracking
|
||||
settings-osc-vmc-mirror_tracking-description = Mirror the tracking horizontally.
|
||||
settings-osc-vmc-mirror_tracking-label = Mirror tracking
|
||||
|
||||
## Common OSC settings
|
||||
settings-osc-common-network-ports_match_error = The OSC Router in and out ports can't be the same!
|
||||
settings-osc-common-network-port_banned_error = The port { $port } can't be used!
|
||||
|
||||
## Advanced settings
|
||||
settings-utils-advanced = Advanced
|
||||
|
||||
@@ -1332,78 +1343,38 @@ firmware_tool-description =
|
||||
firmware_tool-not_available = Oops, the firmware tool is not available at the moment. Come back later!
|
||||
firmware_tool-not_compatible = The firmware tool is not compatible with this version of the server. Please update your server!
|
||||
|
||||
firmware_tool-board_step = Select your Board
|
||||
firmware_tool-board_step-description = Select one of the boards listed below.
|
||||
firmware_tool-select_source = Select the firmware to flash
|
||||
firmware_tool-select_source-description = Select the firmware you want to flash on your board
|
||||
firmware_tool-select_source-error = Unable to load Sources
|
||||
firmware_tool-select_source-board_type = Board Type
|
||||
firmware_tool-select_source-firmware = Firmware Source
|
||||
firmware_tool-select_source-version = Firmware Version
|
||||
firmware_tool-select_source-official = Official
|
||||
firmware_tool-select_source-dev = Dev
|
||||
|
||||
firmware_tool-board_pins_step = Check the pins
|
||||
firmware_tool-board_pins_step-description =
|
||||
Please verify that the selected pins are correct.
|
||||
If you followed the SlimeVR documentation, the default values should be correct.
|
||||
firmware_tool-board_pins_step-enable_led = Enable LED
|
||||
firmware_tool-board_pins_step-led_pin =
|
||||
.label = LED Pin
|
||||
.placeholder = Enter the pin address of the LED
|
||||
|
||||
firmware_tool-board_pins_step-battery_type = Select the battery type
|
||||
firmware_tool-board_pins_step-battery_type-BAT_EXTERNAL = External battery
|
||||
firmware_tool-board_pins_step-battery_type-BAT_INTERNAL = Internal battery
|
||||
firmware_tool-board_pins_step-battery_type-BAT_INTERNAL_MCP3021 = Internal MCP3021
|
||||
firmware_tool-board_pins_step-battery_type-BAT_MCP3021 = MCP3021
|
||||
|
||||
|
||||
firmware_tool-board_pins_step-battery_sensor_pin =
|
||||
.label = Battery sensor Pin
|
||||
.placeholder = Enter the pin address of battery sensor
|
||||
firmware_tool-board_pins_step-battery_resistor =
|
||||
.label = Battery Resistor (Ohms)
|
||||
.placeholder = Enter the value of battery resistor
|
||||
firmware_tool-board_pins_step-battery_shield_resistor-0 =
|
||||
.label = Battery Shield R1 (Ohms)
|
||||
.placeholder = Enter the value of Battery Shield R1
|
||||
firmware_tool-board_pins_step-battery_shield_resistor-1 =
|
||||
.label = Battery Shield R2 (Ohms)
|
||||
.placeholder = Enter the value of Battery Shield R2
|
||||
|
||||
firmware_tool-add_imus_step = Declare your IMUs
|
||||
firmware_tool-add_imus_step-description =
|
||||
Please add the IMUs that your tracker has.
|
||||
If you followed the SlimeVR documentation, the default values should be correct.
|
||||
firmware_tool-add_imus_step-imu_type-label = IMU type
|
||||
firmware_tool-add_imus_step-imu_type-placeholder = Select the type of IMU
|
||||
firmware_tool-add_imus_step-imu_rotation =
|
||||
.label = IMU Rotation (deg)
|
||||
.placeholder = Rotation angle of the IMU
|
||||
firmware_tool-add_imus_step-scl_pin =
|
||||
.label = SCL Pin
|
||||
.placeholder = Pin address of SCL
|
||||
firmware_tool-add_imus_step-sda_pin =
|
||||
.label = SDA Pin
|
||||
.placeholder = Pin address of SDA
|
||||
firmware_tool-add_imus_step-int_pin =
|
||||
.label = INT Pin
|
||||
.placeholder = Pin address of INT
|
||||
firmware_tool-add_imus_step-optional_tracker =
|
||||
.label = Optional tracker
|
||||
firmware_tool-add_imus_step-show_less = Show Less
|
||||
firmware_tool-add_imus_step-show_more = Show More
|
||||
firmware_tool-add_imus_step-add_more = Add more IMUs
|
||||
|
||||
firmware_tool-select_firmware_step = Select the firmware version
|
||||
firmware_tool-select_firmware_step-description =
|
||||
Please choose what version of the firmware you want to use
|
||||
firmware_tool-select_firmware_step-show-third-party =
|
||||
.label = Show third party firmwares
|
||||
firmware_tool-board_defaults = Configure your board
|
||||
firmware_tool-board_defaults-description = Set the pins or settings relative to your hardware
|
||||
firmware_tool-board_defaults-add = Add
|
||||
firmware_tool-board_defaults-reset = Reset to Default
|
||||
firmware_tool-board_defaults-error-required = Required field
|
||||
firmware_tool-board_defaults-error-format = Invalid format
|
||||
firmware_tool-board_defaults-error-format-number = Not a number
|
||||
|
||||
firmware_tool-flash_method_step = Flashing Method
|
||||
firmware_tool-flash_method_step-description =
|
||||
Please select the flashing method you want to use
|
||||
firmware_tool-flash_method_step-ota =
|
||||
.label = OTA
|
||||
|
||||
firmware_tool-flash_method_step-ota-v2 =
|
||||
.label = Wi-Fi
|
||||
.description = Use the over-the-air method. Your tracker will use Wi-Fi to update its firmware. Only works on trackers that have been set up.
|
||||
firmware_tool-flash_method_step-serial =
|
||||
.label = Serial
|
||||
firmware_tool-flash_method_step-ota-info =
|
||||
We use your wifi credentials to flash the tracker and confirm that everything worked correctly.
|
||||
<b>We do not store your wifi credentials!</b>
|
||||
firmware_tool-flash_method_step-serial-v2 =
|
||||
.label = USB
|
||||
.description = Use a USB cable to update your tracker.
|
||||
|
||||
|
||||
firmware_tool-flashbtn_step = Press the boot btn
|
||||
firmware_tool-flashbtn_step-description = Before going to the next step, there are a few things you need to do
|
||||
|
||||
@@ -1417,10 +1388,10 @@ firmware_tool-flashbtn_step-board_OTHER = Before flashing, you will probably nee
|
||||
If the flashing process times out at the start, it probably means that the tracker was not in bootloader mode.
|
||||
Refer to your board's flashing instructions to learn how to enter bootloader mode.
|
||||
|
||||
|
||||
|
||||
firmware_tool-flash_method_ota-title = Flashing over Wi-Fi
|
||||
firmware_tool-flash_method_ota-devices = Detected OTA Devices:
|
||||
firmware_tool-flash_method_ota-no_devices = There are no boards that can be updated using OTA, make sure you selected the correct board type
|
||||
firmware_tool-flash_method_serial-title = Flashing over USB
|
||||
firmware_tool-flash_method_serial-wifi = Wi-Fi Credentials:
|
||||
firmware_tool-flash_method_serial-devices-label = Detected Serial Devices:
|
||||
firmware_tool-flash_method_serial-devices-placeholder = Select a serial device
|
||||
@@ -1438,10 +1409,10 @@ firmware_tool-flashing_step-flash_more = Flash more trackers
|
||||
firmware_tool-flashing_step-exit = Exit
|
||||
|
||||
## firmware tool build status
|
||||
firmware_tool-build-QUEUED = Waiting to build....
|
||||
firmware_tool-build-CREATING_BUILD_FOLDER = Creating the build folder
|
||||
firmware_tool-build-DOWNLOADING_FIRMWARE = Downloading the firmware
|
||||
firmware_tool-build-EXTRACTING_FIRMWARE = Extracting the firmware
|
||||
firmware_tool-build-SETTING_UP_DEFINES = Configuring the defines
|
||||
firmware_tool-build-DOWNLOADING_SOURCE = Downloading the source code
|
||||
firmware_tool-build-EXTRACTING_SOURCE = Extracting the source code
|
||||
firmware_tool-build-BUILDING = Building the firmware
|
||||
firmware_tool-build-SAVING = Saving the build
|
||||
firmware_tool-build-DONE = Build Complete
|
||||
|
||||
@@ -391,7 +391,7 @@ tracker-settings-use_mag = Permitir el uso del magnetómetro en este tracker
|
||||
# Multiline!
|
||||
tracker-settings-use_mag-description =
|
||||
¿Debería este tracker usar el magnetómetro para reducir la desviacion cuando se permite el uso del magnetómetro? <b>¡Por favor, no apagues tu tracker mientras alternas esto!</b>
|
||||
|
||||
|
||||
Primero debes permitir el uso del magnetómetro, <magSetting>haga clic aquí para ir al ajuste</magSetting>.
|
||||
tracker-settings-use_mag-label = Permitir el uso del magnetómetro
|
||||
# The .<name> means it's an attribute and it's related to the top key.
|
||||
@@ -552,7 +552,7 @@ settings-general-tracker_mechanics-drift_compensation-prediction-label = Compens
|
||||
settings-general-tracker_mechanics-drift_compensation_warning =
|
||||
<b>Advertencia:</b> Solo usa la compensación de desviación si necesitas reiniciar
|
||||
muy seguido (cada ~5-10 minutos).
|
||||
|
||||
|
||||
Algunos IMUs propensos a reinicios frecuentes incluyen:
|
||||
Joy-Cons, owoTrack y MPU (sin un firmware reciente).
|
||||
settings-general-tracker_mechanics-drift_compensation_warning-cancel = Cancelar
|
||||
@@ -739,9 +739,9 @@ settings-general-interface-discord_presence-message =
|
||||
settings-interface-behavior-error_tracking = Recopilación de errores a través de Sentry.io
|
||||
settings-interface-behavior-error_tracking-description_v2 =
|
||||
<h1>Consientes a la recopilación de datos de errores anonimizados?</h1>
|
||||
|
||||
|
||||
<b>No recopilamos información personal</b> como tu dirección IP o credenciales del Wi-Fi. ¡SlimeVR respeta tu privacidad!
|
||||
|
||||
|
||||
Para proveer la mejor experiencia de usuario, recopilamos reportes de errores anonimizados, métricas de rendimiento, e información del sistema operativo. Esto nos ayuda a detectar errores y problemas con SlimeVR. Estas métricas son recopiladas a través de Sentry.io.
|
||||
settings-interface-behavior-error_tracking-label = Enviar errores a los desarrolladores
|
||||
|
||||
@@ -762,7 +762,6 @@ settings-serial-factory_reset-warning =
|
||||
¡Esto significa que los ajustes de calibración y Wi-Fi <b>se perderán</b>!
|
||||
settings-serial-factory_reset-warning-ok = Sé lo que estoy haciendo
|
||||
settings-serial-factory_reset-warning-cancel = Cancelar
|
||||
settings-serial-get_infos = Obtener información
|
||||
settings-serial-serial_select = Selecciona un puerto serial
|
||||
settings-serial-auto_dropdown_item = Auto
|
||||
settings-serial-get_wifi_scan = Obtener escaneo WiFi
|
||||
@@ -802,7 +801,7 @@ settings-osc-vrchat-description-v1 =
|
||||
Cambia los ajustes específicos de los trackers OSC utilizados para enviar
|
||||
datos de seguimiento a aplicaciones sin SteamVR (ej. VRChat en Quest).
|
||||
Asegúrate de activar OSC en VRChat a través del menú Acción en OSC > Activado.
|
||||
Para permitir la recepción de datos del HMD y de los mandos desde VRChat, ve a los ajustes de tu menú principal
|
||||
Para permitir la recepción de datos del HMD y de los mandos desde VRChat, ve a los ajustes de tu menú principal
|
||||
en Tracking & IK > Permitir el envío de datos OSC de seguimiento de RV de cabeza y muñeca.
|
||||
settings-osc-vrchat-enable = Habilitar
|
||||
settings-osc-vrchat-enable-description = Habilita el envio y recibo de datos.
|
||||
@@ -937,20 +936,20 @@ onboarding-reset_tutorial-skip = Saltar paso
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-0 =
|
||||
Toca { $taps } veces el tracker resaltado para activar el reinicio horizontal.
|
||||
|
||||
|
||||
Esto va a hacer que tus sensores miren para la misma dirección que tu HMD.
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-1 =
|
||||
Toca { $taps } veces el tracker resaltado para activar el reinicio completo.
|
||||
|
||||
|
||||
Se requiere que estas de forma parada (pose en i). Esto tiene un delay de 3 segundos (configurable) antes de que actualmente suceda.
|
||||
Esto reinicia completamente la posición y rotación de todos tus sensores, debería de arreglar la mayoría de tus problemas.
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-2 =
|
||||
Toca { $taps } veces el tracker resaltado para activar el reinicio de montura.
|
||||
|
||||
|
||||
El reinicio de montura ayuda en como tus sensores están puestos en tu cuerpo, ya que si los movistes o cambiaste para donde están orientados bastante, esto debería de ayudar.
|
||||
|
||||
|
||||
Requiere que estas en una pose como que estás esquiando, como se muestra en el tutorial de montura automática y tenes un retraso de 3 segundos (configurable) antes de que actualmente suceda.
|
||||
|
||||
## Setup start
|
||||
@@ -1303,9 +1302,9 @@ onboarding-scaled_proportions-manual_height-estimated_height = La altura estimad
|
||||
onboarding-scaled_proportions-manual_height-next_step = Continuar y guardar
|
||||
onboarding-scaled_proportions-manual_height-warning =
|
||||
Actualmente estás utilizando la manera manual para configurar las proporciones escaladas!
|
||||
|
||||
|
||||
<b>Este modo solo es recomendado si no utilizas un HMD con SlimeVR</b>
|
||||
|
||||
|
||||
Para poder utilizar las proporciones escaladas automáticas, por favor:
|
||||
onboarding-scaled_proportions-manual_height-warning-no_hmd = Conecta un visor VR
|
||||
onboarding-scaled_proportions-manual_height-warning-no_controllers = Asegurate de que tus mandos están conectados y correctamente asignados a tus manos
|
||||
@@ -1460,7 +1459,7 @@ firmware_tool-flashbtn_step-board_SLIMEVR-r12 = Encienda el sensor mientras cort
|
||||
firmware_tool-flashbtn_step-board_SLIMEVR-r14 = Encienda el sensor mientras presiona el botón FLASH en la parte superior de la placa
|
||||
firmware_tool-flashbtn_step-board_OTHER =
|
||||
Antes de flashear, probablemente tendrá que poner el sensor en modo bootloader.
|
||||
La mayoría de las veces, esto significa presionar el botón de boot en la placa antes de que comience el proceso de flasheo. Si el proceso de flasheo se agota al comienzo, probablemente significa que el sensor no estaba en modo bootloader.
|
||||
La mayoría de las veces, esto significa presionar el botón de boot en la placa antes de que comience el proceso de flasheo. Si el proceso de flasheo se agota al comienzo, probablemente significa que el sensor no estaba en modo bootloader.
|
||||
Por favor, consulte las instrucciones de flasheo de su placa para saber cómo activar el modo bootloader.
|
||||
firmware_tool-flash_method_ota-devices = Dispositivos OTA detectados:
|
||||
firmware_tool-flash_method_ota-no_devices = No hay placas que se puedan actualizar mediante OTA, asegúrese de seleccionar el tipo de placa correcto
|
||||
@@ -1530,7 +1529,7 @@ tray_or_exit_modal-title = ¿Que debería hacer el botón de cerrar?
|
||||
# Multiline text
|
||||
tray_or_exit_modal-description =
|
||||
Esto te deja escoger si quieres cerrar el servidor o minimizarlo a la bandeja cuando se presiona el botón de cerrar.
|
||||
|
||||
|
||||
¡Puedes cambiar esto luego en los ajustes de la interfaz!
|
||||
tray_or_exit_modal-radio-exit = Salir al cerrar
|
||||
tray_or_exit_modal-radio-tray = Minimizar a la bandeja del sistema
|
||||
@@ -1591,7 +1590,7 @@ vrc_config-avatar_measurement_type-ARM_SPAN = Longitud del brazo
|
||||
error_collection_modal-title = ¿Podemos recopilar errores?
|
||||
error_collection_modal-description_v2 =
|
||||
{ settings-interface-behavior-error_tracking-description_v2 }
|
||||
|
||||
|
||||
Tu puedes cambiar esta configuración más tarde en la sección de comportamiento de la pagina de configuración.
|
||||
error_collection_modal-confirm = Acepto
|
||||
error_collection_modal-cancel = No quiero
|
||||
@@ -302,7 +302,7 @@ tracker-settings-use_mag = Permitir magnetómetro en este tracker
|
||||
# Multiline!
|
||||
tracker-settings-use_mag-description =
|
||||
¿Debería este tracker usar el magnetómetro para reducir el drift cuando se permita el uso de este? <b>¡Por favor, no apague su tracker mientras activas esto!</b>
|
||||
|
||||
|
||||
Primero debe permitir el uso del magnetómetro, <magSetting>haga clic aquí para ir a la configuración</magSetting>.
|
||||
tracker-settings-use_mag-label = Permitir magnetómetro
|
||||
# The .<name> means it's an attribute and it's related to the top key.
|
||||
@@ -459,7 +459,7 @@ settings-general-tracker_mechanics-drift_compensation-prediction-label = Predicc
|
||||
settings-general-tracker_mechanics-drift_compensation_warning =
|
||||
<b>Advertencia:</b> Utilice la compensación de drift solo si necesita restablecer
|
||||
muy a menudo (cada ~5-10 minutos).
|
||||
|
||||
|
||||
Algunas IMU propensas a restablecimientos frecuentes incluyen:
|
||||
Joy-Cons, owoTrack y MPUs (sin firmware reciente).
|
||||
settings-general-tracker_mechanics-drift_compensation_warning-cancel = Cancelar
|
||||
@@ -468,7 +468,7 @@ settings-general-tracker_mechanics-drift_compensation-amount-label = Cantidad de
|
||||
settings-general-tracker_mechanics-drift_compensation-max_resets-label = Usar los últimos X reinicios.
|
||||
settings-general-tracker_mechanics-save_mounting_reset = Guardar la calibración de reajuste de montaje automático
|
||||
settings-general-tracker_mechanics-save_mounting_reset-description =
|
||||
Guarda las calibraciones de reajuste de montaje automático para los trackers entre reinicios. Útil
|
||||
Guarda las calibraciones de reajuste de montaje automático para los trackers entre reinicios. Útil
|
||||
cuando se lleva un traje en el que los trackers no se mueven entre sesiones. <b>No recomendado para usuarios normales!</b>
|
||||
settings-general-tracker_mechanics-save_mounting_reset-enabled-label = Guardar restablecimiento de montaje
|
||||
settings-general-tracker_mechanics-use_mag_on_all_trackers = Usar el magnetómetro en todos los trackers IMU que lo soporten
|
||||
@@ -631,9 +631,9 @@ settings-general-interface-discord_presence-message =
|
||||
settings-interface-behavior-error_tracking = Recopilación de errores a través de Sentry.io
|
||||
settings-interface-behavior-error_tracking-description_v2 =
|
||||
<h1>¿Da su consentimiento para la recopilación de datos de error anónimos?</h1>
|
||||
|
||||
|
||||
<b>No recopilamos información personal</b> , como su dirección IP o credenciales inalámbricas. ¡SlimeVR valora tu privacidad!
|
||||
|
||||
|
||||
Para proporcionar la mejor experiencia de usuario, recopilamos informes de errores anónimos, métricas de rendimiento e información del sistema operativo. Esto nos ayuda a detectar errores y problemas con SlimeVR. Estas métricas se recopilan a través de Sentry.io.
|
||||
settings-interface-behavior-error_tracking-label = Enviar errores a los desarrolladores
|
||||
|
||||
@@ -654,7 +654,6 @@ settings-serial-factory_reset-warning =
|
||||
Esto significa que los ajustes de Wi-Fi y calibración <b>se perderán</b>.
|
||||
settings-serial-factory_reset-warning-ok = Sé lo que estoy haciendo
|
||||
settings-serial-factory_reset-warning-cancel = Cancelar
|
||||
settings-serial-get_infos = Obtener información
|
||||
settings-serial-serial_select = Selecciona un puerto serial
|
||||
settings-serial-auto_dropdown_item = Automático
|
||||
settings-serial-get_wifi_scan = Obtener escaneo WiFi
|
||||
@@ -827,20 +826,20 @@ onboarding-reset_tutorial-skip = Omitir paso
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-0 =
|
||||
Toque { $taps } veces el rastreador resaltado para activar el restablecimiento horizontal.
|
||||
|
||||
|
||||
Esto hará que los trackers miren en la misma dirección que tu visor (HMD).
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-1 =
|
||||
Toque { $taps } veces el rastreador resaltado para activar el reinicio completo.
|
||||
|
||||
|
||||
Para ello es necesario estar de pie (pose i). Hay un retraso de 3 segundos (configurable) antes de que realmente suceda.
|
||||
Esto restablece completamente la posición y la rotación de todos sus trackers. Debería solucionar la mayoría de los problemas.
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-2 =
|
||||
Toque { $taps } veces el tracker resaltado para activar el restablecimiento de montura.
|
||||
|
||||
|
||||
El restablecimiento de montura ayuda en cómo los trackers están realmente colocados en ti, así que si accidentalmente los moviste y cambiaste su orientación por una gran cantidad, esto ayudará.
|
||||
|
||||
|
||||
Necesitas estar en una pose como si estuvieras esquiando como se muestra en el asistente de montaje automático y tienes un retraso de 3 segundos (configurable) antes de que se active.
|
||||
|
||||
## Setup start
|
||||
@@ -1175,7 +1174,7 @@ onboarding-scaled_proportions-manual_height-next_step = Continuar y guardar
|
||||
onboarding-scaled_proportions-manual_height-warning =
|
||||
¡Actualmente está utilizando la forma manual de configurar proporciones escaladas!
|
||||
<b>Este modo solo se recomienda si no se utiliza un HMD con SlimeVR</b>
|
||||
|
||||
|
||||
Para poder utilizar las proporciones escaladas automáticamente, por favor:
|
||||
onboarding-scaled_proportions-manual_height-warning-no_hmd = Conecte un visor de RV
|
||||
onboarding-scaled_proportions-manual_height-warning-no_controllers = Asegúrese de que sus controladores estén conectados y asignados correctamente a sus manos
|
||||
@@ -1369,7 +1368,7 @@ tray_or_exit_modal-title = ¿Qué debe hacer el botón de cierre?
|
||||
# Multiline text
|
||||
tray_or_exit_modal-description =
|
||||
Esto te permite elegir si quieres salir de la aplicación o minimizarlo a la bandeja al pulsar el botón de cerrar.
|
||||
|
||||
|
||||
¡Puedes cambiar esto más tarde en la configuración de la interfaz!
|
||||
tray_or_exit_modal-radio-exit = Salir al cerrar
|
||||
tray_or_exit_modal-radio-tray = Minimizar a la bandeja
|
||||
@@ -1390,7 +1389,7 @@ unknown_device-modal-forget = Ignóralo
|
||||
error_collection_modal-title = ¿Podemos recopilar errores?
|
||||
error_collection_modal-description_v2 =
|
||||
{ settings-interface-behavior-error_tracking-description_v2 }
|
||||
|
||||
|
||||
Puede cambiar esta configuración más adelante en la sección Comportamiento de la página de configuración.
|
||||
error_collection_modal-confirm = Acepto
|
||||
error_collection_modal-cancel = No quiero
|
||||
@@ -449,7 +449,6 @@ settings-serial-factory_reset-warning =
|
||||
Mis tähendab et WI-FI ja kalibreerimis sätted <b>kustutatakse!</b>
|
||||
settings-serial-factory_reset-warning-ok = Ma tean mida ma teen
|
||||
settings-serial-factory_reset-warning-cancel = Tühista
|
||||
settings-serial-get_infos = Saa infot
|
||||
settings-serial-serial_select = Valige jadaport
|
||||
settings-serial-auto_dropdown_item = Auto
|
||||
|
||||
@@ -579,20 +578,20 @@ onboarding-reset_tutorial-skip = Jäta samm vahele
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-0 =
|
||||
Puudutage { $taps } korda esiletõstetud jälgijat, et käivitada lengerduse lähtestamine.
|
||||
|
||||
|
||||
See setib jälgijad teie HMD-ga samas suunas.
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-1 =
|
||||
Täieliku lähtestamise käivitamiseks puudutage esiletõstetud jälgijat { $taps } korda.
|
||||
|
||||
|
||||
Sa pead seisma (i-poosis). Enne kui see juhtub, on 3-sekundiline viivitus (konfigureeritav).
|
||||
See lähtestab täielikult kõigi teie jälgijate asukoha ja pöörlemise. See peaks lahendama enamiku probleeme.
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-2 =
|
||||
Puudutage { $taps } korda esiletõstetud jälgijat, et lähtestada paigaldus.
|
||||
|
||||
|
||||
Paigaldamise lähtestamine aitab kaasa sellele, kuidas jälgijad teile tegelikult pannakse, nii et kui te neid kogemata liigutasite ja muutsite nende orientatsiooni suure summa võrra, aitab see.
|
||||
|
||||
|
||||
Peate olema poosis, nagu suusatate, nagu see on näidatud automaatse paigaldamise viisardil, ja teil on 3-sekundiline viivitus (konfigureeritav), enne kui see käivitub.
|
||||
|
||||
## Setup start
|
||||
|
||||
@@ -479,7 +479,6 @@ settings-serial-factory_reset-warning =
|
||||
Tämä tarkoittaa, että Wi-Fi- ja kalibrointiasetukset <b>menetetään kokonaan!</b>
|
||||
settings-serial-factory_reset-warning-ok = Tiedän mitä teen
|
||||
settings-serial-factory_reset-warning-cancel = Peruuta
|
||||
settings-serial-get_infos = Hanki tietoja
|
||||
settings-serial-serial_select = Valitse sarjaportti
|
||||
settings-serial-auto_dropdown_item = Autom.
|
||||
settings-serial-file_type = Teksti
|
||||
@@ -607,20 +606,20 @@ onboarding-reset_tutorial-skip = Ohita vaihe
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-0 =
|
||||
Napauta { $taps } kertaa korostettua jäljitintä käynnistääksesi kallistuman nollauksen.
|
||||
|
||||
|
||||
Tämä osoittaa jäljittimet samaan suuntaan kuin HMD.
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-1 =
|
||||
Napauta { $taps } kertaa korostettua jäljitintä käynnistääksesi täysinollauksen.
|
||||
|
||||
|
||||
Sinun on seisottava paikallasi (i-pose) tätä varten. On 3 sekunnin viive (muokattavissa), ennen kuin se tapahtuu.
|
||||
Tämä täysin nollaa kaikkien jäljittimien sijainnin ja kierron. Sen pitäisi korjata useimmat ongelmat.
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-2 =
|
||||
Napauta { $taps } kertaa korostettua jäljitintä käynnistääksesi asennuksen nollaus.
|
||||
|
||||
|
||||
Asennuksen nollaus auttaa siinä, kuinka jäljittimet on todella asetettu sinulla, joten jos vahingossa siirsit ja muutit suuresti niiden suuntaa, tämä auttaa.
|
||||
|
||||
|
||||
Sinun on oltava hiihto-asennossa, kuten on näytettynä Automaattisessa Asennuksessa ja sinulla on 3 sekunnin viive (muokattavissa), ennen kuin se käynnistyy.
|
||||
|
||||
## Setup start
|
||||
@@ -910,4 +909,3 @@ status_system-StatusTrackerError = { $trackerName } jäljittimessä on virhe
|
||||
|
||||
|
||||
## Unknown device modal
|
||||
|
||||
@@ -118,7 +118,7 @@ skeleton_bone-HEAD-desc =
|
||||
skeleton_bone-NECK = Longueur du cou
|
||||
skeleton_bone-NECK-desc =
|
||||
Ceci est la distance entre le milieu de votre tête et la base de votre cou.
|
||||
Pour l’ajuster, hochez votre tête de haut en bas ou inclinez votre tête de gauche à droite et modifiez-la
|
||||
Pour l’ajuster, hochez votre tête de haut en bas ou inclinez votre tête de gauche à droite et modifiez-la
|
||||
jusqu’à ce que vos capteurs bougent le moins possible.
|
||||
skeleton_bone-torso_group = Longueur du torse
|
||||
skeleton_bone-torso_group-desc =
|
||||
@@ -394,7 +394,7 @@ tracker-settings-use_mag = Autoriser l'utilisation du magnétomètre sur ce capt
|
||||
# Multiline!
|
||||
tracker-settings-use_mag-description =
|
||||
Est-ce que ce capteur devrait utiliser son magnétomètre pour réduire la dérive lorsque l'utilisation du magnétomètre est autorisée ? <b>N'éteignez pas votre capteur pendant que vous changez cette option !</b>
|
||||
|
||||
|
||||
Vous devez d'abord autoriser l'utilisation du magnétomètre dans les paramètres. <magSetting>Cliquez ici pour y accéder</magSetting>.
|
||||
tracker-settings-use_mag-label = Autoriser le magnétomètre
|
||||
# The .<name> means it's an attribute and it's related to the top key.
|
||||
@@ -556,7 +556,7 @@ settings-general-tracker_mechanics-drift_compensation-prediction-label = Prédic
|
||||
settings-general-tracker_mechanics-drift_compensation_warning =
|
||||
<b>Avertissement:</b> n'utilisez la compensation de la dérive que si vous devez
|
||||
réinitialiser très souvent (toutes les ~5-10 minutes).
|
||||
|
||||
|
||||
Voici quelques IMUs sujets à des réinitialisations fréquentes :
|
||||
Joy-Cons, owoTrack et MPUs (sans micrologiciel récent).
|
||||
settings-general-tracker_mechanics-drift_compensation_warning-cancel = Annuler
|
||||
@@ -744,9 +744,9 @@ settings-general-interface-discord_presence-message =
|
||||
settings-interface-behavior-error_tracking = Collecte des erreurs via Sentry.io
|
||||
settings-interface-behavior-error_tracking-description_v2 =
|
||||
<h1>Consentez-vous à la collecte de données d'erreur anonymisée ?</h1>
|
||||
|
||||
|
||||
<b>Nous ne collectons pas d'informations personnelles</b> telles que votre adresse IP ou vos identifiants Wi-Fi. SlimeVR accorde une grande importance à votre vie privée !
|
||||
|
||||
|
||||
Pour offrir la meilleure expérience utilisateur possible, nous collectons des rapports d'erreurs anonymisés, des mesures de performance et des informations sur le système d'exploitation. Cela nous aide à détecter les bugs et les problèmes liés à SlimeVR. Ces données sont collectées via Sentry.io.
|
||||
settings-interface-behavior-error_tracking-label = Envoyer les erreurs aux développeurs
|
||||
settings-interface-behavior-bvh_directory = Répertoire pour sauvegarder les enregistrements BVH
|
||||
@@ -770,7 +770,6 @@ settings-serial-factory_reset-warning =
|
||||
Ce qui signifie que les paramètres de Wi-Fi et de calibration <b>seront tous perdus !</b>
|
||||
settings-serial-factory_reset-warning-ok = Je sais ce que je fais
|
||||
settings-serial-factory_reset-warning-cancel = Annuler
|
||||
settings-serial-get_infos = Obtenir des informations
|
||||
settings-serial-serial_select = Sélectionnez un port série
|
||||
settings-serial-auto_dropdown_item = Automatique
|
||||
settings-serial-get_wifi_scan = Obtenir scan WiFi
|
||||
@@ -943,20 +942,20 @@ onboarding-reset_tutorial-skip = Sauter l'étape
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-0 =
|
||||
Tapotez { $taps } fois sur le capteur en surbrillance pour effectuer une réinitialisation horizontale.
|
||||
|
||||
|
||||
Cela orientera les capteurs dans la même direction que votre casque VR.
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-1 =
|
||||
Tapotez { $taps } fois sur le capteur en surbrillance pour effectuer une réinitialisation complète.
|
||||
|
||||
|
||||
Vous devrez restez en position « i » (droit debout, bras le long du corps). Vous aurez un délai de 3 secondes (configurable) avant la réinitialisation.
|
||||
Cela réinitialise complètement la position et la rotation de tout vos capteurs, ce qui devrait corriger la plupart des problèmes.
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-2 =
|
||||
Tapotez { $taps } fois sur le capteur en surbrillance pour réinitialiser l'alignement des capteurs.
|
||||
|
||||
|
||||
La réinitialisation de l'alignement des capteurs aide à définir la façon dont ces derniers sont portés sur vous. Cela aidera si vous en avez déplacé un sur vous accidentellement.
|
||||
|
||||
|
||||
Accroupissez-vous dans une position de « ski » comme affiché sur l'assistant d'alignement des capteurs. Vous aurez un délai de 3 secondes (configurable) avant la réinitialisation.
|
||||
|
||||
## Setup start
|
||||
@@ -1310,7 +1309,7 @@ onboarding-scaled_proportions-manual_height-next_step = Continuer et enregistrer
|
||||
onboarding-scaled_proportions-manual_height-warning =
|
||||
Vous utilisez actuellement le réglage manuel de la mise à l'échelle des proportions !
|
||||
<b>Ce mode est recommandé uniquement si vous n'utilisez pas de casque VR avec SlimeVR</b>
|
||||
|
||||
|
||||
Pour pouvoir utiliser les proportions mises à l’échelle automatiquement, veuillez :
|
||||
onboarding-scaled_proportions-manual_height-warning-no_hmd = Connecter un casque VR
|
||||
onboarding-scaled_proportions-manual_height-warning-no_controllers = Assurez-vous que vos manettes sont connectées et correctement assignées à vos mains
|
||||
@@ -1596,7 +1595,7 @@ vrc_config-avatar_measurement_type-ARM_SPAN = Envergure des bras
|
||||
error_collection_modal-title = Avons nous l'autorisation de collecter les erreurs ?
|
||||
error_collection_modal-description_v2 =
|
||||
{ settings-interface-behavior-error_tracking-description_v2 }
|
||||
|
||||
|
||||
Vous pouvez modifier ce paramètre ultérieurement dans la section "Comportement" des paramètres.
|
||||
error_collection_modal-confirm = Je suis d'accord
|
||||
error_collection_modal-cancel = Je ne veux pas
|
||||
@@ -175,7 +175,7 @@ skeleton_bone-FOOT_SHIFT = Correzione per i piedi
|
||||
skeleton_bone-FOOT_SHIFT-desc =
|
||||
Questo valore è la distanza orizzontale dal ginocchio alla caviglia.
|
||||
Tiene conto del fatto che la parte inferiore delle gambe va all'indietro quando si sta in piedi.
|
||||
Per regolarla, impostare la lunghezza dei piedi su 0, eseguire un reset completo e modificarla
|
||||
Per regolarla, impostare la lunghezza dei piedi su 0, eseguire un reset completo e modificarla
|
||||
finché i piedi virtuali di non si allineano al centro delle caviglie.
|
||||
skeleton_bone-SKELETON_OFFSET = Correzione per lo scheletro
|
||||
skeleton_bone-SKELETON_OFFSET-desc =
|
||||
@@ -384,7 +384,7 @@ tracker-settings-use_mag = Consenti il magnetometro su questo tracker
|
||||
# Multiline!
|
||||
tracker-settings-use_mag-description =
|
||||
Vuoi consentire al tracker l'utilizzo del magnetometro per ridurre il drift quando l'uso del magnetometro è consentito? <b>Per favore non spegnere il tracker durante l'attivazione!</b>
|
||||
|
||||
|
||||
È necessario prima consentire l'utilizzo del magnetometro, <magSetting>fare clic qui per accedere alle impostazioni</magSetting>.
|
||||
tracker-settings-use_mag-label = Consenti magnetometro
|
||||
# The .<name> means it's an attribute and it's related to the top key.
|
||||
@@ -541,9 +541,9 @@ settings-general-tracker_mechanics-drift_compensation-prediction-description =
|
||||
Abilita questa opzione se i tuoi tracker perdono continuano l'orientamento.
|
||||
settings-general-tracker_mechanics-drift_compensation-prediction-label = Compensazione del drift predittiva
|
||||
settings-general-tracker_mechanics-drift_compensation_warning =
|
||||
<b>Attenzione:</b> Utilizzare la compensazione del drift solo se è necessario il ripristino
|
||||
<b>Attenzione:</b> Utilizzare la compensazione del drift solo se è necessario il ripristino
|
||||
molto spesso (ogni ~5-10 minuti).
|
||||
|
||||
|
||||
Alcune IMU che sono soggetti a frequenti ripristini includono:
|
||||
Joy-Con, owoTrack e MPU (senza firmware recente).
|
||||
settings-general-tracker_mechanics-drift_compensation_warning-cancel = Annulla
|
||||
@@ -732,9 +732,9 @@ settings-general-interface-discord_presence-message =
|
||||
settings-interface-behavior-error_tracking = Raccolta degli errori tramite Sentry.io
|
||||
settings-interface-behavior-error_tracking-description_v2 =
|
||||
<h1>Acconsenti alla raccolta di dati di errore anonimizzati?</h1>
|
||||
|
||||
|
||||
<b>Non raccogliamo informazioni personali</b> come l'indirizzo IP o le credenziali wireless. SlimeVR ha a cuore la tua privacy!
|
||||
|
||||
|
||||
Per offrire la migliore esperienza utente, raccogliamo segnalazioni di errori anonime, metriche delle prestazioni e informazioni sul sistema operativo. Questo ci aiuta a rilevare bug e problemi con SlimeVR. Queste metriche vengono raccolte tramite Sentry.io.
|
||||
settings-interface-behavior-error_tracking-label = Invia errori agli sviluppatori
|
||||
|
||||
@@ -755,7 +755,6 @@ settings-serial-factory_reset-warning =
|
||||
Ciò significa che le impostazioni Wi-Fi e di calibrazione <b>andranno tutte perse!</b>
|
||||
settings-serial-factory_reset-warning-ok = Capisco cosa sto facendo
|
||||
settings-serial-factory_reset-warning-cancel = Annulla
|
||||
settings-serial-get_infos = Ottieni informazioni
|
||||
settings-serial-serial_select = Seleziona una porta seriale
|
||||
settings-serial-auto_dropdown_item = Automatico
|
||||
settings-serial-get_wifi_scan = Elenca WiFi Network
|
||||
@@ -929,21 +928,21 @@ onboarding-reset_tutorial-explanation = Mentre usi i tuoi tracker, potrebbero pe
|
||||
onboarding-reset_tutorial-skip = Salta passaggio
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-0 =
|
||||
Tocca { $taps } volte il tracker evidenziato per eseguire il ripristino dell'orientamento.
|
||||
|
||||
Tocca { $taps } volte il tracker evidenziato per eseguire il ripristino dell'orientamento.
|
||||
|
||||
Ciò farà sì che i tracker siano rivolti nella stessa direzione del tuo HMD.
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-1 =
|
||||
Tocca { $taps } volte il tracker evidenziato per eseguire il ripristino completo.
|
||||
|
||||
|
||||
Devi stare in piedi drittə per questo (I-pose). C'è un ritardo di 3 secondi (configurabile) prima che accada effettivamente.
|
||||
Questo ripristinerà completamente la posizione e la rotazione di tutti i tuoi tracker. Dovrebbe risolvere la maggior parte dei problemi.
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-2 =
|
||||
Tocca { $taps } volte il tracker evidenziato per eseguire il ripristino del posizionamento.
|
||||
|
||||
Tocca { $taps } volte il tracker evidenziato per eseguire il ripristino del posizionamento.
|
||||
|
||||
Il ripristino del posizionamento aiuta a determinare come i tracker vengono effettivamente posizionati su di te, quindi se li hai spostati accidentalmente e hai cambiato il modo in cui sono orientati di una grande quantità, questo aiuterà.
|
||||
|
||||
|
||||
Devi essere in posa come se stessi sciando come mostrato nella procedura guidata di posizionamento automatico e ha un ritardo di 3 secondi (configurabile) prima che venga attivato.
|
||||
|
||||
## Setup start
|
||||
@@ -1298,7 +1297,7 @@ onboarding-scaled_proportions-manual_height-next_step = Continua e salva
|
||||
onboarding-scaled_proportions-manual_height-warning =
|
||||
Al momento stai utilizzando il metodo manuale per impostare le proporzioni in scala!
|
||||
<b>Questa modalità è consigliata solo se non si utilizza un Visore con SlimeVR</b>
|
||||
|
||||
|
||||
Per poter utilizzare le proporzioni in scala automatica, si prega di:
|
||||
onboarding-scaled_proportions-manual_height-warning-no_hmd = Collegare un visore VR
|
||||
onboarding-scaled_proportions-manual_height-warning-no_controllers = Assicurarsi che i controller siano collegati e assegnati correttamente alle mani
|
||||
@@ -1524,7 +1523,7 @@ tray_or_exit_modal-title = Cosa dovrebbe fare il pulsante di chiusura?
|
||||
# Multiline text
|
||||
tray_or_exit_modal-description =
|
||||
Questa opzione ti permette di scegliere se si desidera uscire dal server o ridurlo a icona nella barra delle applicationi quando si preme il pulsante di chiusura.
|
||||
|
||||
|
||||
Puoi cambiare la tua scelta in seguito nelle impostazioni dell'interfaccia!
|
||||
tray_or_exit_modal-radio-exit = Termina alla chiusura
|
||||
tray_or_exit_modal-radio-tray = Riduci a icona nella barra delle applicazioni
|
||||
@@ -1585,7 +1584,7 @@ vrc_config-avatar_measurement_type-ARM_SPAN = Apertura del braccio
|
||||
error_collection_modal-title = Possiamo raccogliere gli errori?
|
||||
error_collection_modal-description_v2 =
|
||||
{ settings-interface-behavior-error_tracking-description_v2 }
|
||||
|
||||
|
||||
Puoi modificare questa impostazione in un secondo momento nella sezione Comportamento delle impostazioni.
|
||||
error_collection_modal-confirm = Acconsento
|
||||
error_collection_modal-cancel = Non acconsento
|
||||
@@ -246,7 +246,7 @@ tracker-settings-drift_compensation_section-edit = ドリフト補正を行う
|
||||
# Multiline!
|
||||
tracker-settings-use_mag-description =
|
||||
このトラッカーは、マグネトメーターの使用が許可されている場合、ドリフトを減らすためにマグネトメーターを使用すべきですか? <b>設定を切り替える際は、トラッカーをシャットダウンしないでください!</b>
|
||||
|
||||
|
||||
まず、マグネトメーターの使用を許可する必要があります。<magSetting>設定に移動するにはここをクリックしてください</magSetting>。
|
||||
# The .<name> means it's an attribute and it's related to the top key.
|
||||
# In this case that is the settings for the assignment section.
|
||||
@@ -486,7 +486,6 @@ settings-serial-reboot = リブート
|
||||
settings-serial-factory_reset = ファクトリーリセット
|
||||
settings-serial-factory_reset-warning-ok = 自分が何しているかを知っています。
|
||||
settings-serial-factory_reset-warning-cancel = キャンセル
|
||||
settings-serial-get_infos = 情報取得
|
||||
settings-serial-serial_select = シリアルポートを選択
|
||||
settings-serial-auto_dropdown_item = 自動
|
||||
|
||||
@@ -797,4 +796,3 @@ unknown_device-modal-confirm = もちろん!
|
||||
unknown_device-modal-forget = 無視する
|
||||
|
||||
## Error collection consent modal
|
||||
|
||||
@@ -263,7 +263,7 @@ tracker-settings-use_mag = 이 트래커에서 자력계 활성화하기
|
||||
# Multiline!
|
||||
tracker-settings-use_mag-description =
|
||||
이 트래커는 자력계 사용이 허용될 때 드리프트를 줄이기 위해 자력계를 사용해야 합니까? <b>이것을 토글하는 동안 트래커를 종료하지 마십시오!</b>
|
||||
|
||||
|
||||
먼저 자력계를 사용하도록 설정한 다음, <magSetting>여기를 클릭하여 설정으로 이동하세요</magSetting>.
|
||||
tracker-settings-use_mag-label = 자력계 활성화
|
||||
# The .<name> means it's an attribute and it's related to the top key.
|
||||
@@ -383,7 +383,7 @@ settings-general-steamvr-trackers-tracker_toggling = 자동 트래커 할당
|
||||
settings-general-steamvr-trackers-tracker_toggling-description = 지정한 트래커 할당 상태에 따라 SteamVR 트래커를 자동으로 켜고 끄기
|
||||
settings-general-steamvr-trackers-tracker_toggling-label = 자동 트래커 할당
|
||||
settings-general-steamvr-trackers-hands-warning =
|
||||
<b>경고:</b> 핸드 트래커를 사용하면 VR 컨트롤러가 작동하지 않아요.
|
||||
<b>경고:</b> 핸드 트래커를 사용하면 VR 컨트롤러가 작동하지 않아요.
|
||||
그래도 사용할까요?
|
||||
settings-general-steamvr-trackers-hands-warning-cancel = 취소
|
||||
settings-general-steamvr-trackers-hands-warning-done = 확인
|
||||
@@ -414,12 +414,12 @@ settings-general-tracker_mechanics-drift_compensation-enabled-label = 틀어짐
|
||||
settings-general-tracker_mechanics-drift_compensation-prediction = 틀어짐 보정 예측
|
||||
# This cares about multilines
|
||||
settings-general-tracker_mechanics-drift_compensation-prediction-description =
|
||||
점점 심하게 틀어지는 트래커의 틀어짐 방향을 예측해요.
|
||||
점점 심하게 틀어지는 트래커의 틀어짐 방향을 예측해요.
|
||||
틀어짐 보정을 사용해도 트래커가 Yaw 축에서 계속 틀어지면 이 옵션을 켜세요.
|
||||
settings-general-tracker_mechanics-drift_compensation-prediction-label = 예측해서 틀어짐 보정하기
|
||||
settings-general-tracker_mechanics-drift_compensation_warning =
|
||||
<b>경고:</b> 트래커를 지나치게 자주 정렬해야 하는 경우에만 틀어짐 보정을 사용하세요 (5~10분마다).
|
||||
|
||||
|
||||
Joy-Con, owoTrack 및 MPU 시리즈 IMU(최신 펌웨어 제외)
|
||||
등과 같은 트래커들이 해당합니다.
|
||||
settings-general-tracker_mechanics-drift_compensation_warning-cancel = 취소
|
||||
@@ -428,7 +428,7 @@ settings-general-tracker_mechanics-drift_compensation-amount-label = 보정 강
|
||||
settings-general-tracker_mechanics-drift_compensation-max_resets-label = 보정에 사용할 최근 정렬 횟수
|
||||
settings-general-tracker_mechanics-save_mounting_reset = 자동 착용 방향 정렬 보정값 저장
|
||||
settings-general-tracker_mechanics-save_mounting_reset-description =
|
||||
트래커의 착용 방향 정렬 보정값을 저장합니다. 트래커들의 위치가 고정된
|
||||
트래커의 착용 방향 정렬 보정값을 저장합니다. 트래커들의 위치가 고정된
|
||||
모션 캡처 슈트 같은 것을 사용할 때 유용해요. <b>일반 사용자들에게는 권장되지 않아요!</b>
|
||||
settings-general-tracker_mechanics-save_mounting_reset-enabled-label = 착용 방향 정렬 저장
|
||||
settings-general-tracker_mechanics-use_mag_on_all_trackers = 자력계를 지원하는 모든 IMU 트래커에서 자력계 활성화
|
||||
@@ -595,7 +595,6 @@ settings-serial-factory_reset-warning =
|
||||
계속하면 Wi-Fi와 캘리브레이션 정보도 <b>모두 삭제됩니다!</b>
|
||||
settings-serial-factory_reset-warning-ok = 네! 알고 있어요.
|
||||
settings-serial-factory_reset-warning-cancel = 취소
|
||||
settings-serial-get_infos = 정보 가져오기
|
||||
settings-serial-serial_select = 시리얼 포트 선택
|
||||
settings-serial-auto_dropdown_item = 자동
|
||||
settings-serial-get_wifi_scan = WiFi 검색
|
||||
@@ -760,20 +759,20 @@ onboarding-reset_tutorial-skip = 단계 건너뛰기
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-0 =
|
||||
Yaw 정렬을 시도하려면 강조된 트래커를 { $taps }번 탭하세요.
|
||||
|
||||
|
||||
그러면 트래커는 HMD가 바라보는 면과 같은 방향으로 정렬될 거예요.
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-1 =
|
||||
전체 정렬을 시도하려면 강조된 트래커를 { $taps }번 탭하세요.
|
||||
|
||||
|
||||
탭한 다음 3초 뒤에(설정에서 변경 가능) 실제 보정이 이뤄지기 때문에 그 사이에 일어나서 차렷 자세로 보정을 기다리면 돼요.
|
||||
전체 정렬은 모든 트래커의 위치와 각도를 원래대로 되돌리기 때문에 대부분의 틀어짐 문제를 해결할 수 있어요.
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-2 =
|
||||
착용 방향 정렬을 시도하려면 강조된 트래커를 { $taps }번 탭하세요.
|
||||
|
||||
|
||||
착용 방향 정렬은 실제로 몸에 있는 트래커의 위치를 감지할 수 있어요. 트래커를 정확한 방향으로 착용하지 않거나 실수로 움직여서 트래커가 미끄러져도 착용 방향 정렬을 통해 해결할 수 있어요.
|
||||
|
||||
|
||||
자동 착용 방향 설정 마법사에서 봤던 것처럼 스키를 타는 듯한 자세로 몸을 구부리고 있으세요. 탭한 다음 3초 뒤에(설정에서 변경 가능) 보정이 시작될 거예요.
|
||||
|
||||
## Setup start
|
||||
@@ -1060,7 +1059,7 @@ onboarding-automatic_proportions-recording-description-p0 = 기록하는 중...
|
||||
onboarding-automatic_proportions-recording-description-p1 = 아래에 표시된 동작을 따라 하세요
|
||||
# Each line of text is a different list item
|
||||
onboarding-automatic_proportions-recording-steps =
|
||||
자리에서 똑바로 일어나서, 머리를 원을 그리듯이 움직이세요.
|
||||
자리에서 똑바로 일어나서, 머리를 원을 그리듯이 움직이세요.
|
||||
등을 앞으로 구부리고 스쿼트를 하듯이 몸을 낮추세요. 그대로 왼쪽을 바라본 다음 오른쪽을 바라보세요.
|
||||
상체를 왼쪽(시계 반대 방향)으로 비틀어서 바닥을 향해 손을 뻗으세요.
|
||||
상체를 오른쪽(시계 방향)으로 비틀어서 바닥을 향해 손을 뻗으세요.
|
||||
@@ -1285,7 +1284,7 @@ tray_or_exit_modal-title = 닫기 버튼이 무엇을 하도록 할까요?
|
||||
# Multiline text
|
||||
tray_or_exit_modal-description =
|
||||
이 옵션은 닫기 버튼을 누를 때 서버를 종료할지 또는 시스템 트레이로 최소화할지를 결정합니다.
|
||||
|
||||
|
||||
언제든지 설정의 인터페이스 탭에서 변경하실 수 있어요!
|
||||
tray_or_exit_modal-radio-exit = SlimeVR 종료하기
|
||||
tray_or_exit_modal-radio-tray = 작업 표시줄로 최소화
|
||||
|
||||
@@ -399,9 +399,9 @@ settings-general-interface-dev_mode-description = Denne modusen kan være hjelps
|
||||
settings-general-interface-dev_mode-label = Utvikler modus
|
||||
settings-interface-behavior-error_tracking-description_v2 =
|
||||
<h1>Samtykker du til innsamling av anonymiserte feildata?</h1>
|
||||
|
||||
|
||||
<b>Vi samler ikke inn personlig informasjon</b> slik som din IP-adresse eller trådløs-legitimasjon. SlimeVR verdsetter ditt personvern!
|
||||
|
||||
|
||||
For å gi deg den beste brukeropplevelsen, samler vi inn anonymiserte feilrapporter, ytelsesmålinger og informasjon om operativsystemet. Dette hjelper oss med å oppdage feil og problemer med SlimeVR. Disse beregningene samles inn via Sentry.io.
|
||||
settings-interface-behavior-error_tracking-label = Send feilmeldinger til utviklere
|
||||
|
||||
@@ -422,7 +422,6 @@ settings-serial-factory_reset-warning =
|
||||
Som betyr at Wi-Fi og kalibrerings innstillingene dine </b>vil bli tapt!</b>
|
||||
settings-serial-factory_reset-warning-ok = Jeg vet hva jeg driver med
|
||||
settings-serial-factory_reset-warning-cancel = Avslutt
|
||||
settings-serial-get_infos = Få info
|
||||
settings-serial-serial_select = Velg en serieport
|
||||
settings-serial-auto_dropdown_item = Auto
|
||||
|
||||
@@ -685,4 +684,3 @@ tray_or_exit_modal-cancel = Avbryt
|
||||
|
||||
|
||||
## Error collection consent modal
|
||||
|
||||
@@ -113,12 +113,12 @@ skeleton_bone-NONE = Geen
|
||||
skeleton_bone-HEAD = Hoofdverschuiving
|
||||
skeleton_bone-HEAD-desc =
|
||||
Dit is de afstand tussen je headset en het midden van je hoofd.
|
||||
Om dit aan te passen, schud je je hoofd naar links en rechts alsof je 'nee' zegt,
|
||||
Om dit aan te passen, schud je je hoofd naar links en rechts alsof je 'nee' zegt,
|
||||
pas het aan totdat beweging van de andere trackers te verwaarlozen is.
|
||||
skeleton_bone-NECK = Neklengte
|
||||
skeleton_bone-NECK-desc =
|
||||
Dit is de afstand tussen het midden van je hoofd en de basis van je nek.
|
||||
Om dit aan te passen, beweeg je je hoofd op en neer alsof je knikt, of kantel je je hoofd
|
||||
Om dit aan te passen, beweeg je je hoofd op en neer alsof je knikt, of kantel je je hoofd
|
||||
naar links en rechts. Wijzig de positie totdat beweging in andere trackers verwaarloosbaar is.
|
||||
skeleton_bone-torso_group = Romp lengte
|
||||
skeleton_bone-torso_group-desc =
|
||||
@@ -128,7 +128,7 @@ skeleton_bone-torso_group-desc =
|
||||
skeleton_bone-UPPER_CHEST = Bovenborst Lengte
|
||||
skeleton_bone-UPPER_CHEST-desc =
|
||||
Dit is de afstand tussen de basis van je nek en het midden van je borst.
|
||||
Om dit aan te passen, stel je de torso-lengte correct af en pas je deze aan in verschillende houdingen
|
||||
Om dit aan te passen, stel je de torso-lengte correct af en pas je deze aan in verschillende houdingen
|
||||
(zitten, bukken, liggen, enz.) totdat je virtuele ruggengraat overeenkomt met je echte.
|
||||
skeleton_bone-CHEST_OFFSET = Borstoffset
|
||||
skeleton_bone-CHEST_OFFSET-desc =
|
||||
@@ -137,12 +137,12 @@ skeleton_bone-CHEST_OFFSET-desc =
|
||||
skeleton_bone-CHEST = Borstafstand
|
||||
skeleton_bone-CHEST-desc =
|
||||
Dit is de afstand van het midden van je borst tot het midden van je ruggengraat.
|
||||
Om dit aan te passen, stel je de torso-lengte correct af en pas je deze aan in verschillende houdingen
|
||||
Om dit aan te passen, stel je de torso-lengte correct af en pas je deze aan in verschillende houdingen
|
||||
(zitten, bukken, liggen, enz.) totdat je virtuele ruggengraat overeenkomt met je echte.
|
||||
skeleton_bone-WAIST = Taille lengte
|
||||
skeleton_bone-WAIST-desc =
|
||||
Dit is de afstand van het midden van je ruggengraat tot je navel.
|
||||
Om dit aan te passen, stel je de torso-lengte correct af en pas je deze aan in verschillende houdingen
|
||||
Om dit aan te passen, stel je de torso-lengte correct af en pas je deze aan in verschillende houdingen
|
||||
(zitten, bukken, liggen, enz.) totdat je virtuele ruggengraat overeenkomt met je echte.
|
||||
skeleton_bone-HIP = Heuplengte
|
||||
skeleton_bone-HIP-desc =
|
||||
@@ -200,7 +200,7 @@ skeleton_bone-SHOULDERS_WIDTH-desc =
|
||||
skeleton_bone-arm_group = Armlengte
|
||||
skeleton_bone-arm_group-desc =
|
||||
Dit is de afstand van je schouders tot je polsen.
|
||||
Om dit aan te passen, pas je de schouderafstand correct aan, stel je Handafstand Y in op 0,
|
||||
Om dit aan te passen, pas je de schouderafstand correct aan, stel je Handafstand Y in op 0,
|
||||
en pas je deze aan totdat je handtrackers op één lijn liggen met je polsen.
|
||||
skeleton_bone-UPPER_ARM = Bovenarmlengte
|
||||
skeleton_bone-UPPER_ARM-desc =
|
||||
@@ -215,15 +215,15 @@ skeleton_bone-LOWER_ARM-desc =
|
||||
skeleton_bone-HAND_Y = Afstand hand Y
|
||||
skeleton_bone-HAND_Y-desc =
|
||||
Dit is de verticale afstand van je polsen tot het midden van je hand.
|
||||
Om dit aan te passen voor motion capture, pas je de armlengte correct aan
|
||||
en pas je deze aan totdat je handtrackers verticaal uitgelijnd zijn met het midden van je handen.
|
||||
Wil je het aanpassen voor elleboogtracking vanaf je controllers,
|
||||
Om dit aan te passen voor motion capture, pas je de armlengte correct aan
|
||||
en pas je deze aan totdat je handtrackers verticaal uitgelijnd zijn met het midden van je handen.
|
||||
Wil je het aanpassen voor elleboogtracking vanaf je controllers,
|
||||
stel dan de armlengte in op 0 en pas je deze aan totdat je elleboogtrackers verticaal op één lijn liggen met je polsen.
|
||||
skeleton_bone-HAND_Z = Afstand hand Z
|
||||
skeleton_bone-HAND_Z-desc =
|
||||
Dit is de horizontale afstand van je polsen tot het midden van je hand.
|
||||
Als je dit wilt aanpassen voor motion capture, stel je deze in op 0.
|
||||
Wil je het aanpassen voor elleboogtracking vanaf je controllers, stel dan de armlengte in op 0
|
||||
Wil je het aanpassen voor elleboogtracking vanaf je controllers, stel dan de armlengte in op 0
|
||||
en pas je deze aan totdat je elleboogtrackers horizontaal op één lijn liggen met je polsen.
|
||||
skeleton_bone-ELBOW_OFFSET = Elleboogoffset
|
||||
skeleton_bone-ELBOW_OFFSET-desc = Dit kan worden aangepast om je virtuele elleboogtrackers omhoog of omlaag te verplaatsen, zodat wordt voorkomen dat VRChat per ongeluk een elleboogtracker aan de borst koppelt.
|
||||
@@ -550,7 +550,7 @@ settings-general-tracker_mechanics-drift_compensation-prediction-label = Voorspe
|
||||
settings-general-tracker_mechanics-drift_compensation_warning =
|
||||
<b>Waarschuwing:</b> Gebruik alleen driftcompensatie als je heel vaak
|
||||
moet resetten (elke ~5-10 minuten).
|
||||
|
||||
|
||||
IMU's die vaak worden gereset, zijn onder ander:
|
||||
Joy-Cons, owoTrack en MPU's (zonder recente firmware).
|
||||
settings-general-tracker_mechanics-drift_compensation_warning-cancel = Annuleren
|
||||
@@ -738,9 +738,9 @@ settings-general-interface-discord_presence-message =
|
||||
settings-interface-behavior-error_tracking = Foutverzameling via Sentry.io
|
||||
settings-interface-behavior-error_tracking-description_v2 =
|
||||
<h1>Geeft u toestemming voor het verzamelen van geanonimiseerde foutgegevens?</h1>
|
||||
|
||||
|
||||
<b>We verzamelen geen persoonlijke informatie</b> zoals uw IP-adres of draadloze inloggegevens. SlimeVR hecht veel waarde aan uw privacy!
|
||||
|
||||
|
||||
Om de beste gebruikerservaring te bieden, verzamelen we geanonimiseerde foutrapporten, prestatiestatistieken en informatie over het besturingssysteem. Dit helpt ons bij het detecteren van fouten en problemen met SlimeVR. Deze statistieken worden verzameld via Sentry.io.
|
||||
settings-interface-behavior-error_tracking-label = Stuur fouten naar de ontwikkelaars
|
||||
settings-interface-behavior-bvh_directory = Map om BVH-opnames op te slaan
|
||||
@@ -764,7 +764,6 @@ settings-serial-factory_reset-warning =
|
||||
Wat betekent dat Wi-Fi en kalibratie-instellingen <b>allemaal verloren gaan!</b>
|
||||
settings-serial-factory_reset-warning-ok = Ik weet wat ik doe
|
||||
settings-serial-factory_reset-warning-cancel = Annuleren
|
||||
settings-serial-get_infos = Informatie ophalen
|
||||
settings-serial-serial_select = Selecteer een seriële poort
|
||||
settings-serial-auto_dropdown_item = Automatisch
|
||||
settings-serial-get_wifi_scan = WiFi-scan uitvoeren
|
||||
@@ -877,7 +876,7 @@ settings-utils-advanced-reset-all-label = Alles resetten
|
||||
settings-utils-advanced-reset_warning =
|
||||
{ $type ->
|
||||
[gui]
|
||||
<b>Waarschuwing</b>Hiermee worden al uw GUI instellingen teruggezet naar de standaardinstellingen.
|
||||
<b>Waarschuwing</b>Hiermee worden al uw GUI instellingen teruggezet naar de standaardinstellingen.
|
||||
Weet u zeker dat u dit wilt doen?
|
||||
[server]
|
||||
<b>Waarschuwing</b>Hiermee worden al uw tracking instellingen teruggezet naar de standaardinstellingen.
|
||||
@@ -934,20 +933,20 @@ onboarding-reset_tutorial-skip = Stap overslaan
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-0 =
|
||||
Tik { $taps } keer op de gemarkeerde tracker om de yaw-reset te activeren.
|
||||
|
||||
|
||||
Hierdoor staan de trackers in dezelfde richting als je HMD.
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-1 =
|
||||
Tik { $taps } keer op de gemarkeerde tracker om een volledige reset uit te voeren.
|
||||
|
||||
|
||||
Hiervoor moet je staan (i-pose). Er is een vertraging van 3 seconden (instelbaar) voordat het daadwerkelijk gebeurt.
|
||||
Hiermee wordt de positie en rotatie van al je trackers volledig gereset. Dit zou de meeste problemen moeten oplossen.
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-2 =
|
||||
Tik { $taps } keer op de gemarkeerde tracker om de montage opnieuw in te stellen.
|
||||
|
||||
|
||||
Montage-reset helpt bij hoe de trackers daadwerkelijk op je worden geplaatst, dus als je ze per ongeluk hebt verplaatst en de oriëntatie ervan voor een groot deel hebt veranderd, zal dit helpen.
|
||||
|
||||
|
||||
Je moet in een houding staan alsof je aan het skiën bent, zoals wordt weergegeven in de Automatische montage wizard, je hebt een vertraging van 3 seconden (instelbaar) voordat deze wordt geactiveerd.
|
||||
|
||||
## Setup start
|
||||
@@ -1296,7 +1295,7 @@ onboarding-scaled_proportions-manual_height-next_step = Opslaan en doorgaan
|
||||
onboarding-scaled_proportions-manual_height-warning =
|
||||
Je gebruikt momenteel de handmatige manier om geschaalde verhoudingen in te stellen!
|
||||
<b>Deze modus wordt alleen aanbevolen als je geen HMD met SlimeVR gebruikt.</b>
|
||||
|
||||
|
||||
Om de automatische geschaalde verhoudingen te kunnen gebruiken, doe het volgende:
|
||||
onboarding-scaled_proportions-manual_height-warning-no_hmd = Sluit een VR-headset aan
|
||||
onboarding-scaled_proportions-manual_height-warning-no_controllers = Zorg ervoor dat je controllers zijn verbonden en correct aan je handen zijn toegewezen
|
||||
@@ -1526,7 +1525,7 @@ tray_or_exit_modal-title = Wat is de actie van de sluitknop?
|
||||
# Multiline text
|
||||
tray_or_exit_modal-description =
|
||||
Hiermee kun je kiezen wat er gebeurt als je op de sluitknop klikt: het programma afsluiten of minimaliseren naar het systeemvak.
|
||||
|
||||
|
||||
Deze instelling kun je later altijd nog wijzigen in de interface instellingen!
|
||||
tray_or_exit_modal-radio-exit = Afsluiten bij sluiten
|
||||
tray_or_exit_modal-radio-tray = Minimaliseren naar systeemvak
|
||||
@@ -1585,7 +1584,7 @@ vrc_config-avatar_measurement_type-ARM_SPAN = Arm Span
|
||||
error_collection_modal-title = Kunnen we fouten verzamelen?
|
||||
error_collection_modal-description_v2 =
|
||||
{ settings-interface-behavior-error_tracking-description_v2 }
|
||||
|
||||
|
||||
U kunt deze instelling later wijzigen in de sectie Gedrag van de instellingenpagina.
|
||||
error_collection_modal-confirm = Ik ben akkoord
|
||||
error_collection_modal-cancel = Ik wil het niet
|
||||
@@ -746,9 +746,9 @@ settings-general-interface-discord_presence-message =
|
||||
settings-interface-behavior-error_tracking = Zbieranie błędów za pomocą Sentry.io
|
||||
settings-interface-behavior-error_tracking-description_v2 =
|
||||
<h1>Czy wyrażasz zgodę na gromadzenie anonimowych danych o błędach?</h1>
|
||||
|
||||
|
||||
<b>Nie gromadzimy danych osobowych</b> , takich jak adres IP lub dane uwierzytelniające sieci bezprzewodowej. SlimeVR ceni Twoją prywatność!
|
||||
|
||||
|
||||
Aby zapewnić jak najlepsze wrażenia użytkownika, gromadzimy anonimowe raporty o błędach, wskaźniki wydajności i informacje o systemie operacyjnym. Pomaga nam to wykrywać błędy i problemy ze SlimeVR. Dane te są zbierane za pomocą Sentry.io.
|
||||
settings-interface-behavior-error_tracking-label = Wysyłanie błędów do deweloperów
|
||||
settings-interface-behavior-bvh_directory = Ścieżka do zapisywania nagrań BVH
|
||||
@@ -772,7 +772,6 @@ settings-serial-factory_reset-warning =
|
||||
Co oznacza, że ustawienia Wi-Fi i kalibracji <b>zostaną utracone!</b>
|
||||
settings-serial-factory_reset-warning-ok = Wiem co robię
|
||||
settings-serial-factory_reset-warning-cancel = Anuluj
|
||||
settings-serial-get_infos = Uzyskaj informacje
|
||||
settings-serial-serial_select = Wybierz port szeregowy
|
||||
settings-serial-auto_dropdown_item = Auto
|
||||
settings-serial-get_wifi_scan = Skanuj sieci WiFi
|
||||
@@ -943,20 +942,20 @@ onboarding-reset_tutorial-skip = Pomiń krok
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-0 =
|
||||
Stuknij { $taps } razy podświetlony tracker, aby uruchomić reset odchylenia.
|
||||
|
||||
|
||||
Spowoduje to, że trackery będą skierowane w tym samym kierunku, co Twój HMD.
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-1 =
|
||||
Stuknij { $taps } razy podświetlony tracker, aby wywołać pełny reset.
|
||||
|
||||
|
||||
Musisz stać, aby to zrobić (i-pozycja). Istnieje 3-sekundowe opóźnienie (konfigurowalne), zanim to nastąpi.
|
||||
Spowoduje to całkowite zresetowanie pozycji i rotacji wszystkich trackerów. Powinien rozwiązać większość problemów.
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-2 =
|
||||
Stuknij { $taps } razy podświetlony tracker, aby uruchomić reset montażu.
|
||||
|
||||
|
||||
Resetowanie montażu pomaga w tym, w jaki sposób trackery są faktycznie zakładane na ciebie, więc jeśli przypadkowo je przeniosłeś i zmieniłeś ich orientację o dużą ilość, to pomoże.
|
||||
|
||||
|
||||
Musisz być w pozie, jakbyś jechał na nartach, tak jak jest to pokazane w kreatorze automatycznego montażu, i masz 3-sekundowe opóźnienie (konfigurowalne), zanim zostanie uruchomione.
|
||||
|
||||
## Setup start
|
||||
@@ -1317,7 +1316,7 @@ onboarding-scaled_proportions-manual_height-next_step = Kontynuuj i zapisz
|
||||
onboarding-scaled_proportions-manual_height-warning =
|
||||
Obecnie korzystasz z ręcznego sposobu ustawiania proporcji w skali rozgrywki!
|
||||
<b>Ten tryb jest zalecany tylko wtedy, gdy nie używasz gogli ze SlimeVR</b>
|
||||
|
||||
|
||||
Aby móc korzystać z automatycznie skalowanych proporcji, należy:
|
||||
onboarding-scaled_proportions-manual_height-warning-no_hmd = Podłącz gogle VR
|
||||
onboarding-scaled_proportions-manual_height-warning-no_controllers = Upewnij się, że kontrolery są podłączone i prawidłowo przypisane do Twoich rąk
|
||||
@@ -1612,7 +1611,7 @@ vrc_config-avatar_measurement_type-ARM_SPAN = Rozpiętość ramion
|
||||
error_collection_modal-title = Czy możemy zbierać błędy?
|
||||
error_collection_modal-description_v2 =
|
||||
{ ustawienia-interfejsu-zachowanie-error_tracking-description_v2 }
|
||||
|
||||
|
||||
To ustawienie można zmienić później w sekcji Zachowanie na stronie ustawień.
|
||||
error_collection_modal-confirm = Zgadzam się
|
||||
error_collection_modal-cancel = Nie chcę
|
||||
@@ -269,7 +269,7 @@ tracker-settings-use_mag = Permitir o uso do magnetômetro neste tracker
|
||||
# Multiline!
|
||||
tracker-settings-use_mag-description =
|
||||
Esse tracker deve usar o magnetômetro para reduzir o drift quando o uso de magnetômetro estiver permitido? <b>Não desligue seu tracker enquanto altera esta opção!</b>
|
||||
|
||||
|
||||
Você precisa permitir o uso de magnetômetro primeiro, <magSetting>clique aqui para ir para as configurações</magSetting>.
|
||||
tracker-settings-use_mag-label = Permitir o uso do magnetômetro
|
||||
# The .<name> means it's an attribute and it's related to the top key.
|
||||
@@ -429,7 +429,7 @@ settings-general-tracker_mechanics-drift_compensation-prediction-label = Prediç
|
||||
settings-general-tracker_mechanics-drift_compensation_warning =
|
||||
<b>Aviso:</b> Use a compensação de drift somente se você precisar resetar
|
||||
com muita frequência (a cada 5 a 10 minutos).
|
||||
|
||||
|
||||
Algumas IMUs sujeitas a resets mais frequentes incluem:
|
||||
Joy-Cons, owoTrack e MPUs (sem firmware recente).
|
||||
settings-general-tracker_mechanics-drift_compensation_warning-cancel = Cancelar
|
||||
@@ -601,9 +601,9 @@ settings-general-interface-discord_presence-message =
|
||||
settings-interface-behavior-error_tracking = Coleta de erros via Sentry.io
|
||||
settings-interface-behavior-error_tracking-description_v2 =
|
||||
<h1>Você <h1>concorda com a coleta de dados de erro anônimos?</h1><b></h1> <b>Não coletamos informações pessoais</b></b>, como seu endereço IP ou credenciais de rede sem fio. A SlimeVR valoriza sua privacidade!
|
||||
|
||||
|
||||
Para oferecer a melhor experiência ao usuário, coletamos relatórios de erros anônimos, métricas de desempenho e informações do sistema operacional. Isso nos ajuda a detectar bugs e problemas com o SlimeVR. Essas métricas são coletadas pelo Sentry.io.
|
||||
|
||||
|
||||
Traduzido com a versão gratuita do tradutor - DeepL.com
|
||||
settings-interface-behavior-error_tracking-label = Enviar erros para os desenvolvedores
|
||||
|
||||
@@ -624,7 +624,6 @@ settings-serial-factory_reset-warning =
|
||||
Que significa que as opções de Wi-Fi e calibrações <b>vão ser todos perdidos!</b>
|
||||
settings-serial-factory_reset-warning-ok = Eu sei o que estou fazendo
|
||||
settings-serial-factory_reset-warning-cancel = Cancelar
|
||||
settings-serial-get_infos = Obter informações
|
||||
settings-serial-serial_select = Selecione uma porta serial
|
||||
settings-serial-auto_dropdown_item = Auto
|
||||
settings-serial-get_wifi_scan = Obter varredura WiFi
|
||||
@@ -798,20 +797,20 @@ onboarding-reset_tutorial-skip = Pular passo
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-0 =
|
||||
Toque { $taps } vezes no tracker destacado para acionar o reset de guinada.
|
||||
|
||||
|
||||
Isso fará com que os trackers fiquem na mesma direção que o seu headset (HMD).
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-1 =
|
||||
Toque { $taps } vezes no tracker destacado para acionar o reset completo.
|
||||
|
||||
|
||||
Você precisa estar em pé para isso (pose-i). Há um atraso de 3 segundos (configurável) antes que realmente aconteça.
|
||||
Isso reseta completamente a posição e rotação de todos os seus trackers. Deve corrigir a maioria dos problemas.
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-2 =
|
||||
Toque { $taps } vezes no tracker destacado para acionar o reset de posição.
|
||||
|
||||
|
||||
O reset de posição ajuda a ajustar como os trackers estão realmente colocados em você, então, se você os moveu acidentalmente e alterou significativamente a orientação, isso ajudará.
|
||||
|
||||
|
||||
Você precisa estar em uma pose como se estivesse esquiando, como é mostrado no Assistente de Posição Automática, e há um atraso de 3 segundos (configurável) antes que seja acionado.
|
||||
|
||||
## Setup start
|
||||
@@ -1330,7 +1329,7 @@ tray_or_exit_modal-title = Qual deve ser a função do botão Fechar?
|
||||
# Multiline text
|
||||
tray_or_exit_modal-description =
|
||||
Isso permite que você escolha se deseja sair do servidor ou minimizá-lo na bandeja ao pressionar o botão Fechar.
|
||||
|
||||
|
||||
Você pode alterar isso depois nas configurações da interface!
|
||||
tray_or_exit_modal-radio-exit = Sair ao Fechar
|
||||
tray_or_exit_modal-radio-tray = Minimizar para a bandeja do sistema
|
||||
|
||||
@@ -147,7 +147,7 @@ skeleton_bone-WAIST-desc =
|
||||
skeleton_bone-HIP = Длина таза
|
||||
skeleton_bone-HIP-desc =
|
||||
Это расстояние от вашего пупка до ваших бедер.
|
||||
Чтобы откалибровать его, убедитесь, что "Длина туловища" задана верно, и изменяйте значение в различных
|
||||
Чтобы откалибровать его, убедитесь, что "Длина туловища" задана верно, и изменяйте значение в различных
|
||||
позициях (сидя, наклонившись, лёжа и т.д.), пока ваш виртуальный позвоночник не совпадет с реальным.
|
||||
skeleton_bone-HIP_OFFSET = Смещение таза
|
||||
skeleton_bone-HIP_OFFSET-desc =
|
||||
@@ -161,7 +161,7 @@ skeleton_bone-HIPS_WIDTH-desc =
|
||||
skeleton_bone-leg_group = Длина ноги
|
||||
skeleton_bone-leg_group-desc =
|
||||
Это расстояние от ваших бёдер до ваших ступней.
|
||||
Чтобы откалибровать его, убедитесь, что "Длина туловища" задана верно,
|
||||
Чтобы откалибровать его, убедитесь, что "Длина туловища" задана верно,
|
||||
и изменяйте значение, пока ваши виртуальные ступни не совпадут с реальными.
|
||||
skeleton_bone-UPPER_LEG = Длина бедра
|
||||
skeleton_bone-UPPER_LEG-desc =
|
||||
@@ -182,7 +182,7 @@ skeleton_bone-FOOT_SHIFT = Смещение стопы
|
||||
skeleton_bone-FOOT_SHIFT-desc =
|
||||
Это горизонтальное расстояние от ваших колен до ваших лодыжек.
|
||||
Оно отвечает за смещение голеней назад, когда вы стоите прямо.
|
||||
Чтобы откалибровать его, установите "Длину ноги" равной 0, выполните полный сброс, и
|
||||
Чтобы откалибровать его, установите "Длину ноги" равной 0, выполните полный сброс, и
|
||||
изменяйте значение, пока ваши виртуальные ступни не сравняются с центром лодыжек.
|
||||
skeleton_bone-SKELETON_OFFSET = Смещение скелета
|
||||
skeleton_bone-SKELETON_OFFSET-desc =
|
||||
@@ -551,7 +551,7 @@ settings-general-tracker_mechanics-drift_compensation-prediction-label = Про
|
||||
settings-general-tracker_mechanics-drift_compensation_warning =
|
||||
<b>Предупреждение:</b> Используйте компенсацию дрифта только в том случае, если вам
|
||||
приходится сбрасывать настройки очень часто (каждые ~5-10 минут).
|
||||
|
||||
|
||||
IMU, склонные к частым сбросам, включают:
|
||||
Joy-Con, owoTrack, и MPU (без последней прошивки).
|
||||
settings-general-tracker_mechanics-drift_compensation_warning-cancel = Отмена
|
||||
@@ -764,7 +764,6 @@ settings-serial-factory_reset-warning =
|
||||
Это означает, что Wi-Fi и настройки калибровки <b>будут потеряны!</b>
|
||||
settings-serial-factory_reset-warning-ok = Я знаю, что я делаю
|
||||
settings-serial-factory_reset-warning-cancel = Отмена
|
||||
settings-serial-get_infos = Получить информацию
|
||||
settings-serial-serial_select = Выбрать серийный порт
|
||||
settings-serial-auto_dropdown_item = Авто
|
||||
settings-serial-get_wifi_scan = Получить сканирование Wi-Fi
|
||||
@@ -940,20 +939,20 @@ onboarding-reset_tutorial-skip = Пропустить шаг
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-0 =
|
||||
Коснитесь { $taps } раз выделенного трекера, чтобы активировать сброс рыскания.
|
||||
|
||||
|
||||
Это заставит трекеры "смотреть" в том же направлении, что и ваша гарнитура (HMD).
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-1 =
|
||||
Нажмите { $taps } раз выделенный трекер, чтобы запустить полный сброс.
|
||||
|
||||
|
||||
Вы должны стоять для этого в (i-позе). Существует задержка в 3 секунды (настраиваемая), прежде чем сброс произойдет.
|
||||
Это полностью сбрасывает положение и вращение всех ваших трекеров. Это должно исправить большинство проблем.
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-2 =
|
||||
Нажмите { $taps } несколько раз на выделенный трекер, чтобы активировать сброс настроек.
|
||||
|
||||
|
||||
Сброс крепления помогает узнать, как на самом деле на вас надеты трекеры, поэтому, если вы случайно переместили их и сильно изменили их ориентацию, это поможет.
|
||||
|
||||
|
||||
Вы должны быть в позе, как будто вы катаетесь на лыжах, как показано в мастере автоматического монтажа крепления, и у вас есть 3-секундная задержка (настраиваемая) перед тем, как она сработает.
|
||||
|
||||
## Setup start
|
||||
@@ -1312,7 +1311,7 @@ onboarding-scaled_proportions-manual_height-next_step = Продолжить и
|
||||
onboarding-scaled_proportions-manual_height-warning =
|
||||
В настоящее время вы используете ручной способ настройки масштабированных пропорций!
|
||||
<b>Этот режим рекомендуется только в том случае, если вы не используете шлем виртуальной реальности со SlimeVR</b>
|
||||
|
||||
|
||||
Чтобы получить возможность использовать автоматическое масштабирование пропорций, необходимо:
|
||||
onboarding-scaled_proportions-manual_height-warning-no_hmd = Подключить VR-гарнитуру
|
||||
onboarding-scaled_proportions-manual_height-warning-no_controllers = Убедитесь, что контроллеры подключены и правильно назначены к вашим рукам
|
||||
@@ -1538,7 +1537,7 @@ tray_or_exit_modal-title = Что должна делать кнопка зак
|
||||
# Multiline text
|
||||
tray_or_exit_modal-description =
|
||||
Это позволяет вам выбрать, хотите ли вы выйти из сервера или свернуть его в трей при нажатии кнопки закрытия.
|
||||
|
||||
|
||||
Вы можете изменить это позже в настройках интерфейса!
|
||||
tray_or_exit_modal-radio-exit = Выход при закрытии
|
||||
tray_or_exit_modal-radio-tray = Свернуть в системный трей
|
||||
@@ -1599,7 +1598,7 @@ vrc_config-avatar_measurement_type-ARM_SPAN = Размах Рук
|
||||
error_collection_modal-title = Можем ли мы собирать данные об ошибках?
|
||||
error_collection_modal-description_v2 =
|
||||
{ settings-interface-behavior-error_tracking-description_v2 }
|
||||
|
||||
|
||||
Вы можете изменить эту настройку позже на странице настроек в разделе Поведение.
|
||||
error_collection_modal-confirm = Я согласен
|
||||
error_collection_modal-cancel = Я не согласен
|
||||
@@ -103,7 +103,7 @@ skeleton_bone-HEAD-desc =
|
||||
skeleton_bone-NECK = Halsens längd
|
||||
skeleton_bone-NECK-desc =
|
||||
Detta är distansen från mittpunkten av ditt huvud till din nackes bas.
|
||||
För att justera det, skaka ditt huvud upp och ner, som om att du säger ja eller luta ditt
|
||||
För att justera det, skaka ditt huvud upp och ner, som om att du säger ja eller luta ditt
|
||||
huvud höger eller vänster och modifiera det tills någon rörelse i andra rörelsesensorer är obetydlig.
|
||||
skeleton_bone-torso_group = Halsens längd
|
||||
skeleton_bone-torso_group-desc =
|
||||
@@ -146,7 +146,7 @@ skeleton_bone-HIPS_WIDTH-desc =
|
||||
skeleton_bone-leg_group = Benlängd
|
||||
skeleton_bone-leg_group-desc =
|
||||
Detta är distansen från dina höfter till dina fötter.
|
||||
För att justera det, justera din Torso-längd ordentligt och modifiera
|
||||
För att justera det, justera din Torso-längd ordentligt och modifiera
|
||||
den tills dina virtuella fötter är på samma nivå som dina riktiga.
|
||||
skeleton_bone-UPPER_LEG = Längd på övre delen av benet
|
||||
skeleton_bone-UPPER_LEG-desc =
|
||||
@@ -166,7 +166,7 @@ skeleton_bone-FOOT_SHIFT = Fotförskjutning
|
||||
skeleton_bone-FOOT_SHIFT-desc =
|
||||
Detta värde är den horisontella distansen från dina ditt knä till din fotled.
|
||||
den tar hänsyn till att dina underben går baklänges när du står rakt upp.
|
||||
För att justera det, ställ fotens längd till 0, utför en full återställning och modifiera den tills
|
||||
För att justera det, ställ fotens längd till 0, utför en full återställning och modifiera den tills
|
||||
dina virtuella fötter matchar mitten av dina fotleder.
|
||||
skeleton_bone-SKELETON_OFFSET = Skelettets förskjutning
|
||||
skeleton_bone-SKELETON_OFFSET-desc =
|
||||
@@ -186,7 +186,7 @@ skeleton_bone-SHOULDERS_WIDTH-desc =
|
||||
skeleton_bone-arm_group = Armlängd
|
||||
skeleton_bone-arm_group-desc =
|
||||
Detta är avståndet från dina axlar till dina handleder.
|
||||
För att justera det, justera Avståndet mellan axlar ordentligt, ändra Handavstånd Y
|
||||
För att justera det, justera Avståndet mellan axlar ordentligt, ändra Handavstånd Y
|
||||
till 0 och modifiera tills dina hand-sensorer är i linje med dina handleder.
|
||||
skeleton_bone-UPPER_ARM = Längd på överarm
|
||||
skeleton_bone-UPPER_ARM-desc =
|
||||
@@ -196,7 +196,7 @@ skeleton_bone-UPPER_ARM-desc =
|
||||
skeleton_bone-LOWER_ARM = Längd på underarm
|
||||
skeleton_bone-LOWER_ARM-desc =
|
||||
Detta är avståndet från dina armbågar till dina handleder.
|
||||
För att justera det, justera Armlängd ordentligt och modifiera det
|
||||
För att justera det, justera Armlängd ordentligt och modifiera det
|
||||
tills dina armbågs-spårare matchar med dina riktiga armbågar.
|
||||
skeleton_bone-HAND_Y = Handavstånd Y
|
||||
skeleton_bone-HAND_Y-desc =
|
||||
@@ -376,7 +376,7 @@ tracker-settings-use_mag = Aktivera magnetometer på denna sensorn.
|
||||
# Multiline!
|
||||
tracker-settings-use_mag-description =
|
||||
Ska denna sensorn använda magnetometern för att minska drift när magnetometer-användning är tillåten? <b> Var vänlig och stäng inte av sensorn när du växlar av och på denna inställningen! <b>
|
||||
|
||||
|
||||
Du behöver tillåta magnetometer-användning först <magSetting> klicka här för att gå till inställningen </magSetting>.
|
||||
tracker-settings-use_mag-label = Tillåt magnetometer
|
||||
# The .<name> means it's an attribute and it's related to the top key.
|
||||
@@ -687,9 +687,9 @@ settings-general-interface-discord_presence-label = Dela aktivitet på Discord
|
||||
settings-interface-behavior-error_tracking = Error samling via Sentry.io
|
||||
settings-interface-behavior-error_tracking-description_v2 =
|
||||
<h1>Tillåter du samlingen av anonym error-data?</h1>
|
||||
|
||||
|
||||
<b>Vi samlar inte personlig information</b> så som din IP adress eller trådlösa referenser. Slimevr värdesätter din integritet!
|
||||
|
||||
|
||||
För att tillhandhålla den bästa användarupplevelsen, så samlar vi anonyma error-raporter, prestandamått och operativsystems-info. Detta hjälper oss upptäcka buggar och problem med Slimevr. Dessa rapporterna samlas via Sentry.io.
|
||||
settings-interface-behavior-error_tracking-label = Skicka errors till utväcklare
|
||||
|
||||
@@ -708,7 +708,6 @@ settings-serial-factory_reset-warning =
|
||||
Det innebär att Wi-Fi- och kalibreringsinställningar <b>kommer att gå förlorade!</b>
|
||||
settings-serial-factory_reset-warning-ok = Jag vet vad jag gör
|
||||
settings-serial-factory_reset-warning-cancel = Avbryt
|
||||
settings-serial-get_infos = Få information
|
||||
settings-serial-serial_select = Välj en serieport
|
||||
settings-serial-auto_dropdown_item = Automatiskt
|
||||
settings-serial-get_wifi_scan = Hämta WiFi-skanning
|
||||
@@ -740,7 +739,7 @@ settings-osc-vrchat-oscqueryEnabled = Aktivera OSCQuery
|
||||
settings-osc-vrchat-oscqueryEnabled-description =
|
||||
OSCQuery känner automatiskt av körande instanser av VRChat och skickar data till OSCQuery.
|
||||
De kan även annonsera sig själva till VRChat för att få HMD och kontrollerdata.
|
||||
För att tillåta samling av HMD och kontrollerdata från VRChat, gå till din huvudmenys inställningar
|
||||
För att tillåta samling av HMD och kontrollerdata från VRChat, gå till din huvudmenys inställningar
|
||||
under "Tracking & IK" och tillåt "Allow Sending Head and Wrist VR Tracking OSC Data"
|
||||
settings-osc-vrchat-oscqueryEnabled-label = Aktivera OSCQuery
|
||||
settings-osc-vrchat-network = Nätverksportar
|
||||
@@ -862,7 +861,7 @@ onboarding-reset_tutorial-skip = Hoppa över steg
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-0 =
|
||||
Tryck { $taps } gånger på den markerade trackern för att utlösa yaw reset.
|
||||
|
||||
|
||||
Detta gör att spårarna vänds i samma riktning som ditt headset (HMD).
|
||||
|
||||
## Setup start
|
||||
@@ -1062,7 +1061,7 @@ onboarding-choose_mounting-manual_modal-title =
|
||||
Är du säker på att du vill göra
|
||||
den automatiska monterings-kalibreringen?
|
||||
onboarding-choose_mounting-manual_modal-description =
|
||||
<b>Den manuella monterings-kalibreringen är rekommenderad för nya användare</b>, eftersom den automatiska monterings-kalibreringen kan vara svår att få rätt första gången
|
||||
<b>Den manuella monterings-kalibreringen är rekommenderad för nya användare</b>, eftersom den automatiska monterings-kalibreringen kan vara svår att få rätt första gången
|
||||
och kan behöva lite träning för att få rätt.
|
||||
onboarding-choose_mounting-manual_modal-confirm = Jag är säker på vad jag gör
|
||||
onboarding-choose_mounting-manual_modal-cancel = Avbryt
|
||||
@@ -1254,7 +1253,7 @@ vrc_config-avatar_measurement_type-ARM_SPAN = Armspann
|
||||
error_collection_modal-title = Kan vi samla errors?
|
||||
error_collection_modal-description_v2 =
|
||||
{ settings-interface-behavior-error_tracking-description_v2 }
|
||||
|
||||
|
||||
Du kan ändra denna inställningen senare i beteende-sektionen av inställnings-sidan
|
||||
error_collection_modal-confirm = Jag tillåter.
|
||||
error_collection_modal-cancel = Jag vill inte
|
||||
@@ -113,7 +113,7 @@ skeleton_bone-NONE = ไม่มี
|
||||
skeleton_bone-HEAD = การเลื่อนศีรษะ
|
||||
skeleton_bone-HEAD-desc =
|
||||
นี่เป็นระยะห่างจากแว่น VR ของคุณถึงบริเวณกลางศีรษะ
|
||||
ปรับด้วยการส่ายหัวจากซ้ายไปขวาเหมือนคุณกำลังส่ายหน้าปฎิเสธ
|
||||
ปรับด้วยการส่ายหัวจากซ้ายไปขวาเหมือนคุณกำลังส่ายหน้าปฎิเสธ
|
||||
และปรับค่าจนกว่าการเคลื่อนไหวในแทร็กเกอร์อื่นๆ จะน้อยจนไม่สังเกตเห็น
|
||||
skeleton_bone-NECK = ความยาวขอ
|
||||
skeleton_bone-NECK-desc =
|
||||
@@ -150,7 +150,7 @@ skeleton_bone-HIP-desc =
|
||||
(นั่งลง ก้มตัว นอนราบ เป็นต้น) จนกว่ากระดูกหลังเสมือนจะตรงกับกระดูกสันหลังจริงของคุณ
|
||||
skeleton_bone-HIP_OFFSET = การชดเชยตำแหน่งสะโพก
|
||||
skeleton_bone-HIP_OFFSET-desc =
|
||||
ปรับค่านี้เพื่อขยับแทร็กเกอร์เสมือนของสะโพกขึ้นหรือลง
|
||||
ปรับค่านี้เพื่อขยับแทร็กเกอร์เสมือนของสะโพกขึ้นหรือลง
|
||||
เพื่อช่วยในการปรับเทียบสำหรับบางเกมหรือแอพพลิเคชั่นที่กำหนดตำแหน่งแทร็กเกอร์ให้อยู่ที่สะโพก
|
||||
skeleton_bone-HIPS_WIDTH = ความกว้างสะโพก
|
||||
skeleton_bone-HIPS_WIDTH-desc =
|
||||
@@ -501,7 +501,7 @@ settings-general-steamvr-subtitle = แทร็กเกอร์ SteamVR
|
||||
# The first spaces (not tabs) for indentation will be ignored, just to make the file look nice when writing.
|
||||
# This one is one of this cases that cares about multilines
|
||||
settings-general-steamvr-description =
|
||||
เปิดหรือปิดใช้งานแทร็คเกอร์บางตัวของ SteamVR
|
||||
เปิดหรือปิดใช้งานแทร็คเกอร์บางตัวของ SteamVR
|
||||
มีประโยชน์กับเกมหรือแอพที่รองรับเฉพาะแทร็กเกอร์บางตำแหน่ง
|
||||
settings-general-steamvr-trackers-waist = เอว
|
||||
settings-general-steamvr-trackers-chest = หน้าอก
|
||||
@@ -555,7 +555,7 @@ settings-general-tracker_mechanics-drift_compensation-prediction-label = คา
|
||||
settings-general-tracker_mechanics-drift_compensation_warning =
|
||||
<b>คำเตือน:</b> ควรใช้งานการชดเชยค่าดริฟท์ก็ต่อเมื่อคุณต้องรีเซ็ต
|
||||
บ่อยมากๆ (ทุก ~ 5-10 นาที)
|
||||
|
||||
|
||||
IMU บางตัวมีแนวโน้มที่จะรีเซ็ตบ่อยครั้ง ได้แก่:
|
||||
Joy-Cons, owoTrack และ MPU (ที่ไม่ได้ใช้ Firmware ล่าสุด)
|
||||
settings-general-tracker_mechanics-drift_compensation_warning-cancel = ยกเลิก
|
||||
@@ -736,9 +736,9 @@ settings-general-interface-discord_presence-message =
|
||||
settings-interface-behavior-error_tracking = เก็บข้อผิดพลาดผ่าน Sentry.io
|
||||
settings-interface-behavior-error_tracking-description_v2 =
|
||||
<h1>คุณยินยอมให้มีการเก็บข้อมูลข้อผิดพลาดแบบไม่ระบุตัวตนหรือไม่?</h1>
|
||||
|
||||
|
||||
<b>เราจะไม่เก็บข้อมูลส่วนบุคคล</b> เช่นที่อยู่ IP หรือข้อมูลการเชื่อม Wi-Fi เพราะ SlimeVR นั้นให้ความสำคัญกับความเป็นส่วนตัวของคุณ!
|
||||
|
||||
|
||||
เพื่อมอบประสบการณ์การใช้งานที่ดีที่สุด เรานั้นเก็บรายงานข้อผิดพลาดแบบไม่ระบุตัวตน เมตริกประสิทธิภาพ และข้อมูลระบบปฏิบัติการเพื่อให้เราตรวจพบข้อบกพร่องและปัญหาใน SlimeVR โดยข้อมูลเหล่านี้ถูกเก็บผ่าน Sentry.io
|
||||
settings-interface-behavior-error_tracking-label = อนุญาติการส่งข้อมูลให้นักพัฒนา
|
||||
settings-interface-behavior-bvh_directory = ตำแหน่งที่คุณจะบันทึกค่า BVH
|
||||
@@ -762,7 +762,6 @@ settings-serial-factory_reset-warning =
|
||||
หมายความว่าการตั้งค่า Wi-Fi และการปรับเทียบของแทร็กเกอร์ <b>จะหายไปทั้งหมด!</b>
|
||||
settings-serial-factory_reset-warning-ok = ฉันเข้าใจในสิ่งที่จะทำ
|
||||
settings-serial-factory_reset-warning-cancel = ยกเลิก
|
||||
settings-serial-get_infos = ขอข้อมูลอุปกรณ์
|
||||
settings-serial-serial_select = เลือก Serial port
|
||||
settings-serial-auto_dropdown_item = เลือกอัตโนมัติ
|
||||
settings-serial-get_wifi_scan = สแกนเครื่อข่าย WiFi
|
||||
@@ -925,7 +924,7 @@ onboarding-wifi_creds-password =
|
||||
onboarding-reset_tutorial-back = กลับไปยังการปรับเทียบตำแหน่งแทร็กเกอร์
|
||||
onboarding-reset_tutorial = แนะนำการรีเซ็ต
|
||||
onboarding-reset_tutorial-explanation =
|
||||
ขณะที่คุณใช้แทรคเกอร์ อาจเกิดการคลาดเคลื่อนเนื่องจากการดริฟท์ของ IMU หรือแทร็กเกอร์ของคุณนขยับออกจากตำแหน่ง
|
||||
ขณะที่คุณใช้แทรคเกอร์ อาจเกิดการคลาดเคลื่อนเนื่องจากการดริฟท์ของ IMU หรือแทร็กเกอร์ของคุณนขยับออกจากตำแหน่ง
|
||||
คุณสามารถแก้ไขปัญหานี้ได้ดังนี้
|
||||
onboarding-reset_tutorial-skip = ข้ามขั้นตอนนี้
|
||||
# Cares about multiline
|
||||
@@ -940,9 +939,9 @@ onboarding-reset_tutorial-1 =
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-2 =
|
||||
แตะไปยังแทร็กเกอร์ที่ถูกเน้น { $taps } ครั้ง เพื่อทำการรีเซ็ตตำแหน่งแทร็กเกอร์
|
||||
|
||||
|
||||
รีเซ็ตตำแหน่งนั้นช่วยปรับตำแหน่งที่แทรคเกอร์ถูกวางบนตัวคุณจริงๆ ดังนั้นหากคุณเผลอเคลื่อนย้ายแทร็กเกอร์และเปลี่ยนทิศทางของมันไปมาก สิ่งนี้จะช่วยแก้ไขได้
|
||||
|
||||
|
||||
คุณต้องอยู่ในท่าเหมือนกำลังเล่นสกีตามที่แสดงในตัวช่วยการติดตั้งอัตโนมัติ โดยจะนับถอยหลังใน 3 วิาที (สามารถกำหนดได้) ก่อนจะทำการรีเซ็ต
|
||||
|
||||
## Setup start
|
||||
@@ -1283,7 +1282,7 @@ onboarding-scaled_proportions-manual_height-next_step = ดําเนินก
|
||||
onboarding-scaled_proportions-manual_height-warning =
|
||||
คุณกําลังใช้การตั้งค่าสัดส่วนแบบปรับขนาดด้วยตนเอง!
|
||||
<b>แนะนําให้ใช้โหมดนี้เฉพาะเมื่อคุณไม่ได้ใช้ HMD(แว่นVR) กับ SlimeVR</b>
|
||||
|
||||
|
||||
หากคุณต้องการใช้ตั้งค่าสัดส่วนแบบปรับขนาดอัตโนมัติรบกวน:
|
||||
onboarding-scaled_proportions-manual_height-warning-no_hmd = เชื่อมต่อแว่น VR
|
||||
onboarding-scaled_proportions-manual_height-warning-no_controllers = ตรวจสอบว่าคอนโทลเลอร์ของคุณนั้นเชื่อมต่ออยู่ และถูกกำหนดที่ตำแหน่งมือของคุณ
|
||||
|
||||
@@ -503,7 +503,6 @@ settings-serial-factory_reset-warning =
|
||||
Це означає, що Wi-Fi та налаштування калібрування <b>будуть втрачені!</b>
|
||||
settings-serial-factory_reset-warning-ok = Я знаю, що роблю
|
||||
settings-serial-factory_reset-warning-cancel = Скасувати
|
||||
settings-serial-get_infos = Отримати інформацію
|
||||
settings-serial-serial_select = Вибір послідовного порту
|
||||
settings-serial-auto_dropdown_item = Автоматично
|
||||
settings-serial-get_wifi_scan = Сканувати мережу Wi-Fi
|
||||
@@ -632,20 +631,20 @@ onboarding-reset_tutorial-skip = Пропустити крок
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-0 =
|
||||
Торкніться { $taps } виділеного трекера, щоб запустити скидання нахилу.
|
||||
|
||||
|
||||
Це змусить трекери дивитися в тому ж напрямку, що і ваш шолом.
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-1 =
|
||||
Торкніться { $taps } разів виділеного трекера, щоб ініціювати повне скидання.
|
||||
|
||||
|
||||
Для цього потрібно стояти (i-поза). Існує затримка 3 секунди (можна налаштувати), перш ніж воно спрацює.
|
||||
Це повністю скидає розташування всіх ваших трекерів, та має вирішити більшість проблем.
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-2 =
|
||||
Торкніться { $taps } разів виділеного трекеру, щоб активувати скидання положення.
|
||||
|
||||
|
||||
Скидання положення допомагає в тому, як трекери насправді надягнені на вас, тому, якщо ви випадково перемістили їх та змінили місце розташування, це допоможе.
|
||||
|
||||
|
||||
Вам потрібно бути в позі, ніби ви катаєтеся на лижах, як показано на майстрі автоматичної прив'язки положення. У вас є затримка у 3 секунди (можна налаштувати), перш ніж спрацює скидання.
|
||||
|
||||
## Setup start
|
||||
@@ -860,4 +859,3 @@ unknown_device-modal-confirm = Звісно!
|
||||
unknown_device-modal-forget = Ігнорувати
|
||||
|
||||
## Error collection consent modal
|
||||
|
||||
@@ -527,7 +527,6 @@ settings-serial-factory_reset-warning =
|
||||
Đặt lại bao gồm tất cả các cài đặt Wi-Fi và hiệu chuẩn (Calibrate) <b>sẽ bị mất!</b>
|
||||
settings-serial-factory_reset-warning-ok = Tôi biết mình đang làm gì
|
||||
settings-serial-factory_reset-warning-cancel = Hủy
|
||||
settings-serial-get_infos = Lấy thông tin
|
||||
settings-serial-serial_select = Chọn cổng Serial
|
||||
settings-serial-auto_dropdown_item = Tự động
|
||||
settings-serial-get_wifi_scan = Quét WiFi
|
||||
@@ -669,20 +668,20 @@ onboarding-reset_tutorial-skip = Bỏ qua bước
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-0 =
|
||||
Nhấn { $taps } lần thiết bị được đánh dấu để kích hoạt đặt lại chiều quay.
|
||||
|
||||
|
||||
Điều này sẽ làm cho các trình theo dõi quay mặt về cùng hướng với kính thực thế ảo (HMD) của bạn.
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-1 =
|
||||
Nhấn vào { $taps } lần thiết bị được đánh dấu để kích hoạt đặt lại toàn bộ.
|
||||
|
||||
|
||||
Bạn cần phải đứng thẳng tay để làm việc này (i-pose). Có độ trễ 3 giây (có thể định cấu hình) trước khi nó thực sự xảy ra.
|
||||
Điều này đặt lại hoàn toàn vị trí và xoay của tất cả các trình theo dõi của bạn. Nó sẽ khắc phục hầu hết các vấn đề.
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-2 =
|
||||
Nhấn vào { $taps } lần thiết bị được đánh dấu để kích hoạt đặt lại lắp.
|
||||
|
||||
|
||||
Thiết lập lại gắn kết giúp ích cho cách các trình theo dõi thực sự được đặt vào bạn, vì vậy nếu bạn vô tình di chuyển chúng và thay đổi cách chúng được định hướng với số lượng lớn, điều này sẽ hữu ích.
|
||||
|
||||
|
||||
Bạn cần phải ở trên một tư thế như bạn đang trượt tuyết như nó được hiển thị trên trình hướng dẫn gắn tự động và bạn có độ trễ 3 giây (có thể định cấu hình) trước khi nó được kích hoạt.
|
||||
|
||||
## Setup start
|
||||
@@ -870,7 +869,7 @@ onboarding-choose_mounting-manual_mounting-label-v2 = Có thể không đủ ch
|
||||
onboarding-choose_mounting-manual_mounting-description = Điều này sẽ cho phép bạn chọn hướng lắp theo cách thủ công cho từng thiết bị
|
||||
# Multiline text
|
||||
onboarding-choose_mounting-manual_modal-title =
|
||||
Bạn có chắc chắn muốn
|
||||
Bạn có chắc chắn muốn
|
||||
đo hướng quay tự động?
|
||||
onboarding-choose_mounting-manual_modal-description = <b>Hiệu chuẩn lắp thủ công được khuyến nghị cho người dùng mới</b>, vì các tư thế của hiệu chuẩn lắp tự động có thể khó thực hiện ngay trước và có thể cần một số thực hành.
|
||||
onboarding-choose_mounting-manual_modal-confirm = Tôi chắc chắn về những gì tôi đang làm
|
||||
@@ -1024,7 +1023,7 @@ tray_or_exit_modal-title = Nút đóng nên làm gì?
|
||||
# Multiline text
|
||||
tray_or_exit_modal-description =
|
||||
Điều này cho phép bạn chọn xem bạn muốn thoát khỏi chương trình hoặc thu nhỏ nó vào khay khi nhấn nút đóng.
|
||||
|
||||
|
||||
Bạn có thể thay đổi điều này sau trong cài đặt giao diện.
|
||||
tray_or_exit_modal-radio-exit = Thoát khi đóng
|
||||
tray_or_exit_modal-radio-tray = Thu nhỏ vào khay hệ thống
|
||||
@@ -1041,4 +1040,3 @@ unknown_device-modal-confirm = Chắc!
|
||||
unknown_device-modal-forget = Bỏ qua
|
||||
|
||||
## Error collection consent modal
|
||||
|
||||
@@ -383,7 +383,7 @@ tracker-settings-use_mag = 允许使用这个追踪器的磁力计
|
||||
# Multiline!
|
||||
tracker-settings-use_mag-description =
|
||||
如果「在追踪器上启用磁力计」已启用,是否要在这个追踪器上启用它来减轻飘移?<b>切换本选项时请勿关闭追踪器的电源!</b>
|
||||
|
||||
|
||||
请先启用「在追踪器上启用磁力计」功能,<magSetting>点选此处以移动至该设定</magSetting>。
|
||||
tracker-settings-use_mag-label = 允许使用这个追踪器的磁力计
|
||||
# The .<name> means it's an attribute and it's related to the top key.
|
||||
@@ -543,9 +543,9 @@ settings-general-tracker_mechanics-drift_compensation-prediction-description =
|
||||
适用于追踪器在偏航轴上持续旋转的场景。
|
||||
settings-general-tracker_mechanics-drift_compensation-prediction-label = 预测式漂移补偿
|
||||
settings-general-tracker_mechanics-drift_compensation_warning =
|
||||
<b>警告:</b> 仅在需要经常重置偏航角
|
||||
<b>警告:</b> 仅在需要经常重置偏航角
|
||||
(大概5~10分钟左右需要重置一次) 时使用漂移补偿。
|
||||
|
||||
|
||||
一些可能需要此补偿的 IMU 包括:
|
||||
Joy-Cons、owoTrack 和 MPU(使用旧DMP固件)。
|
||||
settings-general-tracker_mechanics-drift_compensation_warning-cancel = 取消
|
||||
@@ -727,9 +727,9 @@ settings-general-interface-discord_presence-message =
|
||||
settings-interface-behavior-error_tracking = 通过 Sentry.io 收集错误信息
|
||||
settings-interface-behavior-error_tracking-description_v2 =
|
||||
<h1>您是否同意收集匿名的错误信息?</h1>
|
||||
|
||||
|
||||
<b>我们不会收集您的个人信息</b> ,例如您的 IP 地址或 WiFi 信息。SlimeVR 重视您的隐私!
|
||||
|
||||
|
||||
为了提供最佳用户体验,我们会收集匿名错误报告、性能指标和操作系统信息。这有助于我们检测 SlimeVR 的错误和问题。这些指标将通过 Sentry.io 收集。
|
||||
settings-interface-behavior-error_tracking-label = 向开发人员发送错误信息
|
||||
settings-interface-behavior-bvh_directory = BVH记录保存目录
|
||||
@@ -753,7 +753,6 @@ settings-serial-factory_reset-warning =
|
||||
这意味着 Wi-Fi 凭据和校准数据 <b>都将丢失!</b>
|
||||
settings-serial-factory_reset-warning-ok = 我已知晓
|
||||
settings-serial-factory_reset-warning-cancel = 取消
|
||||
settings-serial-get_infos = 获取信息
|
||||
settings-serial-serial_select = 选择串行端口
|
||||
settings-serial-auto_dropdown_item = 自动
|
||||
settings-serial-get_wifi_scan = 扫描可用WiFi
|
||||
@@ -927,20 +926,20 @@ onboarding-reset_tutorial-skip = 跳过步骤
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-0 =
|
||||
敲击 { $taps } 次高亮显示的追踪器以触发航向轴重置。
|
||||
|
||||
|
||||
这将使追踪器朝向与您的头显相同的方向。
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-1 =
|
||||
敲击 { $taps } 次高亮显示的追踪器以触发完整重置。
|
||||
|
||||
|
||||
此功能需要你站直(i-pose)后使用。 在重置实际发生前有 3 秒延迟(可配置)。
|
||||
这将完全重置所有追踪器的位置和旋转,应该能解决大多数问题。
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-2 =
|
||||
敲击 { $taps } 次高亮显示的追踪器以触发佩戴重置。
|
||||
|
||||
|
||||
佩戴重置能对追踪器实际的配戴方式进行调整,所以如果你不小心移动了追踪器并将它们的佩戴方向改变了很多,这个功能将有所帮助。
|
||||
|
||||
|
||||
你需要摆出一个像滑雪那样的姿势,就像在运行自动设置佩戴向导时做的那样,在重置实际发生前有 3 秒延迟(可配置)。
|
||||
|
||||
## Setup start
|
||||
@@ -1279,7 +1278,7 @@ onboarding-scaled_proportions-manual_height-next_step = 保存并继续
|
||||
onboarding-scaled_proportions-manual_height-warning =
|
||||
您当前正在手动设置缩放身体比例!
|
||||
<b>建议只在您不使用头戴显示器时使用此模式</b>
|
||||
|
||||
|
||||
为了能够使用自动缩放身体比例,请:
|
||||
onboarding-scaled_proportions-manual_height-warning-no_hmd = 连接 VR 头戴显示器
|
||||
onboarding-scaled_proportions-manual_height-warning-no_controllers = 确保您的控制器已连接并正确分配到手部
|
||||
@@ -1393,7 +1392,7 @@ firmware_tool-board_pins_step-battery_shield_resistor-1 =
|
||||
.placeholder = 请输入开发板载对输入分压电阻 R2 的值。
|
||||
firmware_tool-add_imus_step = 添加您的 IMU
|
||||
firmware_tool-add_imus_step-description =
|
||||
请添加您的追踪器所配备的 IMU 传感器。
|
||||
请添加您的追踪器所配备的 IMU 传感器。
|
||||
如果您遵循了 SlimeVR 文档,默认值应该是正确的。
|
||||
firmware_tool-add_imus_step-imu_type-label = IMU 类型
|
||||
firmware_tool-add_imus_step-imu_type-placeholder = 选择 IMU 类型
|
||||
@@ -1433,9 +1432,9 @@ firmware_tool-flashbtn_step-board_SLIMEVR-r11 = 在短接电路板正面边缘
|
||||
firmware_tool-flashbtn_step-board_SLIMEVR-r12 = 在短接电路板正面圆形 FLASH 焊盘和单片机模块的金属屏蔽罩的时候,打开追踪器电源。
|
||||
firmware_tool-flashbtn_step-board_SLIMEVR-r14 = 在按住电路板正面的 FLASH 按钮的时候,打开追踪器的电源。
|
||||
firmware_tool-flashbtn_step-board_OTHER =
|
||||
在烧录固件之前,您可能需要将追踪器置于bootloader模式。
|
||||
通常这意味着在开始固件烧录过程之前,按下板上的引导/boot按钮。
|
||||
如果固件烧录过程在开始时超时,这通常表示追踪器没有处于bootloader模式。
|
||||
在烧录固件之前,您可能需要将追踪器置于bootloader模式。
|
||||
通常这意味着在开始固件烧录过程之前,按下板上的引导/boot按钮。
|
||||
如果固件烧录过程在开始时超时,这通常表示追踪器没有处于bootloader模式。
|
||||
请参考您的追踪器电路板的固件烧录说明,了解如何进入bootloader模式。
|
||||
firmware_tool-flash_method_ota-devices = 检测到的 OTA 设备:
|
||||
firmware_tool-flash_method_ota-no_devices = 没有可以使用 OTA 更新的电路板,请确保选择了正确的电路板类型
|
||||
@@ -1565,7 +1564,7 @@ vrc_config-avatar_measurement_type-ARM_SPAN = 臂展
|
||||
error_collection_modal-title = 我们可以收集错误信息吗?
|
||||
error_collection_modal-description_v2 =
|
||||
{ settings-interface-behavior-error_tracking-description_v2 }
|
||||
|
||||
|
||||
您可以稍后在设置页面的行为部分中更改此设置。
|
||||
error_collection_modal-confirm = 我同意
|
||||
error_collection_modal-cancel = 还是算了
|
||||
@@ -389,7 +389,7 @@ tracker-settings-use_mag = 允許使用這個追蹤器的磁力計
|
||||
# Multiline!
|
||||
tracker-settings-use_mag-description =
|
||||
如果「在追蹤器上啟用磁力計」功能已開啟,是否要在這個追蹤器上啟用它來減緩偏移?<b>切換本選項時請勿關閉追蹤器的電源!</b>
|
||||
|
||||
|
||||
請先開啟「在追蹤器上啟用磁力計」功能,<magSetting>點選此處以移動至該設定</magSetting>。
|
||||
tracker-settings-use_mag-label = 允許使用這個追蹤器的磁力計
|
||||
# The .<name> means it's an attribute and it's related to the top key.
|
||||
@@ -551,7 +551,7 @@ settings-general-tracker_mechanics-drift_compensation-prediction-label = 偏移
|
||||
settings-general-tracker_mechanics-drift_compensation_warning =
|
||||
<b>警告:</b> 只有在需要頻繁重置(約 5~10 分鐘重置一次)
|
||||
的時候才開啟此選項。
|
||||
|
||||
|
||||
容易頻繁重置的 IMU 包括:
|
||||
Joy-Con、owoTrack、MPU(非近期韌體)。
|
||||
settings-general-tracker_mechanics-drift_compensation_warning-cancel = 取消
|
||||
@@ -733,9 +733,9 @@ settings-general-interface-discord_presence-message =
|
||||
settings-interface-behavior-error_tracking = 透過 Sentry.io 收集錯誤資訊
|
||||
settings-interface-behavior-error_tracking-description_v2 =
|
||||
<h1>你是否同意我們蒐集匿名化的錯誤資料?</h1>
|
||||
|
||||
|
||||
<b>我們不會收集個人資訊</b> ,例如你的 IP 位址或無線網路認證資訊。SlimeVR 重視你的隱私!
|
||||
|
||||
|
||||
為了提供最佳的使用者體驗,我們會蒐集匿名化的錯誤報告、性能指標和作業系統資訊,這會對我們檢測 SlimeVR 的錯誤和問題有所幫助。我們會透過 Sentry.io 來蒐集這些指標。
|
||||
settings-interface-behavior-error_tracking-label = 向開發者傳送錯誤資訊
|
||||
settings-interface-behavior-bvh_directory = BVH 紀錄儲存目錄
|
||||
@@ -757,7 +757,6 @@ settings-serial-factory_reset-warning =
|
||||
亦即其 Wi-Fi 與追蹤器校正的設定<b>將會全部刪除</b>。
|
||||
settings-serial-factory_reset-warning-ok = 我確實要執行出廠設定
|
||||
settings-serial-factory_reset-warning-cancel = 取消
|
||||
settings-serial-get_infos = 取得資訊
|
||||
settings-serial-serial_select = 選擇串列埠
|
||||
settings-serial-auto_dropdown_item = 自動
|
||||
settings-serial-get_wifi_scan = 取得 Wi-Fi 掃描
|
||||
@@ -929,20 +928,20 @@ onboarding-reset_tutorial-skip = 跳過本步驟
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-0 =
|
||||
對所標記之追蹤器敲擊 { $taps } 次即可觸發左右偏擺重置。
|
||||
|
||||
|
||||
追蹤器將會調整與頭戴顯示器所面對的方向一致。
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-1 =
|
||||
對所標記之追蹤器敲擊 { $taps } 次即可觸發完整重置。
|
||||
|
||||
|
||||
做此校正時必須站直,觸發 3 秒後(可修改)才會真正進行重置。
|
||||
追蹤器的定位與旋轉將會被完全重置,應該可以解決大多數的問題。
|
||||
# Cares about multiline
|
||||
onboarding-reset_tutorial-2 =
|
||||
對所標記之追蹤器敲擊 { $taps } 次即可觸發配戴重置。
|
||||
|
||||
|
||||
配戴重置能對追蹤器實際的配戴方式進行調整,因此若你不小心移動到追蹤器,或是大幅度的變更配戴方向,這個功能會有所幫助。
|
||||
|
||||
|
||||
做此校正時需要進行滑雪姿勢,如自動配戴校正的畫面所示。在觸發 3 秒後(可修改)才會真正進行重置。
|
||||
|
||||
## Setup start
|
||||
@@ -1281,7 +1280,7 @@ onboarding-scaled_proportions-manual_height-next_step = 繼續並儲存
|
||||
onboarding-scaled_proportions-manual_height-warning =
|
||||
你現在正在手動設定縮放型軀幹比例,<b>這個方法僅在你使用 SlimeVR
|
||||
不使用頭戴顯示器時推薦使用。</b>
|
||||
|
||||
|
||||
若要能自動設定縮放型軀幹比例,請按照以下步驟:
|
||||
onboarding-scaled_proportions-manual_height-warning-no_hmd = 連接 VR 頭戴顯示器
|
||||
onboarding-scaled_proportions-manual_height-warning-no_controllers = 檢查 VR 控制器是否正常連接,並在 SlimeVR 介面中分配到你的雙手
|
||||
@@ -1507,7 +1506,7 @@ tray_or_exit_modal-title = 關閉視窗的動作是什麼?
|
||||
# Multiline text
|
||||
tray_or_exit_modal-description =
|
||||
你可以選擇在關閉視窗時,一併退出伺服器程式,或是將視窗最小化到系統列圖示中。
|
||||
|
||||
|
||||
本設定之後也可以在使用者介面設定中更改。
|
||||
tray_or_exit_modal-radio-exit = 退出 SlimeVR
|
||||
tray_or_exit_modal-radio-tray = 最小化到系統列
|
||||
@@ -1568,7 +1567,7 @@ vrc_config-avatar_measurement_type-ARM_SPAN = 臂展
|
||||
error_collection_modal-title = 我們可以蒐集錯誤資訊嗎?
|
||||
error_collection_modal-description_v2 =
|
||||
{ settings-interface-behavior-error_tracking-description_v2 }
|
||||
|
||||
|
||||
若之後要變更此設定,可以在「詳細設定」頁面中的「行為」來變更。
|
||||
error_collection_modal-confirm = 我同意
|
||||
error_collection_modal-cancel = 我不想要
|
||||
@@ -28,14 +28,15 @@ shadow-rs = "0.35"
|
||||
[dependencies]
|
||||
serde_json = "1"
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
tauri = { version = "2.0", features = ["devtools", "tray-icon", "image-png", "rustls-tls"] }
|
||||
tauri-runtime = "2.0"
|
||||
tauri-plugin-dialog = "2.0"
|
||||
tauri-plugin-fs = "2.4.1"
|
||||
tauri-plugin-os = "2.0"
|
||||
tauri-plugin-shell = "2.0"
|
||||
tauri-plugin-store = "2.0"
|
||||
flexi_logger = "0.29"
|
||||
tauri = { version = "2", features = ["devtools", "tray-icon", "image-png", "rustls-tls"] }
|
||||
tauri-runtime = "2"
|
||||
tauri-plugin-dialog = "2"
|
||||
tauri-plugin-fs = "2"
|
||||
tauri-plugin-http = "2"
|
||||
tauri-plugin-opener = "2"
|
||||
tauri-plugin-os = "2"
|
||||
tauri-plugin-shell = "2"
|
||||
tauri-plugin-store = "2"
|
||||
log-panics = { version = "2", features = ["with-backtrace"] }
|
||||
log = "0.4"
|
||||
clap = { version = "4.0.29", features = ["derive"] }
|
||||
@@ -54,7 +55,7 @@ dirs-next = "2.0.0"
|
||||
discord-sdk = "0.3.6"
|
||||
tokio = { version = "1.37.0", features = ["time"] }
|
||||
itertools = "0.13.0"
|
||||
tauri-plugin-http = "2.5.0"
|
||||
tauri-plugin-log = "2"
|
||||
|
||||
[target.'cfg(windows)'.dependencies]
|
||||
win32job = "1"
|
||||
|
||||
@@ -2,7 +2,9 @@
|
||||
"identifier": "migrated",
|
||||
"description": "permissions that were migrated from v1",
|
||||
"local": true,
|
||||
"windows": ["main"],
|
||||
"windows": [
|
||||
"main"
|
||||
],
|
||||
"permissions": [
|
||||
"core:default",
|
||||
"core:window:allow-close",
|
||||
@@ -30,7 +32,14 @@
|
||||
"fs:allow-exists",
|
||||
{
|
||||
"identifier": "fs:scope",
|
||||
"allow": [{ "path": "$APPDATA" }, { "path": "$APPDATA/**" }]
|
||||
"allow": [
|
||||
{
|
||||
"path": "$APPDATA"
|
||||
},
|
||||
{
|
||||
"path": "$APPDATA/**"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"identifier": "http:default",
|
||||
@@ -39,6 +48,8 @@
|
||||
"url": "https://github.com/SlimeVR/SlimeVR-Tracker-ESP/releases/download/*"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"opener:default",
|
||||
"log:default"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -53,6 +53,7 @@ work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||
</description>
|
||||
|
||||
<launchable type="desktop-id">dev.slimevr.SlimeVR.desktop</launchable>
|
||||
<launchable type="desktop-id">safe-mode.dev.slimevr.SlimeVR.desktop</launchable>
|
||||
<screenshots>
|
||||
<screenshot type="default" xml:lang="en">
|
||||
<caption>The onboarding for the GUI</caption>
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
[Desktop Entry]
|
||||
Version=1.5
|
||||
Categories=Game;GTK;
|
||||
Exec=bash -c "WEBKIT_DISABLE_DMABUF_RENDERER=1 WAYLAND_DISPLAY=0 slimevr"
|
||||
Icon={{icon}}
|
||||
|
||||
Name=SlimeVR (safe mode)
|
||||
GenericName=Full-body tracking
|
||||
Comment=An app for facilitating full-body tracking in virtual reality
|
||||
Keywords=FBT;VR;Steam;VRChat;IMU
|
||||
|
||||
Terminal=false
|
||||
Type=Application
|
||||
+17
-54
@@ -17,6 +17,7 @@ use tauri::Emitter;
|
||||
use tauri::WindowEvent;
|
||||
use tauri::{Manager, RunEvent};
|
||||
use tauri_plugin_shell::process::CommandChild;
|
||||
use util::get_log_dir;
|
||||
|
||||
use crate::util::{
|
||||
get_launch_path, show_error, valid_java_paths, Cli, JAVA_BIN, MINIMUM_JAVA_VERSION,
|
||||
@@ -43,21 +44,6 @@ fn update_window_state(
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
fn logging(msg: String) {
|
||||
log::info!(target: "webview", "{}", msg)
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
fn erroring(msg: String) {
|
||||
log::error!(target: "webview", "{}", msg)
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
fn warning(msg: String) {
|
||||
log::warn!(target: "webview", "{}", msg)
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
fn open_config_folder(app_handle: tauri::AppHandle) {
|
||||
let path = app_handle
|
||||
@@ -66,7 +52,7 @@ fn open_config_folder(app_handle: tauri::AppHandle) {
|
||||
.unwrap_or_else(|_| Path::new(".").to_path_buf());
|
||||
|
||||
if let Err(err) = open::that(path) {
|
||||
eprintln!("Failed to open config folder: {}", err);
|
||||
log::error!("Failed to open config folder: {}", err);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -81,7 +67,7 @@ fn open_logs_folder(app_handle: tauri::AppHandle) {
|
||||
if let Err(err) =
|
||||
open::that(path.unwrap_or_else(|_| Path::new("./logs/").to_path_buf()))
|
||||
{
|
||||
eprintln!("Failed to open logs folder: {}", err);
|
||||
log::error!("Failed to open logs folder: {}", err);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -97,9 +83,6 @@ fn main() -> Result<()> {
|
||||
let cli = Cli::parse();
|
||||
let tauri_context = tauri::generate_context!();
|
||||
|
||||
// Set up loggers and global handlers
|
||||
let _logger = setup_logger(&tauri_context);
|
||||
|
||||
// Ensure child processes die when spawned on windows
|
||||
// and then check for WebView2's existence
|
||||
#[cfg(windows)]
|
||||
@@ -125,37 +108,6 @@ fn main() -> Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn setup_logger(context: &tauri::Context) -> Result<flexi_logger::LoggerHandle> {
|
||||
use flexi_logger::{
|
||||
Age, Cleanup, Criterion, Duplicate, FileSpec, Logger, Naming, WriteMode,
|
||||
};
|
||||
use tauri::Error;
|
||||
|
||||
// Based on https://docs.rs/tauri/2.0.0-alpha.10/src/tauri/path/desktop.rs.html#238-256
|
||||
#[cfg(target_os = "macos")]
|
||||
let path = dirs_next::home_dir()
|
||||
.ok_or(Error::UnknownPath)
|
||||
.map(|dir| dir.join("Library/Logs").join(&context.config().identifier));
|
||||
|
||||
#[cfg(not(target_os = "macos"))]
|
||||
let path = dirs_next::data_dir()
|
||||
.ok_or(Error::UnknownPath)
|
||||
.map(|dir| dir.join(&context.config().identifier).join("logs"));
|
||||
|
||||
Ok(Logger::try_with_env_or_str("info")?
|
||||
.log_to_file(FileSpec::default().directory(path.expect("We need a log dir")))
|
||||
.format_for_files(|w, now, record| util::logger_format(w, now, record, false))
|
||||
.format_for_stderr(|w, now, record| util::logger_format(w, now, record, true))
|
||||
.rotate(
|
||||
Criterion::Age(Age::Day),
|
||||
Naming::Timestamps,
|
||||
Cleanup::KeepLogFiles(2),
|
||||
)
|
||||
.duplicate_to_stderr(Duplicate::All)
|
||||
.write_mode(WriteMode::BufferAndFlush)
|
||||
.start()?)
|
||||
}
|
||||
|
||||
#[cfg(windows)]
|
||||
fn setup_webview2() -> Result<()> {
|
||||
use crate::util::webview2_exists;
|
||||
@@ -249,6 +201,19 @@ fn setup_tauri(
|
||||
) -> Result<tauri::App, tauri::Error> {
|
||||
let exit_flag_terminated = exit_flag.clone();
|
||||
tauri::Builder::default()
|
||||
.plugin(
|
||||
tauri_plugin_log::Builder::new()
|
||||
.target(tauri_plugin_log::Target::new(
|
||||
tauri_plugin_log::TargetKind::Folder {
|
||||
path: get_log_dir(&context)?,
|
||||
file_name: Some("slimevr".to_string()),
|
||||
},
|
||||
))
|
||||
.max_file_size(30_000 /* bytes */)
|
||||
.rotation_strategy(tauri_plugin_log::RotationStrategy::KeepSome(3))
|
||||
.build(),
|
||||
)
|
||||
.plugin(tauri_plugin_opener::init())
|
||||
.plugin(tauri_plugin_dialog::init())
|
||||
.plugin(tauri_plugin_fs::init())
|
||||
.plugin(tauri_plugin_os::init())
|
||||
@@ -257,9 +222,6 @@ fn setup_tauri(
|
||||
.plugin(tauri_plugin_http::init())
|
||||
.invoke_handler(tauri::generate_handler![
|
||||
update_window_state,
|
||||
logging,
|
||||
erroring,
|
||||
warning,
|
||||
open_config_folder,
|
||||
open_logs_folder,
|
||||
tray::update_translations,
|
||||
@@ -271,6 +233,7 @@ fn setup_tauri(
|
||||
presence::create_discord_client,
|
||||
])
|
||||
.setup(move |app| {
|
||||
log::info!("SlimeVR started!");
|
||||
let window_state =
|
||||
WindowState::open_state(app.path().app_config_dir().unwrap())
|
||||
.unwrap_or_default();
|
||||
|
||||
+15
-30
@@ -10,8 +10,6 @@ use std::{
|
||||
|
||||
use clap::Parser;
|
||||
use const_format::concatcp;
|
||||
use flexi_logger::{style, DeferredNow};
|
||||
use log::Record;
|
||||
use shadow_rs::shadow;
|
||||
use tempfile::Builder;
|
||||
|
||||
@@ -111,6 +109,21 @@ pub fn show_error(text: &str) -> bool {
|
||||
== MessageDialogResult::Ok
|
||||
}
|
||||
|
||||
pub fn get_log_dir(context: &tauri::Context) -> tauri::Result<PathBuf> {
|
||||
use tauri::Error;
|
||||
#[cfg(target_os = "macos")]
|
||||
let path = dirs_next::home_dir()
|
||||
.ok_or(Error::UnknownPath)
|
||||
.map(|dir| dir.join("Library/Logs").join(&context.config().identifier))?;
|
||||
|
||||
#[cfg(not(target_os = "macos"))]
|
||||
let path = dirs_next::data_dir()
|
||||
.ok_or(Error::UnknownPath)
|
||||
.map(|dir| dir.join(&context.config().identifier).join("logs"))?;
|
||||
|
||||
Ok(path)
|
||||
}
|
||||
|
||||
#[cfg(mobile)]
|
||||
pub fn show_error(text: &str) -> bool {
|
||||
// needs to do native stuff on mobile
|
||||
@@ -218,31 +231,3 @@ pub fn valid_java_paths() -> Vec<(OsString, i32)> {
|
||||
})
|
||||
.collect()
|
||||
}
|
||||
|
||||
pub fn logger_format(
|
||||
w: &mut dyn std::io::Write,
|
||||
_now: &mut DeferredNow,
|
||||
record: &Record,
|
||||
ansi: bool,
|
||||
) -> Result<(), std::io::Error> {
|
||||
let level = record.level();
|
||||
let module_path = record.module_path().unwrap_or("<unnamed>");
|
||||
// Optionally print target
|
||||
let target = if module_path.starts_with(record.target()) {
|
||||
"".to_string()
|
||||
} else {
|
||||
format!(", {}", record.target())
|
||||
};
|
||||
// A toggle for ansi formatting, mainly disabled for file logs, but enabled for terminal logs.
|
||||
if ansi {
|
||||
write!(
|
||||
w,
|
||||
"{} [{}{target}] {}",
|
||||
style(level).paint(level.to_string()),
|
||||
module_path,
|
||||
style(level).paint(record.args().to_string())
|
||||
)
|
||||
} else {
|
||||
write!(w, "{} [{}{target}] {}", level, module_path, record.args())
|
||||
}
|
||||
}
|
||||
@@ -15,7 +15,8 @@
|
||||
],
|
||||
"files": {
|
||||
"/usr/share/slimevr/slimevr.jar": "../../server/desktop/build/libs/slimevr.jar",
|
||||
"/lib/udev/rules.d/69-slimevr.rules": "./69-slimevr-devices.rules"
|
||||
"/lib/udev/rules.d/69-slimevr.rules": "./69-slimevr-devices.rules",
|
||||
"/usr/share/applications/safe-mode.dev.slimevr.SlimeVR.desktop": "./safe-mode.dev.slimevr.SlimeVR.desktop"
|
||||
},
|
||||
"desktopTemplate": "./dev.slimevr.SlimeVR.desktop",
|
||||
"section": "contrib/games"
|
||||
@@ -33,7 +34,8 @@
|
||||
],
|
||||
"files": {
|
||||
"/usr/share/slimevr/slimevr.jar": "../../server/desktop/build/libs/slimevr.jar",
|
||||
"/usr/lib/udev/rules.d/69-slimevr.rules": "./69-slimevr-devices.rules"
|
||||
"/usr/lib/udev/rules.d/69-slimevr.rules": "./69-slimevr-devices.rules",
|
||||
"/usr/share/applications/safe-mode.dev.slimevr.SlimeVR.desktop": "./safe-mode.dev.slimevr.SlimeVR.desktop"
|
||||
},
|
||||
"desktopTemplate": "./dev.slimevr.SlimeVR.desktop"
|
||||
}
|
||||
|
||||
+9
-31
@@ -43,7 +43,7 @@ import { StatusProvider } from './components/providers/StatusSystemContext';
|
||||
import { VersionUpdateModal } from './components/VersionUpdateModal';
|
||||
import { CalibrationTutorialPage } from './components/onboarding/pages/CalibrationTutorial';
|
||||
import { AssignmentTutorialPage } from './components/onboarding/pages/assignment-preparation/AssignmentTutorial';
|
||||
import { open } from '@tauri-apps/plugin-shell';
|
||||
import { openUrl } from '@tauri-apps/plugin-opener';
|
||||
import semver from 'semver';
|
||||
import { useBreakpoint, useIsTauri } from './hooks/breakpoint';
|
||||
import { VRModePage } from './components/vr-mode/VRModePage';
|
||||
@@ -61,16 +61,6 @@ import { FirmwareUpdate } from './components/firmware-update/FirmwareUpdate';
|
||||
import { ConnectionLost } from './components/onboarding/pages/ConnectionLost';
|
||||
import { VRCWarningsPage } from './components/vrc/VRCWarningsPage';
|
||||
import { StayAlignedSetup } from './components/onboarding/pages/stay-aligned/StayAlignedSetup';
|
||||
import {
|
||||
Chart as ChartJS,
|
||||
Title,
|
||||
Tooltip,
|
||||
Legend,
|
||||
CategoryScale,
|
||||
LinearScale,
|
||||
PointElement,
|
||||
LineElement,
|
||||
} from 'chart.js';
|
||||
|
||||
export const GH_REPO = 'SlimeVR/SlimeVR-Server';
|
||||
export const VersionContext = createContext('');
|
||||
@@ -83,21 +73,11 @@ function Layout() {
|
||||
const { isMobile } = useBreakpoint('mobile');
|
||||
useDiscordPresence();
|
||||
|
||||
ChartJS.register(
|
||||
Title,
|
||||
Tooltip,
|
||||
Legend,
|
||||
CategoryScale,
|
||||
LinearScale,
|
||||
PointElement,
|
||||
LineElement
|
||||
);
|
||||
|
||||
return (
|
||||
<>
|
||||
<SerialDetectionModal></SerialDetectionModal>
|
||||
<VersionUpdateModal></VersionUpdateModal>
|
||||
<UnknownDeviceModal></UnknownDeviceModal>
|
||||
<SerialDetectionModal />
|
||||
<VersionUpdateModal />
|
||||
<UnknownDeviceModal />
|
||||
<SentryRoutes>
|
||||
<Route element={<AppLayout />}>
|
||||
<Route
|
||||
@@ -178,7 +158,7 @@ function Layout() {
|
||||
/>
|
||||
<Route path="trackers-assign" element={<TrackersAssignPage />} />
|
||||
<Route path="enter-vr" element={<EnterVRPage />} />
|
||||
<Route path="mounting/choose" element={<MountingChoose />}></Route>
|
||||
<Route path="mounting/choose" element={<MountingChoose />} />
|
||||
<Route path="mounting/auto" element={<AutomaticMountingPage />} />
|
||||
<Route path="mounting/manual" element={<ManualMountingPage />} />
|
||||
<Route path="reset-tutorial" element={<ResetTutorialPage />} />
|
||||
@@ -197,7 +177,7 @@ function Layout() {
|
||||
<Route path="stay-aligned" element={<StayAlignedSetup />} />
|
||||
<Route path="done" element={<DonePage />} />
|
||||
</Route>
|
||||
<Route path="*" element={<TopBar></TopBar>}></Route>
|
||||
<Route path="*" element={<TopBar />} />
|
||||
</Route>
|
||||
</SentryRoutes>
|
||||
</>
|
||||
@@ -303,7 +283,7 @@ export default function App() {
|
||||
useEffect(() => {
|
||||
function onKeyboard(ev: KeyboardEvent) {
|
||||
if (ev.key === 'F1') {
|
||||
return open(DOCS_SITE).catch(() => window.open(DOCS_SITE, '_blank'));
|
||||
return openUrl(DOCS_SITE).catch(() => window.open(DOCS_SITE, '_blank'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -321,10 +301,8 @@ export default function App() {
|
||||
<VersionContext.Provider value={updateFound}>
|
||||
<div className="h-full w-full text-standard bg-background-80 text-background-10">
|
||||
<Preload />
|
||||
{!websocketAPI.isConnected && (
|
||||
<ConnectionLost></ConnectionLost>
|
||||
)}
|
||||
{websocketAPI.isConnected && <Layout></Layout>}
|
||||
{!websocketAPI.isConnected && <ConnectionLost />}
|
||||
{websocketAPI.isConnected && <Layout />}
|
||||
</div>
|
||||
</VersionContext.Provider>
|
||||
</StatusProvider>
|
||||
|
||||
@@ -64,7 +64,7 @@ export function BVHButton(props: React.HTMLAttributes<HTMLButtonElement>) {
|
||||
'border',
|
||||
recording ? 'border-status-critical' : 'border-transparent'
|
||||
)}
|
||||
></BigButton>
|
||||
/>
|
||||
</Localized>
|
||||
);
|
||||
}
|
||||
@@ -6,7 +6,7 @@ export function EmptyLayout({ children }: { children: ReactNode }) {
|
||||
return (
|
||||
<div className="empty-layout h-full">
|
||||
<div style={{ gridArea: 't' }}>
|
||||
<TopBar></TopBar>
|
||||
<TopBar />
|
||||
</div>
|
||||
<div style={{ gridArea: 'c' }} className="mt-2 relative">
|
||||
{children}
|
||||
|
||||
@@ -35,8 +35,8 @@ export function ErrorConsentModal({
|
||||
<Localized
|
||||
id={'error_collection_modal-description_v2'}
|
||||
elems={{
|
||||
b: <b></b>,
|
||||
h1: <span className="text-lg font-bold"></span>,
|
||||
b: <b />,
|
||||
h1: <span className="text-lg font-bold" />,
|
||||
}}
|
||||
>
|
||||
<Typography
|
||||
|
||||
@@ -9,7 +9,9 @@
|
||||
grid-template:
|
||||
't t t' var(--topbar-h)
|
||||
's c w' calc(100% - var(--topbar-h))
|
||||
/ var(--navbar-w) calc(100% - var(--navbar-w) - var(--widget-w)) var(--widget-w);
|
||||
/ var(--navbar-w) calc(100% - var(--navbar-w) - var(--widget-w)) var(
|
||||
--widget-w
|
||||
);
|
||||
}
|
||||
|
||||
@screen mobile {
|
||||
|
||||
@@ -61,10 +61,10 @@ export function MainLayout({
|
||||
<div className="">
|
||||
<div className="main-layout w-full h-screen">
|
||||
<div style={{ gridArea: 't' }}>
|
||||
<TopBar></TopBar>
|
||||
<TopBar />
|
||||
</div>
|
||||
<div style={{ gridArea: 's' }} className="overflow-y-auto">
|
||||
<Navbar></Navbar>
|
||||
<Navbar />
|
||||
</div>
|
||||
<div
|
||||
style={{ gridArea: 'c' }}
|
||||
@@ -81,7 +81,7 @@ export function MainLayout({
|
||||
style={{ gridArea: 'w' }}
|
||||
className="overflow-y-auto mr-2 my-2 rounded-xl bg-background-70 flex flex-col gap-2 p-2 widgets"
|
||||
>
|
||||
<WidgetsComponent></WidgetsComponent>
|
||||
<WidgetsComponent />
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
@@ -70,13 +70,13 @@ export function MainLinks() {
|
||||
|
||||
return (
|
||||
<>
|
||||
<NavButton to="/" icon={<CubeIcon></CubeIcon>}>
|
||||
<NavButton to="/" icon={<CubeIcon />}>
|
||||
{l10n.getString('navbar-home')}
|
||||
</NavButton>
|
||||
<NavButton
|
||||
to="/onboarding/trackers-assign"
|
||||
state={{ alonePage: true }}
|
||||
icon={<HumanIcon></HumanIcon>}
|
||||
icon={<HumanIcon />}
|
||||
>
|
||||
{l10n.getString('navbar-trackers_assign')}
|
||||
</NavButton>
|
||||
@@ -84,7 +84,7 @@ export function MainLinks() {
|
||||
to="/onboarding/mounting/choose"
|
||||
match="/onboarding/mounting/*"
|
||||
state={{ alonePage: true }}
|
||||
icon={<WrenchIcon></WrenchIcon>}
|
||||
icon={<WrenchIcon />}
|
||||
>
|
||||
{l10n.getString('navbar-mounting')}
|
||||
</NavButton>
|
||||
@@ -92,12 +92,12 @@ export function MainLinks() {
|
||||
to="/onboarding/body-proportions/scaled"
|
||||
match="/onboarding/body-proportions/*"
|
||||
state={{ alonePage: true }}
|
||||
icon={<RulerIcon></RulerIcon>}
|
||||
icon={<RulerIcon />}
|
||||
>
|
||||
{l10n.getString('navbar-body_proportions')}
|
||||
</NavButton>
|
||||
{config?.showNavbarOnboarding && (
|
||||
<NavButton to="/onboarding/home" icon={<SparkleIcon></SparkleIcon>}>
|
||||
<NavButton to="/onboarding/home" icon={<SparkleIcon />}>
|
||||
{l10n.getString('navbar-onboarding')}
|
||||
</NavButton>
|
||||
)}
|
||||
@@ -111,18 +111,18 @@ export function Navbar() {
|
||||
|
||||
return isMobile ? (
|
||||
<div className="flex flex-row justify-around px-2 pt-2 bg-background-80 gap-2">
|
||||
<MainLinks></MainLinks>
|
||||
<MainLinks />
|
||||
</div>
|
||||
) : (
|
||||
<div className="flex flex-col h-full p-2 gap-2">
|
||||
<div className="flex flex-col flex-grow gap-2">
|
||||
<MainLinks></MainLinks>
|
||||
<MainLinks />
|
||||
</div>
|
||||
<NavButton
|
||||
to="/settings/trackers"
|
||||
match="/settings/*"
|
||||
state={{ scrollTo: 'steamvr' }}
|
||||
icon={<GearIcon></GearIcon>}
|
||||
icon={<GearIcon />}
|
||||
>
|
||||
{l10n.getString('navbar-settings')}
|
||||
</NavButton>
|
||||
|
||||
@@ -69,7 +69,7 @@ export function SerialDetectionModal() {
|
||||
{!showWifiForm && (
|
||||
<>
|
||||
<div className="flex flex-col items-center gap-3 fill-accent-background-20">
|
||||
<USBIcon></USBIcon>
|
||||
<USBIcon />
|
||||
<div className="flex flex-col items-center gap-2">
|
||||
<Typography variant="main-title">
|
||||
{l10n.getString('serial_detection-new_device-p0')}
|
||||
@@ -101,7 +101,7 @@ export function SerialDetectionModal() {
|
||||
>
|
||||
<div className="flex flex-col items-center gap-3">
|
||||
<div className="fill-background-10">
|
||||
<BulbIcon></BulbIcon>
|
||||
<BulbIcon />
|
||||
</div>
|
||||
<Typography variant="main-title">
|
||||
{l10n.getString('serial_detection-new_device-p0')}
|
||||
|
||||
@@ -14,7 +14,7 @@ import { SlimeVRIcon } from './commons/icon/SimevrIcon';
|
||||
import { ProgressBar } from './commons/ProgressBar';
|
||||
import { Typography } from './commons/Typography';
|
||||
import { DownloadIcon } from './commons/icon/DownloadIcon';
|
||||
import { open } from '@tauri-apps/plugin-shell';
|
||||
import { openUrl } from '@tauri-apps/plugin-opener';
|
||||
import { DOCS_SITE, GH_REPO, VersionContext } from '@/App';
|
||||
import classNames from 'classnames';
|
||||
import { QuestionIcon } from './commons/icon/QuestionIcon';
|
||||
@@ -47,7 +47,7 @@ export function VersionTag() {
|
||||
)}
|
||||
onClick={() => {
|
||||
const url = `https://github.com/${GH_REPO}/releases`;
|
||||
open(url).catch(() => window.open(url, '_blank'));
|
||||
openUrl(url).catch(() => window.open(url, '_blank'));
|
||||
}}
|
||||
>
|
||||
{(__VERSION_TAG__ || __COMMIT_HASH__) + (__GIT_CLEAN__ ? '' : '-dirty')}
|
||||
@@ -155,7 +155,7 @@ export function TopBar({
|
||||
return (
|
||||
<>
|
||||
<div className="flex gap-0 flex-col">
|
||||
<div className="h-[3px]"></div>
|
||||
<div className="h-[3px]" />
|
||||
<div data-tauri-drag-region className="flex gap-2 h-[38px] z-50">
|
||||
<div
|
||||
className="flex px-2 py-2 justify-around z-50"
|
||||
@@ -168,7 +168,7 @@ export function TopBar({
|
||||
className="flex justify-around flex-col select-all"
|
||||
data-tauri-drag-region
|
||||
>
|
||||
<SlimeVRIcon></SlimeVRIcon>
|
||||
<SlimeVRIcon />
|
||||
</NavLink>
|
||||
)}
|
||||
{(isTauri || !isMobile) && !config?.decorations && (
|
||||
@@ -181,7 +181,7 @@ export function TopBar({
|
||||
)}
|
||||
{(!(isMobile && !config?.decorations) || showVersionMobile) && (
|
||||
<>
|
||||
<VersionTag></VersionTag>
|
||||
<VersionTag />
|
||||
{doesMatchSettings && (
|
||||
<div
|
||||
className={classNames(
|
||||
@@ -203,10 +203,10 @@ export function TopBar({
|
||||
const url = document.body.classList.contains('windows')
|
||||
? 'https://slimevr.dev/download'
|
||||
: `https://github.com/${GH_REPO}/releases/latest`;
|
||||
open(url).catch(() => window.open(url, '_blank'));
|
||||
openUrl(url).catch(() => window.open(url, '_blank'));
|
||||
}}
|
||||
>
|
||||
<DownloadIcon></DownloadIcon>
|
||||
<DownloadIcon />
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
@@ -222,11 +222,7 @@ export function TopBar({
|
||||
data-tauri-drag-region
|
||||
>
|
||||
{progress !== undefined && (
|
||||
<ProgressBar
|
||||
progress={progress}
|
||||
height={3}
|
||||
parts={3}
|
||||
></ProgressBar>
|
||||
<ProgressBar progress={progress} height={3} parts={3} />
|
||||
)}
|
||||
</div>
|
||||
</>
|
||||
@@ -256,7 +252,7 @@ export function TopBar({
|
||||
data-tauri-drag-region
|
||||
state={{ scrollTo: 'steamvr' }}
|
||||
>
|
||||
<GearIcon></GearIcon>
|
||||
<GearIcon />
|
||||
</NavLink>
|
||||
|
||||
{!isMobile && (
|
||||
@@ -266,10 +262,12 @@ export function TopBar({
|
||||
'hover:bg-background-60 rounded-full w-7 h-7 cursor-pointer'
|
||||
)}
|
||||
onClick={() =>
|
||||
open(DOCS_SITE).catch(() => window.open(DOCS_SITE, '_blank'))
|
||||
openUrl(DOCS_SITE).catch(() =>
|
||||
window.open(DOCS_SITE, '_blank')
|
||||
)
|
||||
}
|
||||
>
|
||||
<QuestionIcon></QuestionIcon>
|
||||
<QuestionIcon />
|
||||
</div>
|
||||
)}
|
||||
|
||||
@@ -279,19 +277,19 @@ export function TopBar({
|
||||
className="flex items-center justify-center hover:bg-background-60 rounded-full w-7 h-7"
|
||||
onClick={() => getCurrentWindow().minimize()}
|
||||
>
|
||||
<MinimiseIcon></MinimiseIcon>
|
||||
<MinimiseIcon />
|
||||
</div>
|
||||
<div
|
||||
className="flex items-center justify-center hover:bg-background-60 rounded-full w-7 h-7"
|
||||
onClick={() => getCurrentWindow().toggleMaximize()}
|
||||
>
|
||||
<MaximiseIcon></MaximiseIcon>
|
||||
<MaximiseIcon />
|
||||
</div>
|
||||
<div
|
||||
className="flex items-center justify-center hover:bg-background-60 rounded-full w-7 h-7"
|
||||
onClick={() => tryCloseApp()}
|
||||
>
|
||||
<CloseIcon></CloseIcon>
|
||||
<CloseIcon />
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
@@ -299,7 +297,7 @@ export function TopBar({
|
||||
</div>
|
||||
{isMobile && progress !== undefined && (
|
||||
<div className="flex gap-2 px-2 h-6 mb-2 justify-center flex-col border-b border-accent-background-30">
|
||||
<ProgressBar progress={progress} height={3} parts={3}></ProgressBar>
|
||||
<ProgressBar progress={progress} height={3} parts={3} />
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
@@ -333,7 +331,7 @@ export function TopBar({
|
||||
setConnectedTrackerWarning(false);
|
||||
getCurrentWindow().requestUserAttention(null);
|
||||
}}
|
||||
></TrackersStillOnModal>
|
||||
/>
|
||||
<ErrorConsentModal
|
||||
isOpen={config?.errorTracking === null}
|
||||
accept={() => setConfig({ errorTracking: true })}
|
||||
|
||||
@@ -45,7 +45,7 @@ export function TrackingPauseButton(
|
||||
}
|
||||
onClick={toggleTracking}
|
||||
className={classNames(props.className, 'min-h-24')}
|
||||
></BigButton>
|
||||
/>
|
||||
</Localized>
|
||||
);
|
||||
}
|
||||
@@ -57,13 +57,13 @@ export function TrayOrExitModal({
|
||||
name="exitType"
|
||||
label={l10n.getString('tray_or_exit_modal-radio-exit')}
|
||||
value="0"
|
||||
></Radio>
|
||||
/>
|
||||
<Radio
|
||||
control={control}
|
||||
name="exitType"
|
||||
label={l10n.getString('tray_or_exit_modal-radio-tray')}
|
||||
value="1"
|
||||
></Radio>
|
||||
/>
|
||||
</div>
|
||||
|
||||
<Button type="submit" variant="primary">
|
||||
|
||||
@@ -63,7 +63,7 @@ export function UnknownDeviceModal() {
|
||||
</Typography>
|
||||
<Localized
|
||||
id="unknown_device-modal-description"
|
||||
elems={{ b: <b></b> }}
|
||||
elems={{ b: <b /> }}
|
||||
vars={{ deviceId: currentTracker ?? 'ERROR' }}
|
||||
>
|
||||
<Typography
|
||||
|
||||
@@ -3,7 +3,7 @@ import { useContext, useState } from 'react';
|
||||
import { BaseModal } from './commons/BaseModal';
|
||||
import { Button } from './commons/Button';
|
||||
import { Typography } from './commons/Typography';
|
||||
import { open } from '@tauri-apps/plugin-shell';
|
||||
import { openUrl } from '@tauri-apps/plugin-opener';
|
||||
import semver from 'semver';
|
||||
import { GH_REPO, VersionContext } from '@/App';
|
||||
import { error } from '@/utils/logging';
|
||||
@@ -54,7 +54,7 @@ export function VersionUpdateModal() {
|
||||
const url = document.body.classList.contains('windows')
|
||||
? 'https://slimevr.dev/download'
|
||||
: `https://github.com/${GH_REPO}/releases/latest`;
|
||||
await open(url).catch(() => window.open(url, '_blank'));
|
||||
await openUrl(url).catch(() => window.open(url, '_blank'));
|
||||
closeModal();
|
||||
}}
|
||||
>
|
||||
|
||||
@@ -33,7 +33,7 @@ function UnprioritizedStatuses() {
|
||||
key={status.id}
|
||||
elems={{
|
||||
PublicFixLink: (
|
||||
<A href="https://docs.slimevr.dev/common-issues.html#network-profile-is-currently-set-to-public"></A>
|
||||
<A href="https://docs.slimevr.dev/common-issues.html#network-profile-is-currently-set-to-public" />
|
||||
),
|
||||
}}
|
||||
>
|
||||
@@ -52,33 +52,33 @@ export function WidgetsComponent() {
|
||||
return (
|
||||
<>
|
||||
<div className="grid grid-cols-2 gap-2 w-full [&>*:nth-child(odd):last-of-type]:col-span-full">
|
||||
<ResetButton type={ResetType.Yaw} size="big"></ResetButton>
|
||||
<ResetButton type={ResetType.Full} size="big"></ResetButton>
|
||||
<ResetButton type={ResetType.Mounting} size="big"></ResetButton>
|
||||
<ResetButton type={ResetType.Yaw} size="big" />
|
||||
<ResetButton type={ResetType.Full} size="big" />
|
||||
<ResetButton type={ResetType.Mounting} size="big" />
|
||||
<ResetButton
|
||||
type={ResetType.Mounting}
|
||||
size="big"
|
||||
bodyPartsToReset="feet"
|
||||
></ResetButton>
|
||||
/>
|
||||
<ResetButton
|
||||
type={ResetType.Mounting}
|
||||
size="big"
|
||||
bodyPartsToReset="fingers"
|
||||
></ResetButton>
|
||||
<ClearMountingButton></ClearMountingButton>
|
||||
{!window.__ANDROID__?.isThere() && <BVHButton></BVHButton>}
|
||||
<TrackingPauseButton></TrackingPauseButton>
|
||||
/>
|
||||
<ClearMountingButton />
|
||||
{!window.__ANDROID__?.isThere() && <BVHButton />}
|
||||
<TrackingPauseButton />
|
||||
</div>
|
||||
<div className="w-full">
|
||||
<OverlayWidget></OverlayWidget>
|
||||
<OverlayWidget />
|
||||
</div>
|
||||
<div className="mb-2">
|
||||
<ToggleableSkeletonVisualizerWidget height={400} />
|
||||
</div>
|
||||
<UnprioritizedStatuses></UnprioritizedStatuses>
|
||||
<UnprioritizedStatuses />
|
||||
{config?.debug && (
|
||||
<div className="w-full">
|
||||
<DeveloperModeWidget></DeveloperModeWidget>
|
||||
<DeveloperModeWidget />
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { open } from '@tauri-apps/plugin-shell';
|
||||
import { openUrl } from '@tauri-apps/plugin-opener';
|
||||
import { ReactNode } from 'react';
|
||||
|
||||
export function A({ href, children }: { href?: string; children?: ReactNode }) {
|
||||
@@ -6,7 +6,7 @@ export function A({ href, children }: { href?: string; children?: ReactNode }) {
|
||||
<a
|
||||
href="javascript:void(0)"
|
||||
onClick={() =>
|
||||
href && open(href).catch(() => window.open(href, '_blank'))
|
||||
href && openUrl(href).catch(() => window.open(href, '_blank'))
|
||||
}
|
||||
className="underline"
|
||||
>
|
||||
|
||||
@@ -36,13 +36,13 @@ export function ArrowLink({
|
||||
<NavLink to={to} state={state} className={classes}>
|
||||
{direction === 'left' && (
|
||||
<div className="flex flex-col justify-center">
|
||||
<ArrowLeftIcon></ArrowLeftIcon>
|
||||
<ArrowLeftIcon />
|
||||
</div>
|
||||
)}
|
||||
{children}
|
||||
{direction === 'right' && (
|
||||
<div className="flex flex-col justify-center">
|
||||
<ArrowRightIcon></ArrowRightIcon>
|
||||
<ArrowRightIcon />
|
||||
</div>
|
||||
)}
|
||||
</NavLink>
|
||||
|
||||
@@ -94,7 +94,7 @@ function Dot({
|
||||
height: dotSize,
|
||||
outlineWidth: globalVelocity * 2 + 2,
|
||||
}}
|
||||
></div>
|
||||
/>
|
||||
{trackers?.map(({ tracker }, index) => (
|
||||
<Tracker
|
||||
tracker={tracker}
|
||||
@@ -187,7 +187,7 @@ export function BodyDisplay({
|
||||
variant === 'tracker-select' && 'mx-10'
|
||||
)}
|
||||
>
|
||||
<PersonFrontIcon width={width}></PersonFrontIcon>
|
||||
<PersonFrontIcon width={width} />
|
||||
{slotsButtonsPos.map((dotData) => (
|
||||
<Dot
|
||||
{...dotData}
|
||||
|
||||
@@ -198,7 +198,7 @@ export function BodyInteractions({
|
||||
className="absolute w-full h-full top-0 z-10"
|
||||
width="100%"
|
||||
height="100%"
|
||||
></canvas>
|
||||
/>
|
||||
<div className="flex">
|
||||
<div ref={leftContainerRef} className="z-10">
|
||||
{leftControls}
|
||||
@@ -210,7 +210,7 @@ export function BodyInteractions({
|
||||
variant === 'tracker-select' && 'mobile:mx-0 xs:mx-10'
|
||||
)}
|
||||
>
|
||||
<PersonFrontIcon width={width} mirror={mirror}></PersonFrontIcon>
|
||||
<PersonFrontIcon width={width} mirror={mirror} />
|
||||
{slotsButtonsPos.map(
|
||||
({ top, left, height, width, id, hidden, buttonOffset }) => (
|
||||
<div
|
||||
@@ -234,7 +234,7 @@ export function BodyInteractions({
|
||||
height: dotsSize,
|
||||
animationDuration: '1.5s',
|
||||
}}
|
||||
></div>
|
||||
/>
|
||||
)}
|
||||
<div
|
||||
className={classNames(
|
||||
@@ -249,7 +249,7 @@ export function BodyInteractions({
|
||||
width: dotsSize,
|
||||
height: dotsSize,
|
||||
}}
|
||||
></div>
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
||||
@@ -28,155 +28,103 @@ export const mapPart: Record<
|
||||
currentLocales: string[];
|
||||
}) => JSX.Element
|
||||
> = {
|
||||
[BodyPart.UPPER_CHEST]: ({ width }) => (
|
||||
<UpperChestIcon width={width}></UpperChestIcon>
|
||||
),
|
||||
[BodyPart.CHEST]: ({ width }) => <ChestIcon width={width}></ChestIcon>,
|
||||
[BodyPart.HEAD]: ({ width }) => <HeadsetIcon width={width}></HeadsetIcon>,
|
||||
[BodyPart.HIP]: ({ width }) => <HipIcon width={width}></HipIcon>,
|
||||
[BodyPart.LEFT_HIP]: ({ width }) => <HipIcon width={width}></HipIcon>, // Unused
|
||||
[BodyPart.RIGHT_HIP]: ({ width }) => <HipIcon width={width}></HipIcon>, // Unused
|
||||
[BodyPart.UPPER_CHEST]: ({ width }) => <UpperChestIcon width={width} />,
|
||||
[BodyPart.CHEST]: ({ width }) => <ChestIcon width={width} />,
|
||||
[BodyPart.HEAD]: ({ width }) => <HeadsetIcon width={width} />,
|
||||
[BodyPart.HIP]: ({ width }) => <HipIcon width={width} />,
|
||||
[BodyPart.LEFT_HIP]: ({ width }) => <HipIcon width={width} />, // Unused
|
||||
[BodyPart.RIGHT_HIP]: ({ width }) => <HipIcon width={width} />, // Unused
|
||||
[BodyPart.LEFT_FOOT]: ({ width, currentLocales }) =>
|
||||
currentLocales.includes('en-x-owo') ? (
|
||||
<PawIcon></PawIcon>
|
||||
<PawIcon />
|
||||
) : (
|
||||
<FootIcon width={width}></FootIcon>
|
||||
<FootIcon width={width} />
|
||||
),
|
||||
[BodyPart.LEFT_HAND]: ({ width }) => (
|
||||
<ControllerIcon width={width}></ControllerIcon>
|
||||
),
|
||||
[BodyPart.LEFT_LOWER_ARM]: ({ width }) => (
|
||||
<LowerArmIcon width={width}></LowerArmIcon>
|
||||
),
|
||||
[BodyPart.LEFT_LOWER_LEG]: ({ width }) => (
|
||||
<AnkleIcon width={width}></AnkleIcon>
|
||||
),
|
||||
[BodyPart.LEFT_SHOULDER]: ({ width }) => (
|
||||
<ShoulderIcon width={width}></ShoulderIcon>
|
||||
),
|
||||
[BodyPart.LEFT_UPPER_ARM]: ({ width }) => (
|
||||
<UpperArmIcon width={width}></UpperArmIcon>
|
||||
),
|
||||
[BodyPart.LEFT_UPPER_LEG]: ({ width }) => (
|
||||
<UpperLegIcon width={width}></UpperLegIcon>
|
||||
),
|
||||
[BodyPart.NECK]: ({ width }) => <NeckIcon width={width}></NeckIcon>,
|
||||
[BodyPart.NONE]: ({ width }) => <SlimeVRIcon width={width}></SlimeVRIcon>,
|
||||
[BodyPart.LEFT_HAND]: ({ width }) => <ControllerIcon width={width} />,
|
||||
[BodyPart.LEFT_LOWER_ARM]: ({ width }) => <LowerArmIcon width={width} />,
|
||||
[BodyPart.LEFT_LOWER_LEG]: ({ width }) => <AnkleIcon width={width} />,
|
||||
[BodyPart.LEFT_SHOULDER]: ({ width }) => <ShoulderIcon width={width} />,
|
||||
[BodyPart.LEFT_UPPER_ARM]: ({ width }) => <UpperArmIcon width={width} />,
|
||||
[BodyPart.LEFT_UPPER_LEG]: ({ width }) => <UpperLegIcon width={width} />,
|
||||
[BodyPart.NECK]: ({ width }) => <NeckIcon width={width} />,
|
||||
[BodyPart.NONE]: ({ width }) => <SlimeVRIcon width={width} />,
|
||||
[BodyPart.RIGHT_FOOT]: ({ width, currentLocales }) =>
|
||||
currentLocales.includes('en-x-owo') ? (
|
||||
<PawIcon></PawIcon>
|
||||
<PawIcon />
|
||||
) : (
|
||||
<FootIcon width={width} flipped></FootIcon>
|
||||
<FootIcon width={width} flipped />
|
||||
),
|
||||
[BodyPart.RIGHT_HAND]: ({ width }) => (
|
||||
<ControllerIcon width={width} flipped></ControllerIcon>
|
||||
<ControllerIcon width={width} flipped />
|
||||
),
|
||||
[BodyPart.RIGHT_LOWER_ARM]: ({ width }) => (
|
||||
<LowerArmIcon width={width} flipped></LowerArmIcon>
|
||||
<LowerArmIcon width={width} flipped />
|
||||
),
|
||||
[BodyPart.RIGHT_LOWER_LEG]: ({ width }) => (
|
||||
<AnkleIcon width={width} flipped></AnkleIcon>
|
||||
),
|
||||
[BodyPart.RIGHT_SHOULDER]: ({ width }) => (
|
||||
<ShoulderIcon width={width}></ShoulderIcon>
|
||||
<AnkleIcon width={width} flipped />
|
||||
),
|
||||
[BodyPart.RIGHT_SHOULDER]: ({ width }) => <ShoulderIcon width={width} />,
|
||||
[BodyPart.RIGHT_UPPER_ARM]: ({ width }) => (
|
||||
<UpperArmIcon width={width} flipped></UpperArmIcon>
|
||||
<UpperArmIcon width={width} flipped />
|
||||
),
|
||||
[BodyPart.RIGHT_UPPER_LEG]: ({ width }) => (
|
||||
<UpperLegIcon width={width} flipped></UpperLegIcon>
|
||||
<UpperLegIcon width={width} flipped />
|
||||
),
|
||||
[BodyPart.WAIST]: ({ width }) => <WaistIcon width={width}></WaistIcon>,
|
||||
[BodyPart.WAIST]: ({ width }) => <WaistIcon width={width} />,
|
||||
[BodyPart.LEFT_THUMB_METACARPAL]: ({ width }) => (
|
||||
<FingersIcon width={width}></FingersIcon>
|
||||
),
|
||||
[BodyPart.LEFT_THUMB_PROXIMAL]: ({ width }) => (
|
||||
<FingersIcon width={width}></FingersIcon>
|
||||
),
|
||||
[BodyPart.LEFT_THUMB_DISTAL]: ({ width }) => (
|
||||
<FingersIcon width={width}></FingersIcon>
|
||||
),
|
||||
[BodyPart.LEFT_INDEX_PROXIMAL]: ({ width }) => (
|
||||
<FingersIcon width={width}></FingersIcon>
|
||||
<FingersIcon width={width} />
|
||||
),
|
||||
[BodyPart.LEFT_THUMB_PROXIMAL]: ({ width }) => <FingersIcon width={width} />,
|
||||
[BodyPart.LEFT_THUMB_DISTAL]: ({ width }) => <FingersIcon width={width} />,
|
||||
[BodyPart.LEFT_INDEX_PROXIMAL]: ({ width }) => <FingersIcon width={width} />,
|
||||
[BodyPart.LEFT_INDEX_INTERMEDIATE]: ({ width }) => (
|
||||
<FingersIcon width={width}></FingersIcon>
|
||||
),
|
||||
[BodyPart.LEFT_INDEX_DISTAL]: ({ width }) => (
|
||||
<FingersIcon width={width}></FingersIcon>
|
||||
),
|
||||
[BodyPart.LEFT_MIDDLE_PROXIMAL]: ({ width }) => (
|
||||
<FingersIcon width={width}></FingersIcon>
|
||||
<FingersIcon width={width} />
|
||||
),
|
||||
[BodyPart.LEFT_INDEX_DISTAL]: ({ width }) => <FingersIcon width={width} />,
|
||||
[BodyPart.LEFT_MIDDLE_PROXIMAL]: ({ width }) => <FingersIcon width={width} />,
|
||||
[BodyPart.LEFT_MIDDLE_INTERMEDIATE]: ({ width }) => (
|
||||
<FingersIcon width={width}></FingersIcon>
|
||||
),
|
||||
[BodyPart.LEFT_MIDDLE_DISTAL]: ({ width }) => (
|
||||
<FingersIcon width={width}></FingersIcon>
|
||||
),
|
||||
[BodyPart.LEFT_RING_PROXIMAL]: ({ width }) => (
|
||||
<FingersIcon width={width}></FingersIcon>
|
||||
<FingersIcon width={width} />
|
||||
),
|
||||
[BodyPart.LEFT_MIDDLE_DISTAL]: ({ width }) => <FingersIcon width={width} />,
|
||||
[BodyPart.LEFT_RING_PROXIMAL]: ({ width }) => <FingersIcon width={width} />,
|
||||
[BodyPart.LEFT_RING_INTERMEDIATE]: ({ width }) => (
|
||||
<FingersIcon width={width}></FingersIcon>
|
||||
),
|
||||
[BodyPart.LEFT_RING_DISTAL]: ({ width }) => (
|
||||
<FingersIcon width={width}></FingersIcon>
|
||||
),
|
||||
[BodyPart.LEFT_LITTLE_PROXIMAL]: ({ width }) => (
|
||||
<FingersIcon width={width}></FingersIcon>
|
||||
<FingersIcon width={width} />
|
||||
),
|
||||
[BodyPart.LEFT_RING_DISTAL]: ({ width }) => <FingersIcon width={width} />,
|
||||
[BodyPart.LEFT_LITTLE_PROXIMAL]: ({ width }) => <FingersIcon width={width} />,
|
||||
[BodyPart.LEFT_LITTLE_INTERMEDIATE]: ({ width }) => (
|
||||
<FingersIcon width={width}></FingersIcon>
|
||||
),
|
||||
[BodyPart.LEFT_LITTLE_DISTAL]: ({ width }) => (
|
||||
<FingersIcon width={width}></FingersIcon>
|
||||
<FingersIcon width={width} />
|
||||
),
|
||||
[BodyPart.LEFT_LITTLE_DISTAL]: ({ width }) => <FingersIcon width={width} />,
|
||||
[BodyPart.RIGHT_THUMB_METACARPAL]: ({ width }) => (
|
||||
<FingersIcon width={width}></FingersIcon>
|
||||
),
|
||||
[BodyPart.RIGHT_THUMB_PROXIMAL]: ({ width }) => (
|
||||
<FingersIcon width={width}></FingersIcon>
|
||||
),
|
||||
[BodyPart.RIGHT_THUMB_DISTAL]: ({ width }) => (
|
||||
<FingersIcon width={width}></FingersIcon>
|
||||
),
|
||||
[BodyPart.RIGHT_INDEX_PROXIMAL]: ({ width }) => (
|
||||
<FingersIcon width={width}></FingersIcon>
|
||||
<FingersIcon width={width} />
|
||||
),
|
||||
[BodyPart.RIGHT_THUMB_PROXIMAL]: ({ width }) => <FingersIcon width={width} />,
|
||||
[BodyPart.RIGHT_THUMB_DISTAL]: ({ width }) => <FingersIcon width={width} />,
|
||||
[BodyPart.RIGHT_INDEX_PROXIMAL]: ({ width }) => <FingersIcon width={width} />,
|
||||
[BodyPart.RIGHT_INDEX_INTERMEDIATE]: ({ width }) => (
|
||||
<FingersIcon width={width}></FingersIcon>
|
||||
),
|
||||
[BodyPart.RIGHT_INDEX_DISTAL]: ({ width }) => (
|
||||
<FingersIcon width={width}></FingersIcon>
|
||||
<FingersIcon width={width} />
|
||||
),
|
||||
[BodyPart.RIGHT_INDEX_DISTAL]: ({ width }) => <FingersIcon width={width} />,
|
||||
[BodyPart.RIGHT_MIDDLE_PROXIMAL]: ({ width }) => (
|
||||
<FingersIcon width={width}></FingersIcon>
|
||||
<FingersIcon width={width} />
|
||||
),
|
||||
[BodyPart.RIGHT_MIDDLE_INTERMEDIATE]: ({ width }) => (
|
||||
<FingersIcon width={width}></FingersIcon>
|
||||
),
|
||||
[BodyPart.RIGHT_MIDDLE_DISTAL]: ({ width }) => (
|
||||
<FingersIcon width={width}></FingersIcon>
|
||||
),
|
||||
[BodyPart.RIGHT_RING_PROXIMAL]: ({ width }) => (
|
||||
<FingersIcon width={width}></FingersIcon>
|
||||
<FingersIcon width={width} />
|
||||
),
|
||||
[BodyPart.RIGHT_MIDDLE_DISTAL]: ({ width }) => <FingersIcon width={width} />,
|
||||
[BodyPart.RIGHT_RING_PROXIMAL]: ({ width }) => <FingersIcon width={width} />,
|
||||
[BodyPart.RIGHT_RING_INTERMEDIATE]: ({ width }) => (
|
||||
<FingersIcon width={width}></FingersIcon>
|
||||
),
|
||||
[BodyPart.RIGHT_RING_DISTAL]: ({ width }) => (
|
||||
<FingersIcon width={width}></FingersIcon>
|
||||
<FingersIcon width={width} />
|
||||
),
|
||||
[BodyPart.RIGHT_RING_DISTAL]: ({ width }) => <FingersIcon width={width} />,
|
||||
[BodyPart.RIGHT_LITTLE_PROXIMAL]: ({ width }) => (
|
||||
<FingersIcon width={width}></FingersIcon>
|
||||
<FingersIcon width={width} />
|
||||
),
|
||||
[BodyPart.RIGHT_LITTLE_INTERMEDIATE]: ({ width }) => (
|
||||
<FingersIcon width={width}></FingersIcon>
|
||||
),
|
||||
[BodyPart.RIGHT_LITTLE_DISTAL]: ({ width }) => (
|
||||
<FingersIcon width={width}></FingersIcon>
|
||||
<FingersIcon width={width} />
|
||||
),
|
||||
[BodyPart.RIGHT_LITTLE_DISTAL]: ({ width }) => <FingersIcon width={width} />,
|
||||
};
|
||||
|
||||
export function BodyPartIcon({
|
||||
|
||||
@@ -29,7 +29,7 @@ function ButtonContent({
|
||||
</div>
|
||||
{loading && (
|
||||
<div className="absolute top-0 left-0 w-full h-full flex justify-center items-center fill-background-10">
|
||||
<LoaderIcon slimeState={SlimeState.JUMPY}></LoaderIcon>
|
||||
<LoaderIcon slimeState={SlimeState.JUMPY} />
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
|
||||
@@ -1,31 +1,36 @@
|
||||
import classNames from 'classnames';
|
||||
import { useMemo } from 'react';
|
||||
import { forwardRef, useMemo } from 'react';
|
||||
import { Control, Controller } from 'react-hook-form';
|
||||
|
||||
export const CHECKBOX_CLASSES = classNames(
|
||||
'bg-background-50 border-background-50 rounded-md w-5 h-5 text-accent-background-30 focus:border-accent-background-40 focus:ring-transparent focus:ring-offset-transparent focus:outline-transparent'
|
||||
);
|
||||
|
||||
export function CheckBox({
|
||||
label,
|
||||
variant = 'checkbox',
|
||||
color = 'primary',
|
||||
control,
|
||||
outlined,
|
||||
name,
|
||||
loading,
|
||||
// input props
|
||||
disabled,
|
||||
...props
|
||||
}: {
|
||||
label: string;
|
||||
control: Control<any>;
|
||||
name: string;
|
||||
variant?: 'checkbox' | 'toggle';
|
||||
color?: 'primary' | 'secondary' | 'tertiary';
|
||||
outlined?: boolean;
|
||||
loading?: boolean;
|
||||
} & React.HTMLProps<HTMLInputElement>) {
|
||||
export const CheckboxInternal = forwardRef<
|
||||
HTMLInputElement,
|
||||
{
|
||||
disabled?: boolean;
|
||||
variant?: 'checkbox' | 'toggle';
|
||||
color?: 'primary' | 'secondary' | 'tertiary';
|
||||
label?: string;
|
||||
outlined?: boolean;
|
||||
loading?: boolean;
|
||||
name: string;
|
||||
} & Partial<React.HTMLProps<HTMLInputElement>>
|
||||
>(function AppCheckbox(
|
||||
{
|
||||
variant = 'checkbox',
|
||||
color = 'primary',
|
||||
outlined = false,
|
||||
loading = false,
|
||||
disabled = false,
|
||||
label,
|
||||
onChange,
|
||||
checked,
|
||||
name,
|
||||
},
|
||||
ref
|
||||
) {
|
||||
const classes = useMemo(() => {
|
||||
const vriantsMap = {
|
||||
checkbox: {
|
||||
@@ -44,68 +49,102 @@ export function CheckBox({
|
||||
return vriantsMap[variant];
|
||||
}, [variant]);
|
||||
|
||||
return (
|
||||
<div
|
||||
className={classNames(
|
||||
{
|
||||
'rounded-md': outlined,
|
||||
'text-background-40': disabled,
|
||||
'text-background-10': !disabled,
|
||||
'bg-background-60': outlined && color === 'primary',
|
||||
'bg-background-70': outlined && color === 'secondary',
|
||||
'bg-background-50': outlined && color === 'tertiary',
|
||||
},
|
||||
'flex items-center gap-2 w-full'
|
||||
)}
|
||||
>
|
||||
<label
|
||||
className={classNames(
|
||||
'w-full h-[42px] flex gap-2 items-center text-standard-bold',
|
||||
{
|
||||
'px-3': outlined,
|
||||
'cursor-pointer': !disabled || !loading,
|
||||
'cursor-default': disabled || loading,
|
||||
}
|
||||
)}
|
||||
>
|
||||
<input
|
||||
ref={ref}
|
||||
onChange={onChange}
|
||||
checked={checked}
|
||||
name={name}
|
||||
className={classes.checkbox}
|
||||
type="checkbox"
|
||||
disabled={disabled || loading}
|
||||
/>
|
||||
{variant === 'toggle' && (
|
||||
<div
|
||||
className={classNames(classes.toggle, {
|
||||
'bg-accent-background-30': checked && !disabled && !loading,
|
||||
'bg-accent-background-50': checked && disabled,
|
||||
'bg-accent-background-30 animate-pulse': loading && !disabled,
|
||||
'bg-background-50':
|
||||
((!checked && color == 'primary') || color == 'secondary') &&
|
||||
!loading,
|
||||
'bg-background-40': !checked && color == 'tertiary' && !loading,
|
||||
})}
|
||||
>
|
||||
<div
|
||||
className={classNames(classes.pin, {
|
||||
'left-0': !checked && !loading,
|
||||
'opacity-0': loading,
|
||||
'right-0': checked && !loading,
|
||||
'bg-background-30': disabled,
|
||||
})}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
{label}
|
||||
</label>
|
||||
</div>
|
||||
);
|
||||
});
|
||||
|
||||
export function CheckBox({
|
||||
label,
|
||||
variant = 'checkbox',
|
||||
color = 'primary',
|
||||
control,
|
||||
outlined,
|
||||
name,
|
||||
loading,
|
||||
disabled,
|
||||
}: {
|
||||
label: string;
|
||||
control: Control<any>;
|
||||
name: string;
|
||||
variant?: 'checkbox' | 'toggle';
|
||||
color?: 'primary' | 'secondary' | 'tertiary';
|
||||
outlined?: boolean;
|
||||
loading?: boolean;
|
||||
} & React.HTMLProps<HTMLInputElement>) {
|
||||
return (
|
||||
<Controller
|
||||
control={control}
|
||||
name={name}
|
||||
render={({ field: { onChange, value, ref, name } }) => (
|
||||
<div
|
||||
className={classNames(
|
||||
{
|
||||
'rounded-lg': outlined,
|
||||
'text-background-10': !outlined || disabled,
|
||||
'bg-background-60': outlined && color === 'primary',
|
||||
'bg-background-70': outlined && color === 'secondary',
|
||||
'bg-background-50': outlined && color === 'tertiary',
|
||||
},
|
||||
'flex items-center gap-2 w-full'
|
||||
)}
|
||||
>
|
||||
<label
|
||||
className={classNames(
|
||||
'w-full py-3 flex gap-2 items-center text-standard-bold',
|
||||
{
|
||||
'px-3': outlined,
|
||||
'cursor-pointer': !disabled || !loading,
|
||||
'cursor-default': disabled || loading,
|
||||
}
|
||||
)}
|
||||
>
|
||||
<input
|
||||
ref={ref}
|
||||
onChange={onChange}
|
||||
checked={value || false}
|
||||
name={name}
|
||||
className={classes.checkbox}
|
||||
type="checkbox"
|
||||
disabled={disabled || loading}
|
||||
{...props}
|
||||
/>
|
||||
{variant === 'toggle' && (
|
||||
<div
|
||||
className={classNames(classes.toggle, {
|
||||
'bg-accent-background-30': value && !disabled && !loading,
|
||||
'bg-accent-background-50': value && disabled,
|
||||
'bg-accent-background-30 animate-pulse': loading && !disabled,
|
||||
'bg-background-50':
|
||||
((!value && color == 'primary') || color == 'secondary') &&
|
||||
!loading,
|
||||
'bg-background-40': !value && color == 'tertiary' && !loading,
|
||||
})}
|
||||
>
|
||||
<div
|
||||
className={classNames(classes.pin, {
|
||||
'left-0': !value && !loading,
|
||||
'opacity-0': loading,
|
||||
'right-0': value && !loading,
|
||||
'bg-background-30': disabled,
|
||||
})}
|
||||
></div>
|
||||
</div>
|
||||
)}
|
||||
{label}
|
||||
</label>
|
||||
</div>
|
||||
<CheckboxInternal
|
||||
label={label}
|
||||
variant={variant}
|
||||
color={color}
|
||||
outlined={outlined}
|
||||
name={name}
|
||||
loading={loading}
|
||||
disabled={disabled}
|
||||
checked={value}
|
||||
onChange={onChange}
|
||||
ref={ref}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
);
|
||||
|
||||
@@ -1,240 +1,434 @@
|
||||
import classNames from 'classnames';
|
||||
import { ReactNode, useEffect, useLayoutEffect, useRef, useState } from 'react';
|
||||
import { Control, Controller, UseControllerProps } from 'react-hook-form';
|
||||
import {
|
||||
forwardRef,
|
||||
ReactNode,
|
||||
useEffect,
|
||||
useLayoutEffect,
|
||||
useRef,
|
||||
useState,
|
||||
} from 'react';
|
||||
import {
|
||||
Control,
|
||||
FieldError,
|
||||
useController,
|
||||
UseControllerProps,
|
||||
} from 'react-hook-form';
|
||||
import { ArrowDownIcon, ArrowUpIcon } from './icon/ArrowIcons';
|
||||
import { a11yClick } from '@/utils/a11y';
|
||||
import { createPortal } from 'react-dom';
|
||||
import { ArrowDownIcon } from './icon/ArrowIcons';
|
||||
|
||||
interface DropdownProps {
|
||||
direction?: DropdownDirection;
|
||||
variant?: 'primary' | 'secondary' | 'tertiary';
|
||||
alignment?: 'right' | 'left';
|
||||
display?: 'fit' | 'block';
|
||||
placeholder: string;
|
||||
control: Control<any>;
|
||||
name: string;
|
||||
items: DropdownItem[];
|
||||
maxHeight?: string | number;
|
||||
rules?: UseControllerProps<any>['rules'];
|
||||
}
|
||||
|
||||
type DropdownItemsProps = Pick<
|
||||
DropdownProps,
|
||||
'direction' | 'variant' | 'alignment' | 'display' | 'items' | 'maxHeight'
|
||||
> & {
|
||||
onSelectItem: (item: DropdownItem) => void;
|
||||
onBackdropClick: () => void;
|
||||
type DropdownItem = {
|
||||
value: string;
|
||||
dropdownBounds: DOMRect;
|
||||
label: ReactNode;
|
||||
};
|
||||
|
||||
export interface DropdownItem {
|
||||
label?: string;
|
||||
component?: ReactNode;
|
||||
value: string;
|
||||
fontName?: string;
|
||||
}
|
||||
|
||||
export type DropdownDirection = 'up' | 'down';
|
||||
|
||||
export function DropdownItems({
|
||||
display,
|
||||
direction,
|
||||
variant,
|
||||
alignment,
|
||||
items,
|
||||
maxHeight,
|
||||
value,
|
||||
dropdownBounds,
|
||||
onSelectItem,
|
||||
onBackdropClick,
|
||||
}: DropdownItemsProps) {
|
||||
const ref = useRef<HTMLDivElement | null>(null);
|
||||
const [itemBounds, setItemBounds] = useState<DOMRect>();
|
||||
type DropdownProps = {
|
||||
direction?: DropdownDirection;
|
||||
variant?: 'primary' | 'secondary' | 'tertiary';
|
||||
alignment?: 'left' | 'right';
|
||||
display?: 'fit' | 'block';
|
||||
placeholder: string;
|
||||
name: string;
|
||||
items: DropdownItem[];
|
||||
maxHeight?: string | number;
|
||||
error?: FieldError;
|
||||
};
|
||||
|
||||
const updateBounds = () => {
|
||||
if (!ref.current) return;
|
||||
setItemBounds(ref.current?.getBoundingClientRect());
|
||||
function DropdownItem({
|
||||
item,
|
||||
variant,
|
||||
onSelected,
|
||||
isOpen,
|
||||
value,
|
||||
innerFocusValue,
|
||||
name,
|
||||
}: {
|
||||
item: DropdownItem;
|
||||
variant: Required<DropdownProps>['variant'];
|
||||
onSelected: () => void;
|
||||
isOpen: boolean;
|
||||
value: any;
|
||||
innerFocusValue: string | null;
|
||||
name: string;
|
||||
}) {
|
||||
const variantStyles = {
|
||||
primary:
|
||||
'text-background-20 checked-hover:text-background-10 checked-hover:bg-background-50 focus:text-background-10 focus:bg-background-50',
|
||||
secondary:
|
||||
'text-background-20 checked-hover:text-background-10 checked-hover:bg-background-60 focus:text-background-10 focus:bg-background-60',
|
||||
tertiary:
|
||||
'bg-accent-background-30 checked-hover:bg-accent-background-20 focus:bg-accent-background-20',
|
||||
};
|
||||
|
||||
useLayoutEffect(() => {
|
||||
updateBounds();
|
||||
}, []);
|
||||
const ref = useRef<HTMLDivElement>(null);
|
||||
|
||||
const GAP = 8;
|
||||
useLayoutEffect(() => {
|
||||
if (!innerFocusValue) {
|
||||
return;
|
||||
}
|
||||
if (innerFocusValue === item.value) {
|
||||
ref.current?.scrollIntoView({ block: 'nearest' });
|
||||
}
|
||||
}, [innerFocusValue]);
|
||||
|
||||
useLayoutEffect(() => {
|
||||
if (!isOpen) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (
|
||||
innerFocusValue === item.value ||
|
||||
(!innerFocusValue && item.value === value)
|
||||
) {
|
||||
ref.current?.scrollIntoView({ block: 'nearest' });
|
||||
}
|
||||
}, [isOpen]);
|
||||
|
||||
return (
|
||||
<div
|
||||
className={classNames(
|
||||
'py-2 px-4 min-w-max cursor-pointer',
|
||||
variantStyles[variant],
|
||||
innerFocusValue === item.value && 'ring-inset ring-4'
|
||||
)}
|
||||
onClick={onSelected}
|
||||
onKeyDown={(e) => a11yClick(e) && onSelected()}
|
||||
tabIndex={-1}
|
||||
aria-hidden={!isOpen}
|
||||
data-checked={item.value === value}
|
||||
ref={ref}
|
||||
id={`__dropdownList-${name}-item-${item.value}`}
|
||||
>
|
||||
{item.label}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
type DropdownListProps = {
|
||||
isOpen: boolean;
|
||||
onSelect: (item: DropdownItem) => void;
|
||||
value: any;
|
||||
innerFocusValue: string | null;
|
||||
} & Pick<
|
||||
Required<DropdownProps>,
|
||||
| 'display'
|
||||
| 'alignment'
|
||||
| 'direction'
|
||||
| 'items'
|
||||
| 'variant'
|
||||
| 'maxHeight'
|
||||
| 'name'
|
||||
>;
|
||||
|
||||
const DropdownList = forwardRef<HTMLDivElement, DropdownListProps>(function (
|
||||
{
|
||||
isOpen,
|
||||
onSelect,
|
||||
value,
|
||||
innerFocusValue,
|
||||
display,
|
||||
alignment,
|
||||
direction,
|
||||
items,
|
||||
variant,
|
||||
maxHeight,
|
||||
name,
|
||||
},
|
||||
ref
|
||||
) {
|
||||
const variantStyles = {
|
||||
primary: 'bg-background-60',
|
||||
secondary: 'bg-background-70',
|
||||
tertiary: 'bg-accent-background-30',
|
||||
};
|
||||
|
||||
const getDisplayStyle = () => {
|
||||
if (display === 'block') {
|
||||
return {
|
||||
left: 'var(--dropdown-field-left)',
|
||||
right: 'var(--dropdown-field-right)',
|
||||
};
|
||||
}
|
||||
return alignment === 'left'
|
||||
? { left: 'var(--dropdown-field-left)' }
|
||||
: { right: 'var(--dropdown-field-right)' };
|
||||
};
|
||||
|
||||
const directionStyles = {
|
||||
up: {
|
||||
bottom: 'calc(var(--dropdown-field-top) + 0.75rem)',
|
||||
},
|
||||
down: {
|
||||
top: 'calc(var(--dropdown-field-bottom) + 0.75rem)',
|
||||
},
|
||||
};
|
||||
|
||||
return (
|
||||
<div
|
||||
className={classNames(
|
||||
'grid fixed z-50 overflow-hidden transition-[grid-template-rows] rounded',
|
||||
isOpen ? 'grid-rows-[1fr]' : 'grid-rows-[0fr]',
|
||||
variantStyles[variant]
|
||||
)}
|
||||
style={{
|
||||
...getDisplayStyle(),
|
||||
...directionStyles[direction],
|
||||
}}
|
||||
onTransitionEnd={(e) => {
|
||||
if (!isOpen) {
|
||||
(e.target as HTMLDivElement).scrollTo({ top: 0 });
|
||||
}
|
||||
}}
|
||||
ref={ref}
|
||||
id={`__dropdownList-${name}`}
|
||||
>
|
||||
<ul
|
||||
className="flex flex-col min-h-0 text-sm overflow-y-scroll dropdown-scroll overscroll-contain"
|
||||
style={{ maxHeight }}
|
||||
>
|
||||
{items.map((item) => (
|
||||
<DropdownItem
|
||||
item={item}
|
||||
variant={variant}
|
||||
onSelected={() => onSelect(item)}
|
||||
isOpen={isOpen}
|
||||
key={item.value}
|
||||
value={value}
|
||||
innerFocusValue={innerFocusValue}
|
||||
name={name}
|
||||
/>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
);
|
||||
});
|
||||
|
||||
export function DropdownInside({
|
||||
direction = 'up',
|
||||
variant = 'primary',
|
||||
alignment = 'right',
|
||||
display = 'fit',
|
||||
placeholder,
|
||||
name,
|
||||
items,
|
||||
maxHeight = '50vh',
|
||||
value,
|
||||
onChange,
|
||||
error,
|
||||
}: DropdownProps & { value: string; onChange: (value: string) => void }) {
|
||||
const [isOpen, setIsOpen] = useState(false);
|
||||
|
||||
useLayoutEffect(() => {
|
||||
ref.current?.focus();
|
||||
}, [value]);
|
||||
|
||||
const variantStyles = {
|
||||
primary: 'bg-background-60 hover:bg-background-50',
|
||||
secondary: 'bg-background-70 hover:bg-background-60',
|
||||
tertiary: 'bg-accent-background-30 hover:bg-accent-background-20',
|
||||
};
|
||||
|
||||
const displayStyles = {
|
||||
fit: 'w-fit',
|
||||
block: 'w-full',
|
||||
};
|
||||
|
||||
const getShownValue = (value: any) =>
|
||||
value
|
||||
? (items.find((item) => item.value === value)?.label ?? placeholder)
|
||||
: placeholder;
|
||||
|
||||
const ref = useRef<HTMLDivElement>(null);
|
||||
const listRef = useRef<HTMLDivElement>(null);
|
||||
|
||||
const [innerFocusIndex, setInnerFocusIndex] = useState<number | null>(null);
|
||||
const getCurrentActiveIndex = () => {
|
||||
return items.findIndex((item) => item.value === value);
|
||||
};
|
||||
const innerFocusPrev = () => {
|
||||
const current = innerFocusIndex ?? getCurrentActiveIndex();
|
||||
|
||||
setInnerFocusIndex(current > 0 ? current - 1 : current);
|
||||
};
|
||||
const innerFocusNext = () => {
|
||||
const current = innerFocusIndex ?? getCurrentActiveIndex();
|
||||
|
||||
setInnerFocusIndex(current < items.length - 1 ? current + 1 : current);
|
||||
};
|
||||
|
||||
const updateFieldBoundingRect = () => {
|
||||
if (!ref.current || !listRef.current) {
|
||||
return;
|
||||
}
|
||||
const boundingRect = ref.current.getBoundingClientRect();
|
||||
|
||||
const left = boundingRect.left;
|
||||
const right = window.innerWidth - boundingRect.right;
|
||||
const top = window.innerHeight - boundingRect.top;
|
||||
const bottom = boundingRect.bottom;
|
||||
listRef.current?.style.setProperty('--dropdown-field-left', `${left}px`);
|
||||
listRef.current?.style.setProperty('--dropdown-field-right', `${right}px`);
|
||||
listRef.current?.style.setProperty('--dropdown-field-top', `${top}px`);
|
||||
listRef.current?.style.setProperty(
|
||||
'--dropdown-field-bottom',
|
||||
`${bottom}px`
|
||||
);
|
||||
};
|
||||
useLayoutEffect(updateFieldBoundingRect, [ref.current]);
|
||||
window.addEventListener('scroll', updateFieldBoundingRect, true);
|
||||
window.addEventListener('resize', updateFieldBoundingRect, true);
|
||||
|
||||
useEffect(() => {
|
||||
if (!isOpen) {
|
||||
setInnerFocusIndex(null);
|
||||
}
|
||||
}, [isOpen]);
|
||||
|
||||
return (
|
||||
<>
|
||||
<div
|
||||
className="z-[999] fixed top-0 w-full h-full"
|
||||
onClick={onBackdropClick}
|
||||
></div>
|
||||
<div
|
||||
ref={ref}
|
||||
className={classNames(
|
||||
'z-[1000] fixed rounded shadow',
|
||||
'overflow-y-auto dropdown-scroll overflow-x-hidden text-background-10',
|
||||
variant == 'primary' && 'bg-background-60',
|
||||
variant == 'secondary' && 'bg-background-70',
|
||||
variant == 'tertiary' && 'bg-accent-background-30',
|
||||
itemBounds?.height == 0 && 'opacity-0' // Avoid flicker while the component find its position
|
||||
'min-h-[42px] text-background-10 text-left dropdown',
|
||||
displayStyles[display]
|
||||
)}
|
||||
style={{
|
||||
maxHeight: maxHeight,
|
||||
left:
|
||||
alignment === 'left'
|
||||
? dropdownBounds.left
|
||||
: dropdownBounds.left +
|
||||
dropdownBounds.width -
|
||||
(itemBounds?.width ?? 0),
|
||||
top:
|
||||
direction == 'down'
|
||||
? dropdownBounds.bottom + GAP
|
||||
: dropdownBounds.top - (itemBounds?.height ?? 0) - GAP,
|
||||
minWidth: display === 'block' ? dropdownBounds.width : 'inherit',
|
||||
onClick={() => setIsOpen(!isOpen)}
|
||||
onKeyDown={(e) => {
|
||||
if (!isOpen) {
|
||||
if (a11yClick(e)) {
|
||||
setInnerFocusIndex(
|
||||
items.findIndex((item) => item.value === value)
|
||||
);
|
||||
setIsOpen(!isOpen);
|
||||
e.preventDefault();
|
||||
return;
|
||||
}
|
||||
|
||||
if (e.key === 'ArrowDown') {
|
||||
setInnerFocusIndex(0);
|
||||
setIsOpen(true);
|
||||
e.preventDefault();
|
||||
return;
|
||||
}
|
||||
|
||||
if (e.key === 'ArrowUp') {
|
||||
setInnerFocusIndex(items.length - 1);
|
||||
setIsOpen(true);
|
||||
e.preventDefault();
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
if (a11yClick(e)) {
|
||||
e.preventDefault();
|
||||
if (innerFocusIndex === null) {
|
||||
setIsOpen(false);
|
||||
return;
|
||||
}
|
||||
|
||||
onChange(items[innerFocusIndex].value);
|
||||
setIsOpen(false);
|
||||
}
|
||||
switch (e.key) {
|
||||
case 'ArrowUp':
|
||||
innerFocusPrev();
|
||||
e.preventDefault();
|
||||
return;
|
||||
case 'ArrowDown':
|
||||
innerFocusNext();
|
||||
e.preventDefault();
|
||||
return;
|
||||
case 'Escape':
|
||||
setIsOpen(false);
|
||||
return;
|
||||
case 'Home':
|
||||
setInnerFocusIndex(0);
|
||||
return;
|
||||
case 'End':
|
||||
setInnerFocusIndex(items.length - 1);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}}
|
||||
onBlur={(e) => {
|
||||
if (
|
||||
e.currentTarget.contains(e.relatedTarget) ||
|
||||
listRef?.current?.contains(e.relatedTarget)
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
setIsOpen(false);
|
||||
}}
|
||||
>
|
||||
<ul className="py-1 text-sm flex flex-col">
|
||||
{items.map((item) => (
|
||||
<li
|
||||
style={item.fontName ? { fontFamily: item.fontName } : {}}
|
||||
className={classNames(
|
||||
'py-2 px-4 min-w-max cursor-pointer first-of-type:*:pointer-events-none',
|
||||
variant == 'primary' &&
|
||||
'checked-hover:bg-background-50 text-background-20 ' +
|
||||
'checked-hover:text-background-10',
|
||||
variant == 'secondary' &&
|
||||
'checked-hover:bg-background-60 text-background-20 ' +
|
||||
'checked-hover:text-background-10',
|
||||
variant == 'tertiary' &&
|
||||
'bg-accent-background-30 checked-hover:bg-accent-background-20'
|
||||
)}
|
||||
onClick={() => {
|
||||
onSelectItem(item);
|
||||
}}
|
||||
onKeyDown={(ev) => {
|
||||
if (!a11yClick(ev)) return;
|
||||
onSelectItem(item);
|
||||
}}
|
||||
key={item.value}
|
||||
tabIndex={0}
|
||||
data-checked={item.value === value}
|
||||
>
|
||||
{item.component || item.label}
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
<div
|
||||
className={classNames(
|
||||
'flex flex-row justify-between items-center gap-2 pl-3 pr-5 py-3 rounded-md cursor-pointer focus:ring-4 relative',
|
||||
variantStyles[variant]
|
||||
)}
|
||||
tabIndex={0}
|
||||
ref={ref}
|
||||
aria-controls={`__dropdownList-${name}`}
|
||||
aria-activedescendant={
|
||||
innerFocusIndex === null
|
||||
? ''
|
||||
: `__dropdownList-${name}-item-${items[innerFocusIndex].value}`
|
||||
}
|
||||
role="combobox"
|
||||
>
|
||||
{getShownValue(value)}
|
||||
<div className="fill-background-10">
|
||||
{direction === 'up' ? (
|
||||
<ArrowUpIcon size={16} />
|
||||
) : (
|
||||
<ArrowDownIcon size={16} />
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
{error?.message && (
|
||||
<div className="text-status-critical">{error.message}</div>
|
||||
)}
|
||||
{createPortal(
|
||||
<DropdownList
|
||||
alignment={alignment}
|
||||
direction={direction}
|
||||
display={display}
|
||||
isOpen={isOpen}
|
||||
items={items}
|
||||
onSelect={(item: DropdownItem) => {
|
||||
ref.current?.focus();
|
||||
onChange(item.value);
|
||||
}}
|
||||
variant={variant}
|
||||
maxHeight={maxHeight}
|
||||
value={value}
|
||||
ref={listRef}
|
||||
innerFocusValue={
|
||||
innerFocusIndex === null ? null : items[innerFocusIndex].value
|
||||
}
|
||||
name={name}
|
||||
/>,
|
||||
document.body
|
||||
)}
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export function Dropdown({
|
||||
direction = 'up',
|
||||
variant = 'primary',
|
||||
alignment = 'right',
|
||||
display = 'fit',
|
||||
maxHeight = '50vh',
|
||||
placeholder,
|
||||
control,
|
||||
rules,
|
||||
name,
|
||||
items = [],
|
||||
}: DropdownProps) {
|
||||
const ref = useRef<HTMLDivElement | null>(null);
|
||||
const [isOpen, setOpenState] = useState(false);
|
||||
const [dropdownBounds, setDropdownBounds] = useState<DOMRect>();
|
||||
|
||||
const updateBounds = () => {
|
||||
if (!ref.current) return;
|
||||
setDropdownBounds(ref.current?.getBoundingClientRect());
|
||||
};
|
||||
|
||||
const onResize = () => {
|
||||
// We could have two behaviours here:
|
||||
// 1 - We update the bounds of the dropdown so the size and position match.
|
||||
// Works but have a slight delay when resizing, kinda looks laggy
|
||||
// 2 - We close the dropdown on resize.
|
||||
// We could consider this as the same as clicking outside of the dropdown
|
||||
// This is the approach choosen RN
|
||||
setOpen(false);
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
window.addEventListener('resize', onResize);
|
||||
return () => {
|
||||
window.removeEventListener('resize', onResize);
|
||||
};
|
||||
}, []);
|
||||
|
||||
const setOpen = (open: boolean | ((prevState: boolean) => boolean)) => {
|
||||
updateBounds();
|
||||
setOpenState(open);
|
||||
};
|
||||
rules,
|
||||
...props
|
||||
}: DropdownProps & {
|
||||
control: Control<any>;
|
||||
rules?: UseControllerProps<any>['rules'];
|
||||
}) {
|
||||
const {
|
||||
field: { value, onChange },
|
||||
} = useController({ name, control, rules });
|
||||
|
||||
return (
|
||||
<Controller
|
||||
control={control}
|
||||
name={name}
|
||||
rules={rules}
|
||||
render={({ field: { onChange, value } }) => (
|
||||
<>
|
||||
<div
|
||||
ref={ref}
|
||||
className={classNames(
|
||||
'min-h-[42px] text-background-10 px-5 py-3 rounded-md focus:ring-4 text-center dropdown',
|
||||
'flex cursor-pointer',
|
||||
variant == 'primary' && 'bg-background-60 hover:bg-background-50',
|
||||
variant == 'secondary' &&
|
||||
'bg-background-70 hover:bg-background-60',
|
||||
variant == 'tertiary' &&
|
||||
'bg-accent-background-30 hover:bg-accent-background-20',
|
||||
display === 'fit' && 'w-fit',
|
||||
display === 'block' && 'w-full'
|
||||
)}
|
||||
onClick={() => setOpen((open) => !open)}
|
||||
onKeyDown={(ev) => a11yClick(ev) && setOpen((open) => !open)}
|
||||
tabIndex={0}
|
||||
>
|
||||
<div className="flex-grow text-standard first:pointer-events-none">
|
||||
{items.find((i) => i.value == value)?.component ||
|
||||
items.find((i) => i.value == value)?.label ||
|
||||
placeholder}
|
||||
</div>
|
||||
<div
|
||||
className={classNames(
|
||||
'ml-2 fill-background-10 flex items-center',
|
||||
direction == 'up' && 'rotate-180',
|
||||
direction == 'down' && 'rotate-0'
|
||||
)}
|
||||
>
|
||||
<ArrowDownIcon size={16}></ArrowDownIcon>
|
||||
</div>
|
||||
</div>
|
||||
{isOpen &&
|
||||
dropdownBounds &&
|
||||
createPortal(
|
||||
<DropdownItems
|
||||
items={items}
|
||||
dropdownBounds={dropdownBounds}
|
||||
direction={direction}
|
||||
display={display}
|
||||
alignment={alignment}
|
||||
maxHeight={maxHeight}
|
||||
variant={variant}
|
||||
value={value}
|
||||
onSelectItem={(item) => {
|
||||
setOpen(false);
|
||||
onChange(item.value);
|
||||
}}
|
||||
onBackdropClick={() => {
|
||||
setOpen(false);
|
||||
}}
|
||||
></DropdownItems>,
|
||||
document.body
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
/>
|
||||
<DropdownInside value={value} name={name} {...props} onChange={onChange} />
|
||||
);
|
||||
}
|
||||
@@ -49,7 +49,7 @@ export const FileInputContentBlank = ({
|
||||
<Localized
|
||||
id={label}
|
||||
elems={{
|
||||
u: <span className="underline text-background-20"></span>,
|
||||
u: <span className="underline text-background-20" />,
|
||||
}}
|
||||
>
|
||||
<Typography>
|
||||
@@ -85,7 +85,7 @@ export const FileInputContentFile = ({
|
||||
{directory ? <FolderIcon /> : <FileIcon />}
|
||||
<span>{importedFileName}</span>
|
||||
</div>
|
||||
<span className="flex-grow"></span>
|
||||
<span className="flex-grow" />
|
||||
<a
|
||||
href="#"
|
||||
className="h-12 w-12 hover:bg-accent-background-20 cursor-pointer"
|
||||
@@ -188,7 +188,7 @@ export const FileInputInside = forwardRef<
|
||||
accept={accept}
|
||||
multiple={multiple}
|
||||
capture={capture}
|
||||
></input>
|
||||
/>
|
||||
</label>
|
||||
);
|
||||
});
|
||||
@@ -233,7 +233,7 @@ export const FileInput = ({
|
||||
capture={capture}
|
||||
multiple={multiple}
|
||||
importedFileName={importedFileName}
|
||||
></FileInputInside>
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
);
|
||||
|
||||
@@ -7,6 +7,7 @@ import {
|
||||
UseControllerProps,
|
||||
} from 'react-hook-form';
|
||||
import { EyeIcon } from './icon/EyeIcon';
|
||||
import { Typography } from './Typography';
|
||||
|
||||
interface InputProps {
|
||||
variant?: 'primary' | 'secondary' | 'tertiary';
|
||||
@@ -20,8 +21,8 @@ export const InputInside = forwardRef<
|
||||
variant?: 'primary' | 'secondary' | 'tertiary';
|
||||
label?: string;
|
||||
error?: FieldError;
|
||||
onChange: () => void;
|
||||
} & Partial<HTMLInputElement>
|
||||
autocomplete?: boolean | string;
|
||||
} & Partial<React.HTMLProps<HTMLInputElement>>
|
||||
>(function AppInput(
|
||||
{
|
||||
type,
|
||||
@@ -70,7 +71,7 @@ export const InputInside = forwardRef<
|
||||
variantsMap[variant],
|
||||
'w-full focus:ring-transparent focus:ring-offset-transparent min-h-[42px] z-10',
|
||||
'focus:outline-transparent rounded-md focus:border-accent-background-40',
|
||||
'text-standard relative transition-colors',
|
||||
'text-standard text-background-10 relative transition-colors',
|
||||
error && 'border-status-critical border-1'
|
||||
);
|
||||
}, [variant, disabled, error]);
|
||||
@@ -83,7 +84,7 @@ export const InputInside = forwardRef<
|
||||
|
||||
return (
|
||||
<label className="flex flex-col gap-1">
|
||||
{label}
|
||||
<Typography>{label}</Typography>
|
||||
<div className="relative w-full">
|
||||
<input
|
||||
type={forceText ? 'text' : type}
|
||||
@@ -97,13 +98,13 @@ export const InputInside = forwardRef<
|
||||
value={computedValue} // Do we want that behaviour ?
|
||||
disabled={disabled}
|
||||
ref={ref}
|
||||
></input>
|
||||
/>
|
||||
{type === 'password' && (
|
||||
<div
|
||||
className="fill-background-10 absolute inset-y-0 right-0 pr-6 z-10 my-auto w-[16px] h-[16px] cursor-pointer"
|
||||
onClick={togglePassword}
|
||||
>
|
||||
<EyeIcon width={16} closed={forceText}></EyeIcon>
|
||||
<EyeIcon width={16} closed={forceText} />
|
||||
</div>
|
||||
)}
|
||||
{error?.message && (
|
||||
@@ -122,15 +123,16 @@ export const Input = ({
|
||||
name,
|
||||
placeholder,
|
||||
label,
|
||||
autocomplete,
|
||||
autocomplete = false,
|
||||
disabled,
|
||||
variant = 'primary',
|
||||
rules,
|
||||
}: {
|
||||
rules?: UseControllerProps<any>['rules'];
|
||||
control: Control<any>;
|
||||
autocomplete?: boolean | string;
|
||||
} & InputProps &
|
||||
Partial<HTMLInputElement>) => {
|
||||
Partial<React.HTMLProps<HTMLInputElement>>) => {
|
||||
return (
|
||||
<Controller
|
||||
control={control}
|
||||
@@ -152,7 +154,7 @@ export const Input = ({
|
||||
onChange={onChange}
|
||||
ref={ref}
|
||||
name={name}
|
||||
></InputInside>
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
);
|
||||
|
||||
@@ -23,7 +23,7 @@ export function LangSelector({
|
||||
const languagesItems = useMemo(
|
||||
() =>
|
||||
langs.map(({ key, name, emoji }) => ({
|
||||
component: (
|
||||
label: (
|
||||
<div>
|
||||
<img
|
||||
draggable="false"
|
||||
@@ -33,7 +33,6 @@ export function LangSelector({
|
||||
{' ' + name}
|
||||
</div>
|
||||
),
|
||||
label: name,
|
||||
value: key,
|
||||
})),
|
||||
[]
|
||||
@@ -59,6 +58,6 @@ export function LangSelector({
|
||||
items={languagesItems}
|
||||
direction={direction}
|
||||
alignment={alignment}
|
||||
></Dropdown>
|
||||
/>
|
||||
);
|
||||
}
|
||||
@@ -38,11 +38,7 @@ export function PersonFrontIcon({
|
||||
viewBox="0 0 165 392"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<image
|
||||
height={'105%'}
|
||||
x="8.5%"
|
||||
href="/images/front-standing-pose.webp"
|
||||
></image>
|
||||
<image height={'105%'} x="8.5%" href="/images/front-standing-pose.webp" />
|
||||
{/* <path d="M84.53 224.074C83.953 230.874 88.569 266.874 90.951 280.984C92.085 287.671 95.195 298.565 94.076 304.349C92.476 312.411 92.017 322.843 92.896 328.918C93.451 332.607 95.196 349.618 92.696 355.845C91.389 359.108 88.996 375.832 88.996 375.832C82.756 391.587 86.278 390.812 86.278 390.812C88.21 393.183 91.519 390.998 91.519 390.998C92.1549 391.464 92.9388 391.682 93.7241 391.612C94.5094 391.542 95.2421 391.188 95.785 390.616C97.949 392.407 100.471 390.396 100.471 390.396C103.189 391.807 105.71 389.205 105.71 389.205C107.271 389.991 107.653 388.998 107.653 388.998C112.337 388.698 105.039 373.706 105.039 373.706C103.291 360.242 106.773 352.748 106.773 352.748C118.178 318.926 118.758 309.948 114.199 297.204C112.915 293.524 112.59 292.067 113.181 290.47C114.547 286.783 113.551 271.953 115.217 266.064C118.431 254.706 121.602 225.903 123.254 212.464C125.475 194.364 115.388 170.088 115.388 170.088C113.179 160.21 116.418 125.016 116.418 125.016C120.941 132.054 120.768 144.477 120.768 144.477C120.05 157.506 131.294 177.42 131.294 177.42C136.694 185.649 138.742 193.456 138.742 194.036C138.742 196.407 138.223 202.145 138.223 202.145L138.43 207.145C138.803 209.721 139.034 212.316 139.123 214.918C138.28 227.953 140.35 225.501 140.35 225.501C142.098 225.501 144.018 215.011 144.018 215.011C144.018 217.711 143.357 225.811 144.818 228.869C146.564 232.512 147.848 228.244 147.871 227.387C148.333 210.787 149.33 215.138 149.33 215.138C150.301 228.602 151.494 231.644 153.63 230.591C155.25 229.818 153.769 214.433 153.769 214.433C156.544 223.572 158.649 225.027 158.649 225.027C163.229 228.243 160.397 219.361 159.76 217.602C156.371 208.256 156.267 205.017 156.267 205.017C160.501 213.417 163.692 213.104 163.692 213.104C167.822 211.786 160.083 199.894 155.548 194.197C153.234 191.297 150.248 187.408 149.384 185.097C147.973 181.188 146.907 168.62 146.907 168.62C146.48 153.79 142.813 147.348 142.813 147.348C136.544 137.314 135.365 118.598 135.365 118.598L135.09 87C132.89 65.445 117.01 65.29 117.01 65.29C100.957 62.9 98.723 57.714 98.723 57.714C95.323 52.821 97.266 43.44 97.266 43.44C100.087 41.145 101.175 35.053 101.175 35.053C105.859 31.461 105.63 26.205 103.466 26.262C101.73 26.308 102.123 24.87 102.123 24.87C105.052 1.208 84.046 0 84.046 0H80.836C80.836 0 59.821 1.208 62.746 24.864C62.746 24.864 63.139 26.304 61.388 26.256C59.23 26.199 59.029 31.456 63.696 35.047C63.696 35.047 64.783 41.137 67.605 43.434C67.605 43.434 69.548 52.814 66.148 57.708C66.148 57.708 63.922 62.894 47.861 65.284C47.861 65.284 31.952 65.44 29.788 86.994L29.488 118.594C29.488 118.594 28.331 137.311 22.038 147.344C22.038 147.344 18.389 153.787 17.967 168.616C17.967 168.616 16.898 181.184 15.492 185.093C14.635 187.393 11.653 191.276 9.32001 194.193C4.74601 199.878 -2.94199 211.745 1.17101 213.1C1.17101 213.1 4.37901 213.412 8.59601 205.013C8.59601 205.013 8.50901 208.229 5.12501 217.598C4.46001 219.334 1.63201 228.217 6.21301 225.024C6.21301 225.024 8.33501 223.567 11.093 214.43C11.093 214.43 9.61301 229.815 11.26 230.588C13.412 231.642 14.586 228.599 15.56 215.135C15.56 215.135 16.56 210.787 17.017 227.384C17.04 228.241 18.295 232.509 20.049 228.866C21.529 225.811 20.864 217.727 20.864 215.008C20.864 215.008 22.764 225.498 24.536 225.498C24.536 225.498 26.624 227.95 25.767 214.915C25.628 212.786 26.375 208.415 26.467 207.142L26.667 202.142C26.667 202.142 26.146 196.417 26.146 194.033C26.146 193.442 28.194 185.646 33.594 177.417C33.594 177.417 44.826 157.494 44.103 144.474C44.103 144.474 43.947 132.051 48.47 125.013C48.47 125.013 51.68 160.205 49.505 170.085C49.505 170.085 39.405 194.358 41.629 212.461C43.27 225.937 46.435 254.702 49.657 266.061C51.34 271.938 50.345 286.761 51.693 290.467C52.301 292.076 51.982 293.558 50.675 297.201C46.141 309.947 46.718 318.925 58.123 352.745C58.123 352.745 61.633 360.239 59.859 373.703C59.859 373.703 52.572 388.695 57.239 388.995C57.239 388.995 57.604 389.988 59.182 389.202C59.182 389.202 61.703 391.802 64.427 390.393C64.427 390.393 66.95 392.407 69.106 390.613C69.6451 391.185 70.3751 391.54 71.158 391.61C71.9409 391.681 72.7225 391.462 73.355 390.995C73.355 390.995 76.664 393.227 78.63 390.809C78.63 390.809 82.123 391.584 75.904 375.829C75.904 375.829 73.522 359.129 72.209 355.842C69.709 349.621 71.474 332.57 72.009 328.915C72.87 322.806 72.409 312.398 70.835 304.346C69.684 298.575 72.801 287.679 73.952 280.981C76.317 266.881 80.952 230.881 80.373 224.071L82.288 224.743C83.0863 224.756 83.8692 224.522 84.53 224.074Z" /> */}
|
||||
<circle
|
||||
className="body-part-circle"
|
||||
|
||||
@@ -28,7 +28,7 @@ export function ProgressBar({
|
||||
animated={animated}
|
||||
parts={parts}
|
||||
bottom={bottom}
|
||||
></Bar>
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
);
|
||||
@@ -74,7 +74,7 @@ export function Bar({
|
||||
width: `${value * 100}%`,
|
||||
height: `${height}px`,
|
||||
}}
|
||||
></div>
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -18,7 +18,7 @@ export function TipBox({
|
||||
return (
|
||||
<div
|
||||
className={classNames(
|
||||
'flex flex-row gap-4 bg-accent-background-50 p-4 rounded-md',
|
||||
'flex flex-row gap-4 bg-accent-background-50 p-2 rounded-md',
|
||||
className
|
||||
)}
|
||||
>
|
||||
@@ -28,7 +28,7 @@ export function TipBox({
|
||||
hideIcon && 'hidden'
|
||||
)}
|
||||
>
|
||||
<BulbIcon></BulbIcon>
|
||||
<BulbIcon />
|
||||
</div>
|
||||
<div className="flex flex-col">
|
||||
<Typography
|
||||
@@ -55,14 +55,14 @@ export function WarningBox({
|
||||
hideIcon?: boolean;
|
||||
}) {
|
||||
return (
|
||||
<div className="flex flex-row gap-4 bg-status-warning p-4 rounded-md">
|
||||
<div className="flex flex-row gap-4 bg-status-warning p-2 rounded-md">
|
||||
<div
|
||||
className={classNames(
|
||||
'text-background-60 flex flex-col justify-center',
|
||||
hideIcon && 'hidden'
|
||||
)}
|
||||
>
|
||||
<WarningIcon></WarningIcon>
|
||||
<WarningIcon />
|
||||
</div>
|
||||
<div className="flex flex-col justify-center w-full">
|
||||
<Typography
|
||||
|
||||
@@ -333,7 +333,7 @@ export function DrawerTooltip({
|
||||
elem.classList.add(classNames('duration-500'));
|
||||
touchTimeout.current = setTimeout(() => {
|
||||
open();
|
||||
}, TOOLTIP_DELAY);
|
||||
}, TOOLTIP_DELAY) as unknown as number;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -406,7 +406,7 @@ export function DrawerTooltip({
|
||||
opacity: drawerStyle ? 0.5 : 0,
|
||||
pointerEvents: drawerStyle ? 'all' : 'none',
|
||||
}}
|
||||
></div>
|
||||
/>
|
||||
<div
|
||||
className={classNames(
|
||||
'fixed z-50 w-full text-background-10 max-h-full -bottom-full transition-all overflow-clip'
|
||||
@@ -425,7 +425,7 @@ export function DrawerTooltip({
|
||||
className="absolute right-4 top-3 h-6 w-6 bg-background-70 rounded-full flex justify-center items-center"
|
||||
onClick={() => close()}
|
||||
>
|
||||
<CloseIcon size={20} className="stroke-white"></CloseIcon>
|
||||
<CloseIcon size={20} className="stroke-white" />
|
||||
</button>
|
||||
</div>
|
||||
<div
|
||||
|
||||
@@ -66,7 +66,7 @@ export function VerticalStep({
|
||||
)}
|
||||
>
|
||||
{isPrevious ? (
|
||||
<CheckIcon></CheckIcon>
|
||||
<CheckIcon />
|
||||
) : (
|
||||
<Typography variant="section-title">{index + 1}</Typography>
|
||||
)}
|
||||
@@ -141,7 +141,7 @@ export default function VerticalStepper({
|
||||
prevStep={prevStep}
|
||||
goTo={goTo}
|
||||
isActive={currStep === index}
|
||||
></StepComponent>
|
||||
/>
|
||||
</VerticalStep>
|
||||
))}
|
||||
</ol>
|
||||
|
||||
@@ -7,7 +7,7 @@ export function ChestIcon({ width = 24 }: { width?: number }) {
|
||||
width={width}
|
||||
viewBox="0 0 50 50"
|
||||
>
|
||||
<path d="M 20 2 C 18.156 2 16.700141 3.1345312 15.619141 4.0195312 C 12.698141 4.2755313 4 7.245 4 15 C 4 17.305 4.551 19.068203 4.875 19.908203 C 4.262 20.969203 3 23.679 3 28 C 3 28.352 3.184375 28.677422 3.484375 28.857422 L 8.484375 31.857422 C 8.835375 32.068422 9.2804219 32.044922 9.6074219 31.794922 C 10.290422 31.270922 10.833578 30.512578 11.267578 29.642578 C 11.118578 28.880578 11 28.05 11 27 L 11 21 C 11 20.448 11.448 20 12 20 C 12.43 20 12.790641 20.27425 12.931641 20.65625 C 12.944641 20.68425 12.982 20.797656 13 20.847656 C 13.197 21.404656 14.365 24 19 24 C 23.133 24 23.984531 19.976687 24.019531 19.804688 C 24.113531 19.329687 24.535 19.018531 25 19.019531 C 25.465 19.019531 25.886469 19.330687 25.980469 19.804688 C 26.015469 19.976687 26.867 24 31 24 C 35.635 24 36.803 21.405656 37 20.847656 C 37.018 20.797656 37.055359 20.68425 37.068359 20.65625 C 37.209359 20.27525 37.57 20 38 20 C 38.552 20 39 20.448 39 21 L 39 27 C 39 28.05 38.881422 28.881578 38.732422 29.642578 C 39.166422 30.513578 39.709578 31.269969 40.392578 31.792969 C 40.719578 32.042969 41.164625 32.066469 41.515625 31.855469 L 46.515625 28.855469 C 46.815625 28.676469 47 28.352 47 28 C 47 23.679 45.738 20.969203 45.125 19.908203 C 45.449 19.068203 46 17.305 46 15 C 46 7.245 37.301859 4.2755312 34.380859 4.0195312 C 33.299859 3.1345312 31.844 2 30 2 L 25 2 L 20 2 z M 25 22.609375 C 23.953 24.323375 22.059 26 19 26 C 16.075 26 14.195 25.130766 13 24.134766 L 13 27 C 13 28.281 13.194875 29.155016 13.421875 30.166016 C 13.692875 31.375016 14 32.746 14 35 C 14 35.027 13.987375 35.049172 13.984375 35.076172 C 13.994375 35.366172 14 35.669 14 36 L 14 42 C 14 44.997 18.628641 47.438484 19.556641 47.896484 C 19.693641 47.965484 19.847 48 20 48 L 25 48 L 30 48 C 30.153 48 30.306359 47.965484 30.443359 47.896484 C 31.371359 47.438484 36 44.997 36 42 L 36 36 C 36 35.669 36.005625 35.366172 36.015625 35.076172 C 36.012625 35.049172 36 35.027 36 35 C 36 32.746 36.307125 31.375016 36.578125 30.166016 C 36.805125 29.155016 37 28.281 37 27 L 37 24.134766 C 35.805 25.130766 33.925 26 31 26 C 27.941 26 26.047 24.323375 25 22.609375 z"></path>
|
||||
<path d="M 20 2 C 18.156 2 16.700141 3.1345312 15.619141 4.0195312 C 12.698141 4.2755313 4 7.245 4 15 C 4 17.305 4.551 19.068203 4.875 19.908203 C 4.262 20.969203 3 23.679 3 28 C 3 28.352 3.184375 28.677422 3.484375 28.857422 L 8.484375 31.857422 C 8.835375 32.068422 9.2804219 32.044922 9.6074219 31.794922 C 10.290422 31.270922 10.833578 30.512578 11.267578 29.642578 C 11.118578 28.880578 11 28.05 11 27 L 11 21 C 11 20.448 11.448 20 12 20 C 12.43 20 12.790641 20.27425 12.931641 20.65625 C 12.944641 20.68425 12.982 20.797656 13 20.847656 C 13.197 21.404656 14.365 24 19 24 C 23.133 24 23.984531 19.976687 24.019531 19.804688 C 24.113531 19.329687 24.535 19.018531 25 19.019531 C 25.465 19.019531 25.886469 19.330687 25.980469 19.804688 C 26.015469 19.976687 26.867 24 31 24 C 35.635 24 36.803 21.405656 37 20.847656 C 37.018 20.797656 37.055359 20.68425 37.068359 20.65625 C 37.209359 20.27525 37.57 20 38 20 C 38.552 20 39 20.448 39 21 L 39 27 C 39 28.05 38.881422 28.881578 38.732422 29.642578 C 39.166422 30.513578 39.709578 31.269969 40.392578 31.792969 C 40.719578 32.042969 41.164625 32.066469 41.515625 31.855469 L 46.515625 28.855469 C 46.815625 28.676469 47 28.352 47 28 C 47 23.679 45.738 20.969203 45.125 19.908203 C 45.449 19.068203 46 17.305 46 15 C 46 7.245 37.301859 4.2755312 34.380859 4.0195312 C 33.299859 3.1345312 31.844 2 30 2 L 25 2 L 20 2 z M 25 22.609375 C 23.953 24.323375 22.059 26 19 26 C 16.075 26 14.195 25.130766 13 24.134766 L 13 27 C 13 28.281 13.194875 29.155016 13.421875 30.166016 C 13.692875 31.375016 14 32.746 14 35 C 14 35.027 13.987375 35.049172 13.984375 35.076172 C 13.994375 35.366172 14 35.669 14 36 L 14 42 C 14 44.997 18.628641 47.438484 19.556641 47.896484 C 19.693641 47.965484 19.847 48 20 48 L 25 48 L 30 48 C 30.153 48 30.306359 47.965484 30.443359 47.896484 C 31.371359 47.438484 36 44.997 36 42 L 36 36 C 36 35.669 36.005625 35.366172 36.015625 35.076172 C 36.012625 35.049172 36 35.027 36 35 C 36 32.746 36.307125 31.375016 36.578125 30.166016 C 36.805125 29.155016 37 28.281 37 27 L 37 24.134766 C 35.805 25.130766 33.925 26 31 26 C 27.941 26 26.047 24.323375 25 22.609375 z" />
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
@@ -23,23 +23,23 @@ export function ControllerIcon({
|
||||
<path
|
||||
d="M118.822 208.203c-2.618-.617-4.697-3.542-5.882-8.273-.291-1.162-.298-1.318-.28-6.087.025-6.892.614-23.54.873-24.712.407-1.836.45-2.166.39-2.962-.101-1.363-.496-2.192-1.523-3.2-1.327-1.302-3.303-2.24-6.48-3.078-1.73-.456-3.586-1.518-6.604-3.78-3.429-2.571-4.412-3.847-7.412-9.617-.584-1.123-1.155-2.09-1.27-2.152-.259-.138-1.272-.289-5.165-.769-3.5-.43-6.014-.807-6.642-.992-.827-.245-1.493-1.177-2.218-3.103-.921-2.446-2.059-8.04-2.059-10.122 0-2.587 1.23-6.419 2.836-8.832.83-1.247 1.148-1.489 2.265-1.723 7.263-1.526 53.58-5.18 66.688-5.262 3.11-.019 3.213-.012 3.65.26 1.497.931 3.276 3.686 4.198 6.502.86 2.622 1.011 4.66.57 7.652-.873 5.938-2.877 9.425-6.303 10.969-.767.345-1.928.65-3.119.822-.955.137-1.121.36-1.443 1.948-.523 2.573-1.864 5.5-4.178 9.114-1.084 1.694-1.407 2.78-2.776 9.339-1.166 5.587-1.297 6.347-1.893 11.008-.914 7.15-2.987 22.105-3.276 23.631-.85 4.5-4.377 9.213-9.243 12.352-1.778 1.146-2.492 1.352-3.704 1.067zm-1.16-48.81c4.208-.596 8.777-2.031 12.644-3.97 5.698-2.858 9.94-7.053 11.599-11.471.494-1.315.643-2.34.42-2.88-.147-.354-.203-.38-.802-.38-.78 0-5.773.591-14.198 1.683-6.609.855-9.629 1.2-13.24 1.511-4.913.423-10.917.694-15.438.696-1.622 0-3.59.038-4.373.083-1.345.078-1.431.099-1.561.385-.206.452.06 1.523.715 2.881 1.05 2.177 2.932 4.619 4.83 6.27 5.185 4.512 11.77 6.274 19.405 5.192z"
|
||||
transform="scale(.26458)"
|
||||
></path>
|
||||
/>
|
||||
<path
|
||||
d="M111.38 158.518c-4.784-.43-8.953-2.192-12.419-5.25-1.997-1.763-4.05-4.546-4.817-6.531l-.371-.963 5.355-.078c5.019-.074 10.45-.275 11.662-.432.514-.067.533-.057.533.272 0 .498.536 1.333 1.111 1.732 1.473 1.02 3.312 1.046 5.07.434 1.981-.69 2.783-1.579 2.79-2.727l.002-.577 2.26-.276c1.242-.151 4.913-.616 8.157-1.033 7.376-.947 10.484-1.306 10.568-1.222.135.135-.508 1.937-1.101 3.092-2.017 3.922-6.233 7.574-11.529 9.985-5.871 2.674-12.356 4.016-17.272 3.574zm20.458-8.081c.958-.439 1.503-.858 1.904-1.464 1.196-1.808-.01-3.98-2.721-4.896-.637-.216-1.009-.263-1.75-.22-1.096.064-1.542.264-2.423 1.084-1.089 1.013-1.487 2.354-1.026 3.457.397.949 1.521 1.89 2.731 2.285.858.28 2.388.165 3.285-.246z"
|
||||
transform="scale(.26458)"
|
||||
></path>
|
||||
/>
|
||||
<path
|
||||
d="M109.855 171.583c-.839-.29-1.655-.856-1.744-1.21-.04-.163.093-.688.324-1.268.588-1.483.61-2.105.143-3.918-.463-1.793-.495-2.343-.15-2.528 1.115-.596 3.07 1.299 3.795 3.679.243.797.25.956.114 2.196-.193 1.752-.4 2.931-.548 3.126-.173.226-1.173.186-1.934-.077z"
|
||||
transform="scale(.26458)"
|
||||
></path>
|
||||
/>
|
||||
<path
|
||||
d="M128.454 149.37c-.797-.376-1.472-1.276-1.603-1.798-.207-.822.52-1.842 1.577-2.38 1.397-.714 3.825.066 4.176 1.128.35 1.062.33 2.041-.436 2.602-1.214.889-2.465 1.04-3.714.449z"
|
||||
transform="scale(.26458)"
|
||||
></path>
|
||||
/>
|
||||
<path
|
||||
d="M113.895 146.8c-.662-.31-1.51-1.648-1.238-1.67l6.153-.485c.284-.023-.434 1.493-1.413 1.947-1.272.591-2.557.65-3.502.207z"
|
||||
transform="scale(.26458)"
|
||||
></path>
|
||||
/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
@@ -17,7 +17,7 @@ export function CrossIcon({
|
||||
fillRule="evenodd"
|
||||
d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"
|
||||
clipRule="evenodd"
|
||||
></path>
|
||||
/>
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
@@ -16,7 +16,7 @@ export function FootIcon({
|
||||
<path
|
||||
transform={flipped ? undefined : 'scale(-1,1) translate(-28,0)'}
|
||||
d="M11.5 3A1.5 2 0 0 0 10 5a1.5 2 0 0 0 1.5 2A1.5 2 0 0 0 13 5a1.5 2 0 0 0-1.5-2zm3.244.678a1 1.333 0 0 0-1 1.334 1 1.333 0 0 0 1 1.332 1 1.333 0 0 0 1-1.332 1 1.333 0 0 0-1-1.334zm2.33 1.039a.863 1.151 0 0 0-.861 1.15.863 1.151 0 0 0 .861 1.15.863 1.151 0 0 0 .863-1.15.863 1.151 0 0 0-.863-1.15zm1.582 1.863a.611.815 0 0 0-.61.815.611.815 0 0 0 .61.816.611.815 0 0 0 .612-.816.611.815 0 0 0-.612-.815zM13.918 8C11.629 8 10 9.731 10 12c0 2.887 3 2.82 3 5 0 1.604-1.272 2.766-1.781 4.295a3.5 3.5 0 0 0-.096.305c-.014.054-.031.108-.043.164a3.5 3.5 0 0 0-.08.736 3.5 3.5 0 0 0 3.5 3.5 3.5 3.5 0 0 0 3.5-3.5c0-3.91 1.998-5.5 1.998-8.5 0-3.612-3.317-6-6.08-6zm5.582.666a.5.667 0 0 0-.5.666.5.667 0 0 0 .5.668.5.667 0 0 0 .5-.668.5.667 0 0 0-.5-.666z"
|
||||
></path>
|
||||
/>
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
@@ -4,7 +4,7 @@ export function HeadsetIcon({ width = 24 }: { width?: number }) {
|
||||
<path
|
||||
transform="scale(0.75, 0.75) translate(120, 96)"
|
||||
d="M576 64H64C28.7 64 0 92.7 0 128v256c0 35.3 28.7 64 64 64h120.4c24.2 0 46.4-13.7 57.2-35.4l32-64c8.8-17.5 26.7-28.6 46.3-28.6s37.5 11.1 46.3 28.6l32 64c10.8 21.7 33 35.4 57.2 35.4H576c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64zM96 240a64 64 0 11128 0 64 64 0 11-128 0zm384-64a64 64 0 110 128 64 64 0 110-128z"
|
||||
></path>
|
||||
/>
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
export function HumanIcon({ width = 20 }: { width?: number }) {
|
||||
return (
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width={width} viewBox="0 0 512 512">
|
||||
<path d="M256 112a56 56 0 1156-56 56.06 56.06 0 01-56 56z"></path>
|
||||
<path d="M432 112.8l-.45.12-.42.13c-1 .28-2 .58-3 .89-18.61 5.46-108.93 30.92-172.56 30.92-59.13 0-141.28-22-167.56-29.47a73.79 73.79 0 00-8-2.58c-19-5-32 14.3-32 31.94 0 17.47 15.7 25.79 31.55 31.76v.28l95.22 29.74c9.73 3.73 12.33 7.54 13.6 10.84 4.13 10.59.83 31.56-.34 38.88l-5.8 45-32.19 176.19q-.15.72-.27 1.47l-.23 1.27c-2.32 16.15 9.54 31.82 32 31.82 19.6 0 28.25-13.53 32-31.94s28-157.57 42-157.57 42.84 157.57 42.84 157.57c3.75 18.41 12.4 31.94 32 31.94 22.52 0 34.38-15.74 32-31.94a57.17 57.17 0 00-.76-4.06L329 301.27l-5.79-45c-4.19-26.21-.82-34.87.32-36.9a1.09 1.09 0 00.08-.15c1.08-2 6-6.48 17.48-10.79l89.28-31.21a16.9 16.9 0 001.62-.52c16-6 32-14.3 32-31.93S451 107.81 432 112.8z"></path>
|
||||
<path d="M256 112a56 56 0 1156-56 56.06 56.06 0 01-56 56z" />
|
||||
<path d="M432 112.8l-.45.12-.42.13c-1 .28-2 .58-3 .89-18.61 5.46-108.93 30.92-172.56 30.92-59.13 0-141.28-22-167.56-29.47a73.79 73.79 0 00-8-2.58c-19-5-32 14.3-32 31.94 0 17.47 15.7 25.79 31.55 31.76v.28l95.22 29.74c9.73 3.73 12.33 7.54 13.6 10.84 4.13 10.59.83 31.56-.34 38.88l-5.8 45-32.19 176.19q-.15.72-.27 1.47l-.23 1.27c-2.32 16.15 9.54 31.82 32 31.82 19.6 0 28.25-13.53 32-31.94s28-157.57 42-157.57 42.84 157.57 42.84 157.57c3.75 18.41 12.4 31.94 32 31.94 22.52 0 34.38-15.74 32-31.94a57.17 57.17 0 00-.76-4.06L329 301.27l-5.79-45c-4.19-26.21-.82-34.87.32-36.9a1.09 1.09 0 00.08-.15c1.08-2 6-6.48 17.48-10.79l89.28-31.21a16.9 16.9 0 001.62-.52c16-6 32-14.3 32-31.93S451 107.81 432 112.8z" />
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
@@ -20,28 +20,28 @@ export function LoaderIcon({
|
||||
alt="Slime jumping"
|
||||
width={size}
|
||||
// className="crisp-edges"
|
||||
></img>
|
||||
/>
|
||||
<img
|
||||
hidden={slimeState !== SlimeState.HAPPY}
|
||||
src="/images/happy-slime.gif"
|
||||
alt="Happy slime"
|
||||
width={size}
|
||||
// className="crisp-edges"
|
||||
></img>
|
||||
/>
|
||||
<img
|
||||
hidden={slimeState !== SlimeState.SAD}
|
||||
src="/images/sad-slime.gif"
|
||||
alt="Sad slime"
|
||||
width={size}
|
||||
// className="crisp-edges"
|
||||
></img>
|
||||
/>
|
||||
<img
|
||||
hidden={slimeState !== SlimeState.CURIOUS}
|
||||
src="/images/curious-slime.gif"
|
||||
alt="Slime looking for something"
|
||||
width={size}
|
||||
// className="crisp-edges"
|
||||
></img>
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -16,7 +16,7 @@ export function LowerArmIcon({
|
||||
<path
|
||||
transform={flipped ? 'scale(-1,1) translate(-50,0)' : undefined}
|
||||
d="M27.203 1.98c-1.019 0-1.954.56-2.437 1.458L17.26 15.858c-.157.291-.24.619-.24.95v16.22l-4.74 5.49a1.001 1.001 0 0 0 .156 1.407l9.386 7.818a.998.998 0 0 0 1.416-.17l8.354-10.443a13.001 13.001 0 0 0 2.668-7.072L35 20.83A2.83 2.83 0 0 0 32.17 18h-.008a2.83 2.83 0 0 0-2.73 2.086l-2.41 5.935-2.026-3.019L25 16l4.734-10.09c.847-1.836-.491-3.93-2.513-3.93h-.018z"
|
||||
></path>
|
||||
/>
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
@@ -15,7 +15,7 @@ export function PawIcon({
|
||||
<path
|
||||
transform={`${transform} scale(0.75, 0.75) translate(96, 96)`}
|
||||
d="M490.39 182.75c-5.55-13.19-14.77-22.7-26.67-27.49l-.16-.06a46.46 46.46 0 00-17-3.2h-.64c-27.24.41-55.05 23.56-69.19 57.61-10.37 24.9-11.56 51.68-3.18 71.64 5.54 13.2 14.78 22.71 26.73 27.5l.13.05a46.53 46.53 0 0017 3.2c27.5 0 55.6-23.15 70-57.65 10.24-24.87 11.37-51.63 2.98-71.6zM381.55 329.61c-15.71-9.44-30.56-18.37-40.26-34.41C314.53 250.8 298.37 224 256 224s-58.57 26.8-85.39 71.2c-9.72 16.06-24.6 25-40.36 34.48-18.07 10.86-36.74 22.08-44.8 44.16a66.93 66.93 0 00-4.65 25c0 35.95 28 65.2 62.4 65.2 17.75 0 36.64-6.15 56.63-12.66 19.22-6.26 39.09-12.73 56.27-12.73s37 6.47 56.15 12.73C332.2 457.85 351 464 368.8 464c34.35 0 62.3-29.25 62.3-65.2a67 67 0 00-4.75-25c-8.06-22.1-26.74-33.33-44.8-44.19zM150 188.85c11.9 14.93 27 23.15 42.52 23.15a42.88 42.88 0 006.33-.47c32.37-4.76 52.54-44.26 45.92-90C242 102.3 234.6 84.39 224 71.11 212.12 56.21 197 48 181.49 48a42.88 42.88 0 00-6.33.47c-32.37 4.76-52.54 44.26-45.92 90 2.76 19.2 10.16 37.09 20.76 50.38zm163.16 22.68a42.88 42.88 0 006.33.47c15.53 0 30.62-8.22 42.52-23.15 10.59-13.29 17.95-31.18 20.75-50.4 6.62-45.72-13.55-85.22-45.92-90a42.88 42.88 0 00-6.33-.47C315 48 299.88 56.21 288 71.11c-10.6 13.28-18 31.19-20.76 50.44-6.62 45.72 13.55 85.22 45.92 89.98zM111.59 308.8l.14-.05c11.93-4.79 21.16-14.29 26.69-27.48 8.38-20 7.2-46.75-3.15-71.65C120.94 175.16 92.85 152 65.38 152a46.4 46.4 0 00-17 3.2l-.14.05c-11.9 4.75-21.13 14.29-26.66 27.48-8.38 20-7.2 46.75 3.15 71.65C39.06 288.84 67.15 312 94.62 312a46.4 46.4 0 0016.97-3.2z"
|
||||
></path>
|
||||
/>
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
@@ -15,11 +15,11 @@ export function SlimeUpIcon({ width = 60 }: { width?: number }) {
|
||||
strokeWidth="0.265"
|
||||
rx="6.963"
|
||||
ry="3.423"
|
||||
></rect>
|
||||
/>
|
||||
<path
|
||||
strokeWidth="0.195"
|
||||
d="M59.587 23.923c.514 0 .978.382 1.313 1.001.336.62.402 1.512.543 2.425l1.376 8.937v40.902l-1.38 8.95c-.14.917-.206 1.805-.542 2.425-.335.619-.8 1.001-1.314 1.001-1.028 0-2.14-1.59-1.856-3.427l1.38-8.949V36.286l-1.377-8.937c-.281-1.826.828-3.426 1.857-3.426z"
|
||||
></path>
|
||||
/>
|
||||
</g>
|
||||
</svg>
|
||||
);
|
||||
|
||||
@@ -9,13 +9,13 @@ export function SlimeVRIcon({ width = 28 }: { width?: number }) {
|
||||
viewBox="0 0 380 380"
|
||||
>
|
||||
<g fill="none" stroke="#fff">
|
||||
<path strokeWidth="13.62" d="M72.867 191.74l37-39 39 36"></path>
|
||||
<path strokeWidth="13.62" d="M208.87 187.74l38-35 36 38"></path>
|
||||
<path strokeWidth="13.62" d="M72.867 191.74l37-39 39 36" />
|
||||
<path strokeWidth="13.62" d="M208.87 187.74l38-35 36 38" />
|
||||
<path
|
||||
strokeLinecap="square"
|
||||
strokeWidth="17"
|
||||
d="M56.867 253.74s130.61-31.182 248 5c13.45 4.146 20.244 2.975 20-8s1.909-126.06-46-131"
|
||||
></path>
|
||||
/>
|
||||
</g>
|
||||
</svg>
|
||||
);
|
||||
|
||||
@@ -11,11 +11,11 @@ export function TaybolIcon({ width = 784 }: { width?: string | number }) {
|
||||
<path
|
||||
strokeWidth="0.234"
|
||||
d="M102.747 171.401l-8.467-3.77-.07-25.96-.07-25.958-25.727-11.386-25.727-11.385-.067 17.959-.068 17.959-1.387.689c-1.938.962-15.39 7.134-15.85 7.273-.375.112-17.638-7.406-18.012-7.844-.107-.126-.194-15.36-.194-33.855 0-18.494.087-33.733.194-33.863.426-.519 102.33-47.274 102.868-47.197.299.042 23.962 10.446 52.586 23.118l52.042 23.041v67.955l-8.614 3.96c-4.738 2.177-8.757 3.956-8.93 3.954-.174-.002-4.245-1.75-9.047-3.883l-8.731-3.878-.132-17.81-.133-17.809-24.793 11.398-24.794 11.397-.011 25.893c-.01 20.456-.08 25.937-.342 26.103-1.434.913-16.748 7.7-17.342 7.687-.413-.01-4.3-1.613-9.182-3.788zm8.666-47.957c-.165-.128-4.51-2.073-14.818-6.63l-1.389-.614V167.09l8.136 3.603 8.136 3.604.067-25.35c.037-13.942-.022-25.419-.132-25.504zm10.78 46.417l6.218-2.874.068-25.474.067-25.474-3.64 1.678-8.07 3.724-4.432 2.046v50.87l1.786-.81c.982-.446 4.584-2.105 8.004-3.686zm-97.637-59.58l-.007-25.4-7.973-3.519c-4.386-1.934-8.074-3.549-8.196-3.586-.122-.038-.222 11.37-.222 25.352v25.42l8.004 3.558c4.402 1.957 8.093 3.562 8.202 3.567.11.005.195-11.422.192-25.392zm9.361 21.686l7.843-3.61V92.52l-6.534-2.89c-3.594-1.588-7.226-3.196-8.07-3.573l-1.535-.684v25.17c0 13.874.101 25.141.226 25.103.125-.038 3.756-1.694 8.07-3.68zm162.89-22.136v-25.23l-8.196 3.761-8.194 3.76.058 17.868.06 17.867 8.07 3.59c4.438 1.973 8.099 3.594 8.135 3.601.036.007.066-11.34.066-25.217zm9.17 21.454l7.755-3.57.004-25.4c.003-13.971-.045-25.402-.104-25.402-.06 0-3.602 1.609-7.872 3.575l-7.763 3.574-.067 25.396c-.037 13.968.014 25.396.113 25.396.098 0 3.67-1.606 7.934-3.57zm-94.43-23.43C110.804 107.482 8.392 62.22 8.294 62.22c-.078 0-.11 3.272-.072 7.272l.07 7.271 51.593 22.843 51.594 22.843.07-7.28c.038-4.004.038-7.296 0-7.315zm51.55-8.679l50.51-23.262.07-7.26c.038-3.993-.022-7.256-.133-7.25-.11.005-22.883 10.46-50.605 23.233l-50.403 23.223-.07 7.29c-.037 4.008-.026 7.288.026 7.288s22.824-10.468 50.605-23.262zm-.66-15.245c27.707-12.756 50.46-23.256 50.564-23.333.22-.163-102.39-45.643-102.982-45.645-.41 0-101.054 46.25-101.062 46.444-.004.078 102.892 45.728 103.072 45.728.017 0 22.7-10.437 50.408-23.194z"
|
||||
></path>
|
||||
/>
|
||||
<path
|
||||
strokeWidth="0.076"
|
||||
d="M95.553 93.605c-3.231-.733-4.092-2.287-2.04-3.68.963-.654 1.331-1.21 1.545-2.333.194-1.016.473-1.49.969-1.639.133-.04.17-.107.17-.313v-.262L93.2 82.085c-1.648-1.81-3.03-3.292-3.07-3.292-.098 0-1.55.945-1.616 1.052a.207.207 0 01-.159.084c-.059 0-.258.15-.443.335-.34.34-.85.65-1.07.65-.066 0-.362.192-.657.427l-.536.428-1.19-.044-1.19-.044-.265.354c-.145.196-.513.696-.818 1.113-1.158 1.583-3.71 3.764-5.019 4.289-3.017 1.209-6.52-.056-6.528-2.358-.004-1.13.201-1.427 1.872-2.702 1.469-1.12 2.472-2.105 3.285-3.221.735-1.01 1.384-1.745 1.71-1.938.126-.074.197-.17.177-.24a5.189 5.189 0 01-.082-.391c-.055-.312-.112-.246.805-.94.359-.272.69-.578.737-.68.163-.358.315-.183.318.367.01 1.905 4.619 4.319 7.548 3.953l.402-.05V77.05h-.752c-3.375 0-6.996-1.923-7.364-3.912-.164-.88.147-1.615.728-1.724.205-.039.3-.122.466-.406.268-.458.95-1.178 1.416-1.493.275-.187.334-.258.242-.293-1.777 1.084-4.464 1.556-6.418.756-.386-.17-.36-.089.036.113 1.209.617 3.316.694 4.581.169.514-.214.583.053.073.279-2.037.9-5.403.127-6.157-1.415-.657-1.343-.2-2.285 1.867-3.854 1.36-1.033 2.362-2.023 3.138-3.102.807-1.122 1.218-1.603 1.569-1.835l.294-.195-.046-.424-.046-.423.517-.378c.689-.504 1.085-.867 1.085-.994 0-.367.21-.047.244.37.165 2.052 4.552 4.398 7.537 4.031l.398-.049V60.11l-1.117-.046c-2.575-.105-5.2-1.236-6.414-2.762-.84-1.056-.776-2.524.124-2.817.278-.09.377-.173.512-.427.238-.449.831-1.09 1.317-1.425.927-.641.93-.646 1.83-1.059.895-.414 1.73-.68 2.603-.83 1.068-.186 1.08-.183 1.902-.16.973.025 1.745.166 2.712.495.367.125.67.19.694.151.108-.173.807-.229 2.293-.182 2.05.065 2.522-.06 4.014-1.055l.587-.391v-.385c0-.454.016-.476.785-1.095.89-.715 1.199-.797 1.858-.49.224.105.416.181.425.17l.589-.82c.532-.743.988-1.235 1.396-1.51l.17-.114-.077-.33c-.083-.358-.04-.615.104-.62.148-.006 1.295-.936 1.376-1.116.157-.353.341-.154.341.369 0 1.81 3.887 3.928 7.214 3.93l.738.001v-2.272h-.898c-3.385 0-6.973-1.994-7.252-4.03-.11-.807.275-1.574.791-1.574.165 0 .239-.068.392-.358.238-.45.931-1.197 1.422-1.532.859-.6.863-.603 1.705-.974 1.04-.46 1.868-.725 2.667-.851.333-.053.622-.12.643-.148.183-.25 3.163.16 4.301.593.303.115.395.127.395.05 0-.17.446-.225 1.514-.188 2.696.093 3.42-.076 4.865-1.138l.51-.374-.046-.228c-.075-.372.1-.64.755-1.157.784-.62.87-.663 1.318-.663h.368l3.14 1.776c3.417 1.932 3.405 1.923 3.401 2.579-.002.458-.024.488-.817 1.122-.705.563-1.086.72-1.47.607l-.247-.073-.417.311c-1.675 1.254-2.27 1.432-4.809 1.437l-1.893.004-.318.215a2.808 2.808 0 00-.593.616l-.276.4.13.252c.072.138.18.302.243.364.087.087.102.218.066.561-.074.71-.144.79-.893 1.04-.778.259-1.35.518-1.35.612 0 .037-.035.067-.077.067-.042 0-.218.103-.39.228a2.744 2.744 0 01-.691.34c-.653.194-3.458 1.77-4.734 2.66-.263.182-.508.332-.546.332-.038 0-.199.14-.356.31-.312.337-.767.627-1.11.707-.12.027-.443.23-.72.45l-.502.4-1.173-.053-1.172-.054-.098.123c-.054.068-.378.516-.72.995-.382.535-1.003 1.251-1.608 1.858l-.985.987.675-.291c.75-.325 1.787-.622 2.449-.704.24-.03.452-.076.473-.104.181-.243 3.113.15 4.148.557.373.146.46.158.517.07.123-.189.904-.255 2.036-.174 1.95.14 2.803-.077 4.262-1.083l.549-.378v-.784l.246-.23c1.125-1.045 1.745-1.289 2.404-.945.415.216.372.24.87-.464.643-.908 1.04-1.357 1.39-1.572.191-.117.298-.233.279-.303-.19-.692-.196-.68.745-1.363.316-.23.617-.51.67-.625.183-.393.362-.222.365.347.01 1.814 3.815 3.913 7.093 3.913h.857v-2.244l-.454.033c-2.772.2-6.62-1.532-7.48-3.367-.491-1.049-.13-2.298.662-2.298.087 0 .18-.06.207-.133.194-.53.943-1.352 1.674-1.836.638-.447.642-.449 1.537-.862a10.8 10.8 0 012.614-.846c.37-.07.69-.151.71-.183.147-.22 2.962.146 4.036.527l.613.217.093-.127.093-.127 1.994-.006c2.419-.007 2.597-.053 4.124-1.062l.616-.407-.04-.346-.038-.346.372-.355c1.114-1.065 1.632-1.264 2.342-.902.205.105 1.669.925 3.251 1.821 3.111 1.763 3.057 1.72 3.064 2.373.005.465-.026.508-.807 1.125-.785.62-.923.68-1.443.62l-.352-.039-.307.247c-.523.42-1.574 1.02-2.165 1.235l-.565.205h-1.969c-2.336.002-2.383.018-3.06 1.005l-.168.246.242.453.242.454-.05.383c-.085.633-.141.696-.827.919-.825.268-1.602.635-1.709.806-.074.12-.774.47-.937.47-.187 0-.9.382-.872.467.011.034 1.195 1.356 2.63 2.937l2.61 2.874.286-.162c.158-.088.305-.22.328-.292.1-.316 1.014-.471 1.524-.258.465.194.794.15 1.08-.144.438-.453.601-.427 1.85.294l.74.427.81-.429c1.712-.906 2.593-1.477 2.512-1.629-.27-.505-.06-.831.95-1.476l.798-.508.358.035c.55.055 6.037 3.173 6.15 3.495.21.604.04.858-1.021 1.523l-.682.428-.379-.03a2.433 2.433 0 01-.606-.127l-.227-.096-.733.462c-2.79 1.76-4.27 2.357-4.892 1.978-.32-.195-.37-.19-.427.038-.026.104-.08.19-.121.19-.041 0-.075.18-.075.403 0 .518.013.507-1.812 1.573-1.27.742-1.513.858-1.78.848-.17-.006-.433.02-.585.06-.236.06-.368.034-.909-.184l-.632-.255-.09.34c-.345 1.312-1.54 2.557-2.75 2.864-1.32.335-3.886-.41-4.914-1.426l-.327-.324.033-.34c.067-.693.275-.993 1.091-1.573 1.083-.771 1.427-1.278 1.617-2.385.152-.89.623-1.647 1.024-1.647.08 0 .112-.081.111-.284v-.284l-2.69-2.953c-1.479-1.625-2.73-2.943-2.781-2.93-.14.035-1.922 1.16-2.15 1.357-.11.095-.Line truncated
|
||||
></path>
|
||||
/>
|
||||
</g>
|
||||
</svg>
|
||||
);
|
||||
|
||||
@@ -16,7 +16,7 @@ export function UpperArmIcon({
|
||||
<path
|
||||
transform={flipped ? undefined : 'scale(-1,1) translate(-50,0)'}
|
||||
d="M47.625 12.219c-.171-.137-8.614-8.622-8.918-8.926a.999.999 0 0 0-1.414 0c-1.996 1.996-4.216 8.745-4.291 15.364-2.309 3.104-2.842 7.479-2.965 9.393-3.187.334-5.254 2.287-6.943 3.884-.81.765-1.573 1.486-2.359 1.96-1.967 1.183-4.493 2.413-5.596 2.937a14.019 14.019 0 0 0-1.657-1.082c-.947-.52-2.496-.683-3.151-.73l-3.092-1.816A1.478 1.478 0 0 0 6.5 33 1.5 1.5 0 0 0 5 34.5c0 .35.082.689.629 1.236.597.597 1.101 1.14 2.976 3.014l-2.907 2.258H2a.998.998 0 0 0-.97 1.242l1 2.992a1 1 0 0 0 .651.706l2.973 1a1.015 1.015 0 0 0 .483.038l6.027-1a.988.988 0 0 0 .436-.187l3.946-2.959c.428-.233 3.692-1.952 8.755-2.856 5.89-1.052 9.31-2.796 10.608-3.565.058-.018.116-.033.176-.051.684-.192 1.716-.483 2.495-2.046.334-.669.54-1.318.74-1.947.325-1.022.605-1.906 1.378-2.659C46.089 24.46 48 20.085 48 13a.997.997 0 0 0-.375-.781z"
|
||||
></path>
|
||||
/>
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
@@ -7,7 +7,7 @@ export function UpperChestIcon({ width = 24 }: { width?: number }) {
|
||||
width={width}
|
||||
viewBox="0 0 50 50"
|
||||
>
|
||||
<path d="M 20 2 C 18.156 2 16.700141 3.1345312 15.619141 4.0195312 C 12.698141 4.2755313 4 7.245 4 15 C 4 17.305 4.551 19.068203 4.875 19.908203 C 4.262 20.969203 3 23.679 3 28 C 3 28.352 3.184375 28.677422 3.484375 28.857422 L 8.484375 31.857422 C 8.835375 32.068422 9.2804219 32.044922 9.6074219 31.794922 C 10.290422 31.270922 10.833578 30.512578 11.267578 29.642578 C 11.118578 28.880578 11 28.05 11 27 L 11 21 C 11 20.448 11.448 20 12 20 C 12.43 20 12.790641 20.27425 12.931641 20.65625 C 12.944641 20.68425 12.982 20.797656 13 20.847656 C 13.197 21.404656 14.365 24 19 24 C 23.133 24 23.984531 19.976687 24.019531 19.804688 C 24.113531 19.329687 24.535 19.018531 25 19.019531 C 25.465 19.019531 25.886469 19.330687 25.980469 19.804688 C 26.015469 19.976687 26.867 24 31 24 C 35.635 24 36.803 21.405656 37 20.847656 C 37.018 20.797656 37.055359 20.68425 37.068359 20.65625 C 37.209359 20.27525 37.57 20 38 20 C 38.552 20 39 20.448 39 21 L 39 27 C 39 28.05 38.881422 28.881578 38.732422 29.642578 C 39.166422 30.513578 39.709578 31.269969 40.392578 31.792969 C 40.719578 32.042969 41.164625 32.066469 41.515625 31.855469 L 46.515625 28.855469 C 46.815625 28.676469 47 28.352 47 28 C 47 23.679 45.738 20.969203 45.125 19.908203 C 45.449 19.068203 46 17.305 46 15 C 46 7.245 37.301859 4.2755312 34.380859 4.0195312 C 33.299859 3.1345312 31.844 2 30 2 L 25 2 L 20 2 z M 25 22.609375 C 23.953 24.323375 22.059 26 19 26 C 16.075 26 14.195 25.130766 13 24.134766 L 13 27 C 13 28.281 13.194875 29.155016 13.421875 30.166016 C 13.692875 31.375016 14 32.746 14 35 C 14 35.027 13.987375 35.049172 13.984375 35.076172 C 13.994375 35.366172 14 35.669 14 36 L 14 42 C 14 44.997 18.628641 47.438484 19.556641 47.896484 C 19.693641 47.965484 19.847 48 20 48 L 25 48 L 30 48 C 30.153 48 30.306359 47.965484 30.443359 47.896484 C 31.371359 47.438484 36 44.997 36 42 L 36 36 C 36 35.669 36.005625 35.366172 36.015625 35.076172 C 36.012625 35.049172 36 35.027 36 35 C 36 32.746 36.307125 31.375016 36.578125 30.166016 C 36.805125 29.155016 37 28.281 37 27 L 37 24.134766 C 35.805 25.130766 33.925 26 31 26 C 27.941 26 26.047 24.323375 25 22.609375 z"></path>
|
||||
<path d="M 20 2 C 18.156 2 16.700141 3.1345312 15.619141 4.0195312 C 12.698141 4.2755313 4 7.245 4 15 C 4 17.305 4.551 19.068203 4.875 19.908203 C 4.262 20.969203 3 23.679 3 28 C 3 28.352 3.184375 28.677422 3.484375 28.857422 L 8.484375 31.857422 C 8.835375 32.068422 9.2804219 32.044922 9.6074219 31.794922 C 10.290422 31.270922 10.833578 30.512578 11.267578 29.642578 C 11.118578 28.880578 11 28.05 11 27 L 11 21 C 11 20.448 11.448 20 12 20 C 12.43 20 12.790641 20.27425 12.931641 20.65625 C 12.944641 20.68425 12.982 20.797656 13 20.847656 C 13.197 21.404656 14.365 24 19 24 C 23.133 24 23.984531 19.976687 24.019531 19.804688 C 24.113531 19.329687 24.535 19.018531 25 19.019531 C 25.465 19.019531 25.886469 19.330687 25.980469 19.804688 C 26.015469 19.976687 26.867 24 31 24 C 35.635 24 36.803 21.405656 37 20.847656 C 37.018 20.797656 37.055359 20.68425 37.068359 20.65625 C 37.209359 20.27525 37.57 20 38 20 C 38.552 20 39 20.448 39 21 L 39 27 C 39 28.05 38.881422 28.881578 38.732422 29.642578 C 39.166422 30.513578 39.709578 31.269969 40.392578 31.792969 C 40.719578 32.042969 41.164625 32.066469 41.515625 31.855469 L 46.515625 28.855469 C 46.815625 28.676469 47 28.352 47 28 C 47 23.679 45.738 20.969203 45.125 19.908203 C 45.449 19.068203 46 17.305 46 15 C 46 7.245 37.301859 4.2755312 34.380859 4.0195312 C 33.299859 3.1345312 31.844 2 30 2 L 25 2 L 20 2 z M 25 22.609375 C 23.953 24.323375 22.059 26 19 26 C 16.075 26 14.195 25.130766 13 24.134766 L 13 27 C 13 28.281 13.194875 29.155016 13.421875 30.166016 C 13.692875 31.375016 14 32.746 14 35 C 14 35.027 13.987375 35.049172 13.984375 35.076172 C 13.994375 35.366172 14 35.669 14 36 L 14 42 C 14 44.997 18.628641 47.438484 19.556641 47.896484 C 19.693641 47.965484 19.847 48 20 48 L 25 48 L 30 48 C 30.153 48 30.306359 47.965484 30.443359 47.896484 C 31.371359 47.438484 36 44.997 36 42 L 36 36 C 36 35.669 36.005625 35.366172 36.015625 35.076172 C 36.012625 35.049172 36 35.027 36 35 C 36 32.746 36.307125 31.375016 36.578125 30.166016 C 36.805125 29.155016 37 28.281 37 27 L 37 24.134766 C 35.805 25.130766 33.925 26 31 26 C 27.941 26 26.047 24.323375 25 22.609375 z" />
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
@@ -16,7 +16,7 @@ export function UpperLegIcon({
|
||||
<path
|
||||
transform={flipped ? 'scale(-1,1) translate(-50,0)' : undefined}
|
||||
d="M42.727.059a.998.998 0 0 0-.774.043A1.042 1.042 0 0 0 41.516 0H24.313c-.04 0-.079.016-.118.02a.972.972 0 0 0-.8.238c-2.407 2.172-5.836 7.715-6.793 11.773-2.012 2.281-2.11 4.774-.313 7.828.617 1.043.746 2.262.895 3.676.086.8.171 1.625.355 2.492.29 1.325.883 2.637 1.453 3.907.32.707.621 1.37.863 2.02.29.78.618 1.605.95 2.437.797 2.004 1.789 4.5 2.144 6.28.082 1.087-.012 2-.367 2.638-1.227 2.18-2.941 1.793-4.988 2.664-2.153.922-3.508 1.32-4.32 1.472-2.07.387-1.864.57-1.864.934 0 .113.016.219.035.324.168.766.922 1.3 1.77 1.3.156 0 .32-.015.48-.038a3.2 3.2 0 0 0 1.086-.352c.09.063.188.102.285.149.493.234 1.028.27 1.618.27 2.011 0 3.293-.063 4.207-.15 1.511-.14 2.02-.331 3.074-.378.152-.008.316-.012.504-.012.898 0 2.734.54 4.84.54.562 0 1.02-.114 1.394-.298 1.024-.496 1.399-1.543 1.399-2.48 0-1.566-1.063-2.547-2.04-5.121-.44-1.328-.91-3.035-1.253-5.418-.047-.344-.075-.668-.106-.996l-.047-.602c-.164-2.992.45-5.394.965-7.37.43-1.653.8-3.083.594-4.4-.473-3.015-1.781-4.863-2.563-5.964-.148-.207-.32-.453-.414-.61.223-.484 1.043-1.53 2.39-2.168 2.15-1.015 11.349-6.57 13.712-13.27A1.007 1.007 0 0 0 42.727.06Z"
|
||||
></path>
|
||||
/>
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
@@ -7,7 +7,7 @@ export function WaistIcon({ width = 24 }: { width?: number }) {
|
||||
width={width}
|
||||
viewBox="0 0 72 72"
|
||||
>
|
||||
<path d="M17 2c-.3 0-.6.2-.8.4-.2.3-.3.7-.2 1 2.9 7.1 3.1 15.3.6 22.4-.6 2-1.5 3.9-2.4 5.7-.1.2-.2.5-.3.7 13.2 4.2 26.7 4.1 40.2-.1-.6-1.4-1.9-3.9-2.7-6.3-2.5-7.1-2.3-15.3.6-22.4.1-.3.1-.7-.1-.9-.2-.3-.5-.5-.9-.5H17zM9.863 14.75a.944.944 0 0 0-.664.35c-.4.4-.298 1.1.102 1.4l2.1 1.8H3.9c-.5.1-1 .6-1 1.1 0 .6.4 1 1 1h7.5l-2.1 1.8c-.4.4-.502 1-.102 1.4.4.4 1 .5 1.4.1 1.6-1.3 4.002-3.4 4.202-3.6.4-.4.5-1 0-1.5-.2-.2-3.201-2.7-4.201-3.6a.908.908 0 0 0-.737-.25zm48.237.1a.846.846 0 0 0-.7.25c-1 .9-3.9 3.3-4.2 3.6-.4.4-.4 1.1 0 1.5.2.2 3.2 2.7 4.2 3.6.4.4 1 .3 1.4-.1.4-.4.3-1.1-.1-1.4l-2.1-1.8h7.5c.6 0 1-.4 1-1s-.4-1-1-1h-7.5l2.1-1.8c.4-.4.4-1.1.1-1.5-.2-.2-.45-.325-.7-.35zm-3 19.45c-14.2 4.6-28.4 4.6-42.2.1-.5 1.1-1 2.3-1.4 3.5-.1.4-.3.8-.4 1.2 8.4 1.7 15.9 7 22.1 15.8 6.4-9.3 14.5-14.8 23.6-16.1l-.3-.9c-.4-1.2-.9-2.4-1.4-3.6zm2.3 6.8c-8.9 1.2-16.8 6.8-23 16.3V66h17.5c.3 0 .6-.2.8-.4 4.8-7.1 6.5-16.2 4.7-24.5zm-46.8.2c-1.7 8.3 0 17.3 4.7 24.3.2.3.5.4.8.4h16.2v-8.4s0-.1-.1-.1c-6-9.2-13.3-14.6-21.6-16.2z"></path>
|
||||
<path d="M17 2c-.3 0-.6.2-.8.4-.2.3-.3.7-.2 1 2.9 7.1 3.1 15.3.6 22.4-.6 2-1.5 3.9-2.4 5.7-.1.2-.2.5-.3.7 13.2 4.2 26.7 4.1 40.2-.1-.6-1.4-1.9-3.9-2.7-6.3-2.5-7.1-2.3-15.3.6-22.4.1-.3.1-.7-.1-.9-.2-.3-.5-.5-.9-.5H17zM9.863 14.75a.944.944 0 0 0-.664.35c-.4.4-.298 1.1.102 1.4l2.1 1.8H3.9c-.5.1-1 .6-1 1.1 0 .6.4 1 1 1h7.5l-2.1 1.8c-.4.4-.502 1-.102 1.4.4.4 1 .5 1.4.1 1.6-1.3 4.002-3.4 4.202-3.6.4-.4.5-1 0-1.5-.2-.2-3.201-2.7-4.201-3.6a.908.908 0 0 0-.737-.25zm48.237.1a.846.846 0 0 0-.7.25c-1 .9-3.9 3.3-4.2 3.6-.4.4-.4 1.1 0 1.5.2.2 3.2 2.7 4.2 3.6.4.4 1 .3 1.4-.1.4-.4.3-1.1-.1-1.4l-2.1-1.8h7.5c.6 0 1-.4 1-1s-.4-1-1-1h-7.5l2.1-1.8c.4-.4.4-1.1.1-1.5-.2-.2-.45-.325-.7-.35zm-3 19.45c-14.2 4.6-28.4 4.6-42.2.1-.5 1.1-1 2.3-1.4 3.5-.1.4-.3.8-.4 1.2 8.4 1.7 15.9 7 22.1 15.8 6.4-9.3 14.5-14.8 23.6-16.1l-.3-.9c-.4-1.2-.9-2.4-1.4-3.6zm2.3 6.8c-8.9 1.2-16.8 6.8-23 16.3V66h17.5c.3 0 .6-.2.8-.4 4.8-7.1 6.5-16.2 4.7-24.5zm-46.8.2c-1.7 8.3 0 17.3 4.7 24.3.2.3.5.4.8.4h16.2v-8.4s0-.1-.1-.1c-6-9.2-13.3-14.6-21.6-16.2z" />
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
@@ -1,308 +0,0 @@
|
||||
import { Localized, useLocalization } from '@fluent/react';
|
||||
import { Typography } from '@/components/commons/Typography';
|
||||
import { LoaderIcon, SlimeState } from '@/components/commons/icon/LoaderIcon';
|
||||
import { useFirmwareTool } from '@/hooks/firmware-tool';
|
||||
import { Button } from '@/components/commons/Button';
|
||||
import { Control, useForm } from 'react-hook-form';
|
||||
import {
|
||||
CreateImuConfigDTO,
|
||||
Imudto,
|
||||
} from '@/firmware-tool-api/firmwareToolSchemas';
|
||||
import { Dropdown } from '@/components/commons/Dropdown';
|
||||
import { TrashIcon } from '@/components/commons/icon/TrashIcon';
|
||||
import { Input } from '@/components/commons/Input';
|
||||
import {
|
||||
ArrowDownIcon,
|
||||
ArrowUpIcon,
|
||||
} from '@/components/commons/icon/ArrowIcons';
|
||||
import { useEffect, useRef, useState } from 'react';
|
||||
import classNames from 'classnames';
|
||||
import { useElemSize } from '@/hooks/layout';
|
||||
import { useGetFirmwaresImus } from '@/firmware-tool-api/firmwareToolComponents';
|
||||
import { CheckBox } from '@/components/commons/Checkbox';
|
||||
|
||||
function IMUCard({
|
||||
control,
|
||||
imuTypes,
|
||||
hasIntPin,
|
||||
index,
|
||||
onDelete,
|
||||
}: {
|
||||
imuTypes: Imudto[];
|
||||
hasIntPin: boolean;
|
||||
control: Control<{ imus: CreateImuConfigDTO[] }, any>;
|
||||
index: number;
|
||||
onDelete: () => void;
|
||||
}) {
|
||||
const { l10n } = useLocalization();
|
||||
const [open, setOpen] = useState(false);
|
||||
const ref = useRef<HTMLDivElement | null>(null);
|
||||
const { height } = useElemSize(ref);
|
||||
|
||||
return (
|
||||
<div className="rounded-lg flex flex-col text-background-10">
|
||||
<div className="flex gap-3 p-4 shadow-md bg-background-50 rounded-md">
|
||||
<div className="bg-accent-background-40 rounded-full h-8 w-9 mt-[28px] flex flex-col items-center justify-center">
|
||||
<Typography variant="section-title" bold>
|
||||
{index + 1}
|
||||
</Typography>
|
||||
</div>
|
||||
<div className={'w-full flex flex-col gap-2'}>
|
||||
<div className="grid xs-settings:grid-cols-2 mobile-settings:grid-cols-1 gap-3 fill-background-10">
|
||||
<label className="flex flex-col justify-end gap-1">
|
||||
<Localized id="firmware_tool-add_imus_step-imu_type-label"></Localized>
|
||||
<Dropdown
|
||||
control={control}
|
||||
name={`imus[${index}].type`}
|
||||
items={imuTypes.map(({ type }) => ({
|
||||
label: type.split('_').slice(1).join(' '),
|
||||
value: type,
|
||||
}))}
|
||||
variant="secondary"
|
||||
maxHeight="25vh"
|
||||
placeholder={l10n.getString(
|
||||
'firmware_tool-add_imus_step-imu_type-placeholder'
|
||||
)}
|
||||
direction="down"
|
||||
display="block"
|
||||
></Dropdown>
|
||||
</label>
|
||||
<Localized
|
||||
id="firmware_tool-add_imus_step-imu_rotation"
|
||||
attrs={{ label: true, placeholder: true }}
|
||||
>
|
||||
<Input
|
||||
control={control}
|
||||
rules={{
|
||||
required: true,
|
||||
}}
|
||||
type="number"
|
||||
name={`imus[${index}].rotation`}
|
||||
variant="primary"
|
||||
label="Rotation Degree"
|
||||
placeholder="Rotation Degree"
|
||||
autocomplete="off"
|
||||
></Input>
|
||||
</Localized>
|
||||
</div>
|
||||
<div
|
||||
className="duration-500 transition-[height] overflow-hidden"
|
||||
style={{ height: open ? height : 0 }}
|
||||
>
|
||||
<div
|
||||
ref={ref}
|
||||
className="grid xs-settings:grid-cols-2 mobile-settings:grid-cols-1 gap-2"
|
||||
>
|
||||
<Localized
|
||||
id="firmware_tool-add_imus_step-scl_pin"
|
||||
attrs={{ label: true, placeholder: true }}
|
||||
>
|
||||
<Input
|
||||
control={control}
|
||||
rules={{ required: true }}
|
||||
type="text"
|
||||
name={`imus[${index}].sclPin`}
|
||||
variant="primary"
|
||||
autocomplete="off"
|
||||
></Input>
|
||||
</Localized>
|
||||
<Localized
|
||||
id="firmware_tool-add_imus_step-sda_pin"
|
||||
attrs={{ label: true, placeholder: true }}
|
||||
>
|
||||
<Input
|
||||
control={control}
|
||||
rules={{ required: true }}
|
||||
type="text"
|
||||
name={`imus[${index}].sdaPin`}
|
||||
variant="primary"
|
||||
label="SDA Pin"
|
||||
placeholder="SDA Pin"
|
||||
autocomplete="off"
|
||||
></Input>
|
||||
</Localized>
|
||||
|
||||
{hasIntPin && (
|
||||
<Localized
|
||||
id="firmware_tool-add_imus_step-int_pin"
|
||||
attrs={{ label: true, placeholder: true }}
|
||||
>
|
||||
<Input
|
||||
control={control}
|
||||
rules={{ required: true }}
|
||||
type="text"
|
||||
name={`imus[${index}].intPin`}
|
||||
variant="primary"
|
||||
autocomplete="off"
|
||||
></Input>
|
||||
</Localized>
|
||||
)}
|
||||
<label className="flex flex-col justify-end gap-1 md:pt-3 sm:pt-3">
|
||||
<Localized
|
||||
id="firmware_tool-add_imus_step-optional_tracker"
|
||||
attrs={{ label: true }}
|
||||
>
|
||||
<CheckBox
|
||||
control={control}
|
||||
name={`imus[${index}].optional`}
|
||||
variant="toggle"
|
||||
color="tertiary"
|
||||
label=""
|
||||
></CheckBox>
|
||||
</Localized>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="flex flex-col items-center mt-[25px] fill-background-10">
|
||||
<Button variant="quaternary" rounded onClick={onDelete}>
|
||||
<TrashIcon size={15}></TrashIcon>
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
className="items-center flex justify-center hover:bg-background-60 bg-background-80 -mt-0.5 transition-colors duration-300 fill-background-10 rounded-b-lg pt-1 pb-0.5"
|
||||
onClick={() => setOpen(!open)}
|
||||
>
|
||||
<Typography>
|
||||
{l10n.getString(
|
||||
open
|
||||
? 'firmware_tool-add_imus_step-show_less'
|
||||
: 'firmware_tool-add_imus_step-show_more'
|
||||
)}
|
||||
</Typography>
|
||||
{!open && <ArrowDownIcon></ArrowDownIcon>}
|
||||
{open && <ArrowUpIcon></ArrowUpIcon>}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export function AddImusStep({
|
||||
nextStep,
|
||||
prevStep,
|
||||
isActive,
|
||||
}: {
|
||||
nextStep: () => void;
|
||||
prevStep: () => void;
|
||||
goTo: (id: string) => void;
|
||||
isActive: boolean;
|
||||
}) {
|
||||
const { l10n } = useLocalization();
|
||||
const {
|
||||
isStepLoading: isLoading,
|
||||
newConfig,
|
||||
defaultConfig,
|
||||
updateImus,
|
||||
} = useFirmwareTool();
|
||||
|
||||
const {
|
||||
control,
|
||||
formState: { isValid: isValidState },
|
||||
reset,
|
||||
watch,
|
||||
} = useForm<{ imus: CreateImuConfigDTO[] }>({
|
||||
defaultValues: {
|
||||
imus: [],
|
||||
},
|
||||
reValidateMode: 'onChange',
|
||||
mode: 'onChange',
|
||||
});
|
||||
|
||||
useEffect(() => {
|
||||
reset({
|
||||
imus: newConfig?.imusConfig || [],
|
||||
});
|
||||
}, [isActive]);
|
||||
|
||||
const { isFetching, data: imuTypes } = useGetFirmwaresImus({});
|
||||
|
||||
const isAckchuallyLoading = isFetching || isLoading;
|
||||
const form = watch();
|
||||
|
||||
const addImu = () => {
|
||||
if (!newConfig || !defaultConfig) throw new Error('unreachable');
|
||||
|
||||
const imuPinToAdd =
|
||||
defaultConfig.imuDefaults[form.imus.length ?? 0] ??
|
||||
defaultConfig.imuDefaults[0];
|
||||
const imuTypeToAdd: CreateImuConfigDTO['type'] =
|
||||
form.imus[0]?.type ?? 'IMU_BNO085';
|
||||
reset({
|
||||
imus: [...form.imus, { ...imuPinToAdd, type: imuTypeToAdd }],
|
||||
});
|
||||
};
|
||||
const deleteImu = (index: number) => {
|
||||
reset({ imus: form.imus.filter((_, i) => i !== index) });
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="flex flex-col w-full">
|
||||
<div className="flex flex-col gap-4">
|
||||
<Typography>
|
||||
{l10n.getString('firmware_tool-add_imus_step-description')}
|
||||
</Typography>
|
||||
</div>
|
||||
<div className="my-4 flex flex-col gap-4">
|
||||
{!isAckchuallyLoading && imuTypes && newConfig && (
|
||||
<>
|
||||
<div className="flex flex-col gap-3">
|
||||
<div
|
||||
className={classNames(
|
||||
'grid gap-2 px-2',
|
||||
form.imus.length > 1
|
||||
? 'md:grid-cols-2 mobile-settings:grid-cols-1'
|
||||
: 'grid-cols-1'
|
||||
)}
|
||||
>
|
||||
{form.imus.map((imu, index) => (
|
||||
<IMUCard
|
||||
control={control}
|
||||
imuTypes={imuTypes}
|
||||
key={`${index}:${imu.type}`}
|
||||
hasIntPin={
|
||||
imuTypes?.find(({ type: t }) => t == imu.type)
|
||||
?.hasIntPin ?? false
|
||||
}
|
||||
index={index}
|
||||
onDelete={() => deleteImu(index)}
|
||||
></IMUCard>
|
||||
))}
|
||||
</div>
|
||||
<div className="flex justify-center">
|
||||
<Localized id="firmware_tool-add_imus_step-add_more">
|
||||
<Button variant="primary" onClick={addImu}></Button>
|
||||
</Localized>
|
||||
</div>
|
||||
</div>
|
||||
<div className="flex justify-between">
|
||||
<Localized id="firmware_tool-previous_step">
|
||||
<Button variant="tertiary" onClick={prevStep}></Button>
|
||||
</Localized>
|
||||
<Localized id="firmware_tool-next_step">
|
||||
<Button
|
||||
variant="primary"
|
||||
disabled={!isValidState || form.imus.length === 0}
|
||||
onClick={() => {
|
||||
updateImus(form.imus);
|
||||
nextStep();
|
||||
}}
|
||||
></Button>
|
||||
</Localized>
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
{isAckchuallyLoading && (
|
||||
<div className="flex justify-center flex-col items-center gap-3 h-44">
|
||||
<LoaderIcon slimeState={SlimeState.JUMPY}></LoaderIcon>
|
||||
<Localized id="firmware_tool-loading">
|
||||
<Typography></Typography>
|
||||
</Localized>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,198 +0,0 @@
|
||||
import { Localized, useLocalization } from '@fluent/react';
|
||||
import { Typography } from '@/components/commons/Typography';
|
||||
import { LoaderIcon, SlimeState } from '@/components/commons/icon/LoaderIcon';
|
||||
import { useFirmwareTool } from '@/hooks/firmware-tool';
|
||||
import { Button } from '@/components/commons/Button';
|
||||
import { useForm } from 'react-hook-form';
|
||||
import { Input } from '@/components/commons/Input';
|
||||
import { useEffect } from 'react';
|
||||
import { CheckBox } from '@/components/commons/Checkbox';
|
||||
import { CreateBoardConfigDTO } from '@/firmware-tool-api/firmwareToolSchemas';
|
||||
import { Dropdown } from '@/components/commons/Dropdown';
|
||||
import classNames from 'classnames';
|
||||
import { useGetFirmwaresBatteries } from '@/firmware-tool-api/firmwareToolComponents';
|
||||
|
||||
export type BoardPinsForm = Omit<CreateBoardConfigDTO, 'type'>;
|
||||
|
||||
export function BoardPinsStep({
|
||||
nextStep,
|
||||
prevStep,
|
||||
}: {
|
||||
nextStep: () => void;
|
||||
prevStep: () => void;
|
||||
}) {
|
||||
const { l10n } = useLocalization();
|
||||
const {
|
||||
isStepLoading: isLoading,
|
||||
defaultConfig,
|
||||
updatePins,
|
||||
} = useFirmwareTool();
|
||||
const { isFetching, data: batteryTypes } = useGetFirmwaresBatteries({});
|
||||
|
||||
const { reset, control, watch, formState } = useForm<BoardPinsForm>({
|
||||
reValidateMode: 'onChange',
|
||||
defaultValues: {
|
||||
batteryResistances: [0, 0, 0],
|
||||
},
|
||||
mode: 'onChange',
|
||||
});
|
||||
|
||||
const formValue = watch();
|
||||
const ledEnabled = watch('enableLed');
|
||||
const batteryType = watch('batteryType');
|
||||
|
||||
useEffect(() => {
|
||||
if (!defaultConfig) return;
|
||||
const { type, ...resetConfig } = defaultConfig.boardConfig;
|
||||
reset({
|
||||
...resetConfig,
|
||||
});
|
||||
}, [defaultConfig]);
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="flex flex-col w-full justify-between text-background-10">
|
||||
<div className="flex flex-col gap-4">
|
||||
<Typography>
|
||||
{l10n.getString('firmware_tool-board_pins_step-description')}
|
||||
</Typography>
|
||||
</div>
|
||||
<div className="my-4 p-2">
|
||||
{!isLoading && !isFetching && batteryTypes && (
|
||||
<form className="flex flex-col gap-2">
|
||||
<div className="grid xs-settings:grid-cols-2 mobile-settings:grid-cols-1 gap-2">
|
||||
<label className="flex flex-col justify-end">
|
||||
{/* Allows to have the right spacing at the top of the checkbox */}
|
||||
<CheckBox
|
||||
control={control}
|
||||
color="tertiary"
|
||||
name="enableLed"
|
||||
variant="toggle"
|
||||
outlined
|
||||
label={l10n.getString(
|
||||
'firmware_tool-board_pins_step-enable_led'
|
||||
)}
|
||||
></CheckBox>
|
||||
</label>
|
||||
<Localized
|
||||
id="firmware_tool-board_pins_step-led_pin"
|
||||
attrs={{ placeholder: true, label: true }}
|
||||
>
|
||||
<Input
|
||||
control={control}
|
||||
rules={{ required: true }}
|
||||
type="text"
|
||||
name="ledPin"
|
||||
variant="secondary"
|
||||
disabled={!ledEnabled}
|
||||
></Input>
|
||||
</Localized>
|
||||
</div>
|
||||
<div
|
||||
className={classNames(
|
||||
batteryType === 'BAT_EXTERNAL' &&
|
||||
'bg-background-80 p-2 rounded-md',
|
||||
'transition-all duration-500 flex-col flex gap-2'
|
||||
)}
|
||||
>
|
||||
<Dropdown
|
||||
control={control}
|
||||
name="batteryType"
|
||||
variant="primary"
|
||||
placeholder={l10n.getString(
|
||||
'firmware_tool-board_pins_step-battery_type'
|
||||
)}
|
||||
direction="up"
|
||||
display="block"
|
||||
items={batteryTypes.map((battery) => ({
|
||||
label: l10n.getString(
|
||||
'firmware_tool-board_pins_step-battery_type-' + battery
|
||||
),
|
||||
value: battery,
|
||||
}))}
|
||||
></Dropdown>
|
||||
{batteryType === 'BAT_EXTERNAL' && (
|
||||
<div className="grid grid-cols-2 gap-2">
|
||||
<Localized
|
||||
id="firmware_tool-board_pins_step-battery_sensor_pin"
|
||||
attrs={{ placeholder: true, label: true }}
|
||||
>
|
||||
<Input
|
||||
control={control}
|
||||
rules={{ required: true }}
|
||||
type="text"
|
||||
name="batteryPin"
|
||||
variant="secondary"
|
||||
></Input>
|
||||
</Localized>
|
||||
<Localized
|
||||
id="firmware_tool-board_pins_step-battery_resistor"
|
||||
attrs={{ placeholder: true, label: true }}
|
||||
>
|
||||
<Input
|
||||
control={control}
|
||||
rules={{ required: true, min: 0 }}
|
||||
type="number"
|
||||
name="batteryResistances[0]"
|
||||
variant="secondary"
|
||||
label="Battery Resistor"
|
||||
placeholder="Battery Resistor"
|
||||
></Input>
|
||||
</Localized>
|
||||
<Localized
|
||||
id="firmware_tool-board_pins_step-battery_shield_resistor-0"
|
||||
attrs={{ placeholder: true, label: true }}
|
||||
>
|
||||
<Input
|
||||
control={control}
|
||||
rules={{ required: true, min: 0 }}
|
||||
type="number"
|
||||
name="batteryResistances[1]"
|
||||
variant="secondary"
|
||||
></Input>
|
||||
</Localized>
|
||||
<Localized
|
||||
id="firmware_tool-board_pins_step-battery_shield_resistor-1"
|
||||
attrs={{ placeholder: true, label: true }}
|
||||
>
|
||||
<Input
|
||||
control={control}
|
||||
rules={{ required: true, min: 0 }}
|
||||
type="number"
|
||||
name="batteryResistances[2]"
|
||||
variant="secondary"
|
||||
></Input>
|
||||
</Localized>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</form>
|
||||
)}
|
||||
{(isLoading || isFetching) && (
|
||||
<div className="flex justify-center flex-col items-center gap-3 h-44">
|
||||
<LoaderIcon slimeState={SlimeState.JUMPY}></LoaderIcon>
|
||||
<Localized id="firmware_tool-loading">
|
||||
<Typography></Typography>
|
||||
</Localized>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
<div className="flex justify-between">
|
||||
<Localized id="firmware_tool-previous_step">
|
||||
<Button variant="tertiary" onClick={prevStep}></Button>
|
||||
</Localized>
|
||||
<Localized id="firmware_tool-ok">
|
||||
<Button
|
||||
variant="primary"
|
||||
disabled={Object.keys(formState.errors).length !== 0}
|
||||
onClick={() => {
|
||||
updatePins(formValue);
|
||||
nextStep();
|
||||
}}
|
||||
></Button>
|
||||
</Localized>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -19,6 +19,7 @@ interface DeviceCardProps {
|
||||
deviceNames: string[];
|
||||
status?: FirmwareUpdateStatus;
|
||||
online?: boolean | null;
|
||||
color?: string;
|
||||
}
|
||||
|
||||
interface DeviceCardControlProps {
|
||||
@@ -60,6 +61,7 @@ export function DeviceCardControl({
|
||||
progress,
|
||||
disabled = false,
|
||||
online = null,
|
||||
color = 'bg-background-60',
|
||||
...props
|
||||
}: DeviceCardControlProps & DeviceCardProps) {
|
||||
const cardborder = useMemo(() => {
|
||||
@@ -80,8 +82,9 @@ export function DeviceCardControl({
|
||||
return (
|
||||
<div
|
||||
className={classNames(
|
||||
'rounded-md bg-background-60 h-[86px] pt-2 flex flex-col justify-between border-2 relative',
|
||||
cardborder
|
||||
'rounded-md h-[86px] pt-2 flex flex-col justify-between border-2 relative',
|
||||
cardborder,
|
||||
color
|
||||
)}
|
||||
>
|
||||
{control && name ? (
|
||||
@@ -98,18 +101,18 @@ export function DeviceCardControl({
|
||||
checked={value || false}
|
||||
type="checkbox"
|
||||
disabled={disabled}
|
||||
></input>
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="w-full">
|
||||
<DeviceCardContent {...props}></DeviceCardContent>
|
||||
<DeviceCardContent {...props} />
|
||||
</div>
|
||||
</label>
|
||||
)}
|
||||
></Controller>
|
||||
/>
|
||||
) : (
|
||||
<div className="px-2 h-full">
|
||||
<DeviceCardContent {...props}></DeviceCardContent>
|
||||
<DeviceCardContent {...props} />
|
||||
</div>
|
||||
)}
|
||||
<div
|
||||
@@ -126,7 +129,7 @@ export function DeviceCardControl({
|
||||
bottom
|
||||
height={6}
|
||||
colorClass="bg-accent-background-20"
|
||||
></ProgressBar>
|
||||
/>
|
||||
</div>
|
||||
{online !== null && (
|
||||
<div className="absolute top-2 right-2">
|
||||
@@ -134,7 +137,7 @@ export function DeviceCardControl({
|
||||
status={
|
||||
online ? TrackerStatusEnum.OK : TrackerStatusEnum.DISCONNECTED
|
||||
}
|
||||
></TrackerStatus>
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
@@ -3,56 +3,63 @@ import { Typography } from '@/components/commons/Typography';
|
||||
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
||||
import {
|
||||
FirmwareToolContextC,
|
||||
useFirmwareToolContext,
|
||||
provideFirmwareTool,
|
||||
} from '@/hooks/firmware-tool';
|
||||
import { AddImusStep } from './AddImusStep';
|
||||
import { SelectBoardStep } from './SelectBoardStep';
|
||||
import { BoardPinsStep } from './BoardPinsStep';
|
||||
import VerticalStepper from '@/components/commons/VerticalStepper';
|
||||
import VerticalStepper, {
|
||||
VerticalStep,
|
||||
} from '@/components/commons/VerticalStepper';
|
||||
import { LoaderIcon, SlimeState } from '@/components/commons/icon/LoaderIcon';
|
||||
import { Button } from '@/components/commons/Button';
|
||||
import { SelectFirmwareStep } from './SelectFirmwareStep';
|
||||
import { BuildStep } from './BuildStep';
|
||||
import { FlashingMethodStep } from './FlashingMethodStep';
|
||||
import { FlashingStep } from './FlashingStep';
|
||||
import { FlashBtnStep } from './FlashBtnStep';
|
||||
import { FirmwareUpdateMethod } from 'solarxr-protocol';
|
||||
import { useMemo } from 'react';
|
||||
import {
|
||||
useGetHealth,
|
||||
useGetIsCompatibleVersion,
|
||||
} from '@/firmware-tool-api/firmwareToolComponents';
|
||||
import { SelectSourceSetep } from './steps/SelectSourceStep';
|
||||
import { BoardDefaultsStep } from './steps/BoardDefaultsStep';
|
||||
import { BuildStep } from './steps/BuildStep';
|
||||
import { FlashingMethodStep } from './steps/FlashingMethodStep';
|
||||
import { FirmwareUpdateMethod } from 'solarxr-protocol';
|
||||
import { FlashBtnStep } from './steps/FlashBtnStep';
|
||||
import { FlashingStep } from './steps/FlashingStep';
|
||||
|
||||
function FirmwareToolContent() {
|
||||
const { l10n } = useLocalization();
|
||||
const context = useFirmwareToolContext();
|
||||
const { isError, isGlobalLoading: isLoading, retry, isCompatible } = context;
|
||||
const context = provideFirmwareTool();
|
||||
const { isError, isLoading: isInitialLoading, refetch } = useGetHealth({});
|
||||
const compatibilityCheckEnabled = !!__VERSION_TAG__;
|
||||
const { isLoading: isCompatibilityLoading, data: compatibilityData } =
|
||||
useGetIsCompatibleVersion(
|
||||
{ pathParams: { version: __VERSION_TAG__ } },
|
||||
{ enabled: compatibilityCheckEnabled }
|
||||
);
|
||||
|
||||
const isLoading = isInitialLoading || isCompatibilityLoading;
|
||||
const isCompatible =
|
||||
!compatibilityCheckEnabled || (compatibilityData?.success ?? false);
|
||||
|
||||
const steps = useMemo(() => {
|
||||
const steps = [
|
||||
const steps: VerticalStep[] = [
|
||||
{
|
||||
id: 'SelectBoard',
|
||||
component: SelectBoardStep,
|
||||
title: l10n.getString('firmware_tool-board_step'),
|
||||
id: 'SelectSource',
|
||||
component: SelectSourceSetep,
|
||||
title: l10n.getString('firmware_tool-select_source'),
|
||||
},
|
||||
{
|
||||
component: BoardPinsStep,
|
||||
title: l10n.getString('firmware_tool-board_pins_step'),
|
||||
},
|
||||
{
|
||||
component: AddImusStep,
|
||||
title: l10n.getString('firmware_tool-add_imus_step'),
|
||||
},
|
||||
{
|
||||
id: 'SelectFirmware',
|
||||
component: SelectFirmwareStep,
|
||||
title: l10n.getString('firmware_tool-select_firmware_step'),
|
||||
},
|
||||
{
|
||||
component: FlashingMethodStep,
|
||||
id: 'FlashingMethod',
|
||||
title: l10n.getString('firmware_tool-flash_method_step'),
|
||||
id: 'Defaults',
|
||||
component: BoardDefaultsStep,
|
||||
title: l10n.getString('firmware_tool-board_defaults'),
|
||||
},
|
||||
{
|
||||
id: 'Build',
|
||||
component: BuildStep,
|
||||
title: l10n.getString('firmware_tool-build_step'),
|
||||
},
|
||||
{
|
||||
id: 'FlashingMethod',
|
||||
component: FlashingMethodStep,
|
||||
title: l10n.getString('firmware_tool-flash_method_step'),
|
||||
},
|
||||
{
|
||||
component: FlashingStep,
|
||||
title: l10n.getString('firmware_tool-flashing_step'),
|
||||
@@ -60,18 +67,22 @@ function FirmwareToolContent() {
|
||||
];
|
||||
|
||||
if (
|
||||
context.defaultConfig?.needBootPress &&
|
||||
context.selectedDefault?.flashingRules.needBootPress &&
|
||||
context.selectedDevices?.find(
|
||||
({ type }) => type === FirmwareUpdateMethod.SerialFirmwareUpdate
|
||||
)
|
||||
) {
|
||||
steps.splice(5, 0, {
|
||||
steps.splice(4, 0, {
|
||||
component: FlashBtnStep,
|
||||
title: l10n.getString('firmware_tool-flashbtn_step'),
|
||||
});
|
||||
}
|
||||
return steps;
|
||||
}, [context.defaultConfig?.needBootPress, context.selectedDevices, l10n]);
|
||||
}, [
|
||||
context.selectedDefault?.flashingRules.needBootPress,
|
||||
context.selectedDevices,
|
||||
l10n,
|
||||
]);
|
||||
|
||||
return (
|
||||
<FirmwareToolContextC.Provider value={context}>
|
||||
@@ -92,26 +103,26 @@ function FirmwareToolContent() {
|
||||
<div className="m-4 h-full">
|
||||
{isError && (
|
||||
<div className="w-full flex flex-col justify-center items-center gap-3 h-full">
|
||||
<LoaderIcon slimeState={SlimeState.SAD}></LoaderIcon>
|
||||
<LoaderIcon slimeState={SlimeState.SAD} />
|
||||
{!isCompatible ? (
|
||||
<Localized id="firmware_tool-not_compatible">
|
||||
<Typography variant="section-title"></Typography>
|
||||
<Typography variant="section-title" />
|
||||
</Localized>
|
||||
) : (
|
||||
<Localized id="firmware_tool-not_available">
|
||||
<Typography variant="section-title"></Typography>
|
||||
<Typography variant="section-title" />
|
||||
</Localized>
|
||||
)}
|
||||
<Localized id="firmware_tool-retry">
|
||||
<Button variant="primary" onClick={retry}></Button>
|
||||
<Button variant="primary" onClick={() => refetch()} />
|
||||
</Localized>
|
||||
</div>
|
||||
)}
|
||||
{isLoading && (
|
||||
<div className="w-full flex flex-col justify-center items-center gap-3 h-full">
|
||||
<LoaderIcon slimeState={SlimeState.JUMPY}></LoaderIcon>
|
||||
<LoaderIcon slimeState={SlimeState.JUMPY} />
|
||||
<Localized id="firmware_tool-loading">
|
||||
<Typography variant="section-title"></Typography>
|
||||
<Typography variant="section-title" />
|
||||
</Localized>
|
||||
</div>
|
||||
)}
|
||||
|
||||
@@ -1,102 +0,0 @@
|
||||
import { Localized, useLocalization } from '@fluent/react';
|
||||
import { Typography } from '@/components/commons/Typography';
|
||||
import { LoaderIcon, SlimeState } from '@/components/commons/icon/LoaderIcon';
|
||||
import {
|
||||
firmwareToolToBoardType,
|
||||
useFirmwareTool,
|
||||
} from '@/hooks/firmware-tool';
|
||||
import { CreateBoardConfigDTO } from '@/firmware-tool-api/firmwareToolSchemas';
|
||||
import classNames from 'classnames';
|
||||
import { Button } from '@/components/commons/Button';
|
||||
import { useGetFirmwaresBoards } from '@/firmware-tool-api/firmwareToolComponents';
|
||||
import { BoardType } from 'solarxr-protocol';
|
||||
|
||||
export function SelectBoardStep({
|
||||
nextStep,
|
||||
goTo,
|
||||
}: {
|
||||
nextStep: () => void;
|
||||
prevStep: () => void;
|
||||
goTo: (id: string) => void;
|
||||
}) {
|
||||
const { l10n } = useLocalization();
|
||||
const { selectBoard, newConfig, defaultConfig } = useFirmwareTool();
|
||||
const { isFetching, data: boards } = useGetFirmwaresBoards({});
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="flex flex-col w-full">
|
||||
<div className="flex flex-grow flex-col gap-4">
|
||||
<Typography>
|
||||
{l10n.getString('firmware_tool-board_step-description')}
|
||||
</Typography>
|
||||
</div>
|
||||
<div className="my-4">
|
||||
{!isFetching && (
|
||||
<div className="gap-2 flex flex-col">
|
||||
<div className="grid sm:grid-cols-2 mobile-settings:grid-cols-1 gap-2">
|
||||
{boards
|
||||
?.filter(
|
||||
(board) =>
|
||||
!!firmwareToolToBoardType[
|
||||
board as CreateBoardConfigDTO['type']
|
||||
]
|
||||
)
|
||||
.map((board) => (
|
||||
<div
|
||||
key={board}
|
||||
className={classNames(
|
||||
'p-3 rounded-md hover:bg-background-50',
|
||||
{
|
||||
'bg-background-50 text-background-10':
|
||||
newConfig?.boardConfig?.type === board,
|
||||
'bg-background-60':
|
||||
newConfig?.boardConfig?.type !== board,
|
||||
}
|
||||
)}
|
||||
onClick={() => {
|
||||
selectBoard(board as CreateBoardConfigDTO['type']);
|
||||
}}
|
||||
>
|
||||
{l10n.getString(
|
||||
`board_type-${
|
||||
BoardType[
|
||||
firmwareToolToBoardType[
|
||||
board as CreateBoardConfigDTO['type']
|
||||
] ?? BoardType.UNKNOWN
|
||||
]
|
||||
}`
|
||||
)}
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
<div className="flex justify-end">
|
||||
<Localized id="firmware_tool-next_step">
|
||||
<Button
|
||||
variant="primary"
|
||||
disabled={!newConfig?.boardConfig?.type}
|
||||
onClick={() => {
|
||||
if (defaultConfig?.shouldOnlyUseDefaults) {
|
||||
goTo('SelectFirmware');
|
||||
} else {
|
||||
nextStep();
|
||||
}
|
||||
}}
|
||||
></Button>
|
||||
</Localized>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
{isFetching && (
|
||||
<div className="flex justify-center flex-col items-center gap-3 h-44">
|
||||
<LoaderIcon slimeState={SlimeState.JUMPY}></LoaderIcon>
|
||||
<Localized id="firmware_tool-loading">
|
||||
<Typography></Typography>
|
||||
</Localized>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,120 +0,0 @@
|
||||
import { Localized, useLocalization } from '@fluent/react';
|
||||
import { Typography } from '@/components/commons/Typography';
|
||||
import { useGetFirmwaresVersions } from '@/firmware-tool-api/firmwareToolComponents';
|
||||
import { LoaderIcon, SlimeState } from '@/components/commons/icon/LoaderIcon';
|
||||
import { useFirmwareTool } from '@/hooks/firmware-tool';
|
||||
import classNames from 'classnames';
|
||||
import { Button } from '@/components/commons/Button';
|
||||
import { useMemo } from 'react';
|
||||
import { CheckBox } from '@/components/commons/Checkbox';
|
||||
import { useForm } from 'react-hook-form';
|
||||
|
||||
export function SelectFirmwareStep({
|
||||
nextStep,
|
||||
prevStep,
|
||||
goTo,
|
||||
}: {
|
||||
nextStep: () => void;
|
||||
prevStep: () => void;
|
||||
goTo: (id: string) => void;
|
||||
}) {
|
||||
const { l10n } = useLocalization();
|
||||
const { selectVersion, newConfig, defaultConfig } = useFirmwareTool();
|
||||
const { isFetching, data: firmwares } = useGetFirmwaresVersions({});
|
||||
|
||||
const { control, watch } = useForm<{ thirdParty: boolean }>({});
|
||||
|
||||
const showThirdParty = watch('thirdParty');
|
||||
|
||||
const getName = (name: string) => {
|
||||
return showThirdParty ? name : name.substring(name.indexOf('/') + 1);
|
||||
};
|
||||
|
||||
const filteredFirmwares = useMemo(() => {
|
||||
return firmwares?.filter(
|
||||
({ name }) => name.split('/')[0] === 'SlimeVR' || showThirdParty
|
||||
);
|
||||
}, [firmwares, showThirdParty]);
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="flex flex-col w-full">
|
||||
<div className="flex justify-between items-center mobile:flex-col gap-4">
|
||||
<Typography>
|
||||
{l10n.getString('firmware_tool-select_firmware_step-description')}
|
||||
</Typography>
|
||||
<div>
|
||||
<Localized
|
||||
id="firmware_tool-select_firmware_step-show-third-party"
|
||||
attrs={{ label: true }}
|
||||
>
|
||||
<CheckBox
|
||||
control={control}
|
||||
name="thirdParty"
|
||||
label="Show third party firmwares"
|
||||
></CheckBox>
|
||||
</Localized>
|
||||
</div>
|
||||
</div>
|
||||
<div className="my-4">
|
||||
{!isFetching && (
|
||||
<div className="flex flex-col gap-4">
|
||||
<div className="xs-settings:max-h-96 xs-settings:overflow-y-auto xs-settings:px-2">
|
||||
<div className="grid sm:grid-cols-2 mobile-settings:grid-cols-1 gap-2">
|
||||
{filteredFirmwares?.map((firmware) => (
|
||||
<div
|
||||
key={firmware.id}
|
||||
className={classNames(
|
||||
'p-3 rounded-md hover:bg-background-50',
|
||||
{
|
||||
'bg-background-50 text-background-10':
|
||||
newConfig?.version === firmware.name,
|
||||
'bg-background-60':
|
||||
newConfig?.version !== firmware.name,
|
||||
}
|
||||
)}
|
||||
onClick={() => {
|
||||
selectVersion(firmware.name);
|
||||
}}
|
||||
>
|
||||
{getName(firmware.name)}
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
<div className="flex justify-between">
|
||||
<Localized id="firmware_tool-previous_step">
|
||||
<Button
|
||||
variant="tertiary"
|
||||
onClick={() => {
|
||||
if (defaultConfig?.shouldOnlyUseDefaults) {
|
||||
goTo('SelectBoard');
|
||||
} else {
|
||||
prevStep();
|
||||
}
|
||||
}}
|
||||
></Button>
|
||||
</Localized>
|
||||
<Localized id="firmware_tool-next_step">
|
||||
<Button
|
||||
variant="primary"
|
||||
disabled={!newConfig?.version}
|
||||
onClick={nextStep}
|
||||
></Button>
|
||||
</Localized>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
{isFetching && (
|
||||
<div className="flex justify-center flex-col items-center gap-3 h-44">
|
||||
<LoaderIcon slimeState={SlimeState.JUMPY}></LoaderIcon>
|
||||
<Localized id="firmware_tool-loading">
|
||||
<Typography></Typography>
|
||||
</Localized>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,225 @@
|
||||
import { Localized, useLocalization } from '@fluent/react';
|
||||
import { Typography } from '@/components/commons/Typography';
|
||||
import {
|
||||
boardComponentGraph,
|
||||
ComponentNode,
|
||||
SelectedSouce,
|
||||
useFirmwareTool,
|
||||
validateSource,
|
||||
} from '@/hooks/firmware-tool';
|
||||
import { useEffect, useState } from 'react';
|
||||
import { CheckboxInternal } from '@/components/commons/Checkbox';
|
||||
import { InputInside } from '@/components/commons/Input';
|
||||
import { DropdownInside } from '@/components/commons/Dropdown';
|
||||
import classNames from 'classnames';
|
||||
import { Button } from '@/components/commons/Button';
|
||||
import { TrashIcon } from '@/components/commons/icon/TrashIcon';
|
||||
|
||||
function BoardDefaultsGraph({ graph }: { graph: ComponentNode[] }) {
|
||||
const { l10n } = useLocalization();
|
||||
|
||||
const renderComponent = (
|
||||
c: ComponentNode,
|
||||
depth = 0,
|
||||
onDelete?: () => void
|
||||
) => {
|
||||
if (c.type === 'group') {
|
||||
return (
|
||||
<div
|
||||
key={c.path.join('/')}
|
||||
className={classNames('flex flex-col rounded-lg', {
|
||||
'p-4 ': depth !== 0,
|
||||
'bg-background-80': depth >= 1,
|
||||
})}
|
||||
>
|
||||
<div className="flex justify-between items-center">
|
||||
<Typography variant="section-title">{c.label}</Typography>
|
||||
{onDelete && (
|
||||
<div
|
||||
className="p-2 rounded-full fill-background-10 hover:bg-background-50 hover:fill-status-critical cursor-pointer"
|
||||
onClick={() => onDelete && onDelete()}
|
||||
>
|
||||
<TrashIcon size={20} />
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
<div
|
||||
className={classNames({
|
||||
'flex flex-col gap-4': depth + 1 <= 1,
|
||||
'grid sm:grid-cols-2 gap-2 items-end': depth + 1 > 1,
|
||||
})}
|
||||
>
|
||||
{c.childrens.map((c) => renderComponent(c, depth + 1))}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
if (c.type === 'checkbox') {
|
||||
return (
|
||||
<div key={c.path.join('/')}>
|
||||
<CheckboxInternal
|
||||
name={c.label}
|
||||
label={c.label}
|
||||
onChange={(e) => c.onMutate(e.currentTarget.checked)}
|
||||
checked={c.value}
|
||||
variant="toggle"
|
||||
outlined
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
if (c.type === 'text') {
|
||||
return (
|
||||
<div className="flex flex-col pt-2" key={c.path.join('/')}>
|
||||
<InputInside
|
||||
name={c.label}
|
||||
label={c.label}
|
||||
placeholder={c.label}
|
||||
value={c.value}
|
||||
type={c.format === 'number' ? 'number' : 'text'}
|
||||
error={
|
||||
c.error
|
||||
? { type: 'validate', message: l10n.getString(c.error) }
|
||||
: undefined
|
||||
}
|
||||
variant="primary"
|
||||
onChange={(e) => c.onMutate(e.currentTarget.value)}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
if (c.type === 'dropdown') {
|
||||
return (
|
||||
<div className="flex flex-col pt-2 gap-1" key={c.path.join('/')}>
|
||||
<Typography>{c.label}</Typography>
|
||||
<DropdownInside
|
||||
items={c.items.map((i) => ({ value: i, label: i }))}
|
||||
name={c.label}
|
||||
onChange={c.onMutate}
|
||||
error={
|
||||
c.error
|
||||
? { type: 'validate', message: l10n.getString(c.error) }
|
||||
: undefined
|
||||
}
|
||||
placeholder={c.label}
|
||||
display="block"
|
||||
value={c.value}
|
||||
variant="secondary"
|
||||
maxHeight={200}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
if (c.type === 'list') {
|
||||
return (
|
||||
<div
|
||||
key={c.path.join('/')}
|
||||
className={classNames('flex flex-col gap-2 rounded-lg', {
|
||||
'p-4': depth >= 2,
|
||||
'bg-background-70': depth >= 1,
|
||||
})}
|
||||
>
|
||||
<Typography variant="section-title">{c.label}</Typography>
|
||||
<div
|
||||
className={classNames({
|
||||
'grid sm:grid-cols-2 gap-2': true,
|
||||
})}
|
||||
>
|
||||
{c.childrens.map((c2, index) =>
|
||||
renderComponent(
|
||||
c2,
|
||||
depth + 1,
|
||||
c.del ? () => c.del?.(index) : undefined
|
||||
)
|
||||
)}
|
||||
{c.add && (
|
||||
<div className="flex flex-col justify-center">
|
||||
<div className="flex justify-center">
|
||||
<Localized id="firmware_tool-board_defaults-add">
|
||||
<Button variant="primary" onClick={c.add} />
|
||||
</Localized>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="flex flex-col gap-2">
|
||||
{graph.map((c) => renderComponent(c, 0))}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export function BoardDefaultsStep({
|
||||
nextStep,
|
||||
prevStep,
|
||||
}: {
|
||||
nextStep: () => void;
|
||||
prevStep: () => void;
|
||||
goTo: (id: string) => void;
|
||||
}) {
|
||||
const { l10n } = useLocalization();
|
||||
const { selectedSource, setSelectedSource } = useFirmwareTool();
|
||||
const [graph, setGraph] = useState<ComponentNode[]>([]);
|
||||
const [temporarySource, setTemporarySource] = useState<SelectedSouce>();
|
||||
const [valid, setValid] = useState<boolean>(false);
|
||||
const [tr, setTr] = useState(0);
|
||||
|
||||
useEffect(() => {
|
||||
if (!selectedSource) return;
|
||||
setTemporarySource(JSON.parse(JSON.stringify(selectedSource))); // make a deep copy bc the graph will modify temporarySource by references
|
||||
}, [selectedSource]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!temporarySource) return;
|
||||
const components = boardComponentGraph(temporarySource, () => {
|
||||
setTr((tr) => tr + 1);
|
||||
});
|
||||
setGraph(components);
|
||||
setValid(validateSource(temporarySource));
|
||||
}, [temporarySource, tr]);
|
||||
|
||||
const submit = () => {
|
||||
setSelectedSource(temporarySource);
|
||||
nextStep();
|
||||
};
|
||||
|
||||
const reset = () => {
|
||||
setTemporarySource(selectedSource);
|
||||
setTr((tr) => tr + 1);
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="flex flex-col w-full gap-4">
|
||||
<div className="flex flex-grow flex-col gap-4">
|
||||
<Typography>
|
||||
{l10n.getString('firmware_tool-board_defaults-description')}
|
||||
</Typography>
|
||||
</div>
|
||||
<BoardDefaultsGraph graph={graph} />
|
||||
<div className="flex justify-between">
|
||||
<Localized id="firmware_tool-previous_step">
|
||||
<Button variant="secondary" onClick={prevStep} />
|
||||
</Localized>
|
||||
<div className="flex gap-2">
|
||||
<Localized id="firmware_tool-board_defaults-reset">
|
||||
<Button variant="secondary" onClick={reset} />
|
||||
</Localized>
|
||||
<Localized id="firmware_tool-ok">
|
||||
<Button variant="primary" disabled={!valid} onClick={submit} />
|
||||
</Localized>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Loaded 100 of 255 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user