From 5528ac8aa831e2714f29296442c5752284adda77 Mon Sep 17 00:00:00 2001 From: "naps62-yolo (agent)" Date: Wed, 11 Nov 2026 16:34:47 +0000 Subject: [PATCH] refactor(web): rebuild the UI in React and Tailwind (#279) --- PRODUCT.md | 7 +- biome.json | 12 +- web/index.html | 473 +-- web/package.json | 9 + web/pnpm-lock.yaml | 810 ++++- web/scripts/check-tokens.mjs | 21 +- web/src/App.tsx | 669 ++++ web/src/buckets.tsx | 447 +++ web/src/components.css | 2718 ++++++++++++++++ web/src/context.tsx | 111 + web/src/detail.tsx | 275 ++ web/src/icons.ts | 145 - web/src/icons.tsx | 208 ++ web/src/main.ts | 5874 ---------------------------------- web/src/main.tsx | 14 + web/src/parts.tsx | 229 ++ web/src/rows.tsx | 205 ++ web/src/settings.ts | 867 +---- web/src/style.css | 2801 +--------------- web/src/subs-panel.tsx | 880 +++++ web/src/ui.ts | 434 --- web/src/ui.tsx | 547 ++++ web/src/views/Library.tsx | 246 ++ web/src/views/Movie.tsx | 582 ++++ web/src/views/Queues.tsx | 392 +++ web/src/views/Search.tsx | 469 +++ web/src/views/Series.tsx | 840 +++++ web/src/views/Settings.tsx | 1241 +++++++ web/src/views/TvDeck.tsx | 408 +++ web/tsconfig.json | 1 + web/vite.config.ts | 3 + 31 files changed, 11435 insertions(+), 10503 deletions(-) create mode 100644 web/src/App.tsx create mode 100644 web/src/buckets.tsx create mode 100644 web/src/components.css create mode 100644 web/src/context.tsx create mode 100644 web/src/detail.tsx delete mode 100644 web/src/icons.ts create mode 100644 web/src/icons.tsx delete mode 100644 web/src/main.ts create mode 100644 web/src/main.tsx create mode 100644 web/src/parts.tsx create mode 100644 web/src/rows.tsx create mode 100644 web/src/subs-panel.tsx delete mode 100644 web/src/ui.ts create mode 100644 web/src/ui.tsx create mode 100644 web/src/views/Library.tsx create mode 100644 web/src/views/Movie.tsx create mode 100644 web/src/views/Queues.tsx create mode 100644 web/src/views/Search.tsx create mode 100644 web/src/views/Series.tsx create mode 100644 web/src/views/Settings.tsx create mode 100644 web/src/views/TvDeck.tsx diff --git a/PRODUCT.md b/PRODUCT.md index 384d42f..721cc0b 100644 --- a/PRODUCT.md +++ b/PRODUCT.md @@ -12,9 +12,10 @@ web ## Stack -Vite + TypeScript SPA, no framework *(fixed by DESIGN.md §11: `web/` is a -Vite + TypeScript SPA embedded in the Rust binary via `include_dir`; the -reference project `~/tea/maestro` is framework-free vanilla TS)*. +Vite + TypeScript SPA embedded in the Rust binary via `include_dir` +(DESIGN.md §11), built with React and Tailwind v4 (#278). Tailwind's theme is +reset to the design tokens, so utilities only ever produce token values; the +board's own component styles live in `web/src/components.css`. ## Users diff --git a/biome.json b/biome.json index 145abb6..912b698 100644 --- a/biome.json +++ b/biome.json @@ -1,7 +1,12 @@ { "$schema": "https://biomejs.dev/schemas/2.5.8/schema.json", "files": { - "includes": ["web/**", "!web/src/api/**", "!web/dist/**", "!web/node_modules/**"] + "includes": [ + "web/**", + "!web/src/api/**", + "!web/dist/**", + "!web/node_modules/**" + ] }, "formatter": { "enabled": true, @@ -21,5 +26,10 @@ "organizeImports": "on" } } + }, + "css": { + "parser": { + "tailwindDirectives": true + } } } diff --git a/web/index.html b/web/index.html index 35525c3..8fe0e1c 100644 --- a/web/index.html +++ b/web/index.html @@ -5,7 +5,7 @@ arr - + -
-
-
- - arr -
- - - - v — -
-
- - - -
-
-

search

-

-
- - - - - - - - -
- -
-
-

library

- -

-
- - -
-
- -
- - - - -
- -
-
-

queues

- -

-
- - - - - - -
- - - -
-
-
- -

 

- -
-
-
-
- -

-

-

-

-
-
- -
- -
- - - -
- -

- -
-
-

on disk

- -
-
    -
    - -
    -
    -

    releases

    -
    -

    -
    -
    -
    - -
    -
    -

    settings

    - -

    -
    - -
    -
    -

    signal chain

    -
    -
    -
    -
    -
    - -

    tmdb

    - probing -
    -

    metadata in

    -

    titles, languages, release dates

    -
    - - - -
    -
    - -

    prowlarr

    - probing -
    -

    indexers in

    -

    torznab search and rss

    -
    - - - -
    -
    - -

    arr

    - probing -
    -

    reconcile core

    -

    decide · find · fetch · import

    -
    - - - -
    -
    - -

    qbittorrent

    - probing -
    -

    torrents out

    -

    webui · grab and seed

    -
    -
    -
    - - -
    - - - - - - -
    - - - -
    -
    -
    - -

     

    - -
    -
    -
    -
    - - -

    -

    -

    -

    -
    -
    - -
    - -
    - - -
    - -

    - -
    -
    -

    seasons

    -
    -
      -
      -
      - -
      -
      - -
      -

       

      - -
      -
      -
      - -
      -

      - - -
      -
      +
      diff --git a/web/package.json b/web/package.json index df5f22c..17cd805 100644 --- a/web/package.json +++ b/web/package.json @@ -14,8 +14,17 @@ }, "devDependencies": { "@biomejs/biome": "^2.5.8", + "@tailwindcss/vite": "^4.3.5", "@types/node": "^24.0.0", + "@types/react": "^19.3.0", + "@types/react-dom": "^19.3.0", + "@vitejs/plugin-react": "^5.2.0", + "tailwindcss": "^4.3.5", "typescript": "^5.9.3", "vite": "^7.1.0" + }, + "dependencies": { + "react": "^19.3.1", + "react-dom": "^19.3.1" } } diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yaml index bc48d7a..a77f6ad 100644 --- a/web/pnpm-lock.yaml +++ b/web/pnpm-lock.yaml @@ -7,22 +7,127 @@ settings: importers: .: + dependencies: + react: + specifier: ^19.3.1 + version: 19.3.1 + react-dom: + specifier: ^19.3.1 + version: 19.3.1(react@19.3.1) devDependencies: '@biomejs/biome': specifier: ^2.5.8 version: 2.5.10 + '@tailwindcss/vite': + specifier: ^4.3.5 + version: 4.3.5(vite@7.3.6(@types/node@24.13.3)(jiti@2.7.0)(lightningcss@1.33.0)) '@types/node': specifier: ^24.0.0 version: 24.13.3 + '@types/react': + specifier: ^19.3.0 + version: 19.3.0 + '@types/react-dom': + specifier: ^19.3.0 + version: 19.3.0(@types/react@19.3.0) + '@vitejs/plugin-react': + specifier: ^5.2.0 + version: 5.2.0(vite@7.3.6(@types/node@24.13.3)(jiti@2.7.0)(lightningcss@1.33.0)) + tailwindcss: + specifier: ^4.3.5 + version: 4.3.5 typescript: specifier: ^5.9.3 version: 5.9.3 vite: specifier: ^7.1.0 - version: 7.3.6(@types/node@24.13.3) + version: 7.3.6(@types/node@24.13.3)(jiti@2.7.0)(lightningcss@1.33.0) packages: + '@babel/code-frame@7.29.7': + resolution: {integrity: sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==} + engines: {node: '>=6.9.0'} + + '@babel/compat-data@7.29.7': + resolution: {integrity: sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==} + engines: {node: '>=6.9.0'} + + '@babel/core@7.29.13': + resolution: {integrity: sha512-j1nvOQCZYSgp7HLmisnCXFTpVvFODiijQ9QHkORfGKWH6YDtskTEeCJS7eV545GZ9UBzrq0e2xsOd5QQ5PjIqw==} + engines: {node: '>=6.9.0'} + + '@babel/generator@7.29.13': + resolution: {integrity: sha512-T5FRo+RzVHvGjWOuF1Ljc44b+NXAOazodHkGUHp4I3zCkQ4/sNVJm56h1S278LMR0bY5xBhztGziSbli8zObIw==} + engines: {node: '>=6.9.0'} + + '@babel/helper-compilation-targets@7.29.13': + resolution: {integrity: sha512-8WxJ4/Vmes3ghacj8VOJy3NW8eyHiFY/4thU/LSBuBE470+igjR/j1ZTNn8fV5VdNrLx6iXUwig526UdOvfP0w==} + engines: {node: '>=6.9.0'} + + '@babel/helper-globals@7.29.7': + resolution: {integrity: sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==} + engines: {node: '>=6.9.0'} + + '@babel/helper-module-imports@7.29.7': + resolution: {integrity: sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==} + engines: {node: '>=6.9.0'} + + '@babel/helper-module-transforms@7.29.13': + resolution: {integrity: sha512-/U96wOz+SCoZ7Da/8kjDGltcNY280JPQcRNPK0Hk3PTbdpaiBDQImtC6JsbVwb1HGMr3usZQU2WsWVjhYNmRzw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + + '@babel/helper-plugin-utils@7.29.7': + resolution: {integrity: sha512-G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw==} + engines: {node: '>=6.9.0'} + + '@babel/helper-string-parser@7.29.13': + resolution: {integrity: sha512-fWegr+WsEsiMVW4KUNdIIzzMTZSzNiqhy0//6+2MRi2d5NFNsL/AYwBQW8eBnRbTBVRnDVzjaJEUqKaCWjMMdQ==} + engines: {node: '>=6.9.0'} + + '@babel/helper-validator-identifier@7.29.7': + resolution: {integrity: sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==} + engines: {node: '>=6.9.0'} + + '@babel/helper-validator-option@7.29.7': + resolution: {integrity: sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==} + engines: {node: '>=6.9.0'} + + '@babel/helpers@7.29.13': + resolution: {integrity: sha512-laoRpD/kO/iA4CDlgJbixHekg7oPvWALK0PQyK3Ob2I2njZRvVAD77RfWCIImtqWCq6KijoBoZK7bp/HlTWASQ==} + engines: {node: '>=6.9.0'} + + '@babel/parser@7.29.13': + resolution: {integrity: sha512-fJM50YYjlTiBhgdkGmC1tBpv+FMAyo4annf2X6Aks+0yRlaiVkYW/3f07xAfVVkYIoZ9fFZp+mEThUFnuybhkQ==} + engines: {node: '>=6.0.0'} + hasBin: true + + '@babel/plugin-transform-react-jsx-self@7.29.7': + resolution: {integrity: sha512-TL0hMc9xzy86VD31nUiwzd5otRAcyEPcsegCxolO0PvcXuH1v0kECe/UIznYFihpkvU5wg/jk4v0TTEFfm53fw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/plugin-transform-react-jsx-source@7.29.7': + resolution: {integrity: sha512-06IyK09H3wi4cGbhDBwp5gUGo0IKtnYa8tyTiephirPCK6fbobVGiXMMI5zLQ4aKEYP3wZ3ArU44o+8KMrSG/Q==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/template@7.29.7': + resolution: {integrity: sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==} + engines: {node: '>=6.9.0'} + + '@babel/traverse@7.29.13': + resolution: {integrity: sha512-0ve0xMlFA73dgY1oyJRY6RoW+/bncdcOQqg6jjYcVfXBK90OdLXjm9R6lmRetdZVrPjXkKIoMVBqYFPjcAlZ4Q==} + engines: {node: '>=6.9.0'} + + '@babel/types@7.29.11': + resolution: {integrity: sha512-WCsemW40Cpc6gouC1SrY6PBaZ+oLRlEVY9XBvZBI7il/HyUrb2nJ505wE1MHEFyDZNnrWDEuy4jL50WVHfTTSQ==} + engines: {node: '>=6.9.0'} + '@biomejs/biome@2.5.10': resolution: {integrity: sha512-WRKXARA3kTuiV5sxqTpobJ/I0MVd4vk3pOL6wnp5az4LntFIhWTj1RWZq3DI9PCEN3lXcqy7p5aqUHzvq8AXyQ==} engines: {node: '>=14.21.3'} @@ -236,6 +341,22 @@ packages: cpu: [x64] os: [win32] + '@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.6.0': + resolution: {integrity: sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==} + + '@jridgewell/trace-mapping@0.3.31': + resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==} + '@napi-rs/lzma-linux-x64-gnu@1.5.1': resolution: {integrity: sha512-oTXEIha4SsuXdTA4Iyskj0kpdx2yVXdhd75c2v3xGrHFfVMsbhTPZU/nMPL4sWKo4pBHm3aucLaqGlF696dTyQ==} engines: {node: ^22.20 || ^24.12 || >=25} @@ -243,6 +364,9 @@ packages: os: [linux] libc: [glibc] + '@rolldown/pluginutils@1.0.0-rc.3': + resolution: {integrity: sha512-eybk3TjzzzV97Dlj5c+XrBFW57eTNhzod66y9HrBlzJ6NsCrWCp/2kaPS3K9wJmurBC0Tdw4yPjXKZqlznim3Q==} + '@rollup/rollup-android-arm-eabi@4.62.5': resolution: {integrity: sha512-jfkGfTwhQpsiSckPF8r9bU3pn3vyd72NlWaO+TgEO6WPSDnUhXzrNYCHBMOYj0ACaUgjm6eERLF+XV9a6RstoA==} cpu: [arm] @@ -381,17 +505,179 @@ packages: cpu: [x64] os: [win32] + '@tailwindcss/node@4.3.5': + resolution: {integrity: sha512-yT53FzV4ke0cr/BguDxhWMpm5MJu1O2muzk+tKw6lKHjODAsYArBbWwFbJiaksfzFv1tpkO9QHGzmfs1hJT66g==} + + '@tailwindcss/oxide-android-arm64@4.3.5': + resolution: {integrity: sha512-Se0z5xMqcSQanJD1IYmO0cGpK3iv0fp3ZsIT7xRJZ1Da5PghvNoc46zz4jIQn+aan3dV9T8AermFNN9QPmsh0Q==} + engines: {node: '>= 20'} + cpu: [arm64] + os: [android] + + '@tailwindcss/oxide-darwin-arm64@4.3.5': + resolution: {integrity: sha512-UPrgTDuUbvmqGMZuCnmI3FKee/tYKzKdp00/kuB4oSGB213VYg8QTdF7lVhnPoBXq/mIfJ+ILoBFqNOboWcMwQ==} + engines: {node: '>= 20'} + cpu: [arm64] + os: [darwin] + + '@tailwindcss/oxide-darwin-x64@4.3.5': + resolution: {integrity: sha512-E+p7HEtjI0b8D7kbbWxH067cGui6d4c79COGko9fAPVE3rwc1E7ld2HFCbaG86AOGWS5VKQYqZOaf38ya4uxTQ==} + engines: {node: '>= 20'} + cpu: [x64] + os: [darwin] + + '@tailwindcss/oxide-freebsd-x64@4.3.5': + resolution: {integrity: sha512-yWEWcWyAG7rWOcTpJTjdhQ3pcaFY2h+0bqTRfgU3G2fz87ZU3AKdvdZKhslD+kyHnjBUWKvNdRYwIYC5dI1tIg==} + engines: {node: '>= 20'} + cpu: [x64] + os: [freebsd] + + '@tailwindcss/oxide-linux-arm-gnueabihf@4.3.5': + resolution: {integrity: sha512-WmeVjtJhZlr+smpqcdR2kQkkn6arHIJnUIBxTO2EJcTLGY1ecVXNo2hbSn8xc0IH2aEtys936iMWKGyj0GaKnA==} + engines: {node: '>= 20'} + cpu: [arm] + os: [linux] + + '@tailwindcss/oxide-linux-arm64-gnu@4.3.5': + resolution: {integrity: sha512-DTCSyucc6ShMp1QMqV5R94Z7xlgNgUzkGmFF1rL5HH2Qjy4eSmEqy+YLGkqqYvWa4sILtgrBt1JjRKbneQtiFQ==} + engines: {node: '>= 20'} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@tailwindcss/oxide-linux-arm64-musl@4.3.5': + resolution: {integrity: sha512-H9lsvO4x9E4nE4Hi8h7NHHw0O/kcVSu+iOyFHNGdYzazGgDjFHZbE6S3hQ8kMcbNXSBlMdNi67LV5EVqtpaJtw==} + engines: {node: '>= 20'} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@tailwindcss/oxide-linux-x64-gnu@4.3.5': + resolution: {integrity: sha512-4uxQvtBvPuIdl13WfUBj9xMZHH14PtHZ8OZdtLmdyDtG66sCa1t599NZT+jagkUzRtWhuul1qRZQ1nAJscXN5g==} + engines: {node: '>= 20'} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@tailwindcss/oxide-linux-x64-musl@4.3.5': + resolution: {integrity: sha512-0JQAzs7jwbA7O6+z/adU+Jk3AXwsu3npAhtr5escXS7TqEqWcaDV7qHuI+0Vy/KQRuVGnLQREcSJWYauyV3oqg==} + engines: {node: '>= 20'} + cpu: [x64] + os: [linux] + libc: [musl] + + '@tailwindcss/oxide-wasm32-wasi@4.3.5': + resolution: {integrity: sha512-OJhFmlEfdzMr+avACdi40RPtnkW0B6hXyxL/8r+tnEHBWZji36CYRjEXrrvgBmaYsD3oEOBqwYFRKsYvzFe7Bw==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + bundledDependencies: + - '@napi-rs/wasm-runtime' + - '@emnapi/core' + - '@emnapi/runtime' + - '@tybys/wasm-util' + - '@emnapi/wasi-threads' + - tslib + + '@tailwindcss/oxide-win32-arm64-msvc@4.3.5': + resolution: {integrity: sha512-9o8jgthi+QE5eandnboiJT64VQfnIArfZzSTdgbhEK5aafdiu2jTW9Honi/mwYHxBZuH1vAC57IFyrh+0iK5Gg==} + engines: {node: '>= 20'} + cpu: [arm64] + os: [win32] + + '@tailwindcss/oxide-win32-x64-msvc@4.3.5': + resolution: {integrity: sha512-XiKFfIy1RWe7qK4WqByxNW7Oz1/nkOy8o/BWhHminyV1PmpUd8Eedj5v2A8h2kpqeVlz6xRnwk9Fr/ZXNLcZfg==} + engines: {node: '>= 20'} + cpu: [x64] + os: [win32] + + '@tailwindcss/oxide@4.3.5': + resolution: {integrity: sha512-PynqGLZsZvwM9tqD/CUxkOIfyd6K5elZ2MooauzJryP/UqXYgi3yYbtt3N0Xe+MHV/eFKPFQCEfIKAqlAS1CBg==} + engines: {node: '>= 20'} + + '@tailwindcss/vite@4.3.5': + resolution: {integrity: sha512-BCNiY0a1ZjdOHVqw7kyb7U72BwfMF3dfUuN+tQsLWky/J5JOI/r7abibglXfygrZhVO/3u3V+E25kkKTeMkXaQ==} + peerDependencies: + vite: ^5.2.0 || ^6 || ^7 || ^8 + + '@types/babel__core@7.20.5': + resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==} + + '@types/babel__generator@7.27.0': + resolution: {integrity: sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==} + + '@types/babel__template@7.4.4': + resolution: {integrity: sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==} + + '@types/babel__traverse@7.28.0': + resolution: {integrity: sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==} + '@types/estree@1.0.9': resolution: {integrity: sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==} '@types/node@24.13.3': resolution: {integrity: sha512-Dh8vAsV36ig5wa9OX4pXvMc9D3Veibfw2wix0CUwYODLD8nkj9UsLjASr49nPg+2eKzxhBV+v7L8pXvT4e639Q==} + '@types/react-dom@19.3.0': + resolution: {integrity: sha512-ZI7bU42mZXXKHn/qNLEw2IrbiINU7X5+vfgdixBHkCNpYWXjKgfQ/P+uyGb5CjOLB9UcnTeg3rylQtV2hym44Q==} + peerDependencies: + '@types/react': ^19.3.0 + + '@types/react@19.3.0': + resolution: {integrity: sha512-N0rFCuH9YoxG9/m61l9MfpJKfmLOVU0em7ipIz6TRgSSkvReLB9vL85GB+yr8Bs5leqpvg96JSwF4ZS1s4viQg==} + + '@vitejs/plugin-react@5.2.0': + resolution: {integrity: sha512-YmKkfhOAi3wsB1PhJq5Scj3GXMn3WvtQ/JC0xoopuHoXSdmtdStOpFrYaT1kie2YgFBcIe64ROzMYRjCrYOdYw==} + engines: {node: ^20.19.0 || >=22.12.0} + peerDependencies: + vite: ^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 + + baseline-browser-mapping@2.11.35: + resolution: {integrity: sha512-GNk8KX52CHqeNKGk8+7tZnQab/2k1t/BgrUHPKNdijzpEhF1saPQZHVKb6m5loSAxB39gyrTYw34Qf9CQ3u1qQ==} + engines: {node: '>=6.0.0'} + hasBin: true + + browserslist@4.29.5: + resolution: {integrity: sha512-khTmKu5NGYTotqcYo8Bew2k4RAE9PuXRSFRXG2lQBrCEQHyeQ/vX6gKMxfokwywBsLiXZMnHsmWMG1pnO8J7uQ==} + engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} + hasBin: true + + caniuse-lite@1.0.30001823: + resolution: {integrity: sha512-TQ5s/djDjNk1axreUW+4rULH+BmdCMLiJkhaXnO5wqivG7tITkSUj4ItIdzqdZHKaXcHAV8dhH3JxOM7/7bwqw==} + + convert-source-map@2.0.0: + resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} + + csstype@3.2.3: + resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==} + + debug@4.4.3: + resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + + detect-libc@2.1.2: + resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==} + engines: {node: '>=8'} + + electron-to-chromium@1.5.478: + resolution: {integrity: sha512-pftG+ma5Lm8O6/p45bhYT6StBN5ziQymaRzmCZwFl8DwWHKPPD93FdOmP1aqftcepolQYvrcyTLa17kE8Yf+jg==} + + enhanced-resolve@5.26.1: + resolution: {integrity: sha512-PPnnSJq3azKOIewXR/uppBV/6h98dprBJ/WaQ9Qgj10xX1lJLNfg+XShpbsrSqcDSy2yYYyhfXM1wWhftqgyzw==} + engines: {node: '>=10.13.0'} + esbuild@0.28.2: resolution: {integrity: sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==} engines: {node: '>=18'} hasBin: true + escalade@3.2.0: + resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} + engines: {node: '>=6'} + fdir@6.5.0: resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} engines: {node: '>=12.0.0'} @@ -406,11 +692,122 @@ packages: engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} os: [darwin] + gensync@1.0.0-beta.2: + resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==} + engines: {node: '>=6.9.0'} + + graceful-fs@4.2.11: + resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} + + jiti@2.7.0: + resolution: {integrity: sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==} + hasBin: true + + js-tokens@4.0.0: + resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} + + jsesc@3.1.0: + resolution: {integrity: sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==} + engines: {node: '>=6'} + hasBin: true + + json5@2.2.3: + resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==} + engines: {node: '>=6'} + hasBin: true + + lightningcss-android-arm64@1.33.0: + resolution: {integrity: sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [android] + + lightningcss-darwin-arm64@1.33.0: + resolution: {integrity: sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [darwin] + + lightningcss-darwin-x64@1.33.0: + resolution: {integrity: sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [darwin] + + lightningcss-freebsd-x64@1.33.0: + resolution: {integrity: sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [freebsd] + + lightningcss-linux-arm-gnueabihf@1.33.0: + resolution: {integrity: sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==} + engines: {node: '>= 12.0.0'} + cpu: [arm] + os: [linux] + + lightningcss-linux-arm64-gnu@1.33.0: + resolution: {integrity: sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [linux] + libc: [glibc] + + lightningcss-linux-arm64-musl@1.33.0: + resolution: {integrity: sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [linux] + libc: [musl] + + lightningcss-linux-x64-gnu@1.33.0: + resolution: {integrity: sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [linux] + libc: [glibc] + + lightningcss-linux-x64-musl@1.33.0: + resolution: {integrity: sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [linux] + libc: [musl] + + lightningcss-win32-arm64-msvc@1.33.0: + resolution: {integrity: sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [win32] + + lightningcss-win32-x64-msvc@1.33.0: + resolution: {integrity: sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [win32] + + lightningcss@1.33.0: + resolution: {integrity: sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==} + engines: {node: '>= 12.0.0'} + + lru-cache@5.1.1: + resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} + + magic-string@1.4.5: + resolution: {integrity: sha512-oLLC2+YvQUfAa+vxoufE/yc1icb87M9iXIRqAoR/2EhE/8cb3SF/+Gi0c2By1B+5Vz2e2vQtUvHiu1+63Znh+w==} + + ms@2.1.3: + resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + nanoid@3.3.18: resolution: {integrity: sha512-DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w==} engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true + node-releases@2.0.63: + resolution: {integrity: sha512-6li2QanLsAXpIH2R6j77MzRyvOyrvdTqlKtO4CgBdHGNvN99ZZfyxszHc5o5+IZBWD5u6Hzwg83JoGXmqZNG9Q==} + engines: {node: '>=18'} + picocolors@1.1.1: resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} @@ -422,15 +819,42 @@ packages: resolution: {integrity: sha512-u82N74LFzG8ca+dD8puPnplTXoGH4fTPpVGuIbt36G3qvNlkvfD0lEAZSxaly3KX8TS/L1A1gsCEmvKmBcVbkQ==} engines: {node: ^10 || ^12 || >=14} + react-dom@19.3.1: + resolution: {integrity: sha512-Y0bARz53lhEC1NMCASs0/j+faB/zqt3R8hpvg1e8+61ZVJ4UL0UdC4cBbXfZMcIuhrfgeILTLe+ZeBCavQPtKQ==} + peerDependencies: + react: ^19.3.1 + + react-refresh@0.18.0: + resolution: {integrity: sha512-QgT5//D3jfjJb6Gsjxv0Slpj23ip+HtOpnNgnb2S5zU3CB26G/IDPGoy4RJB42wzFE46DRsstbW6tKHoKbhAxw==} + engines: {node: '>=0.10.0'} + + react@19.3.1: + resolution: {integrity: sha512-QNhWdt7nrgVWWQG58QuGsAR3jv3Hbe4mb4vz7w2csnHavciZJgda1CPNaldF6eVxv90ud3jUXpKlHL69gO38yw==} + engines: {node: '>=0.10.0'} + rollup@4.62.5: resolution: {integrity: sha512-/tqMfgP7GPA3PHhCmuiS4vIjrSVhHLgY++i+dhbG462euyAj7FpM4D9uq1X3BgjlqRdpcOrYhcQtfiQLNc8tqw==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true + scheduler@0.28.0: + resolution: {integrity: sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==} + + semver@6.3.2: + resolution: {integrity: sha512-GYrCADwpu6yV5OAvchkQ27Z5wwMxWAEMg5NNWjyHh/5DboFFqbdbvYNIvZouQpxXyeMPoTOh0vdPYKlf0ZswdQ==} + hasBin: true + source-map-js@1.2.1: resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} engines: {node: '>=0.10.0'} + tailwindcss@4.3.5: + resolution: {integrity: sha512-FcQk9BuffmEHJP2G0XmB2SplU1aLTI7j07Kunk+U74Ny+XiWOtzXz9aujFZ/avntw1e2cOv/3PkgzflQ7gX2vQ==} + + tapable@2.3.3: + resolution: {integrity: sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==} + engines: {node: '>=6'} + tinyglobby@0.2.17: resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==} engines: {node: '>=12.0.0'} @@ -443,6 +867,12 @@ packages: undici-types@7.18.2: resolution: {integrity: sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==} + update-browserslist-db@1.3.4: + resolution: {integrity: sha512-t8wonIOdQyOjtPd2VktlBu6QjTVTks6v8bSi7kd0r2Vll8TK1JYDZtRRdbmCHOAMphkZgrzK+L+vXK4pyZ8t4A==} + hasBin: true + peerDependencies: + browserslist: '>= 4.21.0' + vite@7.3.6: resolution: {integrity: sha512-4XP60spRGjSZFf1qYH+dJIkK2znL3zQfl9KkOV9MkkRR/3Dls0dxaBsQPTloEc5BLXWPL9vsOxopxyKoMmDueg==} engines: {node: ^20.19.0 || >=22.12.0} @@ -483,8 +913,123 @@ packages: yaml: optional: true + yallist@3.1.1: + resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==} + snapshots: + '@babel/code-frame@7.29.7': + dependencies: + '@babel/helper-validator-identifier': 7.29.7 + js-tokens: 4.0.0 + picocolors: 1.1.1 + + '@babel/compat-data@7.29.7': {} + + '@babel/core@7.29.13': + dependencies: + '@babel/code-frame': 7.29.7 + '@babel/generator': 7.29.13 + '@babel/helper-compilation-targets': 7.29.13 + '@babel/helper-module-transforms': 7.29.13(@babel/core@7.29.13) + '@babel/helpers': 7.29.13 + '@babel/parser': 7.29.13 + '@babel/template': 7.29.7 + '@babel/traverse': 7.29.13 + '@babel/types': 7.29.11 + '@jridgewell/remapping': 2.3.5 + convert-source-map: 2.0.0 + debug: 4.4.3 + gensync: 1.0.0-beta.2 + json5: 2.2.3 + semver: 6.3.2 + transitivePeerDependencies: + - supports-color + + '@babel/generator@7.29.13': + dependencies: + '@babel/parser': 7.29.13 + '@babel/types': 7.29.11 + '@jridgewell/gen-mapping': 0.3.13 + '@jridgewell/trace-mapping': 0.3.31 + jsesc: 3.1.0 + + '@babel/helper-compilation-targets@7.29.13': + dependencies: + '@babel/compat-data': 7.29.7 + '@babel/helper-validator-option': 7.29.7 + browserslist: 4.29.5 + lru-cache: 5.1.1 + semver: 6.3.2 + + '@babel/helper-globals@7.29.7': {} + + '@babel/helper-module-imports@7.29.7': + dependencies: + '@babel/traverse': 7.29.13 + '@babel/types': 7.29.11 + transitivePeerDependencies: + - supports-color + + '@babel/helper-module-transforms@7.29.13(@babel/core@7.29.13)': + dependencies: + '@babel/core': 7.29.13 + '@babel/helper-module-imports': 7.29.7 + '@babel/helper-validator-identifier': 7.29.7 + '@babel/traverse': 7.29.13 + transitivePeerDependencies: + - supports-color + + '@babel/helper-plugin-utils@7.29.7': {} + + '@babel/helper-string-parser@7.29.13': {} + + '@babel/helper-validator-identifier@7.29.7': {} + + '@babel/helper-validator-option@7.29.7': {} + + '@babel/helpers@7.29.13': + dependencies: + '@babel/template': 7.29.7 + '@babel/types': 7.29.11 + + '@babel/parser@7.29.13': + dependencies: + '@babel/types': 7.29.11 + + '@babel/plugin-transform-react-jsx-self@7.29.7(@babel/core@7.29.13)': + dependencies: + '@babel/core': 7.29.13 + '@babel/helper-plugin-utils': 7.29.7 + + '@babel/plugin-transform-react-jsx-source@7.29.7(@babel/core@7.29.13)': + dependencies: + '@babel/core': 7.29.13 + '@babel/helper-plugin-utils': 7.29.7 + + '@babel/template@7.29.7': + dependencies: + '@babel/code-frame': 7.29.7 + '@babel/parser': 7.29.13 + '@babel/types': 7.29.11 + + '@babel/traverse@7.29.13': + dependencies: + '@babel/code-frame': 7.29.7 + '@babel/generator': 7.29.13 + '@babel/helper-globals': 7.29.7 + '@babel/parser': 7.29.13 + '@babel/template': 7.29.7 + '@babel/types': 7.29.11 + debug: 4.4.3 + transitivePeerDependencies: + - supports-color + + '@babel/types@7.29.11': + dependencies: + '@babel/helper-string-parser': 7.29.13 + '@babel/helper-validator-identifier': 7.29.7 + '@biomejs/biome@2.5.10': optionalDependencies: '@biomejs/cli-darwin-arm64': 2.5.10 @@ -598,9 +1143,30 @@ snapshots: '@esbuild/win32-x64@0.28.2': optional: true + '@jridgewell/gen-mapping@0.3.13': + dependencies: + '@jridgewell/sourcemap-codec': 1.6.0 + '@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.6.0': {} + + '@jridgewell/trace-mapping@0.3.31': + dependencies: + '@jridgewell/resolve-uri': 3.1.2 + '@jridgewell/sourcemap-codec': 1.6.0 + '@napi-rs/lzma-linux-x64-gnu@1.5.1': optional: true + '@rolldown/pluginutils@1.0.0-rc.3': {} + '@rollup/rollup-android-arm-eabi@4.62.5': optional: true @@ -676,12 +1242,150 @@ snapshots: '@rollup/rollup-win32-x64-msvc@4.62.5': optional: true + '@tailwindcss/node@4.3.5': + dependencies: + '@jridgewell/remapping': 2.3.5 + enhanced-resolve: 5.26.1 + jiti: 2.7.0 + lightningcss: 1.33.0 + magic-string: 1.4.5 + source-map-js: 1.2.1 + tailwindcss: 4.3.5 + + '@tailwindcss/oxide-android-arm64@4.3.5': + optional: true + + '@tailwindcss/oxide-darwin-arm64@4.3.5': + optional: true + + '@tailwindcss/oxide-darwin-x64@4.3.5': + optional: true + + '@tailwindcss/oxide-freebsd-x64@4.3.5': + optional: true + + '@tailwindcss/oxide-linux-arm-gnueabihf@4.3.5': + optional: true + + '@tailwindcss/oxide-linux-arm64-gnu@4.3.5': + optional: true + + '@tailwindcss/oxide-linux-arm64-musl@4.3.5': + optional: true + + '@tailwindcss/oxide-linux-x64-gnu@4.3.5': + optional: true + + '@tailwindcss/oxide-linux-x64-musl@4.3.5': + optional: true + + '@tailwindcss/oxide-wasm32-wasi@4.3.5': + optional: true + + '@tailwindcss/oxide-win32-arm64-msvc@4.3.5': + optional: true + + '@tailwindcss/oxide-win32-x64-msvc@4.3.5': + optional: true + + '@tailwindcss/oxide@4.3.5': + optionalDependencies: + '@tailwindcss/oxide-android-arm64': 4.3.5 + '@tailwindcss/oxide-darwin-arm64': 4.3.5 + '@tailwindcss/oxide-darwin-x64': 4.3.5 + '@tailwindcss/oxide-freebsd-x64': 4.3.5 + '@tailwindcss/oxide-linux-arm-gnueabihf': 4.3.5 + '@tailwindcss/oxide-linux-arm64-gnu': 4.3.5 + '@tailwindcss/oxide-linux-arm64-musl': 4.3.5 + '@tailwindcss/oxide-linux-x64-gnu': 4.3.5 + '@tailwindcss/oxide-linux-x64-musl': 4.3.5 + '@tailwindcss/oxide-wasm32-wasi': 4.3.5 + '@tailwindcss/oxide-win32-arm64-msvc': 4.3.5 + '@tailwindcss/oxide-win32-x64-msvc': 4.3.5 + + '@tailwindcss/vite@4.3.5(vite@7.3.6(@types/node@24.13.3)(jiti@2.7.0)(lightningcss@1.33.0))': + dependencies: + '@tailwindcss/node': 4.3.5 + '@tailwindcss/oxide': 4.3.5 + tailwindcss: 4.3.5 + vite: 7.3.6(@types/node@24.13.3)(jiti@2.7.0)(lightningcss@1.33.0) + + '@types/babel__core@7.20.5': + dependencies: + '@babel/parser': 7.29.13 + '@babel/types': 7.29.11 + '@types/babel__generator': 7.27.0 + '@types/babel__template': 7.4.4 + '@types/babel__traverse': 7.28.0 + + '@types/babel__generator@7.27.0': + dependencies: + '@babel/types': 7.29.11 + + '@types/babel__template@7.4.4': + dependencies: + '@babel/parser': 7.29.13 + '@babel/types': 7.29.11 + + '@types/babel__traverse@7.28.0': + dependencies: + '@babel/types': 7.29.11 + '@types/estree@1.0.9': {} '@types/node@24.13.3': dependencies: undici-types: 7.18.2 + '@types/react-dom@19.3.0(@types/react@19.3.0)': + dependencies: + '@types/react': 19.3.0 + + '@types/react@19.3.0': + dependencies: + csstype: 3.2.3 + + '@vitejs/plugin-react@5.2.0(vite@7.3.6(@types/node@24.13.3)(jiti@2.7.0)(lightningcss@1.33.0))': + dependencies: + '@babel/core': 7.29.13 + '@babel/plugin-transform-react-jsx-self': 7.29.7(@babel/core@7.29.13) + '@babel/plugin-transform-react-jsx-source': 7.29.7(@babel/core@7.29.13) + '@rolldown/pluginutils': 1.0.0-rc.3 + '@types/babel__core': 7.20.5 + react-refresh: 0.18.0 + vite: 7.3.6(@types/node@24.13.3)(jiti@2.7.0)(lightningcss@1.33.0) + transitivePeerDependencies: + - supports-color + + baseline-browser-mapping@2.11.35: {} + + browserslist@4.29.5: + dependencies: + baseline-browser-mapping: 2.11.35 + caniuse-lite: 1.0.30001823 + electron-to-chromium: 1.5.478 + node-releases: 2.0.63 + update-browserslist-db: 1.3.4(browserslist@4.29.5) + + caniuse-lite@1.0.30001823: {} + + convert-source-map@2.0.0: {} + + csstype@3.2.3: {} + + debug@4.4.3: + dependencies: + ms: 2.1.3 + + detect-libc@2.1.2: {} + + electron-to-chromium@1.5.478: {} + + enhanced-resolve@5.26.1: + dependencies: + graceful-fs: 4.2.11 + tapable: 2.3.3 + esbuild@0.28.2: optionalDependencies: '@esbuild/aix-ppc64': 0.28.2 @@ -711,6 +1415,8 @@ snapshots: '@esbuild/win32-ia32': 0.28.2 '@esbuild/win32-x64': 0.28.2 + escalade@3.2.0: {} + fdir@6.5.0(picomatch@4.0.5): optionalDependencies: picomatch: 4.0.5 @@ -718,8 +1424,81 @@ snapshots: fsevents@2.3.3: optional: true + gensync@1.0.0-beta.2: {} + + graceful-fs@4.2.11: {} + + jiti@2.7.0: {} + + js-tokens@4.0.0: {} + + jsesc@3.1.0: {} + + json5@2.2.3: {} + + lightningcss-android-arm64@1.33.0: + optional: true + + lightningcss-darwin-arm64@1.33.0: + optional: true + + lightningcss-darwin-x64@1.33.0: + optional: true + + lightningcss-freebsd-x64@1.33.0: + optional: true + + lightningcss-linux-arm-gnueabihf@1.33.0: + optional: true + + lightningcss-linux-arm64-gnu@1.33.0: + optional: true + + lightningcss-linux-arm64-musl@1.33.0: + optional: true + + lightningcss-linux-x64-gnu@1.33.0: + optional: true + + lightningcss-linux-x64-musl@1.33.0: + optional: true + + lightningcss-win32-arm64-msvc@1.33.0: + optional: true + + lightningcss-win32-x64-msvc@1.33.0: + optional: true + + lightningcss@1.33.0: + dependencies: + detect-libc: 2.1.2 + optionalDependencies: + lightningcss-android-arm64: 1.33.0 + lightningcss-darwin-arm64: 1.33.0 + lightningcss-darwin-x64: 1.33.0 + lightningcss-freebsd-x64: 1.33.0 + lightningcss-linux-arm-gnueabihf: 1.33.0 + lightningcss-linux-arm64-gnu: 1.33.0 + lightningcss-linux-arm64-musl: 1.33.0 + lightningcss-linux-x64-gnu: 1.33.0 + lightningcss-linux-x64-musl: 1.33.0 + lightningcss-win32-arm64-msvc: 1.33.0 + lightningcss-win32-x64-msvc: 1.33.0 + + lru-cache@5.1.1: + dependencies: + yallist: 3.1.1 + + magic-string@1.4.5: + dependencies: + '@jridgewell/sourcemap-codec': 1.6.0 + + ms@2.1.3: {} + nanoid@3.3.18: {} + node-releases@2.0.63: {} + picocolors@1.1.1: {} picomatch@4.0.5: {} @@ -730,6 +1509,15 @@ snapshots: picocolors: 1.1.1 source-map-js: 1.2.1 + react-dom@19.3.1(react@19.3.1): + dependencies: + react: 19.3.1 + scheduler: 0.28.0 + + react-refresh@0.18.0: {} + + react@19.3.1: {} + rollup@4.62.5: dependencies: '@types/estree': 1.0.9 @@ -762,8 +1550,16 @@ snapshots: '@rollup/rollup-win32-x64-msvc': 4.62.5 fsevents: 2.3.3 + scheduler@0.28.0: {} + + semver@6.3.2: {} + source-map-js@1.2.1: {} + tailwindcss@4.3.5: {} + + tapable@2.3.3: {} + tinyglobby@0.2.17: dependencies: fdir: 6.5.0(picomatch@4.0.5) @@ -773,7 +1569,13 @@ snapshots: undici-types@7.18.2: {} - vite@7.3.6(@types/node@24.13.3): + update-browserslist-db@1.3.4(browserslist@4.29.5): + dependencies: + browserslist: 4.29.5 + escalade: 3.2.0 + picocolors: 1.1.1 + + vite@7.3.6(@types/node@24.13.3)(jiti@2.7.0)(lightningcss@1.33.0): dependencies: esbuild: 0.28.2 fdir: 6.5.0(picomatch@4.0.5) @@ -784,3 +1586,7 @@ snapshots: optionalDependencies: '@types/node': 24.13.3 fsevents: 2.3.3 + jiti: 2.7.0 + lightningcss: 1.33.0 + + yallist@3.1.1: {} diff --git a/web/scripts/check-tokens.mjs b/web/scripts/check-tokens.mjs index 2a43104..2c21db2 100644 --- a/web/scripts/check-tokens.mjs +++ b/web/scripts/check-tokens.mjs @@ -4,8 +4,13 @@ // // Every `var(--x)` must name a custom property something defines — a token in // `:root`, a component-local one in the CSS, or one the TS sets with -// `setProperty` — so a mistyped or deleted token fails here rather than -// silently falling back to the browser default. +// `setProperty` or a React `style` key — so a mistyped or deleted token fails +// here rather than silently falling back to the browser default. +// +// Tailwind's theme is reset to the tokens alone (style.css), so a utility can +// only produce a token value. The one way around that is an arbitrary value +// — `p-[3px]`, `bg-[#fff]` — and those are allowed only when they name a +// token: `p-[var(--space-2)]` or the `p-(--space-2)` shorthand. // // Allowed colour literals: inside a `:root` block (token definitions) and // inside `@font-face`. Relative colour derived from a token — @@ -27,7 +32,7 @@ function walk(dir, out = []) { if (!SKIP_DIRS.has(name)) { walk(path, out); } - } else if (/\.(css|ts|html)$/.test(name)) { + } else if (/\.(css|tsx?|html)$/.test(name)) { out.push(path); } } @@ -103,6 +108,8 @@ function checkCss(source, rel) { } } +const ARBITRARY = /(?:^|[\s"'`:])!?-?[a-z][\w-]*-\[([^\]\s]+)\]/g; + function checkPlain(source, rel) { // Comments are prose, not styling — `checkCss` already ignores them, and // without the same treatment here an issue reference like `#140` reads as a @@ -115,6 +122,11 @@ function checkPlain(source, rel) { if (COLOR_LITERAL.test(neutral)) { errors.push(`${rel}:${index + 1}: literal colour outside the token block`); } + for (const match of rawLine.matchAll(ARBITRARY)) { + if (!/^var\(--[\w-]+\)$/.test(match[1])) { + errors.push(`${rel}:${index + 1}: arbitrary utility value "[${match[1]}]" — use a token`); + } + } }); } @@ -139,6 +151,9 @@ for (const { source } of sources) { for (const match of source.matchAll(/setProperty\(\s*["'](--[\w-]+)["']/g)) { defined.add(match[1]); } + for (const match of source.matchAll(/["'](--[\w-]+)["']\s*:/g)) { + defined.add(match[1]); + } } for (const { rel, source } of sources) { source.split("\n").forEach((line, index) => { diff --git a/web/src/App.tsx b/web/src/App.tsx new file mode 100644 index 0000000..c2efe0f --- /dev/null +++ b/web/src/App.tsx @@ -0,0 +1,669 @@ +// The shell (§9.7): one sticky rail and, below 40rem, a bottom tab bar, both +// carrying the four destinations; under them one surface, with the detail +// pages and the tv deck layered over it. + +import { + type MouseEvent, + type ReactNode, + useCallback, + useEffect, + useMemo, + useRef, + useState, +} from "react"; +import { flushSync } from "react-dom"; +import { LAYER, LiveContext, type Nav, NavContext, type TvDeckRequest, useEscape } from "./context"; +import { type Download, fetchDownloads } from "./downloads"; +import { type Probe, probeHealth } from "./health"; +import { Icon, type IconName } from "./icons"; +import { two } from "./parts"; +import { + currentRoute, + type Destination, + destinationOf, + navigate, + ROUTE_EVENT, + type Route, +} from "./router"; +import { fetchMovie } from "./search"; +import { episodeTarget, fetchEpisode, fetchSeries, seasonTarget } from "./series"; +import { flag } from "./ui"; +import { LibraryView } from "./views/Library"; +import { MovieView } from "./views/Movie"; +import { QueuesView, queueBadgeTotal } from "./views/Queues"; +import { SearchView } from "./views/Search"; +import { SeriesView } from "./views/Series"; +import { SettingsView } from "./views/Settings"; +import { TvDeckView } from "./views/TvDeck"; + +const POLL_MS = 15_000; +const DEBOUNCE_MS = 250; + +type BaseRoute = Extract; + +type Overlay = + | { kind: "movie"; movieId: number; toReleases: boolean } + | { kind: "series"; seriesId: number }; + +interface Layers { + base: BaseRoute; + /** Bumped to remount the surface underneath, so it repaints from the API. */ + baseKey: number; + /** Bumped for every search the deck should run, even of the same query. */ + searchRun: number; + overlay: Overlay | null; + tv: TvDeckRequest | null; +} + +const LIBRARY: BaseRoute = { kind: "library" }; + +function isBase(route: Route): route is BaseRoute { + return ( + route.kind === "library" || + route.kind === "queues" || + route.kind === "settings" || + route.kind === "search" + ); +} + +/** The route the shell is on, for lighting the right destination. */ +function useRoute(): Route { + const [route, setRoute] = useState(currentRoute); + useEffect(() => { + const update = () => setRoute(currentRoute()); + window.addEventListener(ROUTE_EVENT, update); + window.addEventListener("popstate", update); + return () => { + window.removeEventListener(ROUTE_EVENT, update); + window.removeEventListener("popstate", update); + }; + }, []); + return route; +} + +/** §9.8: the app's one poll — health, downloads and the queue count on one cadence. */ +function usePoll() { + const [probe, setProbe] = useState(null); + const [downloads, setDownloads] = useState([]); + const [badge, setBadge] = useState(0); + useEffect(() => { + let inFlight = false; + let live = true; + const run = async () => { + if (inFlight) { + return; + } + inFlight = true; + const next = await probeHealth(); + if (live) { + setProbe(next); + } + const fetched = await fetchDownloads(); + if (live) { + setDownloads(fetched); + } + inFlight = false; + const total = await queueBadgeTotal(); + if (live && total !== null) { + setBadge(total); + } + }; + void run(); + const timer = window.setInterval(() => void run(), POLL_MS); + return () => { + live = false; + window.clearInterval(timer); + }; + }, []); + return useMemo(() => ({ probe, downloads, badge, setBadge }), [probe, downloads, badge]); +} + +function NavLink({ + destination, + current, + className, + href, + onGo, + children, +}: { + destination: Destination; + current: Destination; + className: string; + href: string; + onGo: (destination: Destination) => void; + children: ReactNode; +}) { + return ( + { + event.preventDefault(); + onGo(destination); + }} + > + {children} + + ); +} + +/** Gives focus back to the control a layer opened from, once the layer is gone. */ +function restoreFocus(target: HTMLElement | null) { + window.requestAnimationFrame(() => { + if (target?.isConnected) { + target.focus(); + } + }); +} + +function TabGlyph({ name }: { name: IconName }) { + return ( + + ); +} + +export function App() { + const live = usePoll(); + const route = useRoute(); + const destination = destinationOf(route); + const [layers, setLayers] = useState(() => ({ + base: LIBRARY, + baseKey: 0, + searchRun: 0, + overlay: null, + tv: null, + })); + // the layers as of the last render, for handlers that act on them + const layersRef = useRef(layers); + layersRef.current = layers; + const [input, setInput] = useState(""); + const [searching, setSearching] = useState(false); + const [inputFocused, setInputFocused] = useState(false); + const inputRef = useRef(null); + const wordmark = useRef(null); + const debounce = useRef(undefined); + const routeTicket = useRef(0); + // where back and Esc land, and which control gets focus back + const overlayParent = useRef(LIBRARY); + const overlayOrigin = useRef(null); + const tvOrigin = useRef(null); + + const showBase = useCallback((base: BaseRoute) => { + setLayers((current) => ({ + ...current, + base, + searchRun: base.kind === "search" ? current.searchRun + 1 : current.searchRun, + overlay: null, + tv: null, + })); + }, []); + + // popstate and the initial load both dispatch through here, so refresh + // and back/forward reach the same view a click would have. + const applyRoute = useCallback( + async (next: Route) => { + window.clearTimeout(debounce.current); + // a later route, or a click, outranks a deep-link fetch still out + routeTicket.current += 1; + const ticket = routeTicket.current; + const stale = () => ticket !== routeTicket.current; + if (isBase(next)) { + // §9.7: "/" is the library — clear any stale query so the rail input + // matches the route on a cold load or back-navigation + setInput(next.kind === "search" ? next.query : ""); + showBase(next); + return; + } + const home = () => { + navigate(LIBRARY, { replace: true }); + setInput(""); + showBase(LIBRARY); + }; + // a deep link has no origin click to restore focus to — the wordmark is + // the closest stand-in, and the surface underneath is the library + overlayParent.current = LIBRARY; + overlayOrigin.current = wordmark.current; + setInput(""); + if (next.kind === "movie" || next.kind === "releases") { + const found = await fetchMovie(next.movieId); + if (stale()) { + return; + } + if (found === null) { + home(); + return; + } + setLayers((current) => ({ + ...current, + base: LIBRARY, + overlay: { kind: "movie", movieId: next.movieId, toReleases: next.kind === "releases" }, + tv: null, + })); + return; + } + if (next.kind === "series") { + const found = await fetchSeries(next.seriesId); + if (stale()) { + return; + } + if (found === null) { + home(); + return; + } + setLayers((current) => ({ + ...current, + base: LIBRARY, + overlay: { kind: "series", seriesId: next.seriesId }, + tv: null, + })); + return; + } + // both deck routes live over the series page, exactly as a click on a + // deck button does; resolve what that click would have + let tv: TvDeckRequest; + if (next.kind === "seasonReleases") { + const title = (await fetchSeries(next.seriesId))?.title ?? ""; + if (stale()) { + return; + } + if (title === "") { + home(); + return; + } + tv = { + title, + sub: `season ${two(next.seasonNumber)} · packs`, + seriesId: next.seriesId, + target: seasonTarget(next.seriesId, next.seasonNumber), + route: next, + }; + } else { + const episode = await fetchEpisode(next.episodeId); + const title = episode === null ? "" : ((await fetchSeries(episode.series_id))?.title ?? ""); + if (stale()) { + return; + } + if (episode === null || title === "") { + home(); + return; + } + tv = { + title, + sub: `S${two(episode.season_number)}E${two(episode.number)} · ${episode.title}`, + seriesId: episode.series_id, + target: episodeTarget(episode.id), + route: next, + }; + } + tvOrigin.current = wordmark.current; + setLayers((current) => ({ + ...current, + base: LIBRARY, + overlay: { kind: "series", seriesId: tv.seriesId }, + tv, + })); + }, + [showBase], + ); + + useEffect(() => { + const onPop = () => { + void applyRoute(currentRoute()); + }; + window.addEventListener("popstate", onPop); + void applyRoute(currentRoute()); + return () => window.removeEventListener("popstate", onPop); + }, [applyRoute]); + + const goHome = useCallback(() => { + window.clearTimeout(debounce.current); + navigate(LIBRARY); + setInput(""); + showBase(LIBRARY); + }, [showBase]); + + const nav = useMemo