-
-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firmware tool #880
Open
loucass003
wants to merge
61
commits into
main
Choose a base branch
from
llelievr/firmware-tool
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Firmware tool #880
Changes from 38 commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
f775da6
Allow for buttons to not have a child
loucass003 7b9a0ba
Fix VRMode not going back to home screen when resizing to desktop layout
loucass003 97dce51
Make Stepper Slider not glitch on window resize
loucass003 01d8e3f
Refactor of the dropdown component
loucass003 829d6df
Refactor TrashIcon ArrowIcon and LoaderIcon
loucass003 7b98137
Add more colors to checkbox
loucass003 062511b
Add disabled state to Ratio, Fix typos and bad typing
loucass003 6ef43b6
Add errors and disabled state to Input
loucass003 fb90362
Firmware tool
loucass003 e8a9112
Sync with main
loucass003 70003dc
Remove no needed changes
loucass003 fb7a497
Fix datafeed
loucass003 2128094
Merge branch 'main' into llelievr/firmware-tool
ImUrX 4013e36
fix stuff
ImUrX 1c69cbc
fix android test
ImUrX 272b3cc
use slimevr.io urls
ImUrX d7df57f
Merge branch 'main' into llelievr/firmware-tool
ImUrX 408fe21
Merge branch 'main' into llelievr/firmware-tool
ImUrX 1184674
fix lock file
ImUrX 5dbbf5d
Merge remote-tracking branch 'origin/main' into llelievr/firmware-tool
ImUrX 269ebbd
tweak package.json
ImUrX b35ac6c
migrate to eslint flat config
ImUrX 6214372
improve styling and translation files
ImUrX 353d1c4
Merge branch 'main' into llelievr/firmware-tool
ImUrX 99d7dd6
fix env error
ImUrX 2a3c00a
Merge branch 'main' of github.com:SlimeVR/SlimeVR-Server into lleliev…
loucass003 a0c68af
Remove conflicts from package.json
loucass003 b6e496a
Fix layouts + Rework protocol + Try stuff around serial reconnect det…
loucass003 1e989c1
Current progress
loucass003 720d210
Final version
loucass003 e1dc199
Spotless + Fix lint then lint
loucass003 5f3c3ab
Better handling of the incompatible api case
loucass003 ef48e7a
Change deviceid and update flashing lib version
loucass003 9a46050
Change provisioning to handle the new mac address detection
loucass003 f171a03
enforce lf with editorconfig
ImUrX de648b2
Fix build
loucass003 0215ca5
lint
loucass003 9033605
Spotless
loucass003 c77d5b7
Renormalize
loucass003 ba468f1
add gitattributes
ImUrX 051811a
dont edit editorconfig if we use auto
ImUrX 6b3aca8
Revert back to api
loucass003 89cdcf8
Merge branch 'editorconfig-lf' of github.com:SlimeVR/SlimeVR-Server i…
loucass003 b04e2e9
Set to main
loucass003 b53b6b2
Merge branch 'main' into llelievr/firmware-tool
loucass003 5290b16
Update gui/src/components/firmware-tool/SelectFirmwareStep.tsx
loucass003 3a7b5ea
Update gui/src/components/firmware-tool/SelectFirmwareStep.tsx
loucass003 337fb0b
Update gui/src/components/onboarding/pages/Home.tsx
loucass003 d02049f
Update gui/src/components/onboarding/pages/ConnectTracker.tsx
loucass003 328ad0d
Update gui/public/i18n/en/translation.ftl
loucass003 c0fc523
Update gui/src/components/commons/VerticalStepper.tsx
loucass003 fc6c18f
Update gui/src/components/commons/VerticalStepper.tsx
loucass003 035637b
update solarxr
loucass003 4b51804
Add missing translation + fix typo
loucass003 ea0a385
Merge branch 'main' of github.com:SlimeVR/SlimeVR-Server into lleliev…
loucass003 e44ad38
Merge branch 'main' of github.com:SlimeVR/SlimeVR-Server into lleliev…
loucass003 1beadef
send pnpm-lock
loucass003 632e914
Rename optaining -> obtaining
loucass003 826b3a8
Fix home page of onboarding
loucass003 5c85a82
Bring back comment
loucass003 ef998cf
Change to a working solarxr commit
loucass003 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,38 @@ | ||
# Global code owner | ||
* @Eirenliel | ||
# Make everyone be able to approve SolarXR submodule changes | ||
/solarxr-protocol @ButterscotchV @Erimelowo @ImUrX @loucass003 | ||
# Make Loucas and Uriel the owners of all GUI stuff | ||
/gui/ @ImUrX @loucass003 | ||
/pnpm-lock.yaml @ImUrX @loucass003 | ||
/pnpm-workspace.yaml @ImUrX @loucass003 | ||
# Uriel and Erimel responsible for i18n | ||
/gui/public/i18n/ @ImUrX @Erimelowo | ||
/gui/src/i18n/ @ImUrX @Erimelowo | ||
/l10n.toml @ImUrX @Erimelowo | ||
/gui/src/components/settings/ @Erimelowo @ImUrX | ||
# Rust part of the GUI | ||
/gui/src-tauri/ @ImUrX | ||
/Cargo.lock @ImUrX | ||
# Some server code~ | ||
/server/ @ButterscotchV @Eirenliel @Erimelowo | ||
/server/src/main/java/dev/slimevr/autobone/ @ButterscotchV | ||
/server/src/main/java/dev/slimevr/poserecorder/ @ButterscotchV | ||
/server/src/main/java/dev/slimevr/posestreamer/ @ButterscotchV | ||
/server/src/main/java/dev/slimevr/osc/ @Erimelowo | ||
/server/src/main/java/dev/slimevr/tracking/processor/ @Erimelowo | ||
/server/src/main/java/dev/slimevr/filtering/ @Erimelowo | ||
# Linux files | ||
*.nix @ImUrX | ||
/flake.lock @ImUrX | ||
/dev.slimevr.SlimeVR.metainfo.xml @ImUrX | ||
/.envrc @ImUrX | ||
# Global code owner | ||
* @Eirenliel | ||
|
||
# Make everyone be able to approve SolarXR submodule changes | ||
/solarxr-protocol @ButterscotchV @Erimelowo @ImUrX @loucass003 | ||
|
||
# Make Loucas and Uriel the owners of all GUI stuff | ||
/gui/ @ImUrX @loucass003 | ||
/pnpm-lock.yaml @ImUrX @loucass003 | ||
/pnpm-workspace.yaml @ImUrX @loucass003 | ||
|
||
# Uriel and Erimel responsible for i18n | ||
/gui/public/i18n/ @ImUrX @Erimelowo | ||
/gui/src/i18n/ @ImUrX @Erimelowo | ||
/l10n.toml @ImUrX @Erimelowo | ||
|
||
/gui/src/components/settings/ @Erimelowo @ImUrX | ||
|
||
# Rust part of the GUI | ||
/gui/src-tauri/ @ImUrX | ||
/Cargo.lock @ImUrX | ||
|
||
# Some server code~ | ||
/server/ @ButterscotchV @Eirenliel @Erimelowo | ||
|
||
/server/src/main/java/dev/slimevr/autobone/ @ButterscotchV | ||
/server/src/main/java/dev/slimevr/poserecorder/ @ButterscotchV | ||
/server/src/main/java/dev/slimevr/posestreamer/ @ButterscotchV | ||
|
||
/server/src/main/java/dev/slimevr/osc/ @Erimelowo | ||
/server/src/main/java/dev/slimevr/tracking/processor/ @Erimelowo | ||
/server/src/main/java/dev/slimevr/filtering/ @Erimelowo | ||
|
||
# Linux files | ||
*.nix @ImUrX | ||
/flake.lock @ImUrX | ||
/dev.slimevr.SlimeVR.metainfo.xml @ImUrX | ||
/.envrc @ImUrX |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +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=http://localhost:3000 | ||
# VITE_FIRMWARE_TOOL_S3_URL=http://localhost:9000 | ||
# FIRMWARE_TOOL_SCHEMA_URL=http://localhost:3000/api-json |
ImUrX marked this conversation as resolved.
Show resolved
Hide resolved
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export default { | ||
'**/*.{ts,tsx}': () => 'tsc -p tsconfig.json --noEmit', | ||
'**/*.{js,jsx,ts,tsx}': 'eslint --max-warnings=0 --cache --fix', | ||
'src/**/*.{js,jsx,ts,tsx}': 'eslint --max-warnings=0 --no-warn-ignored --cache --fix', | ||
'**/*.{js,jsx,ts,tsx,css,md,json}': 'prettier --write', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
import { FlatCompat } from '@eslint/eslintrc'; | ||
import eslint from '@eslint/js'; | ||
import globals from 'globals'; | ||
import tseslint from 'typescript-eslint'; | ||
|
||
const compat = new FlatCompat(); | ||
|
||
export const gui = [ | ||
eslint.configs.recommended, | ||
...tseslint.configs.recommended, | ||
...compat.extends('plugin:@dword-design/import-alias/recommended'), | ||
...compat.plugins('eslint-plugin-react-hooks'), | ||
// Add import-alias rule inside compat because plugin doesn't like flat configs | ||
...compat.config({ | ||
rules: { | ||
'@dword-design/import-alias/prefer-alias': [ | ||
'error', | ||
{ | ||
alias: { | ||
'@': './src/', | ||
}, | ||
}, | ||
], | ||
}, | ||
}), | ||
{ | ||
languageOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
parser: tseslint.parser, | ||
parserOptions: { | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
}, | ||
globals: { | ||
...globals.browser, | ||
...globals.jest, | ||
}, | ||
}, | ||
files: ['src/**/*.{js,jsx,ts,tsx,json}'], | ||
plugins: { | ||
'@typescript-eslint': tseslint.plugin, | ||
}, | ||
rules: { | ||
'react/react-in-jsx-scope': 'off', | ||
'react/prop-types': 'off', | ||
'spaced-comment': 'error', | ||
quotes: ['error', 'single'], | ||
'no-duplicate-imports': 'error', | ||
'no-inline-styles': 'off', | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'react/no-unescaped-entities': 'off', | ||
camelcase: 'error', | ||
'@typescript-eslint/no-unused-vars': [ | ||
'warn', | ||
{ | ||
argsIgnorePattern: '^_', | ||
varsIgnorePattern: '^_', | ||
ignoreRestSiblings: true, | ||
}, | ||
], | ||
}, | ||
settings: { | ||
'import/resolver': { | ||
typescript: {}, | ||
}, | ||
react: { | ||
version: 'detect', | ||
}, | ||
}, | ||
}, | ||
// Global ignore | ||
{ | ||
ignores: ['**/firmware-tool-api/'], | ||
}, | ||
]; | ||
|
||
export default gui; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { | ||
generateSchemaTypes, | ||
generateReactQueryComponents, | ||
} from '@openapi-codegen/typescript'; | ||
import { defineConfig } from '@openapi-codegen/cli'; | ||
import dotenv from 'dotenv'; | ||
|
||
dotenv.config() | ||
|
||
export default defineConfig({ | ||
firmwareTool: { | ||
from: { | ||
source: 'url', | ||
url: process.env.FIRMWARE_TOOL_SCHEMA_URL ?? 'http://localhost:3000/api-json', | ||
}, | ||
outputDir: 'src/firmware-tool-api', | ||
to: async (context) => { | ||
const filenamePrefix = 'firmwareTool'; | ||
const { schemasFiles } = await generateSchemaTypes(context, { | ||
filenamePrefix, | ||
}); | ||
await generateReactQueryComponents(context, { | ||
filenamePrefix, | ||
schemasFiles, | ||
}); | ||
}, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this file got edited because its crlf originally for some reason