diff --git a/.gitignore b/.gitignore index a652810a..cccc83f5 100644 --- a/.gitignore +++ b/.gitignore @@ -15,9 +15,7 @@ /e2e/app/Cargo.lock /e2e/.driver/ -# next.js -/.next/ -/out/ +# frontend build /dist/ # production @@ -43,9 +41,6 @@ yarn-error.log* # local env files .env*.local -# vercel -.vercel - # typescript *.tsbuildinfo @@ -57,9 +52,6 @@ yarn-error.log* # env .env -# next -**/next-env.d.ts - # claude .claude/ # Claude Code session-recovery runtime state diff --git a/AGENTS.md b/AGENTS.md index c2b117ea..bf03e607 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -31,8 +31,9 @@ The user is dirtycslothg. Address them as dirtycslothg. ``` donutbrowser/ -├── src/ # Next.js frontend -│ ├── app/ # App router (page.tsx, layout.tsx) +├── src/ # React frontend, built with Vite (index.html, vite.config.ts) +│ ├── main.tsx # Entry: providers, error boundaries, root render +│ ├── app/ # The app shell (page.tsx) │ ├── components/ # 50+ React components (dialogs, tables, UI) │ │ ├── table-controls.tsx # Shared filters, sort rules, column controls, and row selection │ │ ├── managed-data-table.tsx # Shared management table and keyboard navigation @@ -45,7 +46,7 @@ donutbrowser/ │ │ ├── agent-chat/ # Agent page: chats, composer, sidebar, templates gallery (catalog in lib/agent-templates.ts) │ │ └── tips/ # Feature tips: icons and the day's coach mark │ ├── hooks/ # Event-driven React hooks, table preferences, filtering, and keyboard controls -│ ├── i18n/locales/ # Translations (de, en, es, fr, ja, ko, pt, ru, tr, vi, zh) +│ ├── i18n/locales/ # Translations (de, en, es, fr, ja, ko, pt, ru, tr, vi, zh); English is bundled, the rest load on demand │ ├── generated/ # Build-generated third-party license inventory │ ├── lib/ # Utilities (themes, toast, browser-utils, ui-sounds, schedules, team-activity, coach-mark placement, profile-list-store, agent-templates) │ └── types.ts # Shared TypeScript interfaces diff --git a/biome.json b/biome.json index e1da3129..9ac65a2b 100644 --- a/biome.json +++ b/biome.json @@ -7,14 +7,7 @@ }, "files": { "ignoreUnknown": true, - "includes": [ - "**", - "!**/target", - "!**/node_modules", - "!**/dist", - "!**/.next", - "!**/out" - ] + "includes": ["**", "!**/target", "!**/node_modules", "!**/dist"] }, "formatter": { "enabled": true, diff --git a/components.json b/components.json index 874c3bcc..7d16cfb0 100644 --- a/components.json +++ b/components.json @@ -1,7 +1,7 @@ { "$schema": "https://ui.shadcn.com/schema.json", "style": "new-york", - "rsc": true, + "rsc": false, "tsx": true, "tailwind": { "config": "", diff --git a/flake.nix b/flake.nix index 0028c299..8e263bc0 100644 --- a/flake.nix +++ b/flake.nix @@ -358,9 +358,8 @@ apps.build = mkApp "donut-build" '' set -euo pipefail - # mkApp exports NODE_ENV=development for the dev apps, and next build - # fails to prerender under it ("Cannot read properties of null - # (reading 'useContext')" on /_global-error). + # mkApp exports NODE_ENV=development for the dev apps; under it Vite + # would bundle React's development build. NODE_ENV=production pnpm build (cd src-tauri && cargo build) ''; diff --git a/index.html b/index.html index 2dc612a9..0c976e4a 100644 --- a/index.html +++ b/index.html @@ -1,14 +1,12 @@ - - - - - - - Tauri + React + Typescript - - - -
- - - + + + + + + + + +
+ + + diff --git a/next.config.ts b/next.config.ts deleted file mode 100644 index 56904356..00000000 --- a/next.config.ts +++ /dev/null @@ -1,15 +0,0 @@ -import type { NextConfig } from "next"; - -const nextConfig: NextConfig = { - reactStrictMode: true, - output: "export", - images: { - unoptimized: true, - }, - distDir: "dist", - compiler: { - removeConsole: process.env.NODE_ENV === "production", - }, -}; - -export default nextConfig; diff --git a/package.json b/package.json index fe0705ee..c92f9279 100644 --- a/package.json +++ b/package.json @@ -6,10 +6,9 @@ "type": "module", "scripts": { "predev": "pnpm licenses:generate", - "dev": "next dev --turbopack -p 12341", + "dev": "vite", "prebuild": "pnpm licenses:generate", - "build": "next build", - "start": "next start", + "build": "vite build", "clips": "node scripts/clips/record.mjs", "test": "pnpm test:themes && pnpm test:tips && pnpm test:window-decorations && pnpm test:cookie-bot-limits && pnpm test:cookie-bot-outcomes && pnpm test:recipes && pnpm test:agent-console && pnpm test:agent-tasks && pnpm test:api-examples && pnpm test:backend-errors && pnpm test:i18n-parity && pnpm test:proxy-string && pnpm test:proxy-type && pnpm test:language-list && pnpm test:proxy-first-hop-claims && pnpm test:profile-search && pnpm test:palette-search && pnpm test:ui-sounds && pnpm test:schedules && pnpm test:team-activity && pnpm test:table-tools && pnpm test:motion && pnpm test:donut-lab && pnpm test:profile-store && pnpm test:licenses && pnpm test:xray-packaging && pnpm test:appimage-metainfo && pnpm test:appimage-system-libs && pnpm test:rust:unit && pnpm test:donut-sync && pnpm test:sync-e2e", "test:themes": "node --test src/lib/themes.test.mjs", @@ -109,12 +108,9 @@ "cmdk": "^1.1.1", "color": "^5.0.3", "flag-icons": "^7.6.0", - "geist": "^1.9.1", "i18next": "^26.7.2", "lucide-react": "^1.69.0", "motion": "^14.9.1", - "next": "^16.4.5", - "next-themes": "^0.4.6", "radix-ui": "^1.8.1", "react": "^19.3.1", "react-dom": "^19.3.1", @@ -129,13 +125,14 @@ }, "devDependencies": { "@biomejs/biome": "^2.6.5", - "@tailwindcss/postcss": "^4.3.4", + "@tailwindcss/vite": "^4.3.4", "@tauri-apps/cli": "~2.12.4", "@types/canvas-confetti": "^1.9.0", "@types/color": "^4.2.1", "@types/node": "^26.6.6", "@types/react": "^19.3.0", "@types/react-dom": "^19.3.0", + "@vitejs/plugin-react": "^6.3.0", "husky": "^9.1.7", "lint-staged": "^17.6.0", "playwright-core": "^1.65.0", @@ -144,7 +141,8 @@ "ts-unused-exports": "^11.0.1", "tsrs": "0.22.0-ts7.1.0-beta", "tw-animate-css": "^1.4.0", - "typescript": "^7.0.2" + "typescript": "^7.0.2", + "vite": "^8.3.8" }, "packageManager": "pnpm@12.18.0", "lint-staged": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1969e1e4..5f2fdd11 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -271,9 +271,6 @@ importers: flag-icons: specifier: ^7.6.0 version: 7.6.0 - geist: - specifier: ^1.9.1 - version: 1.9.1(next@16.4.5(@types/node@26.6.6)(react-dom@19.3.1(react@19.3.1))(react@19.3.1)) i18next: specifier: ^26.7.2 version: 26.7.2(typescript@7.0.2) @@ -283,12 +280,6 @@ importers: motion: specifier: ^14.9.1 version: 14.9.1(react-dom@19.3.1(react@19.3.1))(react@19.3.1) - next: - specifier: ^16.4.5 - version: 16.4.5(@types/node@26.6.6)(react-dom@19.3.1(react@19.3.1))(react@19.3.1) - next-themes: - specifier: ^0.4.6 - version: 0.4.6(react-dom@19.3.1(react@19.3.1))(react@19.3.1) radix-ui: specifier: ^1.8.1 version: 1.8.1(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.1(react@19.3.1))(react@19.3.1) @@ -326,9 +317,9 @@ importers: '@biomejs/biome': specifier: ^2.6.5 version: 2.6.5 - '@tailwindcss/postcss': + '@tailwindcss/vite': specifier: ^4.3.4 - version: 4.3.4 + version: 4.3.4(vite@8.3.8(@types/node@26.6.6)(jiti@2.7.0)(yaml@2.9.1)) '@tauri-apps/cli': specifier: ~2.12.4 version: 2.12.4 @@ -347,6 +338,9 @@ importers: '@types/react-dom': specifier: ^19.3.0 version: 19.3.0(@types/react@19.3.0) + '@vitejs/plugin-react': + specifier: ^6.3.0 + version: 6.3.0(vite@8.3.8(@types/node@26.6.6)(jiti@2.7.0)(yaml@2.9.1)) husky: specifier: ^9.1.7 version: 9.1.7 @@ -374,13 +368,12 @@ importers: typescript: specifier: ^7.0.2 version: 7.0.2 + vite: + specifier: ^8.3.8 + version: 8.3.8(@types/node@26.6.6)(jiti@2.7.0)(yaml@2.9.1) packages: - '@alloc/quick-lru@5.3.0': - resolution: {integrity: sha512-U4+70Pc5ZS9osnCBCE5Jha/ciHM+Yp+CNMNC/7HvYbNRk1Ldd+f7qO65W5qfhu/TCv+/ozljlXXe9Nj8419DMA==} - engines: {node: '>=10'} - '@babel/runtime@7.29.13': resolution: {integrity: sha512-v+oN26xP4YIlQsbQ/CbTH1WG5m/l/DjKKZNy/Kp3f/AFvbgt7Em/D0FeMM3O2hX0YzeN2M16W8lOpyhIkfCBcQ==} engines: {node: '>=6.9.0'} @@ -454,8 +447,14 @@ packages: cpu: [x64] os: [win32] - '@emnapi/runtime@1.11.3': - resolution: {integrity: sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==} + '@emnapi/core@2.0.0-beta.2': + resolution: {integrity: sha512-MzCVoWtcg4Pm2B3je5mMvYMvj3MmBKw+fU7vbsJc9/iT8ip6/eYIHo/Dsm/mr+wsHB6SEyJDuxB09Yy6r/8+4A==} + + '@emnapi/runtime@2.0.0-beta.2': + resolution: {integrity: sha512-JcrSPzPvZuNZvJqPTF9Fw25LbOJ8avzFVlaf2grmH4Cku0oGP47tRgqPZadcfj3YoZMHkFVnCYFbQM8I+i5QEw==} + + '@emnapi/wasi-threads@2.2.0': + resolution: {integrity: sha512-JP7OYH38Q7+pyTAe14raZHLQIK7BDKbdwji+Xi3pcd/6QkJYQH3SX4wu6EplGrGJWRepoNzedfm0G3B9Z4e9Rw==} '@floating-ui/core@1.8.0': resolution: {integrity: sha512-0CIZ5itps/8x7BG8dEIhs53BvCUH2PCoogtakwRTut+Arm58sJooJ0AuZhLw2HJYIR5cMLNPBSS728sPho2khQ==} @@ -472,176 +471,14 @@ packages: '@floating-ui/utils@0.2.12': resolution: {integrity: sha512-HpCo8tmWzLVad5s2d19EhAz5zqrrQ6s69qd6moPMQvkOuSwDT1YgRfWSVuc4ennqrgv3OHppiOGMQ7oC13yIww==} - '@img/colour@1.1.0': - resolution: {integrity: sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==} - engines: {node: '>=18'} - - '@img/sharp-darwin-arm64@0.35.5': - resolution: {integrity: sha512-QRUlFQ0WxvdWyqqG/WtI3iupfD5rBzmCHXSdPsY91sAtVtTo7Q4cb6zOccZ3gqEqkr0f1As1ehLqmEpDsRf+lg==} - engines: {node: '>=20.9.0'} - cpu: [arm64] - os: [darwin] - - '@img/sharp-darwin-x64@0.35.5': - resolution: {integrity: sha512-+BR255RhDlpygUpOc/Jdt1nT6DQ3XG/ERo5wbcdOf5Q320dKtPCKPLR1LJs9VGXRaMa8l1uUa0tkCNOXiAxZUw==} - engines: {node: '>=20.9.0'} - cpu: [x64] - os: [darwin] - - '@img/sharp-freebsd-wasm32@0.35.5': - resolution: {integrity: sha512-Y/z91nEZ4uIBX5X3nfTovjU9lHNKFYbL2lpHCLVNmXQK03VIZvXBBt0KxbPGp2SdGSF+2mQU4e+hQaWOt86iAw==} - engines: {node: '>=20.9.0'} - os: [freebsd] - - '@img/sharp-libvips-darwin-arm64@1.3.4': - resolution: {integrity: sha512-5R89nBYiRdUlSWJxPhO+GVtaXzXSxKnRu/xqMn3KTA3L9EB9Oy/P+Nn2f2vlhPuUdy/Zusb2DarbyTpGCfEDuw==} - cpu: [arm64] - os: [darwin] - - '@img/sharp-libvips-darwin-x64@1.3.4': - resolution: {integrity: sha512-iR2OKH80yi0U+dUplyh3/xdpFvps6YkCwsXenIJxqxR1v9o+xtKTGbS9H7cps+2Vxjc8B1j96p75NmTGjIhtpQ==} - cpu: [x64] - os: [darwin] - - '@img/sharp-libvips-linux-arm64@1.3.4': - resolution: {integrity: sha512-Y3dgX/6lE2QhQb+Gxy0WZxfg9MEm/JBjamZpS2IklP7xIQoKN4hzAm7KcMVGtaVDt3neE9OKBC7vAfonA/Lr1A==} - cpu: [arm64] - os: [linux] - libc: [glibc] - - '@img/sharp-libvips-linux-arm@1.3.4': - resolution: {integrity: sha512-LmRtTsOHuvM2+wlO2Db37dx5MiZhB0FvSunciw48YjdOkZz9KAiRbm8ujeMOA1INqmei5NapFxYEK1D1ZSidmw==} - cpu: [arm] - os: [linux] - libc: [glibc] - - '@img/sharp-libvips-linux-ppc64@1.3.4': - resolution: {integrity: sha512-Le6boB8Tai0Nis+gIxIpKx68UDVVIqdR8Tin5Yf1z2LJJQLDJvCDRqRu+jC2qCoD+eIomonmOwB4smBRxfVpYQ==} - cpu: [ppc64] - os: [linux] - libc: [glibc] - - '@img/sharp-libvips-linux-riscv64@1.3.4': - resolution: {integrity: sha512-aHkkIEHPRdQEegJN20MLmGtxYD9R2wQr3Cwpddnu5+YKMt6Uzax7S9h5gpZTo8wyrGuZSlfQ63OevL5mTyOC7Q==} - cpu: [riscv64] - os: [linux] - libc: [glibc] - - '@img/sharp-libvips-linux-s390x@1.3.4': - resolution: {integrity: sha512-ra/mB6MikESDUO7Yg+Mi95bFBb9GsObURuhnOv3OqknjGe9sZrG8tCe9q0xSIGrtLgvgw0gKnFWcK4blSgQOuQ==} - cpu: [s390x] - os: [linux] - libc: [glibc] - - '@img/sharp-libvips-linux-x64@1.3.4': - resolution: {integrity: sha512-GJ//SSXbnwSDes02umB3nDJLFcQzw8a18V8fyhqr6tV515tOEMdImjjxj1AoafMRz56F3PHgftnj1QEKSU1zkw==} - cpu: [x64] - os: [linux] - libc: [glibc] - - '@img/sharp-libvips-linuxmusl-arm64@1.3.4': - resolution: {integrity: sha512-hvulFwtjUcagsis6BBxHwGFwWoNZjgYmULGVrZcyfNbjA8hKILbRxGg15/7w5HDyXHXUos/j6baAWqnCyQ2DWA==} - cpu: [arm64] - os: [linux] - libc: [musl] - - '@img/sharp-libvips-linuxmusl-x64@1.3.4': - resolution: {integrity: sha512-6zXKeE/p39I1AmA3cJG35eyBGNqNddLnUXjhwBnsGjFPWqf5VKkDBEqaEkPDoTEtkxwi2vv8Tcr2mDyP4So7Fg==} - cpu: [x64] - os: [linux] - libc: [musl] - - '@img/sharp-linux-arm64@0.35.5': - resolution: {integrity: sha512-LYVx5JTsOM2CBzmxreh+nl64/3H6Xb09iSLknqH47z2T2DFFxDeFLP5y4dJwe6H7uGQlHPyEEtIqyo3DYsRwdQ==} - engines: {node: '>=20.9.0'} - cpu: [arm64] - os: [linux] - libc: [glibc] - - '@img/sharp-linux-arm@0.35.5': - resolution: {integrity: sha512-LEaXK2WdXVK5ykcw0buWyPMsmLLL2vpHLD6yrNSW+JGEL3BZPA4tpKN6iaMc4AxTTAoaX/sU1rOL51lcIz48ZQ==} - engines: {node: '>=20.9.0'} - cpu: [arm] - os: [linux] - libc: [glibc] - - '@img/sharp-linux-ppc64@0.35.5': - resolution: {integrity: sha512-QVxAAq8evVRI9ia2vqgwrmWucn5Dfv+JdWzj75pD8omHLPSP7f8p20O8jxzjCcuCEQEOtYOZUmX1hkiZ0kdevA==} - engines: {node: '>=20.9.0'} - cpu: [ppc64] - os: [linux] - libc: [glibc] - - '@img/sharp-linux-riscv64@0.35.5': - resolution: {integrity: sha512-LtdreXguaavKODPIfzJ4kffx7UNt1omwtK0rch4EBbbSTXPnxWmYSayXdLJw0fJzQ97kHt1gL/yh4tvU+nCyRQ==} - engines: {node: '>=20.9.0'} - cpu: [riscv64] - os: [linux] - libc: [glibc] - - '@img/sharp-linux-s390x@0.35.5': - resolution: {integrity: sha512-UZasTOFiYzotTsGOCu42BfUzP6Tu6Do/947iRm1RsLKvlllxwGcn4RN27LibGWceix4Y+Pmw3jsnTcCQIgWjqA==} - engines: {node: '>=20.9.0'} - cpu: [s390x] - os: [linux] - libc: [glibc] - - '@img/sharp-linux-x64@0.35.5': - resolution: {integrity: sha512-SxFtLTeJInhAA9Q836kux2vZNeOBQEx658qvbboZScr0wIARym3IcGmW7KpVD5sbVg0Ojy+udFQdayYIZyoNog==} - engines: {node: '>=20.9.0'} - cpu: [x64] - os: [linux] - libc: [glibc] - - '@img/sharp-linuxmusl-arm64@0.35.5': - resolution: {integrity: sha512-9HbMclmI1zlNkFRs3z9/eBtDjfD0sGlrX1z6b1qwmiFY5ElDLh4BC0LPBdVp7z1DXFiKlIcznf+ZlsuZzLxQqg==} - engines: {node: '>=20.9.0'} - cpu: [arm64] - os: [linux] - libc: [musl] - - '@img/sharp-linuxmusl-x64@0.35.5': - resolution: {integrity: sha512-4KOphqB035HrVdqLZfCgMzzERrQkkzOwRhl4OAkRO1YCldbaFjySXMaK534Mo0V+LndnlJk+sbUyLeU0ULyD1A==} - engines: {node: '>=20.9.0'} - cpu: [x64] - os: [linux] - libc: [musl] - - '@img/sharp-wasm32@0.35.5': - resolution: {integrity: sha512-Ptsga1su4tQx+LLF1ECS9U6nz5kmrXKo6XVbtR48Ke3ZRxxgaWBu7IDtEe1quo8hiupwm6WFqxVlXaSf7IINGQ==} - engines: {node: '>=20.9.0'} - - '@img/sharp-webcontainers-wasm32@0.35.5': - resolution: {integrity: sha512-hfhF/FmoQyTUkA0bIKFOtw536BQSeBMe6BF6QyWlrPxT754+TFLaZ7sKKTfvvM0yJgKgaYTwnFCIZ/GuDw5SUA==} - engines: {node: '>=20.9.0'} - cpu: [wasm32] - - '@img/sharp-win32-arm64@0.35.5': - resolution: {integrity: sha512-X4t7g+7ZA5DKblCBEXGjUqqemj4vczING/5viFwAL8h4N3qYeyjwdCvRLHi4EdOUI+2Z7UFlp1VM+p/AuEtm6Q==} - engines: {node: '>=20.9.0'} - cpu: [arm64] - os: [win32] - - '@img/sharp-win32-ia32@0.35.5': - resolution: {integrity: sha512-5Zm82LoBc43nhwNybZlG7Y1KO//Zhsn306fQl29ZOuStHLGTo3BWL83q3cznX0poxSAMuYL1On/BHBxkBeKr6A==} - engines: {node: ^20.9.0} - cpu: [ia32] - os: [win32] - - '@img/sharp-win32-x64@0.35.5': - resolution: {integrity: sha512-x76eH0vEiHlcMQu8Y8IenntaACtddpT6W0wmXtWrnKcnKI7ME5DdgqhAD6SEWOEl1v2zDvkZDhFA9KnURwpfqg==} - engines: {node: '>=20.9.0'} - 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==} + '@jridgewell/resolve-uri@3.1.3': + resolution: {integrity: sha512-lhTtjtoEArWBjismtfS761S9Hlyn+nIZqOZVYoZ1Xn82PMNMVnk+jj/NhC4fAXGTs7ydONcJiR5vyQBTMDu27g==} engines: {node: '>=6.0.0'} '@jridgewell/sourcemap-codec@1.6.0': @@ -650,60 +487,15 @@ packages: '@jridgewell/trace-mapping@0.3.31': resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==} - '@next/env@16.4.5': - resolution: {integrity: sha512-JwSPwpdkZL5VMl2jA/q+JI8MZdweAL3xmw5/tb9y/TLtmS0YXZnmYDzSihwk8xTj1OL+WM53gTqaj96yuLp6Xw==} + '@napi-rs/wasm-runtime@1.2.6': + resolution: {integrity: sha512-mRyDmEw9/fCDXCGfL1sbgIw/GUK0PVxRW4YwgPN61F3LQ+fSyoBFarJVzgGyhF6kRzEQZ0FejDqm4WLXSeqQmw==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + peerDependencies: + '@emnapi/core': ^1.7.1 || 2.0.0-beta.2 + '@emnapi/runtime': ^1.7.1 || 2.0.0-beta.2 - '@next/swc-darwin-arm64@16.4.5': - resolution: {integrity: sha512-W5TniBzWKASbNNwHZ/S/f1MxQUXU/LdjklVMWA0Ujbfl7SZnUzFls45hO0i/sF7Bx1jJBWp7WWmoQajXtX/O8A==} - engines: {node: '>= 10'} - cpu: [arm64] - os: [darwin] - - '@next/swc-darwin-x64@16.4.5': - resolution: {integrity: sha512-uWq4qkHapBDS1oFltWS4YxTb9pLHAtLNcpbuK6SmRsebLYZqpBML/j/C0op+50JYGTpZgVL/DWNt/6oWlamrrw==} - engines: {node: '>= 10'} - cpu: [x64] - os: [darwin] - - '@next/swc-linux-arm64-gnu@16.4.5': - resolution: {integrity: sha512-FdRcyOx5u5P51mlAqLB9EXdd8jZO5fsdHtk4BAQSkqOywCsbTNN/rmw+jO7pnmjNdAtu2AG46NzbCL2FPDrrgw==} - engines: {node: '>= 10'} - cpu: [arm64] - os: [linux] - libc: [glibc] - - '@next/swc-linux-arm64-musl@16.4.5': - resolution: {integrity: sha512-cyvmmgtRXR8aGVT86wi9Py53IlfyCx7P2fZxuAXAoTummDnhKtUyjrMeXfapqp4qgD+gT5RqyGD/VfA16jEK7Q==} - engines: {node: '>= 10'} - cpu: [arm64] - os: [linux] - libc: [musl] - - '@next/swc-linux-x64-gnu@16.4.5': - resolution: {integrity: sha512-hPc+Fl+N22DAvqZHq559NmamXboOX5Lu8I5Wl0DezfrhTk1Zz21NQeYoZDmNI/NjTcrdsVxM72Fzn2lI+Q+vAw==} - engines: {node: '>= 10'} - cpu: [x64] - os: [linux] - libc: [glibc] - - '@next/swc-linux-x64-musl@16.4.5': - resolution: {integrity: sha512-gbACYE8IP/jlprNTpiWXHb8N9CofOzpnEwH2SrIz1dUbiJf1FbDssDupCAPeP1Taxe8mgG20sGZamJI7KFOdZw==} - engines: {node: '>= 10'} - cpu: [x64] - os: [linux] - libc: [musl] - - '@next/swc-win32-arm64-msvc@16.4.5': - resolution: {integrity: sha512-+8gj++ZMo8H20Xh2ijjNqyFk5LPLw0AC4Fs4Tq/G94rjjQXhOjN4jgSWsWKPFsyY26hfIeemJIwKtMxOsp5GBA==} - engines: {node: '>= 10'} - cpu: [arm64] - os: [win32] - - '@next/swc-win32-x64-msvc@16.4.5': - resolution: {integrity: sha512-qNZj66pYXnaWLiF9R9GUbfBdrCv7kC6TaZfIwB2KH5WPc/8pEM3nVOj8hpQhWJU8S94rlH5MPDcX15+RrgUhiw==} - engines: {node: '>= 10'} - cpu: [x64] - os: [win32] + '@oxc-project/types@0.156.0': + resolution: {integrity: sha512-1Duyg48TdJNdyhEB8Xn1L36bT9Pv6GUtlKjHxOys8xkaF/rQq3XJE+bAurSK/AgIz5mGFsb77cn9Pb20+WCScw==} '@radix-ui/number@1.1.3': resolution: {integrity: sha512-Road2bidD0uu/1BGDOWNdPI06g0lIRy6IF9GZcIrDK2KGItfor8IQwQa+yM2ERgHM1MmHxaxpTzk0/Jp42lNfA==} @@ -1409,15 +1201,116 @@ packages: react-redux: optional: true + '@rolldown/binding-android-arm-eabi@1.2.19': + resolution: {integrity: sha512-e+Ebe0WT+9tbXmNKPIiC8YrWAHYwug3m6i4p3rZGGulfZri1jtI4HslT+OZnFf/OIHowWF71DTlHwXBP2SiA7A==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [android] + + '@rolldown/binding-android-arm64@1.2.19': + resolution: {integrity: sha512-hOombrTJ+szt2ciEzS7oCA78lMPBgF5UMQWCJIyNfnrI7GLl8HYoFqCnpL2gcPOaXMqryGCU5ExdQKyDDcC+yA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [android] + + '@rolldown/binding-darwin-arm64@1.2.19': + resolution: {integrity: sha512-XoMA2pwCKGTQzUjPgtRwkedH4WmXhdIPKT6l6oOxd1PUbNodGI6DcBekgN7EC//+x3pfBYX/qL1gNmZAqivw5g==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [darwin] + + '@rolldown/binding-darwin-x64@1.2.19': + resolution: {integrity: sha512-zo8EsSSwMZCY/e+fRnGaX02YGgvJD0yvhNi/9hpGPA2MJ9ZF8dPCw75UGfpI6OpQ/myR/dIYmogRvqiZD0TrXg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [darwin] + + '@rolldown/binding-freebsd-x64@1.2.19': + resolution: {integrity: sha512-O8ISAOfI1nj7AuBPd30FSF47z7f7lzlk5poQVGgiikvQuGEBFYvW8ki+UEnT+YJPnNGjQzn304klt4O9FUE7mA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [freebsd] + + '@rolldown/binding-linux-arm-gnueabihf@1.2.19': + resolution: {integrity: sha512-/lYCba5NO0yq4S0jGMH8QTBtkvQxoXjoQWzF5BcWp9MjB9jxVRD1GQDNofkVjcOj30DWyhLIN/4Oe60JKzaONw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@rolldown/binding-linux-arm64-gnu@1.2.19': + resolution: {integrity: sha512-pm/apFMBnSbFb3O6nG5pHO1iqHhZrjGDFEjSm+ot9J17XXPvH9L90y5h+jgfHCE+Qdlsvy8qKEcU4VKxgjD+vA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-arm64-musl@1.2.19': + resolution: {integrity: sha512-K1SmQp3FFichn8oqrNIwvFoZ5wcvjC7goBzpaMNvLf9FZc+QB/QvLmnpJZgAAGHiD980tP8FZZnXk2K94rvlxg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@rolldown/binding-linux-ppc64-gnu@1.2.19': + resolution: {integrity: sha512-I0xwD57jP/3A7+5UPZin2w8Y7XHEmEM5zqpYZOcQ45MlNW6tUJUziymV3yRr7rL4vwyfEcRsRksC4a7Kc08p5Q==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-s390x-gnu@1.2.19': + resolution: {integrity: sha512-BrtEHT24SNXj9HiXqy+s/kXiSiQGt6EKCPUlRirAoIioVxKGnbXBUEkbZASAei7iZJB0/Ynm+0JP00Ipx7AnSw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-gnu@1.2.19': + resolution: {integrity: sha512-rm75/9DkHKeU2WnA8w4X94WGYgLlDCFCfkQC+4bguVJmC/jvDRv2B+2wLOYhyE0fVuv7//Ckk39OoOufyCu76Q==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-musl@1.2.19': + resolution: {integrity: sha512-irh/4+iYFM4GAzpluDErgjz89bj6NDtqqMAG/6O1LG38Ed3NpyebzCpcVNkFW8uhy+/3/BocUvnXDR33CXWe9A==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [musl] + + '@rolldown/binding-openharmony-arm64@1.2.19': + resolution: {integrity: sha512-+KWTWNoPt+CfSq94CiceWu3yPE+QzkaG+phPyz9G60tmZLwfQkcA4AeksafzvJAw4pvg1mcd5a1TkUqVv0s4JA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [openharmony] + + '@rolldown/binding-wasm32-wasi@1.2.19': + resolution: {integrity: sha512-7EH+skOsl5qpWnK0vzamgJFhOv1cwxQpsxm8tI883K9fur5c27p8q87fzEO6BbBPabA2/+s/zR63/pLc137iOg==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + cpu: [wasm32] + + '@rolldown/binding-win32-arm64-msvc@1.2.19': + resolution: {integrity: sha512-3Q1Yg1Q7tEvBWoZf5rFvG/GKZQPgwfru+p4wBajDfJFBs0SHCpL++dfTjW9gyAKd1T7ZpIYvdaUax7Pa/IhFVQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [win32] + + '@rolldown/binding-win32-x64-msvc@1.2.19': + resolution: {integrity: sha512-y/sqRRc6d7hECzOFc5n3LSeqctmIp9mMjY1Kq4s14uLPd/LZ4z7i1zrW6fMtp2mPeuQIC4e6ULMcwQzMomqQag==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [win32] + + '@rolldown/pluginutils@1.1.1': + resolution: {integrity: sha512-glFIJDvLNDtJhT9qrMFWLPbvS+skxgt4L0K8Ei2YtnhPysAJnsI7nyxSJxKj4ADeKX0OLjC4ntRkwpLOoS3rwA==} + '@standard-schema/spec@1.1.0': resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==} '@standard-schema/utils@0.3.0': resolution: {integrity: sha512-e7Mew686owMaPJVNNLs55PUvgz371nKgwsc4vxE49zsODpJEnxgxRo2y/OKrqueavXgZNMDVj3DdHFlaSAeU8g==} - '@swc/helpers@0.5.23': - resolution: {integrity: sha512-5lSsMOTXURePglDfvuAQUqkGek9Hg2kksOYay2m0+XR++b2NWYL/4sWyuvVBIs8oKnJaxkdi9whaL/sqN13afw==} - '@tailwindcss/node@4.3.4': resolution: {integrity: sha512-b7QK/QG04v3j04NbpG82XLCedRyulnkuwUDwRa9oK/ypnJIzMapz2Wg+0TltVczjUzDaJJHIa1+jj9aMUOFMTQ==} @@ -1506,8 +1399,10 @@ packages: resolution: {integrity: sha512-riqsRw2sLF7B1sNCCkTl3KYXEqvhTiABzZ/4oxxHfZ3c3Td60bCBfOrUuUGOiHagd3E7V+zG46c+XBDWZGFBcg==} engines: {node: '>= 20'} - '@tailwindcss/postcss@4.3.4': - resolution: {integrity: sha512-6O0QLY+1CseO8ivlYK2Y7IxNPaQ8D5ypxrV+ws34mbxknWH824J+gEWtJ0gyFiYAudmdEeXdF8kqwgXIaZRyHw==} + '@tailwindcss/vite@4.3.4': + resolution: {integrity: sha512-wGukGWb8SVuN7+FJvSS7M5eSJWDIWwVSvUvj1q41eTIhGPsS2DAgFWjA7YURJNwjHSgty59Hz8iMUiyO+YMHBQ==} + peerDependencies: + vite: ^5.2.0 || ^6 || ^7 || ^8 '@tanstack/react-store@0.11.2': resolution: {integrity: sha512-oj5O5DmiMWE+ih+SioX2ayC1kbK7d3fpLx0B75fPJr9nY3zU+hoW010yr64qXsY/9fyiLVE2bn5mGNV3owm8RQ==} @@ -1686,6 +1581,9 @@ packages: cpu: [x64] os: [win32] + '@tybys/wasm-util@0.10.5': + resolution: {integrity: sha512-dOGOPxlaNV+G046mZzN+9C0dAcQZeSKcXiVaM0TYy/LM4ttTmgSBDxYfovcYI8Em3+eAbiAYpvWLOv8+ZVRJKA==} + '@types/canvas-confetti@1.9.0': resolution: {integrity: sha512-aBGj/dULrimR1XDZLtG9JwxX1b4HPRF6CX9Yfwh3NvstZEm1ZL7RBnel4keCPSqs1ANRu1u2Aoz9R+VmtjYuTg==} @@ -1889,6 +1787,22 @@ packages: '@ungap/structured-clone@1.4.0': resolution: {integrity: sha512-1mEZtMKPM09vDmQt5y7YvmN2+DFTP7Tg0EWXdic8/C6VRnpb33e4ghisCIE3WZjsE2N8mf+QV1Zqh7ZFYLWInQ==} + '@vitejs/plugin-react@6.3.0': + resolution: {integrity: sha512-H9E955aVvD2F4zNHCw4eIZbIfF6xKldlh7MNu+hSU7xwQzh65lI/N+CJWqmfhi0PEjDXIt/H7T7J/4wU63KJiw==} + engines: {node: ^20.19.0 || >=22.12.0} + peerDependencies: + '@rolldown/plugin-babel': ^0.1.7 || ^0.2.0 || ^0.3.0 + babel-plugin-react-compiler: ^1.0.0 + oxc-transform-react: '>=0.152.0 <0.157.0' + vite: ^8.0.0 + peerDependenciesMeta: + '@rolldown/plugin-babel': + optional: true + babel-plugin-react-compiler: + optional: true + oxc-transform-react: + optional: true + ahooks@3.11.0: resolution: {integrity: sha512-mQML7DrxZo7xvxm145NTMowE9m75tflSayKjlwEMzwQSRFguweNCdCSIq88aQ4RRfVMugBrH8AtGresJwqMy5A==} peerDependencies: @@ -1906,14 +1820,6 @@ packages: bail@2.0.2: resolution: {integrity: sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==} - baseline-browser-mapping@2.11.35: - resolution: {integrity: sha512-GNk8KX52CHqeNKGk8+7tZnQab/2k1t/BgrUHPKNdijzpEhF1saPQZHVKb6m5loSAxB39gyrTYw34Qf9CQ3u1qQ==} - engines: {node: '>=6.0.0'} - hasBin: true - - caniuse-lite@1.0.30001822: - resolution: {integrity: sha512-Y3fvWQWzc69dlCyr07tuNrEhotv+db5FpMSPD3slZnkPKwRNOKwFBz2dP966XUmWMXLTOt+YShkFoQoom3U7hg==} - canvas-confetti@1.9.4: resolution: {integrity: sha512-yxQbJkAVrFXWNbTUjPqjF7G+g6pDotOUHGbkZq2NELZUMDpiJ85rIEazVb8GTaAptNW2miJAXbs1BtioA251Pw==} @@ -1939,9 +1845,6 @@ packages: class-variance-authority@0.7.1: resolution: {integrity: sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==} - client-only@0.0.1: - resolution: {integrity: sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==} - clsx@2.1.1: resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==} engines: {node: '>=6'} @@ -2057,8 +1960,8 @@ packages: devlop@1.1.0: resolution: {integrity: sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==} - enhanced-resolve@5.26.1: - resolution: {integrity: sha512-PPnnSJq3azKOIewXR/uppBV/6h98dprBJ/WaQ9Qgj10xX1lJLNfg+XShpbsrSqcDSy2yYYyhfXM1wWhftqgyzw==} + enhanced-resolve@5.27.0: + resolution: {integrity: sha512-Do6BB2xzlcc/odFg+XEYyneAx4T/WfywO71yw9ePS2tVfRsf7JVR4mUeELadIeHzixkzbG5DpluiEFPi2WGfYQ==} engines: {node: '>=10.13.0'} es-toolkit@1.53.1: @@ -2077,6 +1980,15 @@ packages: extend@3.0.2: resolution: {integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==} + fdir@6.5.0: + resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} + engines: {node: '>=12.0.0'} + peerDependencies: + picomatch: ^3 || ^4 + peerDependenciesMeta: + picomatch: + optional: true + flag-icons@7.6.0: resolution: {integrity: sha512-hir/PsXwr0EESyizKrXJzmkzpLIMf+1vlNKLqAfvdh+bsU94a7LYWTiubkHKqptGoCPzOUGcm6c4PfC9/BaGSQ==} @@ -2094,17 +2006,17 @@ packages: remix: optional: true - geist@1.9.1: - resolution: {integrity: sha512-mkbyVjMJoNf6xz76NLeKAFwKE19BweHfFefA++wd+M9qiCX2Zncq3M96bdDwOsy4wurDQ594AKwtx+HILX+WBg==} - peerDependencies: - next: '>=13.2.0' + fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] get-nonce@1.0.1: resolution: {integrity: sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==} engines: {node: '>=6'} - graceful-fs@4.2.11: - resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} + graceful-fs@4.2.12: + resolution: {integrity: sha512-iuyGF2E4oafQfPsRrG2wtY2ILupMhvtdrhzrxB+0VcjsPpSPttpfYdjnGFGsTi5MaJFjI1jOKHPQ6UTbTj9TAw==} has-flag@4.0.0: resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} @@ -2435,33 +2347,6 @@ packages: engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true - next-themes@0.4.6: - resolution: {integrity: sha512-pZvgD5L0IEvX5/9GWyHMf3m8BKiVQwsCMHfoFosXtXBMnaS0ZnIJ9ST4b4NqLVKDEm8QBxoNNGNaBv2JNF6XNA==} - peerDependencies: - react: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc - react-dom: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc - - next@16.4.5: - resolution: {integrity: sha512-rmdfsWosjTUO+6R0S3KokoIk6Kj0sWDRTe86tZHdqaWH/oXq/udX3/4xb+YQi7aWbyEFoglDU54kaifLCdXbBw==} - engines: {node: '>=20.9.0'} - hasBin: true - peerDependencies: - '@opentelemetry/api': ^1.1.0 - '@playwright/test': ^1.51.1 - babel-plugin-react-compiler: '*' - react: ^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0 - react-dom: ^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0 - sass: ^1.3.0 - peerDependenciesMeta: - '@opentelemetry/api': - optional: true - '@playwright/test': - optional: true - babel-plugin-react-compiler: - optional: true - sass: - optional: true - parse-entities@4.0.2: resolution: {integrity: sha512-GG2AQYWoLgL877gQIKeRPGO1xF9+eG1ujIb5soS5gPvLQ1y2o8FL90w2QWNdf9I361Mpp7726c+lj3U0qK1uGw==} @@ -2477,10 +2362,6 @@ packages: engines: {node: '>=20'} hasBin: true - postcss@8.5.23: - resolution: {integrity: sha512-g50586zr4bZmwFiTlflMu8E0bDTb5I5gertgwAKmsdUlTQIhZtunzUlD1WSzwcVWPoAVpsrA6vlfCD7oXvRwgg==} - engines: {node: ^10 || ^12 || >=14} - postcss@8.5.32: resolution: {integrity: sha512-LJlKCCAUFKOuZxipUdYw1NzIITEsPcgyOG9LkvRJvuKj/bRzbuRY0ARXvL0pWGpsZvn8jku+LMep2eU0seHp8g==} engines: {node: ^10 || ^12 || >=14} @@ -2619,6 +2500,11 @@ packages: resize-observer-polyfill@1.5.1: resolution: {integrity: sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg==} + rolldown@1.2.19: + resolution: {integrity: sha512-QIiV1J9d0pzN4jeeTH4sjPy0AZ6cAy2cG0ExeoE1+U8Rvj+hR3gYkokx0YbeUNGlZqiQJJ2utcETe0oKXwzsuA==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + scheduler@0.28.0: resolution: {integrity: sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==} @@ -2626,20 +2512,6 @@ packages: resolution: {integrity: sha512-9BakfsO2aUQN2K9Fdbj87RJIEZ82Q9IGim7FqM5OsebfoFC6ZHXgDq/KvniuLTPdeM8wY2o6Dj3WQ7KeQCj3cA==} engines: {node: '>=0.10.0'} - semver@7.8.6: - resolution: {integrity: sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==} - engines: {node: '>=10'} - hasBin: true - - sharp@0.35.5: - resolution: {integrity: sha512-Ywn4OnzGukp7CDMrp08RQ50YKmuwG47brZgIVPTvBaaAfQlRlygrRqSrxdCiL9M+LlzLBiJ68IR1QqvzHyjC7g==} - engines: {node: '>=20.9.0'} - peerDependencies: - '@types/node': '*' - peerDependenciesMeta: - '@types/node': - optional: true - sonner@2.0.8: resolution: {integrity: sha512-UM/ByIoFra8yzV75n1o0Puu0bw5U/9UNnDacrJNspekBewIfsQ3D6ez1nvlWpt7aTsO6rujQtifBpycwIivqlg==} peerDependencies: @@ -2680,19 +2552,6 @@ packages: style-to-object@2.0.2: resolution: {integrity: sha512-QmbXPUylqU80HAgTOJeEOdbA40W9KtxmjMhQy+tq+b8F2aoh3aQLuy82hh2jm2qsC9hR9eI0+eQidTMydKcqRA==} - styled-jsx@5.1.6: - resolution: {integrity: sha512-qSVyDTeMotdvQYoHWLNGwRFJHC+i+ZvdBRYosOFgC+Wg1vx4frN2/RG/NA7SYqqvKNLf39P2LSRA2pu6n0XYZA==} - engines: {node: '>= 12.0.0'} - peerDependencies: - '@babel/core': '*' - babel-plugin-macros: '*' - react: '>= 16.8.0 || 17.x.x || ^18.0.0-0 || ^19.0.0-0' - peerDependenciesMeta: - '@babel/core': - optional: true - babel-plugin-macros: - optional: true - supports-color@7.2.0: resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} engines: {node: '>=8'} @@ -2703,8 +2562,8 @@ packages: tailwindcss@4.3.4: resolution: {integrity: sha512-PCJZTFFdG+sL3gvnP1Do9o6GbkvH2q0p04xSs3f7cSvmAeK+sttG+/7ncK1fdRwKFfC7n+wDDJaOMBSefkI9ow==} - tapable@2.3.3: - resolution: {integrity: sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==} + tapable@2.3.4: + resolution: {integrity: sha512-NHFiWnAbMJxNNpBwiO7jJVGDuqMxT9/oV8v57RR+fgBQShkJil5inGD8/xWy0hjLyHQyX1tu27QANhlz3KBqCg==} engines: {node: '>=6'} tauri-plugin-macos-permissions-api@2.3.0: @@ -2717,6 +2576,10 @@ packages: resolution: {integrity: sha512-GCvB3aoys96IuDFBMcTB46JOR6mdMtAToqwiW8JlWhsoh1mhHi/xn9ss/Dg7N555GiJyEt2qzoG/NHCwM6h1EA==} engines: {node: '>=18'} + tinyglobby@0.2.17: + resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==} + engines: {node: '>=12.0.0'} + trim-lines@3.0.1: resolution: {integrity: sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==} @@ -2803,6 +2666,49 @@ packages: victory-vendor@37.4.1: resolution: {integrity: sha512-geV4p2GVfVM9lgm9ZRS3pvsbAPS+BUGhM9W9nPzPHTKi+/+KjNrFXdgP6KkG+XspNZuvcXmchcrtklfuQ4gniw==} + vite@8.3.8: + resolution: {integrity: sha512-LzOn3h9rG/0vhLdXrV4yJ4QFA9eEoqCl+Yx+kGJd7aB9w6nfNgVHKSYwLPZUHrz4ZGa+t+kXjV9itvcHDLQouA==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + peerDependencies: + '@types/node': ^20.19.0 || >=22.12.0 + '@vitejs/devtools': ^0.7.1 || ^0.8.0 + esbuild: ^0.27.0 || ^0.28.0 + jiti: '>=1.21.0' + less: ^4.0.0 + sass: ^1.70.0 + sass-embedded: ^1.70.0 + stylus: '>=0.54.8' + sugarss: ^5.0.0 + terser: ^5.16.0 + tsx: ^4.8.1 + yaml: ^2.4.2 + peerDependenciesMeta: + '@types/node': + optional: true + '@vitejs/devtools': + optional: true + esbuild: + optional: true + jiti: + optional: true + less: + optional: true + sass: + optional: true + sass-embedded: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + tsx: + optional: true + yaml: + optional: true + yaml@2.9.1: resolution: {integrity: sha512-3NxN8+78OdzbT7C/WjGsyfPAtJaN3FNDsWxv7Y7mcDsT/oOmgW8BpyQQFFBnvZE3j9Y2Sdz1ULFLezL7Eb2yFw==} engines: {node: '>= 14.6'} @@ -2813,8 +2719,6 @@ packages: snapshots: - '@alloc/quick-lru@5.3.0': {} - '@babel/runtime@7.29.13': {} '@biomejs/biome@2.6.5': @@ -2860,7 +2764,18 @@ snapshots: '@biomejs/cli-win32-x64@2.6.5': optional: true - '@emnapi/runtime@1.11.3': + '@emnapi/core@2.0.0-beta.2': + dependencies: + '@emnapi/wasi-threads': 2.2.0 + tslib: 2.9.1 + optional: true + + '@emnapi/runtime@2.0.0-beta.2': + dependencies: + tslib: 2.9.1 + optional: true + + '@emnapi/wasi-threads@2.2.0': dependencies: tslib: 2.9.1 optional: true @@ -2882,113 +2797,6 @@ snapshots: '@floating-ui/utils@0.2.12': {} - '@img/colour@1.1.0': - optional: true - - '@img/sharp-darwin-arm64@0.35.5': - optionalDependencies: - '@img/sharp-libvips-darwin-arm64': 1.3.4 - optional: true - - '@img/sharp-darwin-x64@0.35.5': - optionalDependencies: - '@img/sharp-libvips-darwin-x64': 1.3.4 - optional: true - - '@img/sharp-freebsd-wasm32@0.35.5': - dependencies: - '@img/sharp-wasm32': 0.35.5 - optional: true - - '@img/sharp-libvips-darwin-arm64@1.3.4': - optional: true - - '@img/sharp-libvips-darwin-x64@1.3.4': - optional: true - - '@img/sharp-libvips-linux-arm64@1.3.4': - optional: true - - '@img/sharp-libvips-linux-arm@1.3.4': - optional: true - - '@img/sharp-libvips-linux-ppc64@1.3.4': - optional: true - - '@img/sharp-libvips-linux-riscv64@1.3.4': - optional: true - - '@img/sharp-libvips-linux-s390x@1.3.4': - optional: true - - '@img/sharp-libvips-linux-x64@1.3.4': - optional: true - - '@img/sharp-libvips-linuxmusl-arm64@1.3.4': - optional: true - - '@img/sharp-libvips-linuxmusl-x64@1.3.4': - optional: true - - '@img/sharp-linux-arm64@0.35.5': - optionalDependencies: - '@img/sharp-libvips-linux-arm64': 1.3.4 - optional: true - - '@img/sharp-linux-arm@0.35.5': - optionalDependencies: - '@img/sharp-libvips-linux-arm': 1.3.4 - optional: true - - '@img/sharp-linux-ppc64@0.35.5': - optionalDependencies: - '@img/sharp-libvips-linux-ppc64': 1.3.4 - optional: true - - '@img/sharp-linux-riscv64@0.35.5': - optionalDependencies: - '@img/sharp-libvips-linux-riscv64': 1.3.4 - optional: true - - '@img/sharp-linux-s390x@0.35.5': - optionalDependencies: - '@img/sharp-libvips-linux-s390x': 1.3.4 - optional: true - - '@img/sharp-linux-x64@0.35.5': - optionalDependencies: - '@img/sharp-libvips-linux-x64': 1.3.4 - optional: true - - '@img/sharp-linuxmusl-arm64@0.35.5': - optionalDependencies: - '@img/sharp-libvips-linuxmusl-arm64': 1.3.4 - optional: true - - '@img/sharp-linuxmusl-x64@0.35.5': - optionalDependencies: - '@img/sharp-libvips-linuxmusl-x64': 1.3.4 - optional: true - - '@img/sharp-wasm32@0.35.5': - dependencies: - '@emnapi/runtime': 1.11.3 - optional: true - - '@img/sharp-webcontainers-wasm32@0.35.5': - dependencies: - '@img/sharp-wasm32': 0.35.5 - optional: true - - '@img/sharp-win32-arm64@0.35.5': - optional: true - - '@img/sharp-win32-ia32@0.35.5': - optional: true - - '@img/sharp-win32-x64@0.35.5': - optional: true - '@jridgewell/gen-mapping@0.3.13': dependencies: '@jridgewell/sourcemap-codec': 1.6.0 @@ -2999,40 +2807,23 @@ snapshots: '@jridgewell/gen-mapping': 0.3.13 '@jridgewell/trace-mapping': 0.3.31 - '@jridgewell/resolve-uri@3.1.2': {} + '@jridgewell/resolve-uri@3.1.3': {} '@jridgewell/sourcemap-codec@1.6.0': {} '@jridgewell/trace-mapping@0.3.31': dependencies: - '@jridgewell/resolve-uri': 3.1.2 + '@jridgewell/resolve-uri': 3.1.3 '@jridgewell/sourcemap-codec': 1.6.0 - '@next/env@16.4.5': {} - - '@next/swc-darwin-arm64@16.4.5': + '@napi-rs/wasm-runtime@1.2.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2)': + dependencies: + '@emnapi/core': 2.0.0-beta.2 + '@emnapi/runtime': 2.0.0-beta.2 + '@tybys/wasm-util': 0.10.5 optional: true - '@next/swc-darwin-x64@16.4.5': - optional: true - - '@next/swc-linux-arm64-gnu@16.4.5': - optional: true - - '@next/swc-linux-arm64-musl@16.4.5': - optional: true - - '@next/swc-linux-x64-gnu@16.4.5': - optional: true - - '@next/swc-linux-x64-musl@16.4.5': - optional: true - - '@next/swc-win32-arm64-msvc@16.4.5': - optional: true - - '@next/swc-win32-x64-msvc@16.4.5': - optional: true + '@oxc-project/types@0.156.0': {} '@radix-ui/number@1.1.3': {} @@ -3799,18 +3590,68 @@ snapshots: react: 19.3.1 react-redux: 9.3.1(@types/react@19.3.0)(react@19.3.1)(redux@5.0.1) + '@rolldown/binding-android-arm-eabi@1.2.19': + optional: true + + '@rolldown/binding-android-arm64@1.2.19': + optional: true + + '@rolldown/binding-darwin-arm64@1.2.19': + optional: true + + '@rolldown/binding-darwin-x64@1.2.19': + optional: true + + '@rolldown/binding-freebsd-x64@1.2.19': + optional: true + + '@rolldown/binding-linux-arm-gnueabihf@1.2.19': + optional: true + + '@rolldown/binding-linux-arm64-gnu@1.2.19': + optional: true + + '@rolldown/binding-linux-arm64-musl@1.2.19': + optional: true + + '@rolldown/binding-linux-ppc64-gnu@1.2.19': + optional: true + + '@rolldown/binding-linux-s390x-gnu@1.2.19': + optional: true + + '@rolldown/binding-linux-x64-gnu@1.2.19': + optional: true + + '@rolldown/binding-linux-x64-musl@1.2.19': + optional: true + + '@rolldown/binding-openharmony-arm64@1.2.19': + optional: true + + '@rolldown/binding-wasm32-wasi@1.2.19': + dependencies: + '@emnapi/core': 2.0.0-beta.2 + '@emnapi/runtime': 2.0.0-beta.2 + '@napi-rs/wasm-runtime': 1.2.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2) + optional: true + + '@rolldown/binding-win32-arm64-msvc@1.2.19': + optional: true + + '@rolldown/binding-win32-x64-msvc@1.2.19': + optional: true + + '@rolldown/pluginutils@1.1.1': {} + '@standard-schema/spec@1.1.0': {} '@standard-schema/utils@0.3.0': {} - '@swc/helpers@0.5.23': - dependencies: - tslib: 2.9.1 - '@tailwindcss/node@4.3.4': dependencies: '@jridgewell/remapping': 2.3.5 - enhanced-resolve: 5.26.1 + enhanced-resolve: 5.27.0 jiti: 2.7.0 lightningcss: 1.33.0 magic-string: 1.4.5 @@ -3868,13 +3709,12 @@ snapshots: '@tailwindcss/oxide-win32-arm64-msvc': 4.3.4 '@tailwindcss/oxide-win32-x64-msvc': 4.3.4 - '@tailwindcss/postcss@4.3.4': + '@tailwindcss/vite@4.3.4(vite@8.3.8(@types/node@26.6.6)(jiti@2.7.0)(yaml@2.9.1))': dependencies: - '@alloc/quick-lru': 5.3.0 '@tailwindcss/node': 4.3.4 '@tailwindcss/oxide': 4.3.4 - postcss: 8.5.32 tailwindcss: 4.3.4 + vite: 8.3.8(@types/node@26.6.6)(jiti@2.7.0)(yaml@2.9.1) '@tanstack/react-store@0.11.2(react-dom@19.3.1(react@19.3.1))(react@19.3.1)': dependencies: @@ -4007,6 +3847,11 @@ snapshots: '@tsrs/win32-x64@0.22.0-ts7.1.0-beta': optional: true + '@tybys/wasm-util@0.10.5': + dependencies: + tslib: 2.9.1 + optional: true + '@types/canvas-confetti@1.9.0': {} '@types/color-convert@2.0.4': @@ -4145,6 +3990,11 @@ snapshots: '@ungap/structured-clone@1.4.0': {} + '@vitejs/plugin-react@6.3.0(vite@8.3.8(@types/node@26.6.6)(jiti@2.7.0)(yaml@2.9.1))': + dependencies: + '@rolldown/pluginutils': 1.1.1 + vite: 8.3.8(@types/node@26.6.6)(jiti@2.7.0)(yaml@2.9.1) + ahooks@3.11.0(react-dom@19.3.1(react@19.3.1))(react@19.3.1): dependencies: '@babel/runtime': 7.29.13 @@ -4168,10 +4018,6 @@ snapshots: bail@2.0.2: {} - baseline-browser-mapping@2.11.35: {} - - caniuse-lite@1.0.30001822: {} - canvas-confetti@1.9.4: {} ccount@2.0.1: {} @@ -4193,8 +4039,6 @@ snapshots: dependencies: clsx: 2.1.1 - client-only@0.0.1: {} - clsx@2.1.1: {} cmdk@1.1.1(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.1(react@19.3.1))(react@19.3.1): @@ -4296,10 +4140,10 @@ snapshots: dependencies: dequal: 2.0.3 - enhanced-resolve@5.26.1: + enhanced-resolve@5.27.0: dependencies: - graceful-fs: 4.2.11 - tapable: 2.3.3 + graceful-fs: 4.2.12 + tapable: 2.3.4 es-toolkit@1.53.1: {} @@ -4311,6 +4155,10 @@ snapshots: extend@3.0.2: {} + fdir@6.5.0(picomatch@4.0.7): + optionalDependencies: + picomatch: 4.0.7 + flag-icons@7.6.0: {} framer-motion@14.9.1(react-dom@19.3.1(react@19.3.1))(react@19.3.1): @@ -4322,13 +4170,12 @@ snapshots: react: 19.3.1 react-dom: 19.3.1(react@19.3.1) - geist@1.9.1(next@16.4.5(@types/node@26.6.6)(react-dom@19.3.1(react@19.3.1))(react@19.3.1)): - dependencies: - next: 16.4.5(@types/node@26.6.6)(react-dom@19.3.1(react@19.3.1))(react@19.3.1) + fsevents@2.3.3: + optional: true get-nonce@1.0.1: {} - graceful-fs@4.2.11: {} + graceful-fs@4.2.12: {} has-flag@4.0.0: {} @@ -4840,36 +4687,6 @@ snapshots: nanoid@3.3.20: {} - next-themes@0.4.6(react-dom@19.3.1(react@19.3.1))(react@19.3.1): - dependencies: - react: 19.3.1 - react-dom: 19.3.1(react@19.3.1) - - next@16.4.5(@types/node@26.6.6)(react-dom@19.3.1(react@19.3.1))(react@19.3.1): - dependencies: - '@next/env': 16.4.5 - '@swc/helpers': 0.5.23 - baseline-browser-mapping: 2.11.35 - caniuse-lite: 1.0.30001822 - postcss: 8.5.23 - react: 19.3.1 - react-dom: 19.3.1(react@19.3.1) - styled-jsx: 5.1.6(react@19.3.1) - optionalDependencies: - '@next/swc-darwin-arm64': 16.4.5 - '@next/swc-darwin-x64': 16.4.5 - '@next/swc-linux-arm64-gnu': 16.4.5 - '@next/swc-linux-arm64-musl': 16.4.5 - '@next/swc-linux-x64-gnu': 16.4.5 - '@next/swc-linux-x64-musl': 16.4.5 - '@next/swc-win32-arm64-msvc': 16.4.5 - '@next/swc-win32-x64-msvc': 16.4.5 - sharp: 0.35.5(@types/node@26.6.6) - transitivePeerDependencies: - - '@babel/core' - - '@types/node' - - babel-plugin-macros - parse-entities@4.0.2: dependencies: '@types/unist': 2.0.11 @@ -4886,12 +4703,6 @@ snapshots: playwright-core@1.65.0: {} - postcss@8.5.23: - dependencies: - nanoid: 3.3.20 - picocolors: 1.1.1 - source-map-js: 1.2.2 - postcss@8.5.32: dependencies: nanoid: 3.3.20 @@ -5107,47 +4918,32 @@ snapshots: resize-observer-polyfill@1.5.1: {} + rolldown@1.2.19: + dependencies: + '@oxc-project/types': 0.156.0 + '@rolldown/pluginutils': 1.1.1 + optionalDependencies: + '@rolldown/binding-android-arm-eabi': 1.2.19 + '@rolldown/binding-android-arm64': 1.2.19 + '@rolldown/binding-darwin-arm64': 1.2.19 + '@rolldown/binding-darwin-x64': 1.2.19 + '@rolldown/binding-freebsd-x64': 1.2.19 + '@rolldown/binding-linux-arm-gnueabihf': 1.2.19 + '@rolldown/binding-linux-arm64-gnu': 1.2.19 + '@rolldown/binding-linux-arm64-musl': 1.2.19 + '@rolldown/binding-linux-ppc64-gnu': 1.2.19 + '@rolldown/binding-linux-s390x-gnu': 1.2.19 + '@rolldown/binding-linux-x64-gnu': 1.2.19 + '@rolldown/binding-linux-x64-musl': 1.2.19 + '@rolldown/binding-openharmony-arm64': 1.2.19 + '@rolldown/binding-wasm32-wasi': 1.2.19 + '@rolldown/binding-win32-arm64-msvc': 1.2.19 + '@rolldown/binding-win32-x64-msvc': 1.2.19 + scheduler@0.28.0: {} screenfull@5.2.0: {} - semver@7.8.6: - optional: true - - sharp@0.35.5(@types/node@26.6.6): - dependencies: - '@img/colour': 1.1.0 - detect-libc: 2.1.2 - semver: 7.8.6 - optionalDependencies: - '@img/sharp-darwin-arm64': 0.35.5 - '@img/sharp-darwin-x64': 0.35.5 - '@img/sharp-freebsd-wasm32': 0.35.5 - '@img/sharp-libvips-darwin-arm64': 1.3.4 - '@img/sharp-libvips-darwin-x64': 1.3.4 - '@img/sharp-libvips-linux-arm': 1.3.4 - '@img/sharp-libvips-linux-arm64': 1.3.4 - '@img/sharp-libvips-linux-ppc64': 1.3.4 - '@img/sharp-libvips-linux-riscv64': 1.3.4 - '@img/sharp-libvips-linux-s390x': 1.3.4 - '@img/sharp-libvips-linux-x64': 1.3.4 - '@img/sharp-libvips-linuxmusl-arm64': 1.3.4 - '@img/sharp-libvips-linuxmusl-x64': 1.3.4 - '@img/sharp-linux-arm': 0.35.5 - '@img/sharp-linux-arm64': 0.35.5 - '@img/sharp-linux-ppc64': 0.35.5 - '@img/sharp-linux-riscv64': 0.35.5 - '@img/sharp-linux-s390x': 0.35.5 - '@img/sharp-linux-x64': 0.35.5 - '@img/sharp-linuxmusl-arm64': 0.35.5 - '@img/sharp-linuxmusl-x64': 0.35.5 - '@img/sharp-webcontainers-wasm32': 0.35.5 - '@img/sharp-win32-arm64': 0.35.5 - '@img/sharp-win32-ia32': 0.35.5 - '@img/sharp-win32-x64': 0.35.5 - '@types/node': 26.6.6 - optional: true - sonner@2.0.8(@types/react@19.3.0)(react-dom@19.3.1(react@19.3.1))(react@19.3.1): dependencies: react: 19.3.1 @@ -5181,11 +4977,6 @@ snapshots: dependencies: inline-style-parser: 0.2.9 - styled-jsx@5.1.6(react@19.3.1): - dependencies: - client-only: 0.0.1 - react: 19.3.1 - supports-color@7.2.0: dependencies: has-flag: 4.0.0 @@ -5194,7 +4985,7 @@ snapshots: tailwindcss@4.3.4: {} - tapable@2.3.3: {} + tapable@2.3.4: {} tauri-plugin-macos-permissions-api@2.3.0: dependencies: @@ -5204,6 +4995,11 @@ snapshots: tinyexec@1.3.1: {} + tinyglobby@0.2.17: + dependencies: + fdir: 6.5.0(picomatch@4.0.7) + picomatch: 4.0.7 + trim-lines@3.0.1: {} trough@2.2.0: {} @@ -5339,6 +5135,19 @@ snapshots: d3-time: 3.1.1 d3-timer: 3.0.2 + vite@8.3.8(@types/node@26.6.6)(jiti@2.7.0)(yaml@2.9.1): + dependencies: + lightningcss: 1.33.0 + picomatch: 4.0.7 + postcss: 8.5.32 + rolldown: 1.2.19 + tinyglobby: 0.2.17 + optionalDependencies: + '@types/node': 26.6.6 + fsevents: 2.3.3 + jiti: 2.7.0 + yaml: 2.9.1 + yaml@2.9.1: optional: true diff --git a/postcss.config.mjs b/postcss.config.mjs deleted file mode 100644 index c7bcb4b1..00000000 --- a/postcss.config.mjs +++ /dev/null @@ -1,5 +0,0 @@ -const config = { - plugins: ["@tailwindcss/postcss"], -}; - -export default config; diff --git a/public/favicon.ico b/public/favicon.ico deleted file mode 100644 index 718d6fea..00000000 Binary files a/public/favicon.ico and /dev/null differ diff --git a/public/file.svg b/public/file.svg deleted file mode 100644 index 004145cd..00000000 --- a/public/file.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/globe.svg b/public/globe.svg deleted file mode 100644 index 567f17b0..00000000 --- a/public/globe.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/next.svg b/public/next.svg deleted file mode 100644 index 5174b28c..00000000 --- a/public/next.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/tauri-nextjs-template-2_screenshot.png b/public/tauri-nextjs-template-2_screenshot.png deleted file mode 100644 index 37f8b037..00000000 Binary files a/public/tauri-nextjs-template-2_screenshot.png and /dev/null differ diff --git a/public/vercel.svg b/public/vercel.svg deleted file mode 100644 index 77053960..00000000 --- a/public/vercel.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/window.svg b/public/window.svg deleted file mode 100644 index b2b2a44f..00000000 --- a/public/window.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/scripts/clips/record.mjs b/scripts/clips/record.mjs index 2e508952..066124b0 100644 --- a/scripts/clips/record.mjs +++ b/scripts/clips/record.mjs @@ -73,9 +73,9 @@ function build() { "package.json", "pnpm-lock.yaml", "pnpm-workspace.yaml", - "next.config.ts", + "index.html", + "vite.config.ts", "tsconfig.json", - "postcss.config.mjs", ]; if (ref) { const tar = execFileSync("git", ["archive", ref, "--", ...paths], { @@ -119,9 +119,8 @@ function build() { stdio: ["ignore", "ignore", "inherit"], }, ); - run(path.join(app, "node_modules/.bin/next"), ["build"], { + run(path.join(app, "node_modules/.bin/vite"), ["build"], { cwd: app, - env: { ...process.env, NEXT_TELEMETRY_DISABLED: "1" }, stdio: ["ignore", "ignore", "inherit"], }); return path.join(app, "dist"); diff --git a/scripts/generate-licenses.mjs b/scripts/generate-licenses.mjs index f84b5151..73784ff4 100644 --- a/scripts/generate-licenses.mjs +++ b/scripts/generate-licenses.mjs @@ -31,6 +31,11 @@ export const MANUAL_LICENSES = [ name: "Xray-core", license: "MPL-2.0", }, + // Bundled from src/assets/fonts, not a package. + { + name: "Geist", + license: "OFL-1.1", + }, ]; const LEGACY_LICENSE_EXPRESSIONS = new Map([ @@ -40,8 +45,6 @@ const LEGACY_LICENSE_EXPRESSIONS = new Map([ ["MIT/Apache-2.0", "Apache-2.0 OR MIT"], ["MIT OR Apache-2.0", "Apache-2.0 OR MIT"], ["Unlicense/MIT", "MIT OR Unlicense"], - // The bundled Geist fonts name their license in words. - ["SIL OPEN FONT LICENSE", "OFL-1.1"], ]); const HOST_ONLY_PNPM_NATIVE_PREFIXES = [ diff --git a/scripts/generate-licenses.test.mjs b/scripts/generate-licenses.test.mjs index 4464fb0c..bbd2c20b 100644 --- a/scripts/generate-licenses.test.mjs +++ b/scripts/generate-licenses.test.mjs @@ -14,7 +14,6 @@ test("normalizes legacy dual-license metadata into SPDX expressions", () => { normalizeLicenseExpression("MIT/Apache-2.0"), "Apache-2.0 OR MIT", ); - assert.equal(normalizeLicenseExpression("SIL OPEN FONT LICENSE"), "OFL-1.1"); assert.equal( normalizeLicenseExpression("Apache-2.0 OR MIT"), "Apache-2.0 OR MIT", @@ -155,6 +154,11 @@ test("generated inventory includes the bundled sidecar and Tauri opener", async (entry) => entry.name === "Xray-core" && entry.license === "MPL-2.0", ), ); + assert.ok( + inventory.some( + (entry) => entry.name === "Geist" && entry.license === "OFL-1.1", + ), + ); assert.ok( inventory.some( (entry) => diff --git a/src/app/global-error.tsx b/src/app/global-error.tsx deleted file mode 100644 index 3c9de621..00000000 --- a/src/app/global-error.tsx +++ /dev/null @@ -1,21 +0,0 @@ -"use client"; - -import "@/i18n"; -import "@/styles/globals.css"; -import { useEffect } from "react"; -import { ErrorScreen } from "@/components/error-boundary"; -import { logRenderError } from "@/lib/logger"; - -/** The root layout itself failed: the providers are gone, so it stands alone. */ -export default function GlobalError({ error }: { error: Error }) { - useEffect(() => { - logRenderError(error); - }, [error]); - return ( - - - - - - ); -} diff --git a/src/app/layout.tsx b/src/app/layout.tsx deleted file mode 100644 index 48e1a07b..00000000 --- a/src/app/layout.tsx +++ /dev/null @@ -1,27 +0,0 @@ -// Bundled with the app: the build and the app never fetch fonts from a CDN. -import { GeistMono } from "geist/font/mono"; -import { GeistSans } from "geist/font/sans"; -import "@/styles/globals.css"; -import "flag-icons/css/flag-icons.min.css"; -import { ClientProviders } from "@/components/client-providers"; -import { ErrorBoundary } from "@/components/error-boundary"; - -export default function RootLayout({ - children, -}: Readonly<{ - children: React.ReactNode; -}>) { - return ( - - - - {children} - - - - ); -} diff --git a/src/app/page.tsx b/src/app/page.tsx index 2c26ccbe..e0e83955 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,5 +1,3 @@ -"use client"; - import { invoke } from "@tauri-apps/api/core"; import { listen } from "@tauri-apps/api/event"; import { getCurrent } from "@tauri-apps/plugin-deep-link"; diff --git a/src/assets/fonts/Geist-Variable.woff2 b/src/assets/fonts/Geist-Variable.woff2 new file mode 100644 index 00000000..cf843015 Binary files /dev/null and b/src/assets/fonts/Geist-Variable.woff2 differ diff --git a/src/assets/fonts/GeistMono-Variable.woff2 b/src/assets/fonts/GeistMono-Variable.woff2 new file mode 100644 index 00000000..5fdb82cf Binary files /dev/null and b/src/assets/fonts/GeistMono-Variable.woff2 differ diff --git a/src/assets/fonts/OFL.txt b/src/assets/fonts/OFL.txt new file mode 100644 index 00000000..8d003fec --- /dev/null +++ b/src/assets/fonts/OFL.txt @@ -0,0 +1,92 @@ +Copyright (c) 2023 Vercel, in collaboration with basement.studio + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION AND CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/src/components/about-dialog.tsx b/src/components/about-dialog.tsx index 7db50e0d..6e8e9608 100644 --- a/src/components/about-dialog.tsx +++ b/src/components/about-dialog.tsx @@ -1,5 +1,3 @@ -"use client"; - import { invoke } from "@tauri-apps/api/core"; import { openUrl } from "@tauri-apps/plugin-opener"; import { useReducedMotion } from "motion/react"; diff --git a/src/components/account-page.tsx b/src/components/account-page.tsx index 50c769f3..9affb479 100644 --- a/src/components/account-page.tsx +++ b/src/components/account-page.tsx @@ -1,5 +1,3 @@ -"use client"; - import { invoke } from "@tauri-apps/api/core"; import { openUrl } from "@tauri-apps/plugin-opener"; import { type ReactNode, useCallback, useEffect, useState } from "react"; diff --git a/src/components/account-sync-server.tsx b/src/components/account-sync-server.tsx index 744e6eae..3d55012d 100644 --- a/src/components/account-sync-server.tsx +++ b/src/components/account-sync-server.tsx @@ -1,5 +1,3 @@ -"use client"; - import { invoke } from "@tauri-apps/api/core"; import { useCallback, useEffect, useId, useState } from "react"; import { useTranslation } from "react-i18next"; diff --git a/src/components/agent-activity.tsx b/src/components/agent-activity.tsx index 11b2be8b..ef73ada7 100644 --- a/src/components/agent-activity.tsx +++ b/src/components/agent-activity.tsx @@ -1,5 +1,3 @@ -"use client"; - import { useVirtualizer } from "@tanstack/react-virtual"; import { useId, useMemo, useRef, useState } from "react"; import { useTranslation } from "react-i18next"; diff --git a/src/components/agent-chat/chat-turn.tsx b/src/components/agent-chat/chat-turn.tsx index b9bcf785..f82e37d9 100644 --- a/src/components/agent-chat/chat-turn.tsx +++ b/src/components/agent-chat/chat-turn.tsx @@ -1,5 +1,3 @@ -"use client"; - import { AnimatePresence, motion } from "motion/react"; import { useId, useState } from "react"; import { useTranslation } from "react-i18next"; diff --git a/src/components/agent-chat/composer.tsx b/src/components/agent-chat/composer.tsx index df027d20..a4092e46 100644 --- a/src/components/agent-chat/composer.tsx +++ b/src/components/agent-chat/composer.tsx @@ -1,5 +1,3 @@ -"use client"; - import { type KeyboardEvent, type ReactNode, diff --git a/src/components/agent-chat/host-call.tsx b/src/components/agent-chat/host-call.tsx index da634fec..8e302cde 100644 --- a/src/components/agent-chat/host-call.tsx +++ b/src/components/agent-chat/host-call.tsx @@ -1,5 +1,3 @@ -"use client"; - import { useId, useState } from "react"; import { useTranslation } from "react-i18next"; import { LuCheck, LuX } from "react-icons/lu"; diff --git a/src/components/agent-chat/inbox.tsx b/src/components/agent-chat/inbox.tsx index fdd10b9f..8e8c894a 100644 --- a/src/components/agent-chat/inbox.tsx +++ b/src/components/agent-chat/inbox.tsx @@ -1,5 +1,3 @@ -"use client"; - import { useTranslation } from "react-i18next"; import { SidebarToggle } from "@/components/agent-shell"; import { PaneHeader } from "@/components/agent-tasks/parts"; diff --git a/src/components/agent-chat/live-view.tsx b/src/components/agent-chat/live-view.tsx index 5a1b0dde..589ca4a7 100644 --- a/src/components/agent-chat/live-view.tsx +++ b/src/components/agent-chat/live-view.tsx @@ -1,5 +1,3 @@ -"use client"; - import { AnimatePresence, motion } from "motion/react"; import type { ReactNode } from "react"; import { useTranslation } from "react-i18next"; @@ -65,7 +63,6 @@ export function LiveFrame({ )} > {image ? ( - // biome-ignore lint/performance/noImgElement: base64 data URI previews cannot use next/image {shown && ( - // biome-ignore lint/performance/noImgElement: a static export serves the clips as they are {shown && playing && !reduceMotion && ( - // biome-ignore lint/performance/noImgElement: a static export serves the clips as they are {preview ? ( - // biome-ignore lint/performance/noImgElement: base64 data URI previews cannot use next/image ("default"); diff --git a/src/components/ui/input.tsx b/src/components/ui/input.tsx index b36a410c..c5cea8fa 100644 --- a/src/components/ui/input.tsx +++ b/src/components/ui/input.tsx @@ -1,5 +1,3 @@ -"use client"; - import { cva, type VariantProps } from "class-variance-authority"; import type * as React from "react"; diff --git a/src/components/ui/kbd.tsx b/src/components/ui/kbd.tsx index 2e697996..2f2002b3 100644 --- a/src/components/ui/kbd.tsx +++ b/src/components/ui/kbd.tsx @@ -1,5 +1,3 @@ -"use client"; - import { motion, useReducedMotion } from "motion/react"; import { useTranslation } from "react-i18next"; diff --git a/src/components/ui/label.tsx b/src/components/ui/label.tsx index a3661dfa..f613ccf8 100644 --- a/src/components/ui/label.tsx +++ b/src/components/ui/label.tsx @@ -1,5 +1,3 @@ -"use client"; - import * as LabelPrimitive from "@radix-ui/react-label"; import type * as React from "react"; diff --git a/src/components/ui/operation-flow.tsx b/src/components/ui/operation-flow.tsx index 05e0c9df..329aae6f 100644 --- a/src/components/ui/operation-flow.tsx +++ b/src/components/ui/operation-flow.tsx @@ -1,5 +1,3 @@ -"use client"; - import { motion } from "motion/react"; import type { CSSProperties, ReactNode } from "react"; import { useMotionAllowed } from "@/hooks/use-motion-allowed"; diff --git a/src/components/ui/popover.tsx b/src/components/ui/popover.tsx index 80ea9992..7431b671 100644 --- a/src/components/ui/popover.tsx +++ b/src/components/ui/popover.tsx @@ -1,5 +1,3 @@ -"use client"; - import * as PopoverPrimitive from "@radix-ui/react-popover"; import type * as React from "react"; diff --git a/src/components/ui/popup-motion.ts b/src/components/ui/popup-motion.ts index 90874381..147ede19 100644 --- a/src/components/ui/popup-motion.ts +++ b/src/components/ui/popup-motion.ts @@ -1,5 +1,3 @@ -"use client"; - import * as React from "react"; import { useMotionAllowed } from "@/hooks/use-motion-allowed"; diff --git a/src/components/ui/pro-badge.tsx b/src/components/ui/pro-badge.tsx index 19d9085e..50aff0ea 100644 --- a/src/components/ui/pro-badge.tsx +++ b/src/components/ui/pro-badge.tsx @@ -1,5 +1,3 @@ -"use client"; - import { openUrl } from "@tauri-apps/plugin-opener"; import { useLayoutEffect, useRef, useState } from "react"; import { useTranslation } from "react-i18next"; diff --git a/src/components/ui/progress.tsx b/src/components/ui/progress.tsx index 22626000..32984c1f 100644 --- a/src/components/ui/progress.tsx +++ b/src/components/ui/progress.tsx @@ -1,5 +1,3 @@ -"use client"; - import * as ProgressPrimitive from "@radix-ui/react-progress"; import type * as React from "react"; diff --git a/src/components/ui/radio-group.tsx b/src/components/ui/radio-group.tsx index 5f1539fb..36ec0992 100644 --- a/src/components/ui/radio-group.tsx +++ b/src/components/ui/radio-group.tsx @@ -1,5 +1,3 @@ -"use client"; - import * as RadioGroupPrimitive from "@radix-ui/react-radio-group"; import * as React from "react"; import { LuCircle } from "react-icons/lu"; diff --git a/src/components/ui/ripple.tsx b/src/components/ui/ripple.tsx index 26a49121..1cb76282 100644 --- a/src/components/ui/ripple.tsx +++ b/src/components/ui/ripple.tsx @@ -1,5 +1,3 @@ -"use client"; - import { cva, type VariantProps } from "class-variance-authority"; import { type HTMLMotionProps, motion, type Transition } from "motion/react"; import * as React from "react"; diff --git a/src/components/ui/scroll-area.tsx b/src/components/ui/scroll-area.tsx index af849ca7..e787f0da 100644 --- a/src/components/ui/scroll-area.tsx +++ b/src/components/ui/scroll-area.tsx @@ -1,5 +1,3 @@ -"use client"; - import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area"; import type * as React from "react"; diff --git a/src/components/ui/scroll-strip.tsx b/src/components/ui/scroll-strip.tsx index 3f1bc4c2..65f1947f 100644 --- a/src/components/ui/scroll-strip.tsx +++ b/src/components/ui/scroll-strip.tsx @@ -1,5 +1,3 @@ -"use client"; - import { useReducedMotion } from "motion/react"; import { type HTMLAttributes, diff --git a/src/components/ui/select.tsx b/src/components/ui/select.tsx index 4955f354..52523425 100644 --- a/src/components/ui/select.tsx +++ b/src/components/ui/select.tsx @@ -1,5 +1,3 @@ -"use client"; - import * as SelectPrimitive from "@radix-ui/react-select"; import type * as React from "react"; import { LuCheck, LuChevronDown, LuChevronUp } from "react-icons/lu"; diff --git a/src/components/ui/settings-panel.tsx b/src/components/ui/settings-panel.tsx index 2e11fd46..1eb372f6 100644 --- a/src/components/ui/settings-panel.tsx +++ b/src/components/ui/settings-panel.tsx @@ -1,5 +1,3 @@ -"use client"; - import type { ReactNode } from "react"; import { Label } from "@/components/ui/label"; import { cn } from "@/lib/utils"; diff --git a/src/components/ui/sonner.tsx b/src/components/ui/sonner.tsx index 4feb5d8f..ecd545b0 100644 --- a/src/components/ui/sonner.tsx +++ b/src/components/ui/sonner.tsx @@ -1,5 +1,3 @@ -"use client"; - import { Toaster as Sonner, type ToasterProps } from "sonner"; import { useTheme } from "@/components/theme-provider"; diff --git a/src/components/ui/step-dots.tsx b/src/components/ui/step-dots.tsx index 78f31f02..88d014bc 100644 --- a/src/components/ui/step-dots.tsx +++ b/src/components/ui/step-dots.tsx @@ -1,5 +1,3 @@ -"use client"; - import { motion } from "motion/react"; import { useId } from "react"; import { useMotionAllowed } from "@/hooks/use-motion-allowed"; diff --git a/src/components/ui/step-transition.tsx b/src/components/ui/step-transition.tsx index eeeaedc8..050bc64b 100644 --- a/src/components/ui/step-transition.tsx +++ b/src/components/ui/step-transition.tsx @@ -1,5 +1,3 @@ -"use client"; - import { motion } from "motion/react"; import type { Key, ReactNode } from "react"; import { useMotionAllowed } from "@/hooks/use-motion-allowed"; diff --git a/src/components/ui/table.tsx b/src/components/ui/table.tsx index 460ffe7e..a229aa4e 100644 --- a/src/components/ui/table.tsx +++ b/src/components/ui/table.tsx @@ -1,5 +1,3 @@ -"use client"; - import type * as React from "react"; import { cn } from "@/lib/utils"; diff --git a/src/components/ui/tabs.tsx b/src/components/ui/tabs.tsx index 333b784e..d20c2ada 100644 --- a/src/components/ui/tabs.tsx +++ b/src/components/ui/tabs.tsx @@ -1,5 +1,3 @@ -"use client"; - import * as TabsPrimitive from "@radix-ui/react-tabs"; import { type HTMLMotionProps, motion } from "motion/react"; import * as React from "react"; diff --git a/src/components/ui/textarea.tsx b/src/components/ui/textarea.tsx index 29891799..19fbcd8d 100644 --- a/src/components/ui/textarea.tsx +++ b/src/components/ui/textarea.tsx @@ -1,5 +1,3 @@ -"use client"; - import { cva, type VariantProps } from "class-variance-authority"; import * as React from "react"; diff --git a/src/components/ui/tooltip.tsx b/src/components/ui/tooltip.tsx index 16cecef0..a4489776 100644 --- a/src/components/ui/tooltip.tsx +++ b/src/components/ui/tooltip.tsx @@ -1,5 +1,3 @@ -"use client"; - import * as TooltipPrimitive from "@radix-ui/react-tooltip"; import type * as React from "react"; diff --git a/src/components/vpn-check-button.tsx b/src/components/vpn-check-button.tsx index 1f00aab0..9714fadd 100644 --- a/src/components/vpn-check-button.tsx +++ b/src/components/vpn-check-button.tsx @@ -1,5 +1,3 @@ -"use client"; - import { invoke } from "@tauri-apps/api/core"; import * as React from "react"; import { useTranslation } from "react-i18next"; diff --git a/src/components/vpn-form-dialog.tsx b/src/components/vpn-form-dialog.tsx index 5f145ff0..b45d8f24 100644 --- a/src/components/vpn-form-dialog.tsx +++ b/src/components/vpn-form-dialog.tsx @@ -1,5 +1,3 @@ -"use client"; - import { invoke } from "@tauri-apps/api/core"; import { emit } from "@tauri-apps/api/event"; import { useCallback, useEffect, useState } from "react"; diff --git a/src/components/vpn-import-dialog.tsx b/src/components/vpn-import-dialog.tsx index fab57b72..f65ba103 100644 --- a/src/components/vpn-import-dialog.tsx +++ b/src/components/vpn-import-dialog.tsx @@ -1,5 +1,3 @@ -"use client"; - import { invoke } from "@tauri-apps/api/core"; import { emit } from "@tauri-apps/api/event"; import { useCallback, useEffect, useReducer, useState } from "react"; diff --git a/src/components/wayfern-config-dialog.tsx b/src/components/wayfern-config-dialog.tsx index 8f11fb19..17314533 100644 --- a/src/components/wayfern-config-dialog.tsx +++ b/src/components/wayfern-config-dialog.tsx @@ -1,5 +1,3 @@ -"use client"; - import { useEffect, useState } from "react"; import { useTranslation } from "react-i18next"; import { SharedFingerprintConfigForm } from "@/components/shared-fingerprint-config-form"; diff --git a/src/components/wayfern-config-form.tsx b/src/components/wayfern-config-form.tsx index 06ae16c1..afbc47a9 100644 --- a/src/components/wayfern-config-form.tsx +++ b/src/components/wayfern-config-form.tsx @@ -1,5 +1,3 @@ -"use client"; - import { invoke } from "@tauri-apps/api/core"; import { open } from "@tauri-apps/plugin-dialog"; import { useEffect, useRef, useState } from "react"; diff --git a/src/components/wayfern-terms-dialog.tsx b/src/components/wayfern-terms-dialog.tsx index ead72096..e3eb855b 100644 --- a/src/components/wayfern-terms-dialog.tsx +++ b/src/components/wayfern-terms-dialog.tsx @@ -1,5 +1,3 @@ -"use client"; - import { invoke } from "@tauri-apps/api/core"; import { useCallback, useState } from "react"; import { useTranslation } from "react-i18next"; diff --git a/src/components/welcome-dialog.tsx b/src/components/welcome-dialog.tsx index a657e499..9436bf44 100644 --- a/src/components/welcome-dialog.tsx +++ b/src/components/welcome-dialog.tsx @@ -1,5 +1,3 @@ -"use client"; - import { type ReactNode, useCallback, diff --git a/src/components/whats-new-dialog.tsx b/src/components/whats-new-dialog.tsx index 6712677d..27c3431d 100644 --- a/src/components/whats-new-dialog.tsx +++ b/src/components/whats-new-dialog.tsx @@ -1,5 +1,3 @@ -"use client"; - import { useTranslation } from "react-i18next"; import { ChatMarkdown } from "@/components/agent-chat/markdown"; import { diff --git a/src/components/window-drag-area.tsx b/src/components/window-drag-area.tsx index 095f66a4..f505ce05 100644 --- a/src/components/window-drag-area.tsx +++ b/src/components/window-drag-area.tsx @@ -1,5 +1,3 @@ -"use client"; - import { getCurrentWindow } from "@tauri-apps/api/window"; import { useEffect, useState } from "react"; import { useTranslation } from "react-i18next"; diff --git a/src/components/window-resize-handles.tsx b/src/components/window-resize-handles.tsx index c36d837a..9eb62598 100644 --- a/src/components/window-resize-handles.tsx +++ b/src/components/window-resize-handles.tsx @@ -1,5 +1,3 @@ -"use client"; - import { getCurrentWindow } from "@tauri-apps/api/window"; /** diff --git a/src/components/window-resize-warning-dialog.tsx b/src/components/window-resize-warning-dialog.tsx index 145b2c90..e2828d4b 100644 --- a/src/components/window-resize-warning-dialog.tsx +++ b/src/components/window-resize-warning-dialog.tsx @@ -1,5 +1,3 @@ -"use client"; - import { invoke } from "@tauri-apps/api/core"; import { useEffect, useState } from "react"; import { useTranslation } from "react-i18next"; diff --git a/src/hooks/use-app-update-notifications.tsx b/src/hooks/use-app-update-notifications.tsx index 74d5e3b4..7d144249 100644 --- a/src/hooks/use-app-update-notifications.tsx +++ b/src/hooks/use-app-update-notifications.tsx @@ -1,5 +1,3 @@ -"use client"; - import { invoke } from "@tauri-apps/api/core"; import { listen } from "@tauri-apps/api/event"; import { useCallback, useEffect, useRef, useState } from "react"; diff --git a/src/hooks/use-cookie-bot.ts b/src/hooks/use-cookie-bot.ts index b064e52f..ed683b14 100644 --- a/src/hooks/use-cookie-bot.ts +++ b/src/hooks/use-cookie-bot.ts @@ -1,5 +1,3 @@ -"use client"; - import { useCallback, useEffect, useId, useSyncExternalStore } from "react"; import { type CookieBotSchedule, diff --git a/src/hooks/use-input-modality.tsx b/src/hooks/use-input-modality.tsx index 588c3b4a..63d52af6 100644 --- a/src/hooks/use-input-modality.tsx +++ b/src/hooks/use-input-modality.tsx @@ -1,5 +1,3 @@ -"use client"; - import { createContext, type ReactNode, diff --git a/src/hooks/use-interface-zoom.ts b/src/hooks/use-interface-zoom.ts index 1dfa17e2..739dd114 100644 --- a/src/hooks/use-interface-zoom.ts +++ b/src/hooks/use-interface-zoom.ts @@ -1,5 +1,3 @@ -"use client"; - import { invoke } from "@tauri-apps/api/core"; import { listen } from "@tauri-apps/api/event"; import { useCallback, useEffect, useState } from "react"; diff --git a/src/hooks/use-konami-code.ts b/src/hooks/use-konami-code.ts index ca960ced..d50c374c 100644 --- a/src/hooks/use-konami-code.ts +++ b/src/hooks/use-konami-code.ts @@ -1,5 +1,3 @@ -"use client"; - import { useEffect, useRef } from "react"; import { isKey } from "@/lib/shortcuts"; diff --git a/src/hooks/use-launch-activity.tsx b/src/hooks/use-launch-activity.tsx index 436eacde..f95405c4 100644 --- a/src/hooks/use-launch-activity.tsx +++ b/src/hooks/use-launch-activity.tsx @@ -1,5 +1,3 @@ -"use client"; - import { listen } from "@tauri-apps/api/event"; import { createContext, useContext, useEffect, useState } from "react"; diff --git a/src/hooks/use-launch-notices.ts b/src/hooks/use-launch-notices.ts index 47f715ea..12f7ba3c 100644 --- a/src/hooks/use-launch-notices.ts +++ b/src/hooks/use-launch-notices.ts @@ -1,5 +1,3 @@ -"use client"; - import { listen } from "@tauri-apps/api/event"; import { useEffect, useRef } from "react"; import { useTranslation } from "react-i18next"; diff --git a/src/hooks/use-motion-allowed.ts b/src/hooks/use-motion-allowed.ts index 97a1c2c5..b609b094 100644 --- a/src/hooks/use-motion-allowed.ts +++ b/src/hooks/use-motion-allowed.ts @@ -1,5 +1,3 @@ -"use client"; - import { useReducedMotion } from "motion/react"; import { useInputModality } from "@/hooks/use-input-modality"; diff --git a/src/hooks/use-profile-references.ts b/src/hooks/use-profile-references.ts index 43fa097c..58083d5c 100644 --- a/src/hooks/use-profile-references.ts +++ b/src/hooks/use-profile-references.ts @@ -1,5 +1,3 @@ -"use client"; - import { invoke } from "@tauri-apps/api/core"; import { listen } from "@tauri-apps/api/event"; import { useEffect, useState } from "react"; diff --git a/src/hooks/use-profile-table-filters.ts b/src/hooks/use-profile-table-filters.ts index da61e471..6cba123c 100644 --- a/src/hooks/use-profile-table-filters.ts +++ b/src/hooks/use-profile-table-filters.ts @@ -1,5 +1,3 @@ -"use client"; - import { useMemo } from "react"; import { useTranslation } from "react-i18next"; import { useTableFilters } from "@/hooks/use-table-tools"; diff --git a/src/hooks/use-proxy-health.ts b/src/hooks/use-proxy-health.ts index 52ae4023..f8646656 100644 --- a/src/hooks/use-proxy-health.ts +++ b/src/hooks/use-proxy-health.ts @@ -1,5 +1,3 @@ -"use client"; - import { listen } from "@tauri-apps/api/event"; import { useEffect, useState } from "react"; diff --git a/src/hooks/use-site-storage-notices.ts b/src/hooks/use-site-storage-notices.ts index f4a22f15..80e2a43f 100644 --- a/src/hooks/use-site-storage-notices.ts +++ b/src/hooks/use-site-storage-notices.ts @@ -1,5 +1,3 @@ -"use client"; - import { listen } from "@tauri-apps/api/event"; import { useEffect, useRef } from "react"; import { useTranslation } from "react-i18next"; diff --git a/src/hooks/use-sync-health.ts b/src/hooks/use-sync-health.ts index 35fbfc22..b7e5cb96 100644 --- a/src/hooks/use-sync-health.ts +++ b/src/hooks/use-sync-health.ts @@ -1,5 +1,3 @@ -"use client"; - import { invoke } from "@tauri-apps/api/core"; import { listen } from "@tauri-apps/api/event"; import { useEffect, useRef, useState } from "react"; diff --git a/src/hooks/use-sync-password.ts b/src/hooks/use-sync-password.ts index 76e19214..47bf90ef 100644 --- a/src/hooks/use-sync-password.ts +++ b/src/hooks/use-sync-password.ts @@ -1,5 +1,3 @@ -"use client"; - import { invoke } from "@tauri-apps/api/core"; import { listen } from "@tauri-apps/api/event"; import { useEffect, useState } from "react"; diff --git a/src/hooks/use-table-preferences.ts b/src/hooks/use-table-preferences.ts index 2558c2fd..d8519e64 100644 --- a/src/hooks/use-table-preferences.ts +++ b/src/hooks/use-table-preferences.ts @@ -1,5 +1,3 @@ -"use client"; - import type { ColumnSizingState, ColumnVisibilityState, diff --git a/src/hooks/use-table-tools.ts b/src/hooks/use-table-tools.ts index 63271a83..0ab38b34 100644 --- a/src/hooks/use-table-tools.ts +++ b/src/hooks/use-table-tools.ts @@ -1,5 +1,3 @@ -"use client"; - import type { RowData } from "@tanstack/react-table"; import type { LegacyTable as Table } from "@tanstack/react-table/legacy"; import { useCallback, useEffect, useMemo, useRef, useState } from "react"; diff --git a/src/hooks/use-unsaved-changes.ts b/src/hooks/use-unsaved-changes.ts index 3915e5e0..c5ef49c4 100644 --- a/src/hooks/use-unsaved-changes.ts +++ b/src/hooks/use-unsaved-changes.ts @@ -1,5 +1,3 @@ -"use client"; - import { useEffect, useRef } from "react"; /** One surface with edits that are not saved yet. */ diff --git a/src/hooks/use-window-decorations.ts b/src/hooks/use-window-decorations.ts index d753f529..0873f83d 100644 --- a/src/hooks/use-window-decorations.ts +++ b/src/hooks/use-window-decorations.ts @@ -1,5 +1,3 @@ -"use client"; - import { invoke } from "@tauri-apps/api/core"; import { listen } from "@tauri-apps/api/event"; import { useEffect, useState } from "react"; diff --git a/src/i18n/index.ts b/src/i18n/index.ts index ca683356..edd4d65c 100644 --- a/src/i18n/index.ts +++ b/src/i18n/index.ts @@ -1,17 +1,7 @@ -import i18n from "i18next"; +import i18n, { type BackendModule, type ResourceKey } from "i18next"; import { initReactI18next } from "react-i18next"; -import de from "./locales/de.json"; import en from "./locales/en.json"; -import es from "./locales/es.json"; -import fr from "./locales/fr.json"; -import ja from "./locales/ja.json"; -import ko from "./locales/ko.json"; -import pt from "./locales/pt.json"; -import ru from "./locales/ru.json"; -import tr from "./locales/tr.json"; -import vi from "./locales/vi.json"; -import zh from "./locales/zh.json"; export const SUPPORTED_LANGUAGES = [ { code: "en", name: "English", nativeName: "English" }, @@ -68,30 +58,44 @@ export function getLanguageWithFallback(systemLocale: string): string { return "en"; } -const resources = { - en: { translation: en }, - es: { translation: es }, - pt: { translation: pt }, - fr: { translation: fr }, - de: { translation: de }, - zh: { translation: zh }, - ja: { translation: ja }, - ko: { translation: ko }, - ru: { translation: ru }, - tr: { translation: tr }, - vi: { translation: vi }, +// English ships in the main bundle as the fallback. Every other locale is its +// own chunk, loaded when `changeLanguage` asks for it. +const otherLocales = import.meta.glob( + ["./locales/*.json", "!./locales/en.json"], + { import: "default" }, +); + +const lazyLocales: BackendModule = { + type: "backend", + callbackApi: true, + init() {}, + read(language, _namespace, callback) { + const load = otherLocales[`./locales/${language}.json`]; + if (!load) { + callback(null, {}); + return; + } + load().then( + (translation) => callback(null, translation), + (error: Error) => callback(error, null), + ); + }, }; -i18n.use(initReactI18next).init({ - resources, - lng: "en", - fallbackLng: "en", - interpolation: { - escapeValue: false, - }, - react: { - useSuspense: false, - }, -}); +i18n + .use(lazyLocales) + .use(initReactI18next) + .init({ + resources: { en: { translation: en } }, + partialBundledLanguages: true, + lng: "en", + fallbackLng: "en", + interpolation: { + escapeValue: false, + }, + react: { + useSuspense: false, + }, + }); export default i18n; diff --git a/src/lib/slot.tsx b/src/lib/slot.tsx index 0be9550a..a0987f2c 100644 --- a/src/lib/slot.tsx +++ b/src/lib/slot.tsx @@ -1,5 +1,3 @@ -"use client"; - import { type HTMLMotionProps, isMotionComponent, motion } from "motion/react"; import * as React from "react"; import { cn } from "@/lib/utils"; diff --git a/src/main.tsx b/src/main.tsx new file mode 100644 index 00000000..2e69dd79 --- /dev/null +++ b/src/main.tsx @@ -0,0 +1,26 @@ +import "@/i18n"; +import "@/styles/fonts.css"; +import "@/styles/globals.css"; +import "flag-icons/css/flag-icons.min.css"; +import { StrictMode } from "react"; +import { createRoot } from "react-dom/client"; +import Page from "@/app/page"; +import { ClientProviders } from "@/components/client-providers"; +import { ErrorBoundary } from "@/components/error-boundary"; + +const root = document.getElementById("root"); +if (!root) throw new Error("index.html has no #root element"); + +// The outer boundary catches a failure of the providers themselves; the inner +// one keeps a page error inside the themed, translated shell. +createRoot(root).render( + + + + + + + + + , +); diff --git a/src/styles/fonts.css b/src/styles/fonts.css new file mode 100644 index 00000000..b1d898b7 --- /dev/null +++ b/src/styles/fonts.css @@ -0,0 +1,23 @@ +/* Geist (OFL-1.1, src/assets/fonts/OFL.txt), bundled: the app never fetches fonts. */ +@font-face { + font-family: "Geist"; + src: url("../assets/fonts/Geist-Variable.woff2") format("woff2"); + font-weight: 100 900; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: "Geist Mono"; + src: url("../assets/fonts/GeistMono-Variable.woff2") format("woff2"); + font-weight: 100 900; + font-style: normal; + font-display: swap; +} + +:root { + --font-geist-sans: "Geist", ui-sans-serif, system-ui, sans-serif; + --font-geist-mono: + "Geist Mono", ui-monospace, SFMono-Regular, "Roboto Mono", Menlo, Monaco, + "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace; +} diff --git a/src/vite-env.d.ts b/src/vite-env.d.ts new file mode 100644 index 00000000..11f02fe2 --- /dev/null +++ b/src/vite-env.d.ts @@ -0,0 +1 @@ +/// diff --git a/tsconfig.json b/tsconfig.json index 5b9e7aea..5877e096 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,23 +15,10 @@ "isolatedModules": true, "jsx": "react-jsx", "incremental": true, - "plugins": [ - { - "name": "next" - } - ], "paths": { "@/*": ["./src/*"] } }, - "include": [ - "**/*.ts", - "**/*.tsx", - ".next/types/**/*.ts", - "next-env.d.ts", - "dist/types/**/*.ts", - ".next/dev/types/**/*.ts", - "dist/dev/types/**/*.ts" - ], + "include": ["**/*.ts", "**/*.tsx"], "exclude": ["node_modules", "src-tauri/target", "donut-sync"] } diff --git a/vite.config.ts b/vite.config.ts new file mode 100644 index 00000000..ea502b03 --- /dev/null +++ b/vite.config.ts @@ -0,0 +1,44 @@ +import { fileURLToPath } from "node:url"; +import tailwindcss from "@tailwindcss/vite"; +import react from "@vitejs/plugin-react"; +import { defineConfig } from "vite"; + +export default defineConfig(({ command }) => ({ + plugins: [react(), tailwindcss()], + resolve: { + alias: { "@": fileURLToPath(new URL("./src", import.meta.url)) }, + }, + clearScreen: false, + server: { + // tauri.conf.json `devUrl` points here. + port: 12341, + strictPort: true, + watch: { + ignored: [ + "**/src-tauri/**", + "**/e2e/**", + "**/donut-sync/**", + "**/sdk/**", + ], + }, + }, + build: { + outDir: "dist", + emptyOutDir: true, + // Flags and fonts stay files: inlined into the CSS they would be parsed at + // startup, used or not. + assetsInlineLimit: 0, + rolldownOptions: + command === "build" + ? { + output: { + minify: { + compress: { dropConsole: true }, + mangle: true, + codegen: true, + }, + }, + } + : undefined, + }, +}));