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.
This commit is contained in:
Toys-A
2026-08-20 12:59:13 +08:00
parent ad1e0ac217
commit 596dcbe645
4 changed files with 1 additions and 56 deletions
-35
View File
@@ -10,8 +10,6 @@
"dependencies": { "dependencies": {
"@iconify/vue": "^4.1.1", "@iconify/vue": "^4.1.1",
"@vant/use": "^1.6.0", "@vant/use": "^1.6.0",
"artplayer": "^5.1.7",
"artplayer-plugin-danmuku": "^5.1.0",
"axios": "^1.6.8", "axios": "^1.6.8",
"dayjs": "^1.11.10", "dayjs": "^1.11.10",
"dplayer": "^1.27.1", "dplayer": "^1.27.1",
@@ -2579,21 +2577,6 @@
"node": ">=8" "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": { "node_modules/asynckit": {
"version": "0.4.0", "version": "0.4.0",
"resolved": "https://registry.npmmirror.com/asynckit/-/asynckit-0.4.0.tgz", "resolved": "https://registry.npmmirror.com/asynckit/-/asynckit-0.4.0.tgz",
@@ -4278,15 +4261,6 @@
"json-buffer": "3.0.1" "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": { "node_modules/kolorist": {
"version": "1.8.0", "version": "1.8.0",
"resolved": "https://registry.npmmirror.com/kolorist/-/kolorist-1.8.0.tgz", "resolved": "https://registry.npmmirror.com/kolorist/-/kolorist-1.8.0.tgz",
@@ -4616,15 +4590,6 @@
"url": "https://github.com/sponsors/sindresorhus" "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": { "node_modules/optionator": {
"version": "0.9.4", "version": "0.9.4",
"resolved": "https://registry.npmmirror.com/optionator/-/optionator-0.9.4.tgz", "resolved": "https://registry.npmmirror.com/optionator/-/optionator-0.9.4.tgz",
-2
View File
@@ -14,8 +14,6 @@
"dependencies": { "dependencies": {
"@iconify/vue": "^4.1.1", "@iconify/vue": "^4.1.1",
"@vant/use": "^1.6.0", "@vant/use": "^1.6.0",
"artplayer": "^5.1.7",
"artplayer-plugin-danmuku": "^5.1.0",
"axios": "^1.6.8", "axios": "^1.6.8",
"dayjs": "^1.11.10", "dayjs": "^1.11.10",
"dplayer": "^1.27.1", "dplayer": "^1.27.1",
-18
View File
@@ -14,12 +14,6 @@ importers:
'@vant/use': '@vant/use':
specifier: ^1.6.0 specifier: ^1.6.0
version: 1.6.0(vue@3.5.30(typescript@5.4.5)) 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: axios:
specifier: ^1.6.8 specifier: ^1.6.8
version: 1.13.6 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} resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==, tarball: https://registry.npmmirror.com/array-union/-/array-union-2.1.0.tgz}
engines: {node: '>=8'} 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: asynckit@0.4.0:
resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==, tarball: https://registry.npmmirror.com/asynckit/-/asynckit-0.4.0.tgz} 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: {} 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: {} asynckit@0.4.0: {}
axios@1.13.6: axios@1.13.6:
+1 -1
View File
@@ -60,7 +60,7 @@ export default defineConfig(({ mode }) => {
manualChunks: { manualChunks: {
vue: ['vue', 'vue-router', 'pinia'], vue: ['vue', 'vue-router', 'pinia'],
vant: ['vant', '@vant/use'], vant: ['vant', '@vant/use'],
artplayer: ['artplayer', 'artplayer-plugin-danmuku'] dplayer: ['dplayer']
} }
} }
} }