DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.
refactor(frontend): Migration to Tailwind CSS Refactoring UI Styles
hairyfa6b4b817590b
diff --git a/docs/preivew.png b/docs/preivew.pngnew file mode 100644index 00000000..a63a8dbaBinary files /dev/null and b/docs/preivew.png differdiff --git a/package.json b/package.jsonindex c3ca12b4..2639f977 100644--- a/package.json+++ b/package.json@@ -14,15 +14,19 @@},"dependencies": {"@tauri-apps/api": "^2.11.1",+ "lucide-react": "^1.31.0","react": "^18.3.1","react-dom": "^18.3.1"},"devDependencies": {+ "@tailwindcss/postcss": "4.1.11",+ "@tailwindcss/vite": "4.1.11","@tauri-apps/cli": "^2.11.4","@types/node": "^22.10.0","@types/react": "^18.3.12","@types/react-dom": "^18.3.1","@vitejs/plugin-react": "^4.6.0",+ "tailwindcss": "4.1.11","typescript": "~5.8.3","vite": "^7.0.4"}diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 5fd1c6ad..b3914b53 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -11,6 +11,9 @@ importers:'@tauri-apps/api':specifier: ^2.11.1version: 2.11.1+ lucide-react:+ specifier: ^1.31.0+ version: 1.31.0([email protected])react:specifier: ^18.3.1version: 18.3.1@@ -18,6 +21,12 @@ importers:specifier: ^18.3.1version: 18.3.1([email protected])devDependencies:+ '@tailwindcss/postcss':+ specifier: 4.1.11+ version: 4.1.11+ '@tailwindcss/vite':+ specifier: 4.1.11+ version: 4.1.11([email protected](@types/[email protected])([email protected])([email protected]))'@tauri-apps/cli':specifier: ^2.11.4version: 2.11.4@@ -32,16 +41,27 @@ importers:version: 18.3.7(@types/[email protected])'@vitejs/plugin-react':specifier: ^4.6.0- version: 4.7.0([email protected](@types/[email protected]))+ tailwindcss:+ specifier: 4.1.11+ version: 4.1.11typescript:specifier: ~5.8.3version: 5.8.3vite:specifier: ^7.0.4- version: 7.3.6(@types/[email protected])packages:+ '@alloc/[email protected]':+ resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==}+ engines: {node: '>=10'}++ '@ampproject/[email protected]':+ resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==}+ engines: {node: '>=6.0.0'}+'@babel/[email protected]':resolution: {integrity: sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==}engines: {node: '>=6.9.0'}@@ -281,6 +301,10 @@ packages:cpu: [x64]os: [win32]+ '@isaacs/[email protected]':+ resolution: {integrity: sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==}+ engines: {node: '>=18.0.0'}+'@jridgewell/[email protected]':resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==}@@ -445,6 +469,103 @@ packages:cpu: [x64]os: [win32]+ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-yzhzuGRmv5QyU9qLNg4GTlYI6STedBWRE7NjxP45CsFYYq9taI0zJXZBMqIC/c8fViNLhmrbpSFS57EoxUmD6Q==}++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-3IfFuATVRUMZZprEIx9OGDjG3Ou3jG4xQzNTvjDoKmU9JdmoCohQJ83MYd0GPnQIu89YoJqvMM0G3uqLRFtetg==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [android]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-ESgStEOEsyg8J5YcMb1xl8WFOXfeBmrhAwGsFxxB2CxY9evy63+AtpbDLAyRkJnxLy2WsD1qF13E97uQyP1lfQ==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [darwin]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-EgnK8kRchgmgzG6jE10UQNaH9Mwi2n+yw1jWmof9Vyg2lpKNX2ioe7CJdf9M5f8V9uaQxInenZkOxnTVL3fhAw==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [darwin]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-xdqKtbpHs7pQhIKmqVpxStnY1skuNh4CtbcyOHeX1YBE0hArj2romsFGb6yUmzkq/6M24nkxDqU8GYrKrz+UcA==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [freebsd]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-ryHQK2eyDYYMwB5wZL46uoxz2zzDZsFBwfjssgB7pzytAeCCa6glsiJGjhTEddq/4OsIjsLNMAiMlHNYnkEEeg==}+ engines: {node: '>= 10'}+ cpu: [arm]+ os: [linux]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-mYwqheq4BXF83j/w75ewkPJmPZIqqP1nhoghS9D57CLjsh3Nfq0m4ftTotRYtGnZd3eCztgbSPJ9QhfC91gDZQ==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [linux]+ libc: [glibc]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-m/NVRFNGlEHJrNVk3O6I9ggVuNjXHIPoD6bqay/pubtYC9QIdAMpS+cswZQPBLvVvEF6GtSNONbDkZrjWZXYNQ==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [linux]+ libc: [musl]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-YW6sblI7xukSD2TdbbaeQVDysIm/UPJtObHJHKxDEcW2exAtY47j52f8jZXkqE1krdnkhCMGqP3dbniu1Te2Fg==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [linux]+ libc: [glibc]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-e3C/RRhGunWYNC3aSF7exsQkdXzQ/M+aYuZHKnw4U7KQwTJotnWsGOIVih0s2qQzmEzOFIJ3+xt7iq67K/p56Q==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [linux]+ libc: [musl]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-Xo1+/GU0JEN/C/dvcammKHzeM6NqKovG+6921MR6oadee5XPBaKOumrJCXvopJ/Qb5TH7LX/UAywbqrP4lax0g==}+ 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-UgKYx5PwEKrac3GPNPf6HVMNhUIGuUh4wlDFR2jYYdkX6pL/rn73zTq/4pzUm8fOjAn5L8zDeHp9iXmUGOXZ+w==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [win32]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-YfHoggn1j0LK7wR82TOucWc5LDCguHnoS879idHekmmiR7g9HUtMw9MI0NHatS28u/Xlkfi9w5RJWgz2Dl+5Qg==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [win32]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-Q69XzrtAhuyfHo+5/HMgr1lAiPP/G40OMFAnws7xcFEYqcypZmdW8eGXaOUIeOl1dzPJBPENXgbjsOyhg2nkrg==}+ engines: {node: '>= 10'}++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-q/EAIIpF6WpLhKEuQSEVMZNMIY8KhWoAemZ9eylNAih9jxMGAYPPWBn3I9QL/2jZ+e7OEz/tZkX5HwbBR4HohA==}++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-RHYhrR3hku0MJFRV+fN2gNbDNEh3dwKvY8XJvTxCSXeMOsCRSr+uKvDWQcbizrHgjML6ZmTE5OwMrl5wKcujCw==}+ peerDependencies:+ vite: ^5.2.0 || ^6 || ^7+'@tauri-apps/[email protected]':resolution: {integrity: sha512-M2FPuYND2m+wh5hfW9ZpSdxMPdEJovPBWwoHJmwUpysTYNHaOkVFN419m/K0LIgjb/7KU2vBgsUepJWugQCvAA==}@@ -572,6 +693,10 @@ packages:resolution: {integrity: sha512-xxWVywk6a6Arlk+hymeycyn/VgqEfLDxupvhH/xiY5SJ/18kmi9o6MiO320DCUzypORHLtvh0I4i04tUhCNHNQ==}+ resolution: {integrity: sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==}@@ -587,9 +712,17 @@ packages:supports-color:optional: true+ resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==}+ engines: {node: '>=8'}+resolution: {integrity: sha512-bNglH7lPH5l+yHOes7Zr4VqxhOy4BQ9ZBUX4VdoFgxMpzJk7W1ZoO3Vgd9Pxa9PyjQ76sfm2aKH/nzEcCNRlew==}+ resolution: {integrity: sha512-L1l8TNvomm6UVW5B253AGxQagSQr+vGwhMlrrfRS2qmhx46AMpMVJKQYLvWYbysTMY8VoicOvzHzoHMbyzB+4A==}+ engines: {node: '>=10.13.0'}+resolution: {integrity: sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==}engines: {node: '>=18'}@@ -617,6 +750,13 @@ packages:resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==}engines: {node: '>=6.9.0'}+ resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}++ resolution: {integrity: sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==}+ hasBin: true+resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}@@ -630,6 +770,74 @@ packages:engines: {node: '>=6'}hasBin: true+ resolution: {integrity: sha512-c8JK7hyE65X1MHMN+Viq9n11RRC7hgin3HhYKhrMyaXflk5GVplZ60IxyoVtzILeKr+xAJwg6zK6sjTBJ0FKYQ==}+ engines: {node: '>= 12.0.0'}+ cpu: [arm64]+ os: [darwin]++ resolution: {integrity: sha512-k1EvjakfumAQoTfcXUcHQZhSpLlkAuEkdMBsI/ivWw9hL+7FtilQc0Cy3hrx0AAQrVtQAbMI7YjCgYgvn37PzA==}+ engines: {node: '>= 12.0.0'}+ cpu: [x64]+ os: [darwin]++ resolution: {integrity: sha512-kmW6UGCGg2PcyUE59K5r0kWfKPAVy4SltVeut+umLCFoJ53RdCUWxcRDzO1eTaxf/7Q2H7LTquFHPL5R+Gjyig==}+ engines: {node: '>= 12.0.0'}+ cpu: [x64]+ os: [freebsd]++ resolution: {integrity: sha512-MjxUShl1v8pit+6D/zSPq9S9dQ2NPFSQwGvxBCYaBYLPlCWuPh9/t1MRS8iUaR8i+a6w7aps+B4N0S1TYP/R+Q==}+ engines: {node: '>= 12.0.0'}+ cpu: [arm]+ os: [linux]++ resolution: {integrity: sha512-gB72maP8rmrKsnKYy8XUuXi/4OctJiuQjcuqWNlJQ6jZiWqtPvqFziskH3hnajfvKB27ynbVCucKSm2rkQp4Bw==}+ engines: {node: '>= 12.0.0'}+ cpu: [arm64]+ os: [linux]+ libc: [glibc]++ resolution: {integrity: sha512-jmUQVx4331m6LIX+0wUhBbmMX7TCfjF5FoOH6SD1CttzuYlGNVpA7QnrmLxrsub43ClTINfGSYyHe2HWeLl5CQ==}+ engines: {node: '>= 12.0.0'}+ cpu: [arm64]+ os: [linux]+ libc: [musl]++ resolution: {integrity: sha512-piWx3z4wN8J8z3+O5kO74+yr6ze/dKmPnI7vLqfSqI8bccaTGY5xiSGVIJBDd5K5BHlvVLpUB3S2YCfelyJ1bw==}+ engines: {node: '>= 12.0.0'}+ cpu: [x64]+ os: [linux]+ libc: [glibc]++ resolution: {integrity: sha512-rRomAK7eIkL+tHY0YPxbc5Dra2gXlI63HL+v1Pdi1a3sC+tJTcFrHX+E86sulgAXeI7rSzDYhPSeHHjqFhqfeQ==}+ engines: {node: '>= 12.0.0'}+ cpu: [x64]+ os: [linux]+ libc: [musl]++ resolution: {integrity: sha512-mSL4rqPi4iXq5YVqzSsJgMVFENoa4nGTT/GjO2c0Yl9OuQfPsIfncvLrEW6RbbB24WtZ3xP/2CCmI3tNkNV4oA==}+ engines: {node: '>= 12.0.0'}+ cpu: [arm64]+ os: [win32]++ resolution: {integrity: sha512-PVqXh48wh4T53F/1CCu8PIPCxLzWyCnn/9T5W1Jpmdy5h9Cwd+0YQS6/LwhHXSafuc61/xg9Lv5OrCby6a++jg==}+ engines: {node: '>= 12.0.0'}+ cpu: [x64]+ os: [win32]++ resolution: {integrity: sha512-xi6IyHML+c9+Q3W0S4fCQJOym42pyurFiJUHEcEyHS0CeKzia4yZDEsLlqOFykxOdHpNy0NmvVO31vcSqAxJCg==}+ engines: {node: '>= 12.0.0'}+resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==}hasBin: true@@ -637,6 +845,22 @@ packages:resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==}+ resolution: {integrity: sha512-G8u2eEtoHUnUa9f8lbvqDhCiORMnYLdUEo06EEG9MQvHQrInKcX3Pa2TH39MM5qyzRcWETxB0+aOwAPI1g1kEg==}+ peerDependencies:+ react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0++ resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==}++ resolution: {integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==}+ engines: {node: '>=16 || 14 >=14.17'}++ resolution: {integrity: sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==}+ engines: {node: '>= 18'}+resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}@@ -689,6 +913,17 @@ packages:resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==}engines: {node: '>=0.10.0'}+ resolution: {integrity: sha512-2E9TBm6MDD/xKYe+dvJZAmg3yxIEDNRc0jwlNyDg/4Fil2QcSLjFKGVff0lAf1jjeaArlG/M75Ey/EYr/OJtBA==}++ resolution: {integrity: sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-MFO/QzvtAOmJbkhOaCTvbGcFN9L9b+JunIsDwaKljSOdcLMea3NJ1k9Usz/rjdfSXTq4dfzfeS7W4p4YOAAHeA==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==}engines: {node: '>=12.0.0'}@@ -750,8 +985,19 @@ packages:resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==}+ resolution: {integrity: sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==}+ engines: {node: '>=18'}+snapshots:+ '@alloc/[email protected]': {}++ '@ampproject/[email protected]':+ dependencies:+ '@jridgewell/gen-mapping': 0.3.13+ '@jridgewell/trace-mapping': 0.3.31+'@babel/[email protected]':dependencies:'@babel/helper-validator-identifier': 7.29.7@@ -942,6 +1188,10 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@isaacs/[email protected]':+ dependencies:+ minipass: 7.1.3+'@jridgewell/[email protected]':dependencies:'@jridgewell/sourcemap-codec': 1.5.5@@ -1041,6 +1291,85 @@ snapshots:'@rollup/[email protected]':optional: true+ '@tailwindcss/[email protected]':+ dependencies:+ '@ampproject/remapping': 2.3.0+ enhanced-resolve: 5.24.5+ jiti: 2.7.0+ lightningcss: 1.30.1+ magic-string: 0.30.21+ source-map-js: 1.2.1+ tailwindcss: 4.1.11++ '@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]':+ dependencies:+ detect-libc: 2.1.2+ tar: 7.5.22+ optionalDependencies:+ '@tailwindcss/oxide-android-arm64': 4.1.11+ '@tailwindcss/oxide-darwin-arm64': 4.1.11+ '@tailwindcss/oxide-darwin-x64': 4.1.11+ '@tailwindcss/oxide-freebsd-x64': 4.1.11+ '@tailwindcss/oxide-linux-arm-gnueabihf': 4.1.11+ '@tailwindcss/oxide-linux-arm64-gnu': 4.1.11+ '@tailwindcss/oxide-linux-arm64-musl': 4.1.11+ '@tailwindcss/oxide-linux-x64-gnu': 4.1.11+ '@tailwindcss/oxide-linux-x64-musl': 4.1.11+ '@tailwindcss/oxide-wasm32-wasi': 4.1.11+ '@tailwindcss/oxide-win32-arm64-msvc': 4.1.11+ '@tailwindcss/oxide-win32-x64-msvc': 4.1.11++ '@tailwindcss/[email protected]':+ dependencies:+ '@alloc/quick-lru': 5.2.0+ '@tailwindcss/node': 4.1.11+ '@tailwindcss/oxide': 4.1.11+ postcss: 8.5.26+ tailwindcss: 4.1.11++ '@tailwindcss/[email protected]([email protected](@types/[email protected])([email protected])([email protected]))':+ dependencies:+ '@tailwindcss/node': 4.1.11+ '@tailwindcss/oxide': 4.1.11+ tailwindcss: 4.1.11+'@tauri-apps/[email protected]': {}'@tauri-apps/[email protected]':@@ -1128,7 +1457,7 @@ snapshots:'@types/prop-types': 15.7.15csstype: 3.2.3+ '@vitejs/[email protected]([email protected](@types/[email protected])([email protected])([email protected]))':dependencies:'@babel/core': 7.29.7'@babel/plugin-transform-react-jsx-self': 7.29.7(@babel/[email protected])@@ -1136,7 +1465,7 @@ snapshots:'@rolldown/pluginutils': 1.0.0-beta.27'@types/babel__core': 7.20.5react-refresh: 0.17.0- vite: 7.3.6(@types/[email protected])transitivePeerDependencies:- supports-color@@ -1152,6 +1481,8 @@ snapshots:+ [email protected]: {}+@@ -1160,8 +1491,15 @@ snapshots:dependencies:ms: 2.1.3+ [email protected]: {}++ dependencies:+ graceful-fs: 4.2.11+ tapable: 2.3.3+optionalDependencies:'@esbuild/aix-ppc64': 0.28.2@@ -1202,12 +1540,61 @@ snapshots:+ [email protected]: {}++ [email protected]: {}++ 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-darwin-arm64: 1.30.1+ lightningcss-darwin-x64: 1.30.1+ lightningcss-freebsd-x64: 1.30.1+ lightningcss-linux-arm-gnueabihf: 1.30.1+ lightningcss-linux-arm64-gnu: 1.30.1+ lightningcss-linux-arm64-musl: 1.30.1+ lightningcss-linux-x64-gnu: 1.30.1+ lightningcss-linux-x64-musl: 1.30.1+ lightningcss-win32-arm64-msvc: 1.30.1+ lightningcss-win32-x64-msvc: 1.30.1+dependencies:js-tokens: 4.0.0@@ -1216,6 +1603,20 @@ snapshots:dependencies:yallist: 3.1.1+ dependencies:+ react: 18.3.1++ dependencies:+ '@jridgewell/sourcemap-codec': 1.5.5++ [email protected]: {}++ dependencies:+ minipass: 7.1.3+@@ -1284,6 +1685,18 @@ snapshots:+ [email protected]: {}++ [email protected]: {}++ dependencies:+ '@isaacs/fs-minipass': 4.0.1+ chownr: 3.0.0+ minipass: 7.1.3+ minizlib: 3.1.0+ yallist: 5.0.0+dependencies:fdir: 6.5.0([email protected])@@ -1299,7 +1712,7 @@ snapshots:escalade: 3.2.0picocolors: 1.1.1- [email protected](@types/[email protected]):dependencies:esbuild: 0.28.2fdir: 6.5.0([email protected])@@ -1310,5 +1723,9 @@ snapshots:optionalDependencies:'@types/node': 22.20.1fsevents: 2.3.3+ jiti: 2.7.0+ lightningcss: 1.30.1++ [email protected]: {}diff --git a/postcss.config.js b/postcss.config.jsnew file mode 100644index 00000000..fb05b569--- /dev/null+++ b/postcss.config.js@@ -0,0 +1,5 @@+export default {+ plugins: {+ "@tailwindcss/postcss": {},+ },+}diff --git a/src-tauri/src/config/constants.rs b/src-tauri/src/config/constants.rsindex ec7049a7..078c40ab 100644--- a/src-tauri/src/config/constants.rs+++ b/src-tauri/src/config/constants.rs@@ -2,16 +2,9 @@ use std::time::Duration;/// 捆绑的 Node.js 运行时版本(满足 v22.15.0+ / v23.8.0+ 的要求)pub const NODE_VERSION: &str = "v22.22.0";-/// 打包的 Harness 要求的最低 Node.js 版本-pub const MINIMUM_NODE_VERSION: &str = "22.15.0";/// Node.js 官方下载地址pub const NODE_BASE_URL: &str = "https://nodejs.org/dist/";-/// npmmirror 镜像(备用下载源)-pub const NODE_NPMMIRROR_URL: &str = "https://npmmirror.com/mirrors/node/";--/// GitHub 下载代理前缀(备用下载源)-pub const GITHUB_PROXY_PREFIX: &str = "https://gh-proxy.com/";/// 打包的 DeepSeek Harness 发行版下载地址(GitHub Release)pub const DSH_CORE_URL: &str =diff --git a/src-tauri/src/core/utils/mod.rs b/src-tauri/src/core/utils/mod.rsindex 72fbcb8d..52f60c48 100644--- a/src-tauri/src/core/utils/mod.rs+++ b/src-tauri/src/core/utils/mod.rs@@ -6,6 +6,3 @@ pub fn show_window<R: Runtime>(window: &WebviewWindow<R>) {let _ = window.set_focus();}-pub fn navigate<R: Runtime>(window: &WebviewWindow<R>, path: &str) {- let _ = window.eval(&format!("window.location.href = '{}'", path));-}diff --git a/src/App.tsx b/src/App.tsxindex 20e59db3..635c0e19 100644--- a/src/App.tsx+++ b/src/App.tsx@@ -1,6 +1,7 @@-import { useCallback, useEffect, useRef, useState } from "react";+import { useCallback, useEffect, useMemo, useRef, useState } from "react";import { invoke } from "@tauri-apps/api/core";import { listen, UnlistenFn } from "@tauri-apps/api/event";+import { Wrench } from "lucide-react";import SetupScreen, { InstallProgress, SetupStatus } from "./components/SetupScreen";import SidebarPanel from "./components/SidebarPanel";import { useI18n } from "./i18n/context";@@ -22,6 +23,9 @@ const initialInstaller: InstallerState = {logs: [],};+const btnPrimary =+ "inline-flex cursor-pointer items-center justify-center rounded-md border border-accent bg-accent px-3 py-1.5 text-[13px] text-white transition-colors hover:bg-accent2 disabled:cursor-not-allowed disabled:opacity-55";+export default function App() {const { t } = useI18n();const [status, setStatus] = useState<SetupStatus>("installing");@@ -31,18 +35,19 @@ export default function App() {const [iframeLoaded, setIframeLoaded] = useState(false);const [iframeError, setIframeError] = useState(false);const [iframeKey, setIframeKey] = useState(0);- const [sidebarCollapsed, setSidebarCollapsed] = useState(() => {- const saved = localStorage.getItem("sidebarCollapsed");- return saved === null ? true : saved === "true";+ const [sidebarOpen, setSidebarOpen] = useState(() => {+ const saved = localStorage.getItem("sidebarOpen");+ return saved === null ? false : saved === "true";});const [serviceRunning, setServiceRunning] = useState(false);const bootToken = useRef(0);const handleToggleSidebar = () => {- const next = !sidebarCollapsed;- setSidebarCollapsed(next);- localStorage.setItem("sidebarCollapsed", String(next));+ setSidebarOpen((prev) => {+ localStorage.setItem("sidebarOpen", String(!prev));+ return !prev;+ });};const refreshIframe = useCallback(() => {@@ -184,17 +189,8 @@ export default function App() {if (status === "error") {return (- <div className="app-shell">- <SidebarPanel- collapsed={sidebarCollapsed}- onToggle={handleToggleSidebar}- serviceRunning={serviceRunning}- onRestart={restart}- onShutdown={shutdown}- onStart={boot}- onOpenBrowser={openBrowser}- />- <main className="main-panel">+ <div className="flex h-screen w-screen">+ <main className="relative flex-1 bg-canvas"><SetupScreenstatus="error"title=""@@ -205,14 +201,31 @@ export default function App() {onRetry={boot}/></main>+ <button+ onClick={handleToggleSidebar}+ title={t("ui.settings")}+ className={`fixed top-4 z-40 flex h-9 w-9 cursor-pointer items-center justify-center rounded-md border border-line bg-panel2 text-ink shadow-lg transition-all duration-200 hover:bg-[#26262d] ${+ sidebarOpen ? "right-[316px]" : "right-4"+ }`}+ >+ <Wrench className="h-[18px] w-[18px]" />+ </button>+ <SidebarPanel+ open={sidebarOpen}+ serviceRunning={serviceRunning}+ onRestart={restart}+ onShutdown={shutdown}+ onStart={boot}+ onOpenBrowser={openBrowser}+ /></div>);}if (status !== "ready") {return (- <div className="app-shell">- <main className="main-panel full">+ <div className="flex h-screen w-screen">+ <main className="relative w-full bg-canvas"><SetupScreenstatus={status}title={installer.title}@@ -227,38 +240,29 @@ export default function App() {);}- const iframeSrc = generateTimestampedUrl(serviceUrl);+ const iframeSrc = useMemo(() => generateTimestampedUrl(serviceUrl), [serviceUrl]);return (- <div className="app-shell">- <SidebarPanel- collapsed={sidebarCollapsed}- onToggle={handleToggleSidebar}- serviceRunning={serviceRunning}- onRestart={restart}- onShutdown={shutdown}- onStart={boot}- onOpenBrowser={openBrowser}- />- <main className="main-panel">+ <div className="flex h-screen w-screen">+ <main className="relative flex-1 bg-canvas">{!iframeLoaded && (- <div className="iframe-loading">- <span className="spinner" />+ <div className="absolute inset-0 z-[1] flex flex-col items-center justify-center gap-3 bg-canvas text-ink">+ <span className="h-[34px] w-[34px] animate-spin rounded-full border-[3px] border-line border-t-accent" /><p>{t("status.loading")}</p></div>)}{iframeError && (- <div className="iframe-error">+ <div className="absolute inset-0 z-[1] flex flex-col items-center justify-center gap-3 bg-canvas text-ink"><p>{t("ui.iframe_error")}</p>- <p className="muted">{t("ui.ensure_running", { url: serviceUrl })}</p>- <button className="btn primary" onClick={refreshIframe}>+ <p className="text-muted">{t("ui.ensure_running", { url: serviceUrl })}</p>+ <button className={btnPrimary} onClick={refreshIframe}>{t("app.retry")}</button></div>)}<iframekey={iframeKey}- className="harness-frame"+ className="block h-full w-full border-none bg-white"src={iframeSrc}onLoad={() => {setIframeLoaded(true);@@ -271,6 +275,23 @@ export default function App() {title={t("app.open_editor")}/></main>+ <button+ onClick={handleToggleSidebar}+ title={t("ui.settings")}+ className={`fixed top-4 z-40 flex h-9 w-9 cursor-pointer items-center justify-center rounded-md border border-line bg-panel2 text-ink shadow-lg transition-all duration-200 hover:bg-[#26262d] ${+ sidebarOpen ? "right-[316px]" : "right-4"+ }`}+ >+ <Wrench className="h-[18px] w-[18px]" />+ </button>+ <SidebarPanel+ open={sidebarOpen}+ serviceRunning={serviceRunning}+ onRestart={restart}+ onShutdown={shutdown}+ onStart={boot}+ onOpenBrowser={openBrowser}+ /></div>);}diff --git a/src/components/SetupScreen.tsx b/src/components/SetupScreen.tsxindex fe8a1f21..f3caf8ed 100644--- a/src/components/SetupScreen.tsx+++ b/src/components/SetupScreen.tsx@@ -46,10 +46,10 @@ export default function SetupScreen({const visibleLogs = logs.length ? logs : [t("ui.waiting_logs")];return (- <div className="setup-screen">- <div className="setup-card installer-card">- <div className="setup-logo">- <div className="icon-circle">+ <div className="flex h-full items-center justify-center">+ <div className="w-[min(460px,88vw)] rounded-[14px] border border-line bg-panel px-[46px] py-[42px] text-center">+ <div className="text-accent2">+ <div className="inline-flex h-16 w-16 items-center justify-center rounded-full border border-[rgba(77,107,254,0.35)] bg-gradient-to-br from-[rgba(77,107,254,0.2)] to-[rgba(110,139,255,0.06)] text-accent2"><svg viewBox="0 0 24 24" width="34" height="34" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" /><polyline points="7 10 12 15 17 10" />@@ -58,34 +58,37 @@ export default function SetupScreen({</div></div>- <h2 className="installer-title">{heading}</h2>- <p className="installer-detail">{description}</p>+ <h2 className="mt-[18px] mb-1.5 text-xl font-semibold text-ink">{heading}</h2>+ <p className="mb-6 min-h-[18px] text-[13px] break-all text-muted">{description}</p>- <div className="installer-progress">- <div className="progress-track" role="progressbar" aria-valuenow={Math.round(percentage)}>- <div className="progress-fill" style={{ width: `${Math.min(percentage, 100)}%` }} />+ <div className="mb-5 flex items-center gap-3">+ <div className="h-2 flex-1 overflow-hidden rounded-full bg-panel2" role="progressbar" aria-valuenow={Math.round(percentage)}>+ <div className="h-full bg-gradient-to-r from-accent to-accent2 transition-[width] duration-150" style={{ width: `${Math.min(percentage, 100)}%` }} /></div>- <span className="progress-value">{Math.round(percentage)}%</span>+ <span className="min-w-[44px] text-right text-[13px] font-semibold tabular-nums text-accent2">{Math.round(percentage)}%</span></div>- <div className="installer-log" aria-label={t("ui.install_log")}>+ <div className="mb-5 min-h-[112px] max-h-[184px] overflow-y-auto rounded-lg border border-line bg-[#0a0a0c] px-3.5 py-2.5 text-left font-mono text-xs leading-[1.7]" aria-label={t("ui.install_log")}>{visibleLogs.slice(-LOG_LIMIT).map((line, index) => (- <p key={`${line}-${index}`} className="log-line">- <span className="log-caret">›</span>- <span className="log-text">{line}</span>+ <p key={`${line}-${index}`} className="m-0 flex gap-2 overflow-hidden text-ellipsis whitespace-nowrap text-[#b8b8c0]">+ <span className="shrink-0 text-accent select-none">›</span>+ <span className="min-w-0 overflow-hidden text-ellipsis">{line}</span></p>))}</div>{loading && (- <div className="installer-processing">- <span className="spinner small" />- <span className="processing-text">PROCESSING...</span>+ <div className="inline-flex items-center gap-2.5">+ <span className="h-3.5 w-3.5 animate-spin rounded-full border-2 border-line border-t-accent" />+ <span className="text-[11px] font-semibold tracking-[0.18em] text-muted">PROCESSING...</span></div>)}{error && (- <button className="btn primary" onClick={onRetry}>+ <button+ className="inline-flex cursor-pointer items-center justify-center rounded-md border border-accent bg-accent px-3 py-1.5 text-[13px] text-white transition-colors hover:bg-accent2 disabled:cursor-not-allowed disabled:opacity-55"+ onClick={onRetry}+ >{t("app.retry")}</button>)}diff --git a/src/components/SidebarPanel.tsx b/src/components/SidebarPanel.tsxindex c8db1e3b..aed27e80 100644--- a/src/components/SidebarPanel.tsx+++ b/src/components/SidebarPanel.tsx@@ -19,8 +19,7 @@ export interface AppConfig {}interface SidebarPanelProps {- collapsed: boolean;- onToggle: () => void;+ open: boolean;serviceRunning: boolean;onRestart: () => void;onShutdown: () => void;@@ -29,8 +28,7 @@ interface SidebarPanelProps {}export default function SidebarPanel({- collapsed,- onToggle,+ open,serviceRunning,onRestart,onShutdown,@@ -38,6 +36,11 @@ export default function SidebarPanel({onOpenBrowser,}: SidebarPanelProps) {const { t, language, setLanguage } = useI18n();+ const btnBase =+ "inline-flex cursor-pointer items-center justify-center rounded-md border border-line bg-panel2 px-2 py-1 text-xs text-ink transition-colors hover:border-[#3a3a44] hover:bg-[#26262d] disabled:cursor-not-allowed disabled:opacity-55";+ const btnPrimary = `${btnBase} border-accent bg-accent text-white hover:border-accent2 hover:bg-accent2`;+ const btnDanger = `${btnBase} border-[rgba(229,72,77,0.4)] text-danger`;+ const btnBlock = " mt-1.5 w-full";const [info, setInfo] = useState<RuntimeInfo | null>(null);const [port, setPort] = useState("3080");const [autoStart, setAutoStart] = useState(true);@@ -131,120 +134,129 @@ export default function SidebarPanel({};return (- <aside className={`sidebar${collapsed ? " collapsed" : ""}`}>- <button className="sidebar-toggle" onClick={onToggle} title={t("app.collapse_sidebar")}>- {collapsed ? "»" : "«"}- </button>-- {!collapsed && (- <div className="sidebar-content">- <div className="sidebar-section">- <h3>{t("ui.connection_status")}</h3>- <span className={`status-pill ${serviceRunning ? "ok" : "off"}`}>- {serviceRunning ? t("ui.running") : t("ui.stopped")}- </span>- </div>+ <aside+ className={`fixed inset-y-0 right-0 z-30 flex w-[300px] flex-col overflow-y-auto border-l border-line bg-panel shadow-2xl transition-transform duration-200 ease-out ${+ open ? "translate-x-0" : "translate-x-full"+ }`}+ >+ <div className="px-3 pt-4 pb-5">+ <div className="mb-[18px]">+ <h3 className="mb-2 flex items-center justify-between gap-1.5 text-xs uppercase tracking-[0.06em] text-muted">{t("ui.connection_status")}</h3>+ <span+ className={`inline-block rounded-full px-2.5 py-0.5 text-xs font-semibold ${+ serviceRunning ? "bg-[rgba(70,167,88,0.15)] text-ok" : "bg-[rgba(229,72,77,0.15)] text-danger"+ }`}+ >+ {serviceRunning ? t("ui.running") : t("ui.stopped")}+ </span>+ </div>- <div className="sidebar-section">- <h3>{t("ui.service_url")}</h3>- <div className="url-row">- <code className="url-text">{info?.service_url ?? "-"}</code>- <button className="btn small" onClick={copyUrl} title={t("app.copy_url")}>- {t("buttons.copy")}- </button>- </div>- <button className="btn small block" onClick={onOpenBrowser}>- {t("app.open_browser")}+ <div className="mb-[18px]">+ <h3 className="mb-2 flex items-center justify-between gap-1.5 text-xs uppercase tracking-[0.06em] text-muted">{t("ui.service_url")}</h3>+ <div className="flex items-center gap-1.5">+ <code className="flex-1 truncate rounded-md border border-line bg-panel2 px-2 py-1.5 text-xs">{info?.service_url ?? "-"}</code>+ <button className={btnBase} onClick={copyUrl} title={t("app.copy_url")}>+ {t("buttons.copy")}</button></div>+ <button className={`${btnBase}${btnBlock}`} onClick={onOpenBrowser}>+ {t("app.open_browser")}+ </button>+ </div>- <div className="sidebar-section">- <h3>{t("ui.actions")}</h3>- <div className="btn-group">- {serviceRunning ? (- <>- <button className="btn small" onClick={onRestart}>- {t("app.restart")}- </button>- <button className="btn small danger" onClick={onShutdown}>- {t("app.shutdown")}- </button>- </>- ) : (- <button className="btn small primary" onClick={onStart}>- {t("app.retry")}+ <div className="mb-[18px]">+ <h3 className="mb-2 flex items-center justify-between gap-1.5 text-xs uppercase tracking-[0.06em] text-muted">{t("ui.actions")}</h3>+ <div className="flex flex-wrap gap-1.5">+ {serviceRunning ? (+ <>+ <button className={btnBase} onClick={onRestart}>+ {t("app.restart")}+ </button>+ <button className={btnDanger} onClick={onShutdown}>+ {t("app.shutdown")}</button>- )}- <button className="btn small" onClick={refreshInfo}>- {t("app.refresh")}+ </>+ ) : (+ <button className={btnPrimary} onClick={onStart}>+ {t("app.retry")}</button>- </div>+ )}+ <button className={btnBase} onClick={refreshInfo}>+ {t("app.refresh")}+ </button></div>+ </div>- <div className="sidebar-section">- <h3>{t("ui.app_info")}</h3>- <dl className="info-list">- <dt>{t("ui.current_version")}</dt>- <dd>{info?.app_version ?? "-"}</dd>- <dt>{t("ui.dsh_version")}</dt>- <dd>{info?.dsh_version ?? "-"}</dd>- <dt>{t("ui.node_version")}</dt>- <dd>v{info?.node_version ?? "-"}</dd>- <dt>Platform</dt>- <dd>- {info?.platform ?? "-"} / {info?.arch ?? "-"}- </dd>- <dt>{t("ui.data_dir")}</dt>- <dd className="path-cell" title={info?.data_dir}>- {info?.data_dir ?? "-"}- <button className="btn small" onClick={revealDataDir}>- {t("app.reveal_dir")}- </button>- </dd>- </dl>- </div>+ <div className="mb-[18px]">+ <h3 className="mb-2 flex items-center justify-between gap-1.5 text-xs uppercase tracking-[0.06em] text-muted">{t("ui.app_info")}</h3>+ <dl className="m-0 text-xs">+ <dt className="mt-1.5 text-muted">{t("ui.current_version")}</dt>+ <dd className="mt-0.5 break-all">{info?.app_version ?? "-"}</dd>+ <dt className="mt-1.5 text-muted">{t("ui.dsh_version")}</dt>+ <dd className="mt-0.5 break-all">{info?.dsh_version ?? "-"}</dd>+ <dt className="mt-1.5 text-muted">{t("ui.node_version")}</dt>+ <dd className="mt-0.5 break-all">v{info?.node_version ?? "-"}</dd>+ <dt className="mt-1.5 text-muted">Platform</dt>+ <dd className="mt-0.5 break-all">+ {info?.platform ?? "-"} / {info?.arch ?? "-"}+ </dd>+ <dt className="mt-1.5 text-muted">{t("ui.data_dir")}</dt>+ <dd className="mt-0.5" title={info?.data_dir}>+ <div className="break-all">{info?.data_dir ?? "-"}</div>+ </dd>+ </dl>+ </div>- <div className="sidebar-section">- <h3>{t("ui.settings")}</h3>- <label className="field">- <span>{t("ui.port")}</span>- <input value={port} onChange={(e) => setPort(e.target.value)} inputMode="numeric" />- </label>- <label className="check-row">- <input type="checkbox" checked={autoStart} onChange={(e) => setAutoStart(e.target.checked)} />- <span>{t("ui.auto_start")}</span>- </label>- <button className="btn small block" onClick={saveConfig} disabled={saving}>- {saving ? t("ui.saved") : t("ui.save")}- </button>- <div className="lang-row">- <span>{t("ui.language")}:</span>- <select- value={language}- onChange={(e) => setLanguage(e.target.value as "en" | "zh")}- >- <option value="zh">中文</option>- <option value="en">English</option>- </select>- </div>+ <div className="mb-[18px]">+ <h3 className="mb-2 flex items-center justify-between gap-1.5 text-xs uppercase tracking-[0.06em] text-muted">{t("ui.settings")}</h3>+ <label className="mb-2 flex items-center gap-2">+ <span>{t("ui.port")}</span>+ <input+ className="flex-1 rounded-md border border-line bg-panel2 px-2 py-1.5 text-[13px] text-ink outline-none focus:border-accent/60"+ value={port}+ onChange={(e) => setPort(e.target.value)}+ inputMode="numeric"+ />+ </label>+ <label className="mb-2 flex cursor-pointer items-center gap-2">+ <input type="checkbox" checked={autoStart} onChange={(e) => setAutoStart(e.target.checked)} />+ <span>{t("ui.auto_start")}</span>+ </label>+ <button className={`${btnBase}${btnBlock}`} onClick={saveConfig} disabled={saving}>+ {saving ? t("ui.saved") : t("ui.save")}+ </button>+ <div className="mt-2.5 flex items-center gap-2 text-[13px]">+ <span>{t("ui.language")}:</span>+ <select+ className="flex-1 rounded-md border border-line bg-panel2 px-2 py-1 text-[13px] text-ink outline-none"+ value={language}+ onChange={(e) => setLanguage(e.target.value as "en" | "zh")}+ >+ <option value="zh">中文</option>+ <option value="en">English</option>+ </select></div>+ </div>- <div className="sidebar-section logs-section">- <h3>- {t("ui.logs")}- <button className="btn small" onClick={refreshLogs} title={t("buttons.refresh_logs")}>- ↻- </button>- </h3>- <pre className="log-view">{logs || t("ui.no_logs")}</pre>- <button className="btn small" onClick={clearLogs}>- {t("buttons.clear_logs")}+ <div className="flex flex-col gap-1.5">+ <h3 className="mb-2 flex items-center justify-between gap-1.5 text-xs uppercase tracking-[0.06em] text-muted">+ {t("ui.logs")}+ <button className={btnBase} onClick={refreshLogs} title={t("buttons.refresh_logs")}>+ ↻</button>- </div>-- {notice && <div className="notice">{notice}</div>}+ </h3>+ <pre className="m-0 max-h-[200px] overflow-auto whitespace-pre-wrap break-all rounded-md border border-line bg-[#0a0a0c] px-2 py-2 text-[11px] leading-[1.45] text-[#b8b8c0]">{logs || t("ui.no_logs")}</pre>+ <button className={btnBase} onClick={clearLogs}>+ {t("buttons.clear_logs")}+ </button></div>- )}++ {notice && (+ <div className="fixed bottom-[18px] left-1/2 z-10 -translate-x-1/2 rounded-lg border border-line bg-panel2 px-3.5 py-2 text-[13px] shadow-[0_8px_24px_rgba(0,0,0,0.45)]">+ {notice}+ </div>+ )}+ </div></aside>);}diff --git a/src/style/global.css b/src/style/global.cssdeleted file mode 100644index 59e1ae93..00000000--- a/src/style/global.css+++ /dev/null@@ -1,529 +0,0 @@-:root {- --bg: #0d0d0f;- --panel: #151518;- --panel-2: #1c1c21;- --border: #2a2a31;- --text: #e8e8ea;- --text-muted: #9a9aa3;- --accent: #4d6bfe;- --accent-2: #6e8bff;- --danger: #e5484d;- --ok: #46a758;- --radius: 10px;- font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;-}--* {- box-sizing: border-box;-}--html,-body,-#root {- height: 100%;- margin: 0;-}--body {- background: var(--bg);- color: var(--text);- font-size: 14px;- overflow: hidden;-}--.app-shell {- display: flex;- height: 100vh;- width: 100vw;-}--/* --- Sidebar ----------------------------------------------------------- */--.sidebar {- width: 300px;- min-width: 300px;- background: var(--panel);- border-right: 1px solid var(--border);- display: flex;- flex-direction: column;- overflow-y: auto;- transition: width 0.18s ease, min-width 0.18s ease;-}--.sidebar.collapsed {- width: 44px;- min-width: 44px;-}--.sidebar-toggle {- position: sticky;- top: 0;- align-self: flex-end;- margin: 8px;- background: var(--panel-2);- border: 1px solid var(--border);- color: var(--text);- border-radius: 6px;- cursor: pointer;- width: 28px;- height: 28px;- font-size: 13px;- z-index: 2;-}--.sidebar-content {- padding: 0 12px 20px;-}--.sidebar-section {- margin-bottom: 18px;-}--.sidebar-section h3 {- font-size: 12px;- text-transform: uppercase;- letter-spacing: 0.06em;- color: var(--text-muted);- margin: 0 0 8px;- display: flex;- align-items: center;- justify-content: space-between;- gap: 6px;-}--.status-pill {- display: inline-block;- padding: 2px 10px;- border-radius: 999px;- font-size: 12px;- font-weight: 600;-}--.status-pill.ok {- background: rgba(70, 167, 88, 0.15);- color: var(--ok);-}--.status-pill.off {- background: rgba(229, 72, 77, 0.15);- color: var(--danger);-}--.url-row {- display: flex;- align-items: center;- gap: 6px;-}--.url-text {- flex: 1;- font-size: 12px;- background: var(--panel-2);- border: 1px solid var(--border);- border-radius: 6px;- padding: 6px 8px;- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;-}--.btn {- background: var(--panel-2);- color: var(--text);- border: 1px solid var(--border);- border-radius: 6px;- padding: 6px 12px;- cursor: pointer;- font-size: 13px;- transition: background 0.12s ease, border-color 0.12s ease;-}--.btn:hover {- background: #26262d;- border-color: #3a3a44;-}--.btn:disabled {- opacity: 0.55;- cursor: not-allowed;-}--.btn.small {- padding: 4px 8px;- font-size: 12px;-}--.btn.block {- width: 100%;- margin-top: 6px;-}--.btn.primary {- background: var(--accent);- border-color: var(--accent);- color: #fff;-}--.btn.primary:hover {- background: var(--accent-2);-}--.btn.danger {- color: var(--danger);- border-color: rgba(229, 72, 77, 0.4);-}--.btn-group {- display: flex;- gap: 6px;- flex-wrap: wrap;-}--.info-list {- margin: 0;- font-size: 12px;-}--.info-list dt {- color: var(--text-muted);- margin-top: 6px;-}--.info-list dd {- margin: 2px 0 0;- word-break: break-all;-}--.path-cell {- display: flex;- align-items: center;- gap: 6px;-}--.field {- display: flex;- align-items: center;- gap: 8px;- margin-bottom: 8px;-}--.field input {- flex: 1;- background: var(--panel-2);- border: 1px solid var(--border);- color: var(--text);- border-radius: 6px;- padding: 6px 8px;- font-size: 13px;-}--.check-row {- display: flex;- align-items: center;- gap: 8px;- margin-bottom: 8px;- cursor: pointer;-}--.lang-row {- display: flex;- align-items: center;- gap: 8px;- margin-top: 10px;- font-size: 13px;-}--.lang-row select {- flex: 1;- background: var(--panel-2);- border: 1px solid var(--border);- color: var(--text);- border-radius: 6px;- padding: 5px 8px;-}--.logs-section {- display: flex;- flex-direction: column;- gap: 6px;-}--.log-view {- background: #0a0a0c;- border: 1px solid var(--border);- border-radius: 6px;- padding: 8px;- max-height: 200px;- overflow: auto;- font-size: 11px;- line-height: 1.45;- white-space: pre-wrap;- word-break: break-all;- color: #b8b8c0;- margin: 0;-}--.notice {- position: fixed;- bottom: 18px;- left: 50%;- transform: translateX(-50%);- background: var(--panel-2);- border: 1px solid var(--border);- border-radius: 8px;- padding: 8px 14px;- font-size: 13px;- box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);- z-index: 10;-}--/* --- Main panel --------------------------------------------------------- */--.main-panel {- flex: 1;- position: relative;- background: var(--bg);-}--.main-panel.full {- width: 100%;-}--.harness-frame {- width: 100%;- height: 100%;- border: none;- background: #fff;- display: block;-}--.iframe-loading,-.iframe-error {- position: absolute;- inset: 0;- display: flex;- flex-direction: column;- align-items: center;- justify-content: center;- gap: 12px;- background: var(--bg);- z-index: 1;- color: var(--text);-}--.muted {- color: var(--text-muted);-}--.spinner {- width: 34px;- height: 34px;- border-radius: 50%;- border: 3px solid var(--border);- border-top-color: var(--accent);- animation: spin 0.8s linear infinite;-}--@keyframes spin {- to {- transform: rotate(360deg);- }-}--/* --- Setup screen ------------------------------------------------------- */--.setup-screen {- height: 100%;- display: flex;- align-items: center;- justify-content: center;-}--.setup-card {- width: min(460px, 88vw);- background: var(--panel);- border: 1px solid var(--border);- border-radius: 14px;- padding: 36px 40px;- text-align: center;-}--.setup-card h2 {- margin: 14px 0 6px;- font-size: 20px;-}--/* --- Installer (download/install page) -------------------------------- */--.installer-card {- padding: 42px 46px;-}--.icon-circle {- width: 64px;- height: 64px;- border-radius: 50%;- background: linear-gradient(135deg, rgba(77, 107, 254, 0.2), rgba(110, 139, 255, 0.06));- border: 1px solid rgba(77, 107, 254, 0.35);- display: inline-flex;- align-items: center;- justify-content: center;- color: var(--accent-2);-}--.installer-title {- margin: 18px 0 6px;- font-size: 20px;- font-weight: 600;- color: var(--text);-}--.installer-detail {- margin: 0 0 24px;- font-size: 13px;- color: var(--text-muted);- min-height: 18px;- word-break: break-all;-}--.installer-progress {- display: flex;- align-items: center;- gap: 12px;- margin-bottom: 20px;-}--.installer-progress .progress-track {- flex: 1;- height: 8px;-}--.progress-value {- font-variant-numeric: tabular-nums;- font-size: 13px;- font-weight: 600;- color: var(--accent-2);- min-width: 44px;- text-align: right;-}--.installer-log {- background: #0a0a0c;- border: 1px solid var(--border);- border-radius: 8px;- padding: 10px 14px;- margin: 0 0 20px;- text-align: left;- font-family: "Cascadia Code", "SF Mono", Consolas, "Courier New", monospace;- font-size: 12px;- line-height: 1.7;- min-height: 112px;- max-height: 184px;- overflow-y: auto;-}--.log-line {- display: flex;- gap: 8px;- margin: 0;- color: #b8b8c0;- white-space: nowrap;- overflow: hidden;- text-overflow: ellipsis;-}--.log-caret {- color: var(--accent);- flex-shrink: 0;- user-select: none;-}--.log-text {- overflow: hidden;- text-overflow: ellipsis;-}--.installer-processing {- display: inline-flex;- align-items: center;- gap: 10px;-}--.processing-text {- font-size: 11px;- font-weight: 600;- letter-spacing: 0.18em;- color: var(--text-muted);-}--.spinner.small {- width: 14px;- height: 14px;- border-width: 2px;-}--.setup-status {- color: var(--text-muted);- min-height: 20px;- margin: 0 0 20px;-}--.setup-logo {- color: var(--accent-2);-}--.setup-steps {- list-style: none;- padding: 0;- margin: 0 0 22px;- text-align: left;- display: flex;- flex-direction: column;- gap: 10px;- font-size: 13px;-}--.setup-steps li {- display: flex;- align-items: center;- gap: 10px;- color: var(--text-muted);-}--.setup-steps li.active {- color: var(--text);- font-weight: 600;-}--.setup-steps li.done {- color: var(--ok);-}--.step-dot {- width: 10px;- height: 10px;- border-radius: 50%;- background: var(--border);-}--.setup-steps li.active .step-dot {- background: var(--accent);- box-shadow: 0 0 0 4px rgba(77, 107, 254, 0.2);-}--.setup-steps li.done .step-dot {- background: var(--ok);-}--.progress-track {- height: 6px;- border-radius: 999px;- background: var(--panel-2);- overflow: hidden;-}--.progress-fill {- height: 100%;- background: linear-gradient(90deg, var(--accent), var(--accent-2));- transition: width 0.15s ease;-}diff --git a/src/style/main.css b/src/style/main.cssindex 588c1f11..a7c2f998 100644--- a/src/style/main.css+++ b/src/style/main.css@@ -1,2 +1,20 @@-@import './components/scrollbar.css';-@import './global.css';+@import "tailwindcss";++@config "../../tailwind.config.js";++@import "./components/scrollbar.css";++@layer base {+ html,+ body,+ #root {+ height: 100%;+ margin: 0;+ }++ body {+ @apply overflow-hidden bg-canvas text-ink;+ font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;+ font-size: 14px;+ }+}diff --git a/tailwind.config.js b/tailwind.config.jsnew file mode 100644index 00000000..7c756162--- /dev/null+++ b/tailwind.config.js@@ -0,0 +1,32 @@+/** @type {import("tailwindcss").Config} */+export default {+ content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],+ theme: {+ extend: {+ colors: {+ canvas: "#0d0d0f",+ panel: "#151518",+ panel2: "#1c1c21",+ line: "#2a2a31",+ ink: "#e8e8ea",+ muted: "#9a9aa3",+ accent: "#4d6bfe",+ accent2: "#6e8bff",+ danger: "#e5484d",+ ok: "#46a758",+ },+ fontFamily: {+ sans: [+ '"Segoe UI"',+ '"PingFang SC"',+ '"Microsoft YaHei"',+ "system-ui",+ "-apple-system",+ "sans-serif",+ ],+ mono: ['"Cascadia Code"', '"SF Mono"', "Consolas", '"Courier New"', "monospace"],+ },+ },+ },+ darkMode: "class",+}diff --git a/vite.config.ts b/vite.config.tsindex b0a7cafb..5e38948a 100644--- a/vite.config.ts+++ b/vite.config.ts@@ -1,11 +1,12 @@import { defineConfig } from "vite";import react from "@vitejs/plugin-react";+import tailwindcss from "@tailwindcss/vite";const host = process.env.TAURI_DEV_HOST;// https://vitejs.dev/config/export default defineConfig(async () => ({- plugins: [react()],+ plugins: [react(), tailwindcss()],// Vite options tailored for Tauri development.// 1. prevent vite from obscuring rust errors