Skip to content

🎬 火宝短剧 - 基于AI的一站式短剧生成平台 《一句话生成完整短剧,从剧本到成片全自动化》 Huobao Drama - An AI-Powered End-to-End Short Drama Generator "One Sentence to Complete Drama: Fully Automated from Script to Final Video"

TypeScript

feat: remove Element Plus — fully replaced by Shadcn Vue

Connor72ce7620925f
diff --git a/web/package.json b/web/package.json
index 8dd26e0..a84bb3f 100644
--- a/web/package.json
+++ b/web/package.json
@@ -17,7 +17,6 @@
"test:watch": "vitest"
},
"dependencies": {
- "@element-plus/icons-vue": "^2.3.0",
"@ffmpeg/ffmpeg": "^0.12.15",
"@ffmpeg/util": "^0.12.2",
"@vee-validate/zod": "^4.15.1",
@@ -26,7 +25,6 @@
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"cropperjs": "^2.1.0",
- "element-plus": "^2.5.0",
"lodash-es": "^4.17.22",
"lucide-vue-next": "^1.0.0",
"pinia": "^2.1.0",
diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yaml
index 8908135..c3d5534 100644
--- a/web/pnpm-lock.yaml
+++ b/web/pnpm-lock.yaml
@@ -8,9 +8,6 @@ importers:
.:
dependencies:
- '@element-plus/icons-vue':
- specifier: ^2.3.0
'@ffmpeg/ffmpeg':
specifier: ^0.12.15
version: 0.12.15
@@ -35,9 +32,6 @@ importers:
cropperjs:
specifier: ^2.1.0
version: 2.1.0
- element-plus:
- specifier: ^2.5.0
lodash-es:
specifier: ^4.17.22
version: 4.17.22
@@ -198,15 +192,6 @@ packages:
'@cropper/[email protected]':
resolution: {integrity: sha512-wLtpZ4/UWgo+fGmG8NBWge8x5ehjfDe9ovleDfLy8kpwFaw43XXOEXQtRL1UNr0u4JZxaeO8FcXcolRWUUrlRQ==}
- resolution: {integrity: sha512-SITSV6aIXsuVNV3f3O0f2n/cgyEDWoSqtZMYiAmcsYHydcKrOz3gUxB/iXd/Qf08+IZX4KpgNbvUdMBmWz+kcA==}
- engines: {node: '>=10'}
-
- '@element-plus/[email protected]':
- resolution: {integrity: sha512-OzIuTaIfC8QXEPmJvB4Y4kw34rSXdCJzxcD1kFStBvr8bK6X1zQAYDo0CNMjojnfTqRQCJ0I7prlErcoRiET2A==}
- peerDependencies:
- vue: ^3.2.0
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==}
engines: {node: '>=12'}
@@ -851,9 +836,6 @@ packages:
resolution: {integrity: sha512-QamiFeIK3txNjgUTNppE6MiG3p7TdninpZu0E0PbqVh1a9FNLT2FRhisaa4NcaX52XVhA5l7Pk58Ft7Sqi/2sA==}
- resolution: {integrity: sha512-Ccy0NlLkzr0Ex2FKvh2X+OyERHXJ88XJ1MXtsI9y9fGexlaXaVTPzBCRBwIxFkORuOb+uBqeu+RqnpgYTEZRUQ==}
-
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-DoR7U1P7iYhw16qJ49fgXUlry1t4CpXeErJHnQ44JgTSKMaZUdf17cfn5mHchfJ4KRBZRFA/Coo+MUF5+gOaCQ==}
@@ -965,12 +947,6 @@ packages:
resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==}
- '@types/[email protected]':
- resolution: {integrity: sha512-0NgftHUcV4v34VhXm8QBSftKVXtbkBG3ViCjs6+eJ5a6y6Mi/jiFGPc1sC7QK+9BFhWrURE3EOggmWaSxL9OzQ==}
-
- '@types/[email protected]':
- resolution: {integrity: sha512-RDvF6wTulMPjrNdCoYRC8gNR880JNGT8uB+REUpC2Ns4pRqQJhGz90wh7rgdXDPpCczF3VGktDuFGVnz8zP7HA==}
-
resolution: {integrity: sha512-VyKBr25BuFDzBFCK5sUM6ZXiWfqgCTwTAOK8qzGV/m9FCirXYDlmczJ+d5dXBAQALGCdRRdbteKYfJ84NGEusw==}
@@ -1219,9 +1195,6 @@ packages:
resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==}
engines: {node: '>=12'}
- resolution: {integrity: sha512-7HhHjtERjqlNbZtqNqy2rckN/SpOOlmDliet+lP7k+eKZEjPk3DgyeU9lIXLdeLz0uBbbVp+9Qdow9wJWgwwfg==}
-
resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==}
@@ -1329,9 +1302,6 @@ packages:
resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==}
- resolution: {integrity: sha512-t5EcLVS6QPBNqM2z8fakk/NKel+Xzshgt8FFKAn+qwlD1pzZWxh0nVCrvFK7ZDb6XucZeF9z8C7CBWTRIVApAw==}
-
resolution: {integrity: sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==}
@@ -1373,11 +1343,6 @@ packages:
resolution: {integrity: sha512-0Drusm6MVRXSOJpGbaSVgcQsuB4hEkMpHXaVstcPmhu5LIedxs1xNK/nIxmQIU/RPC0+1/o0AVZfBTkTNJOdUw==}
- resolution: {integrity: sha512-eG4BDBGdAsUGN6URH1PixzZb0ngdapLivIk1meghS1uEueLvQ3aljSKrCt5x6sYb6mUk8eGtzTQFgsPmLavQcA==}
- peerDependencies:
- vue: ^3.3.0
-
resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}
@@ -1780,16 +1745,6 @@ packages:
resolution: {integrity: sha512-XEawp1t0gxSi9x01glktRZ5HDy0HXqrM0x5pXQM98EaI0NxO6jVM7omDOxsuEo5UIASAnm2bRp1Jt/e0a2XU8Q==}
- resolution: {integrity: sha512-WK9qSozxXOD7ZJQlpSqOT+om2ZfcT4yO+03FuzAHD0wF6S0l0090LRPDx3vhTTLZ8cFKpBn+IOcVXK6qOcIlfQ==}
- peerDependencies:
- '@types/lodash-es': '*'
- lodash: '*'
- lodash-es: '*'
-
- resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==}
-
resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==}
@@ -1805,9 +1760,6 @@ packages:
resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==}
engines: {node: '>= 0.4'}
- resolution: {integrity: sha512-rkpe71W0N0c0Xz6QD0eJETuWAJGnJ9afsl1srmwPrI+yBCkge5EycXXbYRyvL29zZVUWQCY7InPRCv3GDXuZNw==}
-
resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==}
engines: {node: '>= 0.6'}
@@ -1865,9 +1817,6 @@ packages:
engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}
hasBin: true
- resolution: {integrity: sha512-Wj7+EJQ8mSuXr2iWfnujrimU35R2W4FAErEyTmJoJ7ucwTn2hOUSsRehMb5RSYkxXGTM7Y9QpvPmp++w5ftoJw==}
-
resolution: {integrity: sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==}
@@ -2551,12 +2500,6 @@ snapshots:
'@cropper/[email protected]': {}
- '@ctrl/[email protected]': {}
-
- dependencies:
- vue: 3.5.26([email protected])
-
'@esbuild/[email protected]':
optional: true
@@ -2985,8 +2928,6 @@ snapshots:
dependencies:
tslib: 2.8.1
- '@sxzz/[email protected]': {}
-
'@tailwindcss/[email protected]':
dependencies:
'@jridgewell/remapping': 2.3.5
@@ -3076,12 +3017,6 @@ snapshots:
'@types/[email protected]': {}
- '@types/[email protected]':
- dependencies:
- '@types/lodash': 4.17.23
-
- '@types/[email protected]': {}
-
dependencies:
undici-types: 6.21.0
@@ -3415,8 +3350,6 @@ snapshots:
-
@@ -3522,8 +3455,6 @@ snapshots:
-
@@ -3555,26 +3486,6 @@ snapshots:
- dependencies:
- '@ctrl/tinycolor': 3.6.1
- '@element-plus/icons-vue': 2.3.2([email protected]([email protected]))
- '@floating-ui/dom': 1.7.4
- '@popperjs/core': '@sxzz/[email protected]'
- '@types/lodash': 4.17.23
- '@types/lodash-es': 4.17.12
- '@vueuse/core': 10.11.1([email protected]([email protected]))
- async-validator: 4.2.5
- dayjs: 1.11.19
- lodash: 4.17.21
- lodash-es: 4.17.22
- lodash-unified: 1.0.3(@types/[email protected])([email protected])([email protected])
- memoize-one: 6.0.0
- normalize-wheel-es: 1.2.0
- vue: 3.5.26([email protected])
- transitivePeerDependencies:
- - '@vue/composition-api'
-
@@ -3987,14 +3898,6 @@ snapshots:
- dependencies:
- '@types/lodash-es': 4.17.12
- lodash: 4.17.21
- lodash-es: 4.17.22
-
-
@@ -4007,8 +3910,6 @@ snapshots:
-
@@ -4050,8 +3951,6 @@ snapshots:
dependencies:
abbrev: 2.0.0
-
dependencies:
boolbase: 1.0.0
diff --git a/web/src/assets/styles/element/index.scss b/web/src/assets/styles/element/index.scss
deleted file mode 100644
index 11cc7bf..0000000
--- a/web/src/assets/styles/element/index.scss
+++ /dev/null
@@ -1,2 +0,0 @@
-/* Element Plus dark mode overrides are consolidated in main.css (.dark selector) */
-@forward 'element-plus/theme-chalk/src/dark/var.scss';
\ No newline at end of file
diff --git a/web/src/main.ts b/web/src/main.ts
index fa42523..bc20b1c 100644
--- a/web/src/main.ts
+++ b/web/src/main.ts
@@ -1,10 +1,5 @@
import { createApp } from 'vue'
import { createPinia } from 'pinia'
-import ElementPlus from 'element-plus'
-import 'element-plus/dist/index.css'
-import './assets/styles/element/index.scss'
-
-import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import App from './App.vue'
import router from './router'
@@ -23,10 +18,5 @@ const app = createApp(App)
app.use(createPinia())
app.use(router)
app.use(i18n)
-app.use(ElementPlus)
-
-for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
- app.component(key, component)
-}
app.mount('#app')
diff --git a/web/vite.config.ts b/web/vite.config.ts
index 71b2469..f1872c9 100644
--- a/web/vite.config.ts
+++ b/web/vite.config.ts
@@ -33,7 +33,6 @@ export default defineConfig(({ mode }) => {
output: {
manualChunks: {
'vendor': ['vue', 'vue-router', 'pinia', 'vue-i18n', 'axios'],
- 'element-plus': ['element-plus', '@element-plus/icons-vue'],
}
}
}