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: 新增深色模式支持;修复已知问题;样式优化

kongweigend9cb2c0cf391
diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yaml
new file mode 100644
index 0000000..51334e1
--- /dev/null
+++ b/web/pnpm-lock.yaml
@@ -0,0 +1,2317 @@
+lockfileVersion: '9.0'
+
+settings:
+ autoInstallPeers: true
+ excludeLinksFromLockfile: false
+
+importers:
+
+ .:
+ dependencies:
+ '@element-plus/icons-vue':
+ specifier: ^2.3.0
+ '@ffmpeg/ffmpeg':
+ specifier: ^0.12.15
+ version: 0.12.15
+ '@ffmpeg/util':
+ specifier: ^0.12.2
+ version: 0.12.2
+ axios:
+ specifier: ^1.6.0
+ version: 1.13.2
+ dayjs:
+ specifier: ^1.11.10
+ version: 1.11.19
+ element-plus:
+ specifier: ^2.5.0
+ pinia:
+ specifier: ^2.1.0
+ vue:
+ specifier: ^3.4.0
+ version: 3.5.26([email protected])
+ vue-i18n:
+ specifier: ^9.14.5
+ vue-router:
+ specifier: ^4.2.0
+ devDependencies:
+ '@tailwindcss/postcss':
+ specifier: ^4.1.0
+ version: 4.1.18
+ '@types/node':
+ specifier: ^20.10.0
+ version: 20.19.28
+ '@vitejs/plugin-vue':
+ specifier: ^5.0.0
+ '@vue/tsconfig':
+ specifier: ^0.5.0
+ version: 0.5.1
+ autoprefixer:
+ specifier: ^10.4.0
+ version: 10.4.23([email protected])
+ postcss:
+ specifier: ^8.4.0
+ version: 8.5.6
+ sass-embedded:
+ specifier: ^1.97.1
+ version: 1.97.2
+ tailwindcss:
+ specifier: ^4.1.0
+ version: 4.1.18
+ typescript:
+ specifier: ^5.3.0
+ version: 5.9.3
+ vite:
+ specifier: ^5.0.0
+ vue-tsc:
+ specifier: ^2.2.12
+ version: 2.2.12([email protected])
+
+packages:
+
+ '@alloc/[email protected]':
+ resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==}
+ engines: {node: '>=10'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-TeR9zWR18BvbfPmGbLampPMW+uW1NZnJlRuuHso8i87QZNq2JRF9i6RgxRqtEq+wQGsS19NNTWr2duhnE49mfQ==}
+ engines: {node: '>=6.0.0'}
+ hasBin: true
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-0ZrskXVEHSWIqZM/sQZ4EV3jZJXRkio/WCxaqKZP1g//CEWEPSfeZFcms4XeKBCHU0ZKnIkdJeU/kF+eRp5lBg==}
+ engines: {node: '>=6.9.0'}
+
+ '@bufbuild/[email protected]':
+ resolution: {integrity: sha512-uFsRXwIGyu+r6AMdz+XijIIZJYpoWeYzILt5yZ2d3mCjQrWUTVpVD9WL/jZAbvp+Ed04rOhrsk7FiTcEDseB5A==}
+
+ 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'}
+ cpu: [ppc64]
+ os: [aix]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==}
+ engines: {node: '>=12'}
+ cpu: [arm64]
+ os: [android]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==}
+ engines: {node: '>=12'}
+ cpu: [arm]
+ os: [android]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==}
+ engines: {node: '>=12'}
+ cpu: [x64]
+ os: [android]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==}
+ engines: {node: '>=12'}
+ cpu: [arm64]
+ os: [darwin]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==}
+ engines: {node: '>=12'}
+ cpu: [x64]
+ os: [darwin]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==}
+ engines: {node: '>=12'}
+ cpu: [arm64]
+ os: [freebsd]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==}
+ engines: {node: '>=12'}
+ cpu: [x64]
+ os: [freebsd]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==}
+ engines: {node: '>=12'}
+ cpu: [arm64]
+ os: [linux]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==}
+ engines: {node: '>=12'}
+ cpu: [arm]
+ os: [linux]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==}
+ engines: {node: '>=12'}
+ cpu: [ia32]
+ os: [linux]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==}
+ engines: {node: '>=12'}
+ cpu: [loong64]
+ os: [linux]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==}
+ engines: {node: '>=12'}
+ cpu: [mips64el]
+ os: [linux]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==}
+ engines: {node: '>=12'}
+ cpu: [ppc64]
+ os: [linux]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==}
+ engines: {node: '>=12'}
+ cpu: [riscv64]
+ os: [linux]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==}
+ engines: {node: '>=12'}
+ cpu: [s390x]
+ os: [linux]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==}
+ engines: {node: '>=12'}
+ cpu: [x64]
+ os: [linux]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==}
+ engines: {node: '>=12'}
+ cpu: [x64]
+ os: [netbsd]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==}
+ engines: {node: '>=12'}
+ cpu: [x64]
+ os: [openbsd]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==}
+ engines: {node: '>=12'}
+ cpu: [x64]
+ os: [sunos]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==}
+ engines: {node: '>=12'}
+ cpu: [arm64]
+ os: [win32]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==}
+ engines: {node: '>=12'}
+ cpu: [ia32]
+ os: [win32]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==}
+ engines: {node: '>=12'}
+ cpu: [x64]
+ os: [win32]
+
+ '@ffmpeg/[email protected]':
+ resolution: {integrity: sha512-1C8Obr4GsN3xw+/1Ww6PFM84wSQAGsdoTuTWPOj2OizsRDLT4CXTaVjPhkw6ARyDus1B9X/L2LiXHqYYsGnRFw==}
+ engines: {node: '>=18.x'}
+
+ '@ffmpeg/[email protected]':
+ resolution: {integrity: sha512-k9vJQNBGTxE5AhYDtOYR5rO5fKsspbg51gbcwtbkw2lCdoIILzklulcjJfIDwrtn7XhDeF2M+THwJ2FGrLeV6A==}
+ engines: {node: '>=16.x'}
+
+ '@ffmpeg/[email protected]':
+ resolution: {integrity: sha512-ouyoW+4JB7WxjeZ2y6KpRvB+dLp7Cp4ro8z0HIVpZVCM7AwFlHa0c4R8Y/a4M3wMqATpYKhC7lSFHQ0T11MEDw==}
+ engines: {node: '>=18.x'}
+
+ '@floating-ui/[email protected]':
+ resolution: {integrity: sha512-sGnvb5dmrJaKEZ+LDIpguvdX3bDlEllmv4/ClQ9awcmCZrlx5jQyyMWFM5kBI+EyNOCDDiKk8il0zeuX3Zlg/w==}
+
+ '@floating-ui/[email protected]':
+ resolution: {integrity: sha512-OOchDgh4F2CchOX94cRVqhvy7b3AFb+/rQXyswmzmGakRfkMgoWVjfnLWkRirfLEfuD4ysVW16eXzwt3jHIzKA==}
+
+ '@floating-ui/[email protected]':
+ resolution: {integrity: sha512-aGTxbpbg8/b5JfU1HXSrbH3wXZuLPJcNEcZQFMxLs3oSzgtVu6nFPkbbGGUvBcUjKV2YyB9Wxxabo+HEH9tcRQ==}
+
+ '@intlify/[email protected]':
+ resolution: {integrity: sha512-5ah5FqZG4pOoHjkvs8mjtv+gPKYU0zCISaYNjBNNqYiaITxW8ZtVih3GS/oTOqN8d9/mDLyrjD46GBApNxmlsA==}
+ engines: {node: '>= 16'}
+
+ '@intlify/[email protected]':
+ resolution: {integrity: sha512-IHzgEu61/YIpQV5Pc3aRWScDcnFKWvQA9kigcINcCBXN8mbW+vk9SK+lDxA6STzKQsVJxUPg9ACC52pKKo3SVQ==}
+ engines: {node: '>= 16'}
+
+ '@intlify/[email protected]':
+ resolution: {integrity: sha512-9gB+E53BYuAEMhbCAxVgG38EZrk59sxBtv3jSizNL2hEWlgjBjAw1AwpLHtNaeda12pe6W20OGEa0TwuMSRbyQ==}
+ engines: {node: '>= 16'}
+
+ '@jridgewell/[email protected]':
+ resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==}
+
+ '@jridgewell/[email protected]':
+ resolution: {integrity: sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==}
+
+ '@jridgewell/[email protected]':
+ resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==}
+ engines: {node: '>=6.0.0'}
+
+ '@jridgewell/[email protected]':
+ resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==}
+
+ '@jridgewell/[email protected]':
+ resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==}
+
+ '@parcel/[email protected]':
+ resolution: {integrity: sha512-hoh0vx4v+b3BNI7Cjoy2/B0ARqcwVNrzN/n7DLq9ZB4I3lrsvhrkCViJyfTj/Qi5xM9YFiH4AmHGK6pgH1ss7g==}
+ engines: {node: '>= 10.0.0'}
+ cpu: [arm64]
+ os: [android]
+
+ '@parcel/[email protected]':
+ resolution: {integrity: sha512-kphKy377pZiWpAOyTgQYPE5/XEKVMaj6VUjKT5VkNyUJlr2qZAn8gIc7CPzx+kbhvqHDT9d7EqdOqRXT6vk0zw==}
+ engines: {node: '>= 10.0.0'}
+ cpu: [arm64]
+ os: [darwin]
+
+ '@parcel/[email protected]':
+ resolution: {integrity: sha512-UKaQFhCtNJW1A9YyVz3Ju7ydf6QgrpNQfRZ35wNKUhTQ3dxJ/3MULXN5JN/0Z80V/KUBDGa3RZaKq1EQT2a2gg==}
+ engines: {node: '>= 10.0.0'}
+ cpu: [x64]
+ os: [darwin]
+
+ '@parcel/[email protected]':
+ resolution: {integrity: sha512-Dib0Wv3Ow/m2/ttvLdeI2DBXloO7t3Z0oCp4bAb2aqyqOjKPPGrg10pMJJAQ7tt8P4V2rwYwywkDhUia/FgS+Q==}
+ engines: {node: '>= 10.0.0'}
+ cpu: [x64]
+ os: [freebsd]
+
+ '@parcel/[email protected]':
+ resolution: {integrity: sha512-I5Vb769pdf7Q7Sf4KNy8Pogl/URRCKu9ImMmnVKYayhynuyGYMzuI4UOWnegQNa2sGpsPSbzDsqbHNMyeyPCgw==}
+ engines: {node: '>= 10.0.0'}
+ cpu: [arm]
+ os: [linux]
+ libc: [glibc]
+
+ '@parcel/[email protected]':
+ resolution: {integrity: sha512-kGO8RPvVrcAotV4QcWh8kZuHr9bXi9a3bSZw7kFarYR0+fGliU7hd/zevhjw8fnvIKG3J9EO5G6sXNGCSNMYPQ==}
+ engines: {node: '>= 10.0.0'}
+ cpu: [arm]
+ os: [linux]
+ libc: [musl]
+
+ '@parcel/[email protected]':
+ resolution: {integrity: sha512-KU75aooXhqGFY2W5/p8DYYHt4hrjHZod8AhcGAmhzPn/etTa+lYCDB2b1sJy3sWJ8ahFVTdy+EbqSBvMx3iFlw==}
+ engines: {node: '>= 10.0.0'}
+ cpu: [arm64]
+ os: [linux]
+ libc: [glibc]
+
+ '@parcel/[email protected]':
+ resolution: {integrity: sha512-Qx8uNiIekVutnzbVdrgSanM+cbpDD3boB1f8vMtnuG5Zau4/bdDbXyKwIn0ToqFhIuob73bcxV9NwRm04/hzHQ==}
+ engines: {node: '>= 10.0.0'}
+ cpu: [arm64]
+ os: [linux]
+ libc: [musl]
+
+ '@parcel/[email protected]':
+ resolution: {integrity: sha512-UYBQvhYmgAv61LNUn24qGQdjtycFBKSK3EXr72DbJqX9aaLbtCOO8+1SkKhD/GNiJ97ExgcHBrukcYhVjrnogA==}
+ engines: {node: '>= 10.0.0'}
+ cpu: [x64]
+ os: [linux]
+ libc: [glibc]
+
+ '@parcel/[email protected]':
+ resolution: {integrity: sha512-YoRWCVgxv8akZrMhdyVi6/TyoeeMkQ0PGGOf2E4omODrvd1wxniXP+DBynKoHryStks7l+fDAMUBRzqNHrVOpg==}
+ engines: {node: '>= 10.0.0'}
+ cpu: [x64]
+ os: [linux]
+ libc: [musl]
+
+ '@parcel/[email protected]':
+ resolution: {integrity: sha512-iby+D/YNXWkiQNYcIhg8P5hSjzXEHaQrk2SLrWOUD7VeC4Ohu0WQvmV+HDJokZVJ2UjJ4AGXW3bx7Lls9Ln4TQ==}
+ engines: {node: '>= 10.0.0'}
+ cpu: [arm64]
+ os: [win32]
+
+ '@parcel/[email protected]':
+ resolution: {integrity: sha512-vQN+KIReG0a2ZDpVv8cgddlf67J8hk1WfZMMP7sMeZmJRSmEax5xNDNWKdgqSe2brOKTQQAs3aCCUal2qBHAyg==}
+ engines: {node: '>= 10.0.0'}
+ cpu: [ia32]
+ os: [win32]
+
+ '@parcel/[email protected]':
+ resolution: {integrity: sha512-3A6efb6BOKwyw7yk9ro2vus2YTt2nvcd56AuzxdMiVOxL9umDyN5PKkKfZ/gZ9row41SjVmTVQNWQhaRRGpOKw==}
+ engines: {node: '>= 10.0.0'}
+ cpu: [x64]
+ os: [win32]
+
+ '@parcel/[email protected]':
+ resolution: {integrity: sha512-WYa2tUVV5HiArWPB3ydlOc4R2ivq0IDrlqhMi3l7mVsFEXNcTfxYFPIHXHXIh/ca/y/V5N4E1zecyxdIBjYnkQ==}
+ engines: {node: '>= 10.0.0'}
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-9R0DM/ykwfGIlNu6+2U09ga0WXeZ9MRC2Ter8jnz8415VbuIykVuc6bhdrbORFZANDmTDvq26mJrEVTl8TdnDg==}
+ cpu: [arm]
+ os: [android]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-eFZCb1YUqhTysgW3sj/55du5cG57S7UTNtdMjCW7LwVcj3dTTcowCsC8p7uBdzKsZYa8J7IDE8lhMI+HX1vQvg==}
+ cpu: [arm64]
+ os: [android]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-p3grE2PHcQm2e8PSGZdzIhCKbMCw/xi9XvMPErPhwO17vxtvCN5FEA2mSLgmKlCjHGMQTP6phuQTYWUnKewwGg==}
+ cpu: [arm64]
+ os: [darwin]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-rDUjG25C9qoTm+e02Esi+aqTKSBYwVTaoS1wxcN47/Luqef57Vgp96xNANwt5npq9GDxsH7kXxNkJVEsWEOEaQ==}
+ cpu: [x64]
+ os: [darwin]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-+JiU7Jbp5cdxekIgdte0jfcu5oqw4GCKr6i3PJTlXTCU5H5Fvtkpbs4XJHRmWNXF+hKmn4v7ogI5OQPaupJgOg==}
+ cpu: [arm64]
+ os: [freebsd]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-V5xC1tOVWtLLmr3YUk2f6EJK4qksksOYiz/TCsFHu/R+woubcLWdC9nZQmwjOAbmExBIVKsm1/wKmEy4z4u4Bw==}
+ cpu: [x64]
+ os: [freebsd]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-Rn3n+FUk2J5VWx+ywrG/HGPTD9jXNbicRtTM11e/uorplArnXZYsVifnPPqNNP5BsO3roI4n8332ukpY/zN7rQ==}
+ cpu: [arm]
+ os: [linux]
+ libc: [glibc]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-grPNWydeKtc1aEdrJDWk4opD7nFtQbMmV7769hiAaYyUKCT1faPRm2av8CX1YJsZ4TLAZcg9gTR1KvEzoLjXkg==}
+ cpu: [arm]
+ os: [linux]
+ libc: [musl]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-a59mwd1k6x8tXKcUxSyISiquLwB5pX+fJW9TkWU46lCqD/GRDe9uDN31jrMmVP3feI3mhAdvcCClhV8V5MhJFQ==}
+ cpu: [arm64]
+ os: [linux]
+ libc: [glibc]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-puS1MEgWX5GsHSoiAsF0TYrpomdvkaXm0CofIMG5uVkP6IBV+ZO9xhC5YEN49nsgYo1DuuMquF9+7EDBVYu4uA==}
+ cpu: [arm64]
+ os: [linux]
+ libc: [musl]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-r3Wv40in+lTsULSb6nnoudVbARdOwb2u5fpeoOAZjFLznp6tDU8kd+GTHmJoqZ9lt6/Sys33KdIHUaQihFcu7g==}
+ cpu: [loong64]
+ os: [linux]
+ libc: [glibc]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-MR8c0+UxAlB22Fq4R+aQSPBayvYa3+9DrwG/i1TKQXFYEaoW3B5b/rkSRIypcZDdWjWnpcvxbNaAJDcSbJU3Lw==}
+ cpu: [loong64]
+ os: [linux]
+ libc: [musl]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-3KhoECe1BRlSYpMTeVrD4sh2Pw2xgt4jzNSZIIPLFEsnQn9gAnZagW9+VqDqAHgm1Xc77LzJOo2LdigS5qZ+gw==}
+ cpu: [ppc64]
+ os: [linux]
+ libc: [glibc]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-ziR1OuZx0vdYZZ30vueNZTg73alF59DicYrPViG0NEgDVN8/Jl87zkAPu4u6VjZST2llgEUjaiNl9JM6HH1Vdw==}
+ cpu: [ppc64]
+ os: [linux]
+ libc: [musl]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-uW0Y12ih2XJRERZ4jAfKamTyIHVMPQnTZcQjme2HMVDAHY4amf5u414OqNYC+x+LzRdRcnIG1YodLrrtA8xsxw==}
+ cpu: [riscv64]
+ os: [linux]
+ libc: [glibc]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-u9yZ0jUkOED1BFrqu3BwMQoixvGHGZ+JhJNkNKY/hyoEgOwlqKb62qu+7UjbPSHYjiVy8kKJHvXKv5coH4wDeg==}
+ cpu: [riscv64]
+ os: [linux]
+ libc: [musl]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-/0PenBCmqM4ZUd0190j7J0UsQ/1nsi735iPRakO8iPciE7BQ495Y6msPzaOmvx0/pn+eJVVlZrNrSh4WSYLxNg==}
+ cpu: [s390x]
+ os: [linux]
+ libc: [glibc]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-a8G4wiQxQG2BAvo+gU6XrReRRqj+pLS2NGXKm8io19goR+K8lw269eTrPkSdDTALwMmJp4th2Uh0D8J9bEV1vg==}
+ cpu: [x64]
+ os: [linux]
+ libc: [glibc]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-bD+zjpFrMpP/hqkfEcnjXWHMw5BIghGisOKPj+2NaNDuVT+8Ds4mPf3XcPHuat1tz89WRL+1wbcxKY3WSbiT7w==}
+ cpu: [x64]
+ os: [linux]
+ libc: [musl]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-eLXw0dOiqE4QmvikfQ6yjgkg/xDM+MdU9YJuP4ySTibXU0oAvnEWXt7UDJmD4UkYialMfOGFPJnIHSe/kdzPxg==}
+ cpu: [x64]
+ os: [openbsd]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-xzm44KgEP11te3S2HCSyYf5zIzWmx3n8HDCc7EE59+lTcswEWNpvMLfd9uJvVX8LCg9QWG67Xt75AuHn4vgsXw==}
+ cpu: [arm64]
+ os: [openharmony]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-yR6Bl3tMC/gBok5cz/Qi0xYnVbIxGx5Fcf/ca0eB6/6JwOY+SRUcJfI0OpeTpPls7f194as62thCt/2BjxYN8g==}
+ cpu: [arm64]
+ os: [win32]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-3fZBidchE0eY0oFZBnekYCfg+5wAB0mbpCBuofh5mZuzIU/4jIVkbESmd2dOsFNS78b53CYv3OAtwqkZZmU5nA==}
+ cpu: [ia32]
+ os: [win32]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-xGGY5pXj69IxKb4yv/POoocPy/qmEGhimy/FoTpTSVju3FYXUQQMFCaZZXJVidsmGxRioZAwpThl/4zX41gRKg==}
+ cpu: [x64]
+ os: [win32]
+
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-SPEpaL6DX4rmcXtnhdrQYgzQ5W2uW3SCJch88lB2zImhJRhIIK44fkUrgIV/Q8yUNfw5oyZ5vkeQsZLhCb06lw==}
+ cpu: [x64]
+ os: [win32]
+
+ resolution: {integrity: sha512-Ccy0NlLkzr0Ex2FKvh2X+OyERHXJ88XJ1MXtsI9y9fGexlaXaVTPzBCRBwIxFkORuOb+uBqeu+RqnpgYTEZRUQ==}
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-DoR7U1P7iYhw16qJ49fgXUlry1t4CpXeErJHnQ44JgTSKMaZUdf17cfn5mHchfJ4KRBZRFA/Coo+MUF5+gOaCQ==}
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-dJHz7+Ugr9U/diKJA0W6N/6/cjI+ZTAoxPf9Iz9BFRF2GzEX8IvXxFIi/dZBloVJX/MZGvRuFA9rqwdiIEZQ0Q==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [android]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-Gc2q4Qhs660bhjyBSKgq6BYvwDz4G+BuyJ5H1xfhmDR3D8HnHCmT/BSkvSL0vQLy/nkMLY20PQ2OoYMO15Jd0A==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [darwin]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-FL5oxr2xQsFrc3X9o1fjHKBYBMD1QZNyc1Xzw/h5Qu4XnEBi3dZn96HcHm41c/euGV+GRiXFfh2hUCyKi/e+yw==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [darwin]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-Fj+RHgu5bDodmV1dM9yAxlfJwkkWvLiRjbhuO2LEtwtlYlBgiAT4x/j5wQr1tC3SANAgD+0YcmWVrj8R9trVMA==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [freebsd]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-Fp+Wzk/Ws4dZn+LV2Nqx3IilnhH51YZoRaYHQsVq3RQvEl+71VGKFpkfHrLM/Li+kt5c0DJe/bHXK1eHgDmdiA==}
+ engines: {node: '>= 10'}
+ cpu: [arm]
+ os: [linux]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-S0n3jboLysNbh55Vrt7pk9wgpyTTPD0fdQeh7wQfMqLPM/Hrxi+dVsLsPrycQjGKEQk85Kgbx+6+QnYNiHalnw==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [linux]
+ libc: [glibc]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-1px92582HkPQlaaCkdRcio71p8bc8i/ap5807tPRDK/uw953cauQBT8c5tVGkOwrHMfc2Yh6UuxaH4vtTjGvHg==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [linux]
+ libc: [musl]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-v3gyT0ivkfBLoZGF9LyHmts0Isc8jHZyVcbzio6Wpzifg/+5ZJpDiRiUhDLkcr7f/r38SWNe7ucxmGW3j3Kb/g==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [linux]
+ libc: [glibc]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-bhJ2y2OQNlcRwwgOAGMY0xTFStt4/wyU6pvI6LSuZpRgKQwxTec0/3Scu91O8ir7qCR3AuepQKLU/kX99FouqQ==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [linux]
+ libc: [musl]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-LffYTvPjODiP6PT16oNeUQJzNVyJl1cjIebq/rWWBF+3eDst5JGEFSc5cWxyRCJ0Mxl+KyIkqRxk1XPEs9x8TA==}
+ engines: {node: '>=14.0.0'}
+ cpu: [wasm32]
+ bundledDependencies:
+ - '@napi-rs/wasm-runtime'
+ - '@emnapi/core'
+ - '@emnapi/runtime'
+ - '@tybys/wasm-util'
+ - '@emnapi/wasi-threads'
+ - tslib
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-HjSA7mr9HmC8fu6bdsZvZ+dhjyGCLdotjVOgLA2vEqxEBZaQo9YTX4kwgEvPCpRh8o4uWc4J/wEoFzhEmjvPbA==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [win32]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-bJWbyYpUlqamC8dpR7pfjA0I7vdF6t5VpUGMWRkXVE3AXgIZjYUYAK7II1GNaxR8J1SSrSrppRar8G++JekE3Q==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [win32]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-EgCR5tTS5bUSKQgzeMClT6iCY3ToqE1y+ZB0AKldj809QXk1Y+3jB0upOYZrn9aGIzPtUsP7sX4QQ4XtjBB95A==}
+ engines: {node: '>= 10'}
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-Ce0GFnzAOuPyfV5SxjXGn0CubwGcuDB0zcdaPuCSzAa/2vII24JTkH+I6jcbXLb1ctjZMZZI6OjDaLPJQL1S0g==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-0NgftHUcV4v34VhXm8QBSftKVXtbkBG3ViCjs6+eJ5a6y6Mi/jiFGPc1sC7QK+9BFhWrURE3EOggmWaSxL9OzQ==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-RDvF6wTulMPjrNdCoYRC8gNR880JNGT8uB+REUpC2Ns4pRqQJhGz90wh7rgdXDPpCczF3VGktDuFGVnz8zP7HA==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-VyKBr25BuFDzBFCK5sUM6ZXiWfqgCTwTAOK8qzGV/m9FCirXYDlmczJ+d5dXBAQALGCdRRdbteKYfJ84NGEusw==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-g9gZnnXVq7gM7v3tJCWV/qw7w+KeOlSHAhgF9RytFyifW6AF61hdT2ucrYhPq9hLs5JIryeupHV3qGk95dH9ow==}
+
+ '@vitejs/[email protected]':
+ resolution: {integrity: sha512-7Yx/SXSOcQq5HiiV3orevHUFn+pmMB4cgbEkDYgnkUWb0WfeQ/wa2yFv6D5ICiCQOVpjA7vYDXrC7AGO8yjDHA==}
+ engines: {node: ^18.0.0 || >=20.0.0}
+ peerDependencies:
+ vite: ^5.0.0 || ^6.0.0
+ vue: ^3.2.25
+
+ '@volar/[email protected]':
+ resolution: {integrity: sha512-3VHw+QZU0ZG9IuQmzT68IyN4hZNd9GchGPhbD9+pa8CVv7rnoOZwo7T8weIbrRmihqy3ATpdfXFnqRrfPVK6CA==}
+
+ '@volar/[email protected]':
+ resolution: {integrity: sha512-CPbMWlUN6hVZJYGcU/GSoHu4EnCHiLaXI9n8c9la6RaI9W5JHX+NqG+GSQcB0JdC2FIBLdZJwGsfKyBB71VlTg==}
+
+ '@volar/[email protected]':
+ resolution: {integrity: sha512-2aZ8i0cqPGjXb4BhkMsPYDkkuc2ZQ6yOpqwAuNwUoncELqoy5fRgOQtLR9gB0g902iS0NAkvpIzs27geVyVdPg==}
+
+ resolution: {integrity: sha512-vXyI5GMfuoBCnv5ucIT7jhHKl55Y477yxP6fc4eUswjP8FG3FFVFd41eNDArR+Uk3QKn2Z85NavjaxLxOC19/w==}
+
+ resolution: {integrity: sha512-y1Tcd3eXs834QjswshSilCBnKGeQjQXB6PqFn/1nxcQw4pmG42G8lwz+FZPAZAby6gZeHSt/8LMPfZ4Rb+Bd/A==}
+
+ resolution: {integrity: sha512-egp69qDTSEZcf4bGOSsprUr4xI73wfrY5oRs6GSgXFTiHrWj4Y3X5Ydtip9QMqiCMCPVwLglB9GBxXtTadJ3mA==}
+
+ resolution: {integrity: sha512-lZT9/Y0nSIRUPVvapFJEVDbEXruZh2IYHMk2zTtEgJSlP5gVOqeWXH54xDKAaFS4rTnDeDBQUYDtxKyoW9FwDw==}
+
+ resolution: {integrity: sha512-qYC3Psj9S/mfu9uVi5WvNZIzq+xnXMhOwbTFKKDD7b1lhpnn71jXSFdTQ+WsIEk0ONCd7VV2IMm7ONl6tbQ86A==}
+
+ resolution: {integrity: sha512-sGhTPMuXqZ1rVOk32RylztWkfXTRhuS7vgAKv0zjqk8gbsHkJ7xfFf+jbySxt7tWObEJwyKaHMikV/WGDiQm8g==}
+
+ resolution: {integrity: sha512-IsGljWbKGU1MZpBPN+BvPAdr55YPkj2nB/TBNGNC32Vy2qLG25DYu/NBN2vNtZqdRbTRjaoYrahLrToim2NanA==}
+ peerDependencies:
+ typescript: '*'
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+
+ resolution: {integrity: sha512-9EnYB1/DIiUYYnzlnUBgwU32NNvLp/nhxLXeWRhHUEeWNTn1ECxX8aGO7RTXeX6PPcxe3LLuNBFoJbV4QZ+CFQ==}
+
+ resolution: {integrity: sha512-xJWM9KH1kd201w5DvMDOwDHYhrdPTrAatn56oB/LRG4plEQeZRQLw0Bpwih9KYoqmzaxF0OKSn6swzYi84e1/Q==}
+
+ resolution: {integrity: sha512-XLLd/+4sPC2ZkN/6+V4O4gjJu6kSDbHAChvsyWgm1oGbdSO3efvGYnm25yCjtFm/K7rrSDvSfPDgN1pHgS4VNQ==}
+
+ resolution: {integrity: sha512-TYKLXmrwWKSodyVuO1WAubucd+1XlLg4set0YoV+Hu8Lo79mp/YMwWV5mC5FgtsDxX3qo1ONrxFaTP1OQgy1uA==}
+ peerDependencies:
+ vue: 3.5.26
+
+ resolution: {integrity: sha512-7Z6/y3uFI5PRoKeorTOSXKcDj0MSasfNNltcslbFrPpcw6aXRUALq4IfJlaTRspiWIUOEZbrpM+iQGmCOiWe4A==}
+
+ resolution: {integrity: sha512-VcZK7MvpjuTPx2w6blwnwZAu5/LgBUtejFOi3pPGQFXQN5Ela03FUtd2Qtg4yWGGissVL0dr6Ro1LfOFh+PCuQ==}
+
+ '@vueuse/[email protected]':
+ resolution: {integrity: sha512-guoy26JQktXPcz+0n3GukWIy/JDNKti9v6VEMu6kV2sYBsWuGiTU8OWdg+ADfUbHg3/3DlqySDe7JmdHrktiww==}
+
+ '@vueuse/[email protected]':
+ resolution: {integrity: sha512-IGa5FXd003Ug1qAZmyE8wF3sJ81xGLSqTqtQ6jaVfkeZ4i5kS2mwQF61yhVqojRnenVew5PldLyRgvdl4YYuSw==}
+
+ '@vueuse/[email protected]':
+ resolution: {integrity: sha512-LHpC8711VFZlDaYUXEBbFBCQ7GS3dVU9mjOhhMhXP6txTV4EhYQg/KGnQuvt/sPAtoUKq7VVUnL6mVtFoL42sA==}
+
+ resolution: {integrity: sha512-OGj9yyTnJEttvzhTUWuscOvtqxq5vrhF7vL9oS0xJ2mK0ItPYP1/y+vCFebfxoEyAz0++1AIwJ5CMr+Fk3nDmg==}
+
+ resolution: {integrity: sha512-7HhHjtERjqlNbZtqNqy2rckN/SpOOlmDliet+lP7k+eKZEjPk3DgyeU9lIXLdeLz0uBbbVp+9Qdow9wJWgwwfg==}
+
+ resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==}
+
+ resolution: {integrity: sha512-YYTXSFulfwytnjAPlw8QHncHJmlvFKtczb8InXaAx9Q0LbfDnfEYDE55omerIJKihhmU61Ft+cAOSzQVaBUmeA==}
+ engines: {node: ^10 || ^12 || >=14}
+ hasBin: true
+ peerDependencies:
+ postcss: ^8.1.0
+
+ resolution: {integrity: sha512-VPk9ebNqPcy5lRGuSlKx752IlDatOjT9paPlm8A7yOuW2Fbvp4X3JznJtT4f0GzGLLiWE9W8onz51SqLYwzGaA==}
+
+ resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==}
+
+ resolution: {integrity: sha512-B0xUquLkiGLgHhpPBqvl7GWegWBUNuujQ6kXd/r1U38ElPT6Ok8KZ8e+FpUGEc2ZoRQUzq/aUnaKFc/svWUGSg==}
+ hasBin: true
+
+ resolution: {integrity: sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==}
+
+ resolution: {integrity: sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==}
+ engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
+ hasBin: true
+
+ resolution: {integrity: sha512-7VPMEPuYznPSoR21NE1zvd2Xna6c/CloiZCfcMXR1Jny6PjX0N4Nsa38zcBFo/FMK+BlA+FLKbJCQ0i2yxp+Xg==}
+
+ resolution: {integrity: sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-9JGuzl2M+vPL+pz70gtMF9sHdMFbY9FJaQBi186cHKH3pSzDvzoUJUPV6fqiKIMyXbud9ZLg4F3Yza1vJ1+93g==}
+
+ resolution: {integrity: sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==}
+ engines: {node: '>= 14.16.0'}
+
+ resolution: {integrity: sha512-twmVoizEW7ylZSN32OgKdXRmo1qg+wT5/6C3xu5b9QsWzSFAhHLn2xd8ro0diCsKfCj1RdaTP/nrcW+vAoQPIw==}
+
+ resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==}
+ engines: {node: '>= 0.8'}
+
+ resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==}
+
+ resolution: {integrity: sha512-t5EcLVS6QPBNqM2z8fakk/NKel+Xzshgt8FFKAn+qwlD1pzZWxh0nVCrvFK7ZDb6XucZeF9z8C7CBWTRIVApAw==}
+
+ resolution: {integrity: sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==}
+
+ resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==}
+ engines: {node: '>=0.4.0'}
+
+ resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-0Drusm6MVRXSOJpGbaSVgcQsuB4hEkMpHXaVstcPmhu5LIedxs1xNK/nIxmQIU/RPC0+1/o0AVZfBTkTNJOdUw==}
+
+ resolution: {integrity: sha512-eG4BDBGdAsUGN6URH1PixzZb0ngdapLivIk1meghS1uEueLvQ3aljSKrCt5x6sYb6mUk8eGtzTQFgsPmLavQcA==}
+ peerDependencies:
+ vue: ^3.3.0
+
+ resolution: {integrity: sha512-LgQMM4WXU3QI+SYgEc2liRgznaD5ojbmY3sb8LxyguVkIg5FxdpTkvk72te2R38/TGKxH634oLxXRGY6d7AP+Q==}
+ engines: {node: '>=10.13.0'}
+
+ resolution: {integrity: sha512-FDWG5cmEYf2Z00IkYRhbFrwIwvdFKH07uV8dvNy0omp/Qb1xcyCWp2UDtcwJF4QZZvk0sLudP6/hAu42TaqVhQ==}
+ engines: {node: '>=0.12'}
+
+ resolution: {integrity: sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==}
+ engines: {node: '>=12'}
+ hasBin: true
+
+ resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==}
+
+ resolution: {integrity: sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==}
+ engines: {node: '>=4.0'}
+ peerDependencies:
+ debug: '*'
+ peerDependenciesMeta:
+ debug:
+ optional: true
+
+ resolution: {integrity: sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==}
+ engines: {node: '>= 6'}
+
+ resolution: {integrity: sha512-1X1NTtiJphryn/uLQz3whtY6jK3fTqoE3ohKs0tT+Ujr1W59oopxmoEh7Lu5p6vBaPbgoM0bzveAW4Qi5RyWDQ==}
+
+ resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==}
+ engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}
+ os: [darwin]
+
+ resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==}
+
+ resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}
+
+ resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==}
+ hasBin: true
+
+ resolution: {integrity: sha512-p6u1bG3YSnINT5RQmx/yRZBpenIl30kVxkTLDyHLIMk0gict704Q9n+thfDI7lTRm9vXdDYutVzXhzcThxTnXA==}
+
+ resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==}
+ hasBin: true
+
+ resolution: {integrity: sha512-BH9sEdOCahSgmkVhBLeU7Hc9DWeZ1Eb6wNS6Da8igvUwAe0sqROHddIlvU06q3WyXVEOYDZ6ykBZQnjTbmo4+A==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [android]
+
+ resolution: {integrity: sha512-ylTcDJBN3Hp21TdhRT5zBOIi73P6/W0qwvlFEk22fkdXchtNTOU4Qc37SkzV+EKYxLouZ6M4LG9NfZ1qkhhBWA==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [darwin]
+
+ resolution: {integrity: sha512-oBZgKchomuDYxr7ilwLcyms6BCyLn0z8J0+ZZmfpjwg9fRVZIR5/GMXd7r9RH94iDhld3UmSjBM6nXWM2TfZTQ==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [darwin]
+
+ resolution: {integrity: sha512-c2bH6xTrf4BDpK8MoGG4Bd6zAMZDAXS569UxCAGcA7IKbHNMlhGQ89eRmvpIUGfKWNVdbhSbkQaWhEoMGmGslA==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [freebsd]
+
+ resolution: {integrity: sha512-eVdpxh4wYcm0PofJIZVuYuLiqBIakQ9uFZmipf6LF/HRj5Bgm0eb3qL/mr1smyXIS1twwOxNWndd8z0E374hiA==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm]
+ os: [linux]
+
+ resolution: {integrity: sha512-UK65WJAbwIJbiBFXpxrbTNArtfuznvxAJw4Q2ZGlU8kPeDIWEX1dg3rn2veBVUylA2Ezg89ktszWbaQnxD/e3A==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-5Vh9dGeblpTxWHpOx8iauV02popZDsCYMPIgiuw97OJ5uaDsL86cnqSFs5LZkG3ghHoX5isLgWzMs+eD1YzrnA==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [linux]
+ libc: [musl]
+
+ resolution: {integrity: sha512-Cfd46gdmj1vQ+lR6VRTTadNHu6ALuw2pKR9lYq4FnhvgBc4zWY1EtZcAc6EffShbb1MFrIPfLDXD6Xprbnni4w==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-XJaLUUFXb6/QG2lGIW6aIk6jKdtjtcffUT0NKvIqhSBY3hh9Ch+1LCeH80dR9q9LBjG3ewbDjnumefsLsP6aiA==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [linux]
+ libc: [musl]
+
+ resolution: {integrity: sha512-FZn+vaj7zLv//D/192WFFVA0RgHawIcHqLX9xuWiQt7P0PtdFEVaxgF9rjM/IRYHQXNnk61/H/gb2Ei+kUQ4xQ==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [win32]
+
+ resolution: {integrity: sha512-5g1yc73p+iAkid5phb4oVFMB45417DkRevRbt/El/gKXJk4jid+vPFF/AXbxn05Aky8PapwzZrdJShv5C0avjw==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [win32]
+
+ resolution: {integrity: sha512-utfs7Pr5uJyyvDETitgsaqSyjCb2qNRAtuqUeWIAKztsOYdcACf2KtARYXg2pSvhkt+9NfoaNY7fxjl6nuMjIQ==}
+ engines: {node: '>= 12.0.0'}
+
+ 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-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==}
+
+ resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-rkpe71W0N0c0Xz6QD0eJETuWAJGnJ9afsl1srmwPrI+yBCkge5EycXXbYRyvL29zZVUWQCY7InPRCv3GDXuZNw==}
+
+ resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==}
+ engines: {node: '>= 0.6'}
+
+ resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==}
+ engines: {node: '>= 0.6'}
+
+ resolution: {integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==}
+ engines: {node: '>=16 || 14 >=14.17'}
+
+ resolution: {integrity: sha512-VNTrAak/KhO2i8dqqnqnAHOa3cYBwXEZe9h+D5h/1ZqFSTEFHdM65lR7RoIqq3tBBYavsOXV84NoHXZ0AkPyqQ==}
+
+ resolution: {integrity: sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==}
+ engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
+ hasBin: true
+
+ resolution: {integrity: sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==}
+
+ resolution: {integrity: sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==}
+
+ resolution: {integrity: sha512-Wj7+EJQ8mSuXr2iWfnujrimU35R2W4FAErEyTmJoJ7ucwTn2hOUSsRehMb5RSYkxXGTM7Y9QpvPmp++w5ftoJw==}
+
+ resolution: {integrity: sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==}
+
+ resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==}
+
+ resolution: {integrity: sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-khUlZSwt9xXCaTbbxFYBKDc/bWAGWJjOgvxETwkTN7KRm66EeT1ZdZj6i2ceh9sP2Pzqsbc704r2yngBrxBVug==}
+ peerDependencies:
+ typescript: '>=4.4.4'
+ vue: ^2.7.0 || ^3.5.11
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+
+ resolution: {integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==}
+
+ resolution: {integrity: sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==}
+ engines: {node: ^10 || ^12 || >=14}
+
+ resolution: {integrity: sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==}
+
+ resolution: {integrity: sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==}
+ engines: {node: '>= 14.18.0'}
+
+ resolution: {integrity: sha512-wDv/Ht1BNHB4upNbK74s9usvl7hObDnvVzknxqY/E/O3X6rW1U1rV1aENEfJ54eFZDTNo7zv1f5N4edCluH7+A==}
+ engines: {node: '>=18.0.0', npm: '>=8.0.0'}
+ hasBin: true
+
+ resolution: {integrity: sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==}
+
+ resolution: {integrity: sha512-Fj75+vOIDv1T/dGDwEpQ5hgjXxa2SmMeShPa8yrh2sUz1U44bbmY4YSWPCdg8wb7LnwiY21B2KRFM+HF42yO4g==}
+ cpu: ['!arm', '!arm64', '!riscv64', '!x64']
+
+ resolution: {integrity: sha512-pF6I+R5uThrscd3lo9B3DyNTPyGFsopycdx0tDAESN6s+dBbiRgNgE4Zlpv50GsLocj/lDLCZaabeTpL3ubhYA==}
+ engines: {node: '>=14.0.0'}
+ cpu: [arm64]
+ os: [android]
+
+ resolution: {integrity: sha512-BPT9m19ttY0QVHYYXRa6bmqmS3Fa2EHByNUEtSVcbm5PkIk1ntmYkG9fn5SJpIMbNmFDGwHx+pfcZMmkldhnRg==}
+ engines: {node: '>=14.0.0'}
+ cpu: [arm]
+ os: [android]
+
+ resolution: {integrity: sha512-fprI8ZTJdz+STgARhg8zReI2QhhGIT9G8nS7H21kc3IkqPRzhfaemSxEtCqZyvDbXPcgYiDLV7AGIReHCuATog==}
+ engines: {node: '>=14.0.0'}
+ cpu: [riscv64]
+ os: [android]
+
+ resolution: {integrity: sha512-RswwSjURZxupsukEmNt2t6RGvuvIw3IAD5sDq1Pc65JFvWFY3eHqCmH0lG0oXqMg6KJcF0eOxHOp2RfmIm2+4w==}
+ engines: {node: '>=14.0.0'}
+ cpu: [x64]
+ os: [android]
+
+ resolution: {integrity: sha512-xcsZNnU1XZh21RE/71OOwNqPVcGBU0qT9A4k4QirdA34+ts9cDIaR6W6lgHOBR/Bnnu6w6hXJR4Xth7oFrefPA==}
+ engines: {node: '>=14.0.0'}
+ cpu: [arm64]
+ os: [darwin]
+
+ resolution: {integrity: sha512-T/9DTMpychm6+H4slHCAsYJRJ6eM+9H9idKlBPliPrP4T8JdC2Cs+ZOsYqrObj6eOtAD0fGf+KgyNhnW3xVafA==}
+ engines: {node: '>=14.0.0'}
+ cpu: [x64]
+ os: [darwin]
+
+ resolution: {integrity: sha512-Wh+nQaFer9tyE5xBPv5murSUZE/+kIcg8MyL5uqww6be9Iq+UmZpcJM7LUk+q8klQ9LfTmoDSNFA74uBqxD6IA==}
+ engines: {node: '>=14.0.0'}
+ cpu: [arm64]
+ os: [linux]
+ libc: glibc
+
+ resolution: {integrity: sha512-yDRe1yifGHl6kibkDlRIJ2ZzAU03KJ1AIvsAh4dsIDgK5jx83bxZLV1ZDUv7a8KK/iV/80LZnxnu/92zp99cXQ==}
+ engines: {node: '>=14.0.0'}
+ cpu: [arm]
+ os: [linux]
+ libc: glibc
+
+ resolution: {integrity: sha512-NfUqZSjHwnHvpSa7nyNxbWfL5obDjNBqhHUYmqbHUcmqBpFfHIQsUPgXME9DKn1yBlBc3mWnzMxRoucdYTzd2Q==}
+ engines: {node: '>=14.0.0'}
+ cpu: [arm64]
+ os: [linux]
+ libc: musl
+
+ resolution: {integrity: sha512-GIO6xfAtahJAWItvsXZ3MD1HM6s8cKtV1/HL088aUpKJaw/2XjTCveiOO2AdgMpLNztmq9DZ1lx5X5JjqhS45g==}
+ engines: {node: '>=14.0.0'}
+ cpu: [arm]
+ os: [linux]
+ libc: musl
+
+ resolution: {integrity: sha512-qtM4dJ5gLfvyTZ3QencfNbsTEShIWImSEpkThz+Y2nsCMbcMP7/jYOA03UWgPfEOKSehQQ7EIau7ncbFNoDNPQ==}
+ engines: {node: '>=14.0.0'}
+ cpu: [riscv64]
+ os: [linux]
+ libc: musl
+
+ resolution: {integrity: sha512-ZAxYOdmexcnxGnzdsDjYmNe3jGj+XW3/pF/n7e7r8y+5c6D2CQRrCUdapLgaqPt1edOPQIlQEZF8q5j6ng21yw==}
+ engines: {node: '>=14.0.0'}
+ cpu: [x64]
+ os: [linux]
+ libc: musl
+
+ resolution: {integrity: sha512-reVwa9ZFEAOChXpDyNB3nNHHyAkPMD+FTctQKECqKiVJnIzv2EaFF6/t0wzyvPgBKeatA8jszAIeOkkOzbYVkQ==}
+ engines: {node: '>=14.0.0'}
+ cpu: [riscv64]
+ os: [linux]
+ libc: glibc
+
+ resolution: {integrity: sha512-bvAdZQsX3jDBv6m4emaU2OMTpN0KndzTAMgJZZrKUgiC0qxBmBqbJG06Oj/lOCoXGCxAvUOheVYpezRTF+Feog==}
+ engines: {node: '>=14.0.0'}
+ cpu: [x64]
+ os: [linux]
+ libc: glibc
+
+ resolution: {integrity: sha512-86tcYwohjPgSZtgeU9K4LikrKBJNf8ZW/vfsFbdzsRlvc73IykiqanufwQi5qIul0YHuu9lZtDWyWxM2dH/Rsg==}
+ os: ['!android', '!darwin', '!linux', '!win32']
+
+ resolution: {integrity: sha512-Cv28q8qNjAjZfqfzTrQvKf4JjsZ6EOQ5FxyHUQQeNzm73R86nd/8ozDa1Vmn79Hq0kwM15OCM9epanDuTG1ksA==}
+ engines: {node: '>=14.0.0'}
+ cpu: [arm64]
+ os: [win32]
+
+ resolution: {integrity: sha512-DVxLxkeDCGIYeyHLAvWW3yy9sy5Ruk5p472QWiyfyyG1G1ASAR8fgfIY5pT0vE6Rv+VAKVLwF3WTspUYu7S1/Q==}
+ engines: {node: '>=14.0.0'}
+ cpu: [x64]
+ os: [win32]
+
+ resolution: {integrity: sha512-lKJcskySwAtJ4QRirKrikrWMFa2niAuaGenY2ElHjd55IwHUiur5IdKu6R1hEmGYMs4Qm+6rlRW0RvuAkmcryg==}
+ engines: {node: '>=16.0.0'}
+ hasBin: true
+
+ resolution: {integrity: sha512-y5LWb0IlbO4e97Zr7c3mlpabcbBtS+ieiZ9iwDooShpFKWXf62zz5pEPdwrLYm+Bxn1fnbwFGzHuCLSA9tBmrw==}
+ engines: {node: '>=14.0.0'}
+ hasBin: true
+
+ resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-8lD+t2KrrScJ/7KXCSyfhT3/hRq78rC0wBFqNJXv3mZyn6hW2ypM05JmlSvtqRbeq6jqA94oHbxAr2vYsJ8vDA==}
+ engines: {node: '>=16.0.0'}
+
+ resolution: {integrity: sha512-GTt8rSKje5FilG+wEdfCkOcLL7LWqpMlr2c3LRuKt/YXxcJ52aGSbGBAdI4L3aaqfrBt6y711El53ItyH1NWzg==}
+ engines: {node: '>=16.0.0'}
+
+ resolution: {integrity: sha512-4+Z+0yiYyEtUVCScyfHCxOYP06L5Ne+JiHhY2IjR2KWMIWhJOYZKLSGZaP5HkZ8+bY0cxfzwDE5uOmzFXyIwxw==}
+
+ resolution: {integrity: sha512-g9ljZiwki/LfxmQADO3dEY1CbpmXT5Hm2fJ+QaGKwSXUylMybePR7/67YW7jOrrvjEgL1Fmz5kzyAjWVWLlucg==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==}
+
+ resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==}
+ engines: {node: '>=14.17'}
+ hasBin: true
+
+ resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==}
+
+ resolution: {integrity: sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==}
+ hasBin: true
+ peerDependencies:
+ browserslist: '>= 4.21.0'
+
+ resolution: {integrity: sha512-cXEIW6cfr15lFv563k4GuVuW/fiwjknytD37jIOLSdSWuOI6WnO/oKwmP2FQTU2l01LP8/M5TSAJpzUaGe3uWg==}
+
+ resolution: {integrity: sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==}
+ engines: {node: ^18.0.0 || >=20.0.0}
+ hasBin: true
+ peerDependencies:
+ '@types/node': ^18.0.0 || >=20.0.0
+ less: '*'
+ lightningcss: ^1.21.0
+ sass: '*'
+ sass-embedded: '*'
+ stylus: '*'
+ sugarss: '*'
+ terser: ^5.4.0
+ peerDependenciesMeta:
+ '@types/node':
+ optional: true
+ less:
+ optional: true
+ lightningcss:
+ optional: true
+ sass:
+ optional: true
+ sass-embedded:
+ optional: true
+ stylus:
+ optional: true
+ sugarss:
+ optional: true
+ terser:
+ optional: true
+
+ resolution: {integrity: sha512-/BpdSx+yCQGnCvecbyXdxHDkuk55/G3xwnC0GqY4gmQ3j+A+g8kzzgB4Nk/SINjqn6+waqw3EgbVF2QKExkRxQ==}
+
+ resolution: {integrity: sha512-nMZBOwuzabUO0nLgIcc6rycZEebF6eeUfaiQx9+WSk8e29IbLvPU9feI6tqW4kTo3hvoYAJkMh8n8D0fuISphg==}
+ engines: {node: '>=12'}
+ hasBin: true
+ peerDependencies:
+ '@vue/composition-api': ^1.0.0-rc.1
+ vue: ^3.0.0-0 || ^2.6.0
+ peerDependenciesMeta:
+ '@vue/composition-api':
+ optional: true
+
+ resolution: {integrity: sha512-0jQ9Em3ymWngyiIkj0+c/k7WgaPO+TNzjKSNq9BvBQaKJECqn9cd9fL4tkDhB5G1QBskGl9YxxbDAhgbFtpe2g==}
+ engines: {node: '>= 16'}
+ deprecated: v9 and v10 no longer supported. please migrate to v11. about maintenance status, see https://vue-i18n.intlify.dev/guide/maintenance.html
+ peerDependencies:
+ vue: ^3.0.0
+
+ resolution: {integrity: sha512-Hz9q5sa33Yhduglwz6g9skT8OBPii+4bFn88w6J+J4MfEo4KRRpmiNG/hHHkdbRFlLBOqxN8y8gf2Fb0MTUgVg==}
+ peerDependencies:
+ vue: ^3.5.0
+
+ resolution: {integrity: sha512-P7OP77b2h/Pmk+lZdJ0YWs+5tJ6J2+uOQPo7tlBnY44QqQSPYvS0qVT4wqDJgwrZaLe47etJLLQRFia71GYITw==}
+ hasBin: true
+ peerDependencies:
+ typescript: '>=5.0.0'
+
+ resolution: {integrity: sha512-SJ/NTccVyAoNUJmkM9KUqPcYlY+u8OVL1X5EW9RIs3ch5H2uERxyyIUI4MRxVCSOiEcupX9xNGde1tL9ZKpimA==}
+ peerDependencies:
+ typescript: '*'
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+
+snapshots:
+
+ '@alloc/[email protected]': {}
+
+ '@babel/[email protected]': {}
+
+ '@babel/[email protected]': {}
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/types': 7.28.6
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/helper-string-parser': 7.27.1
+ '@babel/helper-validator-identifier': 7.28.5
+
+ '@bufbuild/[email protected]': {}
+
+ '@ctrl/[email protected]': {}
+
+ dependencies:
+ vue: 3.5.26([email protected])
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@ffmpeg/[email protected]':
+ dependencies:
+ '@ffmpeg/types': 0.12.4
+
+ '@ffmpeg/[email protected]': {}
+
+ '@ffmpeg/[email protected]': {}
+
+ '@floating-ui/[email protected]':
+ dependencies:
+ '@floating-ui/utils': 0.2.10
+
+ '@floating-ui/[email protected]':
+ dependencies:
+ '@floating-ui/core': 1.7.3
+ '@floating-ui/utils': 0.2.10
+
+ '@floating-ui/[email protected]': {}
+
+ '@intlify/[email protected]':
+ dependencies:
+ '@intlify/message-compiler': 9.14.5
+ '@intlify/shared': 9.14.5
+
+ '@intlify/[email protected]':
+ dependencies:
+ '@intlify/shared': 9.14.5
+ source-map-js: 1.2.1
+
+ '@intlify/[email protected]': {}
+
+ '@jridgewell/[email protected]':
+ dependencies:
+ '@jridgewell/sourcemap-codec': 1.5.5
+ '@jridgewell/trace-mapping': 0.3.31
+
+ '@jridgewell/[email protected]':
+ dependencies:
+ '@jridgewell/gen-mapping': 0.3.13
+ '@jridgewell/trace-mapping': 0.3.31
+
+ '@jridgewell/[email protected]': {}
+
+ '@jridgewell/[email protected]': {}
+
+ '@jridgewell/[email protected]':
+ dependencies:
+ '@jridgewell/resolve-uri': 3.1.2
+ '@jridgewell/sourcemap-codec': 1.5.5
+
+ '@parcel/[email protected]':
+ optional: true
+
+ '@parcel/[email protected]':
+ optional: true
+
+ '@parcel/[email protected]':
+ optional: true
+
+ '@parcel/[email protected]':
+ optional: true
+
+ '@parcel/[email protected]':
+ optional: true
+
+ '@parcel/[email protected]':
+ optional: true
+
+ '@parcel/[email protected]':
+ optional: true
+
+ '@parcel/[email protected]':
+ optional: true
+
+ '@parcel/[email protected]':
+ optional: true
+
+ '@parcel/[email protected]':
+ optional: true
+
+ '@parcel/[email protected]':
+ optional: true
+
+ '@parcel/[email protected]':
+ optional: true
+
+ '@parcel/[email protected]':
+ optional: true
+
+ '@parcel/[email protected]':
+ dependencies:
+ detect-libc: 2.1.2
+ is-glob: 4.0.3
+ node-addon-api: 7.1.1
+ picomatch: 4.0.3
+ optionalDependencies:
+ '@parcel/watcher-android-arm64': 2.5.4
+ '@parcel/watcher-darwin-arm64': 2.5.4
+ '@parcel/watcher-darwin-x64': 2.5.4
+ '@parcel/watcher-freebsd-x64': 2.5.4
+ '@parcel/watcher-linux-arm-glibc': 2.5.4
+ '@parcel/watcher-linux-arm-musl': 2.5.4
+ '@parcel/watcher-linux-arm64-glibc': 2.5.4
+ '@parcel/watcher-linux-arm64-musl': 2.5.4
+ '@parcel/watcher-linux-x64-glibc': 2.5.4
+ '@parcel/watcher-linux-x64-musl': 2.5.4
+ '@parcel/watcher-win32-arm64': 2.5.4
+ '@parcel/watcher-win32-ia32': 2.5.4
+ '@parcel/watcher-win32-x64': 2.5.4
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@rollup/[email protected]':
+ optional: true
+
+ '@sxzz/[email protected]': {}
+
+ '@tailwindcss/[email protected]':
+ dependencies:
+ '@jridgewell/remapping': 2.3.5
+ enhanced-resolve: 5.18.4
+ jiti: 2.6.1
+ lightningcss: 1.30.2
+ magic-string: 0.30.21
+ source-map-js: 1.2.1
+ tailwindcss: 4.1.18
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optionalDependencies:
+ '@tailwindcss/oxide-android-arm64': 4.1.18
+ '@tailwindcss/oxide-darwin-arm64': 4.1.18
+ '@tailwindcss/oxide-darwin-x64': 4.1.18
+ '@tailwindcss/oxide-freebsd-x64': 4.1.18
+ '@tailwindcss/oxide-linux-arm-gnueabihf': 4.1.18
+ '@tailwindcss/oxide-linux-arm64-gnu': 4.1.18
+ '@tailwindcss/oxide-linux-arm64-musl': 4.1.18
+ '@tailwindcss/oxide-linux-x64-gnu': 4.1.18
+ '@tailwindcss/oxide-linux-x64-musl': 4.1.18
+ '@tailwindcss/oxide-wasm32-wasi': 4.1.18
+ '@tailwindcss/oxide-win32-arm64-msvc': 4.1.18
+ '@tailwindcss/oxide-win32-x64-msvc': 4.1.18
+
+ '@tailwindcss/[email protected]':
+ dependencies:
+ '@alloc/quick-lru': 5.2.0
+ '@tailwindcss/node': 4.1.18
+ '@tailwindcss/oxide': 4.1.18
+ postcss: 8.5.6
+ tailwindcss: 4.1.18
+
+ '@types/[email protected]': {}
+
+ '@types/[email protected]':
+ dependencies:
+ '@types/lodash': 4.17.23
+
+ '@types/[email protected]': {}
+
+ '@types/[email protected]':
+ dependencies:
+ undici-types: 6.21.0
+
+ '@types/[email protected]': {}
+
+ dependencies:
+ vue: 3.5.26([email protected])
+
+ '@volar/[email protected]':
+ dependencies:
+ '@volar/source-map': 2.4.15
+
+ '@volar/[email protected]': {}
+
+ '@volar/[email protected]':
+ dependencies:
+ '@volar/language-core': 2.4.15
+ path-browserify: 1.0.1
+ vscode-uri: 3.1.0
+
+ dependencies:
+ '@babel/parser': 7.28.6
+ '@vue/shared': 3.5.26
+ entities: 7.0.0
+ estree-walker: 2.0.2
+ source-map-js: 1.2.1
+
+ dependencies:
+ '@vue/compiler-core': 3.5.26
+ '@vue/shared': 3.5.26
+
+ dependencies:
+ '@babel/parser': 7.28.6
+ '@vue/compiler-core': 3.5.26
+ '@vue/compiler-dom': 3.5.26
+ '@vue/compiler-ssr': 3.5.26
+ '@vue/shared': 3.5.26
+ estree-walker: 2.0.2
+ magic-string: 0.30.21
+ postcss: 8.5.6
+ source-map-js: 1.2.1
+
+ dependencies:
+ '@vue/compiler-dom': 3.5.26
+ '@vue/shared': 3.5.26
+
+ dependencies:
+ de-indent: 1.0.2
+ he: 1.2.0
+
+ '@vue/[email protected]': {}
+
+ dependencies:
+ '@volar/language-core': 2.4.15
+ '@vue/compiler-dom': 3.5.26
+ '@vue/compiler-vue2': 2.7.16
+ '@vue/shared': 3.5.26
+ alien-signals: 1.0.13
+ minimatch: 9.0.5
+ muggle-string: 0.4.1
+ path-browserify: 1.0.1
+ optionalDependencies:
+ typescript: 5.9.3
+
+ dependencies:
+ '@vue/shared': 3.5.26
+
+ dependencies:
+ '@vue/reactivity': 3.5.26
+ '@vue/shared': 3.5.26
+
+ dependencies:
+ '@vue/reactivity': 3.5.26
+ '@vue/runtime-core': 3.5.26
+ '@vue/shared': 3.5.26
+ csstype: 3.2.3
+
+ dependencies:
+ '@vue/compiler-ssr': 3.5.26
+ '@vue/shared': 3.5.26
+ vue: 3.5.26([email protected])
+
+ '@vue/[email protected]': {}
+
+ '@vue/[email protected]': {}
+
+ dependencies:
+ '@types/web-bluetooth': 0.0.20
+ '@vueuse/metadata': 10.11.1
+ '@vueuse/shared': 10.11.1([email protected]([email protected]))
+ transitivePeerDependencies:
+ - '@vue/composition-api'
+ - vue
+
+ '@vueuse/[email protected]': {}
+
+ dependencies:
+ transitivePeerDependencies:
+ - '@vue/composition-api'
+ - vue
+
+
+
+
+ dependencies:
+ browserslist: 4.28.1
+ caniuse-lite: 1.0.30001764
+ fraction.js: 5.3.4
+ picocolors: 1.1.1
+ postcss: 8.5.6
+ postcss-value-parser: 4.2.0
+
+ dependencies:
+ follow-redirects: 1.15.11
+ form-data: 4.0.5
+ proxy-from-env: 1.1.0
+ transitivePeerDependencies:
+ - debug
+
+
+
+ dependencies:
+ balanced-match: 1.0.2
+
+ dependencies:
+ baseline-browser-mapping: 2.9.14
+ caniuse-lite: 1.0.30001764
+ electron-to-chromium: 1.5.267
+ node-releases: 2.0.27
+ update-browserslist-db: 1.2.3([email protected])
+
+
+ dependencies:
+ es-errors: 1.3.0
+ function-bind: 1.1.2
+
+
+ dependencies:
+ readdirp: 4.1.2
+ optional: true
+
+
+ dependencies:
+ delayed-stream: 1.0.0
+
+
+
+
+
+
+ dependencies:
+ call-bind-apply-helpers: 1.0.2
+ es-errors: 1.3.0
+ gopd: 1.2.0
+
+
+ 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'
+
+ dependencies:
+ graceful-fs: 4.2.11
+ tapable: 2.3.0
+
+
+
+
+ dependencies:
+ es-errors: 1.3.0
+
+ dependencies:
+ es-errors: 1.3.0
+ get-intrinsic: 1.3.0
+ has-tostringtag: 1.0.2
+ hasown: 2.0.2
+
+ optionalDependencies:
+ '@esbuild/aix-ppc64': 0.21.5
+ '@esbuild/android-arm': 0.21.5
+ '@esbuild/android-arm64': 0.21.5
+ '@esbuild/android-x64': 0.21.5
+ '@esbuild/darwin-arm64': 0.21.5
+ '@esbuild/darwin-x64': 0.21.5
+ '@esbuild/freebsd-arm64': 0.21.5
+ '@esbuild/freebsd-x64': 0.21.5
+ '@esbuild/linux-arm': 0.21.5
+ '@esbuild/linux-arm64': 0.21.5
+ '@esbuild/linux-ia32': 0.21.5
+ '@esbuild/linux-loong64': 0.21.5
+ '@esbuild/linux-mips64el': 0.21.5
+ '@esbuild/linux-ppc64': 0.21.5
+ '@esbuild/linux-riscv64': 0.21.5
+ '@esbuild/linux-s390x': 0.21.5
+ '@esbuild/linux-x64': 0.21.5
+ '@esbuild/netbsd-x64': 0.21.5
+ '@esbuild/openbsd-x64': 0.21.5
+ '@esbuild/sunos-x64': 0.21.5
+ '@esbuild/win32-arm64': 0.21.5
+ '@esbuild/win32-ia32': 0.21.5
+ '@esbuild/win32-x64': 0.21.5
+
+
+
+
+ dependencies:
+ asynckit: 0.4.0
+ combined-stream: 1.0.8
+ es-set-tostringtag: 2.1.0
+ hasown: 2.0.2
+ mime-types: 2.1.35
+
+
+ optional: true
+
+
+ dependencies:
+ call-bind-apply-helpers: 1.0.2
+ es-define-property: 1.0.1
+ es-errors: 1.3.0
+ es-object-atoms: 1.1.1
+ function-bind: 1.1.2
+ get-proto: 1.0.1
+ gopd: 1.2.0
+ has-symbols: 1.1.0
+ hasown: 2.0.2
+ math-intrinsics: 1.1.0
+
+ dependencies:
+ dunder-proto: 1.0.1
+ es-object-atoms: 1.1.1
+
+
+
+
+
+ dependencies:
+ has-symbols: 1.1.0
+
+ dependencies:
+ function-bind: 1.1.2
+
+
+
+ optional: true
+
+ dependencies:
+ is-extglob: 2.1.1
+ optional: true
+
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ dependencies:
+ detect-libc: 2.1.2
+ optionalDependencies:
+ lightningcss-android-arm64: 1.30.2
+ lightningcss-darwin-arm64: 1.30.2
+ lightningcss-darwin-x64: 1.30.2
+ lightningcss-freebsd-x64: 1.30.2
+ lightningcss-linux-arm-gnueabihf: 1.30.2
+ lightningcss-linux-arm64-gnu: 1.30.2
+ lightningcss-linux-arm64-musl: 1.30.2
+ lightningcss-linux-x64-gnu: 1.30.2
+ lightningcss-linux-x64-musl: 1.30.2
+ lightningcss-win32-arm64-msvc: 1.30.2
+ lightningcss-win32-x64-msvc: 1.30.2
+
+
+ dependencies:
+ '@types/lodash-es': 4.17.12
+ lodash: 4.17.21
+ lodash-es: 4.17.22
+
+
+ dependencies:
+ '@jridgewell/sourcemap-codec': 1.5.5
+
+
+
+
+ dependencies:
+ mime-db: 1.52.0
+
+ dependencies:
+ brace-expansion: 2.0.2
+
+
+
+ optional: true
+
+
+
+
+
+ optional: true
+
+ dependencies:
+ '@vue/devtools-api': 6.6.4
+ vue: 3.5.26([email protected])
+ optionalDependencies:
+ typescript: 5.9.3
+ transitivePeerDependencies:
+ - '@vue/composition-api'
+
+
+ dependencies:
+ nanoid: 3.3.11
+ picocolors: 1.1.1
+ source-map-js: 1.2.1
+
+
+ optional: true
+
+ dependencies:
+ '@types/estree': 1.0.8
+ optionalDependencies:
+ '@rollup/rollup-android-arm-eabi': 4.55.1
+ '@rollup/rollup-android-arm64': 4.55.1
+ '@rollup/rollup-darwin-arm64': 4.55.1
+ '@rollup/rollup-darwin-x64': 4.55.1
+ '@rollup/rollup-freebsd-arm64': 4.55.1
+ '@rollup/rollup-freebsd-x64': 4.55.1
+ '@rollup/rollup-linux-arm-gnueabihf': 4.55.1
+ '@rollup/rollup-linux-arm-musleabihf': 4.55.1
+ '@rollup/rollup-linux-arm64-gnu': 4.55.1
+ '@rollup/rollup-linux-arm64-musl': 4.55.1
+ '@rollup/rollup-linux-loong64-gnu': 4.55.1
+ '@rollup/rollup-linux-loong64-musl': 4.55.1
+ '@rollup/rollup-linux-ppc64-gnu': 4.55.1
+ '@rollup/rollup-linux-ppc64-musl': 4.55.1
+ '@rollup/rollup-linux-riscv64-gnu': 4.55.1
+ '@rollup/rollup-linux-riscv64-musl': 4.55.1
+ '@rollup/rollup-linux-s390x-gnu': 4.55.1
+ '@rollup/rollup-linux-x64-gnu': 4.55.1
+ '@rollup/rollup-linux-x64-musl': 4.55.1
+ '@rollup/rollup-openbsd-x64': 4.55.1
+ '@rollup/rollup-openharmony-arm64': 4.55.1
+ '@rollup/rollup-win32-arm64-msvc': 4.55.1
+ '@rollup/rollup-win32-ia32-msvc': 4.55.1
+ '@rollup/rollup-win32-x64-gnu': 4.55.1
+ '@rollup/rollup-win32-x64-msvc': 4.55.1
+ fsevents: 2.3.3
+
+ dependencies:
+ tslib: 2.8.1
+
+ dependencies:
+ sass: 1.97.2
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ dependencies:
+ sass: 1.97.2
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ dependencies:
+ '@bufbuild/protobuf': 2.10.2
+ buffer-builder: 0.2.0
+ colorjs.io: 0.5.2
+ immutable: 5.1.4
+ rxjs: 7.8.2
+ supports-color: 8.1.1
+ sync-child-process: 1.0.2
+ varint: 6.0.0
+ optionalDependencies:
+ sass-embedded-all-unknown: 1.97.2
+ sass-embedded-android-arm: 1.97.2
+ sass-embedded-android-arm64: 1.97.2
+ sass-embedded-android-riscv64: 1.97.2
+ sass-embedded-android-x64: 1.97.2
+ sass-embedded-darwin-arm64: 1.97.2
+ sass-embedded-darwin-x64: 1.97.2
+ sass-embedded-linux-arm: 1.97.2
+ sass-embedded-linux-arm64: 1.97.2
+ sass-embedded-linux-musl-arm: 1.97.2
+ sass-embedded-linux-musl-arm64: 1.97.2
+ sass-embedded-linux-musl-riscv64: 1.97.2
+ sass-embedded-linux-musl-x64: 1.97.2
+ sass-embedded-linux-riscv64: 1.97.2
+ sass-embedded-linux-x64: 1.97.2
+ sass-embedded-unknown-all: 1.97.2
+ sass-embedded-win32-arm64: 1.97.2
+ sass-embedded-win32-x64: 1.97.2
+
+ dependencies:
+ chokidar: 4.0.3
+ immutable: 5.1.4
+ source-map-js: 1.2.1
+ optionalDependencies:
+ '@parcel/watcher': 2.5.4
+ optional: true
+
+
+ dependencies:
+ has-flag: 4.0.0
+
+ dependencies:
+ sync-message-port: 1.1.3
+
+
+
+
+
+
+
+ dependencies:
+ browserslist: 4.28.1
+ escalade: 3.2.0
+ picocolors: 1.1.1
+
+
+ dependencies:
+ esbuild: 0.21.5
+ postcss: 8.5.6
+ rollup: 4.55.1
+ optionalDependencies:
+ '@types/node': 20.19.28
+ fsevents: 2.3.3
+ lightningcss: 1.30.2
+ sass: 1.97.2
+ sass-embedded: 1.97.2
+
+
+ dependencies:
+ vue: 3.5.26([email protected])
+
+ dependencies:
+ '@intlify/core-base': 9.14.5
+ '@intlify/shared': 9.14.5
+ '@vue/devtools-api': 6.6.4
+ vue: 3.5.26([email protected])
+
+ dependencies:
+ '@vue/devtools-api': 6.6.4
+ vue: 3.5.26([email protected])
+
+ dependencies:
+ '@volar/typescript': 2.4.15
+ '@vue/language-core': 2.2.12([email protected])
+ typescript: 5.9.3
+
+ dependencies:
+ '@vue/compiler-dom': 3.5.26
+ '@vue/compiler-sfc': 3.5.26
+ '@vue/runtime-dom': 3.5.26
+ '@vue/server-renderer': 3.5.26([email protected]([email protected]))
+ '@vue/shared': 3.5.26
+ optionalDependencies:
+ typescript: 5.9.3
diff --git a/web/src/App.vue b/web/src/App.vue
index c78b194..8bf1cfd 100644
--- a/web/src/App.vue
+++ b/web/src/App.vue
@@ -1,14 +1,17 @@
<template>
<router-view />
+ <!-- <AppLayout>
+ <router-view />
+ </AppLayout> -->
</template>
<script setup lang="ts">
-// 开源版本 - 无需用户认证
+import AppLayout from '@/components/common/AppLayout.vue'
</script>
<style>
#app {
width: 100%;
- height: 100vh;
+ min-height: 100vh;
}
</style>
diff --git a/web/src/assets/styles/element/index.scss b/web/src/assets/styles/element/index.scss
new file mode 100644
index 0000000..2cc8af0
--- /dev/null
+++ b/web/src/assets/styles/element/index.scss
@@ -0,0 +1,17 @@
+/*just override what you need*/
+@forward 'element-plus/theme-chalk/src/dark/var.scss' with (
+ $bg-color: (
+ 'page': #0a0a0a,
+ '': #141414,
+ 'overlay': #1d1e1f,
+ ),
+ $fill-color: (
+ '': #262727,
+ 'light': #1d1e1f,
+ 'lighter': #141414,
+ 'extra-light': #191919,
+ 'dark': #3a3a3a,
+ 'darker': #4a4a4a,
+ 'blank': #1a1a1a,
+ )
+);
\ No newline at end of file
diff --git a/web/src/assets/styles/main.css b/web/src/assets/styles/main.css
index 8a011d1..58c3cfa 100644
--- a/web/src/assets/styles/main.css
+++ b/web/src/assets/styles/main.css
@@ -2,6 +2,145 @@
@tailwind components;
@tailwind utilities;
+/* ========================================
+ CSS Variables for Theme / 主题 CSS 变量
+ Modern minimalist design system
+ ======================================== */
+:root {
+ /* Background colors / 背景色 */
+ --bg-primary: #f8fafc;
+ --bg-secondary: #ffffff;
+ --bg-card: #ffffff;
+ --bg-card-hover: #f1f5f9;
+ --bg-elevated: #ffffff;
+ --bg-overlay: rgba(15, 23, 42, 0.5);
+
+ /* Text colors / 文字色 */
+ --text-primary: #0f172a;
+ --text-secondary: #475569;
+ --text-muted: #94a3b8;
+ --text-inverse: #ffffff;
+
+ /* Border colors / 边框色 */
+ --border-primary: #e2e8f0;
+ --border-secondary: #cbd5e1;
+ --border-focus: #0ea5e9;
+
+ /* Primary accent / 主强调色 */
+ --accent: #0ea5e9;
+ --accent-hover: #0284c7;
+ --accent-light: #e0f2fe;
+ --accent-dark: #0369a1;
+
+ /* Status colors / 状态色 */
+ --success: #10b981;
+ --success-light: #d1fae5;
+ --warning: #f59e0b;
+ --warning-light: #fef3c7;
+ --error: #ef4444;
+ --error-light: #fee2e2;
+ --info: #3b82f6;
+ --info-light: #dbeafe;
+
+ /* Shadows / 阴影 - refined for depth */
+ --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.03);
+ --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.05), 0 1px 2px -1px rgb(0 0 0 / 0.05);
+ --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
+ --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
+ --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);
+ --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.15);
+ --shadow-card: 0 1px 3px 0 rgb(0 0 0 / 0.04), 0 1px 2px -1px rgb(0 0 0 / 0.04);
+ --shadow-card-hover: 0 8px 16px -4px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05);
+
+ /* Transition / 过渡 */
+ --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
+ --transition-normal: 200ms cubic-bezier(0.4, 0, 0.2, 1);
+ --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
+ --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
+
+ /* Border radius / 圆角 */
+ --radius-xs: 0.25rem;
+ --radius-sm: 0.375rem;
+ --radius-md: 0.5rem;
+ --radius-lg: 0.75rem;
+ --radius-xl: 1rem;
+ --radius-2xl: 1.25rem;
+ --radius-full: 9999px;
+
+ /* Spacing scale / 间距比例 */
+ --space-1: 0.25rem;
+ --space-2: 0.5rem;
+ --space-3: 0.75rem;
+ --space-4: 1rem;
+ --space-5: 1.25rem;
+ --space-6: 1.5rem;
+ --space-8: 2rem;
+ --space-10: 2.5rem;
+ --space-12: 3rem;
+}
+
+/* Dark mode theme / 深色模式主题 - 参考深色UI设计 */
+.dark {
+ /* Background - 深邃的蓝黑色调 */
+ --bg-primary: #0c1015;
+ --bg-secondary: #12181f;
+ --bg-card: #181f28;
+ --bg-card-hover: #1e2730;
+ --bg-elevated: #1a2129;
+ --bg-overlay: rgba(0, 0, 0, 0.8);
+
+ /* Text - 清晰的层次对比 */
+ --text-primary: #e8edf3;
+ --text-secondary: #8b9bb0;
+ --text-muted: #5a6a7e;
+ --text-inverse: #0c1015;
+
+ /* Border - 微妙的边框 */
+ --border-primary: #252d38;
+ --border-secondary: #323d4d;
+ --border-focus: #22d3ee;
+
+ /* Accent - 青色强调色 */
+ --accent: #22d3ee;
+ --accent-hover: #06b6d4;
+ --accent-light: rgba(34, 211, 238, 0.12);
+ --accent-dark: #67e8f9;
+
+ /* Status colors / 状态色 */
+ --success: #34d399;
+ --success-light: rgba(52, 211, 153, 0.12);
+ --warning: #fbbf24;
+ --warning-light: rgba(251, 191, 36, 0.12);
+ --error: #f87171;
+ --error-light: rgba(248, 113, 113, 0.12);
+ --info: #60a5fa;
+ --info-light: rgba(96, 165, 250, 0.12);
+
+ /* Shadows - 更深的阴影 */
+ --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.4);
+ --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.5), 0 1px 2px -1px rgb(0 0 0 / 0.5);
+ --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.6), 0 2px 4px -2px rgb(0 0 0 / 0.5);
+ --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.7), 0 4px 6px -4px rgb(0 0 0 / 0.6);
+ --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.8), 0 8px 10px -6px rgb(0 0 0 / 0.7);
+ --shadow-glow: 0 0 20px rgba(34, 211, 238, 0.25);
+ --shadow-card: 0 2px 4px 0 rgb(0 0 0 / 0.3);
+ --shadow-card-hover: 0 8px 20px -4px rgb(0 0 0 / 0.5), 0 0 0 1px rgba(34, 211, 238, 0.15);
+
+ --el-fill-color-blank: #181F28;
+ --el-border-color: #4d4d4d;
+ --el-border-color-light: #2a333d;
+ --el-fill-color-light: #2a333d;
+ --el-bg-color-overlay: #181F28;
+ --el-text-color-regular: #e8edf3;
+ --el-descriptions-table-border: #4d4d4d;
+ --el-border-color-lighter: #4d4d4d;
+ --el-text-color-primary: #e8edf3;
+
+}
+
+/* ========================================
+ Base Styles / 基础样式
+ ======================================== */
* {
margin: 0;
padding: 0;
@@ -12,10 +151,986 @@ html,
body {
width: 100%;
height: 100%;
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
+ font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
+ background-color: var(--bg-primary);
+ color: var(--text-primary);
+ transition: background-color var(--transition-normal), color var(--transition-normal);
}
#app {
width: 100%;
height: 100%;
}
+
+/* ========================================
+ Element Plus Overrides / Element Plus 样式覆盖
+ Modern minimalist design overrides
+ ======================================== */
+/* 单行打点 */
+.overflow-tooltip {
+ display: inline-block;
+ width: 100%;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ vertical-align: middle;
+ cursor: pointer;
+}
+
+.el-select-dropdown__item {
+ line-height: unset;
+}
+/* Button overrides / 按钮样式覆盖 */
+
+.el-button {
+ --el-button-border-radius: var(--radius-lg);
+ font-weight: 500;
+ transition: all var(--transition-fast);
+ border: none;
+ letter-spacing: -0.01em;
+}
+
+.el-button--default {
+ background: var(--bg-card);
+ border: 1px solid var(--border-primary);
+ color: var(--text-primary);
+}
+
+.el-button--default:hover {
+ background: var(--bg-card-hover);
+ border-color: var(--border-secondary);
+ color: var(--text-primary);
+}
+
+.el-button--primary {
+ --el-button-bg-color: var(--accent);
+ --el-button-border-color: var(--accent);
+ --el-button-hover-bg-color: var(--accent-hover);
+ --el-button-hover-border-color: var(--accent-hover);
+ background: linear-gradient(135deg, var(--accent) 0%, #0284c7 100%);
+ box-shadow: 0 2px 8px rgba(14, 165, 233, 0.25);
+}
+
+.el-button--primary:hover {
+ transform: translateY(-1px);
+ box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
+}
+
+.el-button--primary:active {
+ transform: translateY(0);
+}
+
+.el-button--danger {
+ background: linear-gradient(135deg, var(--error) 0%, #dc2626 100%);
+ box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
+}
+
+.el-button--danger:hover {
+ transform: translateY(-1px);
+ box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
+}
+
+.el-button--success {
+ background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
+ box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
+}
+
+.el-button.is-text {
+ color: var(--text-secondary);
+}
+
+.el-button.is-text:hover {
+ color: var(--accent);
+ background: var(--accent-light);
+}
+
+.el-button.is-circle {
+ background: var(--bg-card);
+ border: 1px solid var(--border-primary);
+ color: var(--text-secondary);
+}
+
+.el-button.is-circle:hover {
+ background: var(--bg-card-hover);
+ border-color: var(--border-secondary);
+ color: var(--text-primary);
+}
+
+/* Back button / 返回按钮 */
+.back-btn {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.375rem;
+ padding: 0.5rem 0.875rem;
+ background: var(--bg-card);
+ border: 1px solid var(--border-primary);
+ border-radius: var(--radius-lg);
+ color: var(--text-secondary);
+ font-size: 0.875rem;
+ font-weight: 500;
+ cursor: pointer;
+ transition: all var(--transition-fast);
+ white-space: nowrap;
+}
+
+.back-btn:hover {
+ background: var(--bg-card-hover);
+ color: var(--text-primary);
+ border-color: var(--border-secondary);
+}
+
+.back-btn:focus-visible {
+ outline: 2px solid var(--accent);
+ outline-offset: 2px;
+}
+
+/* Card overrides / 卡片样式覆盖 */
+.el-card {
+ --el-card-bg-color: var(--bg-card);
+ --el-card-border-color: var(--border-primary);
+ --el-card-border-radius: var(--radius-xl);
+ border: 1px solid var(--border-primary);
+ box-shadow: var(--shadow-card);
+ transition: all var(--transition-normal);
+}
+
+.el-card:hover {
+ box-shadow: var(--shadow-card-hover);
+}
+
+.el-card__header {
+ border-bottom: 1px solid var(--border-primary);
+ padding: var(--space-4) var(--space-5);
+}
+
+.el-card__body {
+ padding: var(--space-5);
+}
+
+.dark .el-card {
+ --el-card-bg-color: var(--bg-card);
+ --el-card-border-color: var(--border-primary);
+}
+
+/* Dialog overrides / 对话框样式覆盖 */
+.el-dialog {
+ --el-dialog-bg-color: var(--bg-card);
+ --el-dialog-border-radius: var(--radius-2xl);
+ box-shadow: var(--shadow-xl);
+ border: 1px solid var(--border-primary);
+}
+
+.el-dialog__header {
+ padding: var(--space-5) var(--space-6);
+ border-bottom: 1px solid var(--border-primary);
+ margin-right: 0;
+}
+
+.el-dialog__title {
+ font-size: 1.125rem;
+ font-weight: 600;
+ color: var(--text-primary);
+ letter-spacing: -0.02em;
+}
+
+.el-dialog__body {
+ padding: var(--space-6);
+}
+
+.el-dialog__footer {
+ padding: var(--space-4) var(--space-6);
+ border-top: 1px solid var(--border-primary);
+}
+
+.dark .el-dialog {
+ --el-dialog-bg-color: var(--bg-card);
+}
+
+.dark .el-dialog__title {
+ color: var(--text-primary);
+}
+
+/* Input overrides / 输入框样式覆盖 */
+.el-input__wrapper {
+ --el-input-bg-color: var(--bg-secondary);
+ --el-input-border-color: var(--border-primary);
+ border-radius: var(--radius-lg) !important;
+ box-shadow: 0 0 0 1px var(--border-primary) inset !important;
+ transition: all var(--transition-fast);
+ padding: 0 var(--space-3);
+}
+
+.el-input__wrapper:hover {
+ box-shadow: 0 0 0 1px var(--border-secondary) inset !important;
+}
+
+.el-input__wrapper.is-focus {
+ box-shadow: 0 0 0 2px var(--accent) inset !important;
+}
+
+.el-input__inner {
+ color: var(--text-primary);
+ font-size: 0.875rem;
+}
+
+.el-input__inner::placeholder {
+ color: var(--text-muted);
+}
+
+.el-textarea__inner {
+ --el-input-bg-color: var(--bg-secondary);
+ border-radius: var(--radius-lg) !important;
+ box-shadow: 0 0 0 1px var(--border-primary) inset;
+ transition: all var(--transition-fast);
+ padding: var(--space-3);
+ color: var(--text-primary);
+ font-size: 0.875rem;
+}
+
+.el-textarea__inner:hover {
+ box-shadow: 0 0 0 1px var(--border-secondary) inset;
+}
+
+.el-textarea__inner:focus {
+ box-shadow: 0 0 0 2px var(--accent) inset;
+}
+
+.el-textarea__inner::placeholder {
+ color: var(--text-muted);
+}
+
+.dark .el-input__wrapper {
+ background-color: var(--bg-secondary);
+}
+
+.dark .el-input__inner {
+ color: var(--text-primary);
+}
+
+.dark .el-textarea__inner {
+ background-color: var(--bg-secondary);
+ color: var(--text-primary);
+}
+
+/* Select overrides / 选择器样式覆盖 */
+.el-select .el-input__wrapper {
+ background: var(--bg-secondary);
+}
+
+.el-select-dropdown {
+ border-radius: var(--radius-lg);
+ border: 1px solid var(--border-primary);
+ box-shadow: var(--shadow-lg);
+}
+
+.el-select-dropdown__item {
+ font-size: 0.875rem;
+ padding: var(--space-2) var(--space-3);
+ border-radius: var(--radius-sm);
+ margin: 2px var(--space-1);
+}
+
+.el-select-dropdown__item.is-selected {
+ background: var(--accent-light);
+ color: var(--accent);
+ font-weight: 500;
+}
+
+.el-select-dropdown__item:hover {
+ background: var(--bg-card-hover);
+}
+
+.dark .el-select-dropdown {
+ background: var(--bg-elevated);
+ border-color: var(--border-primary);
+}
+
+.dark .el-select-dropdown__item:hover {
+ background: var(--bg-card-hover);
+}
+
+/* Tag overrides / 标签样式覆盖 */
+.el-tag {
+ --el-tag-border-radius: var(--radius-md);
+ font-weight: 500;
+ font-size: 0.75rem;
+ padding: 0 var(--space-2);
+ height: 1.5rem;
+ line-height: 1.5rem;
+ border: none;
+}
+
+.el-tag--info {
+ background: var(--bg-card-hover);
+ color: var(--text-secondary);
+}
+
+.el-tag--primary {
+ background: var(--accent-light);
+ color: var(--accent);
+}
+
+.el-tag--success {
+ background: var(--success-light);
+ color: var(--success);
+}
+
+.el-tag--warning {
+ background: var(--warning-light);
+ color: var(--warning);
+}
+
+.el-tag--danger {
+ background: var(--error-light);
+ color: var(--error);
+}
+
+/* Tabs overrides / 标签页样式覆盖 */
+.el-tabs__header {
+ margin-bottom: var(--space-6);
+}
+
+.el-tabs__nav-wrap::after {
+ display: none;
+}
+
+.el-tabs__item {
+ font-weight: 500;
+ font-size: 0.875rem;
+ color: var(--text-secondary);
+ padding: 0 var(--space-5);
+ height: 2.5rem;
+ line-height: 2.5rem;
+ transition: color var(--transition-fast);
+}
+
+.el-tabs__item:hover {
+ color: var(--text-primary);
+}
+
+.el-tabs__item.is-active {
+ color: var(--accent);
+ font-weight: 600;
+}
+
+.el-tabs__active-bar {
+ background: var(--accent);
+ height: 2px;
+ border-radius: var(--radius-full);
+}
+
+.dark .el-tabs__item {
+ color: var(--text-secondary);
+}
+
+.dark .el-tabs__item.is-active {
+ color: var(--accent);
+}
+
+/* Table overrides / 表格样式覆盖 */
+.el-table {
+ --el-table-bg-color: var(--bg-card);
+ --el-table-header-bg-color: var(--bg-secondary);
+ --el-table-tr-bg-color: var(--bg-card);
+ --el-table-row-hover-bg-color: var(--bg-card-hover);
+ --el-table-border-color: var(--border-primary);
+ border-radius: var(--radius-lg);
+ overflow: hidden;
+}
+
+.el-table th.el-table__cell {
+ font-weight: 600;
+ font-size: 0.75rem;
+ text-transform: uppercase;
+ letter-spacing: 0.05em;
+ color: var(--text-muted);
+}
+
+.el-table td.el-table__cell {
+ font-size: 0.875rem;
+ color: var(--text-primary);
+}
+
+.dark .el-table {
+ --el-table-bg-color: var(--bg-card);
+ --el-table-header-bg-color: var(--bg-secondary);
+ --el-table-tr-bg-color: var(--bg-card);
+ --el-table-row-hover-bg-color: var(--bg-card-hover);
+}
+
+.dark .el-table th.el-table__cell,
+.dark .el-table td.el-table__cell {
+ border-color: var(--border-primary);
+}
+
+/* Pagination overrides / 分页样式覆盖 */
+.el-pagination {
+ --el-pagination-bg-color: transparent;
+ --el-pagination-button-bg-color: var(--bg-card);
+ gap: var(--space-1);
+}
+
+.el-pager li {
+ min-width: 2rem;
+ height: 2rem;
+ line-height: 2rem;
+ font-weight: 500;
+ font-size: 0.8125rem;
+ border-radius: var(--radius-md);
+ background: transparent;
+ color: var(--text-secondary);
+ transition: all var(--transition-fast);
+}
+
+.el-pager li:hover {
+ color: var(--accent);
+ background: var(--accent-light);
+}
+
+.el-pager li.is-active {
+ background: var(--accent);
+ color: white;
+ font-weight: 600;
+}
+
+.el-pagination button {
+ min-width: 2rem;
+ height: 2rem;
+ border-radius: var(--radius-md);
+ background: transparent;
+ color: var(--text-secondary);
+ transition: all var(--transition-fast);
+}
+
+.el-pagination button:hover:not(:disabled) {
+ color: var(--accent);
+ background: var(--accent-light);
+}
+
+.el-pagination button:disabled {
+ opacity: 0.4;
+}
+
+.dark .el-pagination {
+ --el-pagination-text-color: var(--text-secondary);
+ --el-pagination-button-color: var(--text-primary);
+}
+
+.dark .el-pagination button,
+.dark .el-pager li {
+ background-color: transparent;
+ color: var(--text-secondary);
+}
+
+.dark .el-pager li:hover {
+ background: var(--accent-light);
+}
+
+.dark .el-pager li.is-active {
+ background: var(--accent);
+ color: var(--text-inverse);
+}
+
+/* Empty state overrides / 空状态样式覆盖 */
+.el-empty {
+ padding: var(--space-12) var(--space-6);
+}
+
+.el-empty__description p {
+ color: var(--text-muted);
+ font-size: 0.875rem;
+}
+
+.dark .el-empty__description p {
+ color: var(--text-muted);
+}
+
+/* Alert overrides / 提示框样式覆盖 */
+.el-alert {
+ border-radius: var(--radius-lg);
+ border: none;
+ padding: var(--space-4);
+}
+
+.el-alert--info {
+ background: var(--info-light);
+}
+
+.el-alert--success {
+ background: var(--success-light);
+}
+
+.el-alert--warning {
+ background: var(--warning-light);
+}
+
+.el-alert--error {
+ background: var(--error-light);
+}
+
+.dark .el-alert--info {
+ --el-alert-bg-color: var(--info-light);
+}
+
+/* Form overrides / 表单样式覆盖 */
+.el-form-item__label {
+ font-weight: 500;
+ font-size: 0.875rem;
+ color: var(--text-primary);
+ margin-bottom: var(--space-2);
+}
+
+.dark .el-form-item__label {
+ color: var(--text-primary);
+}
+
+/* Descriptions overrides / 描述列表样式覆盖 */
+.el-descriptions {
+ --el-descriptions-item-bordered-label-background: var(--bg-secondary);
+}
+
+.el-descriptions__label {
+ font-weight: 500;
+ color: var(--text-secondary);
+}
+
+.el-descriptions__content {
+ color: var(--text-primary);
+}
+
+.dark .el-descriptions__label,
+.dark .el-descriptions__content {
+ background: var(--bg-secondary);
+}
+
+/* Message Box overrides / 消息框样式覆盖 */
+.el-message-box {
+ border-radius: var(--radius-xl);
+ border: 1px solid var(--border-primary);
+ box-shadow: var(--shadow-xl);
+}
+
+.dark .el-message-box {
+ background: var(--bg-card);
+}
+
+/* Popconfirm overrides / 确认弹窗样式覆盖 */
+.el-popconfirm {
+ border-radius: var(--radius-lg);
+}
+
+.dark .el-popconfirm {
+ --el-popconfirm-bg-color: var(--bg-card);
+}
+
+/* Loading overrides / 加载样式覆盖 */
+.el-loading-mask {
+ background: var(--bg-overlay);
+ backdrop-filter: blur(4px);
+}
+
+.el-loading-spinner .circular {
+ width: 32px;
+ height: 32px;
+}
+
+.el-loading-spinner .path {
+ stroke: var(--accent);
+}
+
+/* Switch overrides / 开关样式覆盖 */
+.el-switch {
+ --el-switch-on-color: var(--accent);
+}
+
+.dark .el-switch__core {
+ background: var(--bg-secondary);
+ border-color: var(--border-primary);
+}
+
+/* Tooltip overrides / 提示框样式覆盖 */
+.el-tooltip__trigger {
+ outline: none;
+}
+
+/* Avatar overrides / 头像样式覆盖 */
+.el-avatar {
+ --el-avatar-bg-color: var(--accent);
+}
+
+/* Scrollbar overrides / 滚动条样式覆盖 */
+.el-scrollbar__thumb {
+ background: var(--border-secondary);
+ border-radius: var(--radius-full);
+}
+
+.el-scrollbar__thumb:hover {
+ background: var(--text-muted);
+}
+
+/* ========================================
+ Utility Classes / 工具类
+ ======================================== */
+.page-container {
+ min-height: 100vh;
+ background-color: var(--bg-primary);
+ padding: var(--space-2) var(--space-3);
+ transition: background-color var(--transition-normal);
+}
+
+@media (min-width: 768px) {
+ .page-container {
+ padding: var(--space-3) var(--space-4);
+ }
+}
+
+@media (min-width: 1024px) {
+ .page-container {
+ padding: var(--space-4) var(--space-5);
+ }
+}
+
+.content-wrapper {
+ margin: 0 auto;
+ width: 100%;
+}
+
+/* ========================================
+ Layout Components / 布局组件
+ ======================================== */
+
+/* Glass morphism card / 玻璃态卡片 */
+.glass-card {
+ background: rgba(255, 255, 255, 0.8);
+ backdrop-filter: blur(12px);
+ border: 1px solid var(--border-primary);
+ border-radius: var(--radius-xl);
+ box-shadow: var(--shadow-card);
+ transition: all var(--transition-normal);
+}
+
+.dark .glass-card {
+ background: rgba(26, 35, 50, 0.8);
+}
+
+.glass-card:hover {
+ box-shadow: var(--shadow-card-hover);
+}
+
+/* Gradient backgrounds / 渐变背景 */
+.gradient-primary {
+ background: linear-gradient(135deg, var(--accent) 0%, #0284c7 100%);
+}
+
+.gradient-success {
+ background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
+}
+
+.gradient-warning {
+ background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
+}
+
+.gradient-error {
+ background: linear-gradient(135deg, var(--error) 0%, #dc2626 100%);
+}
+
+/* Animated gradient / 动画渐变 */
+.gradient-animated {
+ background: linear-gradient(-45deg, #0ea5e9, #06b6d4, #8b5cf6, #ec4899);
+ background-size: 400% 400%;
+ animation: gradient-shift 15s ease infinite;
+}
+
+@keyframes gradient-shift {
+ 0% {
+ background-position: 0% 50%;
+ }
+
+ 50% {
+ background-position: 100% 50%;
+ }
+
+ 100% {
+ background-position: 0% 50%;
+ }
+}
+
+/* Glow effect / 发光效果 */
+.glow-primary {
+ box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
+}
+
+.glow-success {
+ box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
+}
+
+/* Skeleton loading / 骨架屏加载 */
+.skeleton {
+ background: linear-gradient(90deg, var(--bg-card-hover) 25%, var(--bg-secondary) 50%, var(--bg-card-hover) 75%);
+ background-size: 200% 100%;
+ animation: skeleton-loading 1.5s infinite;
+ border-radius: var(--radius-md);
+}
+
+@keyframes skeleton-loading {
+ 0% {
+ background-position: 200% 0;
+ }
+
+ 100% {
+ background-position: -200% 0;
+ }
+}
+
+/* Hover lift effect / 悬停提升效果 */
+.hover-lift {
+ transition: transform var(--transition-normal), box-shadow var(--transition-normal);
+}
+
+.hover-lift:hover {
+ transform: translateY(-2px);
+ box-shadow: var(--shadow-lg);
+}
+
+/* Interactive scale / 交互缩放 */
+.interactive-scale {
+ transition: transform var(--transition-fast);
+}
+
+.interactive-scale:hover {
+ transform: scale(1.02);
+}
+
+.interactive-scale:active {
+ transform: scale(0.98);
+}
+
+/* Focus ring / 焦点环 */
+.focus-ring:focus-visible {
+ outline: 2px solid var(--accent);
+ outline-offset: 2px;
+}
+
+/* Text truncation / 文本截断 */
+.truncate-1 {
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+.truncate-2 {
+ display: -webkit-box;
+ -webkit-line-clamp: 2;
+ line-clamp: 2;
+ -webkit-box-orient: vertical;
+ overflow: hidden;
+}
+
+.truncate-3 {
+ display: -webkit-box;
+ -webkit-line-clamp: 3;
+ line-clamp: 3;
+ -webkit-box-orient: vertical;
+ overflow: hidden;
+}
+
+/* Scrollbar styling / 滚动条样式 */
+.custom-scrollbar::-webkit-scrollbar {
+ width: 6px;
+ height: 6px;
+}
+
+.custom-scrollbar::-webkit-scrollbar-track {
+ background: transparent;
+}
+
+.custom-scrollbar::-webkit-scrollbar-thumb {
+ background: var(--border-secondary);
+ border-radius: var(--radius-full);
+}
+
+.custom-scrollbar::-webkit-scrollbar-thumb:hover {
+ background: var(--text-muted);
+}
+
+/* Hide scrollbar / 隐藏滚动条 */
+.hide-scrollbar {
+ -ms-overflow-style: none;
+ scrollbar-width: none;
+}
+
+.hide-scrollbar::-webkit-scrollbar {
+ display: none;
+}
+
+/* ========================================
+ Animation Utilities / 动画工具
+ ======================================== */
+
+/* Fade in / 淡入 */
+.animate-fade-in {
+ animation: fade-in 0.3s ease-out;
+}
+
+@keyframes fade-in {
+ from {
+ opacity: 0;
+ }
+
+ to {
+ opacity: 1;
+ }
+}
+
+/* Slide up / 向上滑入 */
+.animate-slide-up {
+ animation: slide-up 0.3s ease-out;
+}
+
+@keyframes slide-up {
+ from {
+ opacity: 0;
+ transform: translateY(10px);
+ }
+
+ to {
+ opacity: 1;
+ transform: translateY(0);
+ }
+}
+
+/* Scale in / 缩放进入 */
+.animate-scale-in {
+ animation: scale-in 0.2s ease-out;
+}
+
+@keyframes scale-in {
+ from {
+ opacity: 0;
+ transform: scale(0.95);
+ }
+
+ to {
+ opacity: 1;
+ transform: scale(1);
+ }
+}
+
+/* Pulse / 脉冲 */
+.animate-pulse {
+ animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
+}
+
+@keyframes pulse {
+
+ 0%,
+ 100% {
+ opacity: 1;
+ }
+
+ 50% {
+ opacity: 0.5;
+ }
+}
+
+/* Spin / 旋转 */
+.animate-spin {
+ animation: spin 1s linear infinite;
+}
+
+@keyframes spin {
+ from {
+ transform: rotate(0deg);
+ }
+
+ to {
+ transform: rotate(360deg);
+ }
+}
+
+/* Bounce / 弹跳 */
+.animate-bounce {
+ animation: bounce 1s infinite;
+}
+
+@keyframes bounce {
+
+ 0%,
+ 100% {
+ transform: translateY(-5%);
+ animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
+ }
+
+ 50% {
+ transform: translateY(0);
+ animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
+ }
+}
+
+/* ========================================
+ Status Indicators / 状态指示器
+ ======================================== */
+.status-dot {
+ width: 8px;
+ height: 8px;
+ border-radius: var(--radius-full);
+ flex-shrink: 0;
+}
+
+.status-dot.success {
+ background: var(--success);
+}
+
+.status-dot.warning {
+ background: var(--warning);
+}
+
+.status-dot.error {
+ background: var(--error);
+}
+
+.status-dot.info {
+ background: var(--info);
+}
+
+.status-dot.muted {
+ background: var(--text-muted);
+}
+
+.status-dot.pulse {
+ animation: status-pulse 2s infinite;
+}
+
+@keyframes status-pulse {
+
+ 0%,
+ 100% {
+ box-shadow: 0 0 0 0 currentColor;
+ opacity: 1;
+ }
+
+ 50% {
+ box-shadow: 0 0 0 4px currentColor;
+ opacity: 0.5;
+ }
+}
+
+/* ========================================
+ Typography Utilities / 排版工具
+ ======================================== */
+.text-gradient {
+ background: linear-gradient(135deg, var(--accent) 0%, #06b6d4 100%);
+ -webkit-background-clip: text;
+ -webkit-text-fill-color: transparent;
+ background-clip: text;
+}
+
+.font-display {
+ font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
+ font-weight: 700;
+ letter-spacing: -0.02em;
+}
+
+.font-mono {
+ font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
+}
\ No newline at end of file
diff --git a/web/src/components/common/AIConfigDialog.vue b/web/src/components/common/AIConfigDialog.vue
new file mode 100644
index 0000000..937e3db
--- /dev/null
+++ b/web/src/components/common/AIConfigDialog.vue
@@ -0,0 +1,616 @@
+<template>
+ <el-dialog
+ v-model="visible"
+ :title="$t('aiConfig.title')"
+ width="900px"
+ :close-on-click-modal="false"
+ destroy-on-close
+ class="ai-config-dialog"
+ >
+ <!-- Dialog Header Actions -->
+ <template #header>
+ <div class="dialog-header">
+ <span class="dialog-title">{{ $t('aiConfig.title') }}</span>
+ <el-button type="primary" size="small" @click="showCreateDialog">
+ <el-icon><Plus /></el-icon>
+ <span>{{ $t('aiConfig.addConfig') }}</span>
+ </el-button>
+ </div>
+ </template>
+
+ <!-- Tabs -->
+ <el-tabs v-model="activeTab" @tab-change="handleTabChange" class="config-tabs">
+ <el-tab-pane :label="$t('aiConfig.tabs.text')" name="text">
+ <ConfigList
+ :configs="configs"
+ :loading="loading"
+ :show-test-button="true"
+ @edit="handleEdit"
+ @delete="handleDelete"
+ @toggle-active="handleToggleActive"
+ @test="handleTest"
+ />
+ </el-tab-pane>
+
+ <el-tab-pane :label="$t('aiConfig.tabs.image')" name="image">
+ <ConfigList
+ :configs="configs"
+ :loading="loading"
+ :show-test-button="false"
+ @edit="handleEdit"
+ @delete="handleDelete"
+ @toggle-active="handleToggleActive"
+ />
+ </el-tab-pane>
+
+ <el-tab-pane :label="$t('aiConfig.tabs.video')" name="video">
+ <ConfigList
+ :configs="configs"
+ :loading="loading"
+ :show-test-button="false"
+ @edit="handleEdit"
+ @delete="handleDelete"
+ @toggle-active="handleToggleActive"
+ />
+ </el-tab-pane>
+ </el-tabs>
+
+ <!-- Edit/Create Sub-Dialog -->
+ <el-dialog
+ v-model="editDialogVisible"
+ :title="isEdit ? $t('aiConfig.editConfig') : $t('aiConfig.addConfig')"
+ width="600px"
+ :close-on-click-modal="false"
+ append-to-body
+ >
+ <el-form
+ ref="formRef"
+ :model="form"
+ :rules="rules"
+ label-width="100px"
+ >
+ <el-form-item :label="$t('aiConfig.form.name')" prop="name">
+ <el-input v-model="form.name" :placeholder="$t('aiConfig.form.namePlaceholder')" />
+ </el-form-item>
+
+ <el-form-item :label="$t('aiConfig.form.provider')" prop="provider">
+ <el-select
+ v-model="form.provider"
+ :placeholder="$t('aiConfig.form.providerPlaceholder')"
+ @change="handleProviderChange"
+ style="width: 100%"
+ >
+ <el-option
+ v-for="provider in availableProviders"
+ :key="provider.id"
+ :label="provider.name"
+ :value="provider.id"
+ :disabled="provider.disabled"
+ />
+ </el-select>
+ <div class="form-tip">{{ $t('aiConfig.form.providerTip') }}</div>
+ </el-form-item>
+
+ <el-form-item :label="$t('aiConfig.form.priority')" prop="priority">
+ <el-input-number
+ v-model="form.priority"
+ :min="0"
+ :max="100"
+ :step="1"
+ style="width: 100%"
+ />
+ <div class="form-tip">{{ $t('aiConfig.form.priorityTip') }}</div>
+ </el-form-item>
+
+ <el-form-item :label="$t('aiConfig.form.model')" prop="model">
+ <el-select
+ v-model="form.model"
+ :placeholder="$t('aiConfig.form.modelPlaceholder')"
+ multiple
+ filterable
+ allow-create
+ default-first-option
+ collapse-tags
+ collapse-tags-tooltip
+ style="width: 100%"
+ >
+ <el-option
+ v-for="model in availableModels"
+ :key="model"
+ :label="model"
+ :value="model"
+ />
+ </el-select>
+ <div class="form-tip">{{ $t('aiConfig.form.modelTip') }}</div>
+ </el-form-item>
+
+ <el-form-item :label="$t('aiConfig.form.baseUrl')" prop="base_url">
+ <el-input v-model="form.base_url" :placeholder="$t('aiConfig.form.baseUrlPlaceholder')" />
+ <div class="form-tip">
+ {{ $t('aiConfig.form.baseUrlTip') }}
+ <br>
+ {{ $t('aiConfig.form.fullEndpoint') }}: {{ fullEndpointExample }}
+ </div>
+ </el-form-item>
+
+ <el-form-item :label="$t('aiConfig.form.apiKey')" prop="api_key">
+ <el-input
+ v-model="form.api_key"
+ type="password"
+ show-password
+ :placeholder="$t('aiConfig.form.apiKeyPlaceholder')"
+ />
+ <div class="form-tip">{{ $t('aiConfig.form.apiKeyTip') }}</div>
+ </el-form-item>
+
+ <el-form-item v-if="isEdit" :label="$t('aiConfig.form.isActive')">
+ <el-switch v-model="form.is_active" />
+ </el-form-item>
+ </el-form>
+
+ <template #footer>
+ <el-button @click="editDialogVisible = false">{{ $t('common.cancel') }}</el-button>
+ <el-button v-if="form.service_type === 'text'" @click="testConnection" :loading="testing">{{ $t('aiConfig.actions.test') }}</el-button>
+ <el-button type="primary" @click="handleSubmit" :loading="submitting">
+ {{ isEdit ? $t('common.save') : $t('common.create') }}
+ </el-button>
+ </template>
+ </el-dialog>
+ </el-dialog>
+</template>
+
+<script setup lang="ts">
+import { ref, reactive, computed, watch } from 'vue'
+import { ElMessage, ElMessageBox, type FormInstance, type FormRules } from 'element-plus'
+import { Plus } from '@element-plus/icons-vue'
+import { aiAPI } from '@/api/ai'
+import type { AIServiceConfig, AIServiceType, CreateAIConfigRequest, UpdateAIConfigRequest } from '@/types/ai'
+import ConfigList from '@/views/settings/components/ConfigList.vue'
+
+const props = defineProps<{
+ modelValue: boolean
+}>()
+
+const emit = defineEmits<{
+ 'update:modelValue': [value: boolean]
+}>()
+
+const visible = computed({
+ get: () => props.modelValue,
+ set: (val) => emit('update:modelValue', val)
+})
+
+const activeTab = ref<AIServiceType>('text')
+const loading = ref(false)
+const configs = ref<AIServiceConfig[]>([])
+const editDialogVisible = ref(false)
+const isEdit = ref(false)
+const editingId = ref<number>()
+const formRef = ref<FormInstance>()
+const submitting = ref(false)
+const testing = ref(false)
+
+const form = reactive<CreateAIConfigRequest & { is_active?: boolean, provider?: string }>({
+ service_type: 'text',
+ provider: '',
+ name: '',
+ base_url: '',
+ api_key: '',
+ model: [],
+ priority: 0,
+ is_active: true
+})
+
+// Provider configs
+interface ProviderConfig {
+ id: string
+ name: string
+ models: string[]
+ disabled?: boolean
+}
+
+const providerConfigs: Record<AIServiceType, ProviderConfig[]> = {
+ text: [
+ { id: 'openai', name: 'OpenAI', models: ['gpt-5.2', 'gemini-3-pro-preview'] },
+ {
+ id: 'chatfire',
+ name: 'Chatfire',
+ models: [
+ 'gpt-4o',
+ 'claude-sonnet-4-5-20250929',
+ 'doubao-seed-1-8-251228',
+ 'kimi-k2-thinking',
+ 'gemini-3-pro',
+ 'gemini-2.5-pro',
+ 'gemini-3-pro-preview'
+ ]
+ },
+ {
+ id: 'gemini',
+ name: 'Google Gemini',
+ models: ['gemini-2.5-pro', 'gemini-3-pro-preview']
+ }
+ ],
+ image: [
+ {
+ id: 'volcengine',
+ name: '火山引擎',
+ models: ['doubao-seedream-4-5-251128', 'doubao-seedream-4-0-250828']
+ },
+ {
+ id: 'chatfire',
+ name: 'Chatfire',
+ models: ['doubao-seedream-4-5-251128', 'nano-banana-pro']
+ },
+ {
+ id: 'gemini',
+ name: 'Google Gemini',
+ models: ['gemini-3-pro-image-preview']
+ },
+ { id: 'openai', name: 'OpenAI', models: ['dall-e-3', 'dall-e-2'] }
+ ],
+ video: [
+ {
+ id: 'volces',
+ name: '火山引擎',
+ models: [
+ 'doubao-seedance-1-5-pro-251215',
+ 'doubao-seedance-1-0-lite-i2v-250428',
+ 'doubao-seedance-1-0-lite-t2v-250428',
+ 'doubao-seedance-1-0-pro-250528',
+ 'doubao-seedance-1-0-pro-fast-251015'
+ ]
+ },
+ {
+ id: 'chatfire',
+ name: 'Chatfire',
+ models: [
+ 'doubao-seedance-1-5-pro-251215',
+ 'doubao-seedance-1-0-lite-i2v-250428',
+ 'doubao-seedance-1-0-lite-t2v-250428',
+ 'doubao-seedance-1-0-pro-250528',
+ 'doubao-seedance-1-0-pro-fast-251015',
+ 'sora',
+ 'sora-pro'
+ ]
+ },
+ { id: 'openai', name: 'OpenAI', models: ['sora-2', 'sora-2-pro'] }
+ ]
+}
+
+const availableProviders = computed(() => {
+ return providerConfigs[form.service_type] || []
+})
+
+const availableModels = computed(() => {
+ if (!form.provider) return []
+ const provider = availableProviders.value.find(p => p.id === form.provider)
+ return provider?.models || []
+})
+
+const fullEndpointExample = computed(() => {
+ const baseUrl = form.base_url || 'https://api.example.com'
+ const provider = form.provider
+ const serviceType = form.service_type
+
+ let endpoint = ''
+
+ if (serviceType === 'text') {
+ if (provider === 'gemini' || provider === 'google') {
+ endpoint = '/v1beta/models/{model}:generateContent'
+ } else {
+ endpoint = '/chat/completions'
+ }
+ } else if (serviceType === 'image') {
+ if (provider === 'gemini' || provider === 'google') {
+ endpoint = '/v1beta/models/{model}:generateContent'
+ } else {
+ endpoint = '/images/generations'
+ }
+ } else if (serviceType === 'video') {
+ if (provider === 'chatfire') {
+ endpoint = '/video/generations'
+ } else if (provider === 'doubao' || provider === 'volcengine' || provider === 'volces') {
+ endpoint = '/contents/generations/tasks'
+ } else if (provider === 'openai') {
+ endpoint = '/videos'
+ } else {
+ endpoint = '/video/generations'
+ }
+ }
+
+ return baseUrl + endpoint
+})
+
+const rules: FormRules = {
+ name: [{ required: true, message: '请输入配置名称', trigger: 'blur' }],
+ provider: [{ required: true, message: '请选择厂商', trigger: 'change' }],
+ base_url: [
+ { required: true, message: '请输入 Base URL', trigger: 'blur' },
+ { type: 'url', message: '请输入正确的 URL 格式', trigger: 'blur' }
+ ],
+ api_key: [{ required: true, message: '请输入 API Key', trigger: 'blur' }],
+ model: [{
+ required: true,
+ message: '请至少选择一个模型',
+ trigger: 'change',
+ validator: (rule: any, value: any, callback: any) => {
+ if (Array.isArray(value) && value.length > 0) {
+ callback()
+ } else if (typeof value === 'string' && value.length > 0) {
+ callback()
+ } else {
+ callback(new Error('请至少选择一个模型'))
+ }
+ }
+ }]
+}
+
+const loadConfigs = async () => {
+ loading.value = true
+ try {
+ configs.value = await aiAPI.list(activeTab.value)
+ } catch (error: any) {
+ ElMessage.error(error.message || '加载失败')
+ } finally {
+ loading.value = false
+ }
+}
+
+const generateConfigName = (provider: string, serviceType: AIServiceType): string => {
+ const providerNames: Record<string, string> = {
+ 'chatfire': 'ChatFire',
+ 'openai': 'OpenAI',
+ 'gemini': 'Gemini',
+ 'google': 'Google'
+ }
+
+ const serviceNames: Record<AIServiceType, string> = {
+ 'text': '文本',
+ 'image': '图片',
+ 'video': '视频'
+ }
+
+ const randomNum = Math.floor(Math.random() * 10000).toString().padStart(4, '0')
+ const providerName = providerNames[provider] || provider
+ const serviceName = serviceNames[serviceType] || serviceType
+
+ return `${providerName}-${serviceName}-${randomNum}`
+}
+
+const showCreateDialog = () => {
+ isEdit.value = false
+ editingId.value = undefined
+ resetForm()
+ form.service_type = activeTab.value
+ form.provider = 'chatfire'
+ form.base_url = 'https://api.chatfire.site/v1'
+ form.name = generateConfigName('chatfire', activeTab.value)
+ editDialogVisible.value = true
+}
+
+const handleEdit = (config: AIServiceConfig) => {
+ isEdit.value = true
+ editingId.value = config.id
+
+ Object.assign(form, {
+ service_type: config.service_type,
+ provider: config.provider || 'chatfire',
+ name: config.name,
+ base_url: config.base_url,
+ api_key: config.api_key,
+ model: Array.isArray(config.model) ? config.model : [config.model],
+ priority: config.priority || 0,
+ is_active: config.is_active
+ })
+ editDialogVisible.value = true
+}
+
+const handleDelete = async (config: AIServiceConfig) => {
+ try {
+ await ElMessageBox.confirm('确定要删除该配置吗?', '警告', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ })
+
+ await aiAPI.delete(config.id)
+ ElMessage.success('删除成功')
+ loadConfigs()
+ } catch (error: any) {
+ if (error !== 'cancel') {
+ ElMessage.error(error.message || '删除失败')
+ }
+ }
+}
+
+const handleToggleActive = async (config: AIServiceConfig) => {
+ try {
+ const newActiveState = !config.is_active
+ await aiAPI.update(config.id, { is_active: newActiveState })
+ ElMessage.success(newActiveState ? '已启用配置' : '已禁用配置')
+ await loadConfigs()
+ } catch (error: any) {
+ ElMessage.error(error.message || '操作失败')
+ }
+}
+
+const testConnection = async () => {
+ if (!formRef.value) return
+
+ const valid = await formRef.value.validate().catch(() => false)
+ if (!valid) return
+
+ testing.value = true
+ try {
+ await aiAPI.testConnection({
+ base_url: form.base_url,
+ api_key: form.api_key,
+ model: form.model,
+ provider: form.provider
+ })
+ ElMessage.success('连接测试成功!')
+ } catch (error: any) {
+ ElMessage.error(error.message || '连接测试失败')
+ } finally {
+ testing.value = false
+ }
+}
+
+const handleTest = async (config: AIServiceConfig) => {
+ testing.value = true
+ try {
+ await aiAPI.testConnection({
+ base_url: config.base_url,
+ api_key: config.api_key,
+ model: config.model,
+ provider: config.provider
+ })
+ ElMessage.success('连接测试成功!')
+ } catch (error: any) {
+ ElMessage.error(error.message || '连接测试失败')
+ } finally {
+ testing.value = false
+ }
+}
+
+const handleSubmit = async () => {
+ if (!formRef.value) return
+
+ await formRef.value.validate(async (valid) => {
+ if (!valid) return
+
+ submitting.value = true
+ try {
+ if (isEdit.value && editingId.value) {
+ const updateData: UpdateAIConfigRequest = {
+ name: form.name,
+ provider: form.provider,
+ base_url: form.base_url,
+ api_key: form.api_key,
+ model: form.model,
+ priority: form.priority,
+ is_active: form.is_active
+ }
+ await aiAPI.update(editingId.value, updateData)
+ ElMessage.success('更新成功')
+ } else {
+ await aiAPI.create(form)
+ ElMessage.success('创建成功')
+ }
+
+ editDialogVisible.value = false
+ loadConfigs()
+ } catch (error: any) {
+ ElMessage.error(error.message || '操作失败')
+ } finally {
+ submitting.value = false
+ }
+ })
+}
+
+const handleTabChange = (tabName: string | number) => {
+ activeTab.value = tabName as AIServiceType
+ loadConfigs()
+}
+
+const handleProviderChange = () => {
+ form.model = []
+
+ if (form.provider === 'gemini' || form.provider === 'google') {
+ form.base_url = 'https://api.chatfire.site'
+ } else {
+ form.base_url = 'https://api.chatfire.site/v1'
+ }
+
+ if (!isEdit.value) {
+ form.name = generateConfigName(form.provider, form.service_type)
+ }
+}
+
+const resetForm = () => {
+ const serviceType = form.service_type || 'text'
+ Object.assign(form, {
+ service_type: serviceType,
+ provider: '',
+ name: '',
+ base_url: '',
+ api_key: '',
+ model: [],
+ priority: 0,
+ is_active: true
+ })
+ formRef.value?.resetFields()
+}
+
+// Load configs when dialog opens
+watch(visible, (val) => {
+ if (val) {
+ loadConfigs()
+ }
+})
+</script>
+
+<style scoped>
+.ai-config-dialog :deep(.el-dialog__header) {
+ padding: 16px 20px;
+ border-bottom: 1px solid var(--border-primary);
+ margin-right: 0;
+}
+
+.dialog-header {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ width: 100%;
+ padding-right: 32px;
+}
+
+.dialog-title {
+ font-size: 1.125rem;
+ font-weight: 600;
+ color: var(--text-primary);
+}
+
+.ai-config-dialog :deep(.el-dialog__body) {
+ padding: 20px;
+ max-height: 60vh;
+ overflow-y: auto;
+}
+
+.config-tabs {
+ margin: 0;
+}
+
+.form-tip {
+ font-size: 0.75rem;
+ color: var(--text-muted);
+ margin-top: 0.25rem;
+}
+
+/* Dark mode */
+.dark .ai-config-dialog :deep(.el-dialog) {
+ background: var(--bg-card);
+}
+
+.dark .ai-config-dialog :deep(.el-dialog__header) {
+ background: var(--bg-card);
+}
+
+.dark :deep(.el-form-item__label) {
+ color: var(--text-primary);
+}
+
+.dark :deep(.el-input__wrapper) {
+ background: var(--bg-secondary);
+ box-shadow: 0 0 0 1px var(--border-primary) inset;
+}
+
+.dark :deep(.el-input__inner) {
+ color: var(--text-primary);
+}
+
+.dark :deep(.el-select .el-input__wrapper) {
+ background: var(--bg-secondary);
+}
+</style>
diff --git a/web/src/components/common/ActionButton.vue b/web/src/components/common/ActionButton.vue
new file mode 100644
index 0000000..c406e18
--- /dev/null
+++ b/web/src/components/common/ActionButton.vue
@@ -0,0 +1,103 @@
+<template>
+ <!-- Minimalist action button with icon and optional tooltip -->
+ <!-- 简约操作按钮,带图标和可选提示 -->
+ <el-tooltip
+ v-if="tooltip"
+ :content="tooltip"
+ placement="top"
+ :show-after="500"
+ >
+ <button
+ :class="['action-button', variant, { disabled }]"
+ :disabled="disabled"
+ @click="$emit('click')"
+ >
+ <el-icon :size="size">
+ <component :is="icon" />
+ </el-icon>
+ </button>
+ </el-tooltip>
+ <button
+ v-else
+ :class="['action-button', variant, { disabled }]"
+ :disabled="disabled"
+ @click="$emit('click')"
+ >
+ <el-icon :size="size">
+ <component :is="icon" />
+ </el-icon>
+ </button>
+</template>
+
+<script setup lang="ts">
+import type { Component } from 'vue'
+
+/**
+ * ActionButton - Minimalist icon button for actions
+ * 操作按钮 - 简约图标按钮用于各种操作
+ */
+withDefaults(defineProps<{
+ icon: Component
+ tooltip?: string
+ variant?: 'default' | 'primary' | 'danger'
+ size?: number
+ disabled?: boolean
+}>(), {
+ variant: 'default',
+ size: 16,
+ disabled: false
+})
+
+defineEmits<{
+ click: []
+}>()
+</script>
+
+<style scoped>
+.action-button {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ padding: 0.5rem;
+ border: none;
+ border-radius: var(--radius-sm);
+ background: transparent;
+ color: var(--text-muted);
+ cursor: pointer;
+ transition: all var(--transition-fast);
+}
+
+.action-button:hover {
+ background: var(--bg-card-hover);
+ color: var(--text-primary);
+}
+
+.action-button:focus-visible {
+ outline: 2px solid var(--accent);
+ outline-offset: 1px;
+}
+
+.action-button.primary:hover {
+ background: var(--accent-light);
+ color: var(--accent);
+}
+
+.action-button.danger:hover {
+ background: #fef2f2;
+ color: #ef4444;
+}
+
+.dark .action-button.danger:hover {
+ background: rgba(239, 68, 68, 0.15);
+}
+
+.action-button.disabled {
+ opacity: 0.5;
+ cursor: not-allowed;
+}
+
+.action-button.disabled:hover {
+ background: transparent;
+ color: var(--text-muted);
+}
+</style>
diff --git a/web/src/components/common/AppLayout.vue b/web/src/components/common/AppLayout.vue
new file mode 100644
index 0000000..3493391
--- /dev/null
+++ b/web/src/components/common/AppLayout.vue
@@ -0,0 +1,125 @@
+<template>
+ <div class="app-layout">
+ <!-- Global Header -->
+ <header class="app-header">
+ <div class="header-content">
+ <div class="header-left">
+ <router-link to="/" class="logo">
+ <span class="logo-text">🎬 AI Drama</span>
+ </router-link>
+ </div>
+ <div class="header-right">
+ <LanguageSwitcher />
+ <ThemeToggle />
+ <el-button @click="showAIConfig = true" class="header-btn">
+ <el-icon><Setting /></el-icon>
+ <span class="btn-text">{{ $t('drama.aiConfig') }}</span>
+ </el-button>
+ <!-- <el-button :icon="Setting" circle @click="showAIConfig = true" :title="$t('aiConfig.title')" /> -->
+ </div>
+ </div>
+ </header>
+
+ <!-- Main Content -->
+ <main class="app-main">
+ <slot />
+ </main>
+
+ <!-- AI Config Dialog -->
+ <AIConfigDialog v-model="showAIConfig" />
+ </div>
+</template>
+
+<script setup lang="ts">
+import { ref } from 'vue'
+import { Setting } from '@element-plus/icons-vue'
+import ThemeToggle from './ThemeToggle.vue'
+import AIConfigDialog from './AIConfigDialog.vue'
+import LanguageSwitcher from '@/components/LanguageSwitcher.vue'
+
+const showAIConfig = ref(false)
+</script>
+
+<style scoped>
+.app-layout {
+ min-height: 100vh;
+ display: flex;
+ flex-direction: column;
+}
+
+.app-header {
+ position: sticky;
+ top: 0;
+ z-index: 100;
+ background: var(--bg-card);
+ border-bottom: 1px solid var(--border-primary);
+ backdrop-filter: blur(8px);
+}
+
+.header-content {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 0 var(--space-4);
+ height: 56px;
+ max-width: 100%;
+ margin: 0 auto;
+}
+.header-btn {
+ border-radius: var(--radius-lg);
+ font-weight: 500;
+}
+
+.header-btn.primary {
+ background: linear-gradient(135deg, var(--accent) 0%, #0284c7 100%);
+ border: none;
+ box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
+}
+
+.header-btn.primary:hover {
+ transform: translateY(-1px);
+ box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45);
+}
+.header-left {
+ display: flex;
+ align-items: center;
+ gap: var(--space-4);
+}
+
+.logo {
+ display: flex;
+ align-items: center;
+ gap: var(--space-2);
+ text-decoration: none;
+ color: var(--text-primary);
+ font-weight: 700;
+ font-size: 1.125rem;
+ transition: opacity var(--transition-fast);
+}
+
+.logo:hover {
+ opacity: 0.8;
+}
+
+.logo-text {
+ background: linear-gradient(135deg, var(--accent) 0%, #06b6d4 100%);
+ -webkit-background-clip: text;
+ -webkit-text-fill-color: transparent;
+ background-clip: text;
+}
+
+.header-right {
+ display: flex;
+ align-items: center;
+ gap: var(--space-2);
+}
+
+.app-main {
+ flex: 1;
+}
+
+/* Dark mode adjustments */
+.dark .app-header {
+ background: rgba(26, 33, 41, 0.95);
+}
+</style>
diff --git a/web/src/components/common/BaseCard.vue b/web/src/components/common/BaseCard.vue
new file mode 100644
index 0000000..47eac8c
--- /dev/null
+++ b/web/src/components/common/BaseCard.vue
@@ -0,0 +1,210 @@
+<template>
+ <!-- Base Card Component - Reusable card with modern design -->
+ <!-- 基础卡片组件 - 现代设计的可复用卡片 -->
+ <div
+ :class="[
+ 'base-card',
+ `variant-${variant}`,
+ { 'is-hoverable': hoverable, 'is-clickable': clickable }
+ ]"
+ @click="clickable ? $emit('click') : undefined"
+ :tabindex="clickable ? 0 : undefined"
+ @keydown.enter="clickable ? $emit('click') : undefined"
+ >
+ <!-- Card Header / 卡片头部 -->
+ <div v-if="$slots.header || title" class="card-header">
+ <slot name="header">
+ <div class="header-content">
+ <div v-if="icon" class="header-icon">
+ <el-icon :size="iconSize" :color="iconColor">
+ <component :is="icon" />
+ </el-icon>
+ </div>
+ <div class="header-text">
+ <h3 class="card-title">{{ title }}</h3>
+ <p v-if="subtitle" class="card-subtitle">{{ subtitle }}</p>
+ </div>
+ </div>
+ <div v-if="$slots.headerActions" class="header-actions">
+ <slot name="headerActions"></slot>
+ </div>
+ </slot>
+ </div>
+
+ <!-- Card Body / 卡片内容 -->
+ <div :class="['card-body', { 'no-padding': noPadding }]">
+ <slot></slot>
+ </div>
+
+ <!-- Card Footer / 卡片底部 -->
+ <div v-if="$slots.footer" class="card-footer">
+ <slot name="footer"></slot>
+ </div>
+ </div>
+</template>
+
+<script setup lang="ts">
+import type { Component } from 'vue'
+
+/**
+ * BaseCard - Reusable card component with modern design
+ * 基础卡片组件 - 现代设计的可复用卡片
+ */
+withDefaults(defineProps<{
+ title?: string
+ subtitle?: string
+ icon?: Component
+ iconSize?: number
+ iconColor?: string
+ variant?: 'default' | 'elevated' | 'outlined' | 'ghost'
+ hoverable?: boolean
+ clickable?: boolean
+ noPadding?: boolean
+}>(), {
+ variant: 'default',
+ iconSize: 20,
+ hoverable: false,
+ clickable: false,
+ noPadding: false
+})
+
+defineEmits<{
+ click: []
+}>()
+</script>
+
+<style scoped>
+/* Card Container / 卡片容器 */
+.base-card {
+ display: flex;
+ flex-direction: column;
+ background: var(--bg-card);
+ border-radius: var(--radius-xl);
+ transition: all var(--transition-normal);
+ overflow: hidden;
+}
+
+/* Variants / 变体样式 */
+.variant-default {
+ border: 1px solid var(--border-primary);
+ box-shadow: var(--shadow-card);
+}
+
+.variant-elevated {
+ border: none;
+ box-shadow: var(--shadow-md);
+}
+
+.variant-outlined {
+ border: 1px solid var(--border-primary);
+ box-shadow: none;
+}
+
+.variant-ghost {
+ background: transparent;
+ border: none;
+ box-shadow: none;
+}
+
+/* Hover & Clickable States / 悬停和可点击状态 */
+.is-hoverable:hover {
+ box-shadow: var(--shadow-card-hover);
+ border-color: var(--border-secondary);
+}
+
+.is-clickable {
+ cursor: pointer;
+}
+
+.is-clickable:hover {
+ border-color: var(--accent);
+ box-shadow: var(--shadow-glow);
+}
+
+.is-clickable:focus-visible {
+ outline: 2px solid var(--accent);
+ outline-offset: 2px;
+}
+
+.is-clickable:active {
+ transform: scale(0.995);
+}
+
+/* Card Header / 卡片头部 */
+.card-header {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: var(--space-4) var(--space-5);
+ border-bottom: 1px solid var(--border-primary);
+}
+
+.header-content {
+ display: flex;
+ align-items: center;
+ gap: var(--space-3);
+}
+
+.header-icon {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ width: 2.5rem;
+ height: 2.5rem;
+ background: var(--accent-light);
+ border-radius: var(--radius-lg);
+ color: var(--accent);
+}
+
+.header-text {
+ display: flex;
+ flex-direction: column;
+ gap: 0.125rem;
+}
+
+.card-title {
+ margin: 0;
+ font-size: 1rem;
+ font-weight: 600;
+ color: var(--text-primary);
+ letter-spacing: -0.01em;
+}
+
+.card-subtitle {
+ margin: 0;
+ font-size: 0.8125rem;
+ color: var(--text-muted);
+}
+
+.header-actions {
+ display: flex;
+ align-items: center;
+ gap: var(--space-2);
+}
+
+/* Card Body / 卡片内容 */
+.card-body {
+ padding: var(--space-5);
+ flex: 1;
+}
+
+.card-body.no-padding {
+ padding: 0;
+}
+
+/* Card Footer / 卡片底部 */
+.card-footer {
+ display: flex;
+ align-items: center;
+ justify-content: flex-end;
+ gap: var(--space-3);
+ padding: var(--space-4) var(--space-5);
+ border-top: 1px solid var(--border-primary);
+ background: var(--bg-secondary);
+}
+
+/* Dark mode adjustments / 深色模式调整 */
+.dark .card-footer {
+ background: var(--bg-secondary);
+}
+</style>
diff --git a/web/src/components/common/CreateDramaDialog.vue b/web/src/components/common/CreateDramaDialog.vue
new file mode 100644
index 0000000..2917a40
--- /dev/null
+++ b/web/src/components/common/CreateDramaDialog.vue
@@ -0,0 +1,235 @@
+<template>
+ <!-- Create Drama Dialog / 创建短剧弹窗 -->
+ <el-dialog
+ v-model="visible"
+ :title="$t('drama.createNew')"
+ width="520px"
+ :close-on-click-modal="false"
+ class="create-dialog"
+ @closed="handleClosed"
+ >
+ <div class="dialog-desc">{{ $t('drama.createDesc') }}</div>
+
+ <el-form
+ ref="formRef"
+ :model="form"
+ :rules="rules"
+ label-position="top"
+ class="create-form"
+ @submit.prevent="handleSubmit"
+ >
+ <el-form-item :label="$t('drama.projectName')" prop="title" required>
+ <el-input
+ v-model="form.title"
+ :placeholder="$t('drama.projectNamePlaceholder')"
+ size="large"
+ maxlength="100"
+ show-word-limit
+ />
+ </el-form-item>
+
+ <el-form-item :label="$t('drama.projectDesc')" prop="description">
+ <el-input
+ v-model="form.description"
+ type="textarea"
+ :rows="4"
+ :placeholder="$t('drama.projectDescPlaceholder')"
+ maxlength="500"
+ show-word-limit
+ resize="none"
+ />
+ </el-form-item>
+ </el-form>
+
+ <template #footer>
+ <div class="dialog-footer">
+ <el-button size="large" @click="handleClose">
+ {{ $t('common.cancel') }}
+ </el-button>
+ <el-button
+ type="primary"
+ size="large"
+ :loading="loading"
+ @click="handleSubmit"
+ >
+ <el-icon v-if="!loading"><Plus /></el-icon>
+ {{ $t('drama.createNew') }}
+ </el-button>
+ </div>
+ </template>
+ </el-dialog>
+</template>
+
+<script setup lang="ts">
+import { ref, reactive, watch } from 'vue'
+import { useRouter } from 'vue-router'
+import { ElMessage, type FormInstance, type FormRules } from 'element-plus'
+import { Plus } from '@element-plus/icons-vue'
+import { dramaAPI } from '@/api/drama'
+import type { CreateDramaRequest } from '@/types/drama'
+
+/**
+ * CreateDramaDialog - Reusable dialog for creating new drama projects
+ * 创建短剧弹窗 - 可复用的创建短剧项目弹窗
+ */
+const props = defineProps<{
+ modelValue: boolean
+}>()
+
+const emit = defineEmits<{
+ 'update:modelValue': [value: boolean]
+ 'created': [id: string]
+}>()
+
+const router = useRouter()
+const formRef = ref<FormInstance>()
+const loading = ref(false)
+
+// v-model binding / 双向绑定
+const visible = ref(props.modelValue)
+watch(() => props.modelValue, (val) => {
+ visible.value = val
+})
+watch(visible, (val) => {
+ emit('update:modelValue', val)
+})
+
+// Form data / 表单数据
+const form = reactive<CreateDramaRequest>({
+ title: '',
+ description: ''
+})
+
+// Validation rules / 验证规则
+const rules: FormRules = {
+ title: [
+ { required: true, message: '请输入项目标题', trigger: 'blur' },
+ { min: 1, max: 100, message: '标题长度在 1 到 100 个字符', trigger: 'blur' }
+ ]
+}
+
+// Reset form when dialog closes / 关闭时重置表单
+const handleClosed = () => {
+ form.title = ''
+ form.description = ''
+ formRef.value?.resetFields()
+}
+
+// Close dialog / 关闭弹窗
+const handleClose = () => {
+ visible.value = false
+}
+
+// Submit form / 提交表单
+const handleSubmit = async () => {
+ if (!formRef.value) return
+
+ await formRef.value.validate(async (valid) => {
+ if (valid) {
+ loading.value = true
+ try {
+ const drama = await dramaAPI.create(form)
+ ElMessage.success('创建成功')
+ visible.value = false
+ emit('created', drama.id)
+ // Navigate to drama detail page / 跳转到短剧详情页
+ router.push(`/dramas/${drama.id}`)
+ } catch (error: any) {
+ ElMessage.error(error.message || '创建失败')
+ } finally {
+ loading.value = false
+ }
+ }
+ })
+}
+</script>
+
+<style scoped>
+/* ========================================
+ Dialog Styles / 弹窗样式
+ ======================================== */
+.create-dialog :deep(.el-dialog) {
+ border-radius: var(--radius-xl);
+}
+
+.create-dialog :deep(.el-dialog__header) {
+ padding: 1.25rem 1.5rem;
+ border-bottom: 1px solid var(--border-primary);
+ margin-right: 0;
+}
+
+.create-dialog :deep(.el-dialog__title) {
+ font-size: 1.125rem;
+ font-weight: 600;
+ color: var(--text-primary);
+}
+
+.create-dialog :deep(.el-dialog__body) {
+ padding: 1.5rem;
+}
+
+.dialog-desc {
+ margin-bottom: 1.5rem;
+ font-size: 0.875rem;
+ color: var(--text-secondary);
+}
+
+/* ========================================
+ Form Styles / 表单样式
+ ======================================== */
+.create-form :deep(.el-form-item) {
+ margin-bottom: 1.25rem;
+}
+
+.create-form :deep(.el-form-item__label) {
+ font-weight: 500;
+ color: var(--text-primary);
+ margin-bottom: 0.5rem;
+}
+
+.create-form :deep(.el-input__wrapper),
+.create-form :deep(.el-textarea__inner) {
+ background: var(--bg-secondary);
+ border-radius: var(--radius-md);
+ box-shadow: 0 0 0 1px var(--border-primary) inset;
+ transition: all var(--transition-fast);
+}
+
+.create-form :deep(.el-input__wrapper:hover),
+.create-form :deep(.el-textarea__inner:hover) {
+ box-shadow: 0 0 0 1px var(--border-secondary) inset;
+}
+
+.create-form :deep(.el-input__wrapper.is-focus),
+.create-form :deep(.el-textarea__inner:focus) {
+ box-shadow: 0 0 0 2px var(--accent) inset;
+}
+
+.create-form :deep(.el-input__inner),
+.create-form :deep(.el-textarea__inner) {
+ color: var(--text-primary);
+}
+
+.create-form :deep(.el-input__inner::placeholder),
+.create-form :deep(.el-textarea__inner::placeholder) {
+ color: var(--text-muted);
+}
+
+.create-form :deep(.el-input__count) {
+ color: var(--text-muted);
+ background: transparent;
+}
+
+/* ========================================
+ Footer Styles / 底部样式
+ ======================================== */
+.dialog-footer {
+ display: flex;
+ justify-content: flex-end;
+ gap: 0.75rem;
+}
+
+.dialog-footer .el-button {
+ min-width: 100px;
+}
+</style>
diff --git a/web/src/components/common/EmptyState.vue b/web/src/components/common/EmptyState.vue
new file mode 100644
index 0000000..37d1e8b
--- /dev/null
+++ b/web/src/components/common/EmptyState.vue
@@ -0,0 +1,130 @@
+<template>
+ <!-- Empty State Component - Display when no data available -->
+ <!-- 空状态组件 - 无数据时的展示 -->
+ <div :class="['empty-state', `size-${size}`]">
+ <div class="empty-icon" :class="{ 'has-animation': animated }">
+ <el-icon :size="iconSize">
+ <component :is="icon" />
+ </el-icon>
+ </div>
+ <h3 class="empty-title">{{ title }}</h3>
+ <p v-if="description" class="empty-description">{{ description }}</p>
+ <div v-if="$slots.default" class="empty-actions">
+ <slot></slot>
+ </div>
+ </div>
+</template>
+
+<script setup lang="ts">
+import { computed, type Component } from 'vue'
+import { FolderOpened } from '@element-plus/icons-vue'
+
+/**
+ * EmptyState - Display when no data is available
+ * 空状态组件 - 无数据时的占位展示
+ */
+const props = withDefaults(defineProps<{
+ title: string
+ description?: string
+ icon?: Component
+ size?: 'small' | 'medium' | 'large'
+ animated?: boolean
+}>(), {
+ icon: FolderOpened,
+ size: 'medium',
+ animated: true
+})
+
+// Icon size based on component size / 根据组件尺寸设置图标大小
+const iconSize = computed(() => {
+ const sizes = {
+ small: 32,
+ medium: 48,
+ large: 64
+ }
+ return sizes[props.size]
+})
+</script>
+
+<style scoped>
+.empty-state {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ text-align: center;
+ padding: var(--space-8) var(--space-4);
+}
+
+/* Size variants / 尺寸变体 */
+.size-small {
+ padding: var(--space-6) var(--space-4);
+}
+
+.size-small .empty-title {
+ font-size: 0.9375rem;
+}
+
+.size-small .empty-description {
+ font-size: 0.8125rem;
+}
+
+.size-large {
+ padding: var(--space-12) var(--space-6);
+}
+
+.size-large .empty-title {
+ font-size: 1.25rem;
+}
+
+/* Icon / 图标 */
+.empty-icon {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ width: 5rem;
+ height: 5rem;
+ margin-bottom: var(--space-4);
+ background: linear-gradient(135deg, var(--accent) 0%, #06b6d4 100%);
+ border-radius: 50%;
+ color: white;
+}
+
+.empty-icon.has-animation {
+ animation: pulse-glow 3s ease-in-out infinite;
+}
+
+@keyframes pulse-glow {
+ 0%, 100% {
+ box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
+ }
+ 50% {
+ box-shadow: 0 0 40px rgba(14, 165, 233, 0.5);
+ }
+}
+
+/* Title / 标题 */
+.empty-title {
+ margin: 0 0 var(--space-2) 0;
+ font-size: 1.0625rem;
+ font-weight: 600;
+ color: var(--text-primary);
+ letter-spacing: -0.01em;
+}
+
+/* Description / 描述 */
+.empty-description {
+ margin: 0;
+ font-size: 0.875rem;
+ color: var(--text-muted);
+ max-width: 320px;
+ line-height: 1.5;
+}
+
+/* Actions / 操作区 */
+.empty-actions {
+ margin-top: var(--space-5);
+ display: flex;
+ gap: var(--space-3);
+}
+</style>
diff --git a/web/src/components/common/PageHeader.vue b/web/src/components/common/PageHeader.vue
new file mode 100644
index 0000000..678c734
--- /dev/null
+++ b/web/src/components/common/PageHeader.vue
@@ -0,0 +1,223 @@
+<template>
+ <!-- Page header component with title, subtitle and action buttons -->
+ <!-- 页面头部组件,包含标题、副标题和操作按钮 -->
+ <header :class="['page-header', { 'with-back': showBack, 'with-border': showBorder }]">
+ <div class="header-content">
+ <!-- Back button section / 返回按钮区域 -->
+ <div v-if="showBack" class="header-nav">
+ <button class="back-btn" @click="handleBack">
+ <el-icon><ArrowLeft /></el-icon>
+ <span>{{ backText }}</span>
+ </button>
+ <div class="nav-divider"></div>
+ </div>
+
+ <!-- Title section / 标题区域 -->
+ <div class="header-text">
+ <div class="title-row">
+ <div v-if="$slots.icon" class="title-icon">
+ <slot name="icon"></slot>
+ </div>
+ <h1 class="header-title">{{ title }}
+
+ <p v-if="subtitle" class="header-subtitle">{{ subtitle }}</p>
+ </h1>
+ <slot name="badge"></slot>
+ </div>
+ </div>
+
+ <!-- Actions section / 操作区域 -->
+ <div class="header-actions">
+ <slot name="actions"></slot>
+ </div>
+ </div>
+
+ <!-- Extra content / 额外内容 -->
+ <div v-if="$slots.extra" class="header-extra">
+ <slot name="extra"></slot>
+ </div>
+ </header>
+</template>
+
+<script setup lang="ts">
+import { useRouter } from 'vue-router'
+import { ArrowLeft } from '@element-plus/icons-vue'
+
+/**
+ * PageHeader - Reusable page header component
+ * 页面头部组件 - 可复用的页面头部
+ */
+const props = withDefaults(defineProps<{
+ title: string
+ subtitle?: string
+ showBack?: boolean
+ backText?: string
+ showBorder?: boolean
+}>(), {
+ showBack: false,
+ backText: '返回',
+ showBorder: true
+})
+
+const emit = defineEmits<{
+ back: []
+}>()
+
+const router = useRouter()
+
+// Handle back navigation / 处理返回导航
+const handleBack = () => {
+ emit('back')
+ router.back()
+}
+</script>
+
+<style scoped>
+.page-header {
+ margin-bottom: var(--space-3);
+}
+
+.page-header.with-border {
+ padding-bottom: var(--space-3);
+ border-bottom: 1px solid var(--border-primary);
+}
+
+.header-content {
+ display: flex;
+ flex-direction: column;
+ gap: var(--space-2);
+}
+
+@media (min-width: 768px) {
+ .header-content {
+ flex-direction: row;
+ align-items: center;
+ }
+
+ .page-header.with-back .header-content {
+ flex-wrap: nowrap;
+ }
+}
+
+/* Navigation / 导航 */
+.header-nav {
+ display: flex;
+ align-items: center;
+ gap: var(--space-4);
+ flex-shrink: 0;
+}
+
+.back-btn {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.375rem;
+ padding: 0.5rem 0.875rem;
+ background: var(--bg-card);
+ border: 1px solid var(--border-primary);
+ border-radius: var(--radius-lg);
+ color: var(--text-secondary);
+ font-size: 0.875rem;
+ font-weight: 500;
+ cursor: pointer;
+ transition: all var(--transition-fast);
+ white-space: nowrap;
+}
+
+.back-btn:hover {
+ background: var(--bg-card-hover);
+ color: var(--text-primary);
+ border-color: var(--border-secondary);
+}
+
+.back-btn:focus-visible {
+ outline: 2px solid var(--accent);
+ outline-offset: 2px;
+}
+
+.nav-divider {
+ width: 1px;
+ height: 2rem;
+ background: var(--border-primary);
+}
+
+/* Title / 标题 */
+.header-text {
+ display: flex;
+ flex-direction: column;
+ gap: 0.25rem;
+ flex: 1;
+ min-width: 0;
+}
+
+.title-row {
+ display: flex;
+ align-items: center;
+ gap: var(--space-3);
+}
+
+.title-icon {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ width: 2.5rem;
+ height: 2.5rem;
+ background: linear-gradient(135deg, var(--accent) 0%, #06b6d4 100%);
+ border-radius: var(--radius-lg);
+ color: white;
+ flex-shrink: 0;
+}
+
+.header-title {
+ margin: 0;
+ font-size: 1.5rem;
+ font-weight: 700;
+ color: var(--text-primary);
+ letter-spacing: -0.025em;
+ line-height: 1.2;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ display: flex;
+ align-items: baseline;
+ gap: 10px;
+}
+
+@media (min-width: 768px) {
+ .header-title {
+ font-size: 1.75rem;
+ }
+}
+
+.header-subtitle {
+ margin: 0;
+ font-size: 0.875rem;
+ color: var(--text-muted);
+ font-weight: 500;
+ max-width: 480px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+/* Actions / 操作 */
+.header-actions {
+ display: flex;
+ flex-wrap: wrap;
+ gap: var(--space-2);
+ align-items: center;
+ flex-shrink: 0;
+}
+
+@media (min-width: 768px) {
+ .header-actions {
+ margin-left: auto;
+ }
+}
+
+/* Extra / 额外内容 */
+.header-extra {
+ margin-top: var(--space-4);
+ padding-top: var(--space-4);
+ border-top: 1px solid var(--border-primary);
+}
+</style>
diff --git a/web/src/components/common/ProjectCard.vue b/web/src/components/common/ProjectCard.vue
new file mode 100644
index 0000000..44fde64
--- /dev/null
+++ b/web/src/components/common/ProjectCard.vue
@@ -0,0 +1,224 @@
+<template>
+ <!-- Project card component - Compact & refined design -->
+ <!-- 项目卡片组件 - 紧凑精致设计 -->
+ <article
+ class="project-card"
+ @click="$emit('click')"
+ tabindex="0"
+ @keydown.enter="$emit('click')"
+ >
+ <!-- Cover image section / 封面图片区域 -->
+ <div class="card-cover">
+ <img
+ v-if="coverImage"
+ :src="coverImage"
+ :alt="title"
+ class="cover-image"
+ loading="lazy"
+ />
+ <div v-else class="cover-placeholder">
+ <el-icon :size="20" class="placeholder-icon">
+ <Film />
+ </el-icon>
+ </div>
+ <!-- Floating tag / 悬浮标签 -->
+ <span v-if="tag" class="floating-tag">{{ tag }}</span>
+ </div>
+
+ <!-- Card content / 卡片内容 -->
+ <div class="card-body">
+ <div class="card-header">
+ <h3 class="card-title">{{ title }}</h3>
+ <span class="meta-time">{{ formattedDate }}</span>
+ </div>
+ <p class="card-description">{{ description || '无描述' }}</p>
+
+ <!-- Actions / 操作区 -->
+ <div class="card-actions" @click.stop>
+ <slot name="actions"></slot>
+ </div>
+ </div>
+ </article>
+</template>
+
+<script setup lang="ts">
+import { computed } from 'vue'
+import { Film } from '@element-plus/icons-vue'
+
+/**
+ * ProjectCard - Reusable project/drama card component
+ * 项目卡片组件 - 可复用的项目展示卡片
+ */
+const props = defineProps<{
+ title: string
+ description?: string
+ coverImage?: string
+ tag?: string
+ updatedAt: string
+}>()
+
+defineEmits<{
+ click: []
+}>()
+
+// Format date to relative time / 格式化日期为相对时间
+const formattedDate = computed(() => {
+ const date = new Date(props.updatedAt)
+ const now = new Date()
+ const diff = now.getTime() - date.getTime()
+ const days = Math.floor(diff / (1000 * 60 * 60 * 24))
+
+ if (days === 0) return '今天'
+ if (days === 1) return '昨天'
+ if (days < 7) return `${days}天前`
+ return date.toLocaleDateString('zh-CN')
+})
+</script>
+
+<style scoped>
+/* Card Container / 卡片容器 */
+.project-card {
+ display: flex;
+ flex-direction: column;
+ background: var(--bg-card);
+ border: 1px solid var(--border-primary);
+ border-radius: var(--radius-lg);
+ overflow: hidden;
+ cursor: pointer;
+ transition: all var(--transition-normal);
+ box-shadow: var(--shadow-card);
+}
+
+.project-card:hover {
+ border-color: var(--accent);
+ box-shadow: var(--shadow-card-hover), 0 0 0 1px var(--accent);
+ transform: translateY(-2px);
+}
+
+.project-card:focus-visible {
+ outline: 2px solid var(--accent);
+ outline-offset: 2px;
+}
+
+/* Cover Section / 封面区域 */
+.card-cover {
+ position: relative;
+ width: 100%;
+ aspect-ratio: 16 / 9;
+ overflow: hidden;
+ background: linear-gradient(135deg, var(--accent) 0%, #06b6d4 100%);
+}
+
+.cover-image {
+ width: 100%;
+ height: 100%;
+ object-fit: cover;
+ transition: transform var(--transition-slow);
+}
+
+.project-card:hover .cover-image {
+ transform: scale(1.05);
+}
+
+.cover-placeholder {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ height: 100%;
+}
+
+.placeholder-icon {
+ color: rgba(255, 255, 255, 0.7);
+}
+
+/* Floating tag / 悬浮标签 */
+.floating-tag {
+ position: absolute;
+ top: var(--space-2);
+ left: var(--space-2);
+ padding: 0.2rem 0.5rem;
+ background: rgba(0, 0, 0, 0.6);
+ color: white;
+ font-size: 0.625rem;
+ font-weight: 600;
+ border-radius: var(--radius-sm);
+ backdrop-filter: blur(8px);
+ letter-spacing: 0.02em;
+}
+
+/* Body Section / 内容区域 */
+.card-body {
+ display: flex;
+ flex-direction: column;
+ padding: var(--space-3);
+ gap: var(--space-1);
+}
+
+.card-header {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: var(--space-2);
+}
+
+.card-title {
+ margin: 0;
+ font-size: 0.8125rem;
+ font-weight: 600;
+ color: var(--text-primary);
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ flex: 1;
+ letter-spacing: -0.01em;
+}
+
+.meta-time {
+ font-size: 0.625rem;
+ color: var(--text-muted);
+ white-space: nowrap;
+ font-weight: 500;
+}
+
+.card-description {
+ margin: 0;
+ font-size: 0.6875rem;
+ color: var(--text-muted);
+ line-height: 1.4;
+ display: -webkit-box;
+ -webkit-line-clamp: 1;
+ line-clamp: 1;
+ -webkit-box-orient: vertical;
+ overflow: hidden;
+}
+
+/* Actions / 操作区 */
+.card-actions {
+ display: flex;
+ gap: var(--space-1);
+ align-items: center;
+ margin-top: var(--space-1);
+ padding-top: var(--space-2);
+ border-top: 1px solid var(--border-primary);
+}
+
+:deep(.action-button) {
+ padding: 0.25rem !important;
+ min-width: 1.5rem !important;
+ height: 1.5rem !important;
+}
+
+:deep(.action-button .el-icon) {
+ font-size: 0.75rem !important;
+}
+
+:deep(.action-button.primary:hover) {
+ color: var(--accent);
+ background: var(--accent-light);
+}
+
+:deep(.action-button.danger:hover) {
+ color: var(--error);
+ background: var(--error-light);
+}
+</style>
diff --git a/web/src/components/common/StatCard.vue b/web/src/components/common/StatCard.vue
new file mode 100644
index 0000000..e50394c
--- /dev/null
+++ b/web/src/components/common/StatCard.vue
@@ -0,0 +1,180 @@
+<template>
+ <!-- Stat Card Component - Display statistics with modern design -->
+ <!-- 统计卡片组件 - 现代设计的统计数据展示 -->
+ <div :class="['stat-card', `variant-${variant}`]">
+ <div class="stat-icon" :style="{ background: iconBg }">
+ <el-icon :size="24" :color="iconColor">
+ <component :is="icon" />
+ </el-icon>
+ </div>
+ <div class="stat-content">
+ <span class="stat-label">{{ label }}</span>
+ <div class="stat-value-row">
+ <span class="stat-value" :style="{ color: valueColor }">{{ formattedValue }}</span>
+ <span v-if="suffix" class="stat-suffix">{{ suffix }}</span>
+ </div>
+ <span v-if="description" class="stat-description">{{ description }}</span>
+ </div>
+ <div v-if="trend !== undefined" :class="['stat-trend', trendDirection]">
+ <el-icon :size="14">
+ <component :is="trendIcon" />
+ </el-icon>
+ <span>{{ Math.abs(trend) }}%</span>
+ </div>
+ </div>
+</template>
+
+<script setup lang="ts">
+import { computed, type Component } from 'vue'
+import { TrendCharts, ArrowUp, ArrowDown } from '@element-plus/icons-vue'
+
+/**
+ * StatCard - Display statistics with trend indicator
+ * 统计卡片 - 带趋势指示器的统计数据展示
+ */
+const props = withDefaults(defineProps<{
+ label: string
+ value: number | string
+ icon: Component
+ iconColor?: string
+ iconBg?: string
+ valueColor?: string
+ suffix?: string
+ description?: string
+ trend?: number
+ variant?: 'default' | 'compact'
+}>(), {
+ iconColor: 'var(--accent)',
+ iconBg: 'var(--accent-light)',
+ valueColor: 'var(--accent)',
+ variant: 'default'
+})
+
+// Format large numbers / 格式化大数字
+const formattedValue = computed(() => {
+ if (typeof props.value === 'string') return props.value
+ if (props.value >= 1000000) {
+ return (props.value / 1000000).toFixed(1) + 'M'
+ }
+ if (props.value >= 1000) {
+ return (props.value / 1000).toFixed(1) + 'K'
+ }
+ return props.value.toString()
+})
+
+// Trend direction / 趋势方向
+const trendDirection = computed(() => {
+ if (props.trend === undefined) return ''
+ return props.trend >= 0 ? 'up' : 'down'
+})
+
+// Trend icon / 趋势图标
+const trendIcon = computed(() => {
+ if (props.trend === undefined) return TrendCharts
+ return props.trend >= 0 ? ArrowUp : ArrowDown
+})
+</script>
+
+<style scoped>
+.stat-card {
+ display: flex;
+ align-items: flex-start;
+ gap: var(--space-3);
+ padding: var(--space-3);
+ background: var(--bg-card);
+ border: 1px solid var(--border-primary);
+ border-radius: var(--radius-lg);
+ transition: all var(--transition-normal);
+}
+
+.stat-card:hover {
+ border-color: var(--border-secondary);
+ box-shadow: var(--shadow-card-hover);
+}
+
+/* Compact variant / 紧凑变体 */
+.variant-compact {
+ padding: var(--space-2);
+ gap: var(--space-2);
+}
+
+.variant-compact .stat-icon {
+ width: 2.5rem;
+ height: 2.5rem;
+}
+
+.variant-compact .stat-value {
+ font-size: 1.5rem;
+}
+
+/* Icon / 图标 */
+.stat-icon {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ width: 3rem;
+ height: 3rem;
+ border-radius: var(--radius-lg);
+ flex-shrink: 0;
+}
+
+/* Content / 内容 */
+.stat-content {
+ flex: 1;
+ display: flex;
+ flex-direction: column;
+ gap: 0.125rem;
+}
+
+.stat-label {
+ font-size: 0.8125rem;
+ font-weight: 500;
+ color: var(--text-muted);
+}
+
+.stat-value-row {
+ display: flex;
+ align-items: baseline;
+ gap: var(--space-1);
+}
+
+.stat-value {
+ font-size: 1.75rem;
+ font-weight: 700;
+ letter-spacing: -0.02em;
+ line-height: 1.2;
+}
+
+.stat-suffix {
+ font-size: 0.875rem;
+ font-weight: 500;
+ color: var(--text-muted);
+}
+
+.stat-description {
+ font-size: 0.75rem;
+ color: var(--text-muted);
+ margin-top: var(--space-1);
+}
+
+/* Trend / 趋势 */
+.stat-trend {
+ display: flex;
+ align-items: center;
+ gap: 0.25rem;
+ padding: 0.25rem 0.5rem;
+ border-radius: var(--radius-md);
+ font-size: 0.75rem;
+ font-weight: 600;
+}
+
+.stat-trend.up {
+ background: var(--success-light);
+ color: var(--success);
+}
+
+.stat-trend.down {
+ background: var(--error-light);
+ color: var(--error);
+}
+</style>
diff --git a/web/src/components/common/ThemeToggle.vue b/web/src/components/common/ThemeToggle.vue
new file mode 100644
index 0000000..632d53c
--- /dev/null
+++ b/web/src/components/common/ThemeToggle.vue
@@ -0,0 +1,100 @@
+<template>
+ <!-- Theme toggle button for switching between light/dark mode -->
+ <!-- 主题切换按钮,用于切换浅色/深色模式 -->
+ <button
+ class="theme-toggle"
+ :aria-label="isDark ? '切换到浅色模式' : '切换到深色模式'"
+ @click="toggleTheme"
+ >
+ <transition name="icon-fade" mode="out-in">
+ <el-icon v-if="isDark" key="moon" :size="18">
+ <Moon />
+ </el-icon>
+ <el-icon v-else key="sun" :size="18">
+ <Sunny />
+ </el-icon>
+ </transition>
+ </button>
+</template>
+
+<script setup lang="ts">
+import { ref, onMounted } from 'vue'
+import { Moon, Sunny } from '@element-plus/icons-vue'
+
+/**
+ * ThemeToggle - Dark/Light mode toggle button
+ * 主题切换按钮 - 深色/浅色模式切换
+ */
+const isDark = ref(false)
+
+// Initialize theme from localStorage or system preference
+// 从 localStorage 或系统偏好初始化主题
+onMounted(() => {
+ const savedTheme = localStorage.getItem('theme')
+ if (savedTheme) {
+ isDark.value = savedTheme === 'dark'
+ } else {
+ isDark.value = window.matchMedia('(prefers-color-scheme: dark)').matches
+ }
+ applyTheme()
+})
+
+// Toggle between dark and light mode / 切换深色和浅色模式
+const toggleTheme = () => {
+ isDark.value = !isDark.value
+ applyTheme()
+ localStorage.setItem('theme', isDark.value ? 'dark' : 'light')
+}
+
+// Apply theme to document / 应用主题到文档
+const applyTheme = () => {
+ if (isDark.value) {
+ document.documentElement.classList.add('dark')
+ } else {
+ document.documentElement.classList.remove('dark')
+ }
+}
+</script>
+
+<style scoped>
+.theme-toggle {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ width: 2.25rem;
+ height: 2.25rem;
+ border: 1px solid var(--border-primary);
+ border-radius: var(--radius-md);
+ background: var(--bg-card);
+ color: var(--text-secondary);
+ cursor: pointer;
+ transition: all var(--transition-fast);
+}
+
+.theme-toggle:hover {
+ background: var(--bg-card-hover);
+ color: var(--text-primary);
+ border-color: var(--border-secondary);
+}
+
+.theme-toggle:focus-visible {
+ outline: 2px solid var(--accent);
+ outline-offset: 2px;
+}
+
+/* Icon transition / 图标过渡动画 */
+.icon-fade-enter-active,
+.icon-fade-leave-active {
+ transition: all 0.2s ease;
+}
+
+.icon-fade-enter-from {
+ opacity: 0;
+ transform: rotate(-90deg) scale(0.8);
+}
+
+.icon-fade-leave-to {
+ opacity: 0;
+ transform: rotate(90deg) scale(0.8);
+}
+</style>
diff --git a/web/src/components/common/index.ts b/web/src/components/common/index.ts
new file mode 100644
index 0000000..a3a2abe
--- /dev/null
+++ b/web/src/components/common/index.ts
@@ -0,0 +1,22 @@
+/**
+ * Common UI Components barrel export
+ * 通用 UI 组件统一导出
+ */
+
+// Layout Components / 布局组件
+export { default as PageHeader } from './PageHeader.vue'
+export { default as BaseCard } from './BaseCard.vue'
+export { default as StatCard } from './StatCard.vue'
+export { default as EmptyState } from './EmptyState.vue'
+
+// Interactive Components / 交互组件
+export { default as ProjectCard } from './ProjectCard.vue'
+export { default as ThemeToggle } from './ThemeToggle.vue'
+export { default as ActionButton } from './ActionButton.vue'
+
+// Dialog Components / 弹窗组件
+export { default as CreateDramaDialog } from './CreateDramaDialog.vue'
+export { default as AIConfigDialog } from './AIConfigDialog.vue'
+
+// Layout Components / 布局组件
+export { default as AppLayout } from './AppLayout.vue'
diff --git a/web/src/components/editor/StoryboardEditor.vue b/web/src/components/editor/StoryboardEditor.vue
index cc325e6..b280dc0 100644
--- a/web/src/components/editor/StoryboardEditor.vue
+++ b/web/src/components/editor/StoryboardEditor.vue
@@ -332,8 +332,11 @@
<div class="param-section" v-if="currentShot">
<div class="param-group">
<label>视频预览</label>
- <div class="video-preview" v-if="currentShot.video_url">
- <video :src="currentShot.video_url" controls style="width: 100%;" />
+ <div class="video-preview" v-if="currentShot.video_url" @click="toggleVideoPlay">
+ <video ref="videoPlayerRef" :src="currentShot.video_url" style="width: 100%;" @ended="videoPlaying = false" />
+ <div class="video-play-overlay" :class="{ hidden: videoPlaying }">
+ <el-icon :size="48"><VideoPlay /></el-icon>
+ </div>
</div>
<div v-else class="video-placeholder">
<el-icon><VideoCamera /></el-icon>
@@ -443,6 +446,19 @@ const selectedCharacters = ref<string[]>([])
const availableCharacters = ref<any[]>([])
const backgroundPrompt = ref('')
const backgroundsCache = ref<Background[]>([])
+const videoPlayerRef = ref<HTMLVideoElement | null>(null)
+const videoPlaying = ref(false)
+
+const toggleVideoPlay = () => {
+ if (!videoPlayerRef.value) return
+ if (videoPlaying.value) {
+ videoPlayerRef.value.pause()
+ videoPlaying.value = false
+ } else {
+ videoPlayerRef.value.play()
+ videoPlaying.value = true
+ }
+}
const router = useRouter()
@@ -752,22 +768,22 @@ watch(() => currentShot.value, () => {
.storyboard-editor {
display: flex;
height: 100vh;
- background: #f5f7fa;
- color: #303133;
+ background: var(--bg-primary);
+ color: var(--text-primary);
overflow: hidden;
}
.left-panel {
width: 280px;
flex-shrink: 0;
- background: #ffffff;
+ background: var(--bg-card);
display: flex;
flex-direction: column;
- border-right: 1px solid #e4e7ed;
+ border-right: 1px solid var(--border-primary);
.panel-header {
padding: 16px;
- border-bottom: 1px solid #e4e7ed;
+ border-bottom: 1px solid var(--border-primary);
display: flex;
justify-content: space-between;
align-items: center;
@@ -782,7 +798,7 @@ watch(() => currentShot.value, () => {
margin: 0;
font-size: 14px;
font-weight: 600;
- color: #303133;
+ color: var(--text-primary);
}
}
@@ -796,35 +812,35 @@ watch(() => currentShot.value, () => {
gap: 12px;
padding: 12px;
margin-bottom: 8px;
- background: #f5f7fa;
+ background: var(--bg-secondary);
border-radius: 8px;
cursor: pointer;
transition: all 0.2s;
- border: 1px solid #e4e7ed;
+ border: 1px solid var(--border-primary);
&:hover {
- background: #ecf5ff;
- border-color: #c6e2ff;
+ background: var(--accent-light);
+ border-color: var(--accent);
}
&.active {
- background: #ecf5ff;
- border-color: #409eff;
- box-shadow: 0 2px 8px rgba(64, 158, 255, 0.15);
+ background: var(--accent-light);
+ border-color: var(--accent);
+ box-shadow: var(--shadow-md);
}
.scene-number {
flex-shrink: 0;
width: 32px;
height: 32px;
- background: #409eff;
+ background: var(--accent);
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
font-size: 12px;
- color: #ffffff;
+ color: var(--text-inverse);
}
.scene-content {
@@ -839,7 +855,7 @@ watch(() => currentShot.value, () => {
.time-location {
font-size: 11px;
- color: #909399;
+ color: var(--text-muted);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
@@ -848,7 +864,7 @@ watch(() => currentShot.value, () => {
.scene-desc {
font-size: 12px;
- color: #606266;
+ color: var(--text-secondary);
line-height: 1.4;
overflow: hidden;
text-overflow: ellipsis;
@@ -864,8 +880,8 @@ watch(() => currentShot.value, () => {
height: 40px;
border-radius: 4px;
overflow: hidden;
- background: #f0f2f5;
- border: 1px solid #dcdfe6;
+ background: var(--bg-card-hover);
+ border: 1px solid var(--border-primary);
}
}
}
@@ -876,12 +892,12 @@ watch(() => currentShot.value, () => {
min-width: 0;
display: flex;
flex-direction: column;
- background: #f5f7fa;
+ background: var(--bg-primary);
.preview-header {
padding: 12px 20px;
- background: #ffffff;
- border-bottom: 1px solid #e4e7ed;
+ background: var(--bg-card);
+ border-bottom: 1px solid var(--border-primary);
display: flex;
justify-content: space-between;
align-items: center;
@@ -893,7 +909,7 @@ watch(() => currentShot.value, () => {
.shot-type {
font-size: 14px;
- color: #606266;
+ color: var(--text-secondary);
}
}
}
@@ -912,11 +928,11 @@ watch(() => currentShot.value, () => {
display: flex;
align-items: center;
justify-content: center;
- background: #ffffff;
+ background: var(--bg-card);
border-radius: 8px;
overflow: hidden;
- border: 1px solid #e4e7ed;
- box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
+ border: 1px solid var(--border-primary);
+ box-shadow: var(--shadow-md);
.preview-image {
width: 100%;
@@ -933,7 +949,7 @@ watch(() => currentShot.value, () => {
.preview-placeholder {
text-align: center;
- color: #909399;
+ color: var(--text-muted);
p {
margin-top: 12px;
@@ -942,7 +958,7 @@ watch(() => currentShot.value, () => {
.hint {
font-size: 12px;
- color: #909399;
+ color: var(--text-muted);
margin-top: 8px;
}
}
@@ -959,15 +975,15 @@ watch(() => currentShot.value, () => {
.timeline-panel {
height: 140px;
- background: #ffffff;
- border-top: 1px solid #e4e7ed;
+ background: var(--bg-card);
+ border-top: 1px solid var(--border-primary);
.timeline-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 16px;
- border-bottom: 1px solid #e4e7ed;
+ border-bottom: 1px solid var(--border-primary);
.timeline-tools {
display: flex;
@@ -976,7 +992,7 @@ watch(() => currentShot.value, () => {
.timecode {
font-size: 12px;
- color: #909399;
+ color: var(--text-muted);
font-family: monospace;
}
}
@@ -1000,22 +1016,22 @@ watch(() => currentShot.value, () => {
}
&::-webkit-scrollbar-track {
- background: #f5f7fa;
+ background: var(--bg-secondary);
}
&::-webkit-scrollbar-thumb {
- background: #c0c4cc;
+ background: var(--border-secondary);
border-radius: 4px;
&:hover {
- background: #909399;
+ background: var(--border-primary);
}
}
.timeline-ruler {
position: relative;
height: 20px;
- border-bottom: 1px solid #dcdfe6;
+ border-bottom: 1px solid var(--border-primary);
min-width: max-content;
.ruler-mark {
@@ -1027,13 +1043,13 @@ watch(() => currentShot.value, () => {
display: block;
width: 1px;
height: 8px;
- background: #dcdfe6;
+ background: var(--border-primary);
margin-bottom: 2px;
}
span {
font-size: 10px;
- color: #606266;
+ color: var(--text-secondary);
}
}
}
@@ -1050,21 +1066,21 @@ watch(() => currentShot.value, () => {
flex-shrink: 0;
width: 60px;
height: 100%;
- background: #c6e2ff;
+ background: var(--accent-light);
border-radius: 4px;
cursor: pointer;
transition: all 0.2s;
- border: 1px solid #a0cfff;
+ border: 1px solid var(--accent);
&:hover {
- background: #a0cfff;
- border-color: #79bbff;
+ background: var(--accent);
+ border-color: var(--accent-hover);
}
&.active {
- background: #409eff;
- border-color: #409eff;
- box-shadow: 0 2px 8px rgba(64, 158, 255, 0.3);
+ background: var(--accent);
+ border-color: var(--accent);
+ box-shadow: var(--shadow-glow);
}
.clip-content {
@@ -1077,12 +1093,12 @@ watch(() => currentShot.value, () => {
.clip-number {
font-size: 11px;
font-weight: 600;
- color: #303133;
+ color: var(--text-primary);
}
}
&.active .clip-content .clip-number {
- color: #ffffff;
+ color: var(--text-inverse);
}
}
}
@@ -1093,8 +1109,8 @@ watch(() => currentShot.value, () => {
.right-panel {
width: 420px;
flex-shrink: 0;
- background: #ffffff;
- border-left: 1px solid #e4e7ed;
+ background: var(--bg-card);
+ border-left: 1px solid var(--border-primary);
display: flex;
flex-direction: column;
@@ -1106,8 +1122,8 @@ watch(() => currentShot.value, () => {
:deep(.el-tabs__header) {
margin: 0;
- background: #ffffff;
- border-bottom: 1px solid #e4e7ed;
+ background: var(--bg-card);
+ border-bottom: 1px solid var(--border-primary);
flex-shrink: 0;
padding: 0 8px;
}
@@ -1120,24 +1136,24 @@ watch(() => currentShot.value, () => {
}
:deep(.el-tabs__item) {
- color: #606266;
+ color: var(--text-secondary);
font-size: 13px;
font-weight: 500;
padding: 0 20px;
transition: all 0.3s ease;
&:hover {
- color: #409eff;
+ color: var(--accent);
}
&.is-active {
- color: #409eff;
- background: #ecf5ff;
+ color: var(--accent);
+ background: var(--accent-light);
}
}
:deep(.el-tabs__active-bar) {
- background: linear-gradient(90deg, #409eff 0%, #66b1ff 100%);
+ background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 100%);
height: 3px;
}
@@ -1150,32 +1166,32 @@ watch(() => currentShot.value, () => {
.section-title {
font-size: 14px;
font-weight: 600;
- color: #409eff;
+ color: var(--accent);
margin: 12px 0 10px;
padding: 6px 10px;
- background: #ecf5ff;
+ background: var(--accent-light);
border-radius: 6px;
- border-left: 3px solid #409eff;
+ border-left: 3px solid var(--accent);
}
.param-group {
margin-bottom: 10px;
padding: 10px;
- background: #f5f7fa;
+ background: var(--bg-secondary);
border-radius: 8px;
- border: 1px solid #e4e7ed;
+ border: 1px solid var(--border-primary);
transition: all 0.3s ease;
&:hover {
- background: #ecf5ff;
- border-color: #c6e2ff;
- box-shadow: 0 2px 8px rgba(64, 158, 255, 0.08);
+ background: var(--accent-light);
+ border-color: var(--accent);
+ box-shadow: var(--shadow-sm);
}
label {
display: block;
font-size: 12px;
- color: #606266;
+ color: var(--text-secondary);
margin-bottom: 6px;
font-weight: 600;
letter-spacing: 0.3px;
@@ -1208,29 +1224,29 @@ watch(() => currentShot.value, () => {
.background-preview-small {
width: 80px;
height: 60px;
- background: #f0f2f5;
+ background: var(--bg-secondary);
border-radius: 6px;
overflow: hidden;
- border: 1px solid #dcdfe6;
+ border: 1px solid var(--border-primary);
flex-shrink: 0;
}
.background-placeholder-small {
width: 80px;
height: 60px;
- background: #fafafa;
+ background: var(--bg-primary);
border-radius: 6px;
- border: 2px dashed #c0c4cc;
+ border: 2px dashed var(--border-secondary);
display: flex;
align-items: center;
justify-content: center;
- color: #909399;
+ color: var(--text-muted);
flex-shrink: 0;
transition: all 0.3s ease;
&:hover {
- border-color: #409eff;
- background: #ecf5ff;
+ border-color: var(--accent);
+ background: var(--accent-light);
}
}
@@ -1248,32 +1264,60 @@ watch(() => currentShot.value, () => {
.video-preview {
width: 100%;
aspect-ratio: 2/1;
- background: #f0f2f5;
+ background: var(--bg-secondary);
border-radius: 6px;
overflow: hidden;
margin-bottom: 8px;
- border: 1px solid #dcdfe6;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
+ border: 1px solid var(--border-primary);
+ box-shadow: var(--shadow-sm);
+ position: relative;
+ cursor: pointer;
+ }
+
+ .video-play-overlay {
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background: rgba(0, 0, 0, 0.4);
+ transition: opacity 0.3s ease;
+
+ .el-icon {
+ color: white;
+ filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
+ }
+
+ &.hidden {
+ opacity: 0;
+ }
+
+ &:hover {
+ background: rgba(0, 0, 0, 0.5);
+ }
}
.background-placeholder,
.video-placeholder {
width: 100%;
aspect-ratio: 2/1;
- background: #fafafa;
+ background: var(--bg-primary);
border-radius: 6px;
- border: 2px dashed #c0c4cc;
+ border: 2px dashed var(--border-secondary);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
- color: #909399;
+ color: var(--text-muted);
margin-bottom: 8px;
transition: all 0.3s ease;
&:hover {
- border-color: #409eff;
- background: #ecf5ff;
+ border-color: var(--accent);
+ background: var(--accent-light);
}
.el-icon {
@@ -1322,12 +1366,12 @@ watch(() => currentShot.value, () => {
.help-text {
margin-top: 6px;
font-size: 11px;
- color: #909399;
+ color: var(--text-muted);
line-height: 1.5;
padding: 4px 8px;
- background: #ecf5ff;
+ background: var(--accent-light);
border-radius: 4px;
- border-left: 2px solid #409eff;
+ border-left: 2px solid var(--accent);
}
.character-list {
@@ -1347,8 +1391,8 @@ watch(() => currentShot.value, () => {
transform: translateY(-2px);
.avatar-wrapper {
- border-color: #409eff;
- box-shadow: 0 2px 8px rgba(64, 158, 255, 0.2);
+ border-color: var(--accent);
+ box-shadow: var(--shadow-md);
}
}
@@ -1357,19 +1401,19 @@ watch(() => currentShot.value, () => {
height: 50px;
border-radius: 50%;
overflow: hidden;
- background: #f0f2f5;
+ background: var(--bg-secondary);
display: flex;
align-items: center;
justify-content: center;
- color: #909399;
- border: 2px solid #c0c4cc;
+ color: var(--text-muted);
+ border: 2px solid var(--border-secondary);
transition: all 0.3s ease;
margin-bottom: 6px;
}
.avatar-name {
font-size: 11px;
- color: #606266;
+ color: var(--text-secondary);
text-align: center;
max-width: 100%;
overflow: hidden;
@@ -1384,16 +1428,16 @@ watch(() => currentShot.value, () => {
.composition-placeholder {
width: 100%;
aspect-ratio: 2/1;
- background: #fafafa;
+ background: var(--bg-primary);
border-radius: 6px;
- border: 2px dashed #c0c4cc;
+ border: 2px dashed var(--border-secondary);
overflow: hidden;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin-bottom: 8px;
- color: #909399;
+ color: var(--text-muted);
.el-icon {
font-size: 32px;
@@ -1406,7 +1450,7 @@ watch(() => currentShot.value, () => {
.hint {
font-size: 10px;
- color: #909399;
+ color: var(--text-muted);
margin-top: 4px;
}
}
@@ -1417,25 +1461,25 @@ watch(() => currentShot.value, () => {
:deep(.el-input__wrapper),
:deep(.el-textarea__inner),
:deep(.el-select) {
- background-color: #ffffff;
+ background-color: var(--bg-card);
border-radius: 6px;
- border: 1px solid #dcdfe6;
+ border: 1px solid var(--border-primary);
transition: all 0.3s ease;
&:hover {
- border-color: #c0c4cc;
+ border-color: var(--border-secondary);
}
&:focus,
&.is-focus {
- border-color: #409eff;
- box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.1);
+ border-color: var(--accent);
+ box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.1);
}
}
:deep(.el-input__inner),
:deep(.el-textarea__inner) {
- color: #606266;
+ color: var(--text-primary);
font-size: 13px;
}
@@ -1444,7 +1488,7 @@ watch(() => currentShot.value, () => {
}
:deep(.el-divider) {
- border-color: #e4e7ed;
+ border-color: var(--border-primary);
margin: 12px 0;
}
diff --git a/web/src/components/editor/VideoTimelineEditor.vue b/web/src/components/editor/VideoTimelineEditor.vue
index 88c5eaa..bf94801 100644
--- a/web/src/components/editor/VideoTimelineEditor.vue
+++ b/web/src/components/editor/VideoTimelineEditor.vue
@@ -26,7 +26,7 @@
<div class="editor-workspace">
<!-- 预览区域 -->
<div class="preview-panel">
- <div class="video-preview">
+ <div class="video-preview" @click="togglePlay">
<video
ref="previewPlayer"
:src="currentPreviewUrl"
@@ -41,6 +41,10 @@
:class="[`transition-${transitionState.type}`, { 'transition-in': transitionState.phase === 'in', 'transition-out': transitionState.phase === 'out' }]"
:style="{ animationDuration: transitionState.duration + 's' }"
></div>
+ <!-- 播放/暂停图标覆盖层 -->
+ <div class="video-play-overlay" :class="{ hidden: isPlaying }" v-if="currentPreviewUrl">
+ <el-icon :size="64"><VideoPlay /></el-icon>
+ </div>
<div class="preview-overlay" v-if="!currentPreviewUrl">
<el-empty :description="$t('video.dragToTimeline')" />
</div>
@@ -154,7 +158,18 @@
@dragover.prevent
@click="clickTimeline($event)"
>
- <div class="track-label">{{ $t('video.videoTrack') }}</div>
+ <div class="track-label">
+ <span>{{ $t('video.videoTrack') }}</span>
+ <el-button
+ type="text"
+ size="small"
+ @click.stop="clearAllClips"
+ :disabled="timelineClips.length === 0"
+ :title="$t('video.clearTrack')"
+ >
+ <el-icon><Delete /></el-icon>
+ </el-button>
+ </div>
<div class="track-clips">
<!-- 视频片段 -->
<div
@@ -926,6 +941,17 @@ const removeClip = (clip: TimelineClip) => {
}
}
+const clearAllClips = () => {
+ if (timelineClips.value.length === 0) return
+
+ timelineClips.value = []
+ audioClips.value = []
+ selectedClipId.value = null
+ selectedAudioClipId.value = null
+ currentTime.value = 0
+ ElMessage.success('已清空轨道')
+}
+
const updateClipOrders = () => {
timelineClips.value.forEach((clip, index) => {
clip.order = index
@@ -1356,6 +1382,14 @@ const pauseTimeline = () => {
}
}
+const togglePlay = () => {
+ if (isPlaying.value) {
+ pauseTimeline()
+ } else {
+ playTimeline()
+ }
+}
+
// 键盘快捷键
const handleKeyPress = (event: KeyboardEvent) => {
// 如果在输入框中,不处理快捷键
@@ -1665,16 +1699,16 @@ defineExpose({
height: 100%;
display: flex;
flex-direction: column;
- background: #fafafa;
- color: #333;
+ background: var(--bg-primary);
+ color: var(--text-primary);
.editor-toolbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 16px;
- background: #f5f5f5;
- border: 1px solid #e0e0e0;
+ background: var(--bg-secondary);
+ border: 1px solid var(--border-primary);
.toolbar-left {
display: flex;
@@ -1684,7 +1718,7 @@ defineExpose({
.time-display {
font-family: 'Courier New', monospace;
font-size: 14px;
- color: #666;
+ color: var(--text-secondary);
min-width: 160px;
}
}
@@ -1699,8 +1733,8 @@ defineExpose({
flex: 0 0 500px;
display: flex;
flex-direction: column;
- background: #fff;
- border: 1px solid #e0e0e0;
+ background: var(--bg-card);
+ border: 1px solid var(--border-primary);
.video-preview {
flex: 1;
@@ -1725,7 +1759,35 @@ defineExpose({
display: flex;
align-items: center;
justify-content: center;
- background: rgba(245, 245, 245, 0.95);
+ background: var(--bg-secondary);
+ }
+
+ .video-play-overlay {
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background: rgba(0, 0, 0, 0.3);
+ cursor: pointer;
+ transition: opacity 0.3s ease;
+ z-index: 5;
+
+ .el-icon {
+ color: white;
+ filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
+ }
+
+ &.hidden {
+ opacity: 0;
+ }
+
+ &:hover {
+ background: rgba(0, 0, 0, 0.4);
+ }
}
.transition-overlay {
@@ -1861,8 +1923,8 @@ defineExpose({
.preview-controls {
padding: 12px 16px;
- background: #f5f5f5;
- border: 1px solid #e0e0e0;
+ background: var(--bg-secondary);
+ border: 1px solid var(--border-primary);
}
}
@@ -1870,7 +1932,7 @@ defineExpose({
flex: 1;
display: flex;
flex-direction: column;
- background: #fff;
+ background: var(--bg-card);
overflow: hidden;
.library-header {
@@ -1878,8 +1940,8 @@ defineExpose({
justify-content: space-between;
align-items: center;
padding: 12px 16px;
- background: #f5f5f5;
- border: 1px solid #e0e0e0;
+ background: var(--bg-secondary);
+ border: 1px solid var(--border-primary);
.header-left {
display: flex;
@@ -1890,12 +1952,12 @@ defineExpose({
margin: 0;
font-size: 14px;
font-weight: 500;
- color: #333;
+ color: var(--text-primary);
}
span {
font-size: 12px;
- color: #999;
+ color: var(--text-muted);
}
}
}
@@ -1915,26 +1977,26 @@ defineExpose({
}
&::-webkit-scrollbar-track {
- background: #f0f0f0;
+ background: var(--bg-secondary);
border-radius: 4px;
}
&::-webkit-scrollbar-thumb {
- background: #d0d0d0;
+ background: var(--border-secondary);
border-radius: 4px;
&:hover {
- background: #c0c0c0;
+ background: var(--border-primary);
}
}
.media-item {
position: relative;
- background: #f5f5f5;
+ background: var(--bg-secondary);
border-radius: 6px;
overflow: hidden;
cursor: move;
- border: 1px solid var(--el-border-color);
+ border: 1px solid var(--border-primary);
transition: all 0.3s;
&:hover {
@@ -1960,7 +2022,7 @@ defineExpose({
position: relative;
width: 100%;
aspect-ratio: 16/9;
- background: #f0f0f0;
+ background: var(--bg-card-hover);
cursor: pointer;
video {
@@ -2017,13 +2079,13 @@ defineExpose({
.media-title {
font-size: 12px;
font-weight: 500;
- color: #333;
+ color: var(--text-primary);
margin-bottom: 4px;
}
.media-desc {
font-size: 11px;
- color: #999;
+ color: var(--text-muted);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
@@ -2038,16 +2100,16 @@ defineExpose({
flex: 0 0 280px;
display: flex;
flex-direction: column;
- background: #fff;
- border: 1px solid #e0e0e0;
+ background: var(--bg-card);
+ border: 1px solid var(--border-primary);
.timeline-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 12px;
- background: #f5f5f5;
- border: 1px solid #e0e0e0;
+ background: var(--bg-secondary);
+ border: 1px solid var(--border-primary);
.zoom-controls {
display: flex;
@@ -2056,7 +2118,7 @@ defineExpose({
.zoom-level {
font-size: 12px;
- color: #999;
+ color: var(--text-muted);
min-width: 50px;
text-align: right;
}
@@ -2068,12 +2130,12 @@ defineExpose({
position: relative;
overflow-x: auto;
overflow-y: hidden;
- background: #fafafa;
+ background: var(--bg-primary);
.timeline-ruler {
height: 30px;
- background: #fff;
- border: 1px solid #e0e0e0;
+ background: var(--bg-card);
+ border: 1px solid var(--border-primary);
position: relative;
.ruler-tick {
@@ -2083,11 +2145,11 @@ defineExpose({
.tick-mark {
width: 1px;
- background: #d0d0d0;
+ background: var(--border-secondary);
&.major {
height: 20px;
- background: #b0b0b0;
+ background: var(--border-primary);
}
&.minor {
@@ -2101,7 +2163,7 @@ defineExpose({
top: 2px;
left: 4px;
font-size: 10px;
- color: #999;
+ color: var(--text-muted);
font-family: 'Courier New', monospace;
}
}
@@ -2117,8 +2179,8 @@ defineExpose({
.playhead-line {
width: 2px;
height: 100%;
- background: #3498db;
- box-shadow: 0 0 8px rgba(52, 152, 219, 0.6);
+ background: var(--accent);
+ box-shadow: 0 0 8px rgba(14, 165, 233, 0.6);
}
.playhead-handle {
@@ -2127,17 +2189,17 @@ defineExpose({
left: -6px;
width: 14px;
height: 14px;
- background: #3498db;
+ background: var(--accent);
border-radius: 50%;
- border: 2px solid #fff;
+ border: 2px solid var(--bg-card);
}
}
.timeline-track {
position: relative;
height: 80px;
- background: #f5f5f5;
- border: 1px solid #e0e0e0;
+ background: var(--bg-secondary);
+ border: 1px solid var(--border-primary);
.track-label {
position: absolute;
@@ -2149,9 +2211,9 @@ defineExpose({
align-items: center;
padding-left: 12px;
font-size: 12px;
- color: #666;
- background: #fff;
- border: 1px solid #e0e0e0;
+ color: var(--text-secondary);
+ background: var(--bg-card);
+ border: 1px solid var(--border-primary);
z-index: 50;
}
@@ -2164,7 +2226,7 @@ defineExpose({
position: absolute;
top: 8px;
bottom: 8px;
- background: #3a5f7d;
+ background: var(--accent);
border-radius: 4px;
border: 2px solid transparent;
cursor: move;
@@ -2172,13 +2234,13 @@ defineExpose({
overflow: hidden;
&:hover {
- border-color: #5a9fd4;
- box-shadow: 0 2px 8px rgba(90, 159, 212, 0.3);
+ border-color: var(--accent-hover);
+ box-shadow: var(--shadow-md);
}
&.selected {
- border-color: #3498db;
- box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.3);
+ border-color: var(--accent);
+ box-shadow: var(--shadow-glow);
}
.clip-content {
@@ -2191,7 +2253,7 @@ defineExpose({
.clip-thumbnail {
width: 60px;
height: 100%;
- background: #f0f0f0;
+ background: var(--bg-card-hover);
border-radius: 3px;
overflow: hidden;
flex-shrink: 0;
@@ -2211,7 +2273,7 @@ defineExpose({
.clip-title {
font-size: 11px;
font-weight: 500;
- color: #333;
+ color: var(--text-inverse);
margin-bottom: 2px;
white-space: nowrap;
overflow: hidden;
@@ -2220,7 +2282,8 @@ defineExpose({
.clip-duration {
font-size: 10px;
- color: #666;
+ color: var(--text-inverse);
+ opacity: 0.8;
}
}
}
@@ -2263,7 +2326,7 @@ defineExpose({
transition: opacity 0.2s;
&:hover {
- background: #e74c3c;
+ background: var(--error);
}
}
@@ -2305,7 +2368,7 @@ defineExpose({
top: 100%;
margin-top: 4px;
font-size: 10px;
- color: #666;
+ color: var(--text-secondary);
white-space: nowrap;
background: rgba(0, 0, 0, 0.8);
padding: 2px 6px;
@@ -2331,31 +2394,31 @@ defineExpose({
padding-right: 8px;
.el-button {
- color: #999;
+ color: var(--text-muted);
&:hover {
- color: #409eff;
+ color: var(--accent);
}
}
}
.audio-clip {
- background: #5d4a7a;
+ background: #7c3aed;
&:hover {
- border-color: #8b6fb3;
- box-shadow: 0 2px 8px rgba(139, 111, 179, 0.3);
+ border-color: #a78bfa;
+ box-shadow: var(--shadow-md);
}
&.selected {
- border-color: #9b59b6;
- box-shadow: 0 0 0 2px rgba(155, 89, 182, 0.3);
+ border-color: #8b5cf6;
+ box-shadow: var(--shadow-glow);
}
.audio-waveform {
width: 60px;
height: 100%;
- background: linear-gradient(135deg, #8e44ad 0%, #3498db 100%);
+ background: linear-gradient(135deg, #8b5cf6 0%, var(--accent) 100%);
border-radius: 3px;
display: flex;
align-items: center;
@@ -2384,7 +2447,7 @@ defineExpose({
.progress-message {
font-size: 14px;
- color: #606266;
+ color: var(--text-secondary);
font-weight: 500;
}
}
@@ -2392,7 +2455,7 @@ defineExpose({
.progress-tips {
margin-top: 20px;
padding: 12px;
- background: #f5f7fa;
+ background: var(--bg-secondary);
border-radius: 6px;
p {
@@ -2401,7 +2464,7 @@ defineExpose({
align-items: center;
gap: 8px;
font-size: 13px;
- color: #606266;
+ color: var(--text-secondary);
.el-icon {
font-size: 16px;
diff --git a/web/src/locales/en-US.ts b/web/src/locales/en-US.ts
index 62fbc49..6e47f79 100644
--- a/web/src/locales/en-US.ts
+++ b/web/src/locales/en-US.ts
@@ -52,7 +52,8 @@ export default {
name: 'Name',
description: 'Description',
createdAt: 'Created At',
- updatedAt: 'Updated At'
+ updatedAt: 'Updated At',
+ perPage: 'Per Page'
},
settings: {
title: 'Settings',
@@ -110,13 +111,23 @@ export default {
}
},
drama: {
- title: 'Drama Management',
+ title: 'My Drama Projects',
create: 'Create Project',
totalProjects: 'Total {count} projects',
- createNew: 'Create New Project',
- aiConfig: 'AI Configuration',
- aiConfigTip: 'Please configure AI services before creating a project',
- empty: 'No projects yet, click the button above to create a new project',
+ createNew: 'Create Project',
+ createDesc: 'Fill in basic information to create your drama project',
+ aiConfig: 'AI Config',
+ aiConfigTip: 'Please configure AI service before creating a project',
+ empty: 'No projects yet',
+ emptyHint: 'Click "Create Project" button above to start your first drama',
+ editProject: 'Edit Project',
+ projectName: 'Project Name',
+ projectNamePlaceholder: 'Enter project name',
+ projectDesc: 'Project Description',
+ projectDescPlaceholder: 'Enter project description (optional)',
+ deleteConfirm: 'Are you sure you want to delete this project?',
+ noCover: 'No cover',
+ noDescription: 'No description',
status: {
draft: 'Draft',
production: 'In Production',
@@ -632,6 +643,7 @@ export default {
dragToTimeline: 'Drag scenes to timeline to start editing',
videoTrack: 'Video Track',
audioTrack: 'Audio Track',
+ clearTrack: 'Clear Track',
soundAndMusic: 'Sound & Music',
soundMusicInDev: 'Sound & Music feature in development',
noMergeYet: 'No videos merged yet',
diff --git a/web/src/locales/zh-CN.ts b/web/src/locales/zh-CN.ts
index 5a74efe..fb96580 100644
--- a/web/src/locales/zh-CN.ts
+++ b/web/src/locales/zh-CN.ts
@@ -133,6 +133,15 @@ export default {
aiConfig: 'AI配置',
aiConfigTip: '请先配置 AI 服务后再创建项目',
empty: '暂无项目,点击上方按钮创建新项目',
+ emptyHint: '点击上方"创建新项目"按钮开始您的第一部短剧',
+ editProject: '编辑项目',
+ projectName: '项目名称',
+ projectNamePlaceholder: '请输入项目名称',
+ projectDesc: '项目描述',
+ projectDescPlaceholder: '请输入项目描述(可选)',
+ deleteConfirm: '确定要删除这个项目吗?',
+ noCover: '暂无封面',
+ noDescription: '暂无描述',
status: {
draft: '草稿',
production: '制作中',
@@ -533,6 +542,7 @@ export default {
dragToTimeline: '将场景拖拽到时间线开始编辑',
videoTrack: '视频轨道',
audioTrack: '音频轨道',
+ clearTrack: '清空轨道',
soundAndMusic: '音效与配乐',
soundMusicInDev: '音效与配乐功能开发中',
noMergeYet: '还没有合成过视频',
diff --git a/web/src/main.ts b/web/src/main.ts
index 6c24eb0..3a7bc94 100644
--- a/web/src/main.ts
+++ b/web/src/main.ts
@@ -2,6 +2,8 @@ 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'
diff --git a/web/src/views/drama/DramaCreate.vue b/web/src/views/drama/DramaCreate.vue
index d5b7e8c..db83a38 100644
--- a/web/src/views/drama/DramaCreate.vue
+++ b/web/src/views/drama/DramaCreate.vue
@@ -1,47 +1,64 @@
<template>
- <div class="drama-create-container">
- <el-page-header @back="goBack" title="返回">
- <template #content>
- <h2>创建新项目</h2>
- </template>
- </el-page-header>
-
- <el-card class="form-card" shadow="never">
- <el-form
- ref="formRef"
- :model="form"
- :rules="rules"
- label-width="100px"
- @submit.prevent="handleSubmit"
- >
- <el-form-item label="项目标题" prop="title" required>
- <el-input
- v-model="form.title"
- placeholder="请输入项目标题"
- maxlength="100"
- show-word-limit
- />
- </el-form-item>
-
- <el-form-item label="项目描述" prop="description">
- <el-input
- v-model="form.description"
- type="textarea"
- :rows="4"
- placeholder="请输入项目描述(可选)"
- maxlength="500"
- show-word-limit
- />
- </el-form-item>
-
- <el-form-item>
- <el-button type="primary" @click="handleSubmit" :loading="loading">
- 创建项目
- </el-button>
- <el-button @click="goBack">取消</el-button>
- </el-form-item>
- </el-form>
- </el-card>
+ <!-- Drama Create Page / 创建短剧页面 -->
+ <div class="page-container">
+ <div class="content-wrapper animate-fade-in">
+ <!-- Header / 头部 -->
+ <PageHeader
+ title="创建新项目"
+ subtitle="填写基本信息来创建你的短剧项目"
+ :show-back="true"
+ back-text="返回"
+ :show-border="false"
+ />
+
+ <!-- Form Card / 表单卡片 -->
+ <div class="form-card">
+
+ <el-form
+ ref="formRef"
+ :model="form"
+ :rules="rules"
+ label-position="top"
+ class="create-form"
+ @submit.prevent="handleSubmit"
+ >
+ <el-form-item label="项目标题" prop="title" required>
+ <el-input
+ v-model="form.title"
+ placeholder="给你的短剧起个名字"
+ size="large"
+ maxlength="100"
+ show-word-limit
+ />
+ </el-form-item>
+
+ <el-form-item label="项目描述" prop="description">
+ <el-input
+ v-model="form.description"
+ type="textarea"
+ :rows="5"
+ placeholder="简要描述你的短剧内容、风格或创意(可选)"
+ maxlength="500"
+ show-word-limit
+ resize="none"
+ />
+ </el-form-item>
+
+ <div class="form-actions">
+ <el-button size="large" @click="goBack">取消</el-button>
+ <el-button
+ type="primary"
+ size="large"
+ :loading="loading"
+ @click="handleSubmit"
+ >
+ <el-icon v-if="!loading"><Plus /></el-icon>
+ 创建项目
+ </el-button>
+ </div>
+ </el-form>
+ </div>
+ </div>
</div>
</template>
@@ -49,8 +66,10 @@
import { ref, reactive } from 'vue'
import { useRouter } from 'vue-router'
import { ElMessage, type FormInstance, type FormRules } from 'element-plus'
+import { ArrowLeft, Plus } from '@element-plus/icons-vue'
import { dramaAPI } from '@/api/drama'
import type { CreateDramaRequest } from '@/types/drama'
+import { PageHeader } from '@/components/common'
const router = useRouter()
const formRef = ref<FormInstance>()
@@ -68,6 +87,7 @@ const rules: FormRules = {
]
}
+// Submit form / 提交表单
const handleSubmit = async () => {
if (!formRef.value) return
@@ -87,25 +107,69 @@ const handleSubmit = async () => {
})
}
+// Go back / 返回上一页
const goBack = () => {
router.back()
}
</script>
<style scoped>
-.drama-create-container {
- padding: 24px;
- max-width: 800px;
+/* ========================================
+ Page Layout / 页面布局 - 紧凑边距
+ ======================================== */
+.page-container {
+ min-height: 100vh;
+ background-color: var(--bg-primary);
+ padding: var(--space-2) var(--space-3);
+ transition: background-color var(--transition-normal);
+}
+
+@media (min-width: 768px) {
+ .page-container {
+ padding: var(--space-3) var(--space-4);
+ }
+}
+
+.content-wrapper {
+ max-width: 640px;
margin: 0 auto;
}
+/* ========================================
+ Form Card / 表单卡片
+ ======================================== */
.form-card {
- margin-top: 24px;
+ background: var(--bg-card);
+ border: 1px solid var(--border-primary);
+ border-radius: var(--radius-xl);
+ overflow: hidden;
+ box-shadow: var(--shadow-card);
+}
+
+/* ========================================
+ Form Styles / 表单样式 - 紧凑内边距
+ ======================================== */
+.create-form {
+ padding: var(--space-4);
+}
+
+.create-form :deep(.el-form-item) {
+ margin-bottom: var(--space-4);
+}
+
+/* ========================================
+ Form Actions / 表单操作区
+ ======================================== */
+.form-actions {
+ display: flex;
+ justify-content: flex-end;
+ gap: var(--space-3);
+ padding-top: var(--space-4);
+ border-top: 1px solid var(--border-primary);
+ margin-top: var(--space-2);
}
-.form-tip {
- font-size: 12px;
- color: #999;
- margin-top: 4px;
+.form-actions .el-button {
+ min-width: 100px;
}
</style>
diff --git a/web/src/views/drama/DramaList.vue b/web/src/views/drama/DramaList.vue
index 5c8e04b..0b07ffc 100644
--- a/web/src/views/drama/DramaList.vue
+++ b/web/src/views/drama/DramaList.vue
@@ -1,123 +1,173 @@
<template>
- <div class="drama-list-container">
- <div class="page-header-wrapper">
- <div class="page-header">
- <div>
- <h2>{{ $t('drama.title') }}</h2>
- <p class="subtitle">{{ $t('drama.totalProjects', { count: total }) }}</p>
- </div>
- <div style="display: flex; gap: 12px; align-items: center;">
+ <!-- Drama List Page - Refactored with modern minimalist design -->
+ <!-- 短剧列表页面 - 使用现代简约设计重构 -->
+ <div class="page-container">
+ <div class="content-wrapper animate-fade-in">
+ <!-- Page Header / 页面头部 -->
+ <PageHeader
+ :title="$t('drama.title')"
+ :subtitle="$t('drama.totalProjects', { count: total })"
+ >
+ <template #actions>
<LanguageSwitcher />
- <el-alert
- type="info"
- :closable="false"
- show-icon
- style="padding: 8px 12px;"
- >
- <template #title>
- <span style="font-size: 13px;">{{ $t('drama.aiConfigTip') }}</span>
- </template>
- </el-alert>
- <el-button type="warning" @click="goToAIConfig" :icon="Setting">{{ $t('drama.aiConfig') }}</el-button>
- <el-button type="primary" @click="handleCreate" :icon="Plus">{{ $t('drama.createNew') }}</el-button>
- </div>
+ <ThemeToggle />
+ <el-button @click="showAIConfig = true" class="header-btn">
+ <el-icon><Setting /></el-icon>
+ <span class="btn-text">{{ $t('drama.aiConfig') }}</span>
+ </el-button>
+ <el-button type="primary" @click="handleCreate" class="header-btn primary">
+ <el-icon><Plus /></el-icon>
+ <span class="btn-text">{{ $t('drama.createNew') }}</span>
+ </el-button>
+ </template>
+ </PageHeader>
+
+ <!-- Project Grid / 项目网格 -->
+ <div v-loading="loading" class="projects-grid" :class="{ 'is-empty': !loading && dramas.length === 0 }">
+ <!-- Empty state / 空状态 -->
+ <EmptyState
+ v-if="!loading && dramas.length === 0"
+ :title="$t('drama.empty')"
+ :description="$t('drama.emptyHint')"
+ :icon="Film"
+ >
+ <el-button type="primary" @click="handleCreate">
+ <el-icon><Plus /></el-icon>
+ {{ $t('drama.createNew') }}
+ </el-button>
+ </EmptyState>
+
+ <!-- Project Cards / 项目卡片列表 -->
+ <ProjectCard
+ v-for="drama in dramas"
+ :key="drama.id"
+ :title="drama.title"
+ :description="drama.description"
+ :cover-image="drama.thumbnail"
+ :tag="drama.genre"
+ :updated-at="drama.updated_at"
+ @click="viewDrama(drama.id)"
+ >
+ <template #actions>
+ <ActionButton
+ :icon="Edit"
+ :tooltip="$t('common.edit')"
+ variant="primary"
+ @click="editDrama(drama.id)"
+ />
+ <ActionButton
+ :icon="View"
+ :tooltip="$t('common.view')"
+ @click="viewDrama(drama.id)"
+ />
+ <el-popconfirm
+ :title="$t('drama.deleteConfirm')"
+ :confirm-button-text="$t('common.confirm')"
+ :cancel-button-text="$t('common.cancel')"
+ @confirm="deleteDrama(drama.id)"
+ >
+ <template #reference>
+ <ActionButton
+ :icon="Delete"
+ :tooltip="$t('common.delete')"
+ variant="danger"
+ />
+ </template>
+ </el-popconfirm>
+ </template>
+ </ProjectCard>
</div>
- </div>
- <div v-loading="loading" class="dramas-grid">
- <el-empty v-if="!loading && dramas.length === 0" :description="$t('drama.empty')" />
-
- <el-card
- v-for="drama in dramas"
- :key="drama.id"
- class="drama-card"
- shadow="hover"
- @click="viewDrama(drama.id)"
+ <!-- Edit Dialog / 编辑对话框 -->
+ <el-dialog
+ v-model="editDialogVisible"
+ :title="$t('drama.editProject')"
+ width="520px"
+ :close-on-click-modal="false"
+ class="edit-dialog"
>
- <div class="drama-cover">
- <div class="cover-overlay"></div>
- <img v-if="drama.thumbnail" :src="drama.thumbnail" :alt="drama.title" />
- <div v-else class="cover-placeholder">
- <el-icon :size="64"><Film /></el-icon>
- <p>{{ $t('drama.noCover') }}</p>
+ <el-form
+ :model="editForm"
+ label-position="top"
+ v-loading="editLoading"
+ class="edit-form"
+ >
+ <el-form-item :label="$t('drama.projectName')" required>
+ <el-input
+ v-model="editForm.title"
+ :placeholder="$t('drama.projectNamePlaceholder')"
+ size="large"
+ />
+ </el-form-item>
+ <el-form-item :label="$t('drama.projectDesc')">
+ <el-input
+ v-model="editForm.description"
+ type="textarea"
+ :rows="4"
+ :placeholder="$t('drama.projectDescPlaceholder')"
+ resize="none"
+ />
+ </el-form-item>
+ </el-form>
+ <template #footer>
+ <div class="dialog-footer">
+ <el-button @click="editDialogVisible = false" size="large">{{ $t('common.cancel') }}</el-button>
+ <el-button
+ type="primary"
+ @click="saveEdit"
+ :loading="editLoading"
+ size="large"
+ >
+ {{ $t('common.save') }}
+ </el-button>
</div>
- </div>
+ </template>
+ </el-dialog>
- <div class="drama-info">
- <div class="info-header">
- <h3 class="drama-title">{{ drama.title }}</h3>
- <el-tag v-if="drama.genre" class="genre-tag" size="small">{{ drama.genre }}</el-tag>
- </div>
-
- <p class="drama-description">{{ drama.description || $t('drama.noDescription') }}</p>
-
- <div class="drama-footer">
- <div class="meta-info">
- <span class="meta-item">
- <el-icon><Clock /></el-icon>
- {{ formatDate(drama.updated_at) }}
- </span>
- </div>
-
- <div class="drama-actions" @click.stop>
- <el-button size="small" text @click="editDrama(drama.id)">
- <el-icon><Edit /></el-icon>
- </el-button>
- <el-button size="small" text type="primary" @click="viewDrama(drama.id)">
- <el-icon><View /></el-icon>
- </el-button>
- <el-popconfirm
- :title="$t('drama.deleteConfirm')"
- @confirm="deleteDrama(drama.id)"
- >
- <template #reference>
- <el-button size="small" text type="danger">
- <el-icon><Delete /></el-icon>
- </el-button>
- </template>
- </el-popconfirm>
- </div>
- </div>
- </div>
- </el-card>
+ <!-- Create Drama Dialog / 创建短剧弹窗 -->
+ <CreateDramaDialog
+ v-model="createDialogVisible"
+ @created="loadDramas"
+ />
+
+ <!-- AI Config Dialog / AI配置弹窗 -->
+ <AIConfigDialog v-model="showAIConfig" />
</div>
- <el-pagination
- v-if="total > 0"
- v-model:current-page="queryParams.page"
- v-model:page-size="queryParams.page_size"
- :total="total"
- :page-sizes="[12, 24, 36, 48]"
- layout="total, sizes, prev, pager, next, jumper"
- @size-change="loadDramas"
- @current-change="loadDramas"
- />
-
- <!-- 编辑对话框 -->
- <el-dialog
- v-model="editDialogVisible"
- title="编辑项目"
- width="600px"
- :close-on-click-modal="false"
- >
- <el-form :model="editForm" label-width="80px" v-loading="editLoading">
- <el-form-item label="项目名称" required>
- <el-input v-model="editForm.title" placeholder="请输入项目名称" />
- </el-form-item>
- <el-form-item label="项目描述">
- <el-input
- v-model="editForm.description"
- type="textarea"
- :rows="4"
- placeholder="请输入项目描述"
+ <!-- Sticky Pagination / 吸底分页器 -->
+ <div v-if="total > 0" class="pagination-sticky">
+ <div class="pagination-inner">
+ <div class="pagination-info">
+ <span class="pagination-total">{{ $t('drama.totalProjects', { count: total }) }}</span>
+ </div>
+ <div class="pagination-controls">
+ <el-pagination
+ v-model:current-page="queryParams.page"
+ v-model:page-size="queryParams.page_size"
+ :total="total"
+ :page-sizes="[12, 24, 36, 48]"
+ :pager-count="5"
+ layout="prev, pager, next"
+ @size-change="loadDramas"
+ @current-change="loadDramas"
/>
- </el-form-item>
- </el-form>
- <template #footer>
- <el-button @click="editDialogVisible = false">取消</el-button>
- <el-button type="primary" @click="saveEdit" :loading="editLoading">保存</el-button>
- </template>
- </el-dialog>
+ </div>
+ <div class="pagination-size">
+ <span class="size-label">{{ $t('common.perPage') }}</span>
+ <el-select
+ v-model="queryParams.page_size"
+ size="small"
+ class="size-select"
+ @change="loadDramas"
+ >
+ <el-option :value="12" label="12" />
+ <el-option :value="24" label="24" />
+ <el-option :value="36" label="36" />
+ <el-option :value="48" label="48" />
+ </el-select>
+ </div>
+ </div>
+ </div>
</div>
</template>
@@ -125,9 +175,18 @@
import { ref, onMounted } from 'vue'
import { useRouter } from 'vue-router'
import { ElMessage } from 'element-plus'
-import { Plus, Clock, Film, Setting } from '@element-plus/icons-vue'
+import {
+ Plus,
+ Film,
+ Setting,
+ Edit,
+ View,
+ Delete,
+ InfoFilled
+} from '@element-plus/icons-vue'
import { dramaAPI } from '@/api/drama'
-import type { Drama, DramaListQuery, DramaStatus } from '@/types/drama'
+import type { Drama, DramaListQuery } from '@/types/drama'
+import { PageHeader, ProjectCard, ThemeToggle, ActionButton, CreateDramaDialog, EmptyState, AIConfigDialog } from '@/components/common'
import LanguageSwitcher from '@/components/LanguageSwitcher.vue'
const router = useRouter()
@@ -140,6 +199,11 @@ const queryParams = ref<DramaListQuery>({
page_size: 12
})
+// Create dialog state / 创建弹窗状态
+const createDialogVisible = ref(false)
+const showAIConfig = ref(false)
+
+// Load drama list / 加载短剧列表
const loadDramas = async () => {
loading.value = true
try {
@@ -153,18 +217,11 @@ const loadDramas = async () => {
}
}
-const handleCreate = () => {
- router.push('/dramas/create')
-}
-
-const goToAIConfig = () => {
- router.push('/settings/ai-config')
-}
-
-const viewDrama = (id: string) => {
- router.push(`/dramas/${id}`)
-}
+// Navigation handlers / 导航处理
+const handleCreate = () => createDialogVisible.value = true
+const viewDrama = (id: string) => router.push(`/dramas/${id}`)
+// Edit dialog state / 编辑对话框状态
const editDialogVisible = ref(false)
const editLoading = ref(false)
const editForm = ref({
@@ -173,6 +230,7 @@ const editForm = ref({
description: ''
})
+// Open edit dialog / 打开编辑对话框
const editDrama = async (id: string) => {
editLoading.value = true
editDialogVisible.value = true
@@ -191,6 +249,7 @@ const editDrama = async (id: string) => {
}
}
+// Save edit changes / 保存编辑更改
const saveEdit = async () => {
if (!editForm.value.title) {
ElMessage.warning('请输入项目名称')
@@ -213,6 +272,7 @@ const saveEdit = async () => {
}
}
+// Delete drama / 删除短剧
const deleteDrama = async (id: string) => {
try {
await dramaAPI.delete(id)
@@ -223,243 +283,228 @@ const deleteDrama = async (id: string) => {
}
}
-
-const formatDate = (dateString: string) => {
- const date = new Date(dateString)
- const now = new Date()
- const diff = now.getTime() - date.getTime()
- const days = Math.floor(diff / (1000 * 60 * 60 * 24))
-
- if (days === 0) return '今天'
- if (days === 1) return '昨天'
- if (days < 7) return `${days}天前`
- return date.toLocaleDateString()
-}
-
onMounted(() => {
loadDramas()
})
</script>
<style scoped>
-.drama-list-container {
+/* ========================================
+ Page Layout / 页面布局 - 紧凑边距
+ ======================================== */
+.page-container {
min-height: 100vh;
- background: #f5f5f5;
- padding: 24px;
- max-width: 1400px;
- margin: 0 auto;
+ background: var(--bg-primary);
+ padding: var(--space-2) var(--space-3);
+ transition: background var(--transition-normal);
}
-.page-header-wrapper {
- margin-bottom: 32px;
+@media (min-width: 768px) {
+ .page-container {
+ padding: var(--space-3) var(--space-4);
+ }
}
-.page-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 24px 0;
+@media (min-width: 1024px) {
+ .page-container {
+ padding: var(--space-4) var(--space-5);
+ }
}
-.page-header h2 {
- margin: 0 0 8px 0;
- font-size: 28px;
- font-weight: 600;
- color: #303133;
- letter-spacing: -0.5px;
+.content-wrapper {
+ margin: 0 auto;
+ width: 100%;
}
-.subtitle {
- margin: 0;
- color: #64748b;
- font-size: 15px;
+/* ========================================
+ Header Buttons / 头部按钮
+ ======================================== */
+.header-btn {
+ border-radius: var(--radius-lg);
font-weight: 500;
}
-.dramas-grid {
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
- gap: 20px;
- margin-bottom: 32px;
- min-height: 400px;
+.header-btn.primary {
+ background: linear-gradient(135deg, var(--accent) 0%, #0284c7 100%);
+ border: none;
+ box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}
-.drama-card {
- cursor: pointer;
- transition: all 0.2s ease;
- border-radius: 8px;
- overflow: hidden;
- background: white;
- border: 1px solid #e8e8e8;
- box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
+.header-btn.primary:hover {
+ transform: translateY(-1px);
+ box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45);
}
-.drama-card:hover {
- transform: translateY(-2px);
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
- border-color: #409eff;
+@media (max-width: 640px) {
+ .btn-text {
+ display: none;
+ }
+
+ .header-btn {
+ padding: 0.5rem 0.75rem;
+ }
}
-.drama-cover {
- position: relative;
- width: 100%;
- height: 180px;
- overflow: hidden;
- background: linear-gradient(135deg, #409eff 0%, #66b1ff 100%);
+/* ========================================
+ Projects Grid / 项目网格 - 紧凑间距
+ ======================================== */
+.projects-grid {
+ display: grid;
+ grid-template-columns: repeat(2, 1fr);
+ gap: var(--space-2);
+ margin-bottom: var(--space-4);
+ min-height: 300px;
+ padding-bottom: 4rem;
}
-.cover-overlay {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
- opacity: 0;
- transition: opacity 0.2s ease;
- z-index: 1;
+@media (min-width: 640px) {
+ .projects-grid {
+ grid-template-columns: repeat(3, 1fr);
+ gap: var(--space-2);
+ }
}
-.drama-card:hover .cover-overlay {
- opacity: 1;
+@media (min-width: 900px) {
+ .projects-grid {
+ grid-template-columns: repeat(4, 1fr);
+ gap: var(--space-3);
+ }
}
-.drama-cover img {
- width: 100%;
- height: 100%;
- object-fit: cover;
- transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
+@media (min-width: 1200px) {
+ .projects-grid {
+ grid-template-columns: repeat(5, 1fr);
+ }
}
-.drama-card:hover .drama-cover img {
- transform: scale(1.05);
+@media (min-width: 1500px) {
+ .projects-grid {
+ grid-template-columns: repeat(6, 1fr);
+ }
}
-.cover-placeholder {
- width: 100%;
- height: 100%;
+.projects-grid.is-empty {
display: flex;
- flex-direction: column;
align-items: center;
justify-content: center;
- gap: 8px;
- color: white;
- opacity: 0.8;
}
-.cover-placeholder p {
- margin: 0;
- font-size: 13px;
- font-weight: 500;
+/* ========================================
+ Sticky Pagination / 吸底分页器
+ ======================================== */
+.pagination-sticky {
+ position: fixed;
+ bottom: 0;
+ left: 0;
+ right: 0;
+ z-index: 100;
+ background: rgba(255, 255, 255, 0.85);
+ backdrop-filter: blur(16px);
+ border-top: 1px solid var(--border-primary);
+ box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}
-.drama-info {
- padding: 20px;
+.dark .pagination-sticky {
+ background: rgba(10, 15, 26, 0.9);
+ border-top: 1px solid var(--border-primary);
+ box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}
-.info-header {
+.pagination-inner {
display: flex;
align-items: center;
- justify-content: space-between;
- gap: 12px;
- margin-bottom: 12px;
+ justify-content: flex-end;
+ margin: 0 auto;
+ padding: var(--space-3) var(--space-4);
+ gap: var(--space-4);
}
-.drama-title {
- margin: 0;
- font-size: 16px;
- font-weight: 600;
- color: #303133;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- letter-spacing: -0.3px;
- flex: 1;
+@media (min-width: 768px) {
+ .pagination-inner {
+ padding: var(--space-3) var(--space-6);
+ }
}
-.genre-tag {
- background: #409eff;
- color: white;
- border: none;
- border-radius: 4px;
- padding: 2px 8px;
+.pagination-info {
+ display: none;
+}
+
+@media (min-width: 768px) {
+ .pagination-info {
+ display: block;
+ }
+}
+
+.pagination-total {
+ font-size: 0.8125rem;
+ color: var(--text-muted);
font-weight: 500;
- font-size: 11px;
- flex-shrink: 0;
}
-.drama-description {
- margin: 0 0 16px 0;
- font-size: 13px;
- color: #64748b;
- line-height: 1.6;
- height: 42px;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- -webkit-box-orient: vertical;
+.pagination-controls {
+ display: flex;
}
-.drama-footer {
+.pagination-size {
display: flex;
align-items: center;
- justify-content: space-between;
- padding-top: 12px;
- border-top: 1px solid #e0e0e0;
+ gap: var(--space-2);
}
-.meta-info {
- flex: 1;
+.size-label {
+ font-size: 0.8125rem;
+ color: var(--text-muted);
+ display: none;
}
-.meta-item {
- display: inline-flex;
- align-items: center;
- gap: 5px;
- font-size: 12px;
- color: #94a3b8;
- font-weight: 500;
+@media (min-width: 768px) {
+ .size-label {
+ display: block;
+ }
}
-.meta-item .el-icon {
- font-size: 14px;
+.size-select {
+ width: 4.5rem;
}
-.drama-actions {
- display: flex;
- gap: 4px;
- align-items: center;
+.size-select :deep(.el-input__wrapper) {
+ height: 2rem;
+ border-radius: var(--radius-md);
+ background: var(--bg-card);
}
-.drama-actions .el-button {
- padding: 6px;
- border-radius: 4px;
- transition: all 0.2s ease;
+/* ========================================
+ Edit Dialog / 编辑对话框
+ ======================================== */
+.edit-dialog :deep(.el-dialog) {
+ border-radius: var(--radius-xl);
}
-.drama-actions .el-button:hover {
- background: #f0f0f0;
+.edit-dialog :deep(.el-dialog__header) {
+ padding: 1.25rem 1.5rem;
+ border-bottom: 1px solid var(--border-primary);
+ margin-right: 0;
}
-.drama-actions .el-button.is-text[type="primary"]:hover {
- background: #ecf5ff;
- color: #409eff;
+.edit-dialog :deep(.el-dialog__title) {
+ font-size: 1.125rem;
+ font-weight: 600;
+ color: var(--text-primary);
}
-.drama-actions .el-button.is-text[type="danger"]:hover {
- background: #fef0f0;
- color: #f56c6c;
+.edit-dialog :deep(.el-dialog__body) {
+ padding: 1.5rem;
}
+.edit-form :deep(.el-form-item__label) {
+ font-weight: 500;
+ color: var(--text-primary);
+ margin-bottom: 0.5rem;
+}
-.pagination {
+.dialog-footer {
display: flex;
- justify-content: center;
- margin-top: 32px;
- padding: 20px;
- background: #ffffff;
- border-radius: 12px;
- border: 1px solid #e4e7ed;
+ justify-content: flex-end;
+ gap: 0.75rem;
}
</style>
diff --git a/web/src/views/drama/DramaManagement.vue b/web/src/views/drama/DramaManagement.vue
index 81987b7..ac37039 100644
--- a/web/src/views/drama/DramaManagement.vue
+++ b/web/src/views/drama/DramaManagement.vue
@@ -1,61 +1,48 @@
<template>
- <div class="drama-management">
- <div class="page-header">
- <div class="header-left">
- <el-button :icon="ArrowLeft" @click="router.back()">{{ $t('common.back') }}</el-button>
- <div class="drama-info">
- <h1>{{ drama?.title }}</h1>
- </div>
- </div>
- </div>
-
- <el-tabs v-model="activeTab" class="management-tabs">
+ <div class="page-container">
+ <div class="content-wrapper animate-fade-in">
+ <!-- Page Header / 页面头部 -->
+ <PageHeader
+ :title="drama?.title || ''"
+ :subtitle="drama?.description || $t('drama.management.overview')"
+ :show-back="true"
+ :back-text="$t('common.back')"
+ />
+
+ <!-- Tabs / 标签页 -->
+ <div class="tabs-wrapper">
+ <el-tabs v-model="activeTab" class="management-tabs">
<!-- 项目概览 -->
<el-tab-pane :label="$t('drama.management.overview')" name="overview">
- <el-row :gutter="20">
- <el-col :span="8">
- <el-card shadow="hover">
- <template #header>
- <div class="card-header">
- <el-icon :size="24" color="#409eff"><Document /></el-icon>
- <span>{{ $t('drama.management.episodeStats') }}</span>
- </div>
- </template>
- <div class="stat-content">
- <div class="stat-number">{{ episodesCount }}</div>
- <div class="stat-label">{{ $t('drama.management.episodesCreated') }}</div>
- </div>
- </el-card>
- </el-col>
- <el-col :span="8">
- <el-card shadow="hover">
- <template #header>
- <div class="card-header">
- <el-icon :size="24" color="#67c23a"><User /></el-icon>
- <span>{{ $t('drama.management.characterStats') }}</span>
- </div>
- </template>
- <div class="stat-content">
- <div class="stat-number">{{ charactersCount }}</div>
- <div class="stat-label">{{ $t('drama.management.charactersCreated') }}</div>
- </div>
- </el-card>
- </el-col>
- <el-col :span="8">
- <el-card shadow="hover">
- <template #header>
- <div class="card-header">
- <el-icon :size="24" color="#e6a23c"><Picture /></el-icon>
- <span>{{ $t('drama.management.sceneStats') }}</span>
- </div>
- </template>
- <div class="stat-content">
- <div class="stat-number">{{ scenesCount }}</div>
- <div class="stat-label">{{ $t('drama.management.sceneLibraryCount') }}</div>
- </div>
- </el-card>
- </el-col>
- </el-row>
+ <div class="stats-grid">
+ <StatCard
+ :label="$t('drama.management.episodeStats')"
+ :value="episodesCount"
+ :icon="Document"
+ icon-color="var(--accent)"
+ icon-bg="var(--accent-light)"
+ value-color="var(--accent)"
+ :description="$t('drama.management.episodesCreated')"
+ />
+ <StatCard
+ :label="$t('drama.management.characterStats')"
+ :value="charactersCount"
+ :icon="User"
+ icon-color="var(--success)"
+ icon-bg="var(--success-light)"
+ value-color="var(--success)"
+ :description="$t('drama.management.charactersCreated')"
+ />
+ <StatCard
+ :label="$t('drama.management.sceneStats')"
+ :value="scenesCount"
+ :icon="Picture"
+ icon-color="var(--warning)"
+ icon-bg="var(--warning-light)"
+ value-color="var(--warning)"
+ :description="$t('drama.management.sceneLibraryCount')"
+ />
+ </div>
<!-- 引导卡片:无章节时显示 -->
<el-alert
@@ -75,7 +62,7 @@
<el-card shadow="never" style="margin-top: 20px;">
<template #header>
- <h3>{{ $t('drama.management.projectInfo') }}</h3>
+ <h3 class="card-title">{{ $t('drama.management.projectInfo') }}</h3>
</template>
<el-descriptions :column="2" border>
<el-descriptions-item :label="$t('drama.management.projectName')">{{ drama?.title }}</el-descriptions-item>
@@ -101,7 +88,7 @@
style="margin-top: 40px;"
>
<template #image>
- <el-icon :size="80" color="#409eff"><Document /></el-icon>
+ <el-icon :size="80" class="empty-icon"><Document /></el-icon>
</template>
<el-button type="primary" :icon="Plus" @click="createNewEpisode">
{{ $t('drama.management.createFirstEpisode') }}
@@ -205,9 +192,10 @@
<el-empty v-if="scenes.length === 0" :description="$t('drama.management.noScenes')" />
</el-tab-pane>
- </el-tabs>
+ </el-tabs>
+ </div>
- <!-- 添加角色对话框 -->
+ <!-- 添加角色对话框 -->
<el-dialog v-model="addCharacterDialogVisible" :title="$t('character.add')" width="600px">
<el-form :model="newCharacter" label-width="100px">
<el-form-item :label="$t('character.name')">
@@ -251,6 +239,7 @@
<el-button type="primary" @click="addScene">{{ $t('common.confirm') }}</el-button>
</template>
</el-dialog>
+ </div>
</div>
</template>
@@ -261,6 +250,7 @@ import { ElMessage, ElMessageBox } from 'element-plus'
import { ArrowLeft, Document, User, Picture, Plus } from '@element-plus/icons-vue'
import { dramaAPI } from '@/api/drama'
import type { Drama } from '@/types/drama'
+import { PageHeader, StatCard, EmptyState } from '@/components/common'
const router = useRouter()
const route = useRoute()
@@ -547,93 +537,126 @@ onMounted(() => {
</script>
<style scoped>
-.drama-management {
- padding: 20px;
- background: #f5f7fa;
+/* ========================================
+ Page Layout / 页面布局 - 紧凑边距
+ ======================================== */
+.page-container {
min-height: 100vh;
+ background: var(--bg-primary);
+ padding: var(--space-2) var(--space-3);
+ transition: background var(--transition-normal);
}
-.page-header {
- background: white;
- padding: 20px;
- border-radius: 8px;
- margin-bottom: 20px;
- box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
+@media (min-width: 768px) {
+ .page-container {
+ padding: var(--space-3) var(--space-4);
+ }
}
-.header-left {
- display: flex;
- align-items: center;
- gap: 16px;
+@media (min-width: 1024px) {
+ .page-container {
+ padding: var(--space-4) var(--space-5);
+ }
}
-.drama-info {
- display: flex;
- align-items: center;
- gap: 12px;
+.content-wrapper {
+ margin: 0 auto;
+ width: 100%;
}
-.drama-info h1 {
- margin: 0;
- font-size: 24px;
- font-weight: 600;
+/* ========================================
+ Stats Grid / 统计网格 - 紧凑间距
+ ======================================== */
+.stats-grid {
+ display: grid;
+ grid-template-columns: repeat(1, 1fr);
+ gap: var(--space-2);
+ margin-bottom: var(--space-3);
}
-.management-tabs {
- background: white;
- padding: 20px;
- border-radius: 8px;
- box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
+@media (min-width: 640px) {
+ .stats-grid {
+ grid-template-columns: repeat(2, 1fr);
+ gap: var(--space-3);
+ }
}
-.tab-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 16px;
+@media (min-width: 1024px) {
+ .stats-grid {
+ grid-template-columns: repeat(3, 1fr);
+ }
}
-.tab-header h2 {
- margin: 0;
- font-size: 20px;
- font-weight: 600;
+/* ========================================
+ Tabs Wrapper / 标签页容器 - 紧凑内边距
+ ======================================== */
+.tabs-wrapper {
+ background: var(--bg-card);
+ border: 1px solid var(--border-primary);
+ border-radius: var(--radius-lg);
+ padding: var(--space-3);
+ box-shadow: var(--shadow-card);
}
-.card-header {
- display: flex;
- align-items: center;
- gap: 8px;
- font-weight: 600;
+@media (min-width: 768px) {
+ .tabs-wrapper {
+ padding: var(--space-4);
+ }
}
-.stat-content {
- text-align: center;
- padding: 20px 0;
+/* ========================================
+ Tab Header / 标签页头部
+ ======================================== */
+.tab-header {
+ display: flex;
+ flex-direction: column;
+ gap: var(--space-3);
+ margin-bottom: var(--space-4);
}
-.stat-number {
- font-size: 36px;
- font-weight: 700;
- color: #409eff;
- margin-bottom: 8px;
+@media (min-width: 640px) {
+ .tab-header {
+ flex-direction: row;
+ justify-content: space-between;
+ align-items: center;
+ }
}
-.stat-label {
- font-size: 14px;
- color: #909399;
+.tab-header h2 {
+ margin: 0;
+ font-size: 1.125rem;
+ font-weight: 600;
+ color: var(--text-primary);
+ letter-spacing: -0.01em;
}
+/* ========================================
+ Character & Scene Cards / 角色场景卡片
+ ======================================== */
.character-card, .scene-card {
- margin-bottom: 16px;
+ margin-bottom: var(--space-4);
+ border: 1px solid var(--border-primary);
+ border-radius: var(--radius-xl);
+ overflow: hidden;
+ transition: all var(--transition-normal);
+}
+
+.character-card:hover, .scene-card:hover {
+ border-color: var(--border-secondary);
+ box-shadow: var(--shadow-card-hover);
+}
+
+.character-card :deep(.el-card__body),
+.scene-card :deep(.el-card__body) {
+ padding: 0;
}
.character-preview, .scene-preview {
display: flex;
justify-content: center;
align-items: center;
- height: 180px;
- background: linear-gradient(135deg, #f5f7fa 0%, #e8eaf0 100%);
- margin: -20px -20px 12px -20px;
+ height: 160px;
+ background: linear-gradient(135deg, var(--accent) 0%, #06b6d4 100%);
overflow: hidden;
}
@@ -641,37 +664,135 @@ onMounted(() => {
width: 100%;
height: 100%;
object-fit: cover;
+ transition: transform var(--transition-normal);
+}
+
+.character-card:hover .character-preview img,
+.scene-card:hover .scene-preview img {
+ transform: scale(1.05);
}
.scene-placeholder {
- color: #c0c4cc;
+ color: rgba(255, 255, 255, 0.7);
}
.character-info, .scene-info {
text-align: center;
- margin-bottom: 12px;
+ padding: var(--space-4);
}
.character-info h4, .scene-info h4 {
- margin: 0 0 8px 0;
- font-size: 16px;
+ margin: 0 0 var(--space-2) 0;
+ font-size: 1rem;
font-weight: 600;
+ color: var(--text-primary);
}
.desc {
- font-size: 13px;
- color: #606266;
- margin: 8px 0;
+ font-size: 0.8125rem;
+ color: var(--text-muted);
+ margin: var(--space-2) 0;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
+ line-clamp: 2;
-webkit-box-orient: vertical;
}
.character-actions, .scene-actions {
display: flex;
- gap: 8px;
+ gap: var(--space-2);
justify-content: center;
+ padding: 0 var(--space-4) var(--space-4);
+}
+
+.empty-icon {
+ color: var(--accent);
+}
+
+/* ========================================
+ Dark Mode / 深色模式
+ ======================================== */
+.dark .tabs-wrapper {
+ background: var(--bg-card);
+}
+
+.dark :deep(.el-card) {
+ background: var(--bg-card);
+ border-color: var(--border-primary);
+}
+
+.dark :deep(.el-card__header) {
+ background: var(--bg-secondary);
+ border-color: var(--border-primary);
+}
+
+.dark :deep(.el-table) {
+ background: var(--bg-card);
+}
+
+.dark :deep(.el-table th),
+.dark :deep(.el-table tr) {
+ background: var(--bg-card);
+}
+
+.dark :deep(.el-table td),
+.dark :deep(.el-table th) {
+ border-color: var(--border-primary);
+}
+
+.dark :deep(.el-descriptions) {
+ background: var(--bg-card);
+}
+
+.dark :deep(.el-descriptions__label) {
+ background: var(--bg-secondary);
+ color: var(--text-secondary);
+ border-color: var(--border-primary);
+}
+
+.dark :deep(.el-descriptions__content) {
+ background: var(--bg-card);
+ color: var(--text-primary);
+ border-color: var(--border-primary);
+}
+
+.dark :deep(.el-descriptions__cell) {
+ border-color: var(--border-primary);
+}
+
+.card-title {
+ margin: 0;
+ font-size: 1rem;
+ font-weight: 600;
+ color: var(--text-primary);
+}
+
+.dark :deep(.el-dialog) {
+ background: var(--bg-card);
+}
+
+.dark :deep(.el-dialog__header) {
+ background: var(--bg-card);
+}
+
+.dark :deep(.el-form-item__label) {
+ color: var(--text-primary);
+}
+
+.dark :deep(.el-input__wrapper) {
+ background: var(--bg-secondary);
+ box-shadow: 0 0 0 1px var(--border-primary) inset;
+}
+
+.dark :deep(.el-input__inner) {
+ color: var(--text-primary);
+}
+
+.dark :deep(.el-textarea__inner) {
+ background: var(--bg-secondary);
+ color: var(--text-primary);
+ box-shadow: 0 0 0 1px var(--border-primary) inset;
}
</style>
diff --git a/web/src/views/drama/DramaWorkflow.vue b/web/src/views/drama/DramaWorkflow.vue
index 004cdc7..d38b844 100644
--- a/web/src/views/drama/DramaWorkflow.vue
+++ b/web/src/views/drama/DramaWorkflow.vue
@@ -1327,12 +1327,17 @@ onMounted(() => {
<style scoped>
.workflow-container {
min-height: 100vh;
- background: #f5f7fa;
+ background: #f8fafc;
+ transition: background var(--transition-normal);
+}
+
+.dark .workflow-container {
+ background: #0f172a;
}
.workflow-header {
- background: #ffffff;
- border-bottom: 1px solid #e4e7ed;
+ background: var(--bg-card);
+ border-bottom: 1px solid var(--border-primary);
padding: 10px 24px;
margin-bottom: 0;
}
@@ -1352,20 +1357,20 @@ onMounted(() => {
}
.back-btn {
- color: #606266;
+ color: var(--text-secondary);
padding: 0;
margin-right: 4px;
}
.back-btn:hover {
- color: #409eff;
+ color: #0ea5e9;
}
.drama-title {
margin: 0;
font-size: 14px;
font-weight: 600;
- color: #303133;
+ color: var(--text-primary);
white-space: nowrap;
}
diff --git a/web/src/views/drama/EpisodeWorkflow.vue b/web/src/views/drama/EpisodeWorkflow.vue
index 7d2a7e2..2fb91fb 100644
--- a/web/src/views/drama/EpisodeWorkflow.vue
+++ b/web/src/views/drama/EpisodeWorkflow.vue
@@ -1,32 +1,39 @@
<template>
- <div class="episode-workflow-container">
- <div class="workflow-header">
- <div class="header-left">
- <el-button :icon="ArrowLeft" @click="goBack">{{ $t('workflow.backToProject') }}</el-button>
- <h1>{{ $t('workflow.episodeProduction', { number: episodeNumber }) }}</h1>
- </div>
- <div class="steps-inline">
- <div class="custom-steps">
- <div class="step-item" :class="{ active: currentStep >= 0, current: currentStep === 0 }">
- <div class="step-circle">1</div>
- <span class="step-text">{{ $t('workflow.steps.content') }}</span>
+ <div class="page-container">
+ <div class="content-wrapper animate-fade-in">
+ <header class="page-header">
+ <div class="header-content">
+ <div class="header-left">
+ <button class="back-btn" @click="$router.back()">
+ <el-icon><ArrowLeft /></el-icon>
+ <span>{{ $t('workflow.backToProject') }}</span>
+ </button>
+ <div class="nav-divider"></div>
+ <h1 class="header-title">{{ $t('workflow.episodeProduction', { number: episodeNumber }) }}</h1>
</div>
- <el-icon class="step-arrow"><ArrowRight /></el-icon>
- <div class="step-item" :class="{ active: currentStep >= 1, current: currentStep === 1 }">
- <div class="step-circle">2</div>
- <span class="step-text">{{ $t('workflow.steps.generateImages') }}</span>
+ <div class="header-center">
+ <div class="custom-steps">
+ <div class="step-item" :class="{ active: currentStep >= 0, current: currentStep === 0 }">
+ <div class="step-circle">1</div>
+ <span class="step-text">{{ $t('workflow.steps.content') }}</span>
+ </div>
+ <el-icon class="step-arrow"><ArrowRight /></el-icon>
+ <div class="step-item" :class="{ active: currentStep >= 1, current: currentStep === 1 }">
+ <div class="step-circle">2</div>
+ <span class="step-text">{{ $t('workflow.steps.generateImages') }}</span>
+ </div>
+ <el-icon class="step-arrow"><ArrowRight /></el-icon>
+ <div class="step-item" :class="{ active: currentStep >= 2, current: currentStep === 2 }">
+ <div class="step-circle">3</div>
+ <span class="step-text">{{ $t('workflow.steps.splitStoryboard') }}</span>
+ </div>
+ </div>
</div>
- <el-icon class="step-arrow"><ArrowRight /></el-icon>
- <div class="step-item" :class="{ active: currentStep >= 2, current: currentStep === 2 }">
- <div class="step-circle">3</div>
- <span class="step-text">{{ $t('workflow.steps.splitStoryboard') }}</span>
+ <div class="header-right">
+ <el-button :icon="Setting" circle @click="showModelConfigDialog" :title="$t('workflow.modelConfig')" />
</div>
</div>
- </div>
- <div class="header-right">
- <el-button :icon="Setting" circle @click="showModelConfigDialog" :title="$t('workflow.modelConfig')" />
- </div>
- </div>
+ </header>
<!-- 阶段 0: 章节内容 + 提取角色场景 -->
<el-card v-show="currentStep === 0" shadow="never" class="stage-card stage-card-fullscreen">
@@ -89,28 +96,28 @@
<!-- 角色列表 -->
<div v-if="hasCharacters" style="margin-bottom: 16px;">
- <h4 style="margin-bottom: 8px; color: #606266;">{{ $t('workflow.extractedCharacters') }}:</h4>
+ <h4 class="extracted-title">{{ $t('workflow.extractedCharacters') }}:</h4>
<div style="display: flex; flex-wrap: wrap; gap: 8px;">
<el-tag
v-for="char in currentEpisode?.characters"
:key="char.id"
type="info"
>
- {{ char.name }} <span v-if="char.role" style="color: #909399; margin-left: 4px;">({{ char.role }})</span>
+ {{ char.name }} <span v-if="char.role" class="secondary-text">({{ char.role }})</span>
</el-tag>
</div>
</div>
<!-- 场景列表 -->
<div v-if="currentEpisode?.scenes && currentEpisode.scenes.length > 0">
- <h4 style="margin-bottom: 8px; color: #606266;">{{ $t('workflow.extractedScenes') }}:</h4>
+ <h4 class="extracted-title">{{ $t('workflow.extractedScenes') }}:</h4>
<div style="display: flex; flex-wrap: wrap; gap: 8px;">
<el-tag
v-for="scene in currentEpisode.scenes"
:key="scene.id"
type="warning"
>
- {{ scene.location }} <span style="color: #909399; margin-left: 4px;">· {{ scene.time }}</span>
+ {{ scene.location }} <span class="secondary-text">· {{ scene.time }}</span>
</el-tag>
</div>
</div>
@@ -445,9 +452,19 @@
{{ row.movement || '-' }}
</template>
</el-table-column>
- <el-table-column :label="$t('storyboard.table.location')" width="150" show-overflow-tooltip>
+ <el-table-column :label="$t('storyboard.table.location')" width="150">
<template #default="{ row }">
- {{ row.location || '-' }}
+ <el-popover
+ placement="right"
+ :width="300"
+ trigger="hover"
+ :content="row.action || '-'"
+ >
+ <template #reference>
+ <!-- 单行打点 -->
+ <span class="overflow-tooltip">{{ row.location || '-' }}</span>
+ </template>
+ </el-popover>
</template>
</el-table-column>
<el-table-column :label="$t('storyboard.table.character')" width="100">
@@ -458,9 +475,19 @@
<span v-else>-</span>
</template>
</el-table-column>
- <el-table-column :label="$t('storyboard.table.action')" show-overflow-tooltip>
+ <el-table-column :label="$t('storyboard.table.action')">
<template #default="{ row }">
- {{ row.action || '-' }}
+ <el-popover
+ placement="right"
+ :width="300"
+ trigger="hover"
+ :content="row.action || '-'"
+ >
+ <template #reference>
+ <!-- 单行打点 -->
+ <span class="overflow-tooltip">{{ row.action || '-' }}</span>
+ </template>
+ </el-popover>
</template>
</el-table-column>
<el-table-column :label="$t('storyboard.table.duration')" width="80">
@@ -522,7 +549,7 @@
<span style="font-size: 12px;">{{ percentage }}%</span>
</template>
</el-progress>
- <div style="margin-top: 8px; font-size: 12px; color: #909399; text-align: center;">
+ <div class="task-message">
{{ taskMessage }}
</div>
</div>
@@ -708,7 +735,7 @@
:value="model.modelName"
/>
</el-select>
- <div style="margin-top: 8px; font-size: 12px; color: #909399;">
+ <div class="model-tip">
{{ $t('workflow.textModelTip') }}
</div>
</el-form-item>
@@ -722,7 +749,7 @@
:value="model.modelName"
/>
</el-select>
- <div style="margin-top: 8px; font-size: 12px; color: #909399;">
+ <div class="model-tip">
{{ $t('workflow.modelConfigTip') }}
</div>
</el-form-item>
@@ -761,6 +788,7 @@
</template>
</el-upload>
</el-dialog>
+ </div>
</div>
</template>
@@ -794,6 +822,7 @@ import { aiAPI } from '@/api/ai'
import type { AIServiceConfig } from '@/types/ai'
import { imageAPI } from '@/api/image'
import type { Drama } from '@/types/drama'
+import PageHeader from '@/components/common/PageHeader.vue'
const route = useRoute()
const router = useRouter()
@@ -1715,53 +1744,108 @@ onMounted(() => {
</script>
<style scoped lang="scss">
-.episode-workflow-container {
- padding: 24px;
- background: #f5f7fa;
+/* ========================================
+ Page Layout / 页面布局 - 紧凑边距
+ ======================================== */
+.page-container {
min-height: 100vh;
+ background: var(--bg-primary);
+ padding: var(--space-2) var(--space-3);
+ transition: background var(--transition-normal);
}
-.workflow-header {
+@media (min-width: 768px) {
+ .page-container {
+ padding: var(--space-3) var(--space-4);
+ }
+}
+
+@media (min-width: 1024px) {
+ .page-container {
+ padding: var(--space-4) var(--space-5);
+ }
+}
+
+.content-wrapper {
+ margin: 0 auto;
+ width: 100%;
+}
+
+/* Header styles matching PageHeader component */
+.page-header {
+ margin-bottom: var(--space-3);
+ padding-bottom: var(--space-3);
+ border-bottom: 1px solid var(--border-primary);
+}
+
+.header-content {
display: flex;
+ align-items: center;
justify-content: space-between;
+ gap: var(--space-4);
+}
+
+.header-left {
+ display: flex;
align-items: center;
- margin-bottom: 24px;
- padding: 20px;
- background: white;
- border-radius: 8px;
- box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
+ gap: var(--space-4);
+ flex-shrink: 0;
+}
- .header-left {
- display: flex;
- align-items: center;
- gap: 16px;
- flex-shrink: 0;
+.back-btn {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.375rem;
+ padding: 0.5rem 0.875rem;
+ background: var(--bg-card);
+ border: 1px solid var(--border-primary);
+ border-radius: var(--radius-lg);
+ color: var(--text-secondary);
+ font-size: 0.875rem;
+ font-weight: 500;
+ cursor: pointer;
+ transition: all var(--transition-fast);
+ white-space: nowrap;
- h1 {
- margin: 0;
- font-size: 24px;
- font-weight: 600;
- }
+ &:hover {
+ background: var(--bg-card-hover);
+ color: var(--text-primary);
+ border-color: var(--border-secondary);
}
+}
- .steps-inline {
- flex: 1;
- display: flex;
- justify-content: center;
- margin: 0 20px;
- }
+.nav-divider {
+ width: 1px;
+ height: 2rem;
+ background: var(--border-primary);
+}
- .header-right {
- flex-shrink: 0;
- }
+.header-title {
+ margin: 0;
+ font-size: 1.5rem;
+ font-weight: 700;
+ color: var(--text-primary);
+ letter-spacing: -0.025em;
+ line-height: 1.2;
+ white-space: nowrap;
+}
+
+.header-center {
+ flex: 1;
+ display: flex;
+ justify-content: center;
+}
+
+.header-right {
+ flex-shrink: 0;
}
.workflow-card {
- margin-bottom: 24px;
- background: white;
- border-radius: 8px;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
- border: 1px solid #e8e8e8;
+ margin-bottom: var(--space-4);
+ background: var(--bg-card);
+ border-radius: var(--radius-lg);
+ box-shadow: var(--shadow-card);
+ border: 1px solid var(--border-primary);
:deep(.el-card__body) {
padding: 0;
@@ -1779,29 +1863,29 @@ onMounted(() => {
gap: 8px;
padding: 8px 16px;
border-radius: 20px;
- background: #f0f0f0;
+ background: var(--bg-card-hover);
transition: all 0.3s;
&.active {
- background: #e6f7ff;
+ background: var(--accent-light);
.step-circle {
- background: #1890ff;
- color: white;
+ background: var(--accent);
+ color: var(--text-inverse);
}
}
&.current {
- background: #1890ff;
- color: white;
+ background: var(--accent);
+ color: var(--text-inverse);
.step-circle {
- background: white;
- color: #1890ff;
+ background: var(--bg-card);
+ color: var(--accent);
}
.step-text {
- color: white;
+ color: var(--text-inverse);
}
}
@@ -1812,8 +1896,8 @@ onMounted(() => {
display: flex;
align-items: center;
justify-content: center;
- background: #d9d9d9;
- color: #666;
+ background: var(--border-secondary);
+ color: var(--text-secondary);
font-weight: 600;
transition: all 0.3s;
}
@@ -1826,7 +1910,7 @@ onMounted(() => {
}
.step-arrow {
- color: #d9d9d9;
+ color: var(--border-secondary);
}
}
@@ -1858,7 +1942,7 @@ onMounted(() => {
p {
margin: 0;
- color: #909399;
+ color: var(--text-muted);
font-size: 14px;
}
}
@@ -1867,7 +1951,7 @@ onMounted(() => {
.stage-body {
padding: 32px;
- background: white;
+ background: var(--bg-card);
}
.action-buttons {
@@ -1905,9 +1989,9 @@ onMounted(() => {
align-items: center;
margin-bottom: 16px;
padding: 16px;
- background: #fafafa;
+ background: var(--bg-secondary);
border-radius: 8px;
- border: 1px solid #e8e8e8;
+ border: 1px solid var(--border-primary);
.section-title {
display: flex;
@@ -1921,10 +2005,10 @@ onMounted(() => {
margin: 0;
font-size: 16px;
font-weight: 600;
- color: #333;
+ color: var(--text-primary);
.el-icon {
- color: #409eff;
+ color: var(--accent);
font-size: 18px;
}
}
@@ -1947,18 +2031,41 @@ onMounted(() => {
text-align: center;
}
+.extracted-title {
+ margin-bottom: 8px;
+ color: var(--text-secondary);
+}
+
+.secondary-text {
+ color: var(--text-muted);
+ margin-left: 4px;
+}
+
+.task-message {
+ margin-top: 8px;
+ font-size: 12px;
+ color: var(--text-muted);
+ text-align: center;
+}
+
+.model-tip {
+ margin-top: 8px;
+ font-size: 12px;
+ color: var(--text-muted);
+}
+
.fixed-card {
height: 100%;
display: flex;
flex-direction: column;
border-radius: 8px;
overflow: hidden;
- border: 1px solid #e8e8e8;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
+ border: 1px solid var(--border-primary);
+ box-shadow: var(--shadow-card);
transition: all 0.2s;
&:hover {
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
+ box-shadow: var(--shadow-card-hover);
}
:deep(.el-card__body) {
@@ -1970,8 +2077,8 @@ onMounted(() => {
.card-header {
padding: 14px;
- background: #fafafa;
- border-bottom: 1px solid #e8e8e8;
+ background: var(--bg-secondary);
+ border-bottom: 1px solid var(--border-primary);
display: flex;
justify-content: space-between;
align-items: center;
@@ -1984,7 +2091,7 @@ onMounted(() => {
margin: 0 0 4px 0;
font-size: 14px;
font-weight: 600;
- color: #333;
+ color: var(--text-primary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
@@ -2003,7 +2110,7 @@ onMounted(() => {
display: flex;
align-items: center;
justify-content: center;
- background: #f8f9fa;
+ background: var(--bg-secondary);
.char-image,
.scene-image {
@@ -2025,12 +2132,12 @@ onMounted(() => {
flex-direction: column;
align-items: center;
justify-content: center;
- color: #a0a0a0;
+ color: var(--text-muted);
padding: 20px;
&.generating {
- color: #e6a23c;
- background: #fdf6ec;
+ color: var(--warning);
+ background: var(--warning-light);
.rotating {
animation: rotating 2s linear infinite;
@@ -2038,8 +2145,8 @@ onMounted(() => {
}
&.failed {
- color: #f56c6c;
- background: #fef0f0;
+ color: var(--error);
+ background: var(--error-light);
}
position: relative;
z-index: 1;
@@ -2057,8 +2164,8 @@ onMounted(() => {
.card-actions {
padding: 10px;
- background: white;
- border-top: 1px solid #e8e8e8;
+ background: var(--bg-card);
+ border-top: 1px solid var(--border-primary);
display: flex;
justify-content: center;
gap: 8px;
@@ -2099,9 +2206,9 @@ onMounted(() => {
transition: all 0.3s;
&:hover {
- border-color: #409eff;
+ border-color: var(--accent);
transform: translateY(-2px);
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
+ box-shadow: var(--shadow-lg);
}
.el-image {
@@ -2113,7 +2220,8 @@ onMounted(() => {
padding: 8px;
text-align: center;
font-size: 12px;
- background: #f5f7fa;
+ background: var(--bg-secondary);
+ color: var(--text-primary);
}
}
}
@@ -2143,4 +2251,79 @@ onMounted(() => {
transform: rotate(360deg);
}
}
+
+/* ========================================
+ Dark Mode / 深色模式
+ ======================================== */
+:deep(.el-card) {
+ background: var(--bg-card);
+ border-color: var(--border-primary);
+}
+
+:deep(.el-card__header) {
+ background: var(--bg-secondary);
+ border-color: var(--border-primary);
+}
+
+:deep(.el-table) {
+ --el-table-bg-color: var(--bg-card);
+ --el-table-header-bg-color: var(--bg-secondary);
+ --el-table-tr-bg-color: var(--bg-card);
+ --el-table-row-hover-bg-color: var(--bg-card-hover);
+ --el-table-border-color: var(--border-primary);
+ --el-table-text-color: var(--text-primary);
+ background: var(--bg-card);
+}
+
+:deep(.el-table th.el-table__cell),
+:deep(.el-table td.el-table__cell) {
+ background: var(--bg-card);
+ border-color: var(--border-primary);
+}
+
+:deep(.el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell) {
+ background: var(--bg-secondary);
+}
+
+:deep(.el-table__header-wrapper th) {
+ background: var(--bg-secondary) !important;
+ color: var(--text-secondary);
+}
+
+:deep(.el-dialog) {
+ background: var(--bg-card);
+}
+
+:deep(.el-dialog__header) {
+ background: var(--bg-card);
+}
+
+:deep(.el-form-item__label) {
+ color: var(--text-primary);
+}
+
+:deep(.el-input__wrapper) {
+ background: var(--bg-secondary);
+ box-shadow: 0 0 0 1px var(--border-primary) inset;
+}
+
+:deep(.el-input__inner) {
+ color: var(--text-primary);
+}
+
+:deep(.el-textarea__inner) {
+ background: var(--bg-secondary);
+ color: var(--text-primary);
+ box-shadow: 0 0 0 1px var(--border-primary) inset;
+}
+
+:deep(.el-select-dropdown) {
+ background: var(--bg-elevated);
+ border-color: var(--border-primary);
+}
+
+:deep(.el-upload-dragger) {
+ background: var(--bg-secondary);
+ border-color: var(--border-primary);
+}
</style>
diff --git a/web/src/views/drama/ProfessionalEditor.vue b/web/src/views/drama/ProfessionalEditor.vue
index 2e7efe3..0382585 100644
--- a/web/src/views/drama/ProfessionalEditor.vue
+++ b/web/src/views/drama/ProfessionalEditor.vue
@@ -4,15 +4,17 @@
<div class="editor-toolbar">
<div class="toolbar-left">
<el-button link @click="goBack" class="back-btn">
- <el-icon><ArrowLeft /></el-icon>
+ <el-icon>
+ <ArrowLeft />
+ </el-icon>
{{ $t('editor.backToEpisode') }}
</el-button>
<el-divider direction="vertical" />
<span class="episode-title">{{ drama?.title }} - {{ $t('editor.episode', { number: episodeNumber }) }}</span>
</div>
-
+
<div class="toolbar-right">
- <el-button :icon="Setting" circle @click="showSettings = true" />
+ <!-- <el-button :icon="Setting" circle @click="showSettings = true" /> -->
</div>
</div>
@@ -24,15 +26,10 @@
<h3>{{ $t('storyboard.scriptStructure') }}</h3>
<el-button text :icon="Plus" @click="handleAddStoryboard">{{ $t('storyboard.add') }}</el-button>
</div>
-
+
<div class="storyboard-list">
- <div
- v-for="(shot, index) in storyboards"
- :key="shot.id"
- class="storyboard-item"
- :class="{ active: currentStoryboardId === shot.id }"
- @click="selectStoryboard(shot.id)"
- >
+ <div v-for="(shot, index) in storyboards" :key="shot.id" class="storyboard-item"
+ :class="{ active: currentStoryboardId === shot.id }" @click="selectStoryboard(shot.id)">
<div class="shot-content">
<div class="shot-header">
<div class="shot-title-row">
@@ -49,17 +46,10 @@
<!-- 中间时间线编辑区域 -->
<div class="timeline-area">
- <VideoTimelineEditor
- ref="timelineEditorRef"
- v-if="storyboards.length > 0"
- :scenes="storyboards"
- :episode-id="episodeId.toString()"
- :drama-id="dramaId.toString()"
- :assets="videoAssets"
- @select-scene="handleTimelineSelect"
- @asset-deleted="loadVideoAssets"
- @merge-completed="handleMergeCompleted"
- />
+ <VideoTimelineEditor ref="timelineEditorRef" v-if="storyboards.length > 0" :scenes="storyboards"
+ :episode-id="episodeId.toString()" :drama-id="dramaId.toString()" :assets="videoAssets"
+ @select-scene="handleTimelineSelect" @asset-deleted="loadVideoAssets"
+ @merge-completed="handleMergeCompleted" />
<el-empty v-else :description="$t('storyboard.noStoryboard')" class="empty-timeline" />
</div>
@@ -69,194 +59,171 @@
<!-- 镜头属性标签 -->
<el-tab-pane :label="$t('storyboard.shotProperties')" name="shot" v-if="currentStoryboard">
<div v-if="currentStoryboard" class="shot-editor-new">
- <!-- 场景(Scene) -->
- <div class="scene-section">
- <div class="section-label">
- {{ $t('storyboard.scene') }} (Scene)
- <el-button size="small" text @click="showSceneSelector = true">{{ $t('storyboard.selectScene') }}</el-button>
- </div>
- <div class="scene-preview" v-if="currentStoryboard.background?.image_url" @click="showSceneImage">
- <img :src="currentStoryboard.background.image_url" alt="场景" style="cursor: pointer;" />
- <div class="scene-info">
- <div>{{ currentStoryboard.background.location }} · {{ currentStoryboard.background.time }}</div>
- <div class="scene-id">{{ $t('editor.sceneId') }}: {{ currentStoryboard.scene_id || 'N/A' }}</div>
- </div>
+ <!-- 场景(Scene) -->
+ <div class="scene-section">
+ <div class="section-label">
+ {{ $t('storyboard.scene') }} (Scene)
+ <el-button size="small" text @click="showSceneSelector = true">{{ $t('storyboard.selectScene')
+ }}</el-button>
+ </div>
+ <div class="scene-preview" v-if="currentStoryboard.background?.image_url" @click="showSceneImage">
+ <img :src="currentStoryboard.background.image_url" alt="场景" style="cursor: pointer;" />
+ <div class="scene-info">
+ <div>{{ currentStoryboard.background.location }} · {{ currentStoryboard.background.time }}</div>
+ <div class="scene-id">{{ $t('editor.sceneId') }}: {{ currentStoryboard.scene_id || 'N/A' }}</div>
</div>
- <div class="scene-preview-empty" v-else>
- <el-icon :size="48" color="#666"><Picture /></el-icon>
- <div>{{ currentStoryboard.background ? $t('editor.sceneGenerating') : $t('editor.noBackground') }}</div>
+ </div>
+ <div class="scene-preview-empty" v-else>
+ <el-icon :size="48" color="#666">
+ <Picture />
+ </el-icon>
+ <div>{{ currentStoryboard.background ? $t('editor.sceneGenerating') : $t('editor.noBackground') }}
</div>
</div>
+ </div>
- <!-- 登场角色(Cast) -->
- <div class="cast-section">
- <div class="section-label">
- {{ $t('editor.cast') }} (Cast)
- <el-button size="small" text :icon="Plus" @click="showCharacterSelector = true">{{ $t('editor.addCharacter') }}</el-button>
- </div>
- <div class="cast-list">
- <div
- v-for="char in currentStoryboardCharacters"
- :key="char.id"
- class="cast-item active"
- >
- <div class="cast-avatar" @click="showCharacterImage(char)">
- <img v-if="char.image_url" :src="char.image_url" :alt="char.name" />
- <span v-else>{{ char.name?.[0] || '?' }}</span>
- </div>
- <div class="cast-name">{{ char.name }}</div>
- <div class="cast-remove" @click.stop="toggleCharacterInShot(char.id)" :title="$t('editor.removeCharacter')">
- <el-icon :size="14"><Close /></el-icon>
- </div>
+ <!-- 登场角色(Cast) -->
+ <div class="cast-section">
+ <div class="section-label">
+ {{ $t('editor.cast') }} (Cast)
+ <el-button size="small" text :icon="Plus" @click="showCharacterSelector = true">{{
+ $t('editor.addCharacter') }}</el-button>
+ </div>
+ <div class="cast-list">
+ <div v-for="char in currentStoryboardCharacters" :key="char.id" class="cast-item active">
+ <div class="cast-avatar" @click="showCharacterImage(char)">
+ <img v-if="char.image_url" :src="char.image_url" :alt="char.name" />
+ <span v-else>{{ char.name?.[0] || '?' }}</span>
</div>
- <div v-if="!currentStoryboard?.characters || currentStoryboard.characters.length === 0" class="cast-empty">
- {{ $t('editor.noCharacters') }}
+ <div class="cast-name">{{ char.name }}</div>
+ <div class="cast-remove" @click.stop="toggleCharacterInShot(char.id)"
+ :title="$t('editor.removeCharacter')">
+ <el-icon :size="14">
+ <Close />
+ </el-icon>
</div>
</div>
+ <div v-if="!currentStoryboard?.characters || currentStoryboard.characters.length === 0"
+ class="cast-empty">
+ {{ $t('editor.noCharacters') }}
+ </div>
</div>
+ </div>
- <!-- 视效设置 -->
- <div class="settings-section">
- <div class="section-label">{{ $t('editor.visualSettings') }}</div>
- <div class="settings-grid">
- <div class="setting-item">
- <label>{{ $t('editor.shotType') }}</label>
- <el-select v-model="currentStoryboard.shot_type" size="small" :placeholder="$t('editor.shotTypePlaceholder')" @change="saveStoryboardField('shot_type')">
- <el-option label="大远景" value="大远景" />
- <el-option label="远景" value="远景" />
- <el-option label="全景" value="全景" />
- <el-option label="中全景" value="中全景" />
- <el-option label="中景" value="中景" />
- <el-option label="中近景" value="中近景" />
- <el-option label="近景" value="近景" />
- <el-option label="特写" value="特写" />
- <el-option label="大特写" value="大特写" />
- </el-select>
- </div>
-
- <div class="setting-item">
- <label>{{ $t('editor.movement') }}</label>
- <el-select v-model="currentStoryboard.movement" size="small" :placeholder="$t('editor.movementPlaceholder')" @change="saveStoryboardField('movement')">
- <el-option label="固定镜头" value="固定镜头" />
- <el-option label="推镜" value="推镜" />
- <el-option label="拉镜" value="拉镜" />
- <el-option label="摇镜" value="摇镜" />
- <el-option label="移镜" value="移镜" />
- <el-option label="跟镜" value="跟镜" />
- <el-option label="升降镜头" value="升降镜头" />
- <el-option label="环绕" value="环绕" />
- <el-option label="甩镜" value="甩镜" />
- <el-option label="变焦" value="变焦" />
- <el-option label="手持晃动" value="手持晃动" />
- <el-option label="稳定器运动" value="稳定器运动" />
- <el-option label="轨道推拉" value="轨道推拉" />
- <el-option label="航拍" value="航拍" />
- </el-select>
- </div>
-
- <div class="setting-item">
- <label>{{ $t('editor.angle') }}</label>
- <el-select v-model="currentStoryboard.angle" size="small" :placeholder="$t('editor.anglePlaceholder')" @change="saveStoryboardField('angle')">
- <el-option label="平视" value="平视" />
- <el-option label="俯视" value="俯视" />
- <el-option label="仰视" value="仰视" />
- <el-option label="大俯视(鸟瞰)" value="大俯视(鸟瞰)" />
- <el-option label="大仰视" value="大仰视" />
- <el-option label="正侧面" value="正侧面" />
- <el-option label="斜侧面" value="斜侧面" />
- <el-option label="背面" value="背面" />
- <el-option label="倾斜(荷兰角)" value="倾斜(荷兰角)" />
- <el-option label="主观视角" value="主观视角" />
- <el-option label="过肩" value="过肩" />
- </el-select>
- </div>
+ <!-- 视效设置 -->
+ <div class="settings-section">
+ <div class="section-label">{{ $t('editor.visualSettings') }}</div>
+ <div class="settings-grid">
+ <div class="setting-item">
+ <label>{{ $t('editor.shotType') }}</label>
+ <el-select v-model="currentStoryboard.shot_type" clearable
+ :placeholder="$t('editor.shotTypePlaceholder')" @change="saveStoryboardField('shot_type')">
+ <el-option label="大远景" value="大远景" />
+ <el-option label="远景" value="远景" />
+ <el-option label="全景" value="全景" />
+ <el-option label="中全景" value="中全景" />
+ <el-option label="中景" value="中景" />
+ <el-option label="中近景" value="中近景" />
+ <el-option label="近景" value="近景" />
+ <el-option label="特写" value="特写" />
+ <el-option label="大特写" value="大特写" />
+ </el-select>
</div>
- </div>
- <!-- 叙事内容 -->
- <div class="narrative-section">
- <div class="section-label">{{ $t('editor.action') }} (Action)</div>
- <el-input
- v-model="currentStoryboard.action"
- type="textarea"
- :rows="3"
- :placeholder="$t('editor.actionPlaceholder')"
- />
- </div>
+ <div class="setting-item">
+ <label>{{ $t('editor.movement') }}</label>
+ <el-select v-model="currentStoryboard.movement" clearable
+ :placeholder="$t('editor.movementPlaceholder')" @change="saveStoryboardField('movement')">
+ <el-option label="固定镜头" value="固定镜头" />
+ <el-option label="推镜" value="推镜" />
+ <el-option label="拉镜" value="拉镜" />
+ <el-option label="摇镜" value="摇镜" />
+ <el-option label="移镜" value="移镜" />
+ <el-option label="跟镜" value="跟镜" />
+ <el-option label="升降镜头" value="升降镜头" />
+ <el-option label="环绕" value="环绕" />
+ <el-option label="甩镜" value="甩镜" />
+ <el-option label="变焦" value="变焦" />
+ <el-option label="手持晃动" value="手持晃动" />
+ <el-option label="稳定器运动" value="稳定器运动" />
+ <el-option label="轨道推拉" value="轨道推拉" />
+ <el-option label="航拍" value="航拍" />
+ </el-select>
+ </div>
- <div class="narrative-section">
- <div class="section-label">{{ $t('editor.result') }} (Result)</div>
- <el-input
- v-model="currentStoryboard.result"
- type="textarea"
- :rows="2"
- :placeholder="$t('editor.resultPlaceholder')"
- />
+ <div class="setting-item">
+ <label>{{ $t('editor.angle') }}</label>
+ <el-select v-model="currentStoryboard.angle" clearable
+ :placeholder="$t('editor.anglePlaceholder')" @change="saveStoryboardField('angle')">
+ <el-option label="平视" value="平视" />
+ <el-option label="俯视" value="俯视" />
+ <el-option label="仰视" value="仰视" />
+ <el-option label="大俯视(鸟瞰)" value="大俯视(鸟瞰)" />
+ <el-option label="大仰视" value="大仰视" />
+ <el-option label="正侧面" value="正侧面" />
+ <el-option label="斜侧面" value="斜侧面" />
+ <el-option label="背面" value="背面" />
+ <el-option label="倾斜(荷兰角)" value="倾斜(荷兰角)" />
+ <el-option label="主观视角" value="主观视角" />
+ <el-option label="过肩" value="过肩" />
+ </el-select>
+ </div>
</div>
+ </div>
- <div class="dialogue-section">
- <div class="section-label">{{ $t('editor.dialogue') }} (Dialogue)</div>
- <el-input
- v-model="currentStoryboard.dialogue"
- type="textarea"
- :rows="3"
-:placeholder="$t('editor.dialoguePlaceholder')"
- />
- </div>
+ <!-- 叙事内容 -->
+ <div class="narrative-section">
+ <div class="section-label">{{ $t('editor.action') }} (Action)</div>
+ <el-input v-model="currentStoryboard.action" type="textarea" :rows="3"
+ :placeholder="$t('editor.actionPlaceholder')" />
+ </div>
- <div class="narrative-section">
- <div class="section-label">{{ $t('editor.description') }} (Description)</div>
- <el-input
- v-model="currentStoryboard.description"
- type="textarea"
- :rows="3"
- :placeholder="$t('editor.descriptionPlaceholder')"
- />
- </div>
+ <div class="narrative-section">
+ <div class="section-label">{{ $t('editor.result') }} (Result)</div>
+ <el-input v-model="currentStoryboard.result" type="textarea" :rows="2"
+ :placeholder="$t('editor.resultPlaceholder')" />
+ </div>
- <!-- 音效设置 -->
- <div class="settings-section">
- <div class="section-label">{{ $t('editor.soundEffects') }}</div>
- <div class="audio-controls">
- <el-input
- v-model="currentStoryboard.sound_effect"
- :placeholder="$t('editor.soundEffectsPlaceholder')"
- size="small"
- type="textarea"
- :rows="2"
- />
- </div>
+ <div class="dialogue-section">
+ <div class="section-label">{{ $t('editor.dialogue') }} (Dialogue)</div>
+ <el-input v-model="currentStoryboard.dialogue" type="textarea" :rows="3"
+ :placeholder="$t('editor.dialoguePlaceholder')" />
+ </div>
+
+ <div class="narrative-section">
+ <div class="section-label">{{ $t('editor.description') }} (Description)</div>
+ <el-input v-model="currentStoryboard.description" type="textarea" :rows="3"
+ :placeholder="$t('editor.descriptionPlaceholder')" />
+ </div>
+
+ <!-- 音效设置 -->
+ <div class="settings-section">
+ <div class="section-label">{{ $t('editor.soundEffects') }}</div>
+ <div class="audio-controls">
+ <el-input v-model="currentStoryboard.sound_effect" :placeholder="$t('editor.soundEffectsPlaceholder')"
+ size="small" type="textarea" :rows="2" />
</div>
+ </div>
- <!-- 配乐设置 -->
- <div class="settings-section">
- <div class="section-label">{{ $t('editor.bgmPrompt') }}</div>
- <div class="audio-controls">
- <el-input
- v-model="currentStoryboard.bgm_prompt"
- :placeholder="$t('editor.bgmPromptPlaceholder')"
- size="small"
- type="textarea"
- :rows="2"
- />
- </div>
+ <!-- 配乐设置 -->
+ <div class="settings-section">
+ <div class="section-label">{{ $t('editor.bgmPrompt') }}</div>
+ <div class="audio-controls">
+ <el-input v-model="currentStoryboard.bgm_prompt" :placeholder="$t('editor.bgmPromptPlaceholder')"
+ size="small" type="textarea" :rows="2" />
</div>
+ </div>
- <!-- 氛围设置 -->
- <div class="settings-section">
- <div class="section-label">{{ $t('editor.atmosphere') }}</div>
- <div class="audio-controls">
- <el-input
- v-model="currentStoryboard.atmosphere"
- :placeholder="$t('editor.atmospherePlaceholder')"
- size="small"
- type="textarea"
- :rows="2"
- />
- </div>
+ <!-- 氛围设置 -->
+ <div class="settings-section">
+ <div class="section-label">{{ $t('editor.atmosphere') }}</div>
+ <div class="audio-controls">
+ <el-input v-model="currentStoryboard.atmosphere" :placeholder="$t('editor.atmospherePlaceholder')"
+ size="small" type="textarea" :rows="2" />
</div>
</div>
- <el-empty v-else :description="$t('editor.noShotSelected')" />
+ </div>
+ <el-empty v-else :description="$t('editor.noShotSelected')" />
</el-tab-pane>
<!-- 图片生成标签 -->
@@ -273,50 +240,29 @@
<el-radio-button label="action">{{ $t('editor.actionSequence') }}</el-radio-button>
<el-radio-button label="key">{{ $t('editor.keyFrame') }}</el-radio-button>
</el-radio-group>
- <el-input-number
- v-if="selectedFrameType === 'panel'"
- v-model="panelCount"
- :min="2"
- :max="6"
- size="small"
- class="panel-count-input"
- style="margin-left: 10px; margin-top: 12px;"
- />
- <span v-if="selectedFrameType === 'panel'" style="margin-left: 5px; font-size: 12px; color: #999;">{{ $t('editor.panelCount') }}</span>
+ <el-input-number v-if="selectedFrameType === 'panel'" v-model="panelCount" :min="2" :max="6"
+ size="small" class="panel-count-input" style="margin-left: 10px; margin-top: 12px;" />
+ <span v-if="selectedFrameType === 'panel'" class="panel-count-label">{{ $t('editor.panelCount')
+ }}</span>
</div>
<!-- 提示词区域 -->
<div class="prompt-section">
<div class="section-label">
{{ $t('editor.prompt') }}
- <el-button
- size="small"
- type="primary"
- :disabled="generatingPrompt"
- :loading="generatingPrompt"
- @click="extractFramePrompt"
- style="margin-left: 10px;"
- >
+ <el-button size="small" type="primary" :disabled="generatingPrompt" :loading="generatingPrompt"
+ @click="extractFramePrompt" style="margin-left: 10px;">
{{ $t('editor.extractPrompt') }}
</el-button>
</div>
- <el-input
- v-model="currentFramePrompt"
- type="textarea"
- :rows="8"
-:placeholder="$t('editor.promptPlaceholder')"
- />
+ <el-input v-model="currentFramePrompt" type="textarea" :rows="8"
+ :placeholder="$t('editor.promptPlaceholder')" />
</div>
<!-- 生成控制 -->
<div class="generation-controls">
- <el-button
- type="success"
- :icon="MagicStick"
- :loading="generatingImage"
- :disabled="!currentFramePrompt"
- @click="generateFrameImage"
- >
+ <el-button type="success" :icon="MagicStick" :loading="generatingImage"
+ :disabled="!currentFramePrompt" @click="generateFrameImage">
{{ generatingImage ? $t('editor.generating') : $t('editor.generateImage') }}
</el-button>
<el-button :icon="Upload" @click="uploadImage">{{ $t('editor.uploadImage') }}</el-button>
@@ -326,21 +272,15 @@
<div class="generation-result" v-if="generatedImages.length > 0">
<div class="section-label">{{ $t('editor.generationResult') }} ({{ generatedImages.length }})</div>
<div class="image-grid">
- <div
- v-for="img in generatedImages"
- :key="img.id"
- class="image-item"
- >
- <el-image
- v-if="img.image_url"
- :src="img.image_url"
+ <div v-for="img in generatedImages" :key="img.id" class="image-item">
+ <el-image v-if="img.image_url" :src="img.image_url"
:preview-src-list="generatedImages.filter(i => i.image_url).map(i => i.image_url!)"
:initial-index="generatedImages.filter(i => i.image_url).findIndex(i => i.id === img.id)"
- fit="cover"
- preview-teleported
- />
+ fit="cover" preview-teleported />
<div v-else class="image-placeholder">
- <el-icon :size="32"><Picture /></el-icon>
+ <el-icon :size="32">
+ <Picture />
+ </el-icon>
<p>生成中...</p>
</div>
<div class="image-info">
@@ -360,62 +300,59 @@
<div class="tab-content" v-if="currentStoryboard">
<div class="video-generation-section">
<!-- 生成提示词展示 -->
- <div style="margin-bottom: 12px; padding: 10px; background: #f5f7fa; border-radius: 6px; border: 1px solid #e4e7ed; font-size: 12px; line-height: 1.6; color: #606266; word-break: break-word; max-height: 120px; overflow-y: auto;">
+ <div class="video-prompt-box">
{{ currentStoryboard.video_prompt || '暂无提示词' }}
</div>
<!-- 视频参数设置 -->
<div class="video-params-section">
- <div style="margin-bottom: 12px; display: flex; align-items: center; gap: 12px;">
- <span style="min-width: 60px; font-size: 14px; color: #606266;">{{ $t('video.model') }}</span>
- <el-select v-model="selectedVideoModel" :placeholder="$t('video.selectVideoModel')" size="default" style="flex: 1;">
- <el-option
- v-for="model in videoModelCapabilities"
- :key="model.id"
- :label="model.name"
- :value="model.id"
- >
+ <div class="param-row">
+ <span class="param-label">{{ $t('video.model') }}</span>
+ <el-select v-model="selectedVideoModel" :placeholder="$t('video.selectVideoModel')" size="default"
+ style="flex: 1;">
+ <el-option v-for="model in videoModelCapabilities" :key="model.id" :label="model.name"
+ :value="model.id">
<div style="display: flex; justify-content: space-between; align-items: center;">
<span>{{ model.name }}</span>
- <div style="font-size: 12px; color: #909399;">
- <el-tag v-if="model.supportMultipleImages" size="small" type="success" style="margin-left: 4px;">多图</el-tag>
- <el-tag v-if="model.supportFirstLastFrame" size="small" type="primary" style="margin-left: 4px;">首尾帧</el-tag>
+ <div class="model-tags">
+ <el-tag v-if="model.supportMultipleImages" size="small" type="success"
+ style="margin-left: 4px;">多图</el-tag>
+ <el-tag v-if="model.supportFirstLastFrame" size="small" type="primary"
+ style="margin-left: 4px;">首尾帧</el-tag>
<el-tag size="small" type="info" style="margin-left: 4px;">最多{{ model.maxImages }}张</el-tag>
</div>
</div>
</el-option>
</el-select>
</div>
-
+
<!-- 参考图模式选择 -->
- <div v-if="selectedVideoModel && availableReferenceModes.length > 0" style="margin-bottom: 12px; display: flex; align-items: center; gap: 12px;">
- <span style="min-width: 60px; font-size: 14px; color: #606266;">参考图</span>
+ <div v-if="selectedVideoModel && availableReferenceModes.length > 0" class="param-row">
+ <span class="param-label">参考图</span>
<el-select v-model="selectedReferenceMode" placeholder="请选择参考图模式" size="default" style="flex: 1;">
- <el-option
- v-for="mode in availableReferenceModes"
- :key="mode.value"
- :label="mode.label"
- :value="mode.value"
- >
+ <el-option v-for="mode in availableReferenceModes" :key="mode.value" :label="mode.label"
+ :value="mode.value">
<div style="display: flex; justify-content: space-between; align-items: center;">
<span>{{ mode.label }}</span>
- <span v-if="mode.description" style="font-size: 12px; color: #909399;">{{ mode.description }}</span>
+ <span v-if="mode.description" class="mode-description">{{ mode.description }}</span>
</div>
</el-option>
</el-select>
</div>
-
- <div style="margin-bottom: 8px; display: flex; align-items: center; gap: 12px;">
- <span style="min-width: 60px; font-size: 14px; color: #606266;">{{ $t('professionalEditor.duration') }}</span>
+
+ <div class="param-row">
+ <span class="param-label">{{ $t('professionalEditor.duration') }}</span>
<div style="flex: 1; display: flex; align-items: center;">
<el-slider v-model="videoDuration" :min="4" :max="10" :step="1" show-stops style="flex: 1;" />
- <span style="margin-left: 10px; min-width: 40px;">{{ videoDuration }}{{ $t('professionalEditor.seconds') }}</span>
+ <span style="margin-left: 10px; min-width: 40px;">{{ videoDuration }}{{
+ $t('professionalEditor.seconds') }}</span>
</div>
</div>
</div>
<!-- 选择参考图片 -->
- <div v-if="selectedReferenceMode && selectedReferenceMode !== 'none'" class="reference-images-section" style="margin-top: 0;">
+ <div v-if="selectedReferenceMode && selectedReferenceMode !== 'none'" class="reference-images-section"
+ style="margin-top: 0;">
<div class="frame-type-buttons" style="text-align: center; margin-bottom: 8px;">
<el-radio-group v-model="selectedVideoFrameType" size="default">
<el-radio-button label="first">首帧</el-radio-button>
@@ -425,191 +362,233 @@
<el-radio-button label="key">关键帧</el-radio-button>
</el-radio-group>
</div>
-
+
<div class="frame-type-content">
<!-- 首帧 -->
- <div v-show="selectedVideoFrameType === 'first'" class="image-scroll-container" style="max-height: 280px; overflow-y: auto; overflow-x: hidden;">
- <div class="reference-grid" style="display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 600px;">
- <div
- v-for="img in videoReferenceImages.filter(i => i.status === 'completed' && i.image_url && i.frame_type === 'first')"
- :key="img.id"
- class="reference-item"
- :class="{ selected: selectedImagesForVideo.includes(img.id) }"
- style="position: relative;"
- @click="handleImageSelect(img.id)"
- >
- <el-image :src="img.image_url" fit="cover" style="max-width: 120px; width: 100%; display: block; pointer-events: none;" />
- <div class="preview-icon" @click.stop="previewImage(img.image_url)" style="position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; background: rgba(0,0,0,0.6); border-radius: 4px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10;">
- <el-icon :size="14" color="#fff"><ZoomIn /></el-icon>
+ <div v-show="selectedVideoFrameType === 'first'" class="image-scroll-container"
+ style="max-height: 280px; overflow-y: auto; overflow-x: hidden;">
+ <div class="reference-grid"
+ style="display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 600px;">
+ <div
+ v-for="img in videoReferenceImages.filter(i => i.status === 'completed' && i.image_url && i.frame_type === 'first')"
+ :key="img.id" class="reference-item"
+ :class="{ selected: selectedImagesForVideo.includes(img.id) }" style="position: relative;"
+ @click="handleImageSelect(img.id)">
+ <el-image :src="img.image_url" fit="cover"
+ style="max-width: 120px; width: 100%; display: block; pointer-events: none;" />
+ <div class="preview-icon" @click.stop="previewImage(img.image_url)"
+ style="position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; background: rgba(0,0,0,0.6); border-radius: 4px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10;">
+ <el-icon :size="14" color="#fff">
+ <ZoomIn />
+ </el-icon>
</div>
</div>
</div>
- <el-empty v-if="!videoReferenceImages.some(i => i.status === 'completed' && i.image_url && i.frame_type === 'first')"
+ <el-empty
+ v-if="!videoReferenceImages.some(i => i.status === 'completed' && i.image_url && i.frame_type === 'first')"
description="暂无首帧图片" size="small" />
</div>
<!-- 关键帧 -->
- <div v-show="selectedVideoFrameType === 'key'" class="image-scroll-container" style="max-height: 280px; overflow-y: auto; overflow-x: hidden;">
- <div class="reference-grid" style="display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 600px;">
- <div
- v-for="img in videoReferenceImages.filter(i => i.status === 'completed' && i.image_url && i.frame_type === 'key')"
- :key="img.id"
- class="reference-item"
- :class="{ selected: selectedImagesForVideo.includes(img.id) }"
- style="position: relative;"
- @click="handleImageSelect(img.id)"
- >
- <el-image :src="img.image_url" fit="cover" style="max-width: 120px; width: 100%; display: block; pointer-events: none;" />
- <div class="preview-icon" @click.stop="previewImage(img.image_url)" style="position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; background: rgba(0,0,0,0.6); border-radius: 4px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10;">
- <el-icon :size="14" color="#fff"><ZoomIn /></el-icon>
+ <div v-show="selectedVideoFrameType === 'key'" class="image-scroll-container"
+ style="max-height: 280px; overflow-y: auto; overflow-x: hidden;">
+ <div class="reference-grid"
+ style="display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 600px;">
+ <div
+ v-for="img in videoReferenceImages.filter(i => i.status === 'completed' && i.image_url && i.frame_type === 'key')"
+ :key="img.id" class="reference-item"
+ :class="{ selected: selectedImagesForVideo.includes(img.id) }" style="position: relative;"
+ @click="handleImageSelect(img.id)">
+ <el-image :src="img.image_url" fit="cover"
+ style="max-width: 120px; width: 100%; display: block; pointer-events: none;" />
+ <div class="preview-icon" @click.stop="previewImage(img.image_url)"
+ style="position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; background: rgba(0,0,0,0.6); border-radius: 4px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10;">
+ <el-icon :size="14" color="#fff">
+ <ZoomIn />
+ </el-icon>
</div>
</div>
</div>
- <el-empty v-if="!videoReferenceImages.some(i => i.status === 'completed' && i.image_url && i.frame_type === 'key')"
+ <el-empty
+ v-if="!videoReferenceImages.some(i => i.status === 'completed' && i.image_url && i.frame_type === 'key')"
description="暂无关键帧图片" size="small" />
</div>
<!-- 尾帧 -->
- <div v-show="selectedVideoFrameType === 'last'" class="image-scroll-container" style="max-height: 280px; overflow-y: auto; overflow-x: hidden;">
- <div class="reference-grid" style="display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 600px;">
- <div
- v-for="img in videoReferenceImages.filter(i => i.status === 'completed' && i.image_url && i.frame_type === 'last')"
- :key="img.id"
- class="reference-item"
- :class="{ selected: selectedImagesForVideo.includes(img.id) }"
- style="position: relative;"
- @click="handleImageSelect(img.id)"
- >
- <el-image :src="img.image_url" fit="cover" style="max-width: 120px; width: 100%; display: block; pointer-events: none;" />
- <div class="preview-icon" @click.stop="previewImage(img.image_url)" style="position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; background: rgba(0,0,0,0.6); border-radius: 4px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10;">
- <el-icon :size="14" color="#fff"><ZoomIn /></el-icon>
+ <div v-show="selectedVideoFrameType === 'last'" class="image-scroll-container"
+ style="max-height: 280px; overflow-y: auto; overflow-x: hidden;">
+ <div class="reference-grid"
+ style="display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 600px;">
+ <div
+ v-for="img in videoReferenceImages.filter(i => i.status === 'completed' && i.image_url && i.frame_type === 'last')"
+ :key="img.id" class="reference-item"
+ :class="{ selected: selectedImagesForVideo.includes(img.id) }" style="position: relative;"
+ @click="handleImageSelect(img.id)">
+ <el-image :src="img.image_url" fit="cover"
+ style="max-width: 120px; width: 100%; display: block; pointer-events: none;" />
+ <div class="preview-icon" @click.stop="previewImage(img.image_url)"
+ style="position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; background: rgba(0,0,0,0.6); border-radius: 4px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10;">
+ <el-icon :size="14" color="#fff">
+ <ZoomIn />
+ </el-icon>
</div>
</div>
</div>
- <el-empty v-if="!videoReferenceImages.some(i => i.status === 'completed' && i.image_url && i.frame_type === 'last')"
+ <el-empty
+ v-if="!videoReferenceImages.some(i => i.status === 'completed' && i.image_url && i.frame_type === 'last')"
description="暂无尾帧图片" size="small" />
</div>
<!-- 分镜板 -->
- <div v-show="selectedVideoFrameType === 'panel'" class="image-scroll-container" style="max-height: 280px; overflow-y: auto; overflow-x: hidden;">
- <div class="reference-grid" style="display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 600px;">
- <div
- v-for="img in videoReferenceImages.filter(i => i.status === 'completed' && i.image_url && i.frame_type === 'panel')"
- :key="img.id"
- class="reference-item"
- :class="{ selected: selectedImagesForVideo.includes(img.id) }"
- style="position: relative;"
- @click="handleImageSelect(img.id)"
- >
- <el-image :src="img.image_url" fit="cover" style="max-width: 120px; width: 100%; display: block; pointer-events: none;" />
- <div class="preview-icon" @click.stop="previewImage(img.image_url)" style="position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; background: rgba(0,0,0,0.6); border-radius: 4px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10;">
- <el-icon :size="14" color="#fff"><ZoomIn /></el-icon>
+ <div v-show="selectedVideoFrameType === 'panel'" class="image-scroll-container"
+ style="max-height: 280px; overflow-y: auto; overflow-x: hidden;">
+ <div class="reference-grid"
+ style="display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 600px;">
+ <div
+ v-for="img in videoReferenceImages.filter(i => i.status === 'completed' && i.image_url && i.frame_type === 'panel')"
+ :key="img.id" class="reference-item"
+ :class="{ selected: selectedImagesForVideo.includes(img.id) }" style="position: relative;"
+ @click="handleImageSelect(img.id)">
+ <el-image :src="img.image_url" fit="cover"
+ style="max-width: 120px; width: 100%; display: block; pointer-events: none;" />
+ <div class="preview-icon" @click.stop="previewImage(img.image_url)"
+ style="position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; background: rgba(0,0,0,0.6); border-radius: 4px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10;">
+ <el-icon :size="14" color="#fff">
+ <ZoomIn />
+ </el-icon>
</div>
</div>
</div>
- <el-empty v-if="!videoReferenceImages.some(i => i.status === 'completed' && i.image_url && i.frame_type === 'panel')"
+ <el-empty
+ v-if="!videoReferenceImages.some(i => i.status === 'completed' && i.image_url && i.frame_type === 'panel')"
description="暂无分镜板图片" size="small" />
</div>
<!-- 动作序列 -->
- <div v-show="selectedVideoFrameType === 'action'" class="image-scroll-container" style="max-height: 280px; overflow-y: auto; overflow-x: hidden;">
- <div class="reference-grid" style="display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 600px;">
- <div
- v-for="img in videoReferenceImages.filter(i => i.status === 'completed' && i.image_url && i.frame_type === 'action')"
- :key="img.id"
- class="reference-item"
- :class="{ selected: selectedImagesForVideo.includes(img.id) }"
- style="position: relative;"
- @click="handleImageSelect(img.id)"
- >
- <el-image :src="img.image_url" fit="cover" style="max-width: 120px; width: 100%; display: block; pointer-events: none;" />
- <div class="preview-icon" @click.stop="previewImage(img.image_url)" style="position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; background: rgba(0,0,0,0.6); border-radius: 4px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10;">
- <el-icon :size="14" color="#fff"><ZoomIn /></el-icon>
+ <div v-show="selectedVideoFrameType === 'action'" class="image-scroll-container"
+ style="max-height: 280px; overflow-y: auto; overflow-x: hidden;">
+ <div class="reference-grid"
+ style="display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 600px;">
+ <div
+ v-for="img in videoReferenceImages.filter(i => i.status === 'completed' && i.image_url && i.frame_type === 'action')"
+ :key="img.id" class="reference-item"
+ :class="{ selected: selectedImagesForVideo.includes(img.id) }" style="position: relative;"
+ @click="handleImageSelect(img.id)">
+ <el-image :src="img.image_url" fit="cover"
+ style="max-width: 120px; width: 100%; display: block; pointer-events: none;" />
+ <div class="preview-icon" @click.stop="previewImage(img.image_url)"
+ style="position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; background: rgba(0,0,0,0.6); border-radius: 4px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10;">
+ <el-icon :size="14" color="#fff">
+ <ZoomIn />
+ </el-icon>
</div>
</div>
</div>
- <el-empty v-if="!videoReferenceImages.some(i => i.status === 'completed' && i.image_url && i.frame_type === 'action')"
+ <el-empty
+ v-if="!videoReferenceImages.some(i => i.status === 'completed' && i.image_url && i.frame_type === 'action')"
description="暂无动作序列图片" size="small" />
</div>
</div>
</div>
<!-- 参考图片设置 -->
- <div v-if="selectedReferenceMode && selectedReferenceMode !== 'none'" class="reference-config-section" style="margin-top: 24px;">
+ <div v-if="selectedReferenceMode && selectedReferenceMode !== 'none'" class="reference-config-section"
+ style="margin-top: 24px;">
<!-- 图片框配置区 -->
<div class="image-slots-container" style="margin-top: 16px; margin-bottom: 24px;">
<!-- 单图模式 -->
- <div v-if="selectedReferenceMode === 'single'"
- style="text-align: center;">
- <div style="margin-bottom: 12px; font-size: 13px; color: #606266; font-weight: 500;">单图参考</div>
+ <div v-if="selectedReferenceMode === 'single'" style="text-align: center;">
+ <div class="reference-mode-title">单图参考</div>
<div style="display: inline-block;">
- <div class="image-slot" style="position: relative; width: 140px; height: 90px; border: 2px dashed #dcdfe6; border-radius: 8px; overflow: hidden; cursor: pointer; background: #fff;" @click="selectedImagesForVideo.length > 0 && removeSelectedImage(selectedImagesForVideo[0])">
- <img v-if="selectedImageObjects[0]" :src="selectedImageObjects[0].image_url" alt="" style="width: 100%; height: 100%; object-fit: cover;" />
+ <div class="image-slot"
+ @click="selectedImagesForVideo.length > 0 && removeSelectedImage(selectedImagesForVideo[0])">
+ <img v-if="selectedImageObjects[0]" :src="selectedImageObjects[0].image_url" alt=""
+ style="width: 100%; height: 100%; object-fit: cover;" />
<div v-else class="image-slot-placeholder">
- <el-icon :size="32" color="#c0c4cc"><Plus /></el-icon>
- <div style="margin-top: 8px; font-size: 12px; color: #909399;">点击上方选择图片</div>
+ <el-icon :size="32" color="#c0c4cc">
+ <Plus />
+ </el-icon>
+ <div class="slot-hint">点击上方选择图片</div>
</div>
<div v-if="selectedImageObjects[0]" class="image-slot-remove">
- <el-icon :size="16" color="#fff"><Close /></el-icon>
+ <el-icon :size="16" color="#fff">
+ <Close />
+ </el-icon>
</div>
</div>
</div>
</div>
-
+
<!-- 首尾帧模式 -->
<div v-else-if="selectedReferenceMode === 'first_last'" style="text-align: center;">
- <div style="margin-bottom: 12px; font-size: 13px; color: #606266; font-weight: 500;">首尾帧</div>
+ <div class="reference-mode-title">首尾帧</div>
<div style="display: flex; gap: 20px; justify-content: center; align-items: center;">
<div>
- <div style="margin-bottom: 8px; font-size: 12px; color: #909399;">首帧</div>
- <div class="image-slot" style="position: relative; width: 140px; height: 90px; border: 2px dashed #dcdfe6; border-radius: 8px; overflow: hidden; cursor: pointer; background: #fff;" @click="firstFrameSlotImage && removeSelectedImage(firstFrameSlotImage.id)">
- <img v-if="firstFrameSlotImage" :src="firstFrameSlotImage.image_url" alt="" style="width: 100%; height: 100%; object-fit: cover;" />
+ <div class="frame-label">首帧</div>
+ <div class="image-slot"
+ @click="firstFrameSlotImage && removeSelectedImage(firstFrameSlotImage.id)">
+ <img v-if="firstFrameSlotImage" :src="firstFrameSlotImage.image_url" alt=""
+ style="width: 100%; height: 100%; object-fit: cover;" />
<div v-else class="image-slot-placeholder">
- <el-icon :size="32" color="#c0c4cc"><Plus /></el-icon>
- <div style="margin-top: 8px; font-size: 12px; color: #909399;">选择首帧</div>
+ <el-icon :size="32" color="#c0c4cc">
+ <Plus />
+ </el-icon>
+ <div class="slot-hint">选择首帧</div>
</div>
<div v-if="firstFrameSlotImage" class="image-slot-remove">
- <el-icon :size="16" color="#fff"><Close /></el-icon>
+ <el-icon :size="16" color="#fff">
+ <Close />
+ </el-icon>
</div>
</div>
</div>
- <el-icon :size="24" color="#909399"><Right /></el-icon>
+ <el-icon :size="24" color="#909399">
+ <Right />
+ </el-icon>
<div>
- <div style="margin-bottom: 8px; font-size: 12px; color: #909399;">尾帧</div>
- <div class="image-slot" style="position: relative; width: 140px; height: 90px; border: 2px dashed #dcdfe6; border-radius: 8px; overflow: hidden; cursor: pointer; background: #fff;" @click="lastFrameSlotImage && removeSelectedImage(lastFrameSlotImage.id)">
- <img v-if="lastFrameSlotImage" :src="lastFrameSlotImage.image_url" alt="" style="width: 100%; height: 100%; object-fit: cover;" />
+ <div class="frame-label">尾帧</div>
+ <div class="image-slot"
+ @click="lastFrameSlotImage && removeSelectedImage(lastFrameSlotImage.id)">
+ <img v-if="lastFrameSlotImage" :src="lastFrameSlotImage.image_url" alt=""
+ style="width: 100%; height: 100%; object-fit: cover;" />
<div v-else class="image-slot-placeholder">
- <el-icon :size="32" color="#c0c4cc"><Plus /></el-icon>
- <div style="margin-top: 8px; font-size: 12px; color: #909399;">选择尾帧</div>
+ <el-icon :size="32" color="#c0c4cc">
+ <Plus />
+ </el-icon>
+ <div class="slot-hint">选择尾帧</div>
</div>
<div v-if="lastFrameSlotImage" class="image-slot-remove">
- <el-icon :size="16" color="#fff"><Close /></el-icon>
+ <el-icon :size="16" color="#fff">
+ <Close />
+ </el-icon>
</div>
</div>
</div>
</div>
</div>
-
+
<!-- 多图模式 -->
<div v-else-if="selectedReferenceMode === 'multiple'" style="text-align: center;">
<div style="margin-bottom: 12px; font-size: 13px; color: #606266; font-weight: 500;">
多图参考 ({{ selectedImagesForVideo.length }}/{{ currentModelCapability?.maxImages || 6 }})
</div>
<div style="display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;">
- <div v-for="index in (currentModelCapability?.maxImages || 6)" :key="index"
- class="image-slot image-slot-small"
- style="position: relative; width: 80px; height: 52px; border: 2px dashed #dcdfe6; border-radius: 8px; overflow: hidden; cursor: pointer; background: #fff;"
- @click="selectedImageObjects[index - 1] && removeSelectedImage(selectedImageObjects[index - 1].id)">
- <img v-if="selectedImageObjects[index - 1]"
- :src="selectedImageObjects[index - 1].image_url"
- alt=""
- style="width: 100%; height: 100%; object-fit: cover;" />
+ <div v-for="index in (currentModelCapability?.maxImages || 6)" :key="index"
+ class="image-slot image-slot-small"
+ style="position: relative; width: 80px; height: 52px; border: 2px dashed #dcdfe6; border-radius: 8px; overflow: hidden; cursor: pointer; background: #fff;"
+ @click="selectedImageObjects[index - 1] && removeSelectedImage(selectedImageObjects[index - 1].id)">
+ <img v-if="selectedImageObjects[index - 1]" :src="selectedImageObjects[index - 1].image_url"
+ alt="" style="width: 100%; height: 100%; object-fit: cover;" />
<div v-else class="image-slot-placeholder">
- <el-icon :size="20" color="#c0c4cc"><Plus /></el-icon>
+ <el-icon :size="20" color="#c0c4cc">
+ <Plus />
+ </el-icon>
<div style="margin-top: 4px; font-size: 10px; color: #909399;">{{ index }}</div>
</div>
<div v-if="selectedImageObjects[index - 1]" class="image-slot-remove">
- <el-icon :size="14" color="#fff"><Close /></el-icon>
+ <el-icon :size="14" color="#fff">
+ <Close />
+ </el-icon>
</div>
</div>
</div>
@@ -619,59 +598,55 @@
<!-- 生成控制 -->
<div class="generation-controls" style="margin-top: 32px; text-align: center;">
- <el-button
- type="primary"
- :icon="VideoCamera"
- :loading="generatingVideo"
+ <el-button type="primary" :icon="VideoCamera" :loading="generatingVideo"
:disabled="!selectedVideoModel || (selectedReferenceMode !== 'none' && selectedImagesForVideo.length === 0)"
- @click="generateVideo"
- >
+ @click="generateVideo">
{{ generatingVideo ? '生成中...' : '生成视频' }}
</el-button>
</div>
<!-- 生成的视频列表 -->
<div class="generation-result" v-if="generatedVideos.length > 0" style="margin-top: 24px;">
- <div class="section-label" style="font-size: 13px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 6px;">
- <span style="width: 3px; height: 14px; background: linear-gradient(to bottom, #409eff, #66b1ff); border-radius: 2px;"></span>
+ <div class="section-label"
+ style="font-size: 13px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 6px;">
+ <span></span>
生成结果 ({{ generatedVideos.length }})
</div>
- <div class="image-grid" style="display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px;">
- <div
- v-for="video in generatedVideos"
- :key="video.id"
- class="image-item video-item"
- style="position: relative; border-radius: 8px; overflow: hidden; background: #fff; border: 1px solid #e8e8e8; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06); cursor: pointer; transition: all 0.2s ease;"
- >
- <div class="video-thumbnail" v-if="video.video_url" style="position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; cursor: pointer;"
+ <div class="image-grid"
+ style="display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px;">
+ <div v-for="video in generatedVideos" :key="video.id" class="image-item video-item"
+ style="position: relative; border-radius: 8px; overflow: hidden; background: #fff; border: 1px solid #e8e8e8; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06); cursor: pointer; transition: all 0.2s ease;">
+ <div class="video-thumbnail" v-if="video.video_url"
+ style="position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; cursor: pointer;"
@mouseenter="(e) => e.currentTarget.querySelector('.play-overlay').style.opacity = '1'"
@mouseleave="(e) => e.currentTarget.querySelector('.play-overlay').style.opacity = '0'"
@click="playVideo(video)">
- <video
- :src="video.video_url"
- preload="metadata"
- style="width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none;"
- />
- <div class="play-overlay" style="position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.3); opacity: 0; transition: opacity 0.2s;">
- <el-icon :size="32" color="#fff" style="filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));"><VideoPlay /></el-icon>
+ <video :src="video.video_url" preload="metadata"
+ style="width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none;" />
+ <div class="play-overlay"
+ style="position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.3); opacity: 0; transition: opacity 0.2s;">
+ <el-icon :size="32" color="#fff" style="filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));">
+ <VideoPlay />
+ </el-icon>
</div>
</div>
- <div v-else class="image-placeholder" style="width: 100%; aspect-ratio: 16/9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf0 100%); color: #909399;">
- <el-icon :size="32"><VideoCamera /></el-icon>
+ <div v-else class="image-placeholder"
+ style="width: 100%; aspect-ratio: 16/9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf0 100%); color: #909399;">
+ <el-icon :size="32">
+ <VideoCamera />
+ </el-icon>
<p style="margin: 0; font-size: 11px;">生成中...</p>
</div>
- <div class="image-info" style="position: absolute; bottom: 0; left: 0; right: 0; padding: 6px 8px; background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.2) 70%, transparent); display: flex; justify-content: space-between; align-items: center; gap: 4px;">
+ <div class="image-info"
+ style="position: absolute; bottom: 0; left: 0; right: 0; padding: 6px 8px; background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.2) 70%, transparent); display: flex; justify-content: space-between; align-items: center; gap: 4px;">
<div style="display: flex; align-items: center; gap: 4px;">
- <el-tag :type="getStatusType(video.status)" size="small" style="font-size: 10px; height: 20px; padding: 0 6px;">{{ getStatusText(video.status) }}</el-tag>
+ <el-tag :type="getStatusType(video.status)" size="small"
+ style="font-size: 10px; height: 20px; padding: 0 6px;">{{ getStatusText(video.status)
+ }}</el-tag>
</div>
<div style="display: flex; gap: 4px;">
- <el-button
- v-if="video.status === 'completed' && video.video_url"
- type="success"
- size="small"
- :loading="addingToAssets.has(video.id)"
- @click.stop="addVideoToAssets(video)"
- >
+ <el-button v-if="video.status === 'completed' && video.video_url" type="success" size="small"
+ :loading="addingToAssets.has(video.id)" @click.stop="addVideoToAssets(video)">
{{ addingToAssets.has(video.id) ? '添加中...' : '添加到素材库' }}
</el-button>
</div>
@@ -704,10 +679,11 @@
</template>
</el-empty>
<div v-else class="merge-items">
- <div v-for="merge in videoMerges" :key="merge.id" class="merge-item" :class="'merge-status-' + merge.status">
+ <div v-for="merge in videoMerges" :key="merge.id" class="merge-item"
+ :class="'merge-status-' + merge.status">
<!-- 状态指示条 -->
<div class="status-indicator"></div>
-
+
<!-- 主要内容区域 -->
<div class="merge-content">
<!-- 标题和状态 -->
@@ -721,13 +697,12 @@
</el-icon>
<h3 class="merge-title">{{ merge.title }}</h3>
</div>
- <el-tag
+ <el-tag
:type="merge.status === 'completed' ? 'success' : merge.status === 'failed' ? 'danger' : 'warning'"
- effect="dark"
- size="large"
- round
- >
- {{ merge.status === 'pending' ? '等待中' : merge.status === 'processing' ? '合成中' : merge.status === 'completed' ? '已完成' : '失败' }}
+ effect="dark" size="large" round>
+ {{ merge.status === 'pending' ? '等待中' : merge.status === 'processing' ? '合成中' : merge.status
+ === 'completed' ?
+ '已完成' : '失败' }}
</el-tag>
</div>
@@ -735,16 +710,22 @@
<div class="merge-details">
<div class="detail-item">
<div class="detail-icon">
- <el-icon :size="16"><Timer /></el-icon>
+ <el-icon :size="16">
+ <Timer />
+ </el-icon>
</div>
<div class="detail-content">
<div class="detail-label">{{ $t('professionalEditor.videoDuration') }}</div>
- <div class="detail-value">{{ merge.duration ? `${merge.duration} ${$t('professionalEditor.seconds')}` : '-' }}</div>
+ <div class="detail-value">{{ merge.duration ? `${merge.duration}
+ ${$t('professionalEditor.seconds')}` : '-'
+ }}</div>
</div>
</div>
<div class="detail-item">
<div class="detail-icon">
- <el-icon :size="16"><Calendar /></el-icon>
+ <el-icon :size="16">
+ <Calendar />
+ </el-icon>
</div>
<div class="detail-content">
<div class="detail-label">创建时间</div>
@@ -753,7 +734,9 @@
</div>
<div class="detail-item" v-if="merge.completed_at">
<div class="detail-icon">
- <el-icon :size="16"><Check /></el-icon>
+ <el-icon :size="16">
+ <Check />
+ </el-icon>
</div>
<div class="detail-content">
<div class="detail-label">完成时间</div>
@@ -764,11 +747,7 @@
<!-- 错误提示 -->
<div class="merge-error" v-if="merge.status === 'failed' && merge.error_msg">
- <el-alert
- type="error"
- :closable="false"
- show-icon
- >
+ <el-alert type="error" :closable="false" show-icon>
<template #title>
<div style="font-size: 13px; line-height: 1.5;">{{ merge.error_msg }}</div>
</template>
@@ -778,21 +757,16 @@
<!-- 操作按钮 -->
<div class="merge-actions">
<template v-if="merge.status === 'completed' && merge.merged_url">
- <el-button type="primary" :icon="VideoCamera" @click="downloadVideo(merge.merged_url, merge.title)" round>
+ <el-button type="primary" :icon="VideoCamera"
+ @click="downloadVideo(merge.merged_url, merge.title)" round>
下载视频
</el-button>
<el-button :icon="View" @click="previewMergedVideo(merge.merged_url)" round>
在线预览
</el-button>
</template>
- <el-button
- v-if="merge.status === 'failed'"
- type="danger"
- :icon="Close"
- @click="deleteMerge(merge.id)"
- plain
- round
- >
+ <el-button v-if="merge.status === 'failed'" type="danger" :icon="Close"
+ @click="deleteMerge(merge.id)" plain round>
删除记录
</el-button>
</div>
@@ -812,15 +786,13 @@
<img v-if="previewCharacter.image_url" :src="previewCharacter.image_url" :alt="previewCharacter.name" />
<el-empty v-else description="暂无图片" />
</div>
- <!-- ... -->
+ <!-- ... -->
</el-dialog>
<!-- 场景大图预览对话框 -->
- <el-dialog
- v-model="showSceneImagePreview"
- :title="currentStoryboard?.background ? `${currentStoryboard.background.location} · ${currentStoryboard.background.time}` : '场景预览'"
- width="800px"
- >
+ <el-dialog v-model="showSceneImagePreview"
+ :title="currentStoryboard?.background ? `${currentStoryboard.background.location} · ${currentStoryboard.background.time}` : '场景预览'"
+ width="800px">
<div class="scene-image-preview" v-if="currentStoryboard?.background?.image_url">
<img :src="currentStoryboard.background.image_url" alt="场景" />
</div>
@@ -829,13 +801,8 @@
<!-- 角色选择对话框 -->
<el-dialog v-model="showCharacterSelector" title="添加角色到镜头" width="800px">
<div class="character-selector-grid">
- <div
- v-for="char in availableCharacters"
- :key="char.id"
- class="character-card"
- :class="{ selected: isCharacterInCurrentShot(char.id) }"
- @click="toggleCharacterInShot(char.id)"
- >
+ <div v-for="char in availableCharacters" :key="char.id" class="character-card"
+ :class="{ selected: isCharacterInCurrentShot(char.id) }" @click="toggleCharacterInShot(char.id)">
<div class="character-avatar-large">
<img v-if="char.image_url" :src="char.image_url" :alt="char.name" />
<span v-else>{{ char.name?.[0] || '?' }}</span>
@@ -845,7 +812,9 @@
<div class="character-role">{{ char.role || '角色' }}</div>
</div>
<div class="character-check" v-if="isCharacterInCurrentShot(char.id)">
- <el-icon color="#409eff" :size="24"><Check /></el-icon>
+ <el-icon color="#409eff" :size="24">
+ <Check />
+ </el-icon>
</div>
</div>
<div v-if="availableCharacters.length === 0" class="empty-characters">
@@ -860,16 +829,13 @@
<!-- 场景选择对话框 -->
<el-dialog v-model="showSceneSelector" title="选择场景背景" width="800px">
<div class="scene-selector-grid">
- <div
- v-for="scene in availableScenes"
- :key="scene.id"
- class="scene-card"
- :class="{ selected: currentStoryboard?.scene_id === scene.id }"
- @click="selectScene(scene.id)"
- >
+ <div v-for="scene in availableScenes" :key="scene.id" class="scene-card"
+ :class="{ selected: currentStoryboard?.scene_id === scene.id }" @click="selectScene(scene.id)">
<div class="scene-image">
<img v-if="scene.image_url" :src="scene.image_url" :alt="scene.location" />
- <el-icon v-else :size="48" color="#ccc"><Picture /></el-icon>
+ <el-icon v-else :size="48" color="#ccc">
+ <Picture />
+ </el-icon>
</div>
<div class="scene-info">
<div class="scene-location">{{ scene.location }}</div>
@@ -883,32 +849,27 @@
</el-dialog>
<!-- 视频预览对话框 -->
- <el-dialog
- v-model="showVideoPreview"
- title="视频预览"
- width="800px"
- :close-on-click-modal="true"
- destroy-on-close
- >
+ <el-dialog v-model="showVideoPreview" title="视频预览" width="800px" :close-on-click-modal="true" destroy-on-close>
<div class="video-preview-container" v-if="previewVideo">
- <video
- v-if="previewVideo.video_url"
- :src="previewVideo.video_url"
- controls
- autoplay
- style="width: 100%; max-height: 70vh; display: block; background: #000; border-radius: 8px;"
- />
+ <video v-if="previewVideo.video_url" :src="previewVideo.video_url" controls autoplay
+ style="width: 100%; max-height: 70vh; display: block; background: #000; border-radius: 8px;" />
<div v-else style="text-align: center; padding: 40px;">
- <el-icon :size="48" color="#ccc"><VideoCamera /></el-icon>
+ <el-icon :size="48" color="#ccc">
+ <VideoCamera />
+ </el-icon>
<p style="margin-top: 16px; color: #909399;">视频生成中...</p>
</div>
- <div class="video-meta" style="margin-top: 16px; padding: 12px; background: #f5f7fa; border-radius: 8px;">
+ <div class="video-meta">
<div style="display: flex; justify-content: space-between; align-items: center;">
<div>
- <el-tag :type="getStatusType(previewVideo.status)" size="small">{{ getStatusText(previewVideo.status) }}</el-tag>
- <span v-if="previewVideo.duration" style="margin-left: 12px; color: #606266; font-size: 14px;">{{ $t('professionalEditor.duration') }}: {{ previewVideo.duration }}{{ $t('professionalEditor.seconds') }}</span>
+ <el-tag :type="getStatusType(previewVideo.status)" size="small">{{ getStatusText(previewVideo.status)
+ }}</el-tag>
+ <span v-if="previewVideo.duration" style="margin-left: 12px; color: #606266; font-size: 14px;">{{
+ $t('professionalEditor.duration') }}: {{ previewVideo.duration }}{{ $t('professionalEditor.seconds')
+ }}</span>
</div>
- <el-button v-if="previewVideo.video_url" size="small" @click="window.open(previewVideo.video_url, '_blank')">
+ <el-button v-if="previewVideo.video_url" size="small"
+ @click="window.open(previewVideo.video_url, '_blank')">
{{ $t('professionalEditor.downloadVideo') }}
</el-button>
</div>
@@ -926,7 +887,7 @@ import { ref, computed, watch, onMounted, onBeforeUnmount, nextTick } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import { useI18n } from 'vue-i18n'
import { ElMessage, ElMessageBox } from 'element-plus'
-import {
+import {
ArrowLeft, Plus, Picture, VideoPlay, VideoPause, View, Setting,
Upload, MagicStick, VideoCamera, ZoomIn, ZoomOut, Top, Bottom, Check, Close, Right,
Timer, Calendar, Clock, Loading, WarningFilled
@@ -998,6 +959,7 @@ const generatedImages = ref<ImageGeneration[]>([])
const isSwitchingFrameType = ref(false) // 标志位:是否正在切换帧类型
const loadingImages = ref(false)
let pollingTimer: any = null
+let pollingFrameType: FrameType | null = null // 记录正在轮询的帧类型
// 视频生成相关状态
const videoDuration = ref(5) // 默认5秒,会根据镜头duration自动更新
@@ -1148,7 +1110,7 @@ const extractProviderFromModel = (modelName: string): string => {
if (modelName.startsWith('kling')) {
return 'kling'
}
-
+
// 默认返回doubao
return 'doubao'
}
@@ -1157,10 +1119,10 @@ const extractProviderFromModel = (modelName: string): string => {
const loadVideoModels = async () => {
try {
const configs = await aiAPI.list('video')
-
+
// 只显示启用的配置
const activeConfigs = configs.filter(c => c.is_active)
-
+
// 展开模型列表并去重
const allModels = activeConfigs.flatMap(config => {
const models = Array.isArray(config.model) ? config.model : [config.model]
@@ -1170,7 +1132,7 @@ const loadVideoModels = async () => {
priority: config.priority || 0
}))
}).sort((a, b) => b.priority - a.priority)
-
+
// 按模型名称去重
const modelMap = new Map<string, { configName: string, priority: number }>()
allModels.forEach(model => {
@@ -1178,7 +1140,7 @@ const loadVideoModels = async () => {
modelMap.set(model.modelName, { configName: model.configName, priority: model.priority })
}
})
-
+
// 构建模型能力列表
videoModelCapabilities.value = Array.from(modelMap.keys()).map(modelName => {
const capability = defaultModelCapabilities[modelName] || {
@@ -1188,7 +1150,7 @@ const loadVideoModels = async () => {
supportTextOnly: true,
maxImages: 1
}
-
+
return {
id: modelName,
name: modelName,
@@ -1227,9 +1189,9 @@ const currentModelCapability = computed(() => {
const availableReferenceModes = computed(() => {
const capability = currentModelCapability.value
if (!capability) return []
-
- const modes: Array<{value: string, label: string, description?: string}> = []
-
+
+ const modes: Array<{ value: string, label: string, description?: string }> = []
+
if (capability.supportTextOnly) {
modes.push({ value: 'none', label: '纯文本', description: '不使用参考图' })
}
@@ -1242,7 +1204,7 @@ const availableReferenceModes = computed(() => {
if (capability.supportMultipleImages) {
modes.push({ value: 'multiple', label: '多图', description: `最多${capability.maxImages}张` })
}
-
+
return modes
})
@@ -1272,18 +1234,21 @@ const currentStoryboard = computed(() => {
// 监听帧类型切换,从存储中加载或清空
watch(selectedFrameType, (newType) => {
+ // 切换帧类型时,停止之前的轮询,避免旧结果覆盖新帧类型
+ stopPolling()
+
if (!currentStoryboard.value) {
currentFramePrompt.value = ''
generatedImages.value = []
return
}
-
+
// 设置切换标志,防止watch(currentFramePrompt)错误保存
isSwitchingFrameType.value = true
-
+
// 从 framePrompts 对象中加载该帧类型的提示词
currentFramePrompt.value = framePrompts.value[newType] || ''
-
+
// 从 sessionStorage 中加载该帧类型之前的提示词(如果framePrompts中没有)
if (!currentFramePrompt.value) {
const storageKey = `frame_prompt_${currentStoryboard.value.id}_${newType}`
@@ -1293,10 +1258,10 @@ watch(selectedFrameType, (newType) => {
framePrompts.value[newType] = stored
}
}
-
+
// 重新加载该帧类型的图片
loadStoryboardImages(currentStoryboard.value.id, newType)
-
+
// 重置切换标志
setTimeout(() => {
isSwitchingFrameType.value = false
@@ -1312,10 +1277,10 @@ watch(currentStoryboard, async (newStoryboard) => {
videoReferenceImages.value = []
return
}
-
+
// 设置切换标志
isSwitchingFrameType.value = true
-
+
// 加载当前帧类型的提示词
const storageKey = getPromptStorageKey(newStoryboard.id, selectedFrameType.value)
if (storageKey) {
@@ -1324,18 +1289,18 @@ watch(currentStoryboard, async (newStoryboard) => {
} else {
currentFramePrompt.value = ''
}
-
+
// 重置切换标志
setTimeout(() => {
isSwitchingFrameType.value = false
}, 0)
-
+
// 加载该分镜的图片列表(根据当前选择的帧类型)
await loadStoryboardImages(newStoryboard.id, selectedFrameType.value)
-
+
// 加载视频参考图片(所有帧类型)
await loadVideoReferenceImages(newStoryboard.id)
-
+
// 加载该分镜的视频列表
await loadStoryboardVideos(newStoryboard.id)
})
@@ -1345,7 +1310,7 @@ watch(currentFramePrompt, (newPrompt) => {
// 如果正在切换帧类型或分镜,不要保存(避免错误保存到新帧类型)
if (isSwitchingFrameType.value) return
if (!currentStoryboard.value) return
-
+
const storageKey = getPromptStorageKey(currentStoryboard.value.id, selectedFrameType.value)
if (storageKey) {
if (newPrompt) {
@@ -1383,7 +1348,7 @@ watch(selectedReferenceMode, () => {
// 当前分镜的角色列表
const currentStoryboardCharacters = computed(() => {
if (!currentStoryboard.value?.characters) return []
-
+
// currentStoryboard.characters 是角色对象数组
if (Array.isArray(currentStoryboard.value.characters) && currentStoryboard.value.characters.length > 0) {
const firstItem = currentStoryboard.value.characters[0]
@@ -1396,7 +1361,7 @@ const currentStoryboardCharacters = computed(() => {
return characters.value.filter(c => currentStoryboard.value.characters.includes(c.id))
}
}
-
+
return []
})
@@ -1408,7 +1373,7 @@ const availableCharacters = computed(() => {
// 检查角色是否已在当前镜头中
const isCharacterInCurrentShot = (charId: number) => {
if (!currentStoryboard.value?.characters) return false
-
+
if (Array.isArray(currentStoryboard.value.characters) && currentStoryboard.value.characters.length > 0) {
const firstItem = currentStoryboard.value.characters[0]
if (typeof firstItem === 'object' && firstItem.id) {
@@ -1418,7 +1383,7 @@ const isCharacterInCurrentShot = (charId: number) => {
return currentStoryboard.value.characters.includes(charId)
}
}
-
+
return false
}
@@ -1438,11 +1403,10 @@ const showSceneImage = () => {
// 保存分镜字段
const saveStoryboardField = async (fieldName: string) => {
if (!currentStoryboard.value) return
-
try {
const updateData: any = {}
updateData[fieldName] = currentStoryboard.value[fieldName]
-
+
await dramaAPI.updateStoryboard(currentStoryboard.value.id.toString(), updateData)
} catch (error: any) {
ElMessage.error('保存失败: ' + (error.message || '未知错误'))
@@ -1452,19 +1416,19 @@ const saveStoryboardField = async (fieldName: string) => {
// 提取帧提示词
const extractFramePrompt = async () => {
if (!currentStoryboard.value) return
-
+
// 记录点击时的帧类型,避免切换tab后提示词显示错位
const targetFrameType = selectedFrameType.value
-
+
generatingPrompt.value = true
try {
const params: any = { frame_type: targetFrameType }
if (targetFrameType === 'panel') {
params.panel_count = panelCount.value
}
-
+
const result = await generateFramePrompt(currentStoryboard.value.id, params)
-
+
// 根据记录的帧类型提取prompt,确保更新到正确的位置
let extractedPrompt = ''
if (result.single_frame) {
@@ -1475,15 +1439,15 @@ const extractFramePrompt = async () => {
.map((frame: any, index: number) => `${frame.description}: ${frame.prompt}`)
.join('\n\n')
}
-
+
// 只在当前仍然选中该帧类型时才更新显示
if (selectedFrameType.value === targetFrameType) {
currentFramePrompt.value = extractedPrompt
}
-
+
// 存储到对应帧类型的提示词中
framePrompts.value[targetFrameType] = extractedPrompt
-
+
ElMessage.success(`${getFrameTypeLabel(targetFrameType)}提示词提取成功`)
} catch (error: any) {
ElMessage.error('提取失败: ' + (error.message || '未知错误'))
@@ -1518,7 +1482,7 @@ const loadStoryboardImages = async (storyboardId: number, frameType?: string) =>
}
const result = await imageAPI.listImages(params)
generatedImages.value = result.items || []
-
+
// 如果有进行中的任务,启动轮询
const hasPendingOrProcessing = generatedImages.value.some(
img => img.status === 'pending' || img.status === 'processing'
@@ -1536,29 +1500,42 @@ const loadStoryboardImages = async (storyboardId: number, frameType?: string) =>
// 启动状态轮询
const startPolling = () => {
if (pollingTimer) return
-
+
+ // 记录开始轮询时的帧类型
+ pollingFrameType = selectedFrameType.value
+
pollingTimer = setInterval(async () => {
if (!currentStoryboard.value) {
stopPolling()
return
}
-
+
+ // 如果帧类型已切换,停止轮询(防止更新到错误的帧类型)
+ if (selectedFrameType.value !== pollingFrameType) {
+ stopPolling()
+ return
+ }
+
try {
const params: any = {
storyboard_id: currentStoryboard.value.id,
page: 1,
page_size: 50
}
- // 根据当前选择的帧类型过滤
- if (selectedFrameType.value) {
- params.frame_type = selectedFrameType.value
+ // 使用轮询开始时记录的帧类型
+ if (pollingFrameType) {
+ params.frame_type = pollingFrameType
}
const result = await imageAPI.listImages(params)
- generatedImages.value = result.items || []
-
+
+ // 再次检查帧类型是否仍然匹配,避免竞态条件
+ if (selectedFrameType.value === pollingFrameType) {
+ generatedImages.value = result.items || []
+ }
+
// 如果没有进行中的任务,停止轮询
- const hasPendingOrProcessing = generatedImages.value.some(
- img => img.status === 'pending' || img.status === 'processing'
+ const hasPendingOrProcessing = (result.items || []).some(
+ (img: any) => img.status === 'pending' || img.status === 'processing'
)
if (!hasPendingOrProcessing) {
stopPolling()
@@ -1575,22 +1552,23 @@ const stopPolling = () => {
clearInterval(pollingTimer)
pollingTimer = null
}
+ pollingFrameType = null
}
// 生成图片
const generateFrameImage = async () => {
if (!currentStoryboard.value || !currentFramePrompt.value) return
-
+
generatingImage.value = true
try {
// 收集参考图片URL
const referenceImages: string[] = []
-
+
// 1. 添加场景图片(从background字段获取)
if (currentStoryboard.value.background?.image_url) {
referenceImages.push(currentStoryboard.value.background.image_url)
}
-
+
// 2. 添加当前镜头登场的角色图片
const storyboardCharacters = currentStoryboardCharacters.value
if (storyboardCharacters && storyboardCharacters.length > 0) {
@@ -1600,7 +1578,7 @@ const generateFrameImage = async () => {
}
})
}
-
+
const result = await imageAPI.generateImage({
drama_id: dramaId.toString(),
prompt: currentFramePrompt.value,
@@ -1609,15 +1587,15 @@ const generateFrameImage = async () => {
frame_type: selectedFrameType.value,
reference_images: referenceImages.length > 0 ? referenceImages : undefined
})
-
+
generatedImages.value.unshift(result)
-
+
// 提示信息
- const refMsg = referenceImages.length > 0
- ? ` (已添加${referenceImages.length}张参考图)`
+ const refMsg = referenceImages.length > 0
+ ? ` (已添加${referenceImages.length}张参考图)`
: ''
ElMessage.success(`图片生成任务已提交${refMsg}`)
-
+
// 启动轮询
startPolling()
} catch (error: any) {
@@ -1652,7 +1630,7 @@ const addVideoToAssets = async (video: VideoGeneration) => {
}
addingToAssets.value.add(video.id)
-
+
try {
// 检查该镜头是否已存在素材
let isReplacing = false
@@ -1675,17 +1653,17 @@ const addVideoToAssets = async (video: VideoGeneration) => {
// 添加新素材
await assetAPI.importFromVideo(video.id)
ElMessage.success('已添加到素材库')
-
+
// 重新加载素材库列表
await loadVideoAssets()
-
+
// 如果是替换操作,更新时间线中使用该分镜的所有视频片段
if (isReplacing && video.storyboard_id && video.video_url) {
console.log('=== 视频替换,准备更新时间线 ===')
console.log('timelineEditorRef.value:', timelineEditorRef.value)
console.log('video.storyboard_id:', video.storyboard_id)
console.log('video.video_url:', video.video_url)
-
+
if (timelineEditorRef.value) {
timelineEditorRef.value.updateClipsByStoryboardId(
video.storyboard_id,
@@ -1732,12 +1710,12 @@ const getStoryboardThumbnail = (storyboard: any) => {
if (storyboard.composed_image) {
return storyboard.composed_image
}
-
+
// 如果没有composed_image,从image_url字段获取
if (storyboard.image_url) {
return storyboard.image_url
}
-
+
return null
}
@@ -1747,36 +1725,36 @@ const handleImageSelect = (imageId: number) => {
ElMessage.warning('请先选择参考图模式')
return
}
-
+
if (!currentModelCapability.value) {
ElMessage.warning('请先选择视频生成模型')
return
}
-
+
const capability = currentModelCapability.value
const currentIndex = selectedImagesForVideo.value.indexOf(imageId)
-
+
// 已选中,则取消选择
if (currentIndex > -1) {
selectedImagesForVideo.value.splice(currentIndex, 1)
return
}
-
+
// 获取当前点击的图片对象
const clickedImage = videoReferenceImages.value.find(img => img.id === imageId)
if (!clickedImage) return
-
+
// 根据选择的参考图模式处理
switch (selectedReferenceMode.value) {
case 'single':
// 单图模式:只能选1张,直接替换
selectedImagesForVideo.value = [imageId]
break
-
+
case 'first_last':
// 首尾帧模式:根据图片类型分别处理
const frameType = clickedImage.frame_type
-
+
if (frameType === 'first' || frameType === 'panel' || frameType === 'key') {
// 首帧:直接替换
selectedImagesForVideo.value = [imageId]
@@ -1787,7 +1765,7 @@ const handleImageSelect = (imageId: number) => {
ElMessage.warning('首尾帧模式下,请选择首帧或尾帧类型的图片')
}
break
-
+
case 'multiple':
// 多图模式:检查是否超出最大数量
if (selectedImagesForVideo.value.length >= capability.maxImages) {
@@ -1796,7 +1774,7 @@ const handleImageSelect = (imageId: number) => {
}
selectedImagesForVideo.value.push(imageId)
break
-
+
default:
ElMessage.warning('未知的参考图模式')
}
@@ -1841,7 +1819,7 @@ const removeSelectedImage = (imageId: number) => {
selectedLastImageForVideo.value = null
return
}
-
+
// 检查是否是首帧或其他图片
const index = selectedImagesForVideo.value.indexOf(imageId)
if (index > -1) {
@@ -1855,18 +1833,18 @@ const generateVideo = async () => {
ElMessage.warning('请先选择视频生成模型')
return
}
-
+
if (!currentStoryboard.value) {
ElMessage.warning('请先选择分镜')
return
}
-
+
// 检查参考图模式
if (selectedReferenceMode.value !== 'none' && selectedImagesForVideo.value.length === 0) {
ElMessage.warning('请选择参考图片')
return
}
-
+
// 获取第一张选中的图片(仅在需要图片的模式下)
let selectedImage = null
if (selectedReferenceMode.value !== 'none' && selectedImagesForVideo.value.length > 0) {
@@ -1876,12 +1854,12 @@ const generateVideo = async () => {
return
}
}
-
+
generatingVideo.value = true
try {
// 从模型名称提取正确的provider
const provider = extractProviderFromModel(selectedVideoModel.value)
-
+
// 构建请求参数
const requestParams: any = {
drama_id: dramaId.toString(),
@@ -1892,7 +1870,7 @@ const generateVideo = async () => {
model: selectedVideoModel.value,
reference_mode: selectedReferenceMode.value
}
-
+
// 根据参考图模式设置参数
switch (selectedReferenceMode.value) {
case 'single':
@@ -1900,12 +1878,12 @@ const generateVideo = async () => {
requestParams.image_url = selectedImage.image_url
requestParams.image_gen_id = selectedImage.id
break
-
+
case 'first_last':
// 首尾帧模式
const firstImage = videoReferenceImages.value.find(img => img.id === selectedImagesForVideo.value[0])
const lastImage = videoReferenceImages.value.find(img => img.id === selectedLastImageForVideo.value)
-
+
if (firstImage?.image_url) {
requestParams.first_frame_url = firstImage.image_url
}
@@ -1913,7 +1891,7 @@ const generateVideo = async () => {
requestParams.last_frame_url = lastImage.image_url
}
break
-
+
case 'multiple':
// 多图模式
const selectedImages = selectedImagesForVideo.value
@@ -1922,17 +1900,17 @@ const generateVideo = async () => {
.map(img => img!.image_url)
requestParams.reference_image_urls = selectedImages
break
-
+
case 'none':
// 无参考图模式
break
}
-
+
const result = await videoAPI.generateVideo(requestParams)
-
+
generatedVideos.value.unshift(result)
ElMessage.success('视频生成任务已提交')
-
+
// 启动视频轮询
startVideoPolling()
} catch (error: any) {
@@ -1966,7 +1944,7 @@ const loadStoryboardVideos = async (storyboardId: number) => {
page_size: 50
})
generatedVideos.value = result.items || []
-
+
// 如果有进行中的任务,启动轮询
const hasPendingOrProcessing = generatedVideos.value.some(
v => v.status === 'pending' || v.status === 'processing'
@@ -1984,13 +1962,13 @@ const loadStoryboardVideos = async (storyboardId: number) => {
// 启动视频状态轮询
const startVideoPolling = () => {
if (videoPollingTimer) return
-
+
videoPollingTimer = setInterval(async () => {
if (!currentStoryboard.value) {
stopVideoPolling()
return
}
-
+
try {
const result = await videoAPI.listVideos({
storyboard_id: currentStoryboard.value.id.toString(),
@@ -1998,7 +1976,7 @@ const startVideoPolling = () => {
page_size: 50
})
generatedVideos.value = result.items || []
-
+
// 如果没有进行中的任务,停止轮询
const hasPendingOrProcessing = generatedVideos.value.some(
v => v.status === 'pending' || v.status === 'processing'
@@ -2022,20 +2000,20 @@ const stopVideoPolling = () => {
const toggleCharacterInShot = async (charId: number) => {
if (!currentStoryboard.value) return
-
+
// 初始化characters数组
if (!currentStoryboard.value.characters) {
currentStoryboard.value.characters = []
}
-
+
const char = characters.value.find(c => c.id === charId)
if (!char) return
-
+
// 检查是否已存在
- const existIndex = currentStoryboard.value.characters.findIndex(c =>
+ const existIndex = currentStoryboard.value.characters.findIndex(c =>
typeof c === 'object' ? c.id === charId : c === charId
)
-
+
if (existIndex > -1) {
// 移除角色
currentStoryboard.value.characters.splice(existIndex, 1)
@@ -2043,17 +2021,17 @@ const toggleCharacterInShot = async (charId: number) => {
// 添加角色(作为对象)
currentStoryboard.value.characters.push(char)
}
-
+
// 保存到后端
try {
- const characterIds = currentStoryboard.value.characters.map(c =>
+ const characterIds = currentStoryboard.value.characters.map(c =>
typeof c === 'object' ? c.id : c
)
-
+
await dramaAPI.updateStoryboard(currentStoryboard.value.id.toString(), {
character_ids: characterIds
})
-
+
if (existIndex > -1) {
ElMessage.success(`已移除角色: ${char.name}`)
} else {
@@ -2072,35 +2050,35 @@ const toggleCharacterInShot = async (charId: number) => {
const removeCharacterFromShot = async (charId: number) => {
if (!currentStoryboard.value) return
-
+
// 初始化characters数组
if (!currentStoryboard.value.characters) {
currentStoryboard.value.characters = []
}
-
+
const char = characters.value.find(c => c.id === charId)
if (!char) return
-
+
// 检查是否已存在
- const existIndex = currentStoryboard.value.characters.findIndex(c =>
+ const existIndex = currentStoryboard.value.characters.findIndex(c =>
typeof c === 'object' ? c.id === charId : c === charId
)
-
+
if (existIndex > -1) {
// 移除角色
currentStoryboard.value.characters.splice(existIndex, 1)
}
-
+
// 保存到后端
try {
- const characterIds = currentStoryboard.value.characters.map(c =>
+ const characterIds = currentStoryboard.value.characters.map(c =>
typeof c === 'object' ? c.id : c
)
-
+
await dramaAPI.updateStoryboard(currentStoryboard.value.id.toString(), {
character_ids: characterIds
})
-
+
ElMessage.success(`已移除角色: ${char.name}`)
} catch (error: any) {
ElMessage.error('保存失败: ' + (error.message || '未知错误'))
@@ -2114,7 +2092,7 @@ const loadData = async () => {
// 加载剧集信息
const dramaRes = await dramaAPI.get(dramaId.toString())
drama.value = dramaRes
-
+
// 找到当前章节
const ep = dramaRes.episodes?.find(e => e.episode_number === episodeNumber)
if (!ep) {
@@ -2122,30 +2100,30 @@ const loadData = async () => {
router.back()
return
}
-
+
episode.value = ep
episodeId.value = ep.id
-
+
// 加载分镜列表
const storyboardsRes = await dramaAPI.getStoryboards(ep.id.toString())
-
+
// API返回格式: {storyboards: [...], total: number}
storyboards.value = storyboardsRes?.storyboards || []
-
+
// 默认选中第一个分镜
if (storyboards.value.length > 0 && !currentStoryboardId.value) {
currentStoryboardId.value = storyboards.value[0].id
}
-
+
// 加载角色列表
characters.value = dramaRes.characters || []
-
+
// 加载可用场景列表
availableScenes.value = dramaRes.scenes || []
-
+
// 加载视频素材库
await loadVideoAssets()
-
+
} catch (error: any) {
ElMessage.error('加载数据失败: ' + (error.message || '未知错误'))
}
@@ -2153,13 +2131,13 @@ const loadData = async () => {
const selectScene = async (sceneId: number) => {
if (!currentStoryboard.value) return
-
+
try {
// TODO: 调用API更新分镜的scene_id
await dramaAPI.updateScene(currentStoryboard.value.id.toString(), {
scene_id: sceneId
})
-
+
// 重新加载数据
await loadData()
showSceneSelector.value = false
@@ -2205,7 +2183,7 @@ const zoomOut = () => {
const generateImage = async () => {
if (!currentStoryboard.value) return
-
+
try {
ElMessage.info('图片生成功能开发中')
} catch (error: any) {
@@ -2227,7 +2205,7 @@ const goBack = () => {
// 加载视频合成列表
const loadVideoMerges = async () => {
if (!episodeId.value) return
-
+
try {
loadingMerges.value = true
const result = await videoMergeAPI.listMerges({
@@ -2241,7 +2219,7 @@ const loadVideoMerges = async () => {
const hasProcessingTasks = result.merges.some(
(merge: any) => merge.status === 'pending' || merge.status === 'processing'
)
-
+
if (hasProcessingTasks) {
startMergePolling()
} else {
@@ -2258,13 +2236,13 @@ const loadVideoMerges = async () => {
// 启动视频合成列表轮询
const startMergePolling = () => {
if (mergePollingTimer) return
-
+
mergePollingTimer = setInterval(async () => {
if (!episodeId.value) {
stopMergePolling()
return
}
-
+
try {
const result = await videoMergeAPI.listMerges({
episode_id: episodeId.value.toString(),
@@ -2272,12 +2250,12 @@ const startMergePolling = () => {
page_size: 20
})
videoMerges.value = result.merges
-
+
// 检查是否还有进行中的任务
const hasProcessingTasks = result.merges.some(
(merge: any) => merge.status === 'pending' || merge.status === 'processing'
)
-
+
if (!hasProcessingTasks) {
stopMergePolling()
}
@@ -2309,16 +2287,16 @@ const downloadVideo = async (url: string, title: string) => {
message: '正在准备下载...',
duration: 0
})
-
+
// 使用fetch获取视频blob
const response = await fetch(url)
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`)
}
-
+
const blob = await response.blob()
const blobUrl = window.URL.createObjectURL(blob)
-
+
// 创建下载链接
const link = document.createElement('a')
link.href = blobUrl
@@ -2326,13 +2304,13 @@ const downloadVideo = async (url: string, title: string) => {
link.style.display = 'none'
document.body.appendChild(link)
link.click()
-
+
// 清理
setTimeout(() => {
document.body.removeChild(link)
window.URL.revokeObjectURL(blobUrl)
}, 100)
-
+
loadingMsg.close()
ElMessage.success('视频下载已开始')
} catch (error) {
@@ -2358,7 +2336,7 @@ const deleteMerge = async (mergeId: number) => {
type: 'warning'
}
)
-
+
await videoMergeAPI.deleteMerge(mergeId)
ElMessage.success('删除成功')
// 刷新列表
@@ -2379,12 +2357,12 @@ const formatDateTime = (dateStr: string) => {
const minutes = Math.floor(diff / 60000)
const hours = Math.floor(diff / 3600000)
const days = Math.floor(diff / 86400000)
-
+
if (minutes < 1) return '刚刚'
if (minutes < 60) return `${minutes}分钟前`
if (hours < 24) return `${hours}小时前`
if (days < 7) return `${days}天前`
-
+
// 超过7天显示完整日期
const month = String(date.getMonth() + 1).padStart(2, '0')
const day = String(date.getDate()).padStart(2, '0')
@@ -2408,92 +2386,92 @@ onBeforeUnmount(() => {
</script>
<style scoped lang="scss">
-// 镜头列表项样式 - 白色主题
+// 镜头列表项样式
.storyboard-item {
- padding: 8px;
- cursor: pointer;
- border-radius: 6px;
- transition: all 0.2s;
- border: 1px solid #e0e0e0;
- margin-bottom: 8px;
- display: flex;
- gap: 10px;
- align-items: center;
- background: #fff;
+ padding: 8px;
+ cursor: pointer;
+ border-radius: 6px;
+ transition: all 0.2s;
+ border: 1px solid var(--border-primary);
+ margin-bottom: 8px;
+ display: flex;
+ gap: 10px;
+ align-items: center;
+ background: var(--bg-card);
- &:hover {
- background: #f5f5f5;
- border-color: #d0d0d0;
- }
+ &:hover {
+ background: var(--bg-card-hover);
+ border-color: var(--border-secondary);
+ }
- &.active {
- background: #409eff;
- border-color: #409eff;
+ &.active {
+ background: var(--accent);
+ border-color: var(--accent);
- .shot-number,
- .shot-title {
- color: #fff !important;
- }
+ .shot-number,
+ .shot-title {
+ color: var(--text-inverse) !important;
+ }
- .shot-duration {
- background: rgba(255, 255, 255, 0.2);
- color: #fff;
- }
+ .shot-duration {
+ background: rgba(255, 255, 255, 0.2);
+ color: var(--text-inverse);
}
+ }
- .shot-thumbnail {
- width: 80px;
- height: 50px;
- border-radius: 4px;
- overflow: hidden;
- background: #f0f0f0;
- flex-shrink: 0;
- display: flex;
- align-items: center;
- justify-content: center;
+ .shot-thumbnail {
+ width: 80px;
+ height: 50px;
+ border-radius: 4px;
+ overflow: hidden;
+ background: var(--bg-secondary);
+ flex-shrink: 0;
+ display: flex;
+ align-items: center;
+ justify-content: center;
- img {
- width: 100%;
- height: 100%;
- object-fit: cover;
- }
+ img {
+ width: 100%;
+ height: 100%;
+ object-fit: cover;
}
+ }
- .shot-content {
- flex: 1;
- min-width: 0;
+ .shot-content {
+ flex: 1;
+ min-width: 0;
- .shot-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 4px;
+ .shot-header {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ margin-bottom: 4px;
- .shot-number {
- font-size: 11px;
- color: #666;
- font-weight: 500;
- }
+ .shot-number {
+ font-size: 11px;
+ color: var(--text-secondary);
+ font-weight: 500;
+ }
- .shot-duration {
- font-size: 11px;
- color: #666;
- background: #f0f0f0;
- padding: 2px 6px;
- border-radius: 3px;
- }
- }
+ .shot-duration {
+ font-size: 11px;
+ color: var(--text-secondary);
+ background: var(--bg-secondary);
+ padding: 2px 6px;
+ border-radius: 3px;
+ }
+ }
- .shot-title {
- font-size: 13px;
- color: #333;
- font-weight: 500;
- line-height: 1.3;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
+ .shot-title {
+ font-size: 13px;
+ color: var(--text-primary);
+ font-weight: 500;
+ line-height: 1.3;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
}
+ }
}
// 视频合成列表样式
@@ -2677,7 +2655,7 @@ onBeforeUnmount(() => {
.merge-error {
margin-bottom: 12px;
-
+
:deep(.el-alert) {
border-radius: 8px;
border: none;
@@ -2708,6 +2686,7 @@ onBeforeUnmount(() => {
from {
transform: rotate(0deg);
}
+
to {
transform: rotate(360deg);
}
@@ -2719,9 +2698,12 @@ onBeforeUnmount(() => {
// 脉冲动画
@keyframes pulse {
- 0%, 100% {
+
+ 0%,
+ 100% {
opacity: 1;
}
+
50% {
opacity: 0.6;
}
@@ -2732,7 +2714,7 @@ onBeforeUnmount(() => {
padding: 16px;
height: 100%;
overflow-y: auto;
- background: #fff;
+ // background: #fff;
.section-label {
font-size: 12px;
@@ -2752,7 +2734,7 @@ onBeforeUnmount(() => {
overflow: hidden;
position: relative;
background: #f5f5f5;
- border: 1px solid #e0e0e0;
+ border: 1px solid var(--border-primary);
img {
width: 100%;
@@ -2902,7 +2884,7 @@ onBeforeUnmount(() => {
width: 100%;
text-align: center;
padding: 15px;
- color: #999;
+ color: var(--text-muted);
font-size: 11px;
}
}
@@ -2920,7 +2902,7 @@ onBeforeUnmount(() => {
label {
display: block;
font-size: 11px;
- color: #666;
+ color: var(--text-secondary);
margin-bottom: 6px;
}
}
@@ -2950,27 +2932,27 @@ onBeforeUnmount(() => {
overflow-y: auto;
.scene-card {
- border: 2px solid #ddd;
+ border: 2px solid var(--border-primary);
border-radius: 8px;
overflow: hidden;
cursor: pointer;
transition: all 0.2s;
&:hover {
- border-color: #409eff;
+ border-color: var(--accent);
transform: translateY(-2px);
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
+ box-shadow: var(--shadow-md);
}
&.selected {
- border-color: #409eff;
- background: #ecf5ff;
+ border-color: var(--accent);
+ background: var(--accent-light);
}
.scene-image {
width: 100%;
height: 150px;
- background: #f5f5f5;
+ background: var(--bg-secondary);
display: flex;
align-items: center;
justify-content: center;
@@ -2984,18 +2966,18 @@ onBeforeUnmount(() => {
.scene-info {
padding: 12px;
- background: #fff;
+ background: var(--bg-card);
.scene-location {
font-size: 14px;
font-weight: 600;
- color: #303133;
+ color: var(--text-primary);
margin-bottom: 4px;
}
.scene-time {
font-size: 12px;
- color: #909399;
+ color: var(--text-muted);
}
}
}
@@ -3023,7 +3005,7 @@ onBeforeUnmount(() => {
.character-card {
position: relative;
- border: 2px solid #ddd;
+ border: 2px solid var(--border-primary);
border-radius: 8px;
padding: 16px;
cursor: pointer;
@@ -3034,14 +3016,14 @@ onBeforeUnmount(() => {
gap: 12px;
&:hover {
- border-color: #409eff;
+ border-color: var(--accent);
transform: translateY(-2px);
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
+ box-shadow: var(--shadow-md);
}
&.selected {
- border-color: #409eff;
- background: #ecf5ff;
+ border-color: var(--accent);
+ background: var(--accent-light);
}
.character-avatar-large {
@@ -3052,10 +3034,10 @@ onBeforeUnmount(() => {
display: flex;
align-items: center;
justify-content: center;
- background: #f5f5f5;
+ background: var(--bg-secondary);
font-size: 32px;
font-weight: 600;
- color: #409eff;
+ color: var(--accent);
img {
width: 100%;
@@ -3070,13 +3052,13 @@ onBeforeUnmount(() => {
.character-name {
font-size: 14px;
font-weight: 600;
- color: #303133;
+ color: var(--text-primary);
margin-bottom: 4px;
}
.character-role {
font-size: 12px;
- color: #909399;
+ color: var(--text-muted);
}
}
@@ -3099,7 +3081,7 @@ onBeforeUnmount(() => {
justify-content: center;
align-items: center;
min-height: 400px;
-
+
img {
max-width: 100%;
max-height: 500px;
@@ -3114,9 +3096,9 @@ onBeforeUnmount(() => {
justify-content: center;
align-items: center;
min-height: 450px;
- background: #f5f5f5;
+ background: var(--bg-secondary);
border-radius: 8px;
-
+
img {
max-width: 100%;
max-height: 600px;
@@ -3132,7 +3114,7 @@ onBeforeUnmount(() => {
.section-label {
font-size: 12px;
- color: #666;
+ color: var(--text-secondary);
margin-bottom: 12px;
}
@@ -3145,7 +3127,7 @@ onBeforeUnmount(() => {
label {
display: block;
font-size: 11px;
- color: #666;
+ color: var(--text-secondary);
margin-bottom: 6px;
}
}
@@ -3153,12 +3135,12 @@ onBeforeUnmount(() => {
.audio-controls {
:deep(.el-textarea__inner) {
- background: #fff;
- border-color: #dcdfe6;
- color: #333;
-
+ background: var(--bg-card);
+ border-color: var(--border-primary);
+ color: var(--text-primary);
+
&::placeholder {
- color: #999;
+ color: var(--text-muted);
}
}
@@ -3184,16 +3166,16 @@ onBeforeUnmount(() => {
height: 100vh;
display: flex;
flex-direction: column;
- background: #f5f5f5;
- color: #333;
+ background: var(--bg-primary);
+ color: var(--text-primary);
.editor-toolbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 20px;
- background: #fff;
- border-bottom: 1px solid #e0e0e0;
+ background: var(--bg-card);
+ border-bottom: 1px solid var(--border-primary);
.toolbar-left {
display: flex;
@@ -3201,15 +3183,16 @@ onBeforeUnmount(() => {
gap: 12px;
.back-btn {
- color: #333;
+ color: var(--text-secondary);
+
&:hover {
- color: #409eff;
+ color: var(--accent);
}
}
.episode-title {
font-size: 14px;
- color: #333;
+ color: var(--text-primary);
}
}
@@ -3227,8 +3210,8 @@ onBeforeUnmount(() => {
.storyboard-panel {
width: 280px;
- background: #fff;
- border-right: 1px solid #e0e0e0;
+ background: var(--bg-card);
+ border-right: 1px solid var(--border-primary);
display: flex;
flex-direction: column;
@@ -3237,7 +3220,7 @@ onBeforeUnmount(() => {
justify-content: space-between;
align-items: center;
padding: 16px;
- border-bottom: 1px solid #e0e0e0;
+ border-bottom: 1px solid var(--border-primary);
h3 {
margin: 0;
@@ -3256,32 +3239,33 @@ onBeforeUnmount(() => {
flex-direction: column;
padding: 12px;
margin-bottom: 8px;
- background: #f9f9f9;
+ background: var(--bg-secondary);
border-radius: 8px;
cursor: pointer;
transition: all 0.2s;
&:hover {
- background: #f0f0f0;
+ background: var(--bg-card-hover);
}
&.active {
- background: #e6f7ff;
- border-left: 3px solid #409eff;
+ background: var(--accent-light);
+ border-left: 3px solid var(--accent);
.shot-content {
+
.shot-number,
.shot-title {
- color: #0066cc !important;
+ color: var(--accent) !important;
}
.shot-action {
- color: #333 !important;
+ color: var(--text-primary) !important;
}
.shot-duration {
- background: rgba(64, 158, 255, 0.15);
- color: #409eff;
+ background: var(--accent-light);
+ color: var(--accent);
}
}
}
@@ -3306,14 +3290,14 @@ onBeforeUnmount(() => {
.shot-number {
font-size: 12px;
font-weight: 600;
- color: #666;
+ color: var(--text-secondary);
flex-shrink: 0;
}
.shot-title {
font-size: 13px;
font-weight: 500;
- color: #333;
+ color: var(--text-primary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
@@ -3322,8 +3306,8 @@ onBeforeUnmount(() => {
.shot-duration {
font-size: 11px;
- color: #999;
- background: #f0f0f0;
+ color: var(--text-muted);
+ background: var(--bg-card-hover);
padding: 2px 8px;
border-radius: 4px;
flex-shrink: 0;
@@ -3332,7 +3316,7 @@ onBeforeUnmount(() => {
.shot-action {
font-size: 11px;
- color: #666;
+ color: var(--text-secondary);
line-height: 1.5;
overflow: hidden;
text-overflow: ellipsis;
@@ -3349,7 +3333,7 @@ onBeforeUnmount(() => {
flex: 1;
display: flex;
flex-direction: column;
- background: #fafafa;
+ background: var(--bg-secondary);
overflow: hidden;
.empty-timeline {
@@ -3361,9 +3345,9 @@ onBeforeUnmount(() => {
}
.edit-panel {
- width: 420px;
- background: #fff;
- border-left: 1px solid #e0e0e0;
+ width: 520px;
+ background: var(--bg-card);
+ border-left: 1px solid var(--border-primary);
overflow: hidden;
flex-shrink: 0;
@@ -3372,9 +3356,9 @@ onBeforeUnmount(() => {
:deep(.el-tabs__header) {
margin: 0;
- background: #f9f9f9;
+ background: var(--bg-secondary);
padding: 0 16px;
- border-bottom: 1px solid #e0e0e0;
+ border-bottom: 1px solid var(--border-primary);
}
:deep(.el-tabs__content) {
@@ -3397,14 +3381,33 @@ onBeforeUnmount(() => {
}
}
+// 通用参数行样式
+.param-row {
+ margin-bottom: 8px;
+ display: flex;
+ align-items: center;
+ gap: 8px;
+
+ &:last-child {
+ margin-bottom: 0;
+ }
+}
+
+.param-label {
+ min-width: 50px;
+ font-size: 12px;
+ color: var(--text-secondary);
+ flex-shrink: 0;
+}
+
// 图片生成界面样式
.image-generation-section {
.frame-type-selector {
margin-bottom: 20px;
-
+
.section-label {
font-size: 13px;
- color: #333;
+ color: var(--text-primary);
font-weight: 500;
margin-bottom: 12px;
}
@@ -3425,7 +3428,7 @@ onBeforeUnmount(() => {
.section-label {
font-size: 13px;
- color: #333;
+ color: var(--text-primary);
font-weight: 500;
margin-bottom: 12px;
display: flex;
@@ -3448,7 +3451,7 @@ onBeforeUnmount(() => {
.generation-result {
.section-label {
font-size: 13px;
- color: #303133;
+ color: var(--text-primary);
font-weight: 600;
margin-bottom: 12px;
display: flex;
@@ -3459,7 +3462,7 @@ onBeforeUnmount(() => {
content: '';
width: 3px;
height: 14px;
- background: linear-gradient(to bottom, #409eff, #66b1ff);
+ background: linear-gradient(to bottom, var(--accent), var(--accent-hover));
border-radius: 2px;
}
}
@@ -3473,22 +3476,22 @@ onBeforeUnmount(() => {
position: relative;
border-radius: 8px;
overflow: hidden;
- background: #fff;
- border: 1px solid #e8e8e8;
+ background: var(--bg-card);
+ border: 1px solid var(--border-primary);
transition: all 0.2s ease;
cursor: pointer;
- box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
+ box-shadow: var(--shadow-sm);
&:hover {
transform: translateY(-2px);
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
- border-color: #409eff;
+ box-shadow: var(--shadow-md);
+ border-color: var(--accent);
}
:deep(.el-image) {
width: 100%;
aspect-ratio: 16 / 9;
- background: #f5f7fa;
+ background: var(--bg-secondary);
display: block;
}
@@ -3500,8 +3503,8 @@ onBeforeUnmount(() => {
align-items: center;
justify-content: center;
gap: 8px;
- background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf0 100%);
- color: #909399;
+ background: var(--bg-secondary);
+ color: var(--text-muted);
position: relative;
overflow: hidden;
@@ -3510,12 +3513,10 @@ onBeforeUnmount(() => {
position: absolute;
width: 200%;
height: 200%;
- background: linear-gradient(
- 45deg,
- transparent 30%,
- rgba(255, 255, 255, 0.3) 50%,
- transparent 70%
- );
+ background: linear-gradient(45deg,
+ transparent 30%,
+ rgba(255, 255, 255, 0.3) 50%,
+ transparent 70%);
animation: shimmer 2s infinite;
top: -50%;
left: -50%;
@@ -3575,618 +3576,701 @@ onBeforeUnmount(() => {
0% {
transform: translateX(-100%) translateY(-100%) rotate(45deg);
}
+
100% {
transform: translateX(100%) translateY(100%) rotate(45deg);
}
}
}
- // 视频生成样式
- .video-generation-section {
- .section-label {
- font-size: 14px;
- font-weight: 600;
- color: #303133;
- margin-bottom: 12px;
- padding-left: 8px;
- border-left: 3px solid #409eff;
- }
-
- // 视频生成结果样式
- .generation-result {
- margin-top: 24px;
-
- .section-label {
- font-size: 13px;
- color: #303133;
- font-weight: 600;
- margin-bottom: 12px;
- display: flex;
- align-items: center;
- gap: 6px;
-
- &::before {
- content: '';
- width: 3px;
- height: 14px;
- background: linear-gradient(to bottom, #409eff, #66b1ff);
- border-radius: 2px;
- }
- }
-
- .image-grid {
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
- gap: 10px;
-
- .image-item {
- position: relative;
- border-radius: 8px;
- overflow: hidden;
- background: #fff;
- border: 1px solid #e8e8e8;
- transition: all 0.2s ease;
- cursor: pointer;
- box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
-
- &:hover {
- transform: translateY(-2px);
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
- border-color: #409eff;
- }
-
- .image-placeholder {
- width: 100%;
- aspect-ratio: 16 / 9;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- gap: 8px;
- background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf0 100%);
- color: #909399;
- position: relative;
- overflow: hidden;
- &::before {
- content: '';
- position: absolute;
- width: 200%;
- height: 200%;
- background: linear-gradient(
- 45deg,
- transparent 30%,
- rgba(255, 255, 255, 0.3) 50%,
- transparent 70%
- );
- animation: shimmer 2s infinite;
- top: -50%;
- left: -50%;
- }
- .el-icon {
- position: relative;
- z-index: 1;
- font-size: 24px !important;
- }
+ .panel-count-label {
+ margin-left: 5px;
+ font-size: 12px;
+ color: var(--text-muted);
+ }
- p {
- margin: 0;
- font-size: 11px;
- font-weight: 500;
- position: relative;
- z-index: 1;
- }
- }
+ .model-tags {
+ font-size: 12px;
+ color: var(--text-muted);
+ }
- .image-info {
- position: absolute;
- bottom: 0;
- left: 0;
- right: 0;
- padding: 6px 8px;
- background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.2) 70%, transparent);
- display: flex;
- justify-content: space-between;
- align-items: center;
- gap: 4px;
+ .mode-description {
+ font-size: 12px;
+ color: var(--text-muted);
+ }
- :deep(.el-tag) {
- backdrop-filter: blur(8px);
- font-size: 10px;
- height: 20px;
- padding: 0 6px;
- }
- .frame-type-tag {
- padding: 2px 6px;
- border-radius: 4px;
- font-size: 10px;
- font-weight: 500;
- background: rgba(255, 255, 255, 0.25);
- color: white;
- backdrop-filter: blur(8px);
- border: 1px solid rgba(255, 255, 255, 0.3);
- text-transform: uppercase;
- letter-spacing: 0.3px;
- }
- }
- // 视频缩略图特殊样式
- &.video-item .video-thumbnail {
- position: relative;
- width: 100%;
- aspect-ratio: 16 / 9;
- overflow: hidden;
- cursor: pointer;
-
- video {
- width: 100%;
- height: 100%;
- object-fit: cover;
- display: block;
- pointer-events: none;
- }
+}
- .play-overlay {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- display: flex;
- align-items: center;
- justify-content: center;
- background: rgba(0, 0, 0, 0.3);
- opacity: 0;
- transition: opacity 0.2s ease;
+// 视频生成样式
+.video-generation-section {
+ .section-label {
+ font-size: 14px;
+ font-weight: 600;
+ color: var(--text-primary);
+ margin-bottom: 12px;
+ padding-left: 8px;
+ border-left: 3px solid var(--accent);
+ }
- .el-icon {
- filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
- }
- }
+ // 视频生成结果样式
+ .generation-result {
+ margin-top: 24px;
- &:hover .play-overlay {
- opacity: 1;
- }
- }
- }
- }
- }
+ .section-label {
+ font-size: 13px;
+ color: #303133;
+ font-weight: 600;
+ margin-bottom: 12px;
+ display: flex;
+ align-items: center;
+ gap: 6px;
- .video-params-section {
- margin-bottom: 24px;
- padding: 20px;
- background: linear-gradient(135deg, #f5f7fa 0%, #f9f9f9 100%);
- border-radius: 12px;
- border: 1px solid #e4e7ed;
+ // &::before {
+ // content: '';
+ // width: 3px;
+ // height: 14px;
+ // background: linear-gradient(to bottom, #409eff, #66b1ff);
+ // border-radius: 2px;
+ // }
}
- .reference-images-section {
- margin-top: 24px;
-
- .image-slots-container {
- padding: 20px;
- background: #fafafa;
- border-radius: 12px;
- border: 1px dashed #dcdfe6;
- }
+ .image-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
+ gap: 10px;
- .image-slot {
+ .image-item {
position: relative;
- width: 140px;
- height: 90px;
- border: 2px dashed #dcdfe6;
border-radius: 8px;
overflow: hidden;
- cursor: pointer;
- transition: all 0.3s;
background: #fff;
-
- &:hover {
- border-color: #409eff;
- box-shadow: 0 2px 12px rgba(64, 158, 255, 0.2);
- }
-
- &.image-slot-small {
- width: 80px;
- height: 52px;
- }
- }
-
- .image-slot-placeholder {
- width: 100%;
- height: 100%;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- color: #909399;
- }
-
- .image-slot-remove {
- position: absolute;
- top: 4px;
- right: 4px;
- width: 24px;
- height: 24px;
- background: rgba(0, 0, 0, 0.6);
- border-radius: 50%;
- display: flex;
- align-items: center;
- justify-content: center;
+ border: 1px solid #e8e8e8;
+ transition: all 0.2s ease;
cursor: pointer;
- transition: all 0.2s;
+ box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
&:hover {
- background: rgba(255, 73, 73, 0.9);
- transform: scale(1.1);
- }
- }
-
- .frame-type-buttons {
- margin-bottom: 20px;
- text-align: center;
-
- :deep(.el-radio-group) {
- display: inline-flex;
- flex-wrap: wrap;
- gap: 10px;
+ transform: translateY(-2px);
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
+ border-color: #409eff;
}
- :deep(.el-radio-button) {
- border-radius: 6px;
+ .image-placeholder {
+ width: 100%;
+ aspect-ratio: 16 / 9;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ gap: 8px;
+ background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf0 100%);
+ color: #909399;
+ position: relative;
overflow: hidden;
-
- &:first-child .el-radio-button__inner {
- border-radius: 6px 0 0 6px;
+
+ &::before {
+ content: '';
+ position: absolute;
+ width: 200%;
+ height: 200%;
+ background: linear-gradient(45deg,
+ transparent 30%,
+ rgba(255, 255, 255, 0.3) 50%,
+ transparent 70%);
+ animation: shimmer 2s infinite;
+ top: -50%;
+ left: -50%;
}
-
- &:last-child .el-radio-button__inner {
- border-radius: 0 6px 6px 0;
+
+ .el-icon {
+ position: relative;
+ z-index: 1;
+ font-size: 24px !important;
}
- }
- :deep(.el-radio-button__inner) {
- padding: 10px 20px;
- font-size: 13px;
- font-weight: 500;
- border-color: #dcdfe6;
- transition: all 0.2s;
-
- &:hover {
- color: #409eff;
- border-color: #409eff;
+ p {
+ margin: 0;
+ font-size: 11px;
+ font-weight: 500;
+ position: relative;
+ z-index: 1;
}
}
- :deep(.el-radio-button.is-active .el-radio-button__inner) {
- background: linear-gradient(135deg, #409eff 0%, #5eabff 100%);
- border-color: #409eff;
- box-shadow: 0 2px 8px rgba(64, 158, 255, 0.3);
- }
- }
+ .image-info {
+ position: absolute;
+ bottom: 0;
+ left: 0;
+ right: 0;
+ padding: 6px 8px;
+ background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.2) 70%, transparent);
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ gap: 4px;
- .frame-type-content {
- padding: 20px;
- background: #ffffff;
- border-radius: 12px;
- border: 1px solid #e4e7ed;
- min-height: 200px;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
- }
+ :deep(.el-tag) {
+ backdrop-filter: blur(8px);
+ font-size: 10px;
+ height: 20px;
+ padding: 0 6px;
+ }
- .image-scroll-container {
- max-height: 280px;
- overflow-y: auto;
- overflow-x: hidden;
- padding-right: 4px;
-
- &::-webkit-scrollbar {
- width: 6px;
- }
-
- &::-webkit-scrollbar-track {
- background: #f1f1f1;
- border-radius: 3px;
- }
-
- &::-webkit-scrollbar-thumb {
- background: #c1c1c1;
- border-radius: 3px;
-
- &:hover {
- background: #a8a8a8;
+ .frame-type-tag {
+ padding: 2px 6px;
+ border-radius: 4px;
+ font-size: 10px;
+ font-weight: 500;
+ background: rgba(255, 255, 255, 0.25);
+ color: white;
+ backdrop-filter: blur(8px);
+ border: 1px solid rgba(255, 255, 255, 0.3);
+ text-transform: uppercase;
+ letter-spacing: 0.3px;
}
}
- }
- .reference-grid {
- display: grid !important;
- grid-template-columns: repeat(3, 1fr) !important;
- gap: 12px !important;
-
- .reference-item {
+ // 视频缩略图特殊样式
+ &.video-item .video-thumbnail {
position: relative;
- border-radius: 10px;
+ width: 100%;
+ aspect-ratio: 16 / 9;
overflow: hidden;
cursor: pointer;
- border: 3px solid transparent;
- transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
- width: 100% !important;
- max-width: 180px !important;
- background: #fff;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
- &:hover {
- transform: translateY(-4px) scale(1.02);
- box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
- border-color: #409eff;
- }
-
- &.selected {
- border-color: #409eff;
- box-shadow: 0 4px 16px rgba(64, 158, 255, 0.4);
- }
-
- img {
+ video {
width: 100%;
- max-width: 180px;
- aspect-ratio: 16 / 9;
+ height: 100%;
object-fit: cover;
display: block;
- transition: transform 0.3s;
- }
-
- &:hover img {
- transform: scale(1.05);
+ pointer-events: none;
}
- .reference-label {
+ .play-overlay {
position: absolute;
- bottom: 0;
+ top: 0;
left: 0;
right: 0;
- padding: 4px 8px;
- background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
- color: white;
- font-size: 10px;
- text-align: center;
+ bottom: 0;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background: rgba(0, 0, 0, 0.3);
+ opacity: 0;
+ transition: opacity 0.2s ease;
+
+ .el-icon {
+ filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
+ }
}
- }
- }
- }
- .generation-controls {
- margin-top: 40px;
- padding-top: 0;
- text-align: center;
-
- :deep(.el-button) {
- padding: 12px 32px;
- font-size: 14px;
- font-weight: 500;
- border-radius: 8px;
- transition: all 0.3s;
-
- &:hover {
- transform: translateY(-2px);
- box-shadow: 0 4px 12px rgba(64, 158, 255, 0.3);
+ &:hover .play-overlay {
+ opacity: 1;
+ }
}
}
}
+ }
- @keyframes shimmer {
- 0% {
- transform: translateX(-100%) translateY(-100%) rotate(45deg);
- }
- 100% {
- transform: translateX(100%) translateY(100%) rotate(45deg);
- }
+ .reference-mode-title {
+ margin-bottom: 12px;
+ font-size: 13px;
+ color: var(--text-primary);
+ font-weight: 500;
+ }
+
+ .frame-label {
+ margin-bottom: 8px;
+ font-size: 12px;
+ color: var(--text-muted);
+ }
+
+ .slot-hint {
+ margin-top: 8px;
+ font-size: 12px;
+ color: var(--text-muted);
+ }
+
+ .image-slot {
+ position: relative;
+ width: 140px;
+ height: 90px;
+ border: 2px dashed var(--border-primary);
+ border-radius: 8px;
+ overflow: hidden;
+ cursor: pointer;
+ background: var(--bg-card);
+ // display: flex;
+ // align-items: center;
+ // justify-content: center;
+
+ &:hover {
+ border-color: var(--accent);
}
}
- // 视频合成列表样式
- .merges-list {
- min-height: 300px;
+ .video-params-section {
+ margin-bottom: 16px;
+ padding: 12px 16px;
+ background: var(--bg-secondary);
+ border-radius: 8px;
+ border: 1px solid var(--border-primary);
+ }
- .merge-items {
- display: flex;
- flex-direction: column;
- gap: 16px;
+ .image-slots-container {
+ padding: 12px;
+ background: var(--bg-secondary);
+ border-radius: 8px;
+ border: 1px dashed var(--border-primary);
+ }
+
+ .image-slot {
+ position: relative;
+ width: 140px;
+ height: 90px;
+ border: 2px dashed var(--border-primary);
+ border-radius: 8px;
+ overflow: hidden;
+ cursor: pointer;
+ transition: all 0.3s;
+ background: var(--bg-card);
+
+ &:hover {
+ border-color: var(--accent);
+ box-shadow: var(--shadow-md);
}
- .merge-item {
- position: relative;
- background: #ffffff;
- border-radius: 12px;
- overflow: hidden;
- transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
- border: 1px solid #e4e7ed;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
+ &.image-slot-small {
+ width: 80px;
+ height: 52px;
+ }
+ }
- &:hover {
- transform: translateY(-2px);
- box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
- border-color: #c6e2ff;
+ .image-slot-placeholder {
+ width: 100%;
+ height: 100%;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ color: var(--text-muted);
+ }
+
+ .image-slot-remove {
+ position: absolute;
+ top: 4px;
+ right: 4px;
+ width: 24px;
+ height: 24px;
+ background: rgba(0, 0, 0, 0.6);
+ border-radius: 50%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ cursor: pointer;
+ transition: all 0.2s;
+
+ &:hover {
+ background: rgba(255, 73, 73, 0.9);
+ transform: scale(1.1);
+ }
+ }
+ .reference-images-section {
+ margin-top: 12px;
+
+
+ .frame-type-buttons {
+ margin-bottom: 12px;
+ text-align: center;
+
+ :deep(.el-radio-group) {
+ display: inline-flex;
+ flex-wrap: wrap;
+ gap: 0;
}
- // 状态指示条
- .status-indicator {
- position: absolute;
- left: 0;
- top: 0;
- bottom: 0;
- width: 4px;
- transition: all 0.3s ease;
+ :deep(.el-radio-button) {
+ overflow: hidden;
+
+ &:first-child .el-radio-button__inner {
+ border-radius: 6px 0 0 6px;
+ }
+
+ &:last-child .el-radio-button__inner {
+ border-radius: 0 6px 6px 0;
+ }
}
- &.merge-status-pending .status-indicator {
- background: linear-gradient(to bottom, #909399, #b1b3b8);
+ :deep(.el-radio-button__inner) {
+ padding: 6px 12px;
+ font-size: 12px;
+ font-weight: 500;
+ border-color: var(--border-primary);
+ transition: all 0.2s;
+
+ &:hover {
+ // color: var(--accent);
+ border-color: var(--accent);
+ }
}
- &.merge-status-processing .status-indicator {
- background: linear-gradient(to bottom, #e6a23c, #f0c78a);
- animation: pulse 2s ease-in-out infinite;
+ :deep(.el-radio-button.is-active .el-radio-button__inner) {
+ background: var(--accent);
+ border-color: var(--accent);
+ box-shadow: 0 2px 6px rgba(14, 165, 233, 0.25);
}
+ }
+
+ .frame-type-content {
+ padding: 4px 10px;
+ background: var(--bg-card);
+ border-radius: 8px;
+ border: 1px solid var(--border-primary);
+ min-height: 160px;
+ }
- &.merge-status-completed .status-indicator {
- background: linear-gradient(to bottom, #67c23a, #95d475);
+ .image-scroll-container {
+ max-height: 220px;
+ overflow-y: auto;
+ overflow-x: hidden;
+ padding-right: 4px;
+
+ &::-webkit-scrollbar {
+ width: 6px;
}
- &.merge-status-failed .status-indicator {
- background: linear-gradient(to bottom, #f56c6c, #f89898);
+ &::-webkit-scrollbar-track {
+ background: #f1f1f1;
+ border-radius: 3px;
}
- .merge-content {
- padding: 20px 20px 20px 24px;
+ &::-webkit-scrollbar-thumb {
+ background: #c1c1c1;
+ border-radius: 3px;
+
+ &:hover {
+ background: #a8a8a8;
+ }
}
+ }
- .merge-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-bottom: 16px;
- gap: 12px;
+ .reference-grid {
+ display: grid !important;
+ grid-template-columns: repeat(4, 1fr) !important;
+ gap: 8px !important;
- .title-section {
- display: flex;
- align-items: center;
- gap: 12px;
- flex: 1;
- min-width: 0;
+ .reference-item {
+ // padding-top: 4px;
+ margin-top: 6px;
+ position: relative;
+ border-radius: 6px;
+ overflow: hidden;
+ cursor: pointer;
+ border: 2px solid transparent;
+ transition: all 0.2s ease;
+ width: 100% !important;
+ max-width: 120px !important;
+ background: var(--bg-card);
- .title-icon {
- color: #409eff;
- flex-shrink: 0;
+ &:hover {
+ transform: translateY(-4px) scale(1.02);
+ box-shadow: var(--shadow-lg);
+ border-color: var(--accent);
+ }
- &.rotating {
- animation: rotate 1.5s linear infinite;
- }
- }
+ &.selected {
+ border-color: var(--accent);
+ box-shadow: var(--shadow-glow);
+ }
- .merge-title {
- margin: 0;
- font-size: 16px;
- font-weight: 600;
- color: #303133;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
+ img {
+ width: 100%;
+ max-width: 180px;
+ aspect-ratio: 16 / 9;
+ object-fit: cover;
+ display: block;
+ transition: transform 0.3s;
}
- :deep(.el-tag) {
- flex-shrink: 0;
- font-weight: 500;
- letter-spacing: 0.3px;
+ &:hover img {
+ transform: scale(1.05);
+ }
+
+ .reference-label {
+ position: absolute;
+ bottom: 0;
+ left: 0;
+ right: 0;
+ padding: 4px 8px;
+ background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
+ color: white;
+ font-size: 10px;
+ text-align: center;
}
}
+ }
+ }
- .merge-details {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
- gap: 16px;
- margin-bottom: 16px;
- padding: 16px;
- background: linear-gradient(135deg, #f5f7fa 0%, #fafbfc 100%);
- border-radius: 8px;
- border: 1px solid #ebeef5;
+ .generation-controls {
+ margin-top: 40px;
+ padding-top: 0;
+ text-align: center;
- .detail-item {
- display: flex;
- align-items: flex-start;
- gap: 10px;
+ :deep(.el-button) {
+ padding: 12px 32px;
+ font-size: 14px;
+ font-weight: 500;
+ border-radius: 8px;
+ transition: all 0.3s;
- .detail-icon {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 32px;
- height: 32px;
- background: white;
- border-radius: 8px;
- color: #409eff;
- flex-shrink: 0;
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
- }
+ &:hover {
+ transform: translateY(-2px);
+ box-shadow: 0 4px 12px rgba(64, 158, 255, 0.3);
+ }
+ }
+ }
- .detail-content {
- flex: 1;
- min-width: 0;
+ @keyframes shimmer {
+ 0% {
+ transform: translateX(-100%) translateY(-100%) rotate(45deg);
+ }
- .detail-label {
- font-size: 12px;
- color: #909399;
- margin-bottom: 4px;
- font-weight: 500;
- }
+ 100% {
+ transform: translateX(100%) translateY(100%) rotate(45deg);
+ }
+ }
+}
- .detail-value {
- font-size: 14px;
- color: #303133;
- font-weight: 500;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
+// 视频合成列表样式
+.merges-list {
+ min-height: 300px;
+
+ .merge-items {
+ display: flex;
+ flex-direction: column;
+ gap: 16px;
+ }
+
+ .merge-item {
+ position: relative;
+ background: var(--bg-card);
+ border-radius: 12px;
+ overflow: hidden;
+ transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
+ border: 1px solid var(--border-primary);
+ box-shadow: var(--shadow-sm);
+
+ &:hover {
+ transform: translateY(-2px);
+ box-shadow: var(--shadow-md);
+ border-color: var(--accent-light);
+ }
+
+ // 状态指示条
+ .status-indicator {
+ position: absolute;
+ left: 0;
+ top: 0;
+ bottom: 0;
+ width: 4px;
+ transition: all 0.3s ease;
+ }
+
+ &.merge-status-pending .status-indicator {
+ background: linear-gradient(to bottom, #909399, #b1b3b8);
+ }
+
+ &.merge-status-processing .status-indicator {
+ background: linear-gradient(to bottom, #e6a23c, #f0c78a);
+ animation: pulse 2s ease-in-out infinite;
+ }
+
+ &.merge-status-completed .status-indicator {
+ background: linear-gradient(to bottom, #67c23a, #95d475);
+ }
+
+ &.merge-status-failed .status-indicator {
+ background: linear-gradient(to bottom, #f56c6c, #f89898);
+ }
+
+ .merge-content {
+ padding: 20px 20px 20px 24px;
+ }
+
+ .merge-header {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ margin-bottom: 16px;
+ gap: 12px;
+
+ .title-section {
+ display: flex;
+ align-items: center;
+ gap: 12px;
+ flex: 1;
+ min-width: 0;
+
+ .title-icon {
+ color: #409eff;
+ flex-shrink: 0;
+
+ &.rotating {
+ animation: rotate 1.5s linear infinite;
}
}
- }
- .merge-error {
- margin-bottom: 16px;
-
- :deep(.el-alert) {
- border-radius: 8px;
- border-left: 4px solid #f56c6c;
+ .merge-title {
+ margin: 0;
+ font-size: 16px;
+ font-weight: 600;
+ color: #303133;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
}
}
- .merge-actions {
+ :deep(.el-tag) {
+ flex-shrink: 0;
+ font-weight: 500;
+ letter-spacing: 0.3px;
+ }
+ }
+
+ .merge-details {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
+ gap: 16px;
+ margin-bottom: 16px;
+ padding: 16px;
+ background: var(--bg-secondary);
+ border-radius: 8px;
+ border: 1px solid var(--border-primary);
+
+ .detail-item {
display: flex;
+ align-items: flex-start;
gap: 10px;
- flex-wrap: wrap;
- padding-top: 16px;
- border-top: 1px solid #ebeef5;
- :deep(.el-button) {
- font-weight: 500;
- transition: all 0.3s ease;
+ .detail-icon {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ width: 32px;
+ height: 32px;
+ background: var(--bg-card);
+ border-radius: 8px;
+ color: var(--accent);
+ flex-shrink: 0;
+ box-shadow: var(--shadow-xs);
+ }
- &:hover {
- transform: translateY(-1px);
- }
+ .detail-content {
+ flex: 1;
+ min-width: 0;
- &.el-button--primary {
- box-shadow: 0 2px 8px rgba(64, 158, 255, 0.2);
+ .detail-label {
+ font-size: 12px;
+ color: var(--text-muted);
+ margin-bottom: 4px;
+ font-weight: 500;
+ }
- &:hover {
- box-shadow: 0 4px 12px rgba(64, 158, 255, 0.3);
- }
+ .detail-value {
+ font-size: 14px;
+ color: var(--text-primary);
+ font-weight: 500;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
}
}
}
}
- @keyframes pulse {
- 0%, 100% {
- opacity: 1;
- }
- 50% {
- opacity: 0.6;
+ .merge-error {
+ margin-bottom: 16px;
+
+ :deep(.el-alert) {
+ border-radius: 8px;
+ border-left: 4px solid #f56c6c;
}
}
- @keyframes rotate {
- from {
- transform: rotate(0deg);
- }
- to {
- transform: rotate(360deg);
+ .merge-actions {
+ display: flex;
+ gap: 10px;
+ flex-wrap: wrap;
+ padding-top: 16px;
+ border-top: 1px solid var(--border-primary);
+
+ :deep(.el-button) {
+ font-weight: 500;
+ transition: all 0.3s ease;
+
+ &:hover {
+ transform: translateY(-1px);
+ }
+
+ &.el-button--primary {
+ box-shadow: 0 2px 8px rgba(64, 158, 255, 0.2);
+
+ &:hover {
+ box-shadow: 0 4px 12px rgba(64, 158, 255, 0.3);
+ }
+ }
}
}
}
+ @keyframes pulse {
+
+ 0%,
+ 100% {
+ opacity: 1;
+ }
+
+ 50% {
+ opacity: 0.6;
+ }
+ }
+
+ @keyframes rotate {
+ from {
+ transform: rotate(0deg);
+ }
+
+ to {
+ transform: rotate(360deg);
+ }
+ }
+}
+
+.video-meta {
+ margin-top: 16px;
+ padding: 12px;
+ border-radius: 8px;
+ border: 1px solid var(--border-primary);
+ background: var(--bg-secondary);
}
</style>
+<style>
+.video-prompt-box {
+ margin-bottom: 10px;
+ padding: 8px 10px;
+ background: var(--bg-secondary);
+ border-radius: 6px;
+ border: 1px solid var(--border-primary);
+ font-size: 12px;
+ line-height: 1.5;
+ color: var(--text-secondary);
+ word-break: break-word;
+ max-height: 80px;
+ overflow-y: auto;
+}
+</style>
\ No newline at end of file
diff --git a/web/src/views/settings/AIConfig.vue b/web/src/views/settings/AIConfig.vue
index 5286db6..cedeeae 100644
--- a/web/src/views/settings/AIConfig.vue
+++ b/web/src/views/settings/AIConfig.vue
@@ -1,15 +1,24 @@
<template>
- <div class="ai-config-container">
- <el-page-header @back="goBack" :title="$t('aiConfig.back')">
- <template #content>
- <div class="page-header">
- <h2>{{ $t('aiConfig.title') }}</h2>
- <el-button type="primary" @click="showCreateDialog" :icon="Plus">{{ $t('aiConfig.addConfig') }}</el-button>
- </div>
- </template>
- </el-page-header>
-
- <el-tabs v-model="activeTab" @tab-change="handleTabChange">
+ <div class="page-container">
+ <div class="content-wrapper animate-fade-in">
+ <!-- Page Header / 页面头部 -->
+ <PageHeader
+ :title="$t('aiConfig.title')"
+ :subtitle="$t('aiConfig.subtitle') || '管理 AI 服务配置'"
+ :show-back="true"
+ :back-text="$t('common.back')"
+ >
+ <template #actions>
+ <el-button type="primary" @click="showCreateDialog">
+ <el-icon><Plus /></el-icon>
+ <span>{{ $t('aiConfig.addConfig') }}</span>
+ </el-button>
+ </template>
+ </PageHeader>
+
+ <!-- Tabs / 标签页 -->
+ <div class="tabs-wrapper">
+ <el-tabs v-model="activeTab" @tab-change="handleTabChange" class="config-tabs">
<el-tab-pane :label="$t('aiConfig.tabs.text')" name="text">
<ConfigList
:configs="configs"
@@ -43,9 +52,11 @@
@toggle-active="handleToggleActive"
/>
</el-tab-pane>
- </el-tabs>
+ </el-tabs>
+ </div>
- <el-dialog
+ <!-- Edit/Create Dialog / 编辑创建弹窗 -->
+ <el-dialog
v-model="dialogVisible"
:title="isEdit ? $t('aiConfig.editConfig') : $t('aiConfig.addConfig')"
width="600px"
@@ -144,6 +155,7 @@
</el-button>
</template>
</el-dialog>
+ </div>
</div>
</template>
@@ -151,8 +163,9 @@
import { ref, reactive, onMounted, computed } from 'vue'
import { useRouter } from 'vue-router'
import { ElMessage, ElMessageBox, type FormInstance, type FormRules } from 'element-plus'
-import { Plus } from '@element-plus/icons-vue'
+import { Plus, ArrowLeft } from '@element-plus/icons-vue'
import { aiAPI } from '@/api/ai'
+import { PageHeader } from '@/components/common'
import type { AIServiceConfig, AIServiceType, CreateAIConfigRequest, UpdateAIConfigRequest } from '@/types/ai'
import ConfigList from './components/ConfigList.vue'
@@ -578,43 +591,150 @@ onMounted(() => {
</script>
<style scoped>
-.ai-config-container {
- padding: 24px;
+/* ========================================
+ Page Layout / 页面布局 - 紧凑边距
+ ======================================== */
+.page-container {
+ min-height: 100vh;
+ background: var(--bg-primary);
+ padding: var(--space-2) var(--space-3);
+ transition: background var(--transition-normal);
+}
+
+@media (min-width: 768px) {
+ .page-container {
+ padding: var(--space-3) var(--space-4);
+ }
+}
+
+@media (min-width: 1024px) {
+ .page-container {
+ padding: var(--space-4) var(--space-5);
+ }
+}
+
+.content-wrapper {
max-width: 1200px;
margin: 0 auto;
}
-:deep(.el-page-header__header) {
- display: flex;
- align-items: center;
- padding-bottom: 20px;
+/* ========================================
+ Tabs / 标签页 - 紧凑内边距
+ ======================================== */
+.tabs-wrapper {
+ background: var(--bg-card);
+ border: 1px solid var(--border-primary);
+ border-radius: var(--radius-lg);
+ padding: var(--space-3);
+ box-shadow: var(--shadow-card);
+}
+
+@media (min-width: 768px) {
+ .tabs-wrapper {
+ padding: var(--space-4);
+ }
+}
+
+/* ========================================
+ Form Tips / 表单提示
+ ======================================== */
+.form-tip {
+ font-size: 0.75rem;
+ color: var(--text-muted);
+ margin-top: 0.25rem;
}
-:deep(.el-page-header__left) {
- display: flex;
- align-items: center;
- height: 100%;
+/* ========================================
+ Dialog / 弹窗
+ ======================================== */
+:deep(.el-dialog) {
+ border-radius: 0.75rem;
}
-.page-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- gap: 24px;
- width: 100%;
+:deep(.el-dialog__header) {
+ padding: 1.25rem 1.5rem;
+ border-bottom: 1px solid var(--border-primary);
+ margin-right: 0;
}
-.page-header h2 {
- margin: 0;
- font-size: 24px;
+:deep(.el-dialog__title) {
+ font-size: 1.125rem;
font-weight: 600;
- color: #303133;
- flex: 1;
+ color: var(--text-primary);
}
-.form-tip {
- font-size: 12px;
- color: #999;
- margin-top: 4px;
+:deep(.el-dialog__body) {
+ padding: 1.5rem;
+}
+
+:deep(.el-dialog__footer) {
+ padding: 1rem 1.5rem;
+ border-top: 1px solid var(--border-primary);
+}
+
+/* ========================================
+ Dark Mode / 深色模式
+ ======================================== */
+.dark .tabs-wrapper {
+ background: var(--bg-card);
+}
+
+.dark :deep(.el-dialog) {
+ background: var(--bg-card);
+}
+
+.dark :deep(.el-dialog__header) {
+ background: var(--bg-card);
+}
+
+.dark :deep(.el-dialog__body) {
+ background: var(--bg-card);
+}
+
+.dark :deep(.el-form-item__label) {
+ color: var(--text-primary);
+}
+
+.dark :deep(.el-input__wrapper) {
+ background: var(--bg-secondary);
+ box-shadow: 0 0 0 1px var(--border-primary) inset;
+}
+
+.dark :deep(.el-input__inner) {
+ color: var(--text-primary);
+}
+
+.dark :deep(.el-input__inner::placeholder) {
+ color: var(--text-muted);
+}
+
+.dark :deep(.el-select .el-input__wrapper) {
+ background: var(--bg-secondary);
+}
+
+.dark :deep(.el-textarea__inner) {
+ background: var(--bg-secondary);
+ color: var(--text-primary);
+ box-shadow: 0 0 0 1px var(--border-primary) inset;
+}
+
+.dark :deep(.el-input-number) {
+ background: var(--bg-secondary);
+}
+
+.dark :deep(.el-switch__core) {
+ background: var(--bg-secondary);
+ border-color: var(--border-primary);
+}
+
+.dark :deep(.el-button--default) {
+ background: var(--bg-secondary);
+ border-color: var(--border-primary);
+ color: var(--text-primary);
+}
+
+.dark :deep(.el-button--default:hover) {
+ background: var(--bg-card-hover);
+ border-color: var(--border-secondary);
}
</style>
diff --git a/web/src/views/settings/components/ConfigList.vue b/web/src/views/settings/components/ConfigList.vue
index 3439b81..8e662e6 100644
--- a/web/src/views/settings/components/ConfigList.vue
+++ b/web/src/views/settings/components/ConfigList.vue
@@ -125,74 +125,94 @@ const formatDate = (dateString: string) => {
<style scoped>
.config-list {
display: grid;
- gap: 16px;
+ gap: 1rem;
min-height: 300px;
}
.config-card {
- transition: all 0.3s;
+ transition: all 0.2s ease;
+ background: var(--bg-card);
+ border: 1px solid var(--border-primary);
+}
+
+.config-card :deep(.el-card__body) {
+ padding: 1.25rem;
}
.config-card:hover {
- transform: translateY(-2px);
+ border-color: var(--border-secondary);
}
.config-header {
display: flex;
justify-content: space-between;
align-items: center;
- margin-bottom: 16px;
- padding-bottom: 12px;
- border-bottom: 1px solid #f0f0f0;
+ margin-bottom: 1rem;
+ padding-bottom: 0.75rem;
+ border-bottom: 1px solid var(--border-primary);
}
.config-title {
display: flex;
align-items: center;
- gap: 12px;
+ gap: 0.75rem;
}
.config-title h3 {
margin: 0;
- font-size: 16px;
+ font-size: 1rem;
font-weight: 600;
- color: #333;
+ color: var(--text-primary);
}
.config-actions {
display: flex;
- gap: 8px;
+ gap: 0.5rem;
}
.config-info {
display: grid;
- gap: 12px;
+ gap: 0.75rem;
}
.info-item {
display: flex;
align-items: center;
- font-size: 14px;
+ font-size: 0.875rem;
+ color: var(--text-primary);
}
.info-item label {
- min-width: 90px;
- color: #666;
+ min-width: 5.5rem;
+ color: var(--text-muted);
font-weight: 500;
}
+.info-item span {
+ color: var(--text-secondary);
+}
+
.url-text {
- color: #409eff;
+ color: #0ea5e9 !important;
word-break: break-all;
}
.api-key {
font-family: monospace;
- color: #999;
+ color: var(--text-muted) !important;
}
.time-text {
- color: #999;
- font-size: 13px;
+ color: var(--text-muted) !important;
+ font-size: 0.8125rem;
+}
+
+/* Dark mode overrides */
+.dark .config-card {
+ background: var(--bg-card);
+}
+
+.dark .config-card :deep(.el-card__body) {
+ background: transparent;
}
</style>
diff --git a/web/tailwind.config.js b/web/tailwind.config.js
index bd3eb14..abd3703 100644
--- a/web/tailwind.config.js
+++ b/web/tailwind.config.js
@@ -4,8 +4,64 @@ export default {
"./index.html",
"./src/**/*.{vue,js,ts,jsx,tsx}",
],
+ darkMode: 'class',
theme: {
- extend: {},
+ extend: {
+ colors: {
+ // Primary brand colors / 主品牌色
+ primary: {
+ 50: '#f0f9ff',
+ 100: '#e0f2fe',
+ 200: '#bae6fd',
+ 300: '#7dd3fc',
+ 400: '#38bdf8',
+ 500: '#0ea5e9',
+ 600: '#0284c7',
+ 700: '#0369a1',
+ 800: '#075985',
+ 900: '#0c4a6e',
+ },
+ // Neutral colors for backgrounds / 中性色背景
+ surface: {
+ light: '#ffffff',
+ DEFAULT: '#f8fafc',
+ dark: '#0f172a',
+ },
+ // Card backgrounds / 卡片背景
+ card: {
+ light: '#ffffff',
+ dark: '#1e293b',
+ },
+ // Border colors / 边框色
+ border: {
+ light: '#e2e8f0',
+ dark: '#334155',
+ },
+ // Text colors / 文字色
+ content: {
+ primary: '#0f172a',
+ secondary: '#64748b',
+ muted: '#94a3b8',
+ 'primary-dark': '#f1f5f9',
+ 'secondary-dark': '#94a3b8',
+ 'muted-dark': '#64748b',
+ },
+ },
+ boxShadow: {
+ 'card': '0 1px 3px 0 rgb(0 0 0 / 0.05), 0 1px 2px -1px rgb(0 0 0 / 0.05)',
+ 'card-hover': '0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05)',
+ 'card-dark': '0 1px 3px 0 rgb(0 0 0 / 0.3), 0 1px 2px -1px rgb(0 0 0 / 0.3)',
+ 'card-hover-dark': '0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.3)',
+ },
+ borderRadius: {
+ 'xl': '0.875rem',
+ '2xl': '1rem',
+ '3xl': '1.5rem',
+ },
+ transitionTimingFunction: {
+ 'bounce-in': 'cubic-bezier(0.68, -0.55, 0.265, 1.55)',
+ },
+ },
},
plugins: [],
}