-
-
Notifications
You must be signed in to change notification settings - Fork 224
Firmware tool #880
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
Merged
Merged
Firmware tool #880
Changes from 62 commits
Commits
Show all changes
92 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 2823559
Merge branch 'main' into llelievr/firmware-tool
loucass003 6086521
Update gui/src/components/firmware-tool/DeviceCard.tsx
loucass003 5af983e
Update gui/public/i18n/en/translation.ftl
loucass003 4b1d5e0
Update gui/src/components/firmware-tool/DeviceCard.tsx
loucass003 9d5cd74
Update gui/src/components/firmware-tool/FirmwareTool.tsx
loucass003 bf8f52c
Update gui/src/components/firmware-tool/FirmwareTool.tsx
loucass003 608a502
Change to early return
loucass003 8bf9124
Merge branch 'llelievr/firmware-tool' of github.com:SlimeVR/SlimeVR-S…
loucass003 b66331a
Update gui/src/components/firmware-tool/SelectBoardStep.tsx
loucass003 83eb013
Fix last gui requests
loucass003 c9d9afb
Merge branch 'llelievr/firmware-tool' of github.com:SlimeVR/SlimeVR-S…
loucass003 b7cfd88
Update server/core/src/main/java/dev/slimevr/firmware/SerialRebootHan…
loucass003 19df384
Update server/core/src/main/java/dev/slimevr/firmware/SerialRebootHan…
loucass003 7bfce04
Fix translation keys
loucass003 dc48cd1
Merge branch 'llelievr/firmware-tool' of github.com:SlimeVR/SlimeVR-S…
loucass003 8c62588
Server fixes
loucass003 35c1e69
Last required changes
loucass003 45a8dc0
Lint
loucass003 621c7bc
Merge branch 'main' into llelievr/firmware-tool
loucass003 08e1ffa
Update gui/src/components/firmware-tool/FlashingMethodStep.tsx
ImUrX 9240d9c
Review fixes
loucass003 e85af61
Merge branch 'llelievr/firmware-tool' of github.com:SlimeVR/SlimeVR-S…
loucass003 9942cbd
Update server/core/build.gradle.kts
loucass003 03c6f83
Apply suggestions from code review
loucass003 7772692
Apply suggestions from code review
loucass003 aa38f9d
Update server/core/build.gradle.kts
loucass003 dc83fa8
Update server/core/src/main/java/dev/slimevr/firmware/FirmwareUpdateH…
loucass003 0ee8f0e
Apply suggestions from code review
loucass003 fdbd088
Remove unused destroy functi
loucass003 783cc3d
Merge branch 'llelievr/firmware-tool' of github.com:SlimeVR/SlimeVR-S…
loucass003 f74c03c
Formating
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
This file contains hidden or 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 |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
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.
Uh oh!
There was an error while loading. Please reload this page.