diff --git a/package.json b/package.json index b3c78d4..9440168 100644 --- a/package.json +++ b/package.json @@ -9,13 +9,22 @@ "preview": "cd webui && vite preview" }, "devDependencies": { + "@tailwindcss/vite": "^4.2.2", "archiver": "^7.0.1", "kernelsu": "^3.0.2", + "tailwindcss": "^4.2.2", + "tw-animate-css": "^1.4.0", "vite": "^8.0.3" }, "dependencies": { + "@vitejs/plugin-vue": "^6.0.5", + "class-variance-authority": "^0.7.1", + "clsx": "^2.1.1", "lucide": "^1.7.0", + "lucide-vue-next": "^1.0.0", "markdown-it": "^14.1.1", - "pinyin-match": "^1.2.10" + "pinyin-match": "^1.2.10", + "tailwind-merge": "^3.5.0", + "vue": "^3.5.32" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4e6bb88..01dd03c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,28 +8,72 @@ importers: .: dependencies: + '@vitejs/plugin-vue': + specifier: ^6.0.5 + version: 6.0.5(vite@8.0.3(@emnapi/core@1.9.2)(@emnapi/runtime@1.9.2)(jiti@2.6.1))(vue@3.5.32) + class-variance-authority: + specifier: ^0.7.1 + version: 0.7.1 + clsx: + specifier: ^2.1.1 + version: 2.1.1 lucide: specifier: ^1.7.0 version: 1.7.0 + lucide-vue-next: + specifier: ^1.0.0 + version: 1.0.0(vue@3.5.32) markdown-it: specifier: ^14.1.1 version: 14.1.1 pinyin-match: specifier: ^1.2.10 version: 1.2.10 + tailwind-merge: + specifier: ^3.5.0 + version: 3.5.0 + vue: + specifier: ^3.5.32 + version: 3.5.32 devDependencies: + '@tailwindcss/vite': + specifier: ^4.2.2 + version: 4.2.2(vite@8.0.3(@emnapi/core@1.9.2)(@emnapi/runtime@1.9.2)(jiti@2.6.1)) archiver: specifier: ^7.0.1 version: 7.0.1 kernelsu: specifier: ^3.0.2 version: 3.0.2 + tailwindcss: + specifier: ^4.2.2 + version: 4.2.2 + tw-animate-css: + specifier: ^1.4.0 + version: 1.4.0 vite: specifier: ^8.0.3 - version: 8.0.3(@emnapi/core@1.9.2)(@emnapi/runtime@1.9.2) + version: 8.0.3(@emnapi/core@1.9.2)(@emnapi/runtime@1.9.2)(jiti@2.6.1) packages: + '@babel/helper-string-parser@7.27.1': + resolution: {integrity: sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==} + engines: {node: '>=6.9.0'} + + '@babel/helper-validator-identifier@7.28.5': + resolution: {integrity: sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==} + engines: {node: '>=6.9.0'} + + '@babel/parser@7.29.2': + resolution: {integrity: sha512-4GgRzy/+fsBa72/RZVJmGKPmZu9Byn8o4MoLpmNe1m8ZfYnz5emHLQz3U4gLud6Zwl0RZIcgiLD7Uq7ySFuDLA==} + engines: {node: '>=6.0.0'} + hasBin: true + + '@babel/types@7.29.0': + resolution: {integrity: sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==} + engines: {node: '>=6.9.0'} + '@emnapi/core@1.9.2': resolution: {integrity: sha512-UC+ZhH3XtczQYfOlu3lNEkdW/p4dsJ1r/bP7H8+rhao3TTTMO1ATq/4DdIi23XuGoFY+Cz0JmCbdVl0hz9jZcA==} @@ -43,6 +87,22 @@ packages: resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} engines: {node: '>=12'} + '@jridgewell/gen-mapping@0.3.13': + resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==} + + '@jridgewell/remapping@2.3.5': + resolution: {integrity: sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==} + + '@jridgewell/resolve-uri@3.1.2': + resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} + engines: {node: '>=6.0.0'} + + '@jridgewell/sourcemap-codec@1.5.5': + resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==} + + '@jridgewell/trace-mapping@0.3.31': + resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==} + '@napi-rs/wasm-runtime@1.1.2': resolution: {integrity: sha512-sNXv5oLJ7ob93xkZ1XnxisYhGYXfaG9f65/ZgYuAu3qt7b3NadcOEhLvx28hv31PgX8SZJRYrAIPQilQmFpLVw==} peerDependencies: @@ -154,9 +214,142 @@ packages: '@rolldown/pluginutils@1.0.0-rc.12': resolution: {integrity: sha512-HHMwmarRKvoFsJorqYlFeFRzXZqCt2ETQlEDOb9aqssrnVBB1/+xgTGtuTrIk5vzLNX1MjMtTf7W9z3tsSbrxw==} + '@rolldown/pluginutils@1.0.0-rc.2': + resolution: {integrity: sha512-izyXV/v+cHiRfozX62W9htOAvwMo4/bXKDrQ+vom1L1qRuexPock/7VZDAhnpHCLNejd3NJ6hiab+tO0D44Rgw==} + + '@tailwindcss/node@4.2.2': + resolution: {integrity: sha512-pXS+wJ2gZpVXqFaUEjojq7jzMpTGf8rU6ipJz5ovJV6PUGmlJ+jvIwGrzdHdQ80Sg+wmQxUFuoW1UAAwHNEdFA==} + + '@tailwindcss/oxide-android-arm64@4.2.2': + resolution: {integrity: sha512-dXGR1n+P3B6748jZO/SvHZq7qBOqqzQ+yFrXpoOWWALWndF9MoSKAT3Q0fYgAzYzGhxNYOoysRvYlpixRBBoDg==} + engines: {node: '>= 20'} + cpu: [arm64] + os: [android] + + '@tailwindcss/oxide-darwin-arm64@4.2.2': + resolution: {integrity: sha512-iq9Qjr6knfMpZHj55/37ouZeykwbDqF21gPFtfnhCCKGDcPI/21FKC9XdMO/XyBM7qKORx6UIhGgg6jLl7BZlg==} + engines: {node: '>= 20'} + cpu: [arm64] + os: [darwin] + + '@tailwindcss/oxide-darwin-x64@4.2.2': + resolution: {integrity: sha512-BlR+2c3nzc8f2G639LpL89YY4bdcIdUmiOOkv2GQv4/4M0vJlpXEa0JXNHhCHU7VWOKWT/CjqHdTP8aUuDJkuw==} + engines: {node: '>= 20'} + cpu: [x64] + os: [darwin] + + '@tailwindcss/oxide-freebsd-x64@4.2.2': + resolution: {integrity: sha512-YUqUgrGMSu2CDO82hzlQ5qSb5xmx3RUrke/QgnoEx7KvmRJHQuZHZmZTLSuuHwFf0DJPybFMXMYf+WJdxHy/nQ==} + engines: {node: '>= 20'} + cpu: [x64] + os: [freebsd] + + '@tailwindcss/oxide-linux-arm-gnueabihf@4.2.2': + resolution: {integrity: sha512-FPdhvsW6g06T9BWT0qTwiVZYE2WIFo2dY5aCSpjG/S/u1tby+wXoslXS0kl3/KXnULlLr1E3NPRRw0g7t2kgaQ==} + engines: {node: '>= 20'} + cpu: [arm] + os: [linux] + + '@tailwindcss/oxide-linux-arm64-gnu@4.2.2': + resolution: {integrity: sha512-4og1V+ftEPXGttOO7eCmW7VICmzzJWgMx+QXAJRAhjrSjumCwWqMfkDrNu1LXEQzNAwz28NCUpucgQPrR4S2yw==} + engines: {node: '>= 20'} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@tailwindcss/oxide-linux-arm64-musl@4.2.2': + resolution: {integrity: sha512-oCfG/mS+/+XRlwNjnsNLVwnMWYH7tn/kYPsNPh+JSOMlnt93mYNCKHYzylRhI51X+TbR+ufNhhKKzm6QkqX8ag==} + engines: {node: '>= 20'} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@tailwindcss/oxide-linux-x64-gnu@4.2.2': + resolution: {integrity: sha512-rTAGAkDgqbXHNp/xW0iugLVmX62wOp2PoE39BTCGKjv3Iocf6AFbRP/wZT/kuCxC9QBh9Pu8XPkv/zCZB2mcMg==} + engines: {node: '>= 20'} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@tailwindcss/oxide-linux-x64-musl@4.2.2': + resolution: {integrity: sha512-XW3t3qwbIwiSyRCggeO2zxe3KWaEbM0/kW9e8+0XpBgyKU4ATYzcVSMKteZJ1iukJ3HgHBjbg9P5YPRCVUxlnQ==} + engines: {node: '>= 20'} + cpu: [x64] + os: [linux] + libc: [musl] + + '@tailwindcss/oxide-wasm32-wasi@4.2.2': + resolution: {integrity: sha512-eKSztKsmEsn1O5lJ4ZAfyn41NfG7vzCg496YiGtMDV86jz1q/irhms5O0VrY6ZwTUkFy/EKG3RfWgxSI3VbZ8Q==} + engines: {node: '>=14.0.0'} + cpu: [wasm32] + bundledDependencies: + - '@napi-rs/wasm-runtime' + - '@emnapi/core' + - '@emnapi/runtime' + - '@tybys/wasm-util' + - '@emnapi/wasi-threads' + - tslib + + '@tailwindcss/oxide-win32-arm64-msvc@4.2.2': + resolution: {integrity: sha512-qPmaQM4iKu5mxpsrWZMOZRgZv1tOZpUm+zdhhQP0VhJfyGGO3aUKdbh3gDZc/dPLQwW4eSqWGrrcWNBZWUWaXQ==} + engines: {node: '>= 20'} + cpu: [arm64] + os: [win32] + + '@tailwindcss/oxide-win32-x64-msvc@4.2.2': + resolution: {integrity: sha512-1T/37VvI7WyH66b+vqHj/cLwnCxt7Qt3WFu5Q8hk65aOvlwAhs7rAp1VkulBJw/N4tMirXjVnylTR72uI0HGcA==} + engines: {node: '>= 20'} + cpu: [x64] + os: [win32] + + '@tailwindcss/oxide@4.2.2': + resolution: {integrity: sha512-qEUA07+E5kehxYp9BVMpq9E8vnJuBHfJEC0vPC5e7iL/hw7HR61aDKoVoKzrG+QKp56vhNZe4qwkRmMC0zDLvg==} + engines: {node: '>= 20'} + + '@tailwindcss/vite@4.2.2': + resolution: {integrity: sha512-mEiF5HO1QqCLXoNEfXVA1Tzo+cYsrqV7w9Juj2wdUFyW07JRenqMG225MvPwr3ZD9N1bFQj46X7r33iHxLUW0w==} + peerDependencies: + vite: ^5.2.0 || ^6 || ^7 || ^8 + '@tybys/wasm-util@0.10.1': resolution: {integrity: sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==} + '@vitejs/plugin-vue@6.0.5': + resolution: {integrity: sha512-bL3AxKuQySfk1iGcBsQnoRVexTPJq0Z/ixFVM8OhVJAP6ZXXXLtM7NFKWhLl30Kg7uTBqIaPXbh+nuQCuBDedg==} + engines: {node: ^20.19.0 || >=22.12.0} + peerDependencies: + vite: ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 + vue: ^3.2.25 + + '@vue/compiler-core@3.5.32': + resolution: {integrity: sha512-4x74Tbtqnda8s/NSD6e1Dr5p1c8HdMU5RWSjMSUzb8RTcUQqevDCxVAitcLBKT+ie3o0Dl9crc/S/opJM7qBGQ==} + + '@vue/compiler-dom@3.5.32': + resolution: {integrity: sha512-ybHAu70NtiEI1fvAUz3oXZqkUYEe5J98GjMDpTGl5iHb0T15wQYLR4wE3h9xfuTNA+Cm2f4czfe8B4s+CCH57Q==} + + '@vue/compiler-sfc@3.5.32': + resolution: {integrity: sha512-8UYUYo71cP/0YHMO814TRZlPuUUw3oifHuMR7Wp9SNoRSrxRQnhMLNlCeaODNn6kNTJsjFoQ/kqIj4qGvya4Xg==} + + '@vue/compiler-ssr@3.5.32': + resolution: {integrity: sha512-Gp4gTs22T3DgRotZ8aA/6m2jMR+GMztvBXUBEUOYOcST+giyGWJ4WvFd7QLHBkzTxkfOt8IELKNdpzITLbA2rw==} + + '@vue/reactivity@3.5.32': + resolution: {integrity: sha512-/ORasxSGvZ6MN5gc+uE364SxFdJ0+WqVG0CENXaGW58TOCdrAW76WWaplDtECeS1qphvtBZtR+3/o1g1zL4xPQ==} + + '@vue/runtime-core@3.5.32': + resolution: {integrity: sha512-pDrXCejn4UpFDFmMd27AcJEbHaLemaE5o4pbb7sLk79SRIhc6/t34BQA7SGNgYtbMnvbF/HHOftYBgFJtUoJUQ==} + + '@vue/runtime-dom@3.5.32': + resolution: {integrity: sha512-1CDVv7tv/IV13V8Nip1k/aaObVbWqRlVCVezTwx3K07p7Vxossp5JU1dcPNhJk3w347gonIUT9jQOGutyJrSVQ==} + + '@vue/server-renderer@3.5.32': + resolution: {integrity: sha512-IOjm2+JQwRFS7W28HNuJeXQle9KdZbODFY7hFGVtnnghF51ta20EWAZJHX+zLGtsHhaU6uC9BGPV52KVpYryMQ==} + peerDependencies: + vue: 3.5.32 + + '@vue/shared@3.5.32': + resolution: {integrity: sha512-ksNyrmRQzWJJ8n3cRDuSF7zNNontuJg1YHnmWRJd2AMu8Ij2bqwiiri2lH5rHtYPZjj4STkNcgcmiQqlOjiYGg==} + abort-controller@3.0.0: resolution: {integrity: sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==} engines: {node: '>=6.5'} @@ -256,6 +449,13 @@ packages: buffer@6.0.3: resolution: {integrity: sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==} + class-variance-authority@0.7.1: + resolution: {integrity: sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==} + + clsx@2.1.1: + resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==} + engines: {node: '>=6'} + color-convert@2.0.1: resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} engines: {node: '>=7.0.0'} @@ -283,6 +483,9 @@ packages: resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} engines: {node: '>= 8'} + csstype@3.2.3: + resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==} + detect-libc@2.1.2: resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==} engines: {node: '>=8'} @@ -296,10 +499,21 @@ packages: emoji-regex@9.2.2: resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==} + enhanced-resolve@5.20.1: + resolution: {integrity: sha512-Qohcme7V1inbAfvjItgw0EaxVX5q2rdVEZHRBrEQdRZTssLDGsL8Lwrznl8oQ/6kuTJONLaDcGjkNP247XEhcA==} + engines: {node: '>=10.13.0'} + entities@4.5.0: resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==} engines: {node: '>=0.12'} + entities@7.0.1: + resolution: {integrity: sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA==} + engines: {node: '>=0.12'} + + estree-walker@2.0.2: + resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} + event-target-shim@5.0.1: resolution: {integrity: sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==} engines: {node: '>=6'} @@ -362,6 +576,10 @@ packages: jackspeak@3.4.3: resolution: {integrity: sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==} + jiti@2.6.1: + resolution: {integrity: sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==} + hasBin: true + kernelsu@3.0.2: resolution: {integrity: sha512-3MTGgIbl3TWCzqnJP6Fun9tHv6VULR3O188U3raeGRSMzK+G3pldL9ySwaZWhsHCtI2BTvlQuu/3p10s4a5c3w==} @@ -452,9 +670,17 @@ packages: lru-cache@10.4.3: resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==} + lucide-vue-next@1.0.0: + resolution: {integrity: sha512-V6SPvx1IHTj/UY+FrIYWV5faISsPSb8BnWSFDxAtezWKvWc9ZZ40PDrdu1/Qb5vg4lHWr1hs1BAMGVGm6V1Xdg==} + peerDependencies: + vue: '>=3.0.1' + lucide@1.7.0: resolution: {integrity: sha512-aYNogbuIxea3a8offpKjdMGf2FsUk9GECFh0B4iJgXlJOX41+7/ncvLVluKki8477SoybEdyGGf+qGYLBDiEsA==} + magic-string@0.30.21: + resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} + markdown-it@14.1.1: resolution: {integrity: sha512-BuU2qnTti9YKgK5N+IeMubp14ZUKUUw7yeJbkjtosvHiP0AZ5c8IAgEMk79D0eC8F23r4Ac/q8cAIFdm2FtyoA==} hasBin: true @@ -581,6 +807,16 @@ packages: resolution: {integrity: sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==} engines: {node: '>=12'} + tailwind-merge@3.5.0: + resolution: {integrity: sha512-I8K9wewnVDkL1NTGoqWmVEIlUcB9gFriAEkXkfCjX5ib8ezGxtR3xD7iZIxrfArjEsH7F1CHD4RFUtxefdqV/A==} + + tailwindcss@4.2.2: + resolution: {integrity: sha512-KWBIxs1Xb6NoLdMVqhbhgwZf2PGBpPEiwOqgI4pFIYbNTfBXiKYyWoTsXgBQ9WFg/OlhnvHaY+AEpW7wSmFo2Q==} + + tapable@2.3.2: + resolution: {integrity: sha512-1MOpMXuhGzGL5TTCZFItxCc0AARf1EZFQkGqMm7ERKj8+Hgr5oLvJOVFcC+lRmR8hCe2S3jC4T5D7Vg/d7/fhA==} + engines: {node: '>=6'} + tar-stream@3.1.8: resolution: {integrity: sha512-U6QpVRyCGHva435KoNWy9PRoi2IFYCgtEhq9nmrPPpbRacPs9IH4aJ3gbrFC8dPcXvdSZ4XXfXT5Fshbp2MtlQ==} @@ -597,6 +833,9 @@ packages: tslib@2.8.1: resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} + tw-animate-css@1.4.0: + resolution: {integrity: sha512-7bziOlRqH0hJx80h/3mbicLW7o8qLsH5+RaLR2t+OHM3D0JlWGODQKQ4cxbK7WlvmUxpcj6Kgu6EKqjrGFe3QQ==} + uc.micro@2.1.0: resolution: {integrity: sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==} @@ -646,6 +885,14 @@ packages: yaml: optional: true + vue@3.5.32: + resolution: {integrity: sha512-vM4z4Q9tTafVfMAK7IVzmxg34rSzTFMyIe0UUEijUCkn9+23lj0WRfA83dg7eQZIUlgOSGrkViIaCfqSAUXsMw==} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + which@2.0.2: resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} engines: {node: '>= 8'} @@ -665,6 +912,19 @@ packages: snapshots: + '@babel/helper-string-parser@7.27.1': {} + + '@babel/helper-validator-identifier@7.28.5': {} + + '@babel/parser@7.29.2': + dependencies: + '@babel/types': 7.29.0 + + '@babel/types@7.29.0': + dependencies: + '@babel/helper-string-parser': 7.27.1 + '@babel/helper-validator-identifier': 7.28.5 + '@emnapi/core@1.9.2': dependencies: '@emnapi/wasi-threads': 1.2.1 @@ -690,6 +950,25 @@ snapshots: wrap-ansi: 8.1.0 wrap-ansi-cjs: wrap-ansi@7.0.0 + '@jridgewell/gen-mapping@0.3.13': + dependencies: + '@jridgewell/sourcemap-codec': 1.5.5 + '@jridgewell/trace-mapping': 0.3.31 + + '@jridgewell/remapping@2.3.5': + dependencies: + '@jridgewell/gen-mapping': 0.3.13 + '@jridgewell/trace-mapping': 0.3.31 + + '@jridgewell/resolve-uri@3.1.2': {} + + '@jridgewell/sourcemap-codec@1.5.5': {} + + '@jridgewell/trace-mapping@0.3.31': + dependencies: + '@jridgewell/resolve-uri': 3.1.2 + '@jridgewell/sourcemap-codec': 1.5.5 + '@napi-rs/wasm-runtime@1.1.2(@emnapi/core@1.9.2)(@emnapi/runtime@1.9.2)': dependencies: '@emnapi/core': 1.9.2 @@ -754,11 +1033,141 @@ snapshots: '@rolldown/pluginutils@1.0.0-rc.12': {} + '@rolldown/pluginutils@1.0.0-rc.2': {} + + '@tailwindcss/node@4.2.2': + dependencies: + '@jridgewell/remapping': 2.3.5 + enhanced-resolve: 5.20.1 + jiti: 2.6.1 + lightningcss: 1.32.0 + magic-string: 0.30.21 + source-map-js: 1.2.1 + tailwindcss: 4.2.2 + + '@tailwindcss/oxide-android-arm64@4.2.2': + optional: true + + '@tailwindcss/oxide-darwin-arm64@4.2.2': + optional: true + + '@tailwindcss/oxide-darwin-x64@4.2.2': + optional: true + + '@tailwindcss/oxide-freebsd-x64@4.2.2': + optional: true + + '@tailwindcss/oxide-linux-arm-gnueabihf@4.2.2': + optional: true + + '@tailwindcss/oxide-linux-arm64-gnu@4.2.2': + optional: true + + '@tailwindcss/oxide-linux-arm64-musl@4.2.2': + optional: true + + '@tailwindcss/oxide-linux-x64-gnu@4.2.2': + optional: true + + '@tailwindcss/oxide-linux-x64-musl@4.2.2': + optional: true + + '@tailwindcss/oxide-wasm32-wasi@4.2.2': + optional: true + + '@tailwindcss/oxide-win32-arm64-msvc@4.2.2': + optional: true + + '@tailwindcss/oxide-win32-x64-msvc@4.2.2': + optional: true + + '@tailwindcss/oxide@4.2.2': + optionalDependencies: + '@tailwindcss/oxide-android-arm64': 4.2.2 + '@tailwindcss/oxide-darwin-arm64': 4.2.2 + '@tailwindcss/oxide-darwin-x64': 4.2.2 + '@tailwindcss/oxide-freebsd-x64': 4.2.2 + '@tailwindcss/oxide-linux-arm-gnueabihf': 4.2.2 + '@tailwindcss/oxide-linux-arm64-gnu': 4.2.2 + '@tailwindcss/oxide-linux-arm64-musl': 4.2.2 + '@tailwindcss/oxide-linux-x64-gnu': 4.2.2 + '@tailwindcss/oxide-linux-x64-musl': 4.2.2 + '@tailwindcss/oxide-wasm32-wasi': 4.2.2 + '@tailwindcss/oxide-win32-arm64-msvc': 4.2.2 + '@tailwindcss/oxide-win32-x64-msvc': 4.2.2 + + '@tailwindcss/vite@4.2.2(vite@8.0.3(@emnapi/core@1.9.2)(@emnapi/runtime@1.9.2)(jiti@2.6.1))': + dependencies: + '@tailwindcss/node': 4.2.2 + '@tailwindcss/oxide': 4.2.2 + tailwindcss: 4.2.2 + vite: 8.0.3(@emnapi/core@1.9.2)(@emnapi/runtime@1.9.2)(jiti@2.6.1) + '@tybys/wasm-util@0.10.1': dependencies: tslib: 2.8.1 optional: true + '@vitejs/plugin-vue@6.0.5(vite@8.0.3(@emnapi/core@1.9.2)(@emnapi/runtime@1.9.2)(jiti@2.6.1))(vue@3.5.32)': + dependencies: + '@rolldown/pluginutils': 1.0.0-rc.2 + vite: 8.0.3(@emnapi/core@1.9.2)(@emnapi/runtime@1.9.2)(jiti@2.6.1) + vue: 3.5.32 + + '@vue/compiler-core@3.5.32': + dependencies: + '@babel/parser': 7.29.2 + '@vue/shared': 3.5.32 + entities: 7.0.1 + estree-walker: 2.0.2 + source-map-js: 1.2.1 + + '@vue/compiler-dom@3.5.32': + dependencies: + '@vue/compiler-core': 3.5.32 + '@vue/shared': 3.5.32 + + '@vue/compiler-sfc@3.5.32': + dependencies: + '@babel/parser': 7.29.2 + '@vue/compiler-core': 3.5.32 + '@vue/compiler-dom': 3.5.32 + '@vue/compiler-ssr': 3.5.32 + '@vue/shared': 3.5.32 + estree-walker: 2.0.2 + magic-string: 0.30.21 + postcss: 8.5.8 + source-map-js: 1.2.1 + + '@vue/compiler-ssr@3.5.32': + dependencies: + '@vue/compiler-dom': 3.5.32 + '@vue/shared': 3.5.32 + + '@vue/reactivity@3.5.32': + dependencies: + '@vue/shared': 3.5.32 + + '@vue/runtime-core@3.5.32': + dependencies: + '@vue/reactivity': 3.5.32 + '@vue/shared': 3.5.32 + + '@vue/runtime-dom@3.5.32': + dependencies: + '@vue/reactivity': 3.5.32 + '@vue/runtime-core': 3.5.32 + '@vue/shared': 3.5.32 + csstype: 3.2.3 + + '@vue/server-renderer@3.5.32(vue@3.5.32)': + dependencies: + '@vue/compiler-ssr': 3.5.32 + '@vue/shared': 3.5.32 + vue: 3.5.32 + + '@vue/shared@3.5.32': {} + abort-controller@3.0.0: dependencies: event-target-shim: 5.0.1 @@ -850,6 +1259,12 @@ snapshots: base64-js: 1.5.1 ieee754: 1.2.1 + class-variance-authority@0.7.1: + dependencies: + clsx: 2.1.1 + + clsx@2.1.1: {} + color-convert@2.0.1: dependencies: color-name: 1.1.4 @@ -879,6 +1294,8 @@ snapshots: shebang-command: 2.0.0 which: 2.0.2 + csstype@3.2.3: {} + detect-libc@2.1.2: {} eastasianwidth@0.2.0: {} @@ -887,8 +1304,17 @@ snapshots: emoji-regex@9.2.2: {} + enhanced-resolve@5.20.1: + dependencies: + graceful-fs: 4.2.11 + tapable: 2.3.2 + entities@4.5.0: {} + entities@7.0.1: {} + + estree-walker@2.0.2: {} + event-target-shim@5.0.1: {} events-universal@1.0.1: @@ -942,6 +1368,8 @@ snapshots: optionalDependencies: '@pkgjs/parseargs': 0.11.0 + jiti@2.6.1: {} + kernelsu@3.0.2: {} lazystream@1.0.1: @@ -1005,8 +1433,16 @@ snapshots: lru-cache@10.4.3: {} + lucide-vue-next@1.0.0(vue@3.5.32): + dependencies: + vue: 3.5.32 + lucide@1.7.0: {} + magic-string@0.30.21: + dependencies: + '@jridgewell/sourcemap-codec': 1.5.5 + markdown-it@14.1.1: dependencies: argparse: 2.0.1 @@ -1156,6 +1592,12 @@ snapshots: dependencies: ansi-regex: 6.2.2 + tailwind-merge@3.5.0: {} + + tailwindcss@4.2.2: {} + + tapable@2.3.2: {} + tar-stream@3.1.8: dependencies: b4a: 1.8.0 @@ -1188,11 +1630,13 @@ snapshots: tslib@2.8.1: optional: true + tw-animate-css@1.4.0: {} + uc.micro@2.1.0: {} util-deprecate@1.0.2: {} - vite@8.0.3(@emnapi/core@1.9.2)(@emnapi/runtime@1.9.2): + vite@8.0.3(@emnapi/core@1.9.2)(@emnapi/runtime@1.9.2)(jiti@2.6.1): dependencies: lightningcss: 1.32.0 picomatch: 4.0.4 @@ -1201,10 +1645,19 @@ snapshots: tinyglobby: 0.2.15 optionalDependencies: fsevents: 2.3.3 + jiti: 2.6.1 transitivePeerDependencies: - '@emnapi/core' - '@emnapi/runtime' + vue@3.5.32: + dependencies: + '@vue/compiler-dom': 3.5.32 + '@vue/compiler-sfc': 3.5.32 + '@vue/runtime-dom': 3.5.32 + '@vue/server-renderer': 3.5.32(vue@3.5.32) + '@vue/shared': 3.5.32 + which@2.0.2: dependencies: isexe: 2.0.0 diff --git a/webroot/index.html b/webroot/index.html index b59cc17..24e1185 100644 --- a/webroot/index.html +++ b/webroot/index.html @@ -6,571 +6,12 @@ LuminPro - - + + - -
- -
- -
-
-
-

