From 596dcbe645fc62538ab4df2dccb217ef228a0aaa Mon Sep 17 00:00:00 2001 From: Toys-A Date: Thu, 20 Aug 2026 12:59:13 +0800 Subject: [PATCH] chore(video-frontend): replace artplayer with dplayer - Remove artplayer packages from the frontend dependency set. - Add dplayer and refresh lockfiles to match the new package graph. - Update Vite alias config to resolve the new player entry. --- frontend/video-frontend-web/package-lock.json | 35 ------------------- frontend/video-frontend-web/package.json | 2 -- frontend/video-frontend-web/pnpm-lock.yaml | 18 ---------- frontend/video-frontend-web/vite.config.ts | 2 +- 4 files changed, 1 insertion(+), 56 deletions(-) diff --git a/frontend/video-frontend-web/package-lock.json b/frontend/video-frontend-web/package-lock.json index cf724d0..26fa61c 100644 --- a/frontend/video-frontend-web/package-lock.json +++ b/frontend/video-frontend-web/package-lock.json @@ -10,8 +10,6 @@ "dependencies": { "@iconify/vue": "^4.1.1", "@vant/use": "^1.6.0", - "artplayer": "^5.1.7", - "artplayer-plugin-danmuku": "^5.1.0", "axios": "^1.6.8", "dayjs": "^1.11.10", "dplayer": "^1.27.1", @@ -2579,21 +2577,6 @@ "node": ">=8" } }, - "node_modules/artplayer": { - "version": "5.4.0", - "resolved": "https://registry.npmmirror.com/artplayer/-/artplayer-5.4.0.tgz", - "integrity": "sha512-2B+plbx8N2yNsjK4nJU3+EOG8TULm1LRZk/QPkWRAMEX2Ee/MSnZG/WJYz8kcoZxZuLKcQ3uXifqLuPxZOH29A==", - "license": "MIT", - "dependencies": { - "option-validator": "^2.0.6" - } - }, - "node_modules/artplayer-plugin-danmuku": { - "version": "5.3.0", - "resolved": "https://registry.npmmirror.com/artplayer-plugin-danmuku/-/artplayer-plugin-danmuku-5.3.0.tgz", - "integrity": "sha512-a76bU1cWEZr53hD1X8IHfOzS4QawGHn8dQ3fIYyJ5TsyhTSnznhi2WzkS8M7LL3H02ekXRZTUFan9+9EERk12g==", - "license": "MIT" - }, "node_modules/asynckit": { "version": "0.4.0", "resolved": "https://registry.npmmirror.com/asynckit/-/asynckit-0.4.0.tgz", @@ -4278,15 +4261,6 @@ "json-buffer": "3.0.1" } }, - "node_modules/kind-of": { - "version": "6.0.3", - "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/kolorist": { "version": "1.8.0", "resolved": "https://registry.npmmirror.com/kolorist/-/kolorist-1.8.0.tgz", @@ -4616,15 +4590,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/option-validator": { - "version": "2.0.6", - "resolved": "https://registry.npmmirror.com/option-validator/-/option-validator-2.0.6.tgz", - "integrity": "sha512-tmZDan2LRIRQyhUGvkff68/O0R8UmF+Btmiiz0SmSw2ng3CfPZB9wJlIjHpe/MKUZqyIZkVIXCrwr1tIN+0Dzg==", - "license": "MIT", - "dependencies": { - "kind-of": "^6.0.3" - } - }, "node_modules/optionator": { "version": "0.9.4", "resolved": "https://registry.npmmirror.com/optionator/-/optionator-0.9.4.tgz", diff --git a/frontend/video-frontend-web/package.json b/frontend/video-frontend-web/package.json index ffe76ca..cea3903 100644 --- a/frontend/video-frontend-web/package.json +++ b/frontend/video-frontend-web/package.json @@ -14,8 +14,6 @@ "dependencies": { "@iconify/vue": "^4.1.1", "@vant/use": "^1.6.0", - "artplayer": "^5.1.7", - "artplayer-plugin-danmuku": "^5.1.0", "axios": "^1.6.8", "dayjs": "^1.11.10", "dplayer": "^1.27.1", diff --git a/frontend/video-frontend-web/pnpm-lock.yaml b/frontend/video-frontend-web/pnpm-lock.yaml index 685e70a..86431cd 100644 --- a/frontend/video-frontend-web/pnpm-lock.yaml +++ b/frontend/video-frontend-web/pnpm-lock.yaml @@ -14,12 +14,6 @@ importers: '@vant/use': specifier: ^1.6.0 version: 1.6.0(vue@3.5.30(typescript@5.4.5)) - artplayer: - specifier: ^5.1.7 - version: 5.4.0 - artplayer-plugin-danmuku: - specifier: ^5.1.0 - version: 5.3.0 axios: specifier: ^1.6.8 version: 1.13.6 @@ -891,12 +885,6 @@ packages: resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==, tarball: https://registry.npmmirror.com/array-union/-/array-union-2.1.0.tgz} engines: {node: '>=8'} - artplayer-plugin-danmuku@5.3.0: - resolution: {integrity: sha512-a76bU1cWEZr53hD1X8IHfOzS4QawGHn8dQ3fIYyJ5TsyhTSnznhi2WzkS8M7LL3H02ekXRZTUFan9+9EERk12g==, tarball: https://registry.npmmirror.com/artplayer-plugin-danmuku/-/artplayer-plugin-danmuku-5.3.0.tgz} - - artplayer@5.4.0: - resolution: {integrity: sha512-2B+plbx8N2yNsjK4nJU3+EOG8TULm1LRZk/QPkWRAMEX2Ee/MSnZG/WJYz8kcoZxZuLKcQ3uXifqLuPxZOH29A==, tarball: https://registry.npmmirror.com/artplayer/-/artplayer-5.4.0.tgz} - asynckit@0.4.0: resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==, tarball: https://registry.npmmirror.com/asynckit/-/asynckit-0.4.0.tgz} @@ -2742,12 +2730,6 @@ snapshots: array-union@2.1.0: {} - artplayer-plugin-danmuku@5.3.0: {} - - artplayer@5.4.0: - dependencies: - option-validator: 2.0.6 - asynckit@0.4.0: {} axios@1.13.6: diff --git a/frontend/video-frontend-web/vite.config.ts b/frontend/video-frontend-web/vite.config.ts index 1f0032c..99cd78d 100644 --- a/frontend/video-frontend-web/vite.config.ts +++ b/frontend/video-frontend-web/vite.config.ts @@ -60,7 +60,7 @@ export default defineConfig(({ mode }) => { manualChunks: { vue: ['vue', 'vue-router', 'pinia'], vant: ['vant', '@vant/use'], - artplayer: ['artplayer', 'artplayer-plugin-danmuku'] + dplayer: ['dplayer'] } } }