Skip to content

Commit 706b610

Browse files
committed
refactor: refactor keyboard, mouse and menu bar
1 parent 842e1d4 commit 706b610

45 files changed

Lines changed: 4909 additions & 3743 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

browser/.eslintrc.cjs

Lines changed: 0 additions & 20 deletions
This file was deleted.

browser/eslint.config.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import js from '@eslint/js';
2+
import eslintConfigPrettier from 'eslint-config-prettier';
3+
import reactHooksPlugin from 'eslint-plugin-react-hooks';
4+
import reactRefreshPlugin from 'eslint-plugin-react-refresh';
5+
import globals from 'globals';
6+
import tseslint from 'typescript-eslint';
7+
8+
export default tseslint.config(
9+
{ ignores: ['dist', 'node_modules'] },
10+
{
11+
files: ['**/*.{ts,tsx}'],
12+
extends: [js.configs.recommended, ...tseslint.configs.recommended, eslintConfigPrettier],
13+
languageOptions: {
14+
ecmaVersion: 2020,
15+
globals: globals.browser
16+
},
17+
plugins: {
18+
'react-hooks': reactHooksPlugin,
19+
'react-refresh': reactRefreshPlugin
20+
},
21+
rules: {
22+
...reactHooksPlugin.configs.recommended.rules,
23+
'@typescript-eslint/no-explicit-any': 'off',
24+
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }]
25+
}
26+
}
27+
);

browser/package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"dev": "vite",
88
"build": "tsc -b && vite build",
99
"lint": "eslint .",
10+
"format": "prettier --write .",
1011
"preview": "vite preview"
1112
},
1213
"dependencies": {
@@ -15,14 +16,14 @@
1516
"clsx": "^2.1.1",
1617
"i18next": "^24.0.5",
1718
"jotai": "^2.10.3",
18-
"lucide-react": "^0.468.0",
19+
"lucide-react": "^0.562.0",
1920
"react": "^18.3.1",
2021
"react-dom": "^18.3.1",
22+
"react-draggable": "^4.5.0",
2123
"react-i18next": "^15.1.4",
2224
"react-responsive": "^10.0.0",
2325
"react-simple-keyboard": "^3.8.28",
24-
"vaul": "^1.1.1",
25-
"yocto-queue": "^1.1.1"
26+
"vaul": "^1.1.1"
2627
},
2728
"devDependencies": {
2829
"@eslint/js": "^9.39.2",
@@ -39,6 +40,7 @@
3940
"eslint-plugin-react-hooks": "^5.2.0",
4041
"eslint-plugin-react-refresh": "^0.4.26",
4142
"globals": "^15.12.0",
43+
"minimatch": "^9.0.5",
4244
"postcss": "^8.4.49",
4345
"prettier": "^3.4.1",
4446
"prettier-plugin-tailwindcss": "^0.6.9",

0 commit comments

Comments
 (0)