LuminPro

-

日用屏幕亮度强化

-

V2.2-2208

-
-
-
-
- - 运行中 -
-
- - - -
-
-
- - -
-
-

实时状态

-
- -
-
-
- - 当前亮度 -
- — -
-
-
- - 系统最大亮度 -
- — -
-
-
- - inotifyd PID -
- — -
-
-
- - inotifyd 状态 -
- — -
-
-
- - 休眠状态 -
- — -
-
-
- - HDR/SDR 比率 -
- — -
-
- - -
-
- 亮度 - —% -
-
- 0% - - 100% -
-
- 自动亮度调节 - -
-
-
- - -
-
-

亮度配置

-
- - -
-

亮度调节

-
-
- 前台最大亮度 - 触发亮度提升的阈值 -
-
- -
-
-
-
- 峰值最大亮度 - 亮度提升的目标值 -
-
- -
-
-
-
- 亮度提升步数 - 约 0.02 秒 / 步 -
-
- -
-
-
- - -
-

执行策略

-
-
- 自动亮度时休眠 - 开启自动亮度时不提升 -
-
- -
-
-
-
- 显示 HDR 内容时休眠 - HDR/SDR 比率 > 1 时不提升 - 建议配合去温控使用(部分系统温控策略较严格,高温时可能不显示 HDR 但仍提升亮度,导致闪屏。出现此情况时,可以使用活动黑名单/应用黑名单功能) -
-
- -
-
-
-
- 定时休眠 - 设定时段内不提升亮度 -
-
- -
-
-
-
-
- - : - -
- 至 -
- - : - -
-
-
-
- - -
-

