Skip to content

Commit 0d16203

Browse files
nurikknurikk-sa
andauthored
Refactor pages (#1943)
* refactor(CodeEditor): replace ace with codemirror, make component lazy * refactor(pages): load pages aysncronously * chore(build): use brotli ago to compress files * fix(sonar): fix sonar issues * fix(sonar): fix more sonar warnings * chore(lock): regenerate lock * fix(lint): fix linter * chore(style): pretty * chore(sonar): remove dead code --------- Co-authored-by: Ainur Timerbaev <[email protected]>
1 parent 92ad445 commit 0d16203

File tree

118 files changed

+2098
-1645
lines changed

Some content is hidden

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

118 files changed

+2098
-1645
lines changed

.eslintrc.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
module.exports = {
2+
plugins: ['react-refresh'],
23
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
34
parserOptions: {
45
ecmaVersion: 2020, // Allows for the parsing of modern ECMAScript features
@@ -26,5 +27,6 @@ module.exports = {
2627
'@typescript-eslint/no-unused-vars': 'off',
2728
'react/no-deprecated': 'warn',
2829
'react/prop-types': 'off',
30+
'react-refresh/only-export-components': 'warn',
2931
},
3032
};

package.json

+8-4
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
"@typescript-eslint/parser": "~6.7.4",
6464
"@vitejs/plugin-react": "~4.1.0",
6565
"@vitest/coverage-v8": "^1.2.2",
66-
"ace-builds": "~1.32.0",
6766
"bootstrap": "~5.3.2",
6867
"classnames": "~2.3.2",
6968
"color-convert": "~2.0.1",
@@ -91,7 +90,7 @@
9190
"pinst": "~3.0.0",
9291
"prettier": "~3.0.3",
9392
"react": "~18.2.0",
94-
"react-ace": "~10.1.0",
93+
9594
"react-app-polyfill": "~3.0.0",
9695
"react-bootstrap": "~2.10.0",
9796
"react-css-theme-switcher": "~0.3.0",
@@ -112,10 +111,14 @@
112111
"vite-plugin-compression": "~0.5.1",
113112
"vite-plugin-html": "~3.2.0",
114113
"vite-plugin-sass-dts": "~1.3.11",
115-
"vitest": "^1.2.1",
114+
"vitest": "^1.3.1",
116115
"ws": "~8.14.2",
117116
"zigbee-herdsman": "~0.35.0",
118-
"zigbee-herdsman-converters": "~15.87.0"
117+
"zigbee-herdsman-converters": "~15.87.0",
118+
"@codemirror/lang-javascript": "^6.2.2",
119+
"@uiw/codemirror-theme-github": "^4.21.24",
120+
"@uiw/react-codemirror": "^4.21.24",
121+
"eslint-plugin-react-refresh": "*"
119122
},
120123
"main": "index.js",
121124
"husky": {
@@ -130,4 +133,5 @@
130133
"bugs": {
131134
"url": "https://github.com/nurikk/zigbee2mqtt-frontend/issues"
132135
}
136+
133137
}

0 commit comments

Comments
 (0)