From b4a6ffe7430d8bc3dcd2bc2250c09230635ff977 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Sat, 4 Jul 2026 14:59:31 +0800 Subject: [PATCH] Remove unused vue-sweetalert2 plugin Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01RaRBJFZKSTA7naHGuQHfnQ --- package-lock.json | 22 ++-------------------- package.json | 2 +- src/main.ts | 2 -- 3 files changed, 3 insertions(+), 23 deletions(-) diff --git a/package-lock.json b/package-lock.json index 38efb3d..db013c3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,11 +30,11 @@ "pinia-plugin-persistedstate": "^4.7.1", "primeicons": "^7.0.0", "primevue": "^4.5.4", + "sweetalert2": "^11.4.4", "tippy.js": "^6.3.7", "vue": "^3.5.29", "vue-chartjs": "^5.3.3", "vue-router": "^5.0.3", - "vue-sweetalert2": "^5.0.11", "vue-toast-notification": "^3.1.3", "vuedraggable": "^4.1.0" }, @@ -6242,6 +6242,7 @@ "version": "11.4.4", "resolved": "https://registry.npmjs.org/sweetalert2/-/sweetalert2-11.4.4.tgz", "integrity": "sha512-9yYWQuRT1v9JNI/paPTSYV+68MHwe9C+HQ/I2jtfaFzoJgYRftWXOs4JqmDSjT7m2m4r8ebMMn8LcxD1Wq9B/w==", + "license": "MIT", "funding": { "url": "https://sweetalert2.github.io/#donations" } @@ -6945,17 +6946,6 @@ } } }, - "node_modules/vue-sweetalert2": { - "version": "5.0.11", - "resolved": "https://registry.npmjs.org/vue-sweetalert2/-/vue-sweetalert2-5.0.11.tgz", - "integrity": "sha512-agujdlcNeLb4Fj0/V3qgR7bEVBN8IzWFoDBP/vrSgbEGl9pjMmxnv32V3lxB0SZtQh6tL6R/UZ+C3q8tzsJbNg==", - "dependencies": { - "sweetalert2": "11.4.4" - }, - "peerDependencies": { - "vue": "*" - } - }, "node_modules/vue-toast-notification": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/vue-toast-notification/-/vue-toast-notification-3.1.3.tgz", @@ -11373,14 +11363,6 @@ "yaml": "^2.8.2" } }, - "vue-sweetalert2": { - "version": "5.0.11", - "resolved": "https://registry.npmjs.org/vue-sweetalert2/-/vue-sweetalert2-5.0.11.tgz", - "integrity": "sha512-agujdlcNeLb4Fj0/V3qgR7bEVBN8IzWFoDBP/vrSgbEGl9pjMmxnv32V3lxB0SZtQh6tL6R/UZ+C3q8tzsJbNg==", - "requires": { - "sweetalert2": "11.4.4" - } - }, "vue-toast-notification": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/vue-toast-notification/-/vue-toast-notification-3.1.3.tgz", diff --git a/package.json b/package.json index d3965d9..cd8d340 100644 --- a/package.json +++ b/package.json @@ -39,11 +39,11 @@ "pinia-plugin-persistedstate": "^4.7.1", "primeicons": "^7.0.0", "primevue": "^4.5.4", + "sweetalert2": "^11.4.4", "tippy.js": "^6.3.7", "vue": "^3.5.29", "vue-chartjs": "^5.3.3", "vue-router": "^5.0.3", - "vue-sweetalert2": "^5.0.11", "vue-toast-notification": "^3.1.3", "vuedraggable": "^4.1.0" }, diff --git a/src/main.ts b/src/main.ts index c4bed74..ebaa7d3 100644 --- a/src/main.ts +++ b/src/main.ts @@ -20,7 +20,6 @@ import cytoscape from "cytoscape"; import dagre from "cytoscape-dagre"; import popper from "cytoscape-popper"; import draggable from "vuedraggable"; -import VueSweetalert2 from "vue-sweetalert2"; // import CSS import "./assets/main.css"; @@ -67,7 +66,6 @@ cytoscape.use(popper((ref) => ref)); app.use(pinia); app.use(router); -app.use(VueSweetalert2); app.use(ToastPlugin, { // use `this.$toast` in Vue.js position: "bottom",