Replace date-fns with chartjs-adapter-moment to eliminate duplicate date libraries

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-06 09:51:13 +08:00
parent 1d0d938193
commit b259f23799
3 changed files with 76 additions and 14151 deletions

14222
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -17,7 +17,7 @@
"dependencies": { "dependencies": {
"axios": "^1.7.2", "axios": "^1.7.2",
"chart.js": "^4.3.0", "chart.js": "^4.3.0",
"chartjs-adapter-date-fns": "^3.0.0", "chartjs-adapter-moment": "^1.0.1",
"chartjs-plugin-datalabels": "^2.2.0", "chartjs-plugin-datalabels": "^2.2.0",
"chartjs-plugin-dragdata": "^1.1.3", "chartjs-plugin-dragdata": "^1.1.3",
"cytoscape": "^3.30.2", "cytoscape": "^3.30.2",
@@ -26,7 +26,6 @@
"cytoscape-fcose": "^2.2.0", "cytoscape-fcose": "^2.2.0",
"cytoscape-popper": "^2.0.0", "cytoscape-popper": "^2.0.0",
"cytoscape-spread": "^3.0.0", "cytoscape-spread": "^3.0.0",
"date-fns": "^2.30.0",
"decimal.js": "^10.4.3", "decimal.js": "^10.4.3",
"i18next": "^23.11.5", "i18next": "^23.11.5",
"i18next-browser-languagedetector": "^8.0.0", "i18next-browser-languagedetector": "^8.0.0",

View File

@@ -34,7 +34,7 @@
import { storeToRefs } from 'pinia'; import { storeToRefs } from 'pinia';
import AllMapDataStore from '@/stores/allMapData.js'; import AllMapDataStore from '@/stores/allMapData.js';
import { Chart, registerables } from 'chart.js'; import { Chart, registerables } from 'chart.js';
import 'chartjs-adapter-date-fns'; import 'chartjs-adapter-moment';
import getMoment from 'moment'; import getMoment from 'moment';
export default{ export default{