Skip to content

Commit 6f2cbc9

Browse files
committed
Code refactoring
1 parent 28cf0d7 commit 6f2cbc9

14 files changed

+832
-438
lines changed

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ RUN apt update && apt install git fcgiwrap spawn-fcgi multiwatch curl -y && apt
1414

1515
# Fetch Node Exporter
1616
RUN curl -L \
17-
https://github.com/prometheus/node_exporter/releases/download/v1.5.0/node_exporter-1.5.0.linux-amd64.tar.gz \
17+
https://github.com/prometheus/node_exporter/releases/download/v1.8.1/node_exporter-1.8.1.linux-amd64.tar.gz \
1818
-o /tmp/node_exporter.tar.gz && tar -xzf /tmp/node_exporter.tar.gz -C /tmp && \
19-
mv /tmp/node_exporter-1.5.0.linux-amd64/node_exporter /usr/local/bin/node_exporter
19+
mv /tmp/node_exporter-1.8.1.linux-amd64/node_exporter /usr/local/bin/node_exporter
2020

2121
# Fetch and install the rindex
2222
RUN curl -L https://github.com/wenxuanjun/rindex/releases/download/default/rindex \

eslint.config.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import tseslint from 'typescript-eslint'
33
import { fixupPluginRules } from '@eslint/compat'
44
import eslintPluginReact from 'eslint-plugin-react'
55
import eslintPluginReactHooks from 'eslint-plugin-react-hooks'
6+
import eslintPluginReactCompiler from 'eslint-plugin-react-compiler'
67

78
export default [
89
pluginJs.configs.recommended,
@@ -19,7 +20,8 @@ export default [
1920
},
2021
plugins: {
2122
'react': fixupPluginRules(eslintPluginReact),
22-
'react-hooks': fixupPluginRules(eslintPluginReactHooks)
23+
'react-hooks': fixupPluginRules(eslintPluginReactHooks),
24+
'react-compiler': fixupPluginRules(eslintPluginReactCompiler)
2325
},
2426
settings: {
2527
react: {
@@ -29,6 +31,7 @@ export default [
2931
rules: {
3032
...eslintPluginReact.configs.recommended.rules,
3133
...eslintPluginReactHooks.configs.recommended.rules,
34+
'react-compiler/react-compiler': 'error',
3235

3336
// Best Practices
3437
'no-new': 'error',

package.json

+16-14
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
"dependencies": {
1515
"@emotion/react": "^11.11.4",
1616
"@emotion/styled": "^11.11.5",
17+
"@eslint/compat": "^1.0.1",
18+
"@eslint/js": "^9.3.0",
1719
"@fontsource/roboto": "^5.0.13",
1820
"@honkhonk/vite-plugin-svgr": "^1.1.0",
1921
"@mui/material": "next",
@@ -22,36 +24,36 @@
2224
"@tanstack/react-virtual": "^3.5.0",
2325
"@types/markdown-it": "^14.1.1",
2426
"@types/node": "^20.12.12",
25-
"@types/react": "npm:types-react@beta",
26-
"@types/react-dom": "npm:types-react-dom@beta",
27-
"@vitejs/plugin-react": "^4.2.1",
28-
"@vitejs/plugin-react-swc": "^3.6.0",
29-
"autocorrect-node": "^2.9.2",
27+
"@types/react": "npm:types-react@rc",
28+
"@types/react-dom": "npm:types-react-dom@rc",
29+
"@vitejs/plugin-react": "^4.3.0",
30+
"@vitejs/plugin-react-swc": "^3.7.0",
31+
"autocorrect-node": "^2.10.0",
32+
"babel-plugin-react-compiler": "0.0.0-experimental-592953e-20240517",
3033
"clsx": "^2.1.1",
3134
"core-js": "^3.37.1",
35+
"eslint": "^9.3.0",
36+
"eslint-plugin-react": "^7.34.1",
37+
"eslint-plugin-react-compiler": "0.0.0-experimental-c8b3f72-20240517",
3238
"eslint-plugin-react-hooks": "^4.6.2",
33-
"glob": "^10.3.15",
39+
"glob": "^10.3.16",
3440
"lefthook": "^1.6.12",
3541
"markdown-it": "^14.1.0",
3642
"markdown-it-prism": "^2.3.0",
3743
"mdi-material-ui": "^7.9.1",
3844
"prismjs": "^1.29.0",
39-
"react": "beta",
40-
"react-dom": "beta",
45+
"react": "rc",
46+
"react-dom": "rc",
4147
"react-refresh": "^0.14.2",
4248
"react-router-dom": "^6.23.1",
4349
"timeago.js": "^4.0.2",
4450
"typeface-roboto": "^1.1.13",
4551
"typescript": "^5.4.5",
52+
"typescript-eslint": "^7.10.0",
4653
"vite": "^5.0.4",
4754
"vite-plugin-compression": "^0.5.1",
4855
"vite-plugin-minify": "^1.5.2",
4956
"vite-plugin-replace": "^0.1.1",
50-
"vite-plugin-svgr": "^4.2.0",
51-
"@eslint/compat": "^1.0.1",
52-
"@eslint/js": "^9.3.0",
53-
"eslint": "^9.3.0",
54-
"eslint-plugin-react": "^7.34.1",
55-
"typescript-eslint": "^7.9.0"
57+
"vite-plugin-svgr": "^4.2.0"
5658
}
5759
}

0 commit comments

Comments
 (0)