系统管理

-
-
- 日志大小限制 - 单位: KB -
-
- -
-
-
- -
- - -
-
- - -
-
-

高级设置

-
- -
-

运行环境

-
-
- inotifyd 监听事件 - 默认 c。修改需重启服务 - 为避免性能消耗,修改为 c 以外的事件时建议关闭 Web UI 配置 - 自动刷新 - -
-
- -
-
-
-
- 当前亮度节点 - 修改需重启服务 -
-
- -
-
-
-
- 最大亮度节点 - 修改需重启服务 -
-
- -
-
-
- -
- -
-
- - -
-
-

Web UI 配置

-
- -
-

界面设置

-
-
- 自动刷新 - 定时刷新状态和日志。监听非 c 事件时建议关闭 -
-
- -
-
-
-
- 状态/日志刷新间隔 - 单位: 毫秒 (最小100ms) -
-
- -
-
-
-
- 界面缩放 - 50% - 150% (立即生效) -
-
- -
-
-
- -
- -
-
- - - - - -
-
-

运行日志

- -
-
加载中...
-
- - -
-
-

关于项目

-
- - - -
-

相关文档

-
-
- - README -
-
- - README (English) -
-
- - 更新日志 -
-
- - 声明与注意事项 -
-
-
-
- - -
-
-
-
-

