Skip to content

Commit f0d3a9c

Browse files
Refactor chart components and remove legacy assets
Removed unused public assets and service files, deprecated dashboard chart subcomponents, and replaced them with new chart components under src/components. Updated SCSS structure, removed redundant SCSS utilities, and added new variable and decoration files. Adjusted ESLint config for TypeScript 'any' usage. Updated dependencies in package.json, removing FullCalendar and xterm, and adding jsvectormap. Cleaned up index.html by removing references to deleted assets. Updated routes and dashboard/table detail components to use new chart components.
1 parent c76f985 commit f0d3a9c

Some content is hidden

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

54 files changed

+2407
-58314
lines changed

.eslintrc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ module.exports = {
7777
'@typescript-eslint/explicit-module-boundary-types': 'off',
7878
'@typescript-eslint/no-unsafe-member-access': 'off',
7979
'@typescript-eslint/no-unsafe-call': 'off',
80-
'@typescript-eslint/no-explicit-any': 'warn', // 改为 warn,避免过度使用 any
8180
'@typescript-eslint/no-unsafe-argument': 'off',
8281
'@typescript-eslint/no-unsafe-assignment': 'off',
8382
'@typescript-eslint/restrict-plus-operands': 'off',
@@ -135,5 +134,6 @@ module.exports = {
135134
'@typescript-eslint/no-non-null-assert': 'off',
136135
'@typescript-eslint/no-non-null-assertion': 'off',
137136
'vue/no-use-v-if-with-v-for': 'off',
137+
'@typescript-eslint/no-explicit-any': 'off',
138138
},
139-
};
139+
};

index.html

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,8 @@
1212
content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width<% if (ctx.mode.cordova || ctx.mode.capacitor) { %>, viewport-fit=cover<% } %>"
1313
/>
1414
<link href="favicon.ico" rel="icon" type="image/ico" />
15-
<link rel="preload" href="<%= process.env.NODE_ENV !== 'production'?'/':'/v3-admin/'%>font/HelveticaNeue-Bold.woff2" as="font" type="font/woff2" crossorigin />
16-
<link rel="preload" href="<%= process.env.NODE_ENV !== 'production'?'/':'/v3-admin/'%>font/HelveticaNeue-Medium.woff2" as="font" type="font/woff2" crossorigin />
17-
<link rel="preload" href="<%= process.env.NODE_ENV !== 'production'?'/':'/v3-admin/'%>font/HelveticaNeue-Regular.woff2" as="font" type="font/woff2" crossorigin />
18-
<link rel="stylesheet" href="<%= process.env.NODE_ENV !== 'production'?'/':'/v3-admin/'%>world/jsvectormap.min.css" />
19-
<script src="<%= process.env.NODE_ENV !== 'production'?'/':'/v3-admin/'%>less.min.js"></script>
2015
<script src="<%= process.env.NODE_ENV !== 'production'?'/':'/v3-admin/'%>map/echarts.min.js"></script>
2116
<script src="<%= process.env.NODE_ENV !== 'production'?'/':'/v3-admin/'%>map/china.js"></script>
22-
<script src="<%= process.env.NODE_ENV !== 'production'?'/':'/v3-admin/'%>three/threejs.js"></script>
23-
<script src="<%= process.env.NODE_ENV !== 'production'?'/':'/v3-admin/'%>three/orbit-controls.js"></script>
24-
<script src="<%= process.env.NODE_ENV !== 'production'?'/':'/v3-admin/'%>world/jsvectormap.min.js"></script>
25-
<script src="<%= process.env.NODE_ENV !== 'production'?'/':'/v3-admin/'%>world/world-merc.js"></script>
2617
</head>
2718
<body>
2819
<!-- quasar:entry-point -->

package.json

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@
2020
"test": "echo \"No test specified\" && exit 0"
2121
},
2222
"dependencies": {
23-
"@fullcalendar/core": "^5.11.3",
24-
"@fullcalendar/daygrid": "^5.11.3",
25-
"@fullcalendar/interaction": "^5.11.3",
26-
"@fullcalendar/vue3": "^5.11.3",
2723
"@quasar/extras": "^1.16.12",
2824
"axios": "1.6.0",
2925
"chart.js": "^4.4.2",
@@ -34,6 +30,7 @@
3430
"jsencrypt": "^3.2.1",
3531
"json-bigint": "^1.0.0",
3632
"json-editor-vue": "^0.9.2",
33+
"jsvectormap": "^1.7.0",
3734
"marked": "4.0.10",
3835
"path-browserify": "^1.0.1",
3936
"prismjs": "^1.29.0",
@@ -46,10 +43,7 @@
4643
"vue-i18n": "^9.3.0-beta.6",
4744
"vue-router": "^4.1.6",
4845
"vue3-count-to": "^1.1.2",
49-
"vuex": "^4.1.0",
50-
"xterm": "^5.1.0",
51-
"xterm-addon-attach": "^0.8.0",
52-
"xterm-addon-fit": "^0.7.0"
46+
"vuex": "^4.1.0"
5347
},
5448
"devDependencies": {
5549
"@quasar/app-webpack": "^4.3.1",
@@ -100,4 +94,4 @@
10094
"overrides": {
10195
"caniuse-lite": "^1.0.30001753"
10296
}
103-
}
97+
}

public/less.min.js

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

public/three/orbit-controls.js

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

0 commit comments

Comments
 (0)