文档查看

- -
-
- -
-
- - -
-
- - 获取活动名 -
-
-
-
-
-
-
- -
-
- -
-

将 Web UI 挂小窗

-

- 在开始获取前,请先将当前 Web UI 调整为小窗模式。

- 这样在后续步骤中,你可以同时操作目标应用并看到 Web UI 的反馈。 -

- -
- -
-
- -
-

切换到目标界面

-

- 点击「开始获取」后,切换到需要屏蔽的应用界面。

- 检测到非 Web UI 界面后将自动停止。

- 等待中... -

- -
- -
-
- -
-

检测到活动

-

以下活动将被添加到按活动屏蔽列表:

-
-
- - -
-
-
-
- - -
- - -
- - - - - - -
-
- +
diff --git a/webui/components.json b/webui/components.json new file mode 100644 index 0000000..fbaeef5 --- /dev/null +++ b/webui/components.json @@ -0,0 +1,20 @@ +{ + "$schema": "https://shadcn-vue.com/schema.json", + "style": "default", + "typescript": false, + "tailwind": { + "config": "", + "css": "src/index.css", + "baseColor": "slate", + "cssVariables": true, + "prefix": "" + }, + "aliases": { + "components": "@/components", + "utils": "@/lib/utils", + "ui": "@/components/ui", + "lib": "@/lib", + "composables": "@/composables" + }, + "registries": [] +} diff --git a/webui/index.html b/webui/index.html index 88a78ec..8f0c64d 100644 --- a/webui/index.html +++ b/webui/index.html @@ -6,572 +6,10 @@ LuminPro - - - - -
- -
- -
-
-
-

LuminPro

-

日用屏幕亮度强化

-

V2.2-2208

-
-
-
-
- - 运行中 -
-
- - - -
-
-
- - -
-
-

实时状态

-
- -
-
-
- - 当前亮度 -
- — -
-
-
- - 系统最大亮度 -
- — -
-
-
- - inotifyd PID -
- — -
-
-
- - inotifyd 状态 -
- — -
-
-
- - 休眠状态 -
- — -
-
-
- - HDR/SDR 比率 -
- — -
-
- - -
-
- 亮度 - —% -
-
- 0% - - 100% -
-
- 自动亮度调节 - -
-
-
- - -
-
-

亮度配置

-
- - -
-

亮度调节

-
-
- 前台最大亮度 - 触发亮度提升的阈值 -
-
- -
-
-
-
- 峰值最大亮度 - 亮度提升的目标值 -
-
- -
-
-
-
- 亮度提升步数 - 约 0.02 秒 / 步 -
-
- -
-
-
- - -
-

执行策略

-
-
- 自动亮度时休眠 - 开启自动亮度时不提升 -
-
- -
-
-
-
- 显示 HDR 内容时休眠 - HDR/SDR 比率 > 1 时不提升 - 建议配合去温控使用(部分系统温控策略较严格,高温时可能不显示 HDR 但仍提升亮度,导致闪屏。出现此情况时,可以使用活动黑名单/应用黑名单功能) -
-
- -
-
-
-
- 定时休眠 - 设定时段内不提升亮度 -
-
- -
-
-
-
-
- - : - -
- 至 -
- - : - -
-
-
-
- - -
-

系统管理

-
-
- 日志大小限制 - 单位: KB -
-
- -
-
-
- -
- - -
-
- - -
-
-

高级设置

-
- -
-

运行环境

-
-
- inotifyd 监听事件 - 默认 c。修改需重启服务 - 为避免性能消耗,修改为 c 以外的事件时建议关闭 Web UI 配置 - 自动刷新 - -
-
- -
-
-
-
- 当前亮度节点 - 修改需重启服务 -
-
- -
-
-
-
- 最大亮度节点 - 修改需重启服务 -
-
- -
-
-
- -
- -
-
- - -
-
-

Web UI 配置

-
- -
-

界面设置

-
-
- 自动刷新 - 定时刷新状态和日志。监听非 c 事件时建议关闭 -
-
- -
-
-
-
- 状态/日志刷新间隔 - 单位: 毫秒 (最小100ms) -
-
- -
-
-
-
- 界面缩放 - 50% - 150% (立即生效) -
-
- -
-
-
- -
- -
-
- - - - - -
-
-

运行日志

- -
-
加载中...
-
- - -
-
-

关于项目

-
- - - -
-

相关文档

-
-
- - README -
-
- - README (English) -
-
- - 更新日志 -
-
- - 声明与注意事项 -
-
-
-
- - -
-
-
-
-

文档查看

- -
-
- -
-
- - -
-
- - 获取活动名 -
-
-
-
-
-
-
- -
-
- -
-

将 Web UI 挂小窗

-

- 在开始获取前,请先将当前 Web UI 调整为小窗模式。

- 这样在后续步骤中,你可以同时操作目标应用并看到 Web UI 的反馈。 -

- -
- -
-
- -
-

切换到目标界面

-

- 点击「开始获取」后,切换到需要屏蔽的应用界面。

- 检测到非 Web UI 界面后将自动停止。

- 等待中... -

- -
- -
-
- -
-

检测到活动

-

以下活动将被添加到按活动屏蔽列表:

-
-
- - -
-
-
-
- - -
- - -
- - - - - - -
-
- +
diff --git a/webui/src/App.vue b/webui/src/App.vue new file mode 100644 index 0000000..3ca5258 --- /dev/null +++ b/webui/src/App.vue @@ -0,0 +1,148 @@ + + + diff --git a/webui/src/about.css b/webui/src/about.css new file mode 100644 index 0000000..ac39d54 --- /dev/null +++ b/webui/src/about.css @@ -0,0 +1,266 @@ +/* ========================================== + About View Styles + ========================================== */ +.about-hero { + display: flex; + flex-direction: column; + align-items: center; + padding: var(--spacing-l) 0 var(--spacing-m); + gap: 8px; +} +.about-logo { + width: 72px; + height: 72px; + border-radius: 20px; + background: linear-gradient(135deg, var(--md-sys-color-primary-container), var(--md-sys-color-secondary-container)); + display: flex; + align-items: center; + justify-content: center; + color: var(--md-sys-color-primary); + margin-bottom: 4px; +} +.about-name { + margin: 0; + font-size: 1.5rem; + font-weight: 700; + color: var(--md-sys-color-on-surface); +} +.about-desc { + margin: 0; + font-size: 0.875rem; + color: var(--md-sys-color-on-surface-variant); +} +.about-version-badge { + display: inline-block; + padding: 2px 10px; + background-color: var(--md-sys-color-primary-container); + color: var(--md-sys-color-on-primary-container); + border-radius: 100px; + font-size: 0.75rem; + font-weight: 600; + letter-spacing: 0.3px; +} +.about-section-title { + font-size: 0.75rem; + font-weight: 600; + color: var(--md-sys-color-primary); + text-transform: uppercase; + letter-spacing: 1px; + margin: var(--spacing-l) 0 var(--spacing-s); +} +.about-list { + display: flex; + flex-direction: column; + gap: 2px; + background-color: var(--md-sys-color-surface-container); + border-radius: var(--border-radius-m); + overflow: hidden; +} +.about-list-item { + display: flex; + align-items: center; + gap: 12px; + padding: 14px 16px; + background: transparent; + border: none; + color: var(--md-sys-color-on-surface); + font-size: 0.9375rem; + font-family: inherit; + cursor: pointer; + text-decoration: none; + transition: background-color 0.15s; + text-align: left; + width: 100%; +} +.about-list-item + .about-list-item { + border-top: 1px solid rgba(var(--md-sys-color-on-surface-rgb, 0,0,0), 0.06); +} +.about-list-item:active { + background-color: var(--md-sys-color-surface-container-high); +} +.about-list-icon { + color: var(--md-sys-color-primary); + flex-shrink: 0; +} +.about-list-chevron { + margin-left: auto; + color: var(--md-sys-color-on-surface-variant); + opacity: 0.5; + flex-shrink: 0; +} +.about-footer { + text-align: center; + color: var(--md-sys-color-on-surface-variant); + font-size: 0.8125rem; + margin-top: var(--spacing-l); + padding-top: var(--spacing-m); + border-top: 1px solid rgba(var(--md-sys-color-outline-variant-rgb, 142, 144, 153), 0.15); +} + +/* ========================================== + Doc Sheet (Bottom drawer) + ========================================== */ +.doc-sheet-backdrop { + position: fixed; + inset: 0; + background: rgba(0,0,0,0.5); + backdrop-filter: blur(4px); + z-index: 1999; + opacity: 0; + pointer-events: none; + transition: opacity 0.3s ease; +} +.doc-sheet-backdrop.show { + opacity: 1; + pointer-events: auto; +} +.doc-sheet { + position: fixed; + left: 0; + right: 0; + bottom: 0; + max-height: 90vh; + background-color: var(--md-sys-color-surface-container-high); + border-radius: 28px 28px 0 0; + z-index: 2000; + display: flex; + flex-direction: column; + transform: translateY(100%); + transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1); + box-shadow: 0 -8px 32px rgba(0,0,0,0.3); + overflow: hidden; +} +.doc-sheet.show { + transform: translateY(0); +} +.doc-sheet-header { + display: flex; + align-items: center; + padding: 16px 16px 12px; + border-bottom: 1px solid rgba(var(--md-sys-color-on-surface-rgb, 0,0,0), 0.07); + gap: 12px; + flex-shrink: 0; +} +.doc-sheet-title { + font-size: 1.0625rem; + font-weight: 600; + color: var(--md-sys-color-on-surface); + flex: 1; +} +.doc-sheet-close { + display: flex; + align-items: center; + justify-content: center; + width: 32px; + height: 32px; + border-radius: 50%; + border: none; + background: transparent; + color: var(--md-sys-color-on-surface-variant); + cursor: pointer; + transition: background-color 0.15s; +} +.doc-sheet-close:active { + background-color: var(--md-sys-color-surface-container); +} +.doc-sheet-body { + flex: 1; + overflow-y: auto; + padding: 20px 20px 48px; + scrollbar-width: none; +} +.doc-sheet-body::-webkit-scrollbar { + display: none; +} +.doc-sheet-loading { + text-align: center; + padding: 48px 20px; + color: var(--md-sys-color-on-surface-variant); +} +.doc-sheet-content { + font-size: 0.9rem; + line-height: 1.75; + color: var(--md-sys-color-on-surface); + word-break: break-word; +} +.doc-sheet-content h1, .doc-sheet-content h2 { + color: var(--md-sys-color-primary); + margin-top: 1.4em; +} +.doc-sheet-content h3 { + color: var(--md-sys-color-secondary); + margin-top: 1.2em; +} +.doc-sheet-content code { + background-color: var(--md-sys-color-surface-container); + padding: 2px 6px; + border-radius: 4px; + font-family: 'Google Sans Code', monospace; + font-size: 0.85em; +} + +/* ========================================== + Log Filter Tabs + ========================================== */ +.log-filter-container { + display: flex; + align-items: center; + gap: var(--spacing-s); +} +.log-filter-tabs { + display: flex; + gap: 4px; + background-color: var(--md-sys-color-surface-container); + padding: 4px; + border-radius: var(--border-radius-s); +} +.log-filter-tab { + padding: 4px 12px; + border-radius: calc(var(--border-radius-s) - 2px); + border: none; + background: transparent; + color: var(--md-sys-color-on-surface-variant); + font-size: 0.8125rem; + font-weight: 500; + font-family: inherit; + cursor: pointer; + transition: all 0.2s; +} +.log-filter-tab.active { + background-color: var(--md-sys-color-surface-container-high); + color: var(--md-sys-color-primary); + font-weight: 600; +} + + +/* ========================================== + Theme Segmented Button + ========================================== */ +.theme-seg { + display: flex; + gap: 2px; + background-color: var(--md-sys-color-surface-container); + padding: 3px; + border-radius: var(--border-radius-s); + flex-shrink: 0; +} +.theme-seg-btn { + padding: 4px 12px; + border-radius: calc(var(--border-radius-s) - 2px); + border: none; + background: transparent; + color: var(--md-sys-color-on-surface-variant); + font-size: 0.8125rem; + font-weight: 500; + font-family: inherit; + cursor: pointer; + transition: all 0.18s ease; + white-space: nowrap; +} +.theme-seg-btn.active { + background-color: var(--md-sys-color-primary-container); + color: var(--md-sys-color-on-primary-container); + font-weight: 600; +} + + diff --git a/webui/src/components.css b/webui/src/components.css new file mode 100644 index 0000000..8da081d --- /dev/null +++ b/webui/src/components.css @@ -0,0 +1,564 @@ +/* Cards */ +.card { + background-color: var(--md-sys-color-surface); + border-radius: var(--border-radius-m); + padding: var(--spacing-l); + box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 4px 8px 3px rgba(0, 0, 0, 0.15); + display: flex; + flex-direction: column; +} + +/* Page Transitions */ +.card-animate-in { + animation: cardFadeIn 0.4s cubic-bezier(0.2, 0, 0, 1) forwards; +} + +.navbar-slider { + left: 0; +} + +@keyframes cardFadeIn { + from { + opacity: 0; + transform: translateY(12px) scale(0.985); + } + to { + opacity: 1; + transform: translateY(0) scale(1); + } +} + +#log-section { + flex: 1; + min-height: calc(100vh - 220px); +} + +.card-header { + display: flex; + align-items: center; + gap: var(--spacing-s); + margin-bottom: var(--spacing-l); +} + +.card-header h2 { + margin: 0; + font-size: 1.125rem; + font-weight: 500; + color: var(--md-sys-color-on-surface); + flex-grow: 1; +} + +/* Config Items */ +.config-group { + margin-bottom: var(--spacing-l); + padding: var(--spacing-m); + background-color: var(--md-sys-color-surface-container); + border-radius: var(--border-radius-m); + border: 1px solid rgba(var(--md-sys-color-on-surface-rgb, 0,0,0), 0.05); +} + +.group-title { + margin: 0 0 var(--spacing-m) 0; + color: var(--md-sys-color-primary); + font-size: 0.9rem; + font-weight: 600; + display: flex; + align-items: center; + gap: 8px; +} + +.group-title i, .group-title svg { + width: 16px; + height: 16px; +} + +.config-item { + display: flex; + justify-content: space-between; + align-items: center; + padding: 4px 0; +} + +#advanced-section .config-item { + flex-direction: column; + align-items: flex-start; + gap: 12px; + width: 100%; +} + +#advanced-section .config-value { + width: 100%; +} + +.config-item + .config-item { + margin-top: var(--spacing-m); + border-top: 1px solid rgba(var(--md-sys-color-outline-variant-rgb, 142, 144, 153), 0.1); + padding-top: var(--spacing-m); +} + +.config-label { + display: flex; + flex-direction: column; +} + +.config-name { + font-size: 1rem; + color: var(--md-sys-color-on-surface); +} + +.config-desc { + font-size: 0.875rem; + color: var(--md-sys-color-on-surface-variant); +} + +.config-input { + width: 100px; + padding: 8px 12px; + background-color: var(--md-sys-color-surface-container-high); + border: 1px solid var(--md-sys-color-outline-variant); + border-radius: var(--border-radius-s); + color: var(--md-sys-color-on-surface); + font-size: 1rem; + font-family: inherit; + text-align: right; + outline: none; + transition: all 0.2s ease; +} + +.config-input:focus { + border-color: var(--md-sys-color-primary); + box-shadow: 0 0 0 2px rgba(var(--md-sys-color-primary-rgb), 0.2); + background-color: var(--md-sys-color-surface); +} + +#advanced-section .config-input { + width: 100%; + text-align: left; +} + +.config-textarea { + background-color: var(--md-sys-color-surface-container-high); + width: 100%; + min-height: 60px; + max-height: 300px; + color: var(--md-sys-color-on-surface); + border: 1px solid var(--md-sys-color-outline-variant); + border-radius: var(--border-radius-m); + resize: vertical; + padding: 10px 14px; + font-family: 'Google Sans Code', system-ui, monospace; + font-size: 0.875rem; + line-height: 1.4; + transition: all 0.2s ease; + outline: none; +} + +.config-textarea:focus { + border-color: var(--md-sys-color-primary); + box-shadow: 0 0 0 2px rgba(var(--md-sys-color-primary-rgb), 0.2); + background-color: var(--md-sys-color-surface); +} + +.config-input-wide { + width: 140px; +} + +.config-item-expand { + display: flex; + justify-content: flex-end; + margin-top: var(--spacing-s); + max-height: 0; + overflow: hidden; + opacity: 0; + transition: all 0.3s ease; +} + +.config-item-expand.show { + max-height: 100px; /* 调整为适合内容的高度 */ + opacity: 1; + margin-bottom: var(--spacing-m); +} + +/* Custom Time Picker Styles */ +.custom-time-picker { + display: flex; + align-items: center; + gap: 8px; +} + +.time-unit { + display: flex; + align-items: center; + gap: 2px; + background-color: var(--md-sys-color-surface-container-high); + padding: 2px 6px; + border-radius: var(--border-radius-s); + border: 1px solid var(--md-sys-color-outline); +} + +.time-input { + width: 32px; + background-color: transparent; + color: var(--md-sys-color-on-surface); + border: none; + font-size: 0.875rem; + text-align: center; + font-family: 'Google Sans Code', monospace; + outline: none; + -moz-appearance: textfield; +} + +.time-input::-webkit-outer-spin-button, +.time-input::-webkit-inner-spin-button { + -webkit-appearance: none; + margin: 0; +} + +.time-sep { + color: var(--md-sys-color-on-surface-variant); + font-size: 0.875rem; +} + +/* Switch Styles */ +.switch { + position: relative; + display: inline-block; + width: 52px; + height: 32px; +} + +.switch input { + opacity: 0; + width: 0; + height: 0; +} + +.slider { + position: absolute; + cursor: pointer; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: var(--md-sys-color-surface-container-high); + transition: .4s; + border-radius: 34px; + border: 2px solid var(--md-sys-color-outline); +} + +.slider:before { + position: absolute; + content: ""; + height: 24px; + width: 24px; + left: 2px; + bottom: 2px; + background-color: var(--md-sys-color-outline); + transition: .4s; + border-radius: 50%; +} + +input:checked + .slider { + background-color: var(--md-sys-color-primary-container); + border-color: var(--md-sys-color-primary); +} + +input:checked + .slider:before { + transform: translateX(20px); + background-color: var(--md-sys-color-primary); +} + +/* Status Grid */ +.status-grid { + display: grid; + grid-template-columns: 1fr 1fr; + gap: var(--spacing-m); +} + +.status-item { + background-color: var(--md-sys-color-surface-container); + padding: var(--spacing-m); + border-radius: var(--border-radius-m); + display: flex; + flex-direction: column; + gap: 8px; + border: 1px solid rgba(var(--md-sys-color-on-surface-rgb, 0,0,0), 0.04); + transition: transform 0.2s ease; +} + +.status-item:active { + transform: scale(0.98); +} + +.status-item-header { + display: flex; + align-items: center; + gap: 6px; + color: var(--md-sys-color-on-surface-variant); +} + +.status-item-header svg { + width: 14px; + height: 14px; + opacity: 0.7; +} + +.status-label { + font-size: 0.75rem; + font-weight: 500; +} + +.status-value { + font-size: 1.125rem; + font-weight: 600; + color: var(--md-sys-color-primary); + word-break: break-all; +} + +/* Brightness Section */ +.brightness-section { + margin-top: var(--spacing-l); + padding: var(--spacing-m); + background: linear-gradient(135deg, var(--md-sys-color-surface-container-high) 0%, var(--md-sys-color-surface-container) 100%); + border-radius: var(--border-radius-m); + border: 1px solid var(--md-sys-color-outline-variant); +} + +.brightness-header { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: var(--spacing-m); +} + +.brightness-title { + font-size: 1rem; + font-weight: 600; + color: var(--md-sys-color-on-surface); + letter-spacing: 0.5px; +} + +.brightness-percent { + font-size: 1.25rem; + font-weight: 700; + color: var(--md-sys-color-primary); + min-width: 50px; + text-align: right; +} + +/* Brightness Slider Container */ +.brightness-container { + position: relative; + display: flex; + align-items: center; + gap: 8px; + margin-bottom: var(--spacing-m); + padding: var(--spacing-s) 0; +} + +.brightness-label { + font-size: 0.75rem; + color: var(--md-sys-color-on-surface-variant); + min-width: 24px; + text-align: center; + font-weight: 500; +} + +/* Brightness Slider (Progress Bar Style) */ +.brightness-slider { + flex: 1; + height: 24px; + border-radius: 12px; + /* 背景将由 JS 通过 linear-gradient 动态更新实现进度条效果 */ + background: var(--md-sys-color-surface-container-high); + outline: none; + -webkit-appearance: none; + appearance: none; + cursor: grab; + transition: height 0.2s, box-shadow 0.2s; + border: 1px solid rgba(255, 255, 255, 0.03); + box-shadow: inset 0 1px 2px rgba(0,0,0,0.2); + overflow: hidden; /* 确保进度条颜色不溢出圆角 */ +} + +.brightness-slider:hover { + height: 28px; +} + +.brightness-slider::-webkit-slider-thumb { + -webkit-appearance: none; + appearance: none; + width: 0; + height: 0; + background: transparent; + cursor: grab; + border: none; +} + +.brightness-slider::-webkit-slider-thumb:active { + cursor: grabbing; +} + +.brightness-slider::-moz-range-thumb { + width: 28px; + height: 28px; + border-radius: 50%; + background: var(--md-sys-color-primary); + cursor: grab; + border: 2px solid var(--md-sys-color-surface); + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.3); + transition: all 0.2s; +} + +.brightness-slider::-moz-range-thumb:hover { + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.3); + transform: scale(1.1); +} + +.brightness-slider::-moz-range-thumb:active { + cursor: grabbing; + box-shadow: 0 0 0 10px rgba(168, 199, 250, 0.2); +} + +.brightness-slider::-moz-range-track { + background: transparent; + border: none; +} + +/* Auto Brightness Row */ +.auto-brightness-row { + display: flex; + justify-content: space-between; + align-items: center; + padding: var(--spacing-s) var(--spacing-m); + background-color: rgba(var(--md-sys-color-primary-rgb), 0.08); + border-radius: var(--border-radius-s); +} + +.auto-brightness-label { + font-size: 0.875rem; + color: var(--md-sys-color-on-surface); + font-weight: 500; +} + +/* Actions */ +.card-actions { + display: flex; + justify-content: flex-end; + gap: 12px; + margin-top: var(--spacing-l); + padding-top: var(--spacing-m); + border-top: 1px solid var(--md-sys-color-outline-variant); +} + +/* Buttons */ +.btn { + display: inline-flex; + align-items: center; + justify-content: center; + gap: 8px; + padding: 10px 24px; + border-radius: 100px; + border: none; + font-size: 0.875rem; + font-weight: 500; + font-family: inherit; + cursor: pointer; + transition: background-color 0.2s, opacity 0.2s; +} + +.btn:active { + opacity: 0.8; +} + +.btn-primary { + background-color: var(--md-sys-color-primary); + color: var(--md-sys-color-on-primary); +} + +.btn-outline { + background-color: transparent; + border: 1px solid var(--md-sys-color-outline); + color: var(--md-sys-color-primary); +} + +.btn-outline-s, .btn-text-s { + background-color: transparent; + border: 1px solid var(--md-sys-color-outline-variant); + color: var(--md-sys-color-primary); + padding: 4px 10px; + min-width: 50px; + height: 28px; + font-size: 0.75rem; + border-radius: var(--border-radius-s); + cursor: pointer; + display: inline-flex; + align-items: center; + justify-content: center; + transition: all 0.2s; + white-space: nowrap; +} + +.btn-text-s:active { + background-color: var(--md-sys-color-surface-container-high); +} + +.btn-danger { + background-color: var(--md-sys-color-error) !important; + color: var(--md-sys-color-on-error) !important; + border: none !important; +} + +/* Header Actions container */ +.header-actions { + display: flex; + align-items: center; + gap: 8px; +} + +.btn-icon-only { + background: transparent; + border: none; + color: var(--md-sys-color-on-surface-variant); + font-size: 1.25rem; + cursor: pointer; + padding: 4px; + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; +} + +.btn-icon-only-s { + display: flex; + align-items: center; + justify-content: center; + width: 32px; + height: 32px; + border-radius: 8px; + border: none; + background-color: var(--md-sys-color-surface-container-high); + color: var(--md-sys-color-primary); + cursor: pointer; + transition: all 0.2s ease; +} + +.btn-icon-only-s:active { + background-color: var(--md-sys-color-primary-container); + transform: scale(0.9); +} + +.btn-icon-only-s i, .btn-icon-only-s svg { + width: 16px; + height: 16px; +} + +.animate-spin { + animation: spin 1s linear infinite; +} + + +@keyframes spin { + from { transform: rotate(0deg); } + to { transform: rotate(360deg); } +} diff --git a/webui/src/components/BottomNav.vue b/webui/src/components/BottomNav.vue new file mode 100644 index 0000000..6816c41 --- /dev/null +++ b/webui/src/components/BottomNav.vue @@ -0,0 +1,134 @@ + + + diff --git a/webui/src/components/ui/Badge.vue b/webui/src/components/ui/Badge.vue new file mode 100644 index 0000000..3846824 --- /dev/null +++ b/webui/src/components/ui/Badge.vue @@ -0,0 +1,32 @@ + + + diff --git a/webui/src/components/ui/Button.vue b/webui/src/components/ui/Button.vue new file mode 100644 index 0000000..d0ab819 --- /dev/null +++ b/webui/src/components/ui/Button.vue @@ -0,0 +1,51 @@ + + + diff --git a/webui/src/components/ui/Card.vue b/webui/src/components/ui/Card.vue new file mode 100644 index 0000000..476a630 --- /dev/null +++ b/webui/src/components/ui/Card.vue @@ -0,0 +1,13 @@ + + + diff --git a/webui/src/components/ui/Input.vue b/webui/src/components/ui/Input.vue new file mode 100644 index 0000000..5d158d0 --- /dev/null +++ b/webui/src/components/ui/Input.vue @@ -0,0 +1,36 @@ + + + diff --git a/webui/src/components/ui/Label.vue b/webui/src/components/ui/Label.vue new file mode 100644 index 0000000..8e17fc1 --- /dev/null +++ b/webui/src/components/ui/Label.vue @@ -0,0 +1,14 @@ + + + diff --git a/webui/src/components/ui/Separator.vue b/webui/src/components/ui/Separator.vue new file mode 100644 index 0000000..90b9dfe --- /dev/null +++ b/webui/src/components/ui/Separator.vue @@ -0,0 +1,19 @@ + + + diff --git a/webui/src/components/ui/Switch.vue b/webui/src/components/ui/Switch.vue new file mode 100644 index 0000000..0174f64 --- /dev/null +++ b/webui/src/components/ui/Switch.vue @@ -0,0 +1,39 @@ + + + diff --git a/webui/src/components/ui/Textarea.vue b/webui/src/components/ui/Textarea.vue new file mode 100644 index 0000000..a4c9f70 --- /dev/null +++ b/webui/src/components/ui/Textarea.vue @@ -0,0 +1,28 @@ + + +