commit 38b5e3190af875c40145a1a974cd4b06f04ec023 Author: jif2.zhang Date: Fri Sep 11 15:46:42 2026 +0800 init: Wardrobe 衣物管理系统 - 项目首页、OTA 升级、Android CI/CD - 响应式项目首页 (Landing, 含 R2 APK 下载) + 路由 /home 调整 - OTA 升级: tauri-plugin-hotswap (lib.rs/main.rs 拆分, 客户端热替换) - OTA 服务端 (check/bundle/manifest-web) + build-ota/genkey/upload 脚本 - 密钥/凭据统一存配置中心 (signing + ota + cloudflare 分组) - Android CI (android-* 分支) + OTA CI (手动触发), 产物上传 R2 - 修复 tsc/构建阻塞问题 diff --git a/.gitea/workflows/android-build.yml b/.gitea/workflows/android-build.yml new file mode 100644 index 0000000..ee130ed --- /dev/null +++ b/.gitea/workflows/android-build.yml @@ -0,0 +1,205 @@ +name: Android Build & Publish + +# 仅在 android-* 分支 push 时触发 (如 android/release, android-1.0) +# 构建 release APK (keystore 签名) 并上传到 Cloudflare R2 (S3 兼容 API) +# R2 凭据从配置注册中心 (bh.vps.honor3.com:8008, CommonExternalService, 分组 cloudflare) 读取 +# 参考: D:\workbench\iboard\.gitea\workflows\android-build.yml +on: + push: + branches: + - 'android-*' + +jobs: + build-android: + runs-on: ubuntu-latest + permissions: + contents: read + + env: + # 固定工具链版本, 便于 actions/cache 命中 + NDK_VERSION: '27.2.12479018' + # 配置中心地址与 token (Gitea secrets; URL 未设时回退默认地址) + CONFIG_CENTER_URL: '${{ secrets.CONFIG_CENTER_URL }}' + CONFIG_CENTER_TOKEN: '${{ secrets.CONFIG_CENTER_TOKEN }}' + REGISTRY_URL_FALLBACK: 'http://bh.vps.honor3.com:8008' + # 配置中心项目 ID: 签名密钥在 service-wardrobe/signing, R2 在 CommonExternalService/cloudflare + CFG_PROJECT_SIGNING: 'proj-mtwjnvir-k52zvp' + CFG_PROJECT_R2: 'proj-mts0s5jo-fb3rz7' + + steps: + - name: Checkout + uses: https://gitea.com/actions/checkout@v4 + + - name: Setup mise + uses: https://gitea.com/actions/mise@v2 + with: + tools: "node:24.21.0,rust:stable" + cache: true + + - name: Setup JDK 17 + uses: https://gitea.com/actions/setup-java@v4 + with: + distribution: temurin + java-version: '17' + + # ---------- 尽量复用 Android SDK ---------- + # 优先复用 runner 预装的 SDK (/usr/local/lib/android/sdk), 其次命中 CI 缓存, + # 最后才重新下载。NDK 不在预装中, 单独用缓存复用。 + - name: Locate reusable Android SDK + id: sdk + run: | + CANDIDATES=( + "$ANDROID_HOME" + "/usr/local/lib/android/sdk" # GitHub ubuntu-latest 预装 + "$HOME/android-sdk" + ) + for c in "${CANDIDATES[@]}"; do + if [ -n "$c" ] && [ -d "$c/platforms" ]; then + echo "ANDROID_ROOT=${c}" >> "$GITHUB_ENV" + echo "found=${c}" >> "$GITHUB_OUTPUT" + echo "reusing existing Android SDK: ${c}" + break + fi + done + echo "found=${found:-}" + + - name: Cache Android NDK + id: cache-ndk + uses: https://gitea.com/actions/cache@v4 + with: + path: ~/android-sdk/ndk + key: android-ndk-${{ env.NDK_VERSION }}-${{ runner.os }} + + - name: Cache Rust toolchain + id: cache-rust + uses: https://gitea.com/actions/cache@v4 + with: + path: | + ~/.mise + ~/.local/share/mise + key: mise-rust-android-v1-${{ runner.os }} + + - name: Cache Tauri cargo target + uses: https://gitea.com/actions/cache@v4 + with: + path: src-tauri/target + key: tauri-target-android-${{ runner.os }} + + # ---------- 安装缺失组件 (仅未复用/未命中时) ---------- + - name: Ensure Android NDK + if: steps.sdk.outputs.found == '' || steps.cache-ndk.outputs.cache-hit != 'true' + run: | + if [ -z "${ANDROID_ROOT:-}" ]; then + export ANDROID_HOME="$HOME/android-sdk" + mkdir -p "$ANDROID_HOME/cmdline-tools" + sudo apt-get update + sudo apt-get install -y --no-install-recommends unzip + wget -q https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip -O /tmp/cmdline-tools.zip + unzip -q /tmp/cmdline-tools.zip -d /tmp/ + mv /tmp/cmdline-tools "$ANDROID_HOME/cmdline-tools/latest" + export PATH="$ANDROID_HOME/cmdline-tools/latest/bin:$PATH" + yes | sdkmanager --licenses >/dev/null || true + sdkmanager --install \ + "platforms;android-36" \ + "build-tools;36.0.0" \ + "platform-tools" + echo "ANDROID_HOME=$ANDROID_HOME" >> "$GITHUB_ENV" + fi + # NDK (cache miss 或首页 SDK 未含 NDK 时安装到 ~/android-sdk/ndk) + if [ ! -d "$HOME/android-sdk/ndk/${{ env.NDK_VERSION }}" ]; then + export ANDROID_HOME="${ANDROID_ROOT:-$HOME/android-sdk}" + export PATH="$ANDROID_HOME/cmdline-tools/latest/bin:$ANDROID_HOME/platform-tools:$PATH" + sdkmanager --install "ndk;${{ env.NDK_VERSION }}" + fi + + - name: Add Android Rust targets + run: | + rustup target add aarch64-linux-android armv7-linux-androideabi x86_64-linux-android i686-linux-android + cargo install cargo-ndk --locked || true + + - name: Install frontend deps + run: npm ci --no-audit --no-fund + + # ---------- 全局 Android 环境 ---------- + - name: Set Android env + run: | + echo "ANDROID_HOME=${ANDROID_ROOT:-$HOME/android-sdk}" >> "$GITHUB_ENV" + echo "ANDROID_NDK_HOME=${ANDROID_ROOT:-$HOME/android-sdk}/ndk/${{ env.NDK_VERSION }}" >> "$GITHUB_ENV" + echo "${ANDROID_ROOT:-$HOME/android-sdk}/cmdline-tools/latest/bin" >> "$GITHUB_PATH" + echo "${ANDROID_ROOT:-$HOME/android-sdk}/platform-tools" >> "$GITHUB_PATH" + + # ---------- 构建 ---------- + - name: Init Android project + run: | + cd src-tauri + npx tauri android init --ci + + - name: Fetch config center (signing + R2) + run: | + set -euo pipefail + export CONFIG_CENTER_URL="${CONFIG_CENTER_URL:-$REGISTRY_URL_FALLBACK}" + python3 - <<'PYEOF' + import json, os, urllib.request + url = os.environ["CONFIG_CENTER_URL"] + token = os.environ.get("CONFIG_CENTER_TOKEN", "") or "" + wanted_keys = { + "CFG_PROJECT_SIGNING": ("ANDROID_KEYSTORE_B64", "ANDROID_KEY_ALIAS", "ANDROID_KEY_PASSWORD"), + "CFG_PROJECT_R2": ("CF_API_TOKEN", "CF_R2_PUBLIC_URL"), + } + wanted = {} + for pid_env, keys in wanted_keys.items(): + pid = os.environ[pid_env] + req = urllib.request.Request(f"{url}/api/projects/{pid}/configs") + if token: + req.add_header("Authorization", "Bearer " + token) + with urllib.request.urlopen(req, timeout=20) as r: + data = json.load(r).get("data", []) + for cfg in data: + if cfg.get("key") in keys: + wanted[cfg["key"]] = cfg.get("value", "") + with open(os.environ["GITHUB_ENV"], "a", encoding="utf-8") as f: + for k, v in wanted.items(): + f.write(f"{k}={v}\n") + missing = [k for k in ("ANDROID_KEYSTORE_B64", "ANDROID_KEY_ALIAS", "ANDROID_KEY_PASSWORD", "CF_API_TOKEN") if k not in wanted] + if missing: + raise SystemExit("配置中心缺少密钥: " + ", ".join(missing)) + PYEOF + + - name: Inject release signing config + run: bash scripts/ci/android-signing.sh + + - name: Build release APK + run: | + export ANDROID_HOME="${ANDROID_ROOT:-$HOME/android-sdk}" + export ANDROID_NDK_HOME="$ANDROID_HOME/ndk/${{ env.NDK_VERSION }}" + export PATH="$ANDROID_HOME/cmdline-tools/latest/bin:$ANDROID_HOME/platform-tools:$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH" + cd src-tauri + npx tauri android build --apk + # 断言签名配置仍在且 release 块实际引用了它 (防止 tauri 重新生成 gen/android 或正则未命中) + if ! grep -q 'create("release")' gen/android/app/build.gradle.kts || ! grep -q 'signingConfig = signingConfigs.getByName("release")' gen/android/app/build.gradle.kts; then + echo "ERROR: 构建后签名配置丢失/未生效, APK 未签名" >&2 + exit 1 + fi + + - name: Locate APK + id: apk + run: | + APK="" + UNIVERSAL=$(find src-tauri/gen/android/app/build/outputs/apk/universal/release -name '*.apk' ! -name '*unsigned*' 2>/dev/null | head -1) + if [ -n "$UNIVERSAL" ]; then + APK="$UNIVERSAL" + else + APK=$(find src-tauri/gen/android/app/build/outputs/apk -name '*.apk' ! -name '*unsigned*' | head -1) + fi + if [ -z "$APK" ]; then + echo "ERROR: 未找到已签名 APK" >&2 + exit 1 + fi + echo "path=$APK" >> "$GITHUB_OUTPUT" + ls -lh "$APK" + + - name: Upload APK to Cloudflare R2 + env: + APK_PATH: ${{ steps.apk.outputs.path }} + run: | + bash scripts/upload-r2.sh "$APK_PATH" \ No newline at end of file diff --git a/.gitea/workflows/ota-build.yml b/.gitea/workflows/ota-build.yml new file mode 100644 index 0000000..ef327c9 --- /dev/null +++ b/.gitea/workflows/ota-build.yml @@ -0,0 +1,112 @@ +name: OTA Frontend Build & Sign + +# 手动触发 (发版前用): 构建前端 → 打生产 dist 的 OTA 升级包 (minisign 签名) → 上传 R2 +# 产物: +# - ota-package/wardrobe-ota.tar.gz (前端替换包) +# - ota-package/latest.json (manifest, 客户端 check 用) +# 存储: Cloudflare R2 store/ota/ (公开桶) +# 依赖配置注册中心 (bh.vps.honor3.com:8008): +# - service-wardrobe / ota : MINISIGN_PRIVATE_KEY (整段 .key 内容, 多行) +# - CommonExternalService / cloudflare : CF_API_TOKEN, CF_R2_PUBLIC_URL +# 注意: 不修改 src-tauri/tauri.conf.json 的 pubkey, 换密钥请手动改 conf 并 commit。 +# 部署 server (托管 OTA check 端点 + 首页 dist) 见 README "OTA 升级 与 首页" 章节。 +on: + workflow_dispatch: + inputs: + sequence: + description: 'OTA sequence (单调递增整数, 留空用 timestamp)' + required: false + type: string + notes: + description: '发布说明 (写入 latest.json.notes)' + required: false + type: string + default: '' + +jobs: + build-ota: + runs-on: ubuntu-latest + permissions: + contents: read + env: + CONFIG_CENTER_URL: '${{ secrets.CONFIG_CENTER_URL }}' + CONFIG_CENTER_TOKEN: '${{ secrets.CONFIG_CENTER_TOKEN }}' + REGISTRY_URL_FALLBACK: 'http://bh.vps.honor3.com:8008' + CFG_PROJECT_SIGNING: 'proj-mtwjnvir-k52zvp' + CFG_PROJECT_R2: 'proj-mts0s5jo-fb3rz7' + + steps: + - name: Checkout + uses: https://gitea.com/actions/checkout@v4 + + - name: Setup Node + uses: https://gitea.com/actions/setup-node@v4 + with: + node-version: 22 + + - name: Install deps + run: npm ci --no-audit --no-fund + + - name: Build frontend + # 复用 vite build 产物 (同时是 OTA bundle 内容) + run: npm run build + + - name: Install minisign + run: sudo apt-get update && sudo apt-get install -y minisign + + - name: Fetch config center (minisign key + R2) + run: | + set -euo pipefail + export CONFIG_CENTER_URL="${CONFIG_CENTER_URL:-$REGISTRY_URL_FALLBACK}" + python3 - <<'PYEOF' + import json, os, urllib.request + url = os.environ["CONFIG_CENTER_URL"] + token = os.environ.get("CONFIG_CENTER_TOKEN", "") or "" + wanted = {} + req = urllib.request.Request(f"{url}/api/projects/{os.environ['CFG_PROJECT_SIGNING']}/configs") + if token: + req.add_header("Authorization", "Bearer " + token) + with urllib.request.urlopen(req, timeout=20) as r: + data = json.load(r).get("data", []) + for cfg in data: + if cfg.get("key") in ("MINISIGN_PRIVATE_KEY",): + wanted[cfg["key"]] = cfg.get("value", "") + req = urllib.request.Request(f"{url}/api/projects/{os.environ['CFG_PROJECT_R2']}/configs") + if token: + req.add_header("Authorization", "Bearer " + token) + with urllib.request.urlopen(req, timeout=20) as r: + data = json.load(r).get("data", []) + for cfg in data: + if cfg.get("key") in ("CF_API_TOKEN", "CF_R2_PUBLIC_URL"): + wanted[cfg["key"]] = cfg.get("value", "") + # GITHUB_ENV 多行值需用 heredoc 语法; 单行值直接 NAME=value + with open(os.environ["GITHUB_ENV"], "a", encoding="utf-8") as f: + for k, v in wanted.items(): + if "\n" in v or v.startswith("untrusted comment"): + f.write(f"{k}< 注: 当前版本 MCP 通过 Tauri IPC 暴露,AI 客户端集成需将 `McpService` 包装为标准 MCP stdio server。`src-tauri/src/mcp.rs` 中 `list_tools` / `call_tool` 已实现会话无关的纯逻辑接口,可直接复用。 + +## 认证 + +验证码暂统一为 `1111`。注册/登录流程: + +1. `send_code(target)` - 发送验证码 (target 为邮箱或手机号) +2. `register(email|null, phone|null, code, nickname)` - 注册 +3. `login(email|null, phone|null, code)` - 登录 + +验证码有效期 5 分钟,成功后自动失效。 \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..8283c35 --- /dev/null +++ b/README.md @@ -0,0 +1,264 @@ +# Wardrobe - AI 衣物管理系统 + +基于 **Tauri 2.x** 封装的跨平台衣物管理应用,目标平台包括 **Android / Windows / macOS**。 + +## 功能特性 + +- 📸 **数字衣橱** - 拍照录入、AI 识别、分类管理 +- 💡 **AI 搭配推荐** - 按季节/场合智能推荐 +- 📅 **穿搭日历** - 记录每日 OOTD +- 📊 **风格统计** - 衣橱利用率、分类分析 +- 🧺 **清洁管理** - 清洁周期提醒 +- 🔐 **邮箱/手机注册** - 验证码认证 (暂定 `1111`) +- 🗄️ **MCP 服务** - AI 平台数据管理接口 +- 🦆 **DuckDB** - 本地嵌入式数据库 + +## 技术栈 + +| 层 | 技术 | +|----|------| +| 前端 | React 18 + TypeScript + Vite + Zustand | +| 桌面壳 | Tauri 2 (WebView) | +| 后端 | Rust + DuckDB (bundled) | +| 移动端 | Tauri Android | +| 状态管理 | Zustand | +| 路由 | React Router v6 | + +## 目录结构 + +``` +├── src/ # React 前端 +│ ├── api/ # Tauri IPC 封装 +│ ├── components/ # 通用组件 (Layout) +│ ├── pages/ # 页面 +│ │ ├── Landing.tsx # 项目首页 (响应式, 含 APK 下载) +│ │ ├── Login.tsx # 登录/注册 (邮箱/手机 + 验证码) +│ │ ├── Home.tsx # 首页/今日推荐 +│ │ ├── Closet.tsx # 衣橱列表 +│ │ ├── AddClothing.tsx # 添加衣物 +│ │ ├── ClothingDetail.tsx +│ │ ├── Outfits.tsx # 搭配推荐 +│ │ ├── Calendar.tsx # 穿搭日历 +│ │ └── Profile.tsx # 我的 (含 OTA 升级区) +│ ├── api/ +│ │ ├── index.ts # Tauri IPC 封装 +│ │ └── ota.ts # OTA 封装 (Tauri + Web 双路径) +│ ├── version.ts # 版本/构建号 (vite define 注入) +│ ├── stores/ # Zustand 状态 +│ ├── styles/ # 全局样式 +│ └── types/ # TS 类型 +├── server/ # OTA 服务端 (Express) +│ ├── index.js # 静态 dist + SPA fallback + /api/health +│ └── routes/ota.js # OTA check/bundle/manifest-web 接口 +├── scripts/ +│ ├── build-ota.mjs # OTA 打包 + minisign 签名 + latest.json +│ ├── ota-genkey.mjs # 生成 minisign 密钥对 +│ ├── upload-ota-r2.sh # OTA 包上传 R2 +│ └── ... # Android 构建/签名/上传脚本 +├── src-tauri/ # Rust 后端 +│ ├── src/ +│ │ ├── main.rs # 桌面入口 (薄壳) +│ │ ├── lib.rs # 应用逻辑 + mobile_entry_point + hotswap 插件 +│ │ ├── db.rs # DuckDB 数据层 +│ │ ├── models.rs # 数据模型 +│ │ ├── auth.rs # 认证 (验证码 1111) +│ │ └── mcp.rs # MCP 服务 +│ ├── Cargo.toml +│ ├── tauri.conf.json # 含 plugins.hotswap (OTA 端点 + 公钥) +│ └── capabilities/default.json +├── prototype/ # HTML 交互原型 +└── photograph/ # 竞品截图 +``` + +## 快速开始 + +### 前置要求 + +- [Node.js](https://nodejs.org) ≥ 18 +- [Rust](https://rustup.rs) ≥ 1.77 +- [Android Studio](https://developer.android.com/studio) (Android 构建) + +### 开发 + +```bash +npm install +npm run tauri dev # 桌面端开发 +``` + +### Android 构建 + +```bash +npm run tauri android init # 首次生成 Android 工程 +npm run tauri android dev # Android 设备调试 +npm run tauri android build # 生成 APK +``` + +## 关键设计 + +### 数据库 (DuckDB) + +- 数据文件: `%APP_DATA%/wardrobe/wardrobe.duckdb`, Android 下存于应用私有目录 +- 表: `users`, `clothing_items`, `outfits`, `daily_records` +- 读写均通过 `Mutex` 串行化,保证线程安全 + +### 优雅停机 + +- `ctrlc` 信号捕获 → 设置 shutdown flag +- 窗口关闭事件 → 记录日志、释放连接 +- DuckDB 连接在进程结束时由 OS 正常关刷 + +### 验证码 (临时) + +- 统一固定为 `1111` +- 有效期 5 分钟,成功后自失效 +- 注册: 邮箱 或 手机号 (二选一) + `1111` + +### MCP 服务 + +详见 [MCP.md](MCP.md)。通过 `mcp_list_tools` / `mcp_call_tool` IPC 命令暴露 10 个数据管理工具。 + +## Android CI/CD + +参考 [D:\workbench\iboard](../iboard) 的 Gitea Actions 部署模式。 + +### 触发方式 + +推送 `android-*` 分支 (如 `android/release`) 自动触发构建。 + +### 流程 (`.gitea/workflows/android-build.yml`) + +``` +push android-* → checkout → mise( node/rust ) → JDK 17 + → 定位可复用 Android SDK (优先 runner 预装 /usr/local/lib/android/sdk, 其次 CI 缓存, 最后下载) + → 缓存复用 NDK 27.2 / Rust 工具链 / Tauri target + → tauri android init --ci + → 从配置中心拉取全部密钥 (签名 + R2) + → scripts/ci/android-signing.sh 注入签名 + → tauri android build --apk → 断言签名生效 + → scripts/upload-r2.sh 用 wrangler 上传 APK 到 R2 公开桶 (store/data/android/wardrobe.apk) + → 输出公共下载地址 (https://pub-...r2.dev/data/android/wardrobe.apk) +``` + +### CI secrets (仅配置中心连接) + +| Secret | 说明 | +|--------|------| +| `CONFIG_CENTER_URL` | 配置中心地址 (未设时回退 `http://bh.vps.honor3.com:8008`) | +| `CONFIG_CENTER_TOKEN` | 配置中心访问 token | + +所有业务密钥 (签名 keystore / R2 token) 一律来自配置中心,不进 Gitea secrets。 + +### 配置中心存储约定 + +| 项目 | 分组 | key | 用途 | +|------|------|-----|------| +| `service-wardrobe` | `signing` | `ANDROID_KEYSTORE_B64` | keystore base64 (JKS RSA 2048) | +| `service-wardrobe` | `signing` | `ANDROID_KEY_ALIAS` | `wardrobe` | +| `service-wardrobe` | `signing` | `ANDROID_KEY_PASSWORD` | store/key 密码 | +| `service-wardrobe` | `ota` | `MINISIGN_PRIVATE_KEY` | OTA 包 minisign 私钥 (整段 .key, 多行) | +| `service-wardrobe` | `ota` | `CF_OTA_ENDPOINT` | OTA 检查端点 (部署参考) | +| `CommonExternalService` | `cloudflare` | `r2/CF_API_TOKEN` | Cloudflare API token (wrangler 上传) | +| `CommonExternalService` | `cloudflare` | `r2/CF_R2_PUBLIC_URL` | R2 公共访问域名 | + +CI 的 `Fetch config center` 步骤拉取以上全部 key 注入环境变量,签名与上传步骤均不再依赖 Gitea secrets。 +建议用 `CONFIG_CENTER_TOKEN` 为配置中心加鉴权(当前 REST API 无鉴权,任何人可读/写)。 + +### 本地构建 (可选, WSL) + +```bash +bash scripts/build-apk.sh debug # 或 release +# 脚本自动复用本机 Android SDK/NDK (~/android-sdk, NDK 27.2.x) +``` + +## 项目首页 (Landing) + +`/` 为公开的项目首页 (`src/pages/Landing.tsx`),响应式适配桌面与手机 web: + +- 项目简介 + 功能特性 + 技术栈 +- **APK 下载**: 按钮直链 R2 公共桶 `https://pub-...r2.dev/data/android/wardrobe.apk`(由 android-build.yml 上传),附版本号、复制链接与安装提示 +- web 新版本提示: 启动时请求 `/api/ota/manifest-web`,有新构建号时底部浮出"刷新"横幅 +- 登录后的应用首页迁移到 `/home`(底部导航同步更新) + +部署: `npm run build && OTA_PACKAGE_DIR=ota-package npm start`,server 同时托管首页 dist 与 OTA 接口。 + +## OTA 升级 + +参考 [iboard](../iboard),采用 **tauri-plugin-hotswap** 前端热替换方案(minisign 签名 + 下载 + 校验 + 原子替换),升级不经过应用市场。 + +### 原理 + +- **Tauri 客户端**: 启动时 `notifyReady()`;检查更新走插件内置 `checkUpdate()`,下载/校验/替换/回滚均由插件完成(公钥在 `src-tauri/tauri.conf.json` → `plugins.hotswap.pubkey`,端点在 `plugins.hotswap.endpoint`) +- **Web 浏览器**: 只比对 `/api/ota/manifest-web` 的 `build_id` 与当前 `BUILD_ID`,提示刷新(Vite 指纹会缓存失效) +- 构建号 `__BUILD_ID__`(YYYYMMDD.HHmmss)由 `vite.config.ts` 每次构建注入 + +### 服务端 (`server/`) + +| 接口 | 说明 | +|------|------| +| `GET /api/ota/check/:seq` | 有新包 → 200 + manifest;无 → 204 | +| `GET /api/ota/bundle/:file` | 下载 tar.gz 升级包 (流式) | +| `GET /api/ota/manifest-web` | Web 简化版 manifest | +| `GET /api/health` | 健康检查 | + +数据源: 环境变量 `OTA_PACKAGE_DIR`(默认 `ota-package/`)下的 `latest.json` + `wardrobe-ota.tar.gz`。 +`PORT` 默认 `3002`(与 iboard 的 3001 同机共存)。可选 `OTA_PUBLIC_BASE` 让客户端直连 R2 下载 bundle。 + +### 本地生成 OTA 包 + +```bash +npm run build # 先构建 dist +minisign -G -W -p ota-package/hotswap.pub -s ota-package/hotswap.key # 或 npm run ota:genkey +npm run build:ota -- --notes "v0.2 更新说明" # 打包 + 签名 + 写 latest.json +npm start # 起服务, 手动验收 /api/ota/* +``` + +首次需安装 [minisign](https://jedisct1.github.io/minisign/)(Windows: scoop/choco 或官方 win64 二进制)。 +生成的 `hotswap.key` 请存到配置中心 `service-wardrobe / ota / MINISIGN_PRIVATE_KEY`(不要提交 git), +`hotswap.pub` 的公钥行写入 `src-tauri/tauri.conf.json`。 + +### OTA 发布 CI (`.gitea/workflows/ota-build.yml`) + +手动 `workflow_dispatch` 触发: + +``` +build frontend → npm run build + → apt install minisign + → 从配置中心拉取 MINISIGN_PRIVATE_KEY (service-wardrobe/ota) + CF_API_TOKEN (cloudflare) + → node scripts/build-ota.mjs 打包+签名 + → scripts/upload-ota-r2.sh 上传到 R2 (store/ota/wardrobe-ota.tar.gz + latest.json) +``` + +### 客户端升级操作 + +「我的」页 → 「检查更新 (OTA)」: + +- 检查更新 / 立即升级(带进度)/ 回滚(仅 OTA 覆盖时显示) +- Web 端仅可检查新构建号提示刷新 + +## mise 本地工具链 + +本项目用 [mise](https://mise.jdx.dev) 统一管理 Node/npm/Rust 版本,仓库根目录 `.mise.toml` 声明工具版本,`cd` 进入目录后自动激活。 + +```toml +[tools] +node = "24.21.0" +npm = "12.0.2" +rust = "stable" +``` + +### Windows 安装 (已完成) + +1. 下载 `mise-v*-windows-x64.zip` → 解压到 `~\.local\bin\mise.exe` +2. 用户 PATH 追加: `~\.local\bin` 与 `~\AppData\Local\mise\shims` +3. PowerShell `$PROFILE` 添加: `& "$env:USERPROFILE\.local\bin\mise.exe" activate powershell` +4. `mise use -g node@24.21.0 npm@12.0.2 rust@stable` 安装全局工具 + +> 注意: Windows 下 mise 数据目录在 `~\AppData\Local\mise`,shims 位于 `~\AppData\Local\mise\shims` (非 `~\.local\share\mise\shims`)。 + +## 原型 + +浏览器打开 `prototype/index.html` 查看可交互原型。 + +## License + +Private \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..f3e837a --- /dev/null +++ b/index.html @@ -0,0 +1,12 @@ + + + + + + Wardrobe + + +
+ + + \ No newline at end of file diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..db077aa --- /dev/null +++ b/package-lock.json @@ -0,0 +1,4211 @@ +{ + "name": "wardrobe", + "version": "0.1.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "wardrobe", + "version": "0.1.0", + "dependencies": { + "@tauri-apps/api": "^2.0.0", + "@tauri-apps/plugin-shell": "^2.0.0", + "cors": "^2.8.5", + "dotenv": "^16.4.5", + "express": "^4.21.2", + "react": "^18.3.1", + "react-dom": "^18.3.1", + "react-router-dom": "^6.26.0", + "tauri-plugin-hotswap-api": "^0.0.1", + "zustand": "^4.5.2" + }, + "devDependencies": { + "@tauri-apps/cli": "^2.0.0", + "@types/react": "^18.3.3", + "@types/react-dom": "^18.3.0", + "@typescript-eslint/eslint-plugin": "^7.14.0", + "@typescript-eslint/parser": "^7.14.0", + "@vitejs/plugin-react": "^4.3.1", + "eslint": "^8.57.0", + "typescript": "^5.5.3", + "vite": "^5.3.3", + "vite-plugin-singlefile": "^2.0.1" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.29.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.29.7", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.29.7", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.29.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.7", + "@babel/generator": "^7.29.7", + "@babel/helper-compilation-targets": "^7.29.7", + "@babel/helper-module-transforms": "^7.29.7", + "@babel/helpers": "^7.29.7", + "@babel/parser": "^7.29.7", + "@babel/template": "^7.29.7", + "@babel/traverse": "^7.29.7", + "@babel/types": "^7.29.7", + "@jridgewell/remapping": "^2.3.5", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/core/node_modules/semver": { + "version": "6.3.1", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/generator": { + "version": "7.29.8", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.8", + "@babel/types": "^7.29.8", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", + "jsesc": "^3.0.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.29.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.29.7", + "@babel/helper-validator-option": "^7.29.7", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/semver": { + "version": "6.3.1", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-globals": { + "version": "7.29.7", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.29.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.29.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.29.7", + "@babel/helper-validator-identifier": "^7.29.7", + "@babel/traverse": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.29.7", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.29.7", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.29.7", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.29.7", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.29.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.29.8", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.8" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-self": { + "version": "7.29.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-source": { + "version": "7.29.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/template": { + "version": "7.29.7", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.7", + "@babel/parser": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.29.8", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.7", + "@babel/generator": "^7.29.8", + "@babel/helper-globals": "^7.29.7", + "@babel/parser": "^7.29.8", + "@babel/template": "^7.29.7", + "@babel/types": "^7.29.8", + "debug": "^4.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.29.8", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.29.7", + "@babel/helper-validator-identifier": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz", + "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz", + "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz", + "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz", + "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz", + "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz", + "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz", + "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz", + "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz", + "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz", + "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz", + "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz", + "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz", + "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz", + "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz", + "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz", + "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz", + "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz", + "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz", + "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz", + "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz", + "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz", + "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.21.5", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.10.1", + "dev": true, + "license": "MIT", + "dependencies": { + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.12.2", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "2.1.4", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.6.0", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/eslintrc/node_modules/brace-expansion": { + "version": "1.1.18", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/@eslint/eslintrc/node_modules/minimatch": { + "version": "3.1.5", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/@eslint/js": { + "version": "8.57.1", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.13.0", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanwhocodes/object-schema": "^2.0.3", + "debug": "^4.3.1", + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/config-array/node_modules/brace-expansion": { + "version": "1.1.18", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/@humanwhocodes/config-array/node_modules/minimatch": { + "version": "3.1.5", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "2.0.3", + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.6.0", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@napi-rs/lzma-linux-x64-gnu": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@napi-rs/lzma-linux-x64-gnu/-/lzma-linux-x64-gnu-1.5.1.tgz", + "integrity": "sha512-oTXEIha4SsuXdTA4Iyskj0kpdx2yVXdhd75c2v3xGrHFfVMsbhTPZU/nMPL4sWKo4pBHm3aucLaqGlF696dTyQ==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^22.20 || ^24.12 || >=25" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@remix-run/router": { + "version": "1.23.4", + "license": "MIT", + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.0-beta.27", + "dev": true, + "license": "MIT" + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.63.1.tgz", + "integrity": "sha512-UZ8sUxPTiHWYX9QNdJedb1kDZSpS1t/VPWBWGSgqHNi9w3Cu6IXvu2mzbhiTiPvtrqgTQJ+zqiAq2iPIPilpaQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.63.1.tgz", + "integrity": "sha512-cQ4nFQABN5cDvDpbvJ7bMStCpnaVxynZrRMfUJYgxcIk9Sh54FIO1vtfkg0B69REjER77ioZ/ov+eAApx/KmLQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.63.1.tgz", + "integrity": "sha512-FQNqd1lRy/0QhDk3xeRIkSBiCpXCiDnZO3YLVdcDKN1UBiKToNftCzcXYNLshmPDUMlu2TdeS8tGcsU6f3YF1Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.63.1.tgz", + "integrity": "sha512-pvD16V939D3CloK0+qikpGaxiPrDUXTe7Y5cWOMkMSy7m1cawa8EGy/kXYi/G/cKAC4HDAbSnzCIk1WmsoOKXg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.63.1.tgz", + "integrity": "sha512-pcFGeL2345VwdTnJhA6zLbew+YgWB0qBG2+dMtXjCicf6+rm6kO6cOoh5VnTe0ZMrMRgRyuHmCJxZWrIdzYuOw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.63.1.tgz", + "integrity": "sha512-mRJlqSRulVzcKq/LKA6ICSIc3K/l4fzlVn/gePn2nXIHy8seRi5z/eeRE0d/XMBxcMldiXtQTSpRj0tkkC3g8Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.63.1.tgz", + "integrity": "sha512-YDUNvVM85TI3g/1OpnqKP1h4NeW/j64DfWMf+G3M809xNk1bJSnpFp4sh83NpmVE5DXnkh8ULor4LTVZKoYLHw==", + "cpu": [ + "arm" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.63.1.tgz", + "integrity": "sha512-7Mcn71p9ZuQFAj+h+dhQXy/yeLePRS2yKRnmW1DijA9thKO5qap0GNOIQK4yQ6iP3SU0Mrb/yWo8h8vgRba8lw==", + "cpu": [ + "arm" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.63.1.tgz", + "integrity": "sha512-4YiLQTX6U4CSl0L9cluep9A9W6UmTfqBDc2/CH6wlu54pl4E7Jn3cOD8oxzvBDEGk/JMKgJ47C8g+radF7mwvg==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.63.1.tgz", + "integrity": "sha512-2ra8F7w8OquwZN9z2/fKFnli69wa8PLwaVzRMIPGb13ByMJwC28Fbp8YcVGoUhlYMTt7j5j9bNgpysrN2UM+vw==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-gnu": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.63.1.tgz", + "integrity": "sha512-Sy20ncyhjmBP0Ml+UvQbimjlk6VFgjW5uNP+qqwHB00mTE8Bl2C1TuHTlRwK2YoXeZbee5lP2XevBWVkAQAtSQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-musl": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.63.1.tgz", + "integrity": "sha512-noITLp8oNjYliPnGWmLyelIHwULGqbHloQHGw1rtxbWhTuWooRpnZarZQJ1y9EUC4szuCusCc+HEpUtxpIwYvA==", + "cpu": [ + "loong64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-gnu": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.63.1.tgz", + "integrity": "sha512-hlxxXd+F1mWiAcaFR7Sv9ZQT6m6UfI8+Vy/kFJzztq2pDMU/0wZ9sish0iszNZvsQDo8Gc0i5yuFEOz5dDf6fA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-musl": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.63.1.tgz", + "integrity": "sha512-EF7OpqQTQ/BvGqLzUi4rEHuagCV9MugAUXSHemwPW5vxZ75RR+jxO/2j95Ph2dalMpFHSVECjRoioHZgA9zOYA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.63.1.tgz", + "integrity": "sha512-wQO3JesW9PRkwlabQ27y7sPfVOOTLRG73I4F2UYHG5PXun3J9U3y+b7ezVKSYbsvSKGQ1k1cq8Qlun4C9kLt3w==", + "cpu": [ + "riscv64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-musl": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.63.1.tgz", + "integrity": "sha512-ouAGwhO6wHRXdnOVCOsB0tRFkA7nhNB2Nwax6oECXN0YiN8EYUTBAOudADOB1PI+yDL61TeNx/u7MVCzksNbkQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.63.1.tgz", + "integrity": "sha512-q2R38Sn+1J8RxhfJ+T54wSWmyKXWec+9jgDfqO2AtArEqHO5R2aeayp5H5OYLr5UYDVGsVaZPEFUooMhYCdz5A==", + "cpu": [ + "s390x" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.63.1.tgz", + "integrity": "sha512-gfI5T24WLLuFfSKw7Go/zDXjAAV0fny0swTaDv+WjK7vqcw4cRhFfdsyKL1n+ukI+ooBxn3bVQnyrn06WpI50w==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.63.1.tgz", + "integrity": "sha512-4h6XqthmB4Hspji84wvgk+ElodTsGj+dbZqHJHHtKxj4mYq0ANSEEPX9ys3moJueqsRjwpaJYH7874Itwnj2ow==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-openbsd-x64": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.63.1.tgz", + "integrity": "sha512-dlfCOa87o1VAYegLQ9EKilx2JCeRofiyPGhTCmqnuXZ6bMPiycO1rq1+sKoulAp7pGLIsTIw+1x5R+zgh5LhhA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ] + }, + "node_modules/@rollup/rollup-openharmony-arm64": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.63.1.tgz", + "integrity": "sha512-cjkLbOlfcm3QGhMM1J5zaZjsw1GggbN6rw9UTSSRrPrR1KkcXnN7Uq9rPw34xImQ9VOY9GN+6u2Zj80B9ptkcw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.63.1.tgz", + "integrity": "sha512-Li1KdUnWGE4N3e1F/B4RTB1ms+nG4WBgjByO46pkeBVX/2UBsY53xf5vK9WygVmnH3RwncIST7lkSdLSY6P9lg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.63.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.63.1.tgz", + "integrity": "sha512-t4ZYOSoLTgwhuFMrmTMLx/+i1DQVK7HYqMc6kY46EApwi8X0nIVphzdNoThU3xt6n+N5urG1/gxBdCaKDLavfg==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-gnu": { + "version": "4.63.1", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.63.1", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@tauri-apps/api": { + "version": "2.11.1", + "license": "Apache-2.0 OR MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/tauri" + } + }, + "node_modules/@tauri-apps/cli": { + "version": "2.11.4", + "dev": true, + "license": "Apache-2.0 OR MIT", + "bin": { + "tauri": "tauri.js" + }, + "engines": { + "node": ">= 10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/tauri" + }, + "optionalDependencies": { + "@tauri-apps/cli-darwin-arm64": "2.11.4", + "@tauri-apps/cli-darwin-x64": "2.11.4", + "@tauri-apps/cli-linux-arm-gnueabihf": "2.11.4", + "@tauri-apps/cli-linux-arm64-gnu": "2.11.4", + "@tauri-apps/cli-linux-arm64-musl": "2.11.4", + "@tauri-apps/cli-linux-riscv64-gnu": "2.11.4", + "@tauri-apps/cli-linux-x64-gnu": "2.11.4", + "@tauri-apps/cli-linux-x64-musl": "2.11.4", + "@tauri-apps/cli-win32-arm64-msvc": "2.11.4", + "@tauri-apps/cli-win32-ia32-msvc": "2.11.4", + "@tauri-apps/cli-win32-x64-msvc": "2.11.4" + } + }, + "node_modules/@tauri-apps/cli-darwin-arm64": { + "version": "2.11.4", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-arm64/-/cli-darwin-arm64-2.11.4.tgz", + "integrity": "sha512-1ryOF3ZhpZ/nemHV5zVwBQBz9jDGKmKPvWPADOhc83ig0P4bMc2iER4NbC6r9sjeIZ6RVQ4g3RZIYvezhcl4TQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/cli-darwin-x64": { + "version": "2.11.4", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-x64/-/cli-darwin-x64-2.11.4.tgz", + "integrity": "sha512-uFsGQAAfuyz1k/yGLmkWfkBlgKAqZfxqlHmLWx81QU27RJWfmbNHCIq8T8w1e+VClleIuZUjpHWfoE4E3DLo3A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/cli-linux-arm-gnueabihf": { + "version": "2.11.4", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm-gnueabihf/-/cli-linux-arm-gnueabihf-2.11.4.tgz", + "integrity": "sha512-IaHZn5CdBL21oUmjiVOS1ctw6Ip1O0pjp70FwOWmYz1myWe0SY96ZIj2FYf7pT0m8bI2h/hrs5ZbEXXh44/MkQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/cli-linux-arm64-gnu": { + "version": "2.11.4", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-gnu/-/cli-linux-arm64-gnu-2.11.4.tgz", + "integrity": "sha512-N41/ukTRVe6XSuUTESuFdGeOW2i7k62tK+6gHK5Kd5/q5RPvvi19GaWAVPPb9u95HSGmTChSolBfzynUsssFaA==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/cli-linux-arm64-musl": { + "version": "2.11.4", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-musl/-/cli-linux-arm64-musl-2.11.4.tgz", + "integrity": "sha512-v277UnT/fB64xAfSroL5N3Km3tLmvATWqJJw/wRI+g6o+HkeD0slyE7gOhNs1MbjE41R7bQOTxMVoL3aomUJmw==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/cli-linux-riscv64-gnu": { + "version": "2.11.4", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-riscv64-gnu/-/cli-linux-riscv64-gnu-2.11.4.tgz", + "integrity": "sha512-qqgNkQ2u1yZHxjhxsZaxUtRDW8dIqIYm33rx/mzwQv0SfY9x1B+iraj8vWeFiXjjSVVhEMepXSOts1TqPzvXNQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/cli-linux-x64-gnu": { + "version": "2.11.4", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-gnu/-/cli-linux-x64-gnu-2.11.4.tgz", + "integrity": "sha512-2VRNWl84FOH0m2giiDkO2h0QXlcMJeX+zJDpI5kDIQAx6s+geF3v48F4DXfJez4GS/FdoDGnPnw1C2iYGbQ7bQ==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/cli-linux-x64-musl": { + "version": "2.11.4", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-musl/-/cli-linux-x64-musl-2.11.4.tgz", + "integrity": "sha512-o9GyhYor/nc7xarmwDE3ka2szuW3uuZzXjHWh64Q8YX5AtSgxdQkFWzrY4O8KiGtVNvFBI14H3Q49Qj5TOIP/A==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/cli-win32-arm64-msvc": { + "version": "2.11.4", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-arm64-msvc/-/cli-win32-arm64-msvc-2.11.4.tgz", + "integrity": "sha512-ld5Ehb598m0VkYyylRPNeCFsBe/km0jxis6KgMpl3IGY6I/i1RwQXO05I1AsXUXO2WC6AvB/Lw4qTf/asiuEiQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/cli-win32-ia32-msvc": { + "version": "2.11.4", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-ia32-msvc/-/cli-win32-ia32-msvc-2.11.4.tgz", + "integrity": "sha512-12Hxi0XX/H5VFxO/bGgHkFWhml9VMgEOu9CidjeCeTNQ1l6fpUlbiGgSP7CLI3PFtW9/FfbeHieZ+kyWK5H7CA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/cli-win32-x64-msvc": { + "version": "2.11.4", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/plugin-shell": { + "version": "2.3.6", + "license": "MIT OR Apache-2.0", + "dependencies": { + "@tauri-apps/api": "^2.11.0" + } + }, + "node_modules/@types/babel__core": { + "version": "7.20.5", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.27.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.28.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.28.2" + } + }, + "node_modules/@types/estree": { + "version": "1.0.9", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/prop-types": { + "version": "15.7.15", + "devOptional": true, + "license": "MIT" + }, + "node_modules/@types/react": { + "version": "18.3.31", + "devOptional": true, + "license": "MIT", + "dependencies": { + "@types/prop-types": "*", + "csstype": "^3.2.2" + } + }, + "node_modules/@types/react-dom": { + "version": "18.3.7", + "dev": true, + "license": "MIT", + "peerDependencies": { + "@types/react": "^18.0.0" + } + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "7.18.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/regexpp": "^4.10.0", + "@typescript-eslint/scope-manager": "7.18.0", + "@typescript-eslint/type-utils": "7.18.0", + "@typescript-eslint/utils": "7.18.0", + "@typescript-eslint/visitor-keys": "7.18.0", + "graphemer": "^1.4.0", + "ignore": "^5.3.1", + "natural-compare": "^1.4.0", + "ts-api-utils": "^1.3.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^7.0.0", + "eslint": "^8.56.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "7.18.0", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "@typescript-eslint/scope-manager": "7.18.0", + "@typescript-eslint/types": "7.18.0", + "@typescript-eslint/typescript-estree": "7.18.0", + "@typescript-eslint/visitor-keys": "7.18.0", + "debug": "^4.3.4" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.56.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "7.18.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "7.18.0", + "@typescript-eslint/visitor-keys": "7.18.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "7.18.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/typescript-estree": "7.18.0", + "@typescript-eslint/utils": "7.18.0", + "debug": "^4.3.4", + "ts-api-utils": "^1.3.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.56.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/types": { + "version": "7.18.0", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "7.18.0", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "@typescript-eslint/types": "7.18.0", + "@typescript-eslint/visitor-keys": "7.18.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "minimatch": "^9.0.4", + "semver": "^7.6.0", + "ts-api-utils": "^1.3.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "7.18.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.4.0", + "@typescript-eslint/scope-manager": "7.18.0", + "@typescript-eslint/types": "7.18.0", + "@typescript-eslint/typescript-estree": "7.18.0" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.56.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "7.18.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "7.18.0", + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^18.18.0 || >=20.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@ungap/structured-clone": { + "version": "1.4.0", + "dev": true, + "license": "ISC" + }, + "node_modules/@vitejs/plugin-react": { + "version": "4.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.28.0", + "@babel/plugin-transform-react-jsx-self": "^7.27.1", + "@babel/plugin-transform-react-jsx-source": "^7.27.1", + "@rolldown/pluginutils": "1.0.0-beta.27", + "@types/babel__core": "^7.20.5", + "react-refresh": "^0.17.0" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "peerDependencies": { + "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" + } + }, + "node_modules/accepts": { + "version": "1.3.8", + "license": "MIT", + "dependencies": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/acorn": { + "version": "8.18.0", + "dev": true, + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "dev": true, + "license": "MIT", + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/ajv": { + "version": "6.15.0", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "dev": true, + "license": "Python-2.0" + }, + "node_modules/array-flatten": { + "version": "1.1.1", + "license": "MIT" + }, + "node_modules/array-union": { + "version": "2.1.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "dev": true, + "license": "MIT" + }, + "node_modules/baseline-browser-mapping": { + "version": "2.11.22", + "dev": true, + "license": "Apache-2.0", + "bin": { + "baseline-browser-mapping": "dist/cli.cjs" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/body-parser": { + "version": "1.20.8", + "license": "MIT", + "dependencies": { + "bytes": "~3.1.2", + "content-type": "~1.0.5", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "~1.2.0", + "http-errors": "~2.0.1", + "iconv-lite": "~0.4.24", + "on-finished": "~2.4.1", + "qs": "~6.16.0", + "raw-body": "~2.5.3", + "type-is": "~1.6.18", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/body-parser/node_modules/debug": { + "version": "2.6.9", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/body-parser/node_modules/ms": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/body-parser/node_modules/qs": { + "version": "6.16.0", + "license": "BSD-3-Clause", + "dependencies": { + "es-define-property": "^1.0.1", + "side-channel": "^1.1.1" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/brace-expansion": { + "version": "2.1.4", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "dev": true, + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.28.9", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "baseline-browser-mapping": "^2.11.20", + "caniuse-lite": "^1.0.30001810", + "electron-to-chromium": "^1.5.420", + "node-releases": "^2.0.54", + "update-browserslist-db": "^1.3.2" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/browserslist/node_modules/caniuse-lite": { + "version": "1.0.30001810", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001810.tgz", + "integrity": "sha512-TITQPUkaz+aVk5GL6NhOdwk1aEaNTSDPsGFWrTuhKGtjTF70jL/Oht2W4c6rXUe5fu7Ie19VIahAXHIIiWWNeg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, + "node_modules/bytes": { + "version": "3.1.2", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/call-bound": { + "version": "1.0.4", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "dev": true, + "license": "MIT" + }, + "node_modules/concat-map": { + "version": "0.0.1", + "dev": true, + "license": "MIT" + }, + "node_modules/content-disposition": { + "version": "0.5.4", + "license": "MIT", + "dependencies": { + "safe-buffer": "5.2.1" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/content-type": { + "version": "1.0.5", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "dev": true, + "license": "MIT" + }, + "node_modules/cookie": { + "version": "0.7.2", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie-signature": { + "version": "1.0.7", + "license": "MIT" + }, + "node_modules/cors": { + "version": "2.8.6", + "license": "MIT", + "dependencies": { + "object-assign": "^4", + "vary": "^1" + }, + "engines": { + "node": ">= 0.10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/csstype": { + "version": "3.2.3", + "devOptional": true, + "license": "MIT" + }, + "node_modules/debug": { + "version": "4.4.3", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "dev": true, + "license": "MIT" + }, + "node_modules/depd": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/destroy": { + "version": "1.2.0", + "license": "MIT", + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/dir-glob": { + "version": "3.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/doctrine": { + "version": "3.0.0", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/dotenv": { + "version": "16.6.1", + "license": "BSD-2-Clause", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/ee-first": { + "version": "1.1.1", + "license": "MIT" + }, + "node_modules/electron-to-chromium": { + "version": "1.5.427", + "dev": true, + "license": "ISC" + }, + "node_modules/encodeurl": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.2", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/esbuild": { + "version": "0.21.5", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.21.5", + "@esbuild/android-arm": "0.21.5", + "@esbuild/android-arm64": "0.21.5", + "@esbuild/android-x64": "0.21.5", + "@esbuild/darwin-arm64": "0.21.5", + "@esbuild/darwin-x64": "0.21.5", + "@esbuild/freebsd-arm64": "0.21.5", + "@esbuild/freebsd-x64": "0.21.5", + "@esbuild/linux-arm": "0.21.5", + "@esbuild/linux-arm64": "0.21.5", + "@esbuild/linux-ia32": "0.21.5", + "@esbuild/linux-loong64": "0.21.5", + "@esbuild/linux-mips64el": "0.21.5", + "@esbuild/linux-ppc64": "0.21.5", + "@esbuild/linux-riscv64": "0.21.5", + "@esbuild/linux-s390x": "0.21.5", + "@esbuild/linux-x64": "0.21.5", + "@esbuild/netbsd-x64": "0.21.5", + "@esbuild/openbsd-x64": "0.21.5", + "@esbuild/sunos-x64": "0.21.5", + "@esbuild/win32-arm64": "0.21.5", + "@esbuild/win32-ia32": "0.21.5", + "@esbuild/win32-x64": "0.21.5" + } + }, + "node_modules/escalade": { + "version": "3.2.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-html": { + "version": "1.0.3", + "license": "MIT" + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "8.57.1", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.1.tgz", + "integrity": "sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==", + "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.4", + "@eslint/js": "8.57.1", + "@humanwhocodes/config-array": "^0.13.0", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "@ungap/structured-clone": "^1.2.0", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.2.2", + "eslint-visitor-keys": "^3.4.3", + "espree": "^9.6.1", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-scope": { + "version": "7.2.2", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/brace-expansion": { + "version": "1.1.18", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/eslint/node_modules/minimatch": { + "version": "3.1.5", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/espree": { + "version": "9.6.1", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.7.0", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/etag": { + "version": "1.8.1", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/express": { + "version": "4.22.2", + "license": "MIT", + "dependencies": { + "accepts": "~1.3.8", + "array-flatten": "1.1.1", + "body-parser": "~1.20.5", + "content-disposition": "~0.5.4", + "content-type": "~1.0.4", + "cookie": "~0.7.1", + "cookie-signature": "~1.0.6", + "debug": "2.6.9", + "depd": "2.0.0", + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "~1.3.1", + "fresh": "~0.5.2", + "http-errors": "~2.0.0", + "merge-descriptors": "1.0.3", + "methods": "~1.1.2", + "on-finished": "~2.4.1", + "parseurl": "~1.3.3", + "path-to-regexp": "~0.1.12", + "proxy-addr": "~2.0.7", + "qs": "~6.15.1", + "range-parser": "~1.2.1", + "safe-buffer": "5.2.1", + "send": "~0.19.0", + "serve-static": "~1.16.2", + "setprototypeof": "1.2.0", + "statuses": "~2.0.1", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.10.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/express/node_modules/debug": { + "version": "2.6.9", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/express/node_modules/ms": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-glob": { + "version": "3.3.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.8" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "dev": true, + "license": "MIT" + }, + "node_modules/fastq": { + "version": "1.20.3", + "dev": true, + "license": "ISC", + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "dev": true, + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/finalhandler": { + "version": "1.3.2", + "license": "MIT", + "dependencies": { + "debug": "2.6.9", + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "on-finished": "~2.4.1", + "parseurl": "~1.3.3", + "statuses": "~2.0.2", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/finalhandler/node_modules/debug": { + "version": "2.6.9", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/finalhandler/node_modules/ms": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/find-up": { + "version": "5.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "3.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.3", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/flatted": { + "version": "3.4.4", + "dev": true, + "license": "ISC" + }, + "node_modules/forwarded": { + "version": "0.2.0", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fresh": { + "version": "0.5.2", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "dev": true, + "license": "ISC" + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-proto": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "dev": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/glob/node_modules/brace-expansion": { + "version": "1.1.18", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/glob/node_modules/minimatch": { + "version": "3.1.5", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/globals": { + "version": "13.24.0", + "dev": true, + "license": "MIT", + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globby": { + "version": "11.1.0", + "dev": true, + "license": "MIT", + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graphemer": { + "version": "1.4.0", + "dev": true, + "license": "MIT" + }, + "node_modules/has-flag": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.4", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/http-errors": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "depd": "~2.0.0", + "inherits": "~2.0.4", + "setprototypeof": "~1.2.0", + "statuses": "~2.0.2", + "toidentifier": "~1.0.1" + }, + "engines": { + "node": ">= 0.8" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/iconv-lite": { + "version": "0.4.24", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ignore": { + "version": "5.3.2", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.1", + "dev": true, + "license": "MIT", + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "dev": true, + "license": "ISC", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "license": "ISC" + }, + "node_modules/ipaddr.js": { + "version": "1.9.1", + "license": "MIT", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "dev": true, + "license": "ISC" + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "license": "MIT" + }, + "node_modules/js-yaml": { + "version": "4.3.2", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/puzrin" + }, + { + "type": "github", + "url": "https://github.com/sponsors/nodeca" + } + ], + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsesc": { + "version": "3.1.0", + "dev": true, + "license": "MIT", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "dev": true, + "license": "MIT" + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "dev": true, + "license": "MIT" + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "dev": true, + "license": "MIT" + }, + "node_modules/json5": { + "version": "2.2.3", + "dev": true, + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/keyv": { + "version": "4.5.4", + "dev": true, + "license": "MIT", + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/locate-path": { + "version": "6.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "dev": true, + "license": "MIT" + }, + "node_modules/loose-envify": { + "version": "1.4.0", + "license": "MIT", + "dependencies": { + "js-tokens": "^3.0.0 || ^4.0.0" + }, + "bin": { + "loose-envify": "cli.js" + } + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "dev": true, + "license": "ISC", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/media-typer": { + "version": "0.3.0", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/merge-descriptors": { + "version": "1.0.3", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/merge2": { + "version": "1.4.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/methods": { + "version": "1.1.2", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/micromatch": { + "version": "4.0.8", + "dev": true, + "license": "MIT", + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime": { + "version": "1.6.0", + "license": "MIT", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/minimatch": { + "version": "9.0.9", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.2" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.19", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "dev": true, + "license": "MIT" + }, + "node_modules/negotiator": { + "version": "0.6.3", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/node-releases": { + "version": "2.0.55", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-inspect": { + "version": "1.13.4", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/on-finished": { + "version": "2.4.1", + "license": "MIT", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "dev": true, + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/optionator": { + "version": "0.9.4", + "dev": true, + "license": "MIT", + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "dev": true, + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/parseurl": { + "version": "1.3.3", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-to-regexp": { + "version": "0.1.13", + "license": "MIT" + }, + "node_modules/path-type": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "2.3.2", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/postcss": { + "version": "8.5.28", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.18", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/proxy-addr": { + "version": "2.0.7", + "license": "MIT", + "dependencies": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/punycode": { + "version": "2.3.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/qs": { + "version": "6.15.3", + "license": "BSD-3-Clause", + "dependencies": { + "es-define-property": "^1.0.1", + "side-channel": "^1.1.1" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/range-parser": { + "version": "1.2.1", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/raw-body": { + "version": "2.5.3", + "license": "MIT", + "dependencies": { + "bytes": "~3.1.2", + "http-errors": "~2.0.1", + "iconv-lite": "~0.4.24", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/react": { + "version": "18.3.1", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "18.3.1", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0", + "scheduler": "^0.23.2" + }, + "peerDependencies": { + "react": "^18.3.1" + } + }, + "node_modules/react-refresh": { + "version": "0.17.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-router": { + "version": "6.30.6", + "license": "MIT", + "dependencies": { + "@remix-run/router": "1.23.4" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "react": ">=16.8" + } + }, + "node_modules/react-router-dom": { + "version": "6.30.6", + "license": "MIT", + "dependencies": { + "@remix-run/router": "1.23.4", + "react-router": "6.30.6" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "react": ">=16.8", + "react-dom": ">=16.8" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/reusify": { + "version": "1.1.0", + "dev": true, + "license": "MIT", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "dev": true, + "license": "ISC", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rollup": { + "version": "4.63.1", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "1.0.9" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@napi-rs/lzma-linux-x64-gnu": "1.5.1", + "@rollup/rollup-android-arm-eabi": "4.63.1", + "@rollup/rollup-android-arm64": "4.63.1", + "@rollup/rollup-darwin-arm64": "4.63.1", + "@rollup/rollup-darwin-x64": "4.63.1", + "@rollup/rollup-freebsd-arm64": "4.63.1", + "@rollup/rollup-freebsd-x64": "4.63.1", + "@rollup/rollup-linux-arm-gnueabihf": "4.63.1", + "@rollup/rollup-linux-arm-musleabihf": "4.63.1", + "@rollup/rollup-linux-arm64-gnu": "4.63.1", + "@rollup/rollup-linux-arm64-musl": "4.63.1", + "@rollup/rollup-linux-loong64-gnu": "4.63.1", + "@rollup/rollup-linux-loong64-musl": "4.63.1", + "@rollup/rollup-linux-ppc64-gnu": "4.63.1", + "@rollup/rollup-linux-ppc64-musl": "4.63.1", + "@rollup/rollup-linux-riscv64-gnu": "4.63.1", + "@rollup/rollup-linux-riscv64-musl": "4.63.1", + "@rollup/rollup-linux-s390x-gnu": "4.63.1", + "@rollup/rollup-linux-x64-gnu": "4.63.1", + "@rollup/rollup-linux-x64-musl": "4.63.1", + "@rollup/rollup-openbsd-x64": "4.63.1", + "@rollup/rollup-openharmony-arm64": "4.63.1", + "@rollup/rollup-win32-arm64-msvc": "4.63.1", + "@rollup/rollup-win32-ia32-msvc": "4.63.1", + "@rollup/rollup-win32-x64-gnu": "4.63.1", + "@rollup/rollup-win32-x64-msvc": "4.63.1", + "fsevents": "~2.3.2" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "license": "MIT" + }, + "node_modules/scheduler": { + "version": "0.23.2", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0" + } + }, + "node_modules/semver": { + "version": "7.8.5", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/send": { + "version": "0.19.2", + "license": "MIT", + "dependencies": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "~0.5.2", + "http-errors": "~2.0.1", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "~2.4.1", + "range-parser": "~1.2.1", + "statuses": "~2.0.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/send/node_modules/debug": { + "version": "2.6.9", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/send/node_modules/debug/node_modules/ms": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/serve-static": { + "version": "1.16.3", + "license": "MIT", + "dependencies": { + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "~0.19.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/setprototypeof": { + "version": "1.2.0", + "license": "ISC" + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/side-channel": { + "version": "1.1.1", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.4", + "side-channel-list": "^1.0.1", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-list": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-map": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/slash": { + "version": "3.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/statuses": { + "version": "2.0.2", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/tauri-plugin-hotswap-api": { + "version": "0.0.1", + "license": "MIT OR Apache-2.0", + "peerDependencies": { + "@tauri-apps/api": ">=2.0.0" + } + }, + "node_modules/text-table": { + "version": "0.2.0", + "dev": true, + "license": "MIT" + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/toidentifier": { + "version": "1.0.1", + "license": "MIT", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/ts-api-utils": { + "version": "1.4.3", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "typescript": ">=4.2.0" + } + }, + "node_modules/type-check": { + "version": "0.4.0", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-fest": { + "version": "0.20.2", + "dev": true, + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/type-is": { + "version": "1.6.18", + "license": "MIT", + "dependencies": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/typescript": { + "version": "5.9.3", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/unpipe": { + "version": "1.0.0", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.3.3", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/use-sync-external-store": { + "version": "1.7.0", + "license": "MIT", + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" + } + }, + "node_modules/utils-merge": { + "version": "1.0.1", + "license": "MIT", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/vary": { + "version": "1.1.2", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/vite": { + "version": "5.4.21", + "dev": true, + "license": "MIT", + "dependencies": { + "esbuild": "^0.21.3", + "postcss": "^8.4.43", + "rollup": "^4.20.0" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^18.0.0 || >=20.0.0", + "less": "*", + "lightningcss": "^1.21.0", + "sass": "*", + "sass-embedded": "*", + "stylus": "*", + "sugarss": "*", + "terser": "^5.4.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + } + } + }, + "node_modules/vite-plugin-singlefile": { + "version": "2.3.3", + "dev": true, + "license": "MIT", + "dependencies": { + "micromatch": "^4.0.8" + }, + "engines": { + "node": ">18.0.0" + }, + "peerDependencies": { + "rollup": "^4.59.0", + "vite": "^5.4.21 || ^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/which": { + "version": "2.0.2", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "dev": true, + "license": "ISC" + }, + "node_modules/yallist": { + "version": "3.1.1", + "dev": true, + "license": "ISC" + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/zustand": { + "version": "4.5.7", + "license": "MIT", + "dependencies": { + "use-sync-external-store": "^1.2.2" + }, + "engines": { + "node": ">=12.7.0" + }, + "peerDependencies": { + "@types/react": ">=16.8", + "immer": ">=9.0.6", + "react": ">=16.8" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "immer": { + "optional": true + }, + "react": { + "optional": true + } + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..eee80ba --- /dev/null +++ b/package.json @@ -0,0 +1,44 @@ +{ + "name": "wardrobe", + "version": "0.1.0", + "private": true, + "type": "module", + "scripts": { + "dev": "vite", + "build": "tsc && vite build", + "preview": "vite preview", + "tauri": "tauri", + "android:dev": "tauri android dev", + "android:build": "tauri android build", + "check": "tsc --noEmit", + "lint": "eslint src --ext .ts,.tsx", + "dev:server": "node --watch --experimental-strip-types --no-warnings server/index.js", + "start": "node --experimental-strip-types --no-warnings server/index.js", + "build:ota": "node scripts/build-ota.mjs", + "ota:genkey": "node scripts/ota-genkey.mjs" + }, + "dependencies": { + "@tauri-apps/api": "^2.0.0", + "@tauri-apps/plugin-shell": "^2.0.0", + "cors": "^2.8.5", + "dotenv": "^16.4.5", + "express": "^4.21.2", + "react": "^18.3.1", + "react-dom": "^18.3.1", + "react-router-dom": "^6.26.0", + "tauri-plugin-hotswap-api": "^0.0.1", + "zustand": "^4.5.2" + }, + "devDependencies": { + "@tauri-apps/cli": "^2.0.0", + "@types/react": "^18.3.3", + "@types/react-dom": "^18.3.0", + "@typescript-eslint/eslint-plugin": "^7.14.0", + "@typescript-eslint/parser": "^7.14.0", + "@vitejs/plugin-react": "^4.3.1", + "eslint": "^8.57.0", + "typescript": "^5.5.3", + "vite": "^5.3.3", + "vite-plugin-singlefile": "^2.0.1" + } +} \ No newline at end of file diff --git a/photograph/微信图片_20260911094738_1_2.jpg b/photograph/微信图片_20260911094738_1_2.jpg new file mode 100644 index 0000000..f46b5db Binary files /dev/null and b/photograph/微信图片_20260911094738_1_2.jpg differ diff --git a/photograph/微信图片_20260911094739_2_2.jpg b/photograph/微信图片_20260911094739_2_2.jpg new file mode 100644 index 0000000..e640560 Binary files /dev/null and b/photograph/微信图片_20260911094739_2_2.jpg differ diff --git a/photograph/微信图片_20260911094740_3_2.jpg b/photograph/微信图片_20260911094740_3_2.jpg new file mode 100644 index 0000000..4f9db12 Binary files /dev/null and b/photograph/微信图片_20260911094740_3_2.jpg differ diff --git a/photograph/微信图片_20260911094741_4_2.jpg b/photograph/微信图片_20260911094741_4_2.jpg new file mode 100644 index 0000000..cdc48e8 Binary files /dev/null and b/photograph/微信图片_20260911094741_4_2.jpg differ diff --git a/photograph/微信图片_20260911094741_5_2.jpg b/photograph/微信图片_20260911094741_5_2.jpg new file mode 100644 index 0000000..78b6e53 Binary files /dev/null and b/photograph/微信图片_20260911094741_5_2.jpg differ diff --git a/photograph/微信图片_20260911094742_6_2.jpg b/photograph/微信图片_20260911094742_6_2.jpg new file mode 100644 index 0000000..3730d15 Binary files /dev/null and b/photograph/微信图片_20260911094742_6_2.jpg differ diff --git a/photograph/微信图片_20260911094743_7_2.jpg b/photograph/微信图片_20260911094743_7_2.jpg new file mode 100644 index 0000000..5721c6e Binary files /dev/null and b/photograph/微信图片_20260911094743_7_2.jpg differ diff --git a/photograph/微信图片_20260911094744_8_2.jpg b/photograph/微信图片_20260911094744_8_2.jpg new file mode 100644 index 0000000..a7e2b0e Binary files /dev/null and b/photograph/微信图片_20260911094744_8_2.jpg differ diff --git a/prototype/index.html b/prototype/index.html new file mode 100644 index 0000000..a50957d --- /dev/null +++ b/prototype/index.html @@ -0,0 +1,822 @@ + + + + + +Wardrobe - 衣物管理系统 原型设计 + + + +
+
+ 9:41 +
+ + +
+
+ + +
+ + +
+
+
+ 🌤️ +
+

24°C

+

多云 · 适合轻薄外套

+
+
+
+ 春 + 通勤 +
+
+ +
+

推荐搭配

+ +
+ +
+
+
+
+ 👕白衬衫 +
+
+ 👖卡其裤 +
+
+ 🧥米色风衣 +
+
+ 👟小白鞋 +
+
+
+
+
+ 通勤 + ⭐ 4.8 +
+

简约通勤风

+
+ + +
+
+
+ +
+

衣橱概览

+ +
+ +
+
+ 42 + 衣物总数 +
+
+ 15 + 搭配收藏 +
+
+ 73% + 利用率 +
+
+ +
+
+
👕
+ 上衣 + 12件 +
+
+
👖
+ 下装 + 8件 +
+
+
🧥
+ 外套 + 6件 +
+
+
👗
+ 连衣裙 + 5件 +
+
+
👟
+ 鞋履 + 6件 +
+
+
👜
+ 配饰 + 5件 +
+
+ +
+

需要关注

+
+
+
+ 🔔 +
+

3件衣物超过30天未穿

+ 考虑搭配或整理 +
+ +
+
+ 🧺 +
+

2件衣物待清洁

+ 白衬衫、运动T恤 +
+ +
+
+ +
+
+
+ + +
+ + +
+ + +
+ + + + + + + +
+ +
+ + + + + | + + + + +
+ +
+ + +
+ +
+
+
👕
+
+

白色衬衫

+ 上衣 · 3次/月 +
+
+
+
👖
+
+

卡其休闲裤

+ 下装 · 5次/月 +
+
+
+
🧥
+
+

米色风衣

+ 外套 · 2次/月 +
+
+
+
👗
+
+

碎花连衣裙

+ 连衣裙 · 1次/月 +
+
+
+
👟
+
+

白色运动鞋

+ 鞋履 · 8次/月 +
+
+
+
👜
+
+

棕色手提包

+ 配饰 · 4次/月 +
+
+
+
👔
+
+

条纹T恤

+ 上衣 · 6次/月 +
+
+
+
👖
+
+

蓝色牛仔裤

+ 下装 · 7次/月 +
+
+
+
🧶
+
+

灰色针织衫

+ 外套 · 3次/月 +
+
+
+ + + +
+
+
+ + +
+ + +
+
+
+
+ + + + + +
+

点击拍照或从相册选择

+ 支持 AI 自动识别衣物信息 +
+ +
+ +
+ 🤖 AI 将自动识别品类、颜色、材质 +
+ +
+

基础信息

+
+ + +
+
+ + +
+
+ +
+ + + + + + + + + +
+
+
+ + +
+
+ +
+

属性标签

+
+ 春 + 夏 + 秋 + 冬 +
+
+ 通勤 + 休闲 + 运动 + 约会 + 正式 +
+
+ + +
休闲正式
+
+
+ + +
薄厚
+
+
+ +
+

购买信息

+
+
+ + +
+
+ + +
+
+
+ + + +
+
+
+ + +
+ + +
+
+
+ 👕 +
+
+ +
+

白色衬衫

+
+ 上衣 + 白色 + 春 + 夏 + 通勤 +
+
+ +
+
+ 3 + 本月穿着 +
+
+ 18 + 总穿着次数 +
+
+ 545 + 拥有天数 +
+
+ +
+

基本信息

+
品类上衣
+
颜色白色
+
品牌优衣库
+
材质棉
+
购买日期2025-03-15
+
购买价格¥199
+
+ +
+

上次清洁

+
清洁日期2026-09-05
+
清洁方式机洗
+
距今6天
+
+ +
+

搭配记录

+
+
+
+ 👕👖👟 +
+

2026-09-10 · 通勤

+
+
+
+ 👕👗👜 +
+

2026-09-05 · 约会

+
+
+
+ +
+
+
+ + +
+ + +
+
+
+ +
+ + + + +
+
+
+ +
+ + + + +
+
+
+ +
+
+
+ 通勤首选 + 匹配度 92% +
+
+
👕白衬衫
+
👖卡其裤
+
🧥风衣
+
👟小白鞋
+
+
+

🤖 AI 解析

+

这套搭配以大地色系为主,白衬衫增添清爽感,适合春秋季通勤。风衣可应对早晚温差。

+
+
+ + +
+
+ +
+
+ 周末休闲 + 匹配度 87% +
+
+
👔条纹T恤
+
👖牛仔裤
+
👟运动鞋
+
+
+

🤖 AI 解析

+

休闲舒适的日常搭配,条纹元素增添活力,牛仔裤百搭耐看,适合周末出游。

+
+
+ + +
+
+ +
+
+ 约会穿搭 + 匹配度 85% +
+
+
👗碎花裙
+
👜手提包
+
👠单鞋
+
+
+

🤖 AI 解析

+

碎花连衣裙优雅浪漫,搭配精致手提包提升整体质感,适合约会或下午茶场合。

+
+
+ + +
+
+
+ +
+
+
+ + +
+ + +
+
+
+ +

2026年9月

+ +
+
+ 日一二三四五六 +
+
+ 12345 + 6789101112 + 13141516171819 + 20212223242526 + 27282930 +
+
+ +
+

9月11日 · 周四

+
+
+ 👕👖🧥👟 +
+
+

简约通勤风

+ 白衬衫 + 卡其裤 + 风衣 + 小白鞋 +
+
+
+ +
+

最近穿搭

+
+
+
+ 10 + 周三 +
+
+ 👔👖👟 +
+ 休闲 +
+
+
+ 9 + 周二 +
+
+ 👕👗👜 +
+ 约会 +
+
+
+ 8 + 周一 +
+
+ 👕👖🧥 +
+ 通勤 +
+
+
+ +
+
+
+ + +
+ + +
+
+
👤
+

时尚达人

+

已使用 545 天

+
+ +
+
+ 42 + 衣物 +
+
+ 15 + 搭配 +
+
+ 73% + 利用率 +
+
+ 28 + 天连续 +
+
+ + + + + +
+
+
+ + + + + + + + + +
+ + + + diff --git a/prototype/script.js b/prototype/script.js new file mode 100644 index 0000000..34b8bdc --- /dev/null +++ b/prototype/script.js @@ -0,0 +1,121 @@ +let currentPage = 'page-home'; +let currentView = 'grid'; + +function showPage(pageId) { + document.querySelectorAll('.page').forEach(p => p.classList.remove('active')); + document.getElementById(pageId).classList.add('active'); + currentPage = pageId; + + // Update nav + const navMap = { + 'page-home': 0, + 'page-outfit': 1, + 'page-add': 2, + 'page-closet': 3, + 'page-profile': 4, + 'page-detail': -1, + 'page-calendar': -1 + }; + const idx = navMap[pageId]; + if (idx >= 0) { + document.querySelectorAll('.nav-item').forEach((n, i) => { + n.classList.toggle('active', i === idx); + }); + } +} + +function navTo(el, pageId) { + document.querySelectorAll('.nav-item').forEach(n => n.classList.remove('active')); + el.classList.add('active'); + showPage(pageId); +} + +function setView(view) { + currentView = view; + const grid = document.getElementById('closet-grid'); + const list = document.getElementById('closet-list'); + const gridBtn = document.getElementById('grid-view-btn'); + const listBtn = document.getElementById('list-view-btn'); + + if (view === 'grid') { + grid.style.display = 'grid'; + list.classList.add('hidden'); + gridBtn.classList.add('active'); + listBtn.classList.remove('active'); + } else { + grid.style.display = 'none'; + list.classList.remove('hidden'); + gridBtn.classList.remove('active'); + listBtn.classList.add('active'); + } +} + +function filterCloset(btn, cat) { + document.querySelectorAll('.filter-bar:first-of-type .filter-btn').forEach(b => b.classList.remove('active')); + btn.classList.add('active'); + + const cards = document.querySelectorAll('.clothing-card'); + cards.forEach(card => { + if (cat === 'all' || card.dataset.cat === cat) { + card.style.display = ''; + } else { + card.style.display = 'none'; + } + }); +} + +function selectColor(el) { + document.querySelectorAll('.color-dot').forEach(d => d.classList.remove('active')); + el.classList.add('active'); +} + +function simulateUpload() { + const placeholder = document.getElementById('upload-placeholder'); + const preview = document.getElementById('upload-preview'); + if (placeholder && preview) { + placeholder.style.display = 'none'; + preview.classList.remove('hidden'); + } +} + +function resetUpload() { + const placeholder = document.getElementById('upload-placeholder'); + const preview = document.getElementById('upload-preview'); + if (placeholder && preview) { + placeholder.style.display = ''; + preview.classList.add('hidden'); + } +} + +function showToast(msg) { + const toast = document.getElementById('toast'); + toast.textContent = msg; + toast.classList.remove('hidden'); + setTimeout(() => toast.classList.add('hidden'), 1500); +} + +function confirmDelete() { + document.getElementById('delete-modal').classList.remove('hidden'); +} + +function hideModal() { + document.getElementById('delete-modal').classList.add('hidden'); +} + +function refreshOutfit() { + showToast('已刷新推荐搭配'); +} + +// Tag toggle +document.addEventListener('click', function(e) { + if (e.target.classList.contains('selectable-tag')) { + e.target.classList.toggle('active'); + } + if (e.target.classList.contains('filter-btn') && !e.target.closest('.filter-bar:first-of-type') && !e.target.closest('.filter-group')) { + const group = e.target.closest('.filter-btns'); + if (group) { + group.querySelectorAll('.filter-btn').forEach(b => b.classList.remove('active')); + e.target.classList.add('active'); + } + } +}); diff --git a/prototype/style.css b/prototype/style.css new file mode 100644 index 0000000..c26be28 --- /dev/null +++ b/prototype/style.css @@ -0,0 +1,1494 @@ +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +:root { + --bg: #FCF9F4; + --bg-card: #FFFFFF; + --bg-warm: #F5EDE6; + --text-primary: #1A1A1A; + --text-secondary: #666666; + --text-tertiary: #999999; + --accent: #E8C4A0; + --accent-light: #FFF6ED; + --accent-peach: #FFE8E0; + --border: #F0E8DF; + --danger: #E74C3C; + --success: #27AE60; + --radius: 16px; + --radius-sm: 10px; + --radius-xs: 6px; +} + +body { + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; + background: #1a1a1a; + display: flex; + justify-content: center; + align-items: center; + min-height: 100vh; + color: var(--text-primary); +} + +.phone-frame { + width: 390px; + height: 844px; + background: var(--bg); + border-radius: 40px; + overflow: hidden; + position: relative; + box-shadow: 0 20px 60px rgba(0,0,0,0.3); +} + +.status-bar { + display: flex; + justify-content: space-between; + align-items: center; + padding: 14px 28px 6px; + font-size: 15px; + font-weight: 600; + background: var(--bg); + position: relative; + z-index: 10; +} + +.status-icons { + display: flex; + gap: 6px; + align-items: center; +} + +.page { + display: none; + position: absolute; + top: 44px; + left: 0; + right: 0; + bottom: 80px; + overflow: hidden; +} + +.page.active { + display: flex; + flex-direction: column; +} + +.page-header { + display: flex; + justify-content: space-between; + align-items: center; + padding: 8px 20px 12px; + background: var(--bg); + position: relative; + z-index: 5; +} + +.page-title { + font-size: 28px; + font-weight: 700; + letter-spacing: -0.5px; +} + +.center-title { + position: absolute; + left: 50%; + transform: translateX(-50%); +} + +.greeting { + font-size: 14px; + color: var(--text-secondary); + margin-bottom: 2px; +} + +.scroll-content { + flex: 1; + overflow-y: auto; + padding: 0 20px; + -webkit-overflow-scrolling: touch; +} + +.scroll-content::-webkit-scrollbar { + display: none; +} + +.bottom-spacer { + height: 20px; +} + +.icon-btn { + width: 40px; + height: 40px; + border-radius: 50%; + border: none; + background: var(--bg-card); + display: flex; + align-items: center; + justify-content: center; + cursor: pointer; + color: var(--text-primary); + box-shadow: 0 2px 8px rgba(0,0,0,0.06); + transition: transform 0.15s; +} + +.icon-btn:active { + transform: scale(0.92); +} + +.icon-btn.danger { + color: var(--danger); +} + +.icon-btn.small { + width: 32px; + height: 32px; + font-size: 20px; + font-weight: 300; +} + +.text-btn { + background: none; + border: none; + color: var(--accent); + font-size: 14px; + font-weight: 500; + cursor: pointer; + padding: 8px 0; +} + +.save-text { + color: var(--text-primary); + font-weight: 600; +} + +.header-actions { + display: flex; + gap: 8px; +} + +/* Weather Card */ +.weather-card { + background: var(--bg-card); + border-radius: var(--radius); + padding: 16px; + margin-bottom: 20px; + box-shadow: 0 2px 12px rgba(0,0,0,0.04); +} + +.weather-info { + display: flex; + align-items: center; + gap: 12px; + margin-bottom: 10px; +} + +.weather-icon { + font-size: 32px; +} + +.weather-temp { + font-size: 22px; + font-weight: 700; +} + +.weather-desc { + font-size: 13px; + color: var(--text-secondary); +} + +.weather-tags { + display: flex; + gap: 6px; +} + +.tag { + padding: 4px 12px; + border-radius: 20px; + background: var(--accent-peach); + font-size: 12px; + color: #B8734A; + font-weight: 500; +} + +/* Section Headers */ +.section-header { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 12px; +} + +.section-header h2 { + font-size: 18px; + font-weight: 600; +} + +/* Outfit Card */ +.outfit-card { + background: var(--bg-card); + border-radius: var(--radius); + overflow: hidden; + margin-bottom: 24px; + box-shadow: 0 2px 12px rgba(0,0,0,0.04); +} + +.outfit-preview { + padding: 16px; +} + +.outfit-item-grid { + display: grid; + grid-template-columns: 1fr 1fr 1fr 1fr; + gap: 8px; +} + +.outfit-thumb { + aspect-ratio: 1; + border-radius: var(--radius-sm); + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + gap: 4px; +} + +.outfit-thumb span { + font-size: 28px; +} + +.outfit-thumb small { + font-size: 10px; + color: var(--text-secondary); +} + +.outfit-info { + padding: 0 16px 16px; +} + +.outfit-tags { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 6px; +} + +.occasion-tag { + padding: 3px 10px; + border-radius: 12px; + background: var(--accent-peach); + font-size: 12px; + color: #B8734A; + font-weight: 500; +} + +.rating { + font-size: 13px; + color: var(--text-secondary); +} + +.outfit-label { + font-size: 16px; + font-weight: 600; + margin-bottom: 12px; +} + +.outfit-actions { + display: flex; + gap: 8px; +} + +.action-btn { + flex: 1; + padding: 10px; + border-radius: var(--radius-sm); + border: none; + background: var(--text-primary); + color: white; + font-size: 13px; + font-weight: 500; + cursor: pointer; + display: flex; + align-items: center; + justify-content: center; + gap: 6px; + transition: opacity 0.15s; +} + +.action-btn:active { + opacity: 0.8; +} + +.action-btn.secondary { + background: var(--bg-warm); + color: var(--text-primary); +} + +.action-btn.save-btn { + background: var(--text-primary); +} + +.action-btn.refresh-btn { + background: var(--bg-warm); + color: var(--text-primary); +} + +/* Stats Row */ +.stats-row { + display: grid; + grid-template-columns: 1fr 1fr 1fr; + gap: 10px; + margin-bottom: 20px; +} + +.stat-card { + background: var(--bg-card); + border-radius: var(--radius-sm); + padding: 16px 12px; + text-align: center; + box-shadow: 0 2px 8px rgba(0,0,0,0.04); +} + +.stat-num { + display: block; + font-size: 24px; + font-weight: 700; + color: var(--text-primary); +} + +.stat-label { + display: block; + font-size: 12px; + color: var(--text-secondary); + margin-top: 2px; +} + +/* Category Grid */ +.category-grid { + display: grid; + grid-template-columns: 1fr 1fr 1fr; + gap: 10px; + margin-bottom: 24px; +} + +.category-item { + background: var(--bg-card); + border-radius: var(--radius-sm); + padding: 16px 12px; + text-align: center; + cursor: pointer; + box-shadow: 0 2px 8px rgba(0,0,0,0.04); + transition: transform 0.15s; +} + +.category-item:active { + transform: scale(0.96); +} + +.category-icon { + width: 48px; + height: 48px; + border-radius: 14px; + display: flex; + align-items: center; + justify-content: center; + font-size: 24px; + margin: 0 auto 8px; +} + +.category-item span { + display: block; + font-size: 13px; + font-weight: 500; +} + +.category-item small { + font-size: 11px; + color: var(--text-tertiary); +} + +/* Alert List */ +.alert-list { + margin-bottom: 20px; +} + +.alert-item { + display: flex; + align-items: center; + gap: 12px; + padding: 14px 16px; + background: var(--bg-card); + border-radius: var(--radius-sm); + margin-bottom: 8px; + box-shadow: 0 2px 8px rgba(0,0,0,0.04); + cursor: pointer; +} + +.alert-icon { + font-size: 20px; +} + +.alert-text { + flex: 1; +} + +.alert-text p { + font-size: 14px; + font-weight: 500; +} + +.alert-text small { + font-size: 12px; + color: var(--text-tertiary); +} + +/* Search Bar */ +.search-bar { + display: flex; + align-items: center; + gap: 10px; + background: var(--bg-card); + border-radius: var(--radius-sm); + padding: 10px 14px; + margin-bottom: 12px; + box-shadow: 0 2px 8px rgba(0,0,0,0.04); +} + +.search-input { + flex: 1; + border: none; + background: none; + font-size: 15px; + outline: none; + color: var(--text-primary); +} + +.search-input::placeholder { + color: var(--text-tertiary); +} + +/* Filter Bar */ +.filter-bar { + display: flex; + gap: 6px; + overflow-x: auto; + padding-bottom: 4px; + margin-bottom: 4px; +} + +.filter-bar::-webkit-scrollbar { + display: none; +} + +.filter-btn { + padding: 7px 16px; + border-radius: 20px; + border: none; + background: var(--bg-card); + color: var(--text-secondary); + font-size: 13px; + font-weight: 500; + cursor: pointer; + white-space: nowrap; + transition: all 0.2s; + box-shadow: 0 1px 4px rgba(0,0,0,0.04); +} + +.filter-btn.active { + background: var(--text-primary); + color: white; +} + +.filter-btn.small { + padding: 5px 12px; + font-size: 12px; +} + +.filter-sep { + color: var(--border); + display: flex; + align-items: center; + font-size: 16px; +} + +/* View Toggle */ +.view-toggle { + display: flex; + gap: 4px; + justify-content: flex-end; + margin-bottom: 12px; +} + +.view-btn { + width: 36px; + height: 36px; + border-radius: 8px; + border: none; + background: var(--bg-card); + color: var(--text-tertiary); + cursor: pointer; + display: flex; + align-items: center; + justify-content: center; + transition: all 0.2s; +} + +.view-btn.active { + background: var(--text-primary); + color: white; +} + +/* Closet Grid */ +.closet-grid { + display: grid; + grid-template-columns: 1fr 1fr 1fr; + gap: 10px; +} + +.clothing-card { + background: var(--bg-card); + border-radius: var(--radius-sm); + overflow: hidden; + cursor: pointer; + box-shadow: 0 2px 8px rgba(0,0,0,0.04); + transition: transform 0.15s; +} + +.clothing-card:active { + transform: scale(0.96); +} + +.clothing-img { + aspect-ratio: 1; + display: flex; + align-items: center; + justify-content: center; + font-size: 40px; +} + +.clothing-meta { + padding: 8px 10px; +} + +.clothing-name { + font-size: 12px; + font-weight: 500; + margin-bottom: 2px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +.clothing-meta small { + font-size: 10px; + color: var(--text-tertiary); +} + +/* Closet List */ +.closet-list.hidden { + display: none; +} + +.list-item { + display: flex; + align-items: center; + gap: 12px; + padding: 12px; + background: var(--bg-card); + border-radius: var(--radius-sm); + margin-bottom: 8px; + cursor: pointer; + box-shadow: 0 2px 8px rgba(0,0,0,0.04); +} + +.list-thumb { + width: 52px; + height: 52px; + border-radius: var(--radius-xs); + display: flex; + align-items: center; + justify-content: center; + font-size: 24px; + flex-shrink: 0; +} + +.list-info { + flex: 1; + min-width: 0; +} + +.list-info p { + font-size: 14px; + font-weight: 500; +} + +.list-info small { + font-size: 11px; + color: var(--text-tertiary); +} + +.list-freq { + font-size: 12px; + color: var(--text-secondary); + white-space: nowrap; +} + +/* Add Page */ +.photo-upload-area { + width: 100%; + aspect-ratio: 1; + border-radius: var(--radius); + overflow: hidden; + margin-bottom: 12px; + cursor: pointer; + background: var(--bg-card); + border: 2px dashed var(--border); + display: flex; + align-items: center; + justify-content: center; + transition: border-color 0.2s; +} + +.photo-upload-area:hover { + border-color: var(--accent); +} + +.upload-placeholder { + text-align: center; +} + +.upload-icon { + margin-bottom: 12px; +} + +.upload-placeholder p { + font-size: 15px; + color: var(--text-secondary); + margin-bottom: 4px; +} + +.upload-placeholder small { + font-size: 12px; + color: var(--text-tertiary); +} + +.upload-preview { + text-align: center; + padding: 40px; +} + +.upload-preview.hidden { + display: none; +} + +.preview-placeholder { + display: flex; + flex-direction: column; + align-items: center; + gap: 8px; +} + +.retake-btn { + margin-top: 16px; + padding: 8px 20px; + border-radius: 20px; + border: 1px solid var(--border); + background: none; + font-size: 13px; + cursor: pointer; +} + +.ai-badge { + display: flex; + align-items: center; + gap: 8px; + padding: 10px 14px; + background: var(--accent-light); + border-radius: var(--radius-sm); + font-size: 13px; + color: #B8734A; + margin-bottom: 20px; +} + +/* Forms */ +.form-section { + margin-bottom: 24px; +} + +.form-section h3 { + font-size: 16px; + font-weight: 600; + margin-bottom: 12px; +} + +.form-group { + margin-bottom: 14px; +} + +.form-group label { + display: block; + font-size: 13px; + font-weight: 500; + color: var(--text-secondary); + margin-bottom: 6px; +} + +.form-input, .form-select { + width: 100%; + padding: 12px 14px; + border-radius: var(--radius-sm); + border: 1px solid var(--border); + background: var(--bg-card); + font-size: 15px; + outline: none; + color: var(--text-primary); + appearance: none; + -webkit-appearance: none; +} + +.form-select { + background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); + background-repeat: no-repeat; + background-position: right 14px center; + padding-right: 40px; +} + +.form-input:focus, .form-select:focus { + border-color: var(--accent); +} + +.form-row { + display: flex; + gap: 12px; +} + +.form-group.half { + flex: 1; +} + +.color-picker { + display: flex; + gap: 8px; + flex-wrap: wrap; +} + +.color-dot { + width: 32px; + height: 32px; + border-radius: 50%; + cursor: pointer; + transition: transform 0.15s; + position: relative; +} + +.color-dot:active { + transform: scale(0.9); +} + +.color-dot.active::after { + content: '✓'; + position: absolute; + inset: 0; + display: flex; + align-items: center; + justify-content: center; + color: white; + font-size: 14px; + font-weight: 700; + text-shadow: 0 1px 2px rgba(0,0,0,0.3); +} + +.color-dot[style*="f5f5f5"].active::after { + color: var(--text-primary); + text-shadow: none; +} + +.tag-select { + display: flex; + gap: 8px; + flex-wrap: wrap; + margin-bottom: 14px; +} + +.selectable-tag { + padding: 7px 16px; + border-radius: 20px; + border: 1px solid var(--border); + background: var(--bg-card); + font-size: 13px; + cursor: pointer; + transition: all 0.2s; +} + +.selectable-tag.active { + background: var(--text-primary); + color: white; + border-color: var(--text-primary); +} + +.form-range { + width: 100%; + height: 4px; + -webkit-appearance: none; + background: var(--border); + border-radius: 2px; + outline: none; +} + +.form-range::-webkit-slider-thumb { + -webkit-appearance: none; + width: 20px; + height: 20px; + border-radius: 50%; + background: var(--text-primary); + cursor: pointer; +} + +.range-labels { + display: flex; + justify-content: space-between; + font-size: 11px; + color: var(--text-tertiary); + margin-top: 4px; +} + +.primary-btn { + width: 100%; + padding: 14px; + border-radius: var(--radius-sm); + border: none; + background: var(--text-primary); + color: white; + font-size: 16px; + font-weight: 600; + cursor: pointer; + margin-top: 8px; + transition: opacity 0.15s; +} + +.primary-btn:active { + opacity: 0.85; +} + +/* Detail Page */ +.detail-hero { + margin: 0 -20px; +} + +.detail-img { + width: 100%; + aspect-ratio: 1; + display: flex; + align-items: center; + justify-content: center; +} + +.detail-info-card { + padding: 20px 0 16px; +} + +.detail-info-card h2 { + font-size: 22px; + font-weight: 700; + margin-bottom: 10px; +} + +.detail-tags { + display: flex; + gap: 6px; + flex-wrap: wrap; +} + +.detail-tag { + padding: 4px 12px; + border-radius: 14px; + background: var(--bg-warm); + font-size: 12px; + color: var(--text-secondary); +} + +.detail-stats { + display: grid; + grid-template-columns: 1fr 1fr 1fr; + gap: 1px; + background: var(--border); + border-radius: var(--radius-sm); + overflow: hidden; + margin-bottom: 20px; +} + +.detail-stat { + background: var(--bg-card); + padding: 16px; + text-align: center; +} + +.detail-stat-num { + display: block; + font-size: 22px; + font-weight: 700; +} + +.detail-stat-label { + display: block; + font-size: 11px; + color: var(--text-secondary); + margin-top: 2px; +} + +.detail-section { + margin-bottom: 20px; +} + +.detail-section h3 { + font-size: 15px; + font-weight: 600; + margin-bottom: 10px; +} + +.info-row { + display: flex; + justify-content: space-between; + padding: 10px 0; + border-bottom: 1px solid var(--border); + font-size: 14px; +} + +.info-row span:first-child { + color: var(--text-secondary); +} + +.outfit-mini-list { + display: flex; + flex-direction: column; + gap: 8px; +} + +.outfit-mini { + display: flex; + align-items: center; + gap: 12px; + padding: 12px; + background: var(--bg-card); + border-radius: var(--radius-sm); + box-shadow: 0 2px 8px rgba(0,0,0,0.04); +} + +.mini-items { + display: flex; + gap: 4px; + font-size: 20px; +} + +.outfit-mini p { + font-size: 13px; + color: var(--text-secondary); +} + +/* Outfit Page */ +.outfit-filters { + margin-bottom: 16px; +} + +.filter-group { + margin-bottom: 10px; +} + +.filter-group label { + font-size: 13px; + font-weight: 500; + color: var(--text-secondary); + margin-bottom: 6px; + display: block; +} + +.filter-btns { + display: flex; + gap: 6px; +} + +.outfit-result-list { + display: flex; + flex-direction: column; + gap: 16px; +} + +.outfit-result-card { + background: var(--bg-card); + border-radius: var(--radius); + padding: 16px; + box-shadow: 0 2px 12px rgba(0,0,0,0.04); +} + +.outfit-result-header { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 12px; +} + +.outfit-result-tag { + padding: 4px 12px; + border-radius: 12px; + background: var(--accent-peach); + font-size: 13px; + color: #B8734A; + font-weight: 600; +} + +.outfit-result-score { + font-size: 13px; + color: var(--success); + font-weight: 500; +} + +.outfit-result-items { + display: flex; + gap: 8px; + margin-bottom: 12px; +} + +.result-item { + flex: 1; + aspect-ratio: 1; + border-radius: var(--radius-sm); + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + gap: 2px; +} + +.result-item span { + font-size: 24px; +} + +.result-item small { + font-size: 10px; + color: var(--text-secondary); +} + +.outfit-result-ai { + background: var(--accent-light); + border-radius: var(--radius-sm); + padding: 12px; + margin-bottom: 12px; +} + +.ai-label { + font-size: 12px; + font-weight: 600; + color: #B8734A; + margin-bottom: 4px; +} + +.ai-text { + font-size: 13px; + color: var(--text-secondary); + line-height: 1.5; +} + +.outfit-result-actions { + display: flex; + gap: 8px; +} + +/* Calendar */ +.calendar-month { + background: var(--bg-card); + border-radius: var(--radius); + padding: 16px; + margin-bottom: 20px; + box-shadow: 0 2px 12px rgba(0,0,0,0.04); +} + +.calendar-nav { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 16px; +} + +.calendar-nav h3 { + font-size: 16px; + font-weight: 600; +} + +.calendar-weekdays { + display: grid; + grid-template-columns: repeat(7, 1fr); + text-align: center; + margin-bottom: 8px; +} + +.calendar-weekdays span { + font-size: 12px; + color: var(--text-tertiary); + font-weight: 500; +} + +.calendar-days { + display: grid; + grid-template-columns: repeat(7, 1fr); + gap: 4px; + text-align: center; +} + +.day { + width: 40px; + height: 40px; + display: flex; + align-items: center; + justify-content: center; + border-radius: 12px; + font-size: 14px; + margin: 0 auto; + cursor: pointer; +} + +.day.empty { + cursor: default; +} + +.day.active { + background: var(--text-primary); + color: white; + font-weight: 600; +} + +.day.has-outfit::after { + content: ''; + position: absolute; + bottom: 4px; + width: 4px; + height: 4px; + border-radius: 50%; + background: var(--accent); +} + +.calendar-detail { + margin-bottom: 20px; +} + +.calendar-detail h3 { + font-size: 16px; + font-weight: 600; + margin-bottom: 10px; +} + +.calendar-outfit-card { + display: flex; + align-items: center; + gap: 14px; + padding: 14px; + background: var(--bg-card); + border-radius: var(--radius-sm); + box-shadow: 0 2px 8px rgba(0,0,0,0.04); +} + +.outfit-mini-items { + display: flex; + gap: 2px; + font-size: 20px; +} + +.calendar-outfit-info p { + font-size: 14px; + font-weight: 500; +} + +.calendar-outfit-info small { + font-size: 12px; + color: var(--text-tertiary); +} + +.calendar-history h3 { + font-size: 16px; + font-weight: 600; + margin-bottom: 10px; +} + +.history-list { + display: flex; + flex-direction: column; + gap: 8px; +} + +.history-item { + display: flex; + align-items: center; + gap: 12px; + padding: 12px; + background: var(--bg-card); + border-radius: var(--radius-sm); + box-shadow: 0 2px 8px rgba(0,0,0,0.04); +} + +.history-date { + text-align: center; + min-width: 36px; +} + +.history-day { + font-size: 18px; + font-weight: 700; + display: block; +} + +.history-date small { + font-size: 10px; + color: var(--text-tertiary); +} + +.history-items { + display: flex; + gap: 4px; + font-size: 18px; + flex: 1; +} + +.history-label { + font-size: 12px; + padding: 3px 10px; + border-radius: 10px; + background: var(--bg-warm); + color: var(--text-secondary); +} + +/* Profile */ +.profile-header { + text-align: center; + padding: 20px 0 24px; +} + +.avatar { + width: 72px; + height: 72px; + border-radius: 50%; + background: var(--bg-warm); + display: flex; + align-items: center; + justify-content: center; + font-size: 32px; + margin: 0 auto 10px; +} + +.profile-header h2 { + font-size: 20px; + font-weight: 700; +} + +.profile-header p { + font-size: 13px; + color: var(--text-secondary); + margin-top: 2px; +} + +.profile-stats { + display: grid; + grid-template-columns: 1fr 1fr 1fr 1fr; + gap: 1px; + background: var(--border); + border-radius: var(--radius-sm); + overflow: hidden; + margin-bottom: 24px; +} + +.profile-stat { + background: var(--bg-card); + padding: 14px 8px; + text-align: center; +} + +.ps-num { + display: block; + font-size: 20px; + font-weight: 700; +} + +.ps-label { + display: block; + font-size: 11px; + color: var(--text-secondary); + margin-top: 2px; +} + +.menu-section { + background: var(--bg-card); + border-radius: var(--radius); + overflow: hidden; + margin-bottom: 16px; + box-shadow: 0 2px 8px rgba(0,0,0,0.04); +} + +.menu-item { + display: flex; + align-items: center; + gap: 12px; + padding: 14px 16px; + cursor: pointer; + border-bottom: 1px solid var(--border); + transition: background 0.15s; +} + +.menu-item:last-child { + border-bottom: none; +} + +.menu-item:active { + background: var(--bg); +} + +.menu-icon { + font-size: 20px; + width: 28px; + text-align: center; +} + +.menu-item span { + flex: 1; + font-size: 15px; + font-weight: 500; +} + +/* Bottom Navigation */ +.bottom-nav { + position: absolute; + bottom: 0; + left: 0; + right: 0; + height: 80px; + background: var(--bg-card); + display: flex; + justify-content: space-around; + align-items: flex-start; + padding-top: 8px; + border-top: 1px solid var(--border); + z-index: 20; +} + +.nav-item { + display: flex; + flex-direction: column; + align-items: center; + gap: 2px; + background: none; + border: none; + color: var(--text-tertiary); + cursor: pointer; + padding: 4px 8px; + transition: color 0.2s; +} + +.nav-item.active { + color: var(--text-primary); +} + +.nav-item span { + font-size: 10px; + font-weight: 500; +} + +.center-btn { + margin-top: -20px; +} + +.center-btn-circle { + width: 52px; + height: 52px; + border-radius: 50%; + background: var(--text-primary); + display: flex; + align-items: center; + justify-content: center; + box-shadow: 0 4px 12px rgba(0,0,0,0.2); + transition: transform 0.15s; +} + +.center-btn:active .center-btn-circle { + transform: scale(0.92); +} + +/* Toast */ +.toast { + position: absolute; + top: 80px; + left: 50%; + transform: translateX(-50%); + padding: 10px 24px; + border-radius: 20px; + background: rgba(0,0,0,0.8); + color: white; + font-size: 14px; + font-weight: 500; + z-index: 100; + transition: opacity 0.3s, transform 0.3s; +} + +.toast.hidden { + opacity: 0; + transform: translateX(-50%) translateY(-10px); + pointer-events: none; +} + +/* Modal */ +.modal-overlay { + position: absolute; + inset: 0; + background: rgba(0,0,0,0.4); + display: flex; + align-items: center; + justify-content: center; + z-index: 50; + padding: 40px; +} + +.modal-overlay.hidden { + display: none; +} + +.modal { + background: var(--bg-card); + border-radius: var(--radius); + padding: 24px; + width: 100%; +} + +.modal h3 { + font-size: 18px; + font-weight: 600; + margin-bottom: 8px; +} + +.modal p { + font-size: 14px; + color: var(--text-secondary); + line-height: 1.5; + margin-bottom: 20px; +} + +.modal-actions { + display: flex; + gap: 10px; +} + +.modal-btn { + flex: 1; + padding: 12px; + border-radius: var(--radius-sm); + border: none; + font-size: 15px; + font-weight: 500; + cursor: pointer; +} + +.modal-btn.cancel { + background: var(--bg-warm); + color: var(--text-primary); +} + +.modal-btn.confirm { + background: var(--danger); + color: white; +} diff --git a/scripts/build-apk.sh b/scripts/build-apk.sh new file mode 100644 index 0000000..ecc4a35 --- /dev/null +++ b/scripts/build-apk.sh @@ -0,0 +1,130 @@ +#!/usr/bin/env bash +# Wardrobe Android APK 本地打包脚本 (WSL 内运行) +# 用法: bash scripts/build-apk.sh [debug|release] +# 参考: D:\workbench\iboard\scripts\wsl\build-apk.sh +# 尽量复用本机已装的 Android SDK / NDK, 不重复下载 +set -euo pipefail + +WIN_PROJECT='/mnt/d/workbench/Wardrobe' +cd "$WIN_PROJECT" + +VARIANT="${1:-debug}" +echo "构建变体: $VARIANT" + +# ---- 复用已有 Android SDK / NDK (不重复安装) ---- +# 优先用 ANDROID_HOME 环境变量, 找不到再探测常见路径 +if [ -z "${ANDROID_HOME:-}" ] || [ ! -d "$ANDROID_HOME/platforms" ]; then + for cand in "$HOME/android-sdk" "/opt/android-sdk" "/usr/lib/android-sdk"; do + if [ -d "$cand/platforms" ]; then + export ANDROID_HOME="$cand" + break + fi + done +fi +if [ -z "${ANDROID_HOME:-}" ] || [ ! -d "$ANDROID_HOME/platforms" ]; then + echo "ERROR: 未找到可复用的 Android SDK (ANDROID_HOME)" >&2 + exit 1 +fi +echo "复用 SDK: $ANDROID_HOME" + +# NDK: 复用已装的 27.2.x, 找不到报错 +export ANDROID_NDK_HOME="${ANDROID_NDK_HOME:-$ANDROID_HOME/ndk/27.2.12479018}" +NDK_TOOLCHAIN_BIN="$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin" +if [ ! -d "$NDK_TOOLCHAIN_BIN" ]; then + echo "ERROR: NDK toolchain 不存在: $NDK_TOOLCHAIN_BIN, 请确认已安装 NDK 27.2.x" >&2 + exit 1 +fi +echo "复用 NDK: $ANDROID_NDK_HOME" + +export PATH="$NDK_TOOLCHAIN_BIN:$ANDROID_HOME/cmdline-tools/latest/bin:$ANDROID_HOME/platform-tools:$PATH" + +# ---- 0. 首次需要 android 工程 ---- +cd src-tauri +if [ ! -d "gen/android" ]; then + echo "=== 0. 初始化 Android 工程 (一次性) ===" + npx tauri android init --ci +fi +cd "$WIN_PROJECT" + +# ---- 1. 构建前端 ---- +echo "=== 1. 构建前端 ===" +npm run build + +# ---- 1.5 拷贝 dist/ 到 Android 工程 assets/ ---- +ANDROID_ASSETS="$WIN_PROJECT/src-tauri/gen/android/app/src/main/assets" +mkdir -p "$ANDROID_ASSETS" +find "$ANDROID_ASSETS" -mindepth 1 -maxdepth 1 ! -name dexopt ! -name tauri.conf.json -exec rm -rf {} + +cp -r dist/. "$ANDROID_ASSETS/" +echo "前端 bundle 已拷贝到 $ANDROID_ASSETS" + +# ---- 2. 构建 ---- +cd src-tauri + +if [ "$VARIANT" = "release" ]; then + # release: 手工 cargo 编 4 ABI, gradle 只跑打包 + RUST_BUILD_TASKS=( + ":app:rustBuildArm64Release" + ":app:rustBuildArmRelease" + ":app:rustBuildX86_64Release" + ":app:rustBuildX86Release" + ) + SKIP_ARGS=() + for t in "${RUST_BUILD_TASKS[@]}"; do SKIP_ARGS+=(-x "${t#:}"); done + + ANDROID_TARGETS=( + "aarch64-linux-android" + "armv7-linux-androideabi" + "x86_64-linux-android" + "i686-linux-android" + ) + + echo "[release] 手工 cargo 编 lib (4 个 ABI)..." + for target in "${ANDROID_TARGETS[@]}"; do + echo " [cargo] build lib release for $target ..." + cargo build \ + --target "$target" \ + --features custom-protocol \ + --lib \ + --release + done + + echo " [gradle] assembleRelease -x rustBuild* ..." + cd gen/android + ./gradlew --no-daemon assembleRelease "${SKIP_ARGS[@]}" + + APK_DIR="$WIN_PROJECT/src-tauri/gen/android/app/build/outputs/apk/universal/release" + SIGNED_APK="$APK_DIR/app-universal-release.apk" + UNSIGNED_APK="$APK_DIR/app-universal-release-unsigned.apk" + + if [ -f "$SIGNED_APK" ]; then + APK_PATH="$SIGNED_APK" + APK_STATUS="已签名" + elif [ -f "$UNSIGNED_APK" ]; then + APK_PATH="$UNSIGNED_APK" + APK_STATUS="未签名" + else + APK_PATH="" + APK_STATUS="未找到" + fi + + echo + echo "=== 产物 ($APK_STATUS) ===" + if [ -n "$APK_PATH" ]; then + ls -lh "$APK_PATH" + else + ls -lh "$APK_DIR"/*.apk 2>/dev/null || echo "(未找到 APK)" + fi + + if [ "$APK_STATUS" = "已签名" ]; then + echo + echo "安装: adb install -r $APK_PATH" + fi +else + echo "[debug] 直接走 Tauri CLI" + npx tauri android build --apk + + APK_DIR="$WIN_PROJECT/src-tauri/target/debug/bundle/android/app/build/outputs/apk/debug" + echo + echo "=== 产物 ===" + ls -lh "$APK_DIR"/*.apk 2>/dev/null || echo "(未找到 APK)" +fi \ No newline at end of file diff --git a/scripts/build-ota.mjs b/scripts/build-ota.mjs new file mode 100644 index 0000000..d3ea9a2 --- /dev/null +++ b/scripts/build-ota.mjs @@ -0,0 +1,146 @@ +#!/usr/bin/env node +// OTA 升级包生成脚本 (兼容 tauri-plugin-hotswap) +// 用法: +// node scripts/build-ota.mjs [--out ] [--sequence ] [--min-binary ] [--notes ] [--no-sign] [--key ] +// 流程: +// 1) 校验 dist/ 已构建 +// 2) 生成 bundle.tar.gz (dist/ 内容) +// 3) minisign 签名 (除非 --no-sign; 私钥优先读 MINISIGN_PRIVATE_KEY 环境变量) +// 4) 写 latest.json (manifest, 含 sequence/version/signature/bundle_size/notes/...) +// 5) 全部产物输出到 out 目录 (默认 ota-package/) +// +// minisign 安装: 见 README "OTA 升级" 章节 +import fs from 'node:fs' +import path from 'node:path' +import crypto from 'node:crypto' +import { fileURLToPath } from 'node:url' +import { spawnSync } from 'node:child_process' + +const __filename = fileURLToPath(import.meta.url) +const __dirname = path.dirname(__filename) +const ROOT = path.resolve(__dirname, '..') + +const args = process.argv.slice(2) +function getArg(name, def) { + const i = args.indexOf(name) + return i >= 0 && args[i + 1] ? args[i + 1] : def +} +const OUT_DIR = path.resolve(getArg('--out', 'ota-package')) +const SEQUENCE = Number(getArg('--sequence', String(Date.now()))) // 默认用时间戳做单调计数 +const MIN_BINARY = getArg('--min-binary', '') +const NOTES = getArg('--notes', '') +const NO_SIGN = args.includes('--no-sign') +// 私钥优先来源: MINISIGN_PRIVATE_KEY 环境变量 (CI 注入) → 文件 (--key 路径) +const KEY_PATH = path.resolve(getArg('--key', path.join(OUT_DIR, 'hotswap.key'))) +const KEY_FROM_ENV = !!process.env.MINISIGN_PRIVATE_KEY +// 旧版 tauri.conf.json 里的 pubkey (自动同步过去, 方便用户复制) +const TAURI_CONF = path.join(ROOT, 'src-tauri', 'tauri.conf.json') + +const pkg = JSON.parse(fs.readFileSync(path.join(ROOT, 'package.json'), 'utf8')) +const APP_VERSION = pkg.version || '0.0.0' + +const DIST = path.join(ROOT, 'dist') +if (!fs.existsSync(path.join(DIST, 'index.html'))) { + console.error('[build-ota] 错误: dist/index.html 不存在, 请先执行 npm run build') + process.exit(1) +} + +// 准备输出目录 +fs.mkdirSync(OUT_DIR, { recursive: true }) + +// 1) 生成 bundle.tar.gz +const BUNDLE_NAME = 'wardrobe-ota.tar.gz' +const BUNDLE_PATH = path.join(OUT_DIR, BUNDLE_NAME) +const r = spawnSync('tar', ['-czf', BUNDLE_PATH, '-C', DIST, '.'], { stdio: 'inherit' }) +if (r.status !== 0) { + console.error('[build-ota] tar 打包失败') + process.exit(1) +} +const bundleStat = fs.statSync(BUNDLE_PATH) +const bundleSha256 = crypto.createHash('sha256').update(fs.readFileSync(BUNDLE_PATH)).digest('hex') + +// 2) 签名 (minisign) +let signature = '' +let pubkey = '' +if (!NO_SIGN) { + // CI 注入: 私钥走环境变量, 写到临时文件, 签名后立即删除 (避免落盘) + let KEY_PATH_TMP = null + let KEY_PATH_USE = KEY_PATH + if (KEY_FROM_ENV) { + KEY_PATH_TMP = path.join(OUT_DIR, `.hotswap.key.${process.pid}`) + fs.writeFileSync(KEY_PATH_TMP, process.env.MINISIGN_PRIVATE_KEY, { mode: 0o600 }) + KEY_PATH_USE = KEY_PATH_TMP + } + if (!fs.existsSync(KEY_PATH_USE)) { + console.error('[build-ota] 私钥不存在:', KEY_PATH_USE) + console.error(' 注入方式二选一:') + console.error(' 1) CI: 设环境变量 MINISIGN_PRIVATE_KEY (整段 .key 文件内容, 含首行 untrusted comment)') + console.error(' 2) 本机: 放 ' + KEY_PATH + ', 或用 --key ') + console.error(' 生成方法: minisign -G -W -p ota-package/hotswap.pub -s ota-package/hotswap.key') + process.exit(1) + } + // minisign -Sm -s 生成 detached signature + const sigR = spawnSync('minisign', ['-Sm', BUNDLE_PATH, '-s', KEY_PATH_USE], { stdio: 'inherit' }) + // 清理 CI 临时私钥 (无论成功失败都删) + if (KEY_PATH_TMP) { + try { fs.unlinkSync(KEY_PATH_TMP) } catch { /* ignore */ } + KEY_PATH_TMP = null + } + if (sigR.status !== 0) { + console.error('[build-ota] minisign 签名失败') + process.exit(1) + } + const sigPath = BUNDLE_PATH + '.minisig' + signature = fs.readFileSync(sigPath, 'utf8').trim() + + // 尝试同步 pubkey 到 tauri.conf.json (如果存在) + const PUB_PATH = path.join(path.dirname(KEY_PATH), 'hotswap.pub') + if (fs.existsSync(PUB_PATH)) { + pubkey = fs.readFileSync(PUB_PATH, 'utf8').trim() + const lines = pubkey.split(/\r?\n/) + pubkey = (lines.find((l) => l.startsWith('RWR') || l.startsWith('RWT') || l.startsWith('RWQ')) || '').trim() + } +} + +// 3) 写 latest.json +const minBinary = MIN_BINARY || (() => { + // 默认从 src-tauri/tauri.conf.json 读 version + try { return JSON.parse(fs.readFileSync(TAURI_CONF, 'utf8')).version || APP_VERSION } + catch { return APP_VERSION } +})() +const manifest = { + version: APP_VERSION + '-ota', + sequence: SEQUENCE, + min_binary_version: minBinary, + bundle: BUNDLE_NAME, + bundle_size: bundleStat.size, + bundle_sha256: bundleSha256, + signature, + notes: NOTES, + pub_date: new Date().toISOString(), + mandatory: false, + // 内部用: 前端 web 模式比对 build_id + build_id: 'seq-' + SEQUENCE, +} +fs.writeFileSync(path.join(OUT_DIR, 'latest.json'), JSON.stringify(manifest, null, 2)) + +// 4) 提示 +console.log('') +console.log('=== OTA 包生成完成 ===') +console.log('输出目录: ', OUT_DIR) +console.log('版本: ', manifest.version) +console.log('sequence: ', manifest.sequence) +console.log('bundle 大小: ', (bundleStat.size / 1024).toFixed(1) + ' KB') +console.log('bundle sha256:', bundleSha256) +console.log('签名: ', signature ? '(已生成, 写入 latest.json)' : '(未签名, --no-sign)') +if (pubkey) { + console.log('') + console.log('请将下面这一行 pubkey 写到 src-tauri/tauri.conf.json -> plugins.hotswap.pubkey:') + console.log(' ' + pubkey) +} + +console.log('') +console.log('下一步: 把这两个文件发布到 OTA 存储:') +console.log(' ' + BUNDLE_NAME) +console.log(' latest.json') +console.log('并确保 server 进程环境变量 OTA_PACKAGE_DIR 指向该目录。') \ No newline at end of file diff --git a/scripts/ci/android-signing.sh b/scripts/ci/android-signing.sh new file mode 100644 index 0000000..7de423b --- /dev/null +++ b/scripts/ci/android-signing.sh @@ -0,0 +1,136 @@ +#!/usr/bin/env bash +# CI 专用: 为 Tauri Android release 构建注入 release 签名配置 +# 在 `tauri android init` 之后、`tauri android build` 之前运行。 +# 参考: D:\workbench\iboard\scripts\ci\android-signing.sh +# +# 依赖 (由调用方注入环境变量, 不要写死密钥到脚本/仓库): +# ANDROID_KEYSTORE_B64 - base64 编码的 keystore 文件内容 (CI secret) +# ANDROID_KEY_ALIAS - 密钥别名 (CI secret/variable) +# ANDROID_KEY_PASSWORD - store & key 密码 (CI secret; 本脚本两者用同一个) +# +# 作用: +# 1. 把 base64 密钥解码写到 $RUNNER_TEMP/wardrobe-release.keystore +# 2. 生成 gen/android/keystore.properties (Tauri 签名约定读取此文件) +# 3. 修改 gen/android/app/build.gradle.kts, 添加 signingConfigs.release +# 并让 buildTypes.release 使用它, 产出已签名 APK +set -euo pipefail + +APP_GRADLE="src-tauri/gen/android/app/build.gradle.kts" + +echo "[signing] 注入 Android release 签名配置..." + +# --- 1. 解码 keystore --- +if [ -z "${ANDROID_KEYSTORE_B64:-}" ]; then + echo "[signing] ERROR: ANDROID_KEYSTORE_B64 未设置, 无法签名 release APK" >&2 + exit 1 +fi +: "${ANDROID_KEY_ALIAS:?ANDROID_KEY_ALIAS 未设置}" +: "${ANDROID_KEY_PASSWORD:?ANDROID_KEY_PASSWORD 未设置}" + +KEYSTORE_FILE="${RUNNER_TEMP:-/tmp}/wardrobe-release.keystore" +echo "${ANDROID_KEYSTORE_B64}" | base64 -d > "$KEYSTORE_FILE" + +# --- 2. 写 keystore.properties (Tauri 官方约定的签名配置文件位置) --- +KEYSTORE_PROPERTIES="src-tauri/gen/android/keystore.properties" +cat > "$KEYSTORE_PROPERTIES" <&2 + exit 1 +fi + +if grep -q 'create("release")' "$APP_GRADLE" 2>/dev/null; then + echo "[signing] build.gradle.kts 已有 release signingConfigs, 跳过注入" +else + python3 - "$APP_GRADLE" <<'PYEOF' +import sys, re + +path = sys.argv[1] +src = open(path, encoding='utf-8').read() + +if 'import java.io.FileInputStream' not in src: + imp = re.search(r'^import .*$', src, flags=re.M) + new_import = 'import java.io.FileInputStream\n' + if imp: + src = src[:imp.end()] + '\n' + new_import + src[imp.end():] + else: + src = new_import + src + +m = re.search(r'(\n[ \t]*)(buildTypes\s*\{)', src) +if not m: + print('[signing] 未找到 buildTypes 块, 中止', file=sys.stderr) + sys.exit(1) + +indent = m.group(1) +inner_indent = indent + ' ' + +signing_block = ( + f'{inner_indent}signingConfigs {{\n' + f'{inner_indent} create("release") {{\n' + f'{inner_indent} val keystorePropertiesFile = rootProject.file("keystore.properties")\n' + f'{inner_indent} val keystoreProperties = Properties()\n' + f'{inner_indent} if (keystorePropertiesFile.exists()) {{\n' + f'{inner_indent} keystoreProperties.load(FileInputStream(keystorePropertiesFile))\n' + f'{inner_indent} }}\n' + f'{inner_indent} keyAlias = keystoreProperties["keyAlias"] as? String ?: ""\n' + f'{inner_indent} keyPassword = keystoreProperties["password"] as? String ?: ""\n' + f'{inner_indent} storeFile = file(keystoreProperties["storeFile"] as? String ?: "")\n' + f'{inner_indent} storePassword = keystoreProperties["password"] as? String ?: ""\n' + f'{inner_indent} }}\n' + f'{inner_indent}}}\n' +) + +src = src.replace(m.group(0), signing_block + m.group(0), 1) + +rel = re.search(r'(\n[ \t]*)(getByName\("release"\)\s*\{)', src) +if not rel: + rel = re.search(r'(\n[ \t]*)(release\s*\{)', src) +if rel: + rel_indent = rel.group(1) + ' ' + inject = rel_indent + 'signingConfig = signingConfigs.getByName("release")\n' + src = src.replace(rel.group(0), rel.group(0) + inject, 1) + +open(path, 'w', encoding='utf-8').write(src) +print('[signing] build.gradle.kts 已注入 import + signingConfigs + release signingConfig') +PYEOF +fi + +# --- 4. 放行明文 HTTP (release APK 默认拦截 http://) --- +if [ ! -f "$APP_GRADLE" ]; then + echo "[signing] ERROR: 找不到 $APP_GRADLE (明文放行跳过)" >&2 + exit 1 +fi + +python3 - "$APP_GRADLE" <<'PYEOF' +import sys, re + +path = sys.argv[1] +src = open(path, encoding='utf-8').read() + +new = re.sub( + r'(manifestPlaceholders\["usesCleartextTraffic"\]\s*=\s*)"false"', + r'\1"true"', + src, +) + +if 'usesCleartextTraffic' not in src: + m = re.search(r'^([ \t]*)getByName\("release"\)\s*\{', new, flags=re.M) + if not m: + m = re.search(r'^([ \t]*)release\s*\{', new, flags=re.M) + if m: + inner = m.group(1) + ' ' + inject = f'\n{inner}manifestPlaceholders["usesCleartextTraffic"] = "true"' + new = new.replace(m.group(0), m.group(0) + inject, 1) + else: + print('[signing] 警告: 未找到 release 构建块, 明文放行注入跳过', file=sys.stderr) + +open(path, 'w', encoding='utf-8').write(new) +print('[signing] usesCleartextTraffic 已设为 true (release 放行明文 HTTP)') +PYEOF + +echo "[signing] 完成: keystore.properties 已写, build.gradle.kts 已注入" \ No newline at end of file diff --git a/scripts/ota-genkey.mjs b/scripts/ota-genkey.mjs new file mode 100644 index 0000000..6bdab24 --- /dev/null +++ b/scripts/ota-genkey.mjs @@ -0,0 +1,68 @@ +#!/usr/bin/env node +// 生成 minisign 密钥对 (ota-package/hotswap.{key,pub}) +// 首次跑一遍: node scripts/ota-genkey.mjs +// - hotswap.key: 私钥, 不要提交, 部署时由 CI 注入 (环境变量 / secret) +// - hotswap.pub: 公钥, 写到 src-tauri/tauri.conf.json 的 plugins.hotswap.pubkey +// +// 依赖: minisign (https://jedisct1.github.io/minisign/) +// - Windows: scoop install minisign 或 choco install minisign (或下载官方 win64 二进制) +// - macOS: brew install minisign +// - Linux: apt install minisign +import fs from 'node:fs' +import path from 'node:path' +import { spawnSync } from 'node:child_process' +import { fileURLToPath } from 'node:url' + +const __filename = fileURLToPath(import.meta.url) +const __dirname = path.dirname(__filename) +const ROOT = path.resolve(__dirname, '..') +const OUT_DIR = path.join(ROOT, 'ota-package') +fs.mkdirSync(OUT_DIR, { recursive: true }) + +const KEY = path.join(OUT_DIR, 'hotswap.key') +const PUB = path.join(OUT_DIR, 'hotswap.pub') + +if (fs.existsSync(KEY) || fs.existsSync(PUB)) { + console.error('[ota-genkey] 已存在密钥, 如需重新生成请先删除 ota-package/hotswap.{key,pub}') + console.error(' 注意: 重新生成密钥会导致旧 bundle 无法被客户端验证, 慎用!') + process.exit(1) +} + +// 检查 minisign 是否存在 +const which = spawnSync('minisign', ['-v'], { stdio: 'pipe' }) +if (which.status !== 0 && which.error) { + console.error('[ota-genkey] 未找到 minisign 命令, 请先安装:') + console.error(' Windows: scoop install minisign') + console.error(' macOS: brew install minisign') + console.error(' Linux: apt install minisign') + process.exit(1) +} + +// -G: 生成 -W: 无密码 -p: 公钥输出 -s: 私钥输出 +const r = spawnSync('minisign', ['-G', '-W', '-p', PUB, '-s', KEY], { stdio: 'inherit' }) +if (r.status !== 0) { + console.error('[ota-genkey] minisign 生成失败') + process.exit(1) +} + +console.log('\n=== 密钥生成完成 ===') +console.log('私钥: ' + KEY + ' (不要提交到 git!)') +console.log('公钥: ' + PUB) + +const pubText = fs.readFileSync(PUB, 'utf8') +const lines = pubText.split(/\r?\n/) +const pubB64 = lines.find((l) => l.startsWith('RWR') || l.startsWith('RWT') || l.startsWith('RWQ')) +console.log('\n请把下面这一行 pubkey 写到 src-tauri/tauri.conf.json -> plugins.hotswap.pubkey:') +console.log(' ' + (pubB64 || '').trim()) + +// 自动写 .gitignore 提醒 +const gitignore = path.join(ROOT, '.gitignore') +if (fs.existsSync(gitignore)) { + let txt = fs.readFileSync(gitignore, 'utf8') + if (!txt.includes('ota-package/hotswap.key')) { + if (!txt.endsWith('\n')) txt += '\n' + txt += '\n# OTA 升级私钥, 不要提交\nota-package/hotswap.key\n' + fs.writeFileSync(gitignore, txt) + console.log('\n[ota-genkey] 已把 ota-package/hotswap.key 加入 .gitignore') + } +} \ No newline at end of file diff --git a/scripts/upload-ota-r2.sh b/scripts/upload-ota-r2.sh new file mode 100644 index 0000000..e0a68a7 --- /dev/null +++ b/scripts/upload-ota-r2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/env bash +# 把 OTA 升级包 (bundle + latest.json) 上传到 Cloudflare R2 (公开桶, 前缀 store/ota/) +# 用法: bash scripts/upload-ota-r2.sh +# 默认 = ota-package +# 说明: +# - bundle 固定名 wardrobe-ota.tar.gz (与 build-ota.mjs 保持一致), 覆盖式上传 +# - latest.json 一并上传, 便于把 R2 作为 OTA 静态存储 (配合 OTA_PUBLIC_BASE 使用) +# +# 依赖环境变量 (通常来自配置注册中心 CommonExternalService / cloudflare): +# CF_API_TOKEN Cloudflare API token (r2/CF_API_TOKEN) +# CF_R2_BUCKET (可选, 默认 store) +# CF_R2_PUBLIC_URL (可选; 若设置, 同时输出可直接给 OTA_PUBLIC_BASE 使用的下载地址) +set -euo pipefail + +OTA_DIR="${1:-ota-package}" +BUNDLE="wardrobe-ota.tar.gz" +HAS_BUNDLE=0 +[ -f "$OTA_DIR/$BUNDLE" ] && HAS_BUNDLE=1 + +: "${CF_API_TOKEN:?缺少 CF_API_TOKEN (注册中心 key: r2/CF_API_TOKEN)}" +export CLOUDFLARE_API_TOKEN="$CF_API_TOKEN" + +BUCKET="${CF_R2_BUCKET:-store}" +CF_R2_PUBLIC_URL="${CF_R2_PUBLIC_URL:-https://pub-98ee77ce79984c2cad0dc1c300901158.r2.dev}" + +if ! command -v wrangler >/dev/null 2>&1; then + echo "安装 wrangler ..." + npm i -g wrangler +fi + +if [ "$HAS_BUNDLE" = "1" ]; then + echo "上传 ${BUCKET}/ota/${BUNDLE} ..." + wrangler r2 object put "${BUCKET}/ota/${BUNDLE}" \ + --file "$OTA_DIR/$BUNDLE" \ + --content-type application/gzip \ + --remote +fi + +if [ -f "$OTA_DIR/latest.json" ]; then + echo "上传 ${BUCKET}/ota/latest.json ..." + wrangler r2 object put "${BUCKET}/ota/latest.json" \ + --file "$OTA_DIR/latest.json" \ + --content-type application/json \ + --remote +fi + +echo "已上传." +echo "bundle 下载地址: ${CF_R2_PUBLIC_URL}/ota/${BUNDLE}" +echo "可将 OTA_PUBLIC_BASE=${CF_R2_PUBLIC_URL} 传给赋予了 check 端点的 server, 让客户端直连 R2 下载 bundle." \ No newline at end of file diff --git a/scripts/upload-r2.sh b/scripts/upload-r2.sh new file mode 100644 index 0000000..8efdcf0 --- /dev/null +++ b/scripts/upload-r2.sh @@ -0,0 +1,34 @@ +#!/usr/bin/env bash +# 把 APK 上传到 Cloudflare R2 (公开桶) via wrangler +# 用法: bash scripts/upload-r2.sh [OBJECT_KEY] +# +# 依赖环境变量 (通常来自配置注册中心 CommonExternalService / cloudflare): +# CF_API_TOKEN Cloudflare API token (r2/CF_API_TOKEN), wrangler 会从 token 自动解析账号 ID +# CF_R2_BUCKET (可选, 默认 store) +# CF_R2_PUBLIC_URL (可选, 默认 pub-98ee77ce79984c2cad0dc1c300901158.r2.dev, 仅用于打印下载地址) +# +# 说明: 与 kit 项目一致, 固定路径覆盖式上传, 保证有一个稳定的"最新"下载地址。 +set -euo pipefail + +APK_PATH="${1:?用法: bash scripts/upload-r2.sh [OBJECT_KEY]}" +OBJECT_KEY="${2:-data/android/$(basename "$APK_PATH")}" + +: "${CF_API_TOKEN:?缺少 CF_API_TOKEN (注册中心 key: r2/CF_API_TOKEN)}" +export CLOUDFLARE_API_TOKEN="$CF_API_TOKEN" + +BUCKET="${CF_R2_BUCKET:-store}" +CF_R2_PUBLIC_URL="${CF_R2_PUBLIC_URL:-https://pub-98ee77ce79984c2cad0dc1c300901158.r2.dev}" + +if ! command -v wrangler >/dev/null 2>&1; then + echo "安装 wrangler ..." + npm i -g wrangler +fi + +echo "上传到 R2: ${BUCKET}/${OBJECT_KEY}" +wrangler r2 object put "${BUCKET}/${OBJECT_KEY}" \ + --file "$APK_PATH" \ + --content-type application/vnd.android.package-archive \ + --remote + +echo "已上传." +echo "公共下载地址: ${CF_R2_PUBLIC_URL}/${OBJECT_KEY}" \ No newline at end of file diff --git a/server/index.js b/server/index.js new file mode 100644 index 0000000..11005d8 --- /dev/null +++ b/server/index.js @@ -0,0 +1,44 @@ +import 'dotenv/config' +import path from 'node:path' +import fs from 'node:fs' +import express from 'express' +import cors from 'cors' +import otaRouter from './routes/ota.js' + +// 默认 3002: 与 iboard (3001) 同机部署时不冲突 +const PORT = Number(process.env.PORT) || 3002 +const DIST_DIR = path.join(process.cwd(), 'dist') +const HAS_DIST = fs.existsSync(DIST_DIR) + +const app = express() +app.use(cors()) +app.use(express.json()) + +// 健康检查 +app.get('/api/health', (_req, res) => res.json({ ok: true, ts: Date.now() })) + +// OTA 接口公开 (检查/下载更新不需要登录), 必须挂载在最前面 +app.use('/api', otaRouter) + +// 静态资源 (Vite build 产物) +if (HAS_DIST) { + app.use(express.static(DIST_DIR, { index: false, maxAge: '1h', etag: true })) + + // SPA fallback: 非 /api/* 的请求一律返回 index.html, 由前端路由处理 + app.get(/^\/(?!api\/).*/, (_req, res, next) => { + const indexHtml = path.join(DIST_DIR, 'index.html') + if (!fs.existsSync(indexHtml)) return next() + res.sendFile(indexHtml) + }) +} + +// 统一错误处理 +app.use((err, _req, res, _next) => { + console.error('[api error]', err) + res.status(500).json({ error: err.message || '服务器内部错误' }) +}) + +app.listen(PORT, () => { + console.log(`[wardrobe-api] listening on http://127.0.0.1:${PORT}`) + console.log(`[wardrobe-api] static dist: ${HAS_DIST ? DIST_DIR : '(not built, API only)'}`) +}) \ No newline at end of file diff --git a/server/routes/ota.js b/server/routes/ota.js new file mode 100644 index 0000000..19afa4f --- /dev/null +++ b/server/routes/ota.js @@ -0,0 +1,100 @@ +// OTA 升级接口 (兼容 tauri-plugin-hotswap 服务端约定) +// GET /api/ota/check/:current_sequence +// - 客户端传当前 sequence, 服务端判断是否有更新 +// - 有: 200 + manifest JSON +// - 无: 204 No Content +// GET /api/ota/bundle/:filename +// - 下载前端 bundle (tar.gz), 供 manifest.url 引用 +// GET /api/ota/manifest-web +// - 给 Web 浏览器用的简化版 manifest (无签名, 仅展示用) +// +// 数据源: 环境变量 OTA_PACKAGE_DIR 指向的目录, 里面要放: +// - latest.json (由 scripts/build-ota.mjs 生成) +// { sequence, version, min_binary_version, signature, notes, bundle, mandatory, pub_date, bundle_size } +// - (tar.gz 升级包) +import { Router } from 'express' +import fs from 'node:fs' +import path from 'node:path' + +const router = Router() + +function resolveOtaDir() { + const dir = process.env.OTA_PACKAGE_DIR + ? path.resolve(process.env.OTA_PACKAGE_DIR) + : path.resolve(process.cwd(), 'ota-package') + return dir +} + +function readLatest() { + const p = path.join(resolveOtaDir(), 'latest.json') + if (!fs.existsSync(p)) return null + try { + return JSON.parse(fs.readFileSync(p, 'utf8')) + } catch (e) { + console.error('[ota] latest.json 解析失败:', e.message) + return null + } +} + +// GET /api/ota/check/:current_sequence +// 客户端实际请求 URL 是 endpoint 中 {{current_sequence}} 替换后的形式 +router.get('/ota/check/:current_sequence', (req, res) => { + const currentSeq = Number(req.params.current_sequence) + if (!Number.isFinite(currentSeq) || currentSeq < 0) { + return res.status(400).json({ error: '无效的 sequence' }) + } + const latest = readLatest() + if (!latest) { + // 无可用包, 按约定返回 204 + return res.status(204).end() + } + // 不新于当前则 204 + if (typeof latest.sequence === 'number' && latest.sequence <= currentSeq) { + return res.status(204).end() + } + const dir = resolveOtaDir() + const base = process.env.OTA_PUBLIC_BASE || '' + res.json({ + version: latest.version, + sequence: latest.sequence, + min_binary_version: latest.min_binary_version || '0.0.0', + url: (base ? base : '') + '/api/ota/bundle/' + encodeURIComponent(latest.bundle), + signature: latest.signature, + notes: latest.notes || '', + pub_date: latest.pub_date || new Date().toISOString(), + mandatory: !!latest.mandatory, + bundle_size: latest.bundle_size || 0, + }) +}) + +// GET /api/ota/bundle/:filename - 流式下载 bundle +router.get('/ota/bundle/:filename', (req, res) => { + const dir = resolveOtaDir() + // 防越界: 只取 basename + const name = path.basename(req.params.filename) + const p = path.join(dir, name) + if (!fs.existsSync(p)) return res.status(404).json({ error: 'bundle 不存在' }) + const stat = fs.statSync(p) + res.setHeader('Content-Type', 'application/gzip') + res.setHeader('Content-Length', stat.size) + res.setHeader('Content-Disposition', 'attachment; filename="' + name + '"') + fs.createReadStream(p).pipe(res) +}) + +// GET /api/ota/manifest-web - Web 浏览器用的简化版 +// 客户端会拿这个跟当前 build_id 比较, 有新版本就提示用户刷新 +router.get('/ota/manifest-web', (_req, res) => { + const latest = readLatest() + if (!latest) return res.json({ available: false }) + res.json({ + available: true, + version: latest.version, + build_id: latest.build_id || latest.version, + note: latest.notes || '', + size: latest.bundle_size || 0, + }) +}) + +// GET /api/ota/info 已删除: 诊断接口会暴露服务器路径与签名, 且无调用方 + +export default router \ No newline at end of file diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock new file mode 100644 index 0000000..1e81cb3 --- /dev/null +++ b/src-tauri/Cargo.lock @@ -0,0 +1,6098 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "adler2" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" + +[[package]] +name = "ahash" +version = "0.8.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75" +dependencies = [ + "cfg-if", + "const-random", + "getrandom 0.3.4", + "once_cell", + "version_check", + "zerocopy", +] + +[[package]] +name = "aho-corasick" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba" +dependencies = [ + "memchr", +] + +[[package]] +name = "alloc-no-stdlib" +version = "2.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc7bb162ec39d46ab1ca8c77bf72e890535becd1751bb45f64c597edb4c8c6b3" + +[[package]] +name = "alloc-stdlib" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e76a019e91224d279006ff972f1e984179a6e9feb050adba6ce8274aef23195" +dependencies = [ + "alloc-no-stdlib", +] + +[[package]] +name = "allocator-api2" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923" + +[[package]] +name = "android_system_properties" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae221649c9976a6f6c56ae1facf410f3ddb33cc661c4b7b61020a912d4237fbc" +dependencies = [ + "libc", +] + +[[package]] +name = "anstream" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "824a212faf96e9acacdbd09febd34438f8f711fb84e09a8916013cd7815ca28d" +dependencies = [ + "anstyle", + "anstyle-parse", + "anstyle-query", + "anstyle-wincon", + "colorchoice", + "is_terminal_polyfill", + "utf8parse", +] + +[[package]] +name = "anstyle" +version = "1.0.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000" + +[[package]] +name = "anstyle-parse" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52ce7f38b242319f7cabaa6813055467063ecdc9d355bbb4ce0c68908cd8130e" +dependencies = [ + "utf8parse", +] + +[[package]] +name = "anstyle-query" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "anstyle-wincon" +version = "3.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d" +dependencies = [ + "anstyle", + "once_cell_polyfill", + "windows-sys 0.61.2", +] + +[[package]] +name = "anyhow" +version = "1.0.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470" + +[[package]] +name = "arrayvec" +version = "0.7.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56" + +[[package]] +name = "arrow" +version = "51.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "219d05930b81663fd3b32e3bde8ce5bff3c4d23052a99f11a8fa50a3b47b2658" +dependencies = [ + "arrow-arith", + "arrow-array", + "arrow-buffer", + "arrow-cast", + "arrow-data", + "arrow-ord", + "arrow-row", + "arrow-schema", + "arrow-select", + "arrow-string", +] + +[[package]] +name = "arrow-arith" +version = "51.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0272150200c07a86a390be651abdd320a2d12e84535f0837566ca87ecd8f95e0" +dependencies = [ + "arrow-array", + "arrow-buffer", + "arrow-data", + "arrow-schema", + "chrono", + "half", + "num", +] + +[[package]] +name = "arrow-array" +version = "51.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8010572cf8c745e242d1b632bd97bd6d4f40fefed5ed1290a8f433abaa686fea" +dependencies = [ + "ahash", + "arrow-buffer", + "arrow-data", + "arrow-schema", + "chrono", + "half", + "hashbrown 0.14.5", + "num", +] + +[[package]] +name = "arrow-buffer" +version = "51.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d0a2432f0cba5692bf4cb757469c66791394bac9ec7ce63c1afe74744c37b27" +dependencies = [ + "bytes", + "half", + "num", +] + +[[package]] +name = "arrow-cast" +version = "51.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9abc10cd7995e83505cc290df9384d6e5412b207b79ce6bdff89a10505ed2cba" +dependencies = [ + "arrow-array", + "arrow-buffer", + "arrow-data", + "arrow-schema", + "arrow-select", + "atoi", + "base64 0.22.1", + "chrono", + "comfy-table", + "half", + "lexical-core", + "num", + "ryu", +] + +[[package]] +name = "arrow-data" +version = "51.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2742ac1f6650696ab08c88f6dd3f0eb68ce10f8c253958a18c943a68cd04aec5" +dependencies = [ + "arrow-buffer", + "arrow-schema", + "half", + "num", +] + +[[package]] +name = "arrow-ord" +version = "51.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3e6b61e3dc468f503181dccc2fc705bdcc5f2f146755fa5b56d0a6c5943f412" +dependencies = [ + "arrow-array", + "arrow-buffer", + "arrow-data", + "arrow-schema", + "arrow-select", + "half", + "num", +] + +[[package]] +name = "arrow-row" +version = "51.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "848ee52bb92eb459b811fb471175ea3afcf620157674c8794f539838920f9228" +dependencies = [ + "ahash", + "arrow-array", + "arrow-buffer", + "arrow-data", + "arrow-schema", + "half", + "hashbrown 0.14.5", +] + +[[package]] +name = "arrow-schema" +version = "51.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "02d9483aaabe910c4781153ae1b6ae0393f72d9ef757d38d09d450070cf2e528" +dependencies = [ + "bitflags 2.13.2", +] + +[[package]] +name = "arrow-select" +version = "51.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "849524fa70e0e3c5ab58394c770cb8f514d0122d20de08475f7b472ed8075830" +dependencies = [ + "ahash", + "arrow-array", + "arrow-buffer", + "arrow-data", + "arrow-schema", + "num", +] + +[[package]] +name = "arrow-string" +version = "51.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9373cb5a021aee58863498c37eb484998ef13377f69989c6c5ccfbd258236cdb" +dependencies = [ + "arrow-array", + "arrow-buffer", + "arrow-data", + "arrow-schema", + "arrow-select", + "memchr", + "num", + "regex", + "regex-syntax", +] + +[[package]] +name = "atk" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "241b621213072e993be4f6f3a9e4b45f65b7e6faad43001be957184b7bb1824b" +dependencies = [ + "atk-sys", + "glib", + "libc", +] + +[[package]] +name = "atk-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c5e48b684b0ca77d2bbadeef17424c2ea3c897d44d566a1617e7e8f30614d086" +dependencies = [ + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "atoi" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f28d99ec8bfea296261ca1af174f24225171fea9664ba9003cbebee704810528" +dependencies = [ + "num-traits", +] + +[[package]] +name = "atomic-waker" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" + +[[package]] +name = "autocfg" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53" + +[[package]] +name = "base64" +version = "0.21.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" + +[[package]] +name = "base64" +version = "0.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" + +[[package]] +name = "base64" +version = "0.23.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5" + +[[package]] +name = "bit-set" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3" +dependencies = [ + "bit-vec", +] + +[[package]] +name = "bit-vec" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7" + +[[package]] +name = "bitflags" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" + +[[package]] +name = "bitflags" +version = "2.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06" +dependencies = [ + "serde_core", +] + +[[package]] +name = "block-buffer" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" +dependencies = [ + "generic-array", +] + +[[package]] +name = "block2" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdeb9d870516001442e364c5220d3574d2da8dc765554b4a617230d33fa58ef5" +dependencies = [ + "objc2", +] + +[[package]] +name = "borsh" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "553c5d846a6ba5150c65e3b1b8ec073bcf1abc20f9b7220de384a4443ea4e20a" +dependencies = [ + "borsh-derive", + "bytes", + "cfg_aliases", +] + +[[package]] +name = "borsh-derive" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12cdfe656708a01f89b451a7d36466e6fe6c414de0aa18fc54f864f6f9ca9f56" +dependencies = [ + "once_cell", + "proc-macro-crate 3.5.0", + "proc-macro2", + "quote", + "syn 3.0.5", +] + +[[package]] +name = "brotli" +version = "8.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5cc91aac060a7a1e25823bdccbfb6af1875b88f17c6daac97894eed8207166b3" +dependencies = [ + "alloc-no-stdlib", + "alloc-stdlib", + "brotli-decompressor", +] + +[[package]] +name = "brotli-decompressor" +version = "5.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a32acac15fe1967bc3986b2a6347dffc965602354ea6f450ad07e8bfd253583" +dependencies = [ + "alloc-no-stdlib", + "alloc-stdlib", +] + +[[package]] +name = "bs58" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf88ba1141d185c399bee5288d850d63b8369520c1eafc32a0430b5b6c287bf4" +dependencies = [ + "tinyvec", +] + +[[package]] +name = "bumpalo" +version = "3.20.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649" + +[[package]] +name = "bytemuck" +version = "1.25.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95832e849adfb21180ccb6826a99da14e5d266ae5c2e668e1602cf234f153797" + +[[package]] +name = "byteorder" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" + +[[package]] +name = "bytes" +version = "1.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04" +dependencies = [ + "serde", +] + +[[package]] +name = "cairo-rs" +version = "0.18.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ca26ef0159422fb77631dc9d17b102f253b876fe1586b03b803e63a309b4ee2" +dependencies = [ + "bitflags 2.13.2", + "cairo-sys-rs", + "glib", + "libc", + "once_cell", + "thiserror 1.0.69", +] + +[[package]] +name = "cairo-sys-rs" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "685c9fa8e590b8b3d678873528d83411db17242a73fccaed827770ea0fedda51" +dependencies = [ + "glib-sys", + "libc", + "system-deps", +] + +[[package]] +name = "camino" +version = "1.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb1307f12aa967b5a58416e87b3653360e0fd614a016b6e970db08fecbb1b80d" +dependencies = [ + "serde_core", +] + +[[package]] +name = "cargo-platform" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e35af189006b9c0f00a064685c727031e3ed2d8020f7ba284d78cc2671bd36ea" +dependencies = [ + "serde", +] + +[[package]] +name = "cargo_metadata" +version = "0.19.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd5eb614ed4c27c5d706420e4320fbe3216ab31fa1c33cd8246ac36dae4479ba" +dependencies = [ + "camino", + "cargo-platform", + "semver", + "serde", + "serde_json", + "thiserror 2.0.20", +] + +[[package]] +name = "cargo_toml" +version = "0.22.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "374b7c592d9c00c1f4972ea58390ac6b18cbb6ab79011f3bdc90a0b82ca06b77" +dependencies = [ + "serde", + "toml 0.9.12+spec-1.1.0", +] + +[[package]] +name = "cast" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5" + +[[package]] +name = "cc" +version = "1.4.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "005ec2760ca554fae18df7a11195552ec576cd665632a881bc011d5bb2fd4d80" +dependencies = [ + "find-msvc-tools", + "jobserver", + "libc", + "shlex", +] + +[[package]] +name = "cesu8" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c" + +[[package]] +name = "cfb" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d38f2da7a0a2c4ccf0065be06397cc26a81f4e528be095826eee9d4adbb8c60f" +dependencies = [ + "byteorder", + "fnv", + "uuid", +] + +[[package]] +name = "cfg-expr" +version = "0.15.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d067ad48b8650848b989a59a86c6c36a995d02d2bf778d45c3c5d57bc2718f02" +dependencies = [ + "smallvec", + "target-lexicon", +] + +[[package]] +name = "cfg-if" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" + +[[package]] +name = "cfg_aliases" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f079e83a288787bcd14a6aea84cee5c87a67c5a3e660c30f557a3d24761b3527" + +[[package]] +name = "chacha20" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65c35e4b699c7e15ccbe7ee35c005e4fc0a278d22238a2857e6ce2dadeda1b06" +dependencies = [ + "cfg-if", + "cpufeatures 0.3.1", + "rand_core 0.10.1", +] + +[[package]] +name = "chrono" +version = "0.4.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1aa79e62e7697b8e29b513a68abacf485adcd1fe8284a4316c5ae868e6633327" +dependencies = [ + "iana-time-zone", + "js-sys", + "num-traits", + "serde", + "wasm-bindgen", + "windows-link 0.2.1", +] + +[[package]] +name = "colorchoice" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570" + +[[package]] +name = "combine" +version = "4.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfc320937d09e6de266b31b9afb480f197d7a861be86be7cb2ea7e5d1bfffc5e" +dependencies = [ + "bytes", + "memchr", +] + +[[package]] +name = "comfy-table" +version = "7.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "958c5d6ecf1f214b4c2bbbbf6ab9523a864bd136dcf71a7e8904799acfe1ad47" +dependencies = [ + "unicode-segmentation", + "unicode-width", +] + +[[package]] +name = "const-random" +version = "0.1.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87e00182fe74b066627d63b85fd550ac2998d4b0bd86bfed477a0ae4c7c71359" +dependencies = [ + "const-random-macro", +] + +[[package]] +name = "const-random-macro" +version = "0.1.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9d839f2a20b0aee515dc581a6172f2321f96cab76c1a38a4c584a194955390e" +dependencies = [ + "getrandom 0.2.17", + "once_cell", + "tiny-keccak", +] + +[[package]] +name = "cookie" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a373e3602691c3cdea496d2f0ee5935151e6168fe87739483c463db1b2f2f87" +dependencies = [ + "time", + "version_check", +] + +[[package]] +name = "core-foundation" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "core-foundation" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "core-foundation-sys" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" + +[[package]] +name = "core-graphics" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "064badf302c3194842cf2c5d61f56cc88e54a759313879cdf03abdd27d0c3b97" +dependencies = [ + "bitflags 2.13.2", + "core-foundation 0.10.1", + "core-graphics-types", + "foreign-types 0.5.0", + "libc", +] + +[[package]] +name = "core-graphics-types" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d44a101f213f6c4cdc1853d4b78aef6db6bdfa3468798cc1d9912f4735013eb" +dependencies = [ + "bitflags 2.13.2", + "core-foundation 0.10.1", + "libc", +] + +[[package]] +name = "core_detect" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f8f80099a98041a3d1622845c271458a2d73e688351bf3cb999266764b81d48" + +[[package]] +name = "cpufeatures" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280" +dependencies = [ + "libc", +] + +[[package]] +name = "cpufeatures" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ca28b0ae3115b884660db4118d803791fd6756b6e88f39c0f3f7859060d7566" +dependencies = [ + "libc", +] + +[[package]] +name = "crc32fast" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8498c871161e1742aaa9d52551b2d6ebdd4c3d45a3be423e3728f33b955be550" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "crossbeam-channel" +version = "0.5.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "98b0cc327b5bc766e7fda9c9260cc0fa81b43a8e240440422dff70788e3f9ef1" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6" + +[[package]] +name = "crunchy" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5" + +[[package]] +name = "crypto-common" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a" +dependencies = [ + "generic-array", + "typenum", +] + +[[package]] +name = "cssparser" +version = "0.36.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dae61cf9c0abb83bd659dab65b7e4e38d8236824c85f0f804f173567bda257d2" +dependencies = [ + "cssparser-macros", + "dtoa-short", + "itoa", + "phf", + "smallvec", +] + +[[package]] +name = "cssparser-macros" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13b588ba4ac1a99f7f2964d24b3d896ddc6bf847ee3855dbd4366f058cfcd331" +dependencies = [ + "quote", + "syn 2.0.119", +] + +[[package]] +name = "ctor" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "352d39c2f7bef1d6ad73db6f5160efcaed66d94ef8c6c573a8410c00bf909a98" +dependencies = [ + "ctor-proc-macro", + "dtor", +] + +[[package]] +name = "ctor-proc-macro" +version = "0.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52560adf09603e58c9a7ee1fe1dcb95a16927b17c127f0ac02d6e768a0e25bc1" + +[[package]] +name = "ctrlc" +version = "3.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e0b1fab2ae45819af2d0731d60f2afe17227ebb1a1538a236da84c93e9a60162" +dependencies = [ + "dispatch2", + "nix", + "windows-sys 0.61.2", +] + +[[package]] +name = "darling" +version = "0.24.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed17f5901b6630b993ca003def43f2f8ef4014fc13b047b57aad617ff32bc2ec" +dependencies = [ + "darling_core", + "darling_macro", +] + +[[package]] +name = "darling_core" +version = "0.24.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6837e2cf7485aaae18f86181d2f0e9a7ed297a025e220aeabf63fdebd3a2ddff" +dependencies = [ + "ident_case", + "proc-macro2", + "quote", + "strsim", + "syn 3.0.5", +] + +[[package]] +name = "darling_macro" +version = "0.24.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ac7135c3ef02b2f7833bbeb1be5ba7f966dcde8a87c6b87f65a778d71a02785" +dependencies = [ + "darling_core", + "quote", + "syn 3.0.5", +] + +[[package]] +name = "dbus" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ab69f03cc8c4340c9c8e315114e1658e6775a9b16a04357973aa21cec22b32e" +dependencies = [ + "libc", + "libdbus-sys", + "windows-sys 0.61.2", +] + +[[package]] +name = "defmt" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2953bfe4f93bbd20cc71198842756f77d161884c99ebbabc41d80231ded88d1" +dependencies = [ + "bitflags 1.3.2", + "defmt-macros", +] + +[[package]] +name = "defmt-macros" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bad9c72e7ca2137e0dc3813245a0d282fd6daad32fd800af018306a9169b5fe8" +dependencies = [ + "defmt-parser", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "defmt-parser" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10d60334b3b2e7c9d91ef8150abfb6fa4c1c39ebbcf4a81c2e346aad939fee3e" +dependencies = [ + "thiserror 2.0.20", +] + +[[package]] +name = "deranged" +version = "0.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c" +dependencies = [ + "serde_core", +] + +[[package]] +name = "derive_more" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d751e9e49156b02b44f9c1815bcb94b984cdcc4396ecc32521c739452808b134" +dependencies = [ + "derive_more-impl", +] + +[[package]] +name = "derive_more-impl" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "799a97264921d8623a957f6c3b9011f3b5492f557bbb7a5a19b7fa6d06ba8dcb" +dependencies = [ + "proc-macro2", + "quote", + "rustc_version", + "syn 2.0.119", +] + +[[package]] +name = "digest" +version = "0.10.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" +dependencies = [ + "block-buffer", + "crypto-common", +] + +[[package]] +name = "dirs" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3e8aa94d75141228480295a7d0e7feb620b1a5ad9f12bc40be62411e38cce4e" +dependencies = [ + "dirs-sys", +] + +[[package]] +name = "dirs-sys" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e01a3366d27ee9890022452ee61b2b63a67e6f13f58900b651ff5665f0bb1fab" +dependencies = [ + "libc", + "option-ext", + "redox_users", + "windows-sys 0.61.2", +] + +[[package]] +name = "dispatch2" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38" +dependencies = [ + "bitflags 2.13.2", + "block2", + "libc", + "objc2", +] + +[[package]] +name = "displaydoc" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.5", +] + +[[package]] +name = "dlopen2" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e2c5bd4158e66d1e215c49b837e11d62f3267b30c92f1d171c4d3105e3dc4d4" +dependencies = [ + "dlopen2_derive", + "libc", + "once_cell", + "winapi", +] + +[[package]] +name = "dlopen2_derive" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fbbb781877580993a8707ec48672673ec7b81eeba04cfd2310bd28c08e47c8f" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "dom_query" +version = "0.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "521e380c0c8afb8d9a1e83a1822ee03556fc3e3e7dbc1fd30be14e37f9cb3f89" +dependencies = [ + "bit-set", + "cssparser", + "foldhash", + "html5ever", + "precomputed-hash", + "selectors", + "tendril", +] + +[[package]] +name = "dpi" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d8b14ccef22fc6f5a8f4d7d768562a182c04ce9a3b3157b91390b52ddfdf1a76" +dependencies = [ + "serde", +] + +[[package]] +name = "dtoa" +version = "1.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c3cf4824e2d5f025c7b531afcb2325364084a16806f6d47fbc1f5fbd9960590" + +[[package]] +name = "dtoa-short" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd1511a7b6a56299bd043a9c167a6d2bfb37bf84a6dfceaba651168adfb43c87" +dependencies = [ + "dtoa", +] + +[[package]] +name = "dtor" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1057d6c64987086ff8ed0fd3fbf377a6b7d205cc7715868cd401705f715cbe4" +dependencies = [ + "dtor-proc-macro", +] + +[[package]] +name = "dtor-proc-macro" +version = "0.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f678cf4a922c215c63e0de95eb1ff08a958a81d47e485cf9da1e27bf6305cfa5" + +[[package]] +name = "duckdb" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "424ede399a5d1084e65c0888fda71e407e5809400c92ff2cf510bfd1697b9c76" +dependencies = [ + "arrow", + "cast", + "fallible-iterator", + "fallible-streaming-iterator", + "hashlink", + "libduckdb-sys", + "memchr", + "rust_decimal", + "smallvec", + "strum", +] + +[[package]] +name = "dunce" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813" + +[[package]] +name = "dyn-clone" +version = "1.0.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555" + +[[package]] +name = "embed-resource" +version = "3.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fbfdaacccebec3b28e4866b8973543c7647797db5ada1bdab552e48fe665fbbd" +dependencies = [ + "cc", + "memchr", + "rustc_version", + "toml 1.1.6+spec-1.1.0", + "vswhom", + "winreg", +] + +[[package]] +name = "embed_plist" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ef6b89e5b37196644d8796de5268852ff179b44e96276cf4290264843743bb7" + +[[package]] +name = "encoding_rs" +version = "0.8.41" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b5ef0006ac9ab233c38522f5ae99cae3625151de8f706cacee1cba4b8e2832a" +dependencies = [ + "cfg-if", + "core_detect", + "multiversion", + "multiversion_no_op", + "rustversion", + "scopeguard", + "simdutf8", +] + +[[package]] +name = "env_filter" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "900d271a03799a1ee8d1ca9b19893b48ca674a9284fefcfb85f05e74ed314217" +dependencies = [ + "log", + "regex", +] + +[[package]] +name = "env_logger" +version = "0.11.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "de671bd27a75a797dc9ae289ba1e77276e75e2026408aab65185384e2d5cd3f6" +dependencies = [ + "anstream", + "anstyle", + "env_filter", + "jiff", + "log", +] + +[[package]] +name = "equivalent" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" + +[[package]] +name = "erased-serde" +version = "0.4.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2add8a07dd6a8d93ff627029c51de145e12686fbc36ecb298ac22e74cf02dec" +dependencies = [ + "serde", + "serde_core", + "typeid", +] + +[[package]] +name = "errno" +version = "0.3.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "fallible-iterator" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2acce4a10f12dc2fb14a218589d4f1f62ef011b2d0cc4b3cb1bba8e94da14649" + +[[package]] +name = "fallible-streaming-iterator" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7360491ce676a36bf9bb3c56c1aa791658183a54d2744120f27285738d90465a" + +[[package]] +name = "fastrand" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223" + +[[package]] +name = "fdeflate" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c" +dependencies = [ + "simd-adler32", +] + +[[package]] +name = "field-offset" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38e2275cc4e4fc009b0669731a1e5ab7ebf11f469eaede2bab9309a5b4d6057f" +dependencies = [ + "memoffset", + "rustc_version", +] + +[[package]] +name = "filetime" +version = "0.2.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c287a33c7f0a620c38e641e7f60827713987b3c0f26e8ddc9462cc69cf75759" +dependencies = [ + "cfg-if", + "libc", +] + +[[package]] +name = "find-msvc-tools" +version = "0.1.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e0f1c7c3a72c66fd80abe965175f7523475c0489a87d3ff9d6e8c87d87a9d2d" + +[[package]] +name = "flate2" +version = "1.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e634e2e0ebac1ee034020da1ca582e17ffe4e0f5e985823721e168928136dcb" +dependencies = [ + "crc32fast", + "miniz_oxide 0.9.1", + "zlib-rs", +] + +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + +[[package]] +name = "foldhash" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" + +[[package]] +name = "foreign-types" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" +dependencies = [ + "foreign-types-shared 0.1.1", +] + +[[package]] +name = "foreign-types" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d737d9aa519fb7b749cbc3b962edcf310a8dd1f4b67c91c4f83975dbdd17d965" +dependencies = [ + "foreign-types-macros", + "foreign-types-shared 0.3.1", +] + +[[package]] +name = "foreign-types-macros" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea5190182e6915eb873ddbc16e23b711b6eb1f9c00a0d0a3a91b5f6228475225" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.5", +] + +[[package]] +name = "foreign-types-shared" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" + +[[package]] +name = "foreign-types-shared" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b" + +[[package]] +name = "form_urlencoded" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +dependencies = [ + "percent-encoding", +] + +[[package]] +name = "futures-channel" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1f9e3d69d39e4862ffed03ed071a76f9a13ba1d9109d355b0f0aa6b15e393c4" +dependencies = [ + "futures-core", +] + +[[package]] +name = "futures-core" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e" + +[[package]] +name = "futures-executor" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "031b47cf1a3c6cc8bc2fc76cd437f521619387907d469316e7c0bc278f1f5432" +dependencies = [ + "futures-core", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-io" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53c0fa8157de1303bfffdaa1cc2a673bfffb60102f76b0ef4441659124373fed" + +[[package]] +name = "futures-macro" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9fb9654ba8355388abeb8dcb4fc62f511300867002afc858860463bdd9fe0c44" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.5", +] + +[[package]] +name = "futures-sink" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1944426bf7d03f1d14f708785e4b33efd750b36d48a157b836b3efc15ede8e1d" + +[[package]] +name = "futures-task" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd" + +[[package]] +name = "futures-util" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc" +dependencies = [ + "futures-core", + "futures-io", + "futures-macro", + "futures-sink", + "futures-task", + "memchr", + "pin-project-lite", + "slab", +] + +[[package]] +name = "gdk" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9f245958c627ac99d8e529166f9823fb3b838d1d41fd2b297af3075093c2691" +dependencies = [ + "cairo-rs", + "gdk-pixbuf", + "gdk-sys", + "gio", + "glib", + "libc", + "pango", +] + +[[package]] +name = "gdk-pixbuf" +version = "0.18.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50e1f5f1b0bfb830d6ccc8066d18db35c487b1b2b1e8589b5dfe9f07e8defaec" +dependencies = [ + "gdk-pixbuf-sys", + "gio", + "glib", + "libc", + "once_cell", +] + +[[package]] +name = "gdk-pixbuf-sys" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9839ea644ed9c97a34d129ad56d38a25e6756f99f3a88e15cd39c20629caf7" +dependencies = [ + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "gdk-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c2d13f38594ac1e66619e188c6d5a1adb98d11b2fcf7894fc416ad76aa2f3f7" +dependencies = [ + "cairo-sys-rs", + "gdk-pixbuf-sys", + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "pango-sys", + "pkg-config", + "system-deps", +] + +[[package]] +name = "gdkwayland-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "140071d506d223f7572b9f09b5e155afbd77428cd5cc7af8f2694c41d98dfe69" +dependencies = [ + "gdk-sys", + "glib-sys", + "gobject-sys", + "libc", + "pkg-config", + "system-deps", +] + +[[package]] +name = "gdkx11" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3caa00e14351bebbc8183b3c36690327eb77c49abc2268dd4bd36b856db3fbfe" +dependencies = [ + "gdk", + "gdkx11-sys", + "gio", + "glib", + "libc", + "x11", +] + +[[package]] +name = "gdkx11-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e2e7445fe01ac26f11601db260dd8608fe172514eb63b3b5e261ea6b0f4428d" +dependencies = [ + "gdk-sys", + "glib-sys", + "libc", + "system-deps", + "x11", +] + +[[package]] +name = "generic-array" +version = "0.14.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" +dependencies = [ + "typenum", + "version_check", +] + +[[package]] +name = "getrandom" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0" +dependencies = [ + "cfg-if", + "js-sys", + "libc", + "wasi", + "wasm-bindgen", +] + +[[package]] +name = "getrandom" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" +dependencies = [ + "cfg-if", + "libc", + "r-efi 5.3.0", + "wasip2", +] + +[[package]] +name = "getrandom" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099" +dependencies = [ + "cfg-if", + "js-sys", + "libc", + "r-efi 6.0.0", + "rand_core 0.10.1", + "wasm-bindgen", +] + +[[package]] +name = "gio" +version = "0.18.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4fc8f532f87b79cbc51a79748f16a6828fb784be93145a322fa14d06d354c73" +dependencies = [ + "futures-channel", + "futures-core", + "futures-io", + "futures-util", + "gio-sys", + "glib", + "libc", + "once_cell", + "pin-project-lite", + "smallvec", + "thiserror 1.0.69", +] + +[[package]] +name = "gio-sys" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37566df850baf5e4cb0dfb78af2e4b9898d817ed9263d1090a2df958c64737d2" +dependencies = [ + "glib-sys", + "gobject-sys", + "libc", + "system-deps", + "winapi", +] + +[[package]] +name = "glib" +version = "0.18.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "233daaf6e83ae6a12a52055f568f9d7cf4671dabb78ff9560ab6da230ce00ee5" +dependencies = [ + "bitflags 2.13.2", + "futures-channel", + "futures-core", + "futures-executor", + "futures-task", + "futures-util", + "gio-sys", + "glib-macros", + "glib-sys", + "gobject-sys", + "libc", + "memchr", + "once_cell", + "smallvec", + "thiserror 1.0.69", +] + +[[package]] +name = "glib-macros" +version = "0.18.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bb0228f477c0900c880fd78c8759b95c7636dbd7842707f49e132378aa2acdc" +dependencies = [ + "heck 0.4.1", + "proc-macro-crate 2.0.2", + "proc-macro-error", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "glib-sys" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "063ce2eb6a8d0ea93d2bf8ba1957e78dbab6be1c2220dd3daca57d5a9d869898" +dependencies = [ + "libc", + "system-deps", +] + +[[package]] +name = "glob" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b" + +[[package]] +name = "gobject-sys" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0850127b514d1c4a4654ead6dedadb18198999985908e6ffe4436f53c785ce44" +dependencies = [ + "glib-sys", + "libc", + "system-deps", +] + +[[package]] +name = "gtk" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd56fb197bfc42bd5d2751f4f017d44ff59fbb58140c6b49f9b3b2bdab08506a" +dependencies = [ + "atk", + "cairo-rs", + "field-offset", + "futures-channel", + "gdk", + "gdk-pixbuf", + "gio", + "glib", + "gtk-sys", + "gtk3-macros", + "libc", + "pango", + "pkg-config", +] + +[[package]] +name = "gtk-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f29a1c21c59553eb7dd40e918be54dccd60c52b049b75119d5d96ce6b624414" +dependencies = [ + "atk-sys", + "cairo-sys-rs", + "gdk-pixbuf-sys", + "gdk-sys", + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "pango-sys", + "system-deps", +] + +[[package]] +name = "gtk3-macros" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52ff3c5b21f14f0736fed6dcfc0bfb4225ebf5725f3c0209edeec181e4d73e9d" +dependencies = [ + "proc-macro-crate 1.3.1", + "proc-macro-error", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "h2" +version = "0.4.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef8e5e5a340588f4452631496976cf8636d4a7ecf600239fdc27615d2530bc16" +dependencies = [ + "atomic-waker", + "bytes", + "fnv", + "futures-core", + "futures-sink", + "http", + "indexmap 2.14.2", + "slab", + "tokio", + "tokio-util", + "tracing", +] + +[[package]] +name = "half" +version = "2.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ea2d84b969582b4b1864a92dc5d27cd2b77b622a8d79306834f1be5ba20d84b" +dependencies = [ + "cfg-if", + "crunchy", + "num-traits", + "zerocopy", +] + +[[package]] +name = "hashbrown" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" + +[[package]] +name = "hashbrown" +version = "0.14.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" +dependencies = [ + "ahash", + "allocator-api2", +] + +[[package]] +name = "hashbrown" +version = "0.17.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" + +[[package]] +name = "hashlink" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8094feaf31ff591f651a2664fb9cfd92bba7a60ce3197265e9482ebe753c8f7" +dependencies = [ + "hashbrown 0.14.5", +] + +[[package]] +name = "heck" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" + +[[package]] +name = "heck" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" + +[[package]] +name = "hex" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" + +[[package]] +name = "html5ever" +version = "0.38.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1054432bae2f14e0061e33d23402fbaa67a921d319d56adc6bcf887ddad1cbc2" +dependencies = [ + "log", + "markup5ever", +] + +[[package]] +name = "http" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "918d3568bebf352712bc2ef3d46a8bcf1a75b373be6539de198e9105cbbf9ce0" +dependencies = [ + "bytes", + "itoa", +] + +[[package]] +name = "http-body" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca2a8f2913ee65f60facd6a5905613afaa448497a0230cc41ce022d93290bc2c" +dependencies = [ + "bytes", + "http", +] + +[[package]] +name = "http-body-util" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23169fe34a5fbcdd3f3862e78fb9b6fccd5f02a6dc6f732547005d45631ce71c" +dependencies = [ + "bytes", + "futures-core", + "http", + "http-body", + "pin-project-lite", +] + +[[package]] +name = "httparse" +version = "1.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" + +[[package]] +name = "hyper" +version = "1.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27b501faa50e7a26c3d3560ca625132f4078a17771f4810baf70475ae48cbe43" +dependencies = [ + "atomic-waker", + "bytes", + "futures-channel", + "futures-core", + "h2", + "http", + "http-body", + "httparse", + "itoa", + "pin-project-lite", + "smallvec", + "tokio", + "want", +] + +[[package]] +name = "hyper-rustls" +version = "0.27.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33ca68d021ef39cf6463ab54c1d0f5daf03377b70561305bb89a8f83aab66e0f" +dependencies = [ + "http", + "hyper", + "hyper-util", + "rustls", + "tokio", + "tokio-rustls", + "tower-service", + "webpki-roots", +] + +[[package]] +name = "hyper-tls" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0" +dependencies = [ + "bytes", + "http-body-util", + "hyper", + "hyper-util", + "native-tls", + "tokio", + "tokio-native-tls", + "tower-service", +] + +[[package]] +name = "hyper-util" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96547c2556ec9d12fb1578c4eaf448b04993e7fb79cbaad930a656880a6bdfa0" +dependencies = [ + "base64 0.22.1", + "bytes", + "futures-channel", + "futures-util", + "http", + "http-body", + "hyper", + "ipnet", + "libc", + "percent-encoding", + "pin-project-lite", + "socket2", + "system-configuration", + "tokio", + "tower-service", + "tracing", + "windows-registry", +] + +[[package]] +name = "iana-time-zone" +version = "0.1.65" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470" +dependencies = [ + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "log", + "wasm-bindgen", + "windows-core 0.62.2", +] + +[[package]] +name = "iana-time-zone-haiku" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" +dependencies = [ + "cc", +] + +[[package]] +name = "ico" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e795dff5605e0f04bff85ca41b51a96b83e80b281e96231bcaaf1ac35103371" +dependencies = [ + "byteorder", + "png 0.17.16", +] + +[[package]] +name = "icu_collections" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa68d21081c4a05d5a901a1c62add574c77048b6a1c67be3b50ce0b60d4ca513" +dependencies = [ + "displaydoc", + "potential_utf", + "utf8_iter", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_locale_core" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d56e28588da92eee5c3201a6eff33fabdd49b62269c8938d4ff050ce4d900deb" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_normalizer" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12f9cf5f235641ed274641dd81c3f28d870e276763d0797aeeab72317b1c646f" +dependencies = [ + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1563da1ed3e0b3bf3d74c9b85917ac9c56464d2f57242270c09c9e752f8021a0" + +[[package]] +name = "icu_properties" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e7ca276ad3145661a65914e6daf131ca5120cd3dcee8f8f3214b8875184a148" +dependencies = [ + "displaydoc", + "icu_collections", + "icu_locale_core", + "icu_properties_data", + "icu_provider", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e590f038c1464a96894fd6d10127e90a8be4509f56ff7ecef851b15cee0b7caa" + +[[package]] +name = "icu_provider" +version = "2.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d27bbb9d3abbefac45d55f647c9de1d44aafcd1186eb91879afef17c396c3e73" +dependencies = [ + "displaydoc", + "icu_locale_core", + "writeable", + "yoke", + "zerofrom", + "zerotrie", + "zerovec", +] + +[[package]] +name = "ident_case" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" + +[[package]] +name = "idna" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de" +dependencies = [ + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714" +dependencies = [ + "icu_normalizer", + "icu_properties", +] + +[[package]] +name = "indexmap" +version = "1.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" +dependencies = [ + "autocfg", + "hashbrown 0.12.3", + "serde", +] + +[[package]] +name = "indexmap" +version = "2.14.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855" +dependencies = [ + "equivalent", + "hashbrown 0.17.1", + "serde", + "serde_core", +] + +[[package]] +name = "infer" +version = "0.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a588916bfdfd92e71cacef98a63d9b1f0d74d6599980d11894290e7ddefffcf7" +dependencies = [ + "cfb", +] + +[[package]] +name = "ipnet" +version = "2.12.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "791930b43c0d5973160d90a8f3894509f2b273430f5c5c73b668636d0287c5c0" + +[[package]] +name = "is-docker" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "928bae27f42bc99b60d9ac7334e3a21d10ad8f1835a4e12ec3ec0464765ed1b3" +dependencies = [ + "once_cell", +] + +[[package]] +name = "is-wsl" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "173609498df190136aa7dea1a91db051746d339e18476eed5ca40521f02d7aa5" +dependencies = [ + "is-docker", + "once_cell", +] + +[[package]] +name = "is_terminal_polyfill" +version = "1.70.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695" + +[[package]] +name = "itoa" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" + +[[package]] +name = "javascriptcore-rs" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca5671e9ffce8ffba57afc24070e906da7fc4b1ba66f2cabebf61bf2ea257fcc" +dependencies = [ + "bitflags 1.3.2", + "glib", + "javascriptcore-rs-sys", +] + +[[package]] +name = "javascriptcore-rs-sys" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af1be78d14ffa4b75b66df31840478fef72b51f8c2465d4ca7c194da9f7a5124" +dependencies = [ + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "jiff" +version = "0.2.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "668b7183bd07af9a4885f5c35b0cc5c83c4607a913c16b7e17291832910d2dcc" +dependencies = [ + "defmt", + "jiff-core", + "jiff-static", + "jiff-tzdb-platform", + "log", + "portable-atomic", + "portable-atomic-util", + "serde_core", + "windows-link 0.2.1", +] + +[[package]] +name = "jiff-core" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7feca88439efe53da3754500c1851dedf3cb36c524dd5cf8225cc0794de95d09" +dependencies = [ + "defmt", +] + +[[package]] +name = "jiff-static" +version = "0.2.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a69dcb3a21cfb32ce1cd056169337ca284af0766dd766e7878819b251a49204" +dependencies = [ + "jiff-core", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "jiff-tzdb" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "142bd39932ad231f10513df9ab62661fead8719872150b7ad02a2df79f4e141e" + +[[package]] +name = "jiff-tzdb-platform" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "875a5a69ac2bab1a891711cf5eccbec1ce0341ea805560dcd90b7a2e925132e8" +dependencies = [ + "jiff-tzdb", +] + +[[package]] +name = "jni" +version = "0.21.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a87aa2bb7d2af34197c04845522473242e1aa17c12f4935d5856491a7fb8c97" +dependencies = [ + "cesu8", + "cfg-if", + "combine", + "jni-sys 0.3.1", + "log", + "thiserror 1.0.69", + "walkdir", + "windows-sys 0.45.0", +] + +[[package]] +name = "jni-sys" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41a652e1f9b6e0275df1f15b32661cf0d4b78d4d87ddec5e0c3c20f097433258" +dependencies = [ + "jni-sys 0.4.1", +] + +[[package]] +name = "jni-sys" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6377a88cb3910bee9b0fa88d4f42e1d2da8e79915598f65fb0c7ee14c878af2" +dependencies = [ + "jni-sys-macros", +] + +[[package]] +name = "jni-sys-macros" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38c0b942f458fe50cdac086d2f946512305e5631e720728f2a61aabcd47a6264" +dependencies = [ + "quote", + "syn 2.0.119", +] + +[[package]] +name = "jobserver" +version = "0.1.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c00acbd29eabad4a2392fa0e921c874934dbbf4194312ad20f04a0ed67a3cb3" +dependencies = [ + "getrandom 0.4.3", + "libc", +] + +[[package]] +name = "js-sys" +version = "0.3.105" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce57d20d1ea864ce2ac172ab472d409214f4fd359f0b2a2775abdf522e2af99e" +dependencies = [ + "cfg-if", + "futures-util", + "wasm-bindgen", +] + +[[package]] +name = "json-patch" +version = "3.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "863726d7afb6bc2590eeff7135d923545e5e964f004c2ccf8716c25e70a86f08" +dependencies = [ + "jsonptr", + "serde", + "serde_json", + "thiserror 1.0.69", +] + +[[package]] +name = "jsonptr" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5dea2b27dd239b2556ed7a25ba842fe47fd602e7fc7433c2a8d6106d4d9edd70" +dependencies = [ + "serde", + "serde_json", +] + +[[package]] +name = "keyboard-types" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b750dcadc39a09dbadd74e118f6dd6598df77fa01df0cfcdc52c28dece74528a" +dependencies = [ + "bitflags 2.13.2", + "serde", + "unicode-segmentation", +] + +[[package]] +name = "lexical-core" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2cde5de06e8d4c2faabc400238f9ae1c74d5412d03a7bd067645ccbc47070e46" +dependencies = [ + "lexical-parse-float", + "lexical-parse-integer", + "lexical-util", + "lexical-write-float", + "lexical-write-integer", +] + +[[package]] +name = "lexical-parse-float" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "683b3a5ebd0130b8fb52ba0bdc718cc56815b6a097e28ae5a6997d0ad17dc05f" +dependencies = [ + "lexical-parse-integer", + "lexical-util", + "static_assertions", +] + +[[package]] +name = "lexical-parse-integer" +version = "0.8.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d0994485ed0c312f6d965766754ea177d07f9c00c9b82a5ee62ed5b47945ee9" +dependencies = [ + "lexical-util", + "static_assertions", +] + +[[package]] +name = "lexical-util" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5255b9ff16ff898710eb9eb63cb39248ea8a5bb036bea8085b1a767ff6c4e3fc" +dependencies = [ + "static_assertions", +] + +[[package]] +name = "lexical-write-float" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "accabaa1c4581f05a3923d1b4cfd124c329352288b7b9da09e766b0668116862" +dependencies = [ + "lexical-util", + "lexical-write-integer", + "static_assertions", +] + +[[package]] +name = "lexical-write-integer" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1b6f3d1f4422866b68192d62f77bc5c700bee84f3069f2469d7bc8c77852446" +dependencies = [ + "lexical-util", + "static_assertions", +] + +[[package]] +name = "libappindicator" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03589b9607c868cc7ae54c0b2a22c8dc03dd41692d48f2d7df73615c6a95dc0a" +dependencies = [ + "glib", + "gtk", + "gtk-sys", + "libappindicator-sys", + "log", +] + +[[package]] +name = "libappindicator-sys" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e9ec52138abedcc58dc17a7c6c0c00a2bdb4f3427c7f63fa97fd0d859155caf" +dependencies = [ + "gtk-sys", + "libloading", + "once_cell", +] + +[[package]] +name = "libc" +version = "0.2.189" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2" + +[[package]] +name = "libdbus-sys" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "328c4789d42200f1eeec05bd86c9c13c7f091d2ba9a6ea35acdf51f31bc0f043" +dependencies = [ + "pkg-config", +] + +[[package]] +name = "libduckdb-sys" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "51b3f02cecc430f61561bde538d42af4be2d9d5a8b058f74883e460bc1055461" +dependencies = [ + "autocfg", + "cc", + "flate2", + "pkg-config", + "serde", + "serde_json", + "tar", + "vcpkg", +] + +[[package]] +name = "libloading" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b67380fd3b2fbe7527a606e18729d21c6f3951633d0500574c4dc22d2d638b9f" +dependencies = [ + "cfg-if", + "winapi", +] + +[[package]] +name = "libm" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981" + +[[package]] +name = "libredox" +version = "0.1.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d8f1ea3f21fd3405dcaf6c9b5c1630af9afc422d9073ea39c5f6d6c772e08ed" +dependencies = [ + "libc", +] + +[[package]] +name = "linux-raw-sys" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53" + +[[package]] +name = "litemap" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae" + +[[package]] +name = "lock_api" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965" +dependencies = [ + "scopeguard", +] + +[[package]] +name = "log" +version = "0.4.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6" + +[[package]] +name = "lru-slab" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "112b39cec0b298b6c1999fee3e31427f74f676e4cb9879ed1a121b43661a4154" + +[[package]] +name = "markup5ever" +version = "0.38.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8983d30f2915feeaaab2d6babdd6bc7e9ed1a00b66b5e6d74df19aa9c0e91862" +dependencies = [ + "log", + "tendril", + "web_atoms", +] + +[[package]] +name = "memchr" +version = "2.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" + +[[package]] +name = "memoffset" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a" +dependencies = [ + "autocfg", +] + +[[package]] +name = "mime" +version = "0.3.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" + +[[package]] +name = "minisign-verify" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22f9645cb765ea72b8111f36c522475d2daa0d22c957a9826437e97534bc4e9e" + +[[package]] +name = "miniz_oxide" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316" +dependencies = [ + "adler2", + "simd-adler32", +] + +[[package]] +name = "miniz_oxide" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b63fbc4a50860e98e7b2aa7804ded1db5cbc3aff9193adaff57a6931bf7c4b4c" +dependencies = [ + "adler2", + "simd-adler32", +] + +[[package]] +name = "mio" +version = "1.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4b18443e9c262bfe8fa82f51666e2642c53393f7e5c27b3e1aeab922cff5b9d8" +dependencies = [ + "libc", + "wasi", + "windows-sys 0.61.2", +] + +[[package]] +name = "muda" +version = "0.19.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1dd04e60bc0b07438a6771710ee1698f98f6ebbc7f89b61264af1563b8aeb878" +dependencies = [ + "crossbeam-channel", + "dpi", + "gtk", + "keyboard-types", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-foundation", + "once_cell", + "png 0.18.1", + "serde", + "thiserror 2.0.20", + "windows-sys 0.61.2", +] + +[[package]] +name = "multiversion" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4ca4bea16ffc3f443cf7d866912118196bfef4c6a1556ca00f9f9b00bb43f7c" +dependencies = [ + "multiversion-macros", +] + +[[package]] +name = "multiversion-macros" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d416831a7317ef4b08bee00b69cbbb9c8763da7959a7026244d6266869f9c83" +dependencies = [ + "proc-macro2", + "quote", + "rustversion", + "syn 3.0.5", +] + +[[package]] +name = "multiversion_no_op" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "743fb55ba31b18fb1ecef6bdc9aa2743314978ac084044301a7eee33fb99a20d" + +[[package]] +name = "native-tls" +version = "0.2.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "465500e14ea162429d264d44189adc38b199b62b1c21eea9f69e4b73cb03bbf2" +dependencies = [ + "libc", + "log", + "openssl", + "openssl-probe", + "openssl-sys", + "schannel", + "security-framework", + "security-framework-sys", + "tempfile", +] + +[[package]] +name = "ndk" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3f42e7bbe13d351b6bead8286a43aac9534b82bd3cc43e47037f012ebfd62d4" +dependencies = [ + "bitflags 2.13.2", + "jni-sys 0.3.1", + "log", + "ndk-sys", + "num_enum", + "raw-window-handle", + "thiserror 1.0.69", +] + +[[package]] +name = "ndk-sys" +version = "0.6.0+11769913" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee6cda3051665f1fb8d9e08fc35c96d5a244fb1be711a03b71118828afc9a873" +dependencies = [ + "jni-sys 0.3.1", +] + +[[package]] +name = "new_debug_unreachable" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086" + +[[package]] +name = "nix" +version = "0.31.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf20d2fde8ff38632c426f1165ed7436270b44f199fc55284c38276f9db47c3d" +dependencies = [ + "bitflags 2.13.2", + "cfg-if", + "cfg_aliases", + "libc", +] + +[[package]] +name = "num" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "35bd024e8b2ff75562e5f34e7f4905839deb4b22955ef5e73d2fea1b9813cb23" +dependencies = [ + "num-bigint", + "num-complex", + "num-integer", + "num-iter", + "num-rational", + "num-traits", +] + +[[package]] +name = "num-bigint" +version = "0.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c89e69e7e0f03bea5ef08013795c25018e101932225a656383bd384495ecc367" +dependencies = [ + "num-integer", + "num-traits", +] + +[[package]] +name = "num-complex" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495" +dependencies = [ + "num-traits", +] + +[[package]] +name = "num-conv" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "521739c6d2bac4aa25192232afe6841231376b2b26d4d9fae5ecf8ca5772e441" + +[[package]] +name = "num-integer" +version = "0.1.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ce2d95d4b3734dc35aa2f45e1aa22cd416814592a4f9d9205e11affd5b8e10b" +dependencies = [ + "num-traits", +] + +[[package]] +name = "num-iter" +version = "0.1.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c92800bd69a1eac91786bcfe9da64a897eb72911b8dc3095decbd07429e8048b" +dependencies = [ + "num-integer", + "num-traits", +] + +[[package]] +name = "num-rational" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f83d14da390562dca69fc84082e73e548e1ad308d24accdedd2720017cb37824" +dependencies = [ + "num-bigint", + "num-integer", + "num-traits", +] + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", + "libm", +] + +[[package]] +name = "num_enum" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d0bca838442ec211fa11de3a8b0e0e8f3a4522575b5c4c06ed722e005036f26" +dependencies = [ + "num_enum_derive", + "rustversion", +] + +[[package]] +name = "num_enum_derive" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "680998035259dcfcafe653688bf2aa6d3e2dc05e98be6ab46afb089dc84f1df8" +dependencies = [ + "proc-macro-crate 3.5.0", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "objc2" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a12a8ed07aefc768292f076dc3ac8c48f3781c8f2d5851dd3d98950e8c5a89f" +dependencies = [ + "objc2-encode", + "objc2-exception-helper", +] + +[[package]] +name = "objc2-app-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c" +dependencies = [ + "bitflags 2.13.2", + "block2", + "objc2", + "objc2-core-foundation", + "objc2-foundation", +] + +[[package]] +name = "objc2-cloud-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73ad74d880bb43877038da939b7427bba67e9dd42004a18b809ba7d87cee241c" +dependencies = [ + "bitflags 2.13.2", + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-core-data" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b402a653efbb5e82ce4df10683b6b28027616a2715e90009947d50b8dd298fa" +dependencies = [ + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-core-foundation" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536" +dependencies = [ + "bitflags 2.13.2", + "dispatch2", + "objc2", +] + +[[package]] +name = "objc2-core-graphics" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807" +dependencies = [ + "bitflags 2.13.2", + "dispatch2", + "objc2", + "objc2-core-foundation", + "objc2-io-surface", +] + +[[package]] +name = "objc2-core-image" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5d563b38d2b97209f8e861173de434bd0214cf020e3423a52624cd1d989f006" +dependencies = [ + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-core-location" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca347214e24bc973fc025fd0d36ebb179ff30536ed1f80252706db19ee452009" +dependencies = [ + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-core-text" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0cde0dfb48d25d2b4862161a4d5fcc0e3c24367869ad306b0c9ec0073bfed92d" +dependencies = [ + "bitflags 2.13.2", + "objc2", + "objc2-core-foundation", + "objc2-core-graphics", +] + +[[package]] +name = "objc2-encode" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33" + +[[package]] +name = "objc2-exception-helper" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7a1c5fbb72d7735b076bb47b578523aedc40f3c439bea6dfd595c089d79d98a" +dependencies = [ + "cc", +] + +[[package]] +name = "objc2-foundation" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272" +dependencies = [ + "bitflags 2.13.2", + "block2", + "objc2", + "objc2-core-foundation", +] + +[[package]] +name = "objc2-io-surface" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d" +dependencies = [ + "bitflags 2.13.2", + "objc2", + "objc2-core-foundation", +] + +[[package]] +name = "objc2-quartz-core" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96c1358452b371bf9f104e21ec536d37a650eb10f7ee379fff67d2e08d537f1f" +dependencies = [ + "bitflags 2.13.2", + "objc2", + "objc2-core-foundation", + "objc2-foundation", +] + +[[package]] +name = "objc2-ui-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d87d638e33c06f577498cbcc50491496a3ed4246998a7fbba7ccb98b1e7eab22" +dependencies = [ + "bitflags 2.13.2", + "block2", + "objc2", + "objc2-cloud-kit", + "objc2-core-data", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-core-image", + "objc2-core-location", + "objc2-core-text", + "objc2-foundation", + "objc2-quartz-core", + "objc2-user-notifications", +] + +[[package]] +name = "objc2-user-notifications" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9df9128cbbfef73cda168416ccf7f837b62737d748333bfe9ab71c245d76613e" +dependencies = [ + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-web-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2e5aaab980c433cf470df9d7af96a7b46a9d892d521a2cbbb2f8a4c16751e7f" +dependencies = [ + "bitflags 2.13.2", + "block2", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-foundation", +] + +[[package]] +name = "once_cell" +version = "1.21.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" + +[[package]] +name = "once_cell_polyfill" +version = "1.70.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe" + +[[package]] +name = "open" +version = "5.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa576c76302b7b808eecc68061e67336c47833ef9d22caa74dda10fa9675eebc" +dependencies = [ + "dunce", + "is-wsl", + "libc", +] + +[[package]] +name = "openssl" +version = "0.10.81" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77823a27f0babb03091cb9ed9ef80af3b39dbc82f97e8fa530374b7dafd87a45" +dependencies = [ + "bitflags 2.13.2", + "cfg-if", + "foreign-types 0.3.2", + "libc", + "openssl-macros", + "openssl-sys", +] + +[[package]] +name = "openssl-macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "openssl-probe" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe" + +[[package]] +name = "openssl-sys" +version = "0.9.117" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b47e7e6bb2c38cd930d25a23b40fa52e068c10e85f3e03a7f5ba5aaca5713695" +dependencies = [ + "cc", + "libc", + "pkg-config", + "vcpkg", +] + +[[package]] +name = "option-ext" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" + +[[package]] +name = "os_pipe" +version = "1.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d8fae84b431384b68627d0f9b3b1245fcf9f46f6c0e3dc902e9dce64edd1967" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "pango" +version = "0.18.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ca27ec1eb0457ab26f3036ea52229edbdb74dee1edd29063f5b9b010e7ebee4" +dependencies = [ + "gio", + "glib", + "libc", + "once_cell", + "pango-sys", +] + +[[package]] +name = "pango-sys" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "436737e391a843e5933d6d9aa102cb126d501e815b83601365a948a518555dc5" +dependencies = [ + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "parking_lot" +version = "0.12.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a" +dependencies = [ + "lock_api", + "parking_lot_core", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall", + "smallvec", + "windows-link 0.2.1", +] + +[[package]] +name = "percent-encoding" +version = "2.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" + +[[package]] +name = "phf" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1562dc717473dbaa4c1f85a36410e03c047b2e7df7f45ee938fbef64ae7fadf" +dependencies = [ + "phf_macros", + "phf_shared", + "serde", +] + +[[package]] +name = "phf_codegen" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49aa7f9d80421bca176ca8dbfebe668cc7a2684708594ec9f3c0db0805d5d6e1" +dependencies = [ + "phf_generator", + "phf_shared", +] + +[[package]] +name = "phf_generator" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "135ace3a761e564ec88c03a77317a7c6b80bb7f7135ef2544dbe054243b89737" +dependencies = [ + "fastrand", + "phf_shared", +] + +[[package]] +name = "phf_macros" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "812f032b54b1e759ccd5f8b6677695d5268c588701effba24601f6932f8269ef" +dependencies = [ + "phf_generator", + "phf_shared", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "phf_shared" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e57fef6bc5981e38c2ce2d63bfa546861309f875b8a75f092d1d54ae2d64f266" +dependencies = [ + "siphasher", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" + +[[package]] +name = "pkg-config" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548" + +[[package]] +name = "plist" +version = "1.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2896bade328c13f7042a297ea5ac5b0951f6cf989dea5f32c2fd98da398195cb" +dependencies = [ + "base64 0.23.1", + "indexmap 2.14.2", + "quick-xml", + "serde", + "time", +] + +[[package]] +name = "png" +version = "0.17.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82151a2fc869e011c153adc57cf2789ccb8d9906ce52c0b39a6b5697749d7526" +dependencies = [ + "bitflags 1.3.2", + "crc32fast", + "fdeflate", + "flate2", + "miniz_oxide 0.8.9", +] + +[[package]] +name = "png" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60769b8b31b2a9f263dae2776c37b1b28ae246943cf719eb6946a1db05128a61" +dependencies = [ + "bitflags 2.13.2", + "crc32fast", + "fdeflate", + "flate2", + "miniz_oxide 0.8.9", +] + +[[package]] +name = "portable-atomic" +version = "1.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85" + +[[package]] +name = "portable-atomic-util" +version = "0.2.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10ab3eb7f3becc3a1cbc4f2c6f20267996cfc1a6467a873763411b136a122715" +dependencies = [ + "portable-atomic", +] + +[[package]] +name = "potential_utf" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d83eb9bc6d8e5cf568e7a1101d60ee05e81ed50ea106026f3d18deeb046d7661" +dependencies = [ + "zerovec", +] + +[[package]] +name = "powerfmt" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" + +[[package]] +name = "ppv-lite86" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9" +dependencies = [ + "zerocopy", +] + +[[package]] +name = "precomputed-hash" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" + +[[package]] +name = "proc-macro-crate" +version = "1.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919" +dependencies = [ + "once_cell", + "toml_edit 0.19.15", +] + +[[package]] +name = "proc-macro-crate" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b00f26d3400549137f92511a46ac1cd8ce37cb5598a96d382381458b992a5d24" +dependencies = [ + "toml_datetime 0.6.3", + "toml_edit 0.20.2", +] + +[[package]] +name = "proc-macro-crate" +version = "3.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f" +dependencies = [ + "toml_edit 0.25.15+spec-1.1.0", +] + +[[package]] +name = "proc-macro-error" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" +dependencies = [ + "proc-macro-error-attr", + "proc-macro2", + "quote", + "syn 1.0.109", + "version_check", +] + +[[package]] +name = "proc-macro-error-attr" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" +dependencies = [ + "proc-macro2", + "quote", + "version_check", +] + +[[package]] +name = "proc-macro2" +version = "1.0.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "quick-xml" +version = "0.42.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41b1177fdf999d2321d3fb46ff47159d9c1fb9ad66a4879f8c50a0b504615e9b" +dependencies = [ + "memchr", +] + +[[package]] +name = "quinn" +version = "0.11.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c1a41e437b6bbd489372cd4971de128e85c855f56c57f283d20ff016cf7c0a8" +dependencies = [ + "bytes", + "cfg_aliases", + "pin-project-lite", + "quinn-proto", + "quinn-udp", + "rustc-hash", + "rustls", + "socket2", + "thiserror 2.0.20", + "tokio", + "tracing", + "web-time", +] + +[[package]] +name = "quinn-proto" +version = "0.11.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04759210543be93709136e28212294a659ef5001836ff4eab4d663e4529bba83" +dependencies = [ + "bytes", + "getrandom 0.4.3", + "lru-slab", + "rand 0.10.2", + "rand_pcg", + "ring", + "rustc-hash", + "rustls", + "rustls-pki-types", + "slab", + "thiserror 2.0.20", + "tinyvec", + "tracing", + "web-time", +] + +[[package]] +name = "quinn-udp" +version = "0.5.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "35a133f956daabe89a61a685c2649f13d82d5aa4bd5d12d1277e1072a21c0694" +dependencies = [ + "cfg_aliases", + "libc", + "once_cell", + "socket2", + "tracing", + "windows-sys 0.61.2", +] + +[[package]] +name = "quote" +version = "1.0.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "r-efi" +version = "5.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" + +[[package]] +name = "r-efi" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" + +[[package]] +name = "rand" +version = "0.8.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e058c7de0b26af77780c769414d6257830bb240f3c38477dbc2c16e5f54d6d4c" +dependencies = [ + "libc", + "rand_chacha 0.3.1", + "rand_core 0.6.4", +] + +[[package]] +name = "rand" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9ef1d0d795eb7d84685bca4f72f3649f064e6641543d3a8c415898726a57b41" +dependencies = [ + "rand_chacha 0.9.0", + "rand_core 0.9.5", +] + +[[package]] +name = "rand" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7f5fa3a058cd35567ef9bfa5e75732bee0f9e4c55fa90477bef2dfcdbc4be80" +dependencies = [ + "chacha20", + "getrandom 0.4.3", + "rand_core 0.10.1", +] + +[[package]] +name = "rand_chacha" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +dependencies = [ + "ppv-lite86", + "rand_core 0.6.4", +] + +[[package]] +name = "rand_chacha" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" +dependencies = [ + "ppv-lite86", + "rand_core 0.9.5", +] + +[[package]] +name = "rand_core" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +dependencies = [ + "getrandom 0.2.17", +] + +[[package]] +name = "rand_core" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c" +dependencies = [ + "getrandom 0.3.4", +] + +[[package]] +name = "rand_core" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69" + +[[package]] +name = "rand_pcg" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "caa0f4137e1c0a72f4c651489402276c8e8e1cf081f3b0ba156d2cbeef09e86a" +dependencies = [ + "rand_core 0.10.1", +] + +[[package]] +name = "raw-window-handle" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20675572f6f24e9e76ef639bc5552774ed45f1c30e2951e1e99c59888861c539" + +[[package]] +name = "redox_syscall" +version = "0.5.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" +dependencies = [ + "bitflags 2.13.2", +] + +[[package]] +name = "redox_users" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4e608c6638b9c18977b00b475ac1f28d14e84b27d8d42f70e0bf1e3dec127ac" +dependencies = [ + "getrandom 0.2.17", + "libredox", + "thiserror 2.0.20", +] + +[[package]] +name = "ref-cast" +version = "1.0.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e440fb4e4b4147295338efb76001ab9e4efc0e5839df2c47fc5ac2381d365c3" +dependencies = [ + "ref-cast-impl", +] + +[[package]] +name = "ref-cast-impl" +version = "1.0.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92ecd8964f8453721699a1ed72037b0db49ce2f5a5138486ee89bed6f67cdf3a" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.5", +] + +[[package]] +name = "regex" +version = "1.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.4.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.8.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" + +[[package]] +name = "reqwest" +version = "0.12.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eddd3ca559203180a307f12d114c268abf583f59b03cb906fd0b3ff8646c1147" +dependencies = [ + "base64 0.22.1", + "bytes", + "encoding_rs", + "futures-core", + "futures-util", + "h2", + "http", + "http-body", + "http-body-util", + "hyper", + "hyper-rustls", + "hyper-tls", + "hyper-util", + "js-sys", + "log", + "mime", + "native-tls", + "percent-encoding", + "pin-project-lite", + "quinn", + "rustls", + "rustls-pki-types", + "serde", + "serde_json", + "serde_urlencoded", + "sync_wrapper", + "tokio", + "tokio-native-tls", + "tokio-rustls", + "tokio-util", + "tower", + "tower-http", + "tower-service", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "wasm-streams 0.4.2", + "web-sys", + "webpki-roots", +] + +[[package]] +name = "reqwest" +version = "0.13.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16a1cfa75cc186dd73d5818e510e042e40927bccc9c236b061cea97e1eb08029" +dependencies = [ + "base64 0.23.1", + "bytes", + "futures-core", + "futures-util", + "http", + "http-body", + "http-body-util", + "hyper", + "hyper-util", + "js-sys", + "log", + "percent-encoding", + "pin-project-lite", + "serde", + "serde_json", + "sync_wrapper", + "tokio", + "tokio-util", + "tower", + "tower-http", + "tower-service", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "wasm-streams 0.5.0", + "web-sys", +] + +[[package]] +name = "ring" +version = "0.17.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7" +dependencies = [ + "cc", + "cfg-if", + "getrandom 0.2.17", + "libc", + "untrusted", + "windows-sys 0.52.0", +] + +[[package]] +name = "rust_decimal" +version = "1.43.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7653272e75dcac41dc199fbea6f5797633994fafd339943c06c9af16bf29cd3a" +dependencies = [ + "arrayvec", + "borsh", + "bytes", + "num-traits", + "rand 0.8.8", + "rand 0.9.5", + "serde", + "serde_json", + "wasm-bindgen", +] + +[[package]] +name = "rustc-hash" +version = "2.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d" + +[[package]] +name = "rustc_version" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" +dependencies = [ + "semver", +] + +[[package]] +name = "rustix" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190" +dependencies = [ + "bitflags 2.13.2", + "errno", + "libc", + "linux-raw-sys", + "windows-sys 0.61.2", +] + +[[package]] +name = "rustls" +version = "0.23.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6725596c3f2c3a0aef021139e145d4eafe314a6623e4680ca83852b2c67ab2ba" +dependencies = [ + "once_cell", + "ring", + "rustls-pki-types", + "rustls-webpki", + "subtle", + "zeroize", +] + +[[package]] +name = "rustls-pki-types" +version = "1.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f4925028c7eb5d1fcdaf196971378ed9d2c1c4efc7dc5d011256f76c99c0a96" +dependencies = [ + "web-time", + "zeroize", +] + +[[package]] +name = "rustls-webpki" +version = "0.103.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f3c3cf1d8b1e7d4927e2d154c3fcb02979afb9939629c62cd9048d4f07b60ac2" +dependencies = [ + "ring", + "rustls-pki-types", + "untrusted", +] + +[[package]] +name = "rustversion" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f" + +[[package]] +name = "ryu" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f" + +[[package]] +name = "same-file" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "schannel" +version = "0.1.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "schemars" +version = "0.8.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3fbf2ae1b8bc8e02df939598064d22402220cd5bbcca1c76f7d6a310974d5615" +dependencies = [ + "dyn-clone", + "indexmap 1.9.3", + "schemars_derive", + "serde", + "serde_json", + "url", + "uuid", +] + +[[package]] +name = "schemars" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cd191f9397d57d581cddd31014772520aa448f65ef991055d7f61582c65165f" +dependencies = [ + "dyn-clone", + "ref-cast", + "serde", + "serde_json", +] + +[[package]] +name = "schemars" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "687274d293b6cdc6e73e0fee520bf2049650090d7164f87672d212a3c530cf4a" +dependencies = [ + "dyn-clone", + "ref-cast", + "serde", + "serde_json", +] + +[[package]] +name = "schemars_derive" +version = "0.8.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32e265784ad618884abaea0600a9adf15393368d840e0222d101a072f3f7534d" +dependencies = [ + "proc-macro2", + "quote", + "serde_derive_internals", + "syn 2.0.119", +] + +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "security-framework" +version = "3.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d" +dependencies = [ + "bitflags 2.13.2", + "core-foundation 0.10.1", + "core-foundation-sys", + "libc", + "security-framework-sys", +] + +[[package]] +name = "security-framework-sys" +version = "2.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "selectors" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c5d9c0c92a92d33f08817311cf3f2c29a3538a8240e94a6a3c622ce652d7e00c" +dependencies = [ + "bitflags 2.13.2", + "cssparser", + "derive_more", + "log", + "new_debug_unreachable", + "phf", + "phf_codegen", + "precomputed-hash", + "rustc-hash", + "servo_arc", + "smallvec", +] + +[[package]] +name = "semver" +version = "1.0.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd" +dependencies = [ + "serde", + "serde_core", +] + +[[package]] +name = "serde" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba" +dependencies = [ + "serde_core", + "serde_derive", +] + +[[package]] +name = "serde-untagged" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9faf48a4a2d2693be24c6289dbe26552776eb7737074e6722891fadbe6c5058" +dependencies = [ + "erased-serde", + "serde", + "serde_core", + "typeid", +] + +[[package]] +name = "serde_core" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.5", +] + +[[package]] +name = "serde_derive_internals" +version = "0.29.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "18d26a20a969b9e3fdf2fc2d9f21eda6c40e2de84c9408bb5d3b05d499aae711" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "serde_json" +version = "1.0.151" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14" +dependencies = [ + "itoa", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[package]] +name = "serde_repr" +version = "0.1.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d3b1629de253c70a0508c3899572da79ca359fdab27c7920ff00406df418906" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.5", +] + +[[package]] +name = "serde_spanned" +version = "0.6.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf41e0cfaf7226dca15e8197172c295a782857fcb97fad1808a166870dee75a3" +dependencies = [ + "serde", +] + +[[package]] +name = "serde_spanned" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6662b5879511e06e8999a8a235d848113e942c9124f211511b16466ee2995f26" +dependencies = [ + "serde_core", +] + +[[package]] +name = "serde_urlencoded" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" +dependencies = [ + "form_urlencoded", + "itoa", + "ryu", + "serde", +] + +[[package]] +name = "serde_with" +version = "3.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "935177bb8c0cd8ca1a4e6d1a2ac8988bea69cab4f9d3a31311e012ad27868ea4" +dependencies = [ + "base64 0.23.1", + "bs58", + "chrono", + "hex", + "indexmap 1.9.3", + "indexmap 2.14.2", + "jiff", + "schemars 0.9.0", + "schemars 1.2.2", + "serde_core", + "serde_json", + "serde_with_macros", + "time", +] + +[[package]] +name = "serde_with_macros" +version = "3.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d607aa01a3cb0ad757d6fd216136910db3c97b102fe686585689615a02dbcdc" +dependencies = [ + "darling", + "proc-macro2", + "quote", + "syn 3.0.5", +] + +[[package]] +name = "serialize-to-javascript" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04f3666a07a197cdb77cdf306c32be9b7f598d7060d50cfd4d5aa04bfd92f6c5" +dependencies = [ + "serde", + "serde_json", + "serialize-to-javascript-impl", +] + +[[package]] +name = "serialize-to-javascript-impl" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "772ee033c0916d670af7860b6e1ef7d658a4629a6d0b4c8c3e67f09b3765b75d" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "servo_arc" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "170fb83ab34de17dc69aa7c67482b22218ddb85da56546f9bd6b929e32a05930" +dependencies = [ + "stable_deref_trait", +] + +[[package]] +name = "sha2" +version = "0.10.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283" +dependencies = [ + "cfg-if", + "cpufeatures 0.2.17", + "digest", +] + +[[package]] +name = "shared_child" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "607549934f6cc26b89cfecfdc46fa90f1e5d1536a68349b0c3a4f9d1c0d37959" +dependencies = [ + "libc", + "sigchld", + "windows-sys 0.61.2", +] + +[[package]] +name = "shlex" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba" + +[[package]] +name = "sigchld" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24f2b37f04360cd465089b87a9c3869c08220a2f3458463f0adf8badf5e77f2c" +dependencies = [ + "libc", + "os_pipe", + "signal-hook", +] + +[[package]] +name = "signal-hook" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2a0c28ca5908dbdbcd52e6fdaa00358ab88637f8ab33e1f188dd510eb44b53d" +dependencies = [ + "libc", + "signal-hook-registry", +] + +[[package]] +name = "signal-hook-registry" +version = "1.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b" +dependencies = [ + "errno", + "libc", +] + +[[package]] +name = "simd-adler32" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea" + +[[package]] +name = "simdutf8" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e" + +[[package]] +name = "siphasher" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ee5873ec9cce0195efcb7a4e9507a04cd49aec9c83d0389df45b1ef7ba2e649" + +[[package]] +name = "slab" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" + +[[package]] +name = "smallvec" +version = "1.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9be42f50aa861c555654aa3a37f52f4b1074bacf4e48fe0ef7fa584e80f1f0f" + +[[package]] +name = "socket2" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "softbuffer" +version = "0.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aac18da81ebbf05109ab275b157c22a653bb3c12cf884450179942f81bcbf6c3" +dependencies = [ + "bytemuck", + "js-sys", + "ndk", + "objc2", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-foundation", + "objc2-quartz-core", + "raw-window-handle", + "redox_syscall", + "tracing", + "wasm-bindgen", + "web-sys", + "windows-sys 0.61.2", +] + +[[package]] +name = "soup3" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "471f924a40f31251afc77450e781cb26d55c0b650842efafc9c6cbd2f7cc4f9f" +dependencies = [ + "futures-channel", + "gio", + "glib", + "libc", + "soup3-sys", +] + +[[package]] +name = "soup3-sys" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ebe8950a680a12f24f15ebe1bf70db7af98ad242d9db43596ad3108aab86c27" +dependencies = [ + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "stable_deref_trait" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" + +[[package]] +name = "static_assertions" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" + +[[package]] +name = "string_cache" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a18596f8c785a729f2819c0f6a7eae6ebeebdfffbfe4214ae6b087f690e31901" +dependencies = [ + "new_debug_unreachable", + "parking_lot", + "phf_shared", + "precomputed-hash", +] + +[[package]] +name = "string_cache_codegen" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "585635e46db231059f76c5849798146164652513eb9e8ab2685939dd90f29b69" +dependencies = [ + "phf_generator", + "phf_shared", + "proc-macro2", + "quote", +] + +[[package]] +name = "strsim" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" + +[[package]] +name = "strum" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "290d54ea6f91c969195bdbcd7442c8c2a2ba87da8bf60a7ee86a235d4bc1e125" +dependencies = [ + "strum_macros", +] + +[[package]] +name = "strum_macros" +version = "0.25.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23dc1fa9ac9c169a78ba62f0b841814b7abae11bdd047b9c58f893439e309ea0" +dependencies = [ + "heck 0.4.1", + "proc-macro2", + "quote", + "rustversion", + "syn 2.0.119", +] + +[[package]] +name = "subtle" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" + +[[package]] +name = "swift-rs" +version = "1.0.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e45c444e496845d3f2a351146bff59aae4975b2280238df1dfaa0c7d1846f38e" +dependencies = [ + "base64 0.21.7", + "serde", + "serde_json", +] + +[[package]] +name = "syn" +version = "1.0.109" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" +dependencies = [ + "proc-macro2", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "2.0.119" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "3.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12df2e0110f65b775f769bb17ef989067a1d931b2eb822bd4346631eeada89f9" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "sync_wrapper" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" +dependencies = [ + "futures-core", +] + +[[package]] +name = "synstructure" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "system-configuration" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a13f3d0daba03132c0aa9767f98351b3488edc2c100cda2d2ec2b04f3d8d3c8b" +dependencies = [ + "bitflags 2.13.2", + "core-foundation 0.9.4", + "system-configuration-sys", +] + +[[package]] +name = "system-configuration-sys" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "system-deps" +version = "6.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a3e535eb8dded36d55ec13eddacd30dec501792ff23a0b1682c38601b8cf2349" +dependencies = [ + "cfg-expr", + "heck 0.5.0", + "pkg-config", + "toml 0.8.2", + "version-compare", +] + +[[package]] +name = "tao" +version = "0.35.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1c93047acf68669466a34690ac58cca7010bd1b201e1ec86f1fd0a75d3dd4a9" +dependencies = [ + "bitflags 2.13.2", + "block2", + "core-foundation 0.10.1", + "core-graphics", + "crossbeam-channel", + "dbus", + "dispatch2", + "dlopen2", + "dpi", + "gdkwayland-sys", + "gdkx11-sys", + "gtk", + "jni", + "libc", + "log", + "ndk", + "ndk-sys", + "objc2", + "objc2-app-kit", + "objc2-foundation", + "objc2-ui-kit", + "once_cell", + "parking_lot", + "percent-encoding", + "raw-window-handle", + "tao-macros", + "unicode-segmentation", + "url", + "windows", + "windows-core 0.61.2", + "windows-version", + "x11-dl", +] + +[[package]] +name = "tao-macros" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f7eeb6d99155545da6150a1795945f16ac9c178deb2a5f2e74d776107bd5849" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "tar" +version = "0.4.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f6221d9a6003c78398e3b239969f352578258df48c8eb051caadae0015bc840" +dependencies = [ + "filetime", + "libc", + "xattr", +] + +[[package]] +name = "target-lexicon" +version = "0.12.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1" + +[[package]] +name = "tauri" +version = "2.11.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "667b20e2726d572dea2de7370da16e188eb06008faf9a92fab7cdc46791190b5" +dependencies = [ + "anyhow", + "bytes", + "cookie", + "dirs", + "dunce", + "embed_plist", + "getrandom 0.3.4", + "glob", + "gtk", + "heck 0.5.0", + "http", + "jni", + "libc", + "log", + "mime", + "muda", + "objc2", + "objc2-app-kit", + "objc2-foundation", + "objc2-ui-kit", + "objc2-web-kit", + "percent-encoding", + "plist", + "raw-window-handle", + "reqwest 0.13.5", + "serde", + "serde_json", + "serde_repr", + "serialize-to-javascript", + "swift-rs", + "tauri-build", + "tauri-macros", + "tauri-runtime", + "tauri-runtime-wry", + "tauri-utils", + "thiserror 2.0.20", + "tokio", + "tray-icon", + "url", + "webkit2gtk", + "webview2-com", + "window-vibrancy", + "windows", +] + +[[package]] +name = "tauri-build" +version = "2.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc9ce40b16101cb6ea63d3e221567affd1c3a9205f95d7bc574941a10636b632" +dependencies = [ + "anyhow", + "cargo_toml", + "dirs", + "glob", + "heck 0.5.0", + "json-patch", + "schemars 0.8.22", + "semver", + "serde", + "serde_json", + "tauri-utils", + "tauri-winres", + "walkdir", +] + +[[package]] +name = "tauri-codegen" +version = "2.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08279169ff42f8fc45a1dbc9dcae888893ba95288142e5880c59b93a26d2cfc5" +dependencies = [ + "base64 0.22.1", + "brotli", + "ico", + "json-patch", + "plist", + "png 0.17.16", + "proc-macro2", + "quote", + "semver", + "serde", + "serde_json", + "sha2", + "syn 2.0.119", + "tauri-utils", + "thiserror 2.0.20", + "time", + "url", + "uuid", + "walkdir", +] + +[[package]] +name = "tauri-macros" +version = "2.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8b394794f399a421811d06966343e7933fcae92d59f5180b9388d1174497a45" +dependencies = [ + "heck 0.5.0", + "proc-macro2", + "quote", + "syn 2.0.119", + "tauri-codegen", + "tauri-utils", +] + +[[package]] +name = "tauri-plugin" +version = "2.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "74be5dd4bed9afbd145e5716b5fa2ec28cbc29c34ffa61c258c9273d896c8020" +dependencies = [ + "anyhow", + "glob", + "plist", + "schemars 0.8.22", + "serde", + "serde_json", + "tauri-utils", + "walkdir", +] + +[[package]] +name = "tauri-plugin-hotswap" +version = "0.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b3550b0b6727104637a12c6c1c5270714d4a8d935de3b2b71a5fe5a111d7ffc5" +dependencies = [ + "base64 0.22.1", + "dirs", + "flate2", + "log", + "minisign-verify", + "reqwest 0.12.28", + "semver", + "serde", + "serde_json", + "tar", + "tauri", + "tauri-plugin", + "thiserror 2.0.20", + "tokio", + "url", +] + +[[package]] +name = "tauri-plugin-shell" +version = "2.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8548af174c5516e4f71f142acea4d02e00316296ea9aafa58798851481003e3c" +dependencies = [ + "encoding_rs", + "log", + "open", + "os_pipe", + "regex", + "schemars 0.8.22", + "serde", + "serde_json", + "shared_child", + "tauri", + "tauri-plugin", + "thiserror 2.0.20", + "tokio", +] + +[[package]] +name = "tauri-runtime" +version = "2.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b0b4bc95aed361b0019067d189a1174a603d460d0f6c72606512d59fc9c12ec8" +dependencies = [ + "cookie", + "dpi", + "gtk", + "http", + "jni", + "objc2", + "objc2-ui-kit", + "objc2-web-kit", + "raw-window-handle", + "serde", + "serde_json", + "tauri-utils", + "thiserror 2.0.20", + "url", + "webkit2gtk", + "webview2-com", + "windows", +] + +[[package]] +name = "tauri-runtime-wry" +version = "2.11.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e6fac707727b7a2f48e4ded90976324267371073edbb415ffb73bb0458d203f" +dependencies = [ + "gtk", + "http", + "jni", + "log", + "objc2", + "objc2-app-kit", + "once_cell", + "percent-encoding", + "raw-window-handle", + "softbuffer", + "tao", + "tauri-runtime", + "tauri-utils", + "url", + "webkit2gtk", + "webview2-com", + "windows", + "wry", +] + +[[package]] +name = "tauri-utils" +version = "2.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e176a18e67764923c4f1ce66f25ae4abe5f688384d5eb1a0fa6c77f3d90f887" +dependencies = [ + "anyhow", + "brotli", + "cargo_metadata", + "ctor", + "dom_query", + "dunce", + "glob", + "http", + "infer", + "json-patch", + "log", + "memchr", + "phf", + "plist", + "proc-macro2", + "quote", + "regex", + "schemars 0.8.22", + "semver", + "serde", + "serde-untagged", + "serde_json", + "serde_with", + "swift-rs", + "thiserror 2.0.20", + "toml 1.1.6+spec-1.1.0", + "url", + "urlpattern", + "uuid", + "walkdir", +] + +[[package]] +name = "tauri-winres" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc65d45c68858bfe420dd29e834b5d15dbecf8a07a8a16cf4d532c7b1f69d4b6" +dependencies = [ + "dunce", + "embed-resource", + "toml 1.1.6+spec-1.1.0", +] + +[[package]] +name = "tempfile" +version = "3.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" +dependencies = [ + "fastrand", + "getrandom 0.4.3", + "once_cell", + "rustix", + "windows-sys 0.61.2", +] + +[[package]] +name = "tendril" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5fed54709c5b3a53d09bb1c113ea4f5ceafd1e772ddcb0030a82e1d56c087b08" +dependencies = [ + "new_debug_unreachable", +] + +[[package]] +name = "thiserror" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" +dependencies = [ + "thiserror-impl 1.0.69", +] + +[[package]] +name = "thiserror" +version = "2.0.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec86235f5fcc2a73650310756d2ac5b138a5780bbbdfae3eeccec992c435ba4f" +dependencies = [ + "thiserror-impl 2.0.20", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc04cd3e1236dd4a98afca4569f2deb3f120e5422a4023be2cb683f8486292af" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.5", +] + +[[package]] +name = "time" +version = "0.3.55" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdb87b95ec50ddfa440816d227a17b2ccbdda963a316a727fda0fc4334f7d134" +dependencies = [ + "deranged", + "num-conv", + "powerfmt", + "serde_core", + "time-core", + "time-macros", +] + +[[package]] +name = "time-core" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e1c906769ad99c88eaa54e728060edef082f8e358ff32030cb7c7d315e81109" + +[[package]] +name = "time-macros" +version = "0.2.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e689342a48d2ea927c87ea50cabf8594854bf940e9310208848d680d668ed85" +dependencies = [ + "num-conv", + "time-core", +] + +[[package]] +name = "tiny-keccak" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c9d3793400a45f954c52e73d068316d76b6f4e36977e3fcebb13a2721e80237" +dependencies = [ + "crunchy", +] + +[[package]] +name = "tinystr" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1e27c91459209c2986af3dcf603a5a74a4368754ce37414f59acc971167f643" +dependencies = [ + "displaydoc", + "zerovec", +] + +[[package]] +name = "tinyvec" +version = "1.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cf0ded5c4e56918d8f8a339e1bb67d038d3bc6d144ac407904015ba2e4cde9b" +dependencies = [ + "tinyvec_macros", +] + +[[package]] +name = "tinyvec_macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" + +[[package]] +name = "tokio" +version = "1.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "202caea871b69668250d242070849eb495be178ed697a3e98aebce5bc81a0bed" +dependencies = [ + "bytes", + "libc", + "mio", + "parking_lot", + "pin-project-lite", + "signal-hook-registry", + "socket2", + "tokio-macros", + "windows-sys 0.61.2", +] + +[[package]] +name = "tokio-macros" +version = "2.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78773a2a397f451582ce068015985c33193cf6dea8b74d2a639fe457b2f07b0e" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.5", +] + +[[package]] +name = "tokio-native-tls" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2" +dependencies = [ + "native-tls", + "tokio", +] + +[[package]] +name = "tokio-rustls" +version = "0.26.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b0c85f2c3ef0b1cd58b36682f4b17aaa995f0e5db534d85692b4903abce21f67" +dependencies = [ + "rustls", + "tokio", +] + +[[package]] +name = "tokio-util" +version = "0.7.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "494815d09bf52b5548659851081238f0ca39ff638363907596da739561c62c52" +dependencies = [ + "bytes", + "futures-core", + "futures-sink", + "libc", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "toml" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "185d8ab0dfbb35cf1399a6344d8484209c088f75f8f68230da55d48d95d43e3d" +dependencies = [ + "serde", + "serde_spanned 0.6.9", + "toml_datetime 0.6.3", + "toml_edit 0.20.2", +] + +[[package]] +name = "toml" +version = "0.9.12+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf92845e79fc2e2def6a5d828f0801e29a2f8acc037becc5ab08595c7d5e9863" +dependencies = [ + "indexmap 2.14.2", + "serde_core", + "serde_spanned 1.1.1", + "toml_datetime 0.7.5+spec-1.1.0", + "toml_parser", + "toml_writer", + "winnow 0.7.15", +] + +[[package]] +name = "toml" +version = "1.1.6+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "920602543f0911ab71da12c50d59701da54c196d1a2bf5cb4b75667f137a406a" +dependencies = [ + "indexmap 2.14.2", + "serde_core", + "serde_spanned 1.1.1", + "toml_datetime 1.1.1+spec-1.1.0", + "toml_parser", + "toml_writer", + "winnow 1.0.4", +] + +[[package]] +name = "toml_datetime" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7cda73e2f1397b1262d6dfdcef8aafae14d1de7748d66822d3bfeeb6d03e5e4b" +dependencies = [ + "serde", +] + +[[package]] +name = "toml_datetime" +version = "0.7.5+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92e1cfed4a3038bc5a127e35a2d360f145e1f4b971b551a2ba5fd7aedf7e1347" +dependencies = [ + "serde_core", +] + +[[package]] +name = "toml_datetime" +version = "1.1.1+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3165f65f62e28e0115a00b2ebdd37eb6f3b641855f9d636d3cd4103767159ad7" +dependencies = [ + "serde_core", +] + +[[package]] +name = "toml_edit" +version = "0.19.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421" +dependencies = [ + "indexmap 2.14.2", + "toml_datetime 0.6.3", + "winnow 0.5.40", +] + +[[package]] +name = "toml_edit" +version = "0.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "396e4d48bbb2b7554c944bde63101b5ae446cff6ec4a24227428f15eb72ef338" +dependencies = [ + "indexmap 2.14.2", + "serde", + "serde_spanned 0.6.9", + "toml_datetime 0.6.3", + "winnow 0.5.40", +] + +[[package]] +name = "toml_edit" +version = "0.25.15+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1340ea94a5856333492c9064b02c778b191dd2c853778d9609debdcdfea3a614" +dependencies = [ + "indexmap 2.14.2", + "toml_datetime 1.1.1+spec-1.1.0", + "toml_parser", + "winnow 1.0.4", +] + +[[package]] +name = "toml_parser" +version = "1.1.3+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d38ac1cf9b95face32296c0a3ede1fdc270627c9d9c02a7274dd6d960dc4d56" +dependencies = [ + "winnow 1.0.4", +] + +[[package]] +name = "toml_writer" +version = "1.1.2+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d56353a2a665ad0f41a421187180aab746c8c325620617ad883a99a1cbe66d2" + +[[package]] +name = "tower" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4" +dependencies = [ + "futures-core", + "futures-util", + "pin-project-lite", + "sync_wrapper", + "tokio", + "tower-layer", + "tower-service", +] + +[[package]] +name = "tower-http" +version = "0.6.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cfcf7e2740e6fc6d4d688b4ef00650406bb94adf4731e43c096c3a19fe40840" +dependencies = [ + "bitflags 2.13.2", + "bytes", + "futures-util", + "http", + "http-body", + "pin-project-lite", + "tower", + "tower-layer", + "tower-service", + "url", +] + +[[package]] +name = "tower-layer" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" + +[[package]] +name = "tower-service" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" + +[[package]] +name = "tracing" +version = "0.1.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100" +dependencies = [ + "pin-project-lite", + "tracing-core", +] + +[[package]] +name = "tracing-core" +version = "0.1.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" +dependencies = [ + "once_cell", +] + +[[package]] +name = "tray-icon" +version = "0.24.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "045979e3f037cd18ad1cb2a419dfda133c5c29c9f3453370079f2255d46c257e" +dependencies = [ + "crossbeam-channel", + "dirs", + "libappindicator", + "muda", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-foundation", + "once_cell", + "png 0.18.1", + "serde", + "thiserror 2.0.20", + "windows-sys 0.61.2", +] + +[[package]] +name = "try-lock" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" + +[[package]] +name = "typeid" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc7d623258602320d5c55d1bc22793b57daff0ec7efc270ea7d55ce1d5f5471c" + +[[package]] +name = "typenum" +version = "1.20.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20" + +[[package]] +name = "unic-char-property" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8c57a407d9b6fa02b4795eb81c5b6652060a15a7903ea981f3d723e6c0be221" +dependencies = [ + "unic-char-range", +] + +[[package]] +name = "unic-char-range" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0398022d5f700414f6b899e10b8348231abf9173fa93144cbc1a43b9793c1fbc" + +[[package]] +name = "unic-common" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "80d7ff825a6a654ee85a63e80f92f054f904f21e7d12da4e22f9834a4aaa35bc" + +[[package]] +name = "unic-ucd-ident" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e230a37c0381caa9219d67cf063aa3a375ffed5bf541a452db16e744bdab6987" +dependencies = [ + "unic-char-property", + "unic-char-range", + "unic-ucd-version", +] + +[[package]] +name = "unic-ucd-version" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96bd2f2237fe450fcd0a1d2f5f4e91711124f7857ba2e964247776ebeeb7b0c4" +dependencies = [ + "unic-common", +] + +[[package]] +name = "unicode-ident" +version = "1.0.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" + +[[package]] +name = "unicode-segmentation" +version = "1.13.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8" + +[[package]] +name = "unicode-width" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4ac048d71ede7ee76d585517add45da530660ef4390e49b098733c6e897f254" + +[[package]] +name = "untrusted" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" + +[[package]] +name = "url" +version = "2.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +dependencies = [ + "form_urlencoded", + "idna", + "percent-encoding", + "serde", + "serde_derive", +] + +[[package]] +name = "urlpattern" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70acd30e3aa1450bc2eece896ce2ad0d178e9c079493819301573dae3c37ba6d" +dependencies = [ + "regex", + "serde", + "unic-ucd-ident", + "url", +] + +[[package]] +name = "utf8_iter" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" + +[[package]] +name = "utf8parse" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" + +[[package]] +name = "uuid" +version = "1.26.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ef6dac1e96601b4fb3acccccff2139741fcb757cb9a36089bf5be91cfb285ce" +dependencies = [ + "getrandom 0.4.3", + "js-sys", + "serde_core", + "wasm-bindgen", +] + +[[package]] +name = "vcpkg" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" + +[[package]] +name = "version-compare" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03c2856837ef78f57382f06b2b8563a2f512f7185d732608fd9176cb3b8edf0e" + +[[package]] +name = "version_check" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" + +[[package]] +name = "vswhom" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be979b7f07507105799e854203b470ff7c78a1639e330a58f183b5fea574608b" +dependencies = [ + "libc", + "vswhom-sys", +] + +[[package]] +name = "vswhom-sys" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb067e4cbd1ff067d1df46c9194b5de0e98efd2810bbc95c5d5e5f25a3231150" +dependencies = [ + "cc", + "libc", +] + +[[package]] +name = "walkdir" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" +dependencies = [ + "same-file", + "winapi-util", +] + +[[package]] +name = "want" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" +dependencies = [ + "try-lock", +] + +[[package]] +name = "wardrobe" +version = "0.1.0" +dependencies = [ + "chrono", + "ctrlc", + "duckdb", + "env_logger", + "hex", + "log", + "serde", + "serde_json", + "sha2", + "tauri", + "tauri-build", + "tauri-plugin-hotswap", + "tauri-plugin-shell", + "tokio", + "uuid", +] + +[[package]] +name = "wasi" +version = "0.11.1+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" + +[[package]] +name = "wasip2" +version = "1.0.4+wasi-0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b67efb37e106e55ce722a510d6b5f9c17f083e5fc79afc2badeb12cc313d9487" +dependencies = [ + "wit-bindgen", +] + +[[package]] +name = "wasm-bindgen" +version = "0.2.128" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aecb87a33d3b0c5e3b7aa46336eaf486cffafbd281b195e4c8b80d50df2351bf" +dependencies = [ + "cfg-if", + "once_cell", + "rustversion", + "serde", + "wasm-bindgen-macro", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.78" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ef4c5d3d2cdf5c54f4231181768f5510842e350db025faf1f7163b1030ed928" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.128" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a690d511e3c1a8b3a55e33511e3c2c00c78415cd23650f32b808627f5696b9ed" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.128" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "411e4887f0071ef2d2164a9d5fdf2d20efbef78fccd3a78b0c10a1dc5295e48a" +dependencies = [ + "bumpalo", + "proc-macro2", + "quote", + "syn 3.0.5", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.128" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "81941cd78d0c92026c33e5e01312845a4cb1e9af3407f9134b100dd03144103e" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "wasm-streams" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "15053d8d85c7eccdbefef60f06769760a563c7f0a9d6902a13d35c7800b0ad65" +dependencies = [ + "futures-util", + "js-sys", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + +[[package]] +name = "wasm-streams" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d1ec4f6517c9e11ae630e200b2b65d193279042e28edd4a2cda233e46670bbb" +dependencies = [ + "futures-util", + "js-sys", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + +[[package]] +name = "web-sys" +version = "0.3.105" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9fbddc4a036f00ec4f18c83445bd3115cb306a91da554919a099d9222fe4a7f8" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "web-time" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "web_atoms" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba8b815c1b593dc0baf78dd0f4fc8fdb2de53198fb1163738093e9a311c33fb3" +dependencies = [ + "phf", + "phf_codegen", + "string_cache", + "string_cache_codegen", +] + +[[package]] +name = "webkit2gtk" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1027150013530fb2eaf806408df88461ae4815a45c541c8975e61d6f2fc4793" +dependencies = [ + "bitflags 1.3.2", + "cairo-rs", + "gdk", + "gdk-sys", + "gio", + "gio-sys", + "glib", + "glib-sys", + "gobject-sys", + "gtk", + "gtk-sys", + "javascriptcore-rs", + "libc", + "once_cell", + "soup3", + "webkit2gtk-sys", +] + +[[package]] +name = "webkit2gtk-sys" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "916a5f65c2ef0dfe12fff695960a2ec3d4565359fdbb2e9943c974e06c734ea5" +dependencies = [ + "bitflags 1.3.2", + "cairo-sys-rs", + "gdk-sys", + "gio-sys", + "glib-sys", + "gobject-sys", + "gtk-sys", + "javascriptcore-rs-sys", + "libc", + "pkg-config", + "soup3-sys", + "system-deps", +] + +[[package]] +name = "webpki-roots" +version = "1.0.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7dcd9d09a39985f5344844e66b0c530a33843579125f23e21e9f0f220850f22a" +dependencies = [ + "rustls-pki-types", +] + +[[package]] +name = "webview2-com" +version = "0.38.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7130243a7a5b33c54a444e54842e6a9e133de08b5ad7b5861cd8ed9a6a5bc96a" +dependencies = [ + "webview2-com-macros", + "webview2-com-sys", + "windows", + "windows-core 0.61.2", + "windows-implement", + "windows-interface", +] + +[[package]] +name = "webview2-com-macros" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67a921c1b6914c367b2b823cd4cde6f96beec77d30a939c8199bb377cf9b9b54" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "webview2-com-sys" +version = "0.38.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "381336cfffd772377d291702245447a5251a2ffa5bad679c99e61bc48bacbf9c" +dependencies = [ + "thiserror 2.0.20", + "windows", + "windows-core 0.61.2", +] + +[[package]] +name = "winapi" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" +dependencies = [ + "winapi-i686-pc-windows-gnu", + "winapi-x86_64-pc-windows-gnu", +] + +[[package]] +name = "winapi-i686-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" + +[[package]] +name = "winapi-util" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "winapi-x86_64-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" + +[[package]] +name = "window-vibrancy" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9bec5a31f3f9362f2258fd0e9c9dd61a9ca432e7306cc78c444258f0dce9a9c" +dependencies = [ + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-foundation", + "raw-window-handle", + "windows-sys 0.59.0", + "windows-version", +] + +[[package]] +name = "windows" +version = "0.61.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9babd3a767a4c1aef6900409f85f5d53ce2544ccdfaa86dad48c91782c6d6893" +dependencies = [ + "windows-collections", + "windows-core 0.61.2", + "windows-future", + "windows-link 0.1.3", + "windows-numerics", +] + +[[package]] +name = "windows-collections" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3beeceb5e5cfd9eb1d76b381630e82c4241ccd0d27f1a39ed41b2760b255c5e8" +dependencies = [ + "windows-core 0.61.2", +] + +[[package]] +name = "windows-core" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3" +dependencies = [ + "windows-implement", + "windows-interface", + "windows-link 0.1.3", + "windows-result 0.3.4", + "windows-strings 0.4.2", +] + +[[package]] +name = "windows-core" +version = "0.62.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" +dependencies = [ + "windows-implement", + "windows-interface", + "windows-link 0.2.1", + "windows-result 0.4.1", + "windows-strings 0.5.1", +] + +[[package]] +name = "windows-future" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc6a41e98427b19fe4b73c550f060b59fa592d7d686537eebf9385621bfbad8e" +dependencies = [ + "windows-core 0.61.2", + "windows-link 0.1.3", + "windows-threading", +] + +[[package]] +name = "windows-implement" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "windows-interface" +version = "0.59.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "windows-link" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e6ad25900d524eaabdbbb96d20b4311e1e7ae1699af4fb28c17ae66c80d798a" + +[[package]] +name = "windows-link" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + +[[package]] +name = "windows-numerics" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9150af68066c4c5c07ddc0ce30421554771e528bde427614c61038bc2c92c2b1" +dependencies = [ + "windows-core 0.61.2", + "windows-link 0.1.3", +] + +[[package]] +name = "windows-registry" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "02752bf7fbdcce7f2a27a742f798510f3e5ad88dbe84871e5168e2120c3d5720" +dependencies = [ + "windows-link 0.2.1", + "windows-result 0.4.1", + "windows-strings 0.5.1", +] + +[[package]] +name = "windows-result" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56f42bd332cc6c8eac5af113fc0c1fd6a8fd2aa08a0119358686e5160d0586c6" +dependencies = [ + "windows-link 0.1.3", +] + +[[package]] +name = "windows-result" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows-strings" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56e6c93f3a0c3b36176cb1327a4958a0353d5d166c2a35cb268ace15e91d3b57" +dependencies = [ + "windows-link 0.1.3", +] + +[[package]] +name = "windows-strings" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows-sys" +version = "0.45.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" +dependencies = [ + "windows-targets 0.42.2", +] + +[[package]] +name = "windows-sys" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-sys" +version = "0.59.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows-targets" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071" +dependencies = [ + "windows_aarch64_gnullvm 0.42.2", + "windows_aarch64_msvc 0.42.2", + "windows_i686_gnu 0.42.2", + "windows_i686_msvc 0.42.2", + "windows_x86_64_gnu 0.42.2", + "windows_x86_64_gnullvm 0.42.2", + "windows_x86_64_msvc 0.42.2", +] + +[[package]] +name = "windows-targets" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" +dependencies = [ + "windows_aarch64_gnullvm 0.52.6", + "windows_aarch64_msvc 0.52.6", + "windows_i686_gnu 0.52.6", + "windows_i686_gnullvm", + "windows_i686_msvc 0.52.6", + "windows_x86_64_gnu 0.52.6", + "windows_x86_64_gnullvm 0.52.6", + "windows_x86_64_msvc 0.52.6", +] + +[[package]] +name = "windows-threading" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b66463ad2e0ea3bbf808b7f1d371311c80e115c0b71d60efc142cafbcfb057a6" +dependencies = [ + "windows-link 0.1.3", +] + +[[package]] +name = "windows-version" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4060a1da109b9d0326b7262c8e12c84df67cc0dbc9e33cf49e01ccc2eb63631" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8" + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" + +[[package]] +name = "windows_i686_gnu" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f" + +[[package]] +name = "windows_i686_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" + +[[package]] +name = "windows_i686_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060" + +[[package]] +name = "windows_i686_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[package]] +name = "winnow" +version = "0.5.40" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f593a95398737aeed53e489c785df13f3618e41dbcd6718c6addbf1395aa6876" +dependencies = [ + "memchr", +] + +[[package]] +name = "winnow" +version = "0.7.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df79d97927682d2fd8adb29682d1140b343be4ac0f08fd68b7765d9c059d3945" + +[[package]] +name = "winnow" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23b97319f7b8343df12cc98938e5c3eb436064524c8d2b4e30a1d3a36eecdf81" +dependencies = [ + "memchr", +] + +[[package]] +name = "winreg" +version = "0.55.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb5a765337c50e9ec252c2069be9bf91c7df47afb103b642ba3a53bf8101be97" +dependencies = [ + "cfg-if", + "windows-sys 0.59.0", +] + +[[package]] +name = "wit-bindgen" +version = "0.57.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e" + +[[package]] +name = "writeable" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc" + +[[package]] +name = "wry" +version = "0.55.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "186f9871daa55fd9c016578b810d149de58367113db7fb72b462d2323ce19514" +dependencies = [ + "base64 0.22.1", + "block2", + "cookie", + "crossbeam-channel", + "dirs", + "dom_query", + "dpi", + "dunce", + "gdkx11", + "gtk", + "http", + "javascriptcore-rs", + "jni", + "libc", + "ndk", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-foundation", + "objc2-ui-kit", + "objc2-web-kit", + "once_cell", + "percent-encoding", + "raw-window-handle", + "sha2", + "soup3", + "tao-macros", + "thiserror 2.0.20", + "url", + "webkit2gtk", + "webkit2gtk-sys", + "webview2-com", + "windows", + "windows-core 0.61.2", + "windows-version", + "x11-dl", +] + +[[package]] +name = "x11" +version = "2.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "502da5464ccd04011667b11c435cb992822c2c0dbde1770c988480d312a0db2e" +dependencies = [ + "libc", + "pkg-config", +] + +[[package]] +name = "x11-dl" +version = "2.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38735924fedd5314a6e548792904ed8c6de6636285cb9fec04d5b1db85c1516f" +dependencies = [ + "libc", + "once_cell", + "pkg-config", +] + +[[package]] +name = "xattr" +version = "1.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32e45ad4206f6d2479085147f02bc2ef834ac85886624a23575ae137c8aa8156" +dependencies = [ + "libc", + "rustix", +] + +[[package]] +name = "yoke" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "709fe23a0424b6a435d82152b1bd3fdfb0833487d5fa90d05d42762a9891fef5" +dependencies = [ + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", + "synstructure", +] + +[[package]] +name = "zerocopy" +version = "0.8.57" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d35102a9f36d089ccae9e4c6802bc118be4487b80aaffc0ab4e0cf5ce92d2873" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.8.57" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "146c01f5ab44258da43cf276c74a2763db2ff3969c9c652c3f2de07041d0b2bc" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "zerofrom" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11532158c46691caf0f2593ea8358fed6bbf68a0315e80aae9bd41fbade684a1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", + "synstructure", +] + +[[package]] +name = "zeroize" +version = "1.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e13c156562582aa81c60cb29407084cdb54c4164760106ab78e6c5b0858cf64e" + +[[package]] +name = "zerotrie" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ea269c3bd32f0a32c321907a2ae912ba6f4649bb0fc764a15627e99a7095a3f" +dependencies = [ + "displaydoc", + "yoke", + "zerofrom", +] + +[[package]] +name = "zerovec" +version = "0.11.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb0464e17806c1d976d5cba29399c7f08e516e279e2ba493f63123b5fca67dd8" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.11.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34df6fc39dbd26ddc9c10e6a2984476e13acce22e64e4487636ef494369225da" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.5", +] + +[[package]] +name = "zlib-rs" +version = "0.6.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34b31d188d9d685a4f9c7b46d6e36631b07058d2cfe190267adce54dc230bf12" + +[[package]] +name = "zmij" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b" diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml new file mode 100644 index 0000000..615314d --- /dev/null +++ b/src-tauri/Cargo.toml @@ -0,0 +1,37 @@ +[package] +name = "wardrobe" +version = "0.1.0" +edition = "2021" +description = "Wardrobe - AI-powered clothing management system" + +# 库目标: 桌面 + Android (cdylib) 都需要 +[lib] +name = "wardrobe_lib" +crate-type = ["staticlib", "cdylib", "rlib"] + +[dependencies] +tauri = { version = "2", features = ["tray-icon"] } +tauri-plugin-shell = "2" +# 前端 OTA 升级 (运行时覆盖 tauri://localhost 资源; 替换 Assets provider) +tauri-plugin-hotswap = "0.0.4" +serde = { version = "1", features = ["derive"] } +serde_json = "1" +duckdb = { version = "0.10", features = ["bundled"] } +tokio = { version = "1", features = ["full"] } +uuid = { version = "1", features = ["v4"] } +chrono = { version = "0.4", features = ["serde"] } +sha2 = "0.10" +hex = "0.4" +ctrlc = "3" +log = "0.4" +env_logger = "0.11" + +[target."cfg(target_os = \"android\")".dependencies] +tauri = { version = "2", features = [] } + +[build-dependencies] +tauri-build = { version = "2", features = [] } + +[features] +default = ["custom-protocol"] +custom-protocol = ["tauri/custom-protocol"] diff --git a/src-tauri/build.rs b/src-tauri/build.rs new file mode 100644 index 0000000..d860e1e --- /dev/null +++ b/src-tauri/build.rs @@ -0,0 +1,3 @@ +fn main() { + tauri_build::build() +} diff --git a/src-tauri/capabilities/default.json b/src-tauri/capabilities/default.json new file mode 100644 index 0000000..1cd6826 --- /dev/null +++ b/src-tauri/capabilities/default.json @@ -0,0 +1,11 @@ +{ + "$schema": "../gen/schemas/desktop-schema.json", + "identifier": "default", + "description": "Default capabilities for the main window", + "windows": ["main"], + "permissions": [ + "core:default", + "shell:allow-open", + "hotswap:default" + ] +} \ No newline at end of file diff --git a/src-tauri/src/auth.rs b/src-tauri/src/auth.rs new file mode 100644 index 0000000..ddd80c5 --- /dev/null +++ b/src-tauri/src/auth.rs @@ -0,0 +1,151 @@ +use std::collections::HashMap; +use std::sync::Mutex; +use std::time::{SystemTime, UNIX_EPOCH}; +use log::info; +use crate::db::Database; +use crate::models::*; + +const VERIFICATION_CODE: &str = "1111"; +const CODE_EXPIRY_SECONDS: i64 = 300; + +pub struct AuthManager { + codes: Mutex>, +} + +impl AuthManager { + pub fn new() -> Self { + Self { + codes: Mutex::new(HashMap::new()), + } + } + + fn now_secs() -> i64 { + SystemTime::now() + .duration_since(UNIX_EPOCH) + .unwrap() + .as_secs() as i64 + } + + pub fn send_verification(&self, target: &str) -> Result { + let code = VERIFICATION_CODE.to_string(); + let now = Self::now_secs(); + let vc = VerificationCode { + target: target.to_string(), + code: code.clone(), + created_at: now, + expires_at: now + CODE_EXPIRY_SECONDS, + }; + self.codes.lock().unwrap().insert(target.to_string(), vc); + info!("Verification code sent to {}: {}", target, code); + Ok(format!("验证码已发送至 {}", target)) + } + + fn verify_code(&self, target: &str, code: &str) -> bool { + let codes = self.codes.lock().unwrap(); + if let Some(vc) = codes.get(target) { + let now = Self::now_secs(); + vc.code == code && now < vc.expires_at + } else { + false + } + } + + pub fn register( + &self, + db: &Database, + email: Option<&str>, + phone: Option<&str>, + code: &str, + nickname: &str, + ) -> Result { + let target = email.or(phone).ok_or("请提供邮箱或手机号")?; + + if !self.verify_code(target, code) { + return Ok(AuthResult { + success: false, + message: "验证码无效或已过期".to_string(), + user: None, + token: None, + }); + } + + if email.is_some() { + if db.get_user_by_email(target).map_err(|e| e.to_string())?.is_some() { + return Ok(AuthResult { + success: false, + message: "该邮箱已注册".to_string(), + user: None, + token: None, + }); + } + } else if phone.is_some() { + if db.get_user_by_phone(target).map_err(|e| e.to_string())?.is_some() { + return Ok(AuthResult { + success: false, + message: "该手机号已注册".to_string(), + user: None, + token: None, + }); + } + } + + let id = uuid::Uuid::new_v4().to_string(); + let user = db.create_user(&id, email, phone, nickname).map_err(|e| e.to_string())?; + let token = format!("tok_{}", uuid::Uuid::new_v4().to_string().replace('-', "")); + + self.codes.lock().unwrap().remove(target); + + info!("User registered: {}", id); + Ok(AuthResult { + success: true, + message: "注册成功".to_string(), + user: Some(user), + token: Some(token), + }) + } + + pub fn login( + &self, + db: &Database, + email: Option<&str>, + phone: Option<&str>, + code: &str, + ) -> Result { + let target = email.or(phone).ok_or("请提供邮箱或手机号")?; + + if !self.verify_code(target, code) { + return Ok(AuthResult { + success: false, + message: "验证码无效或已过期".to_string(), + user: None, + token: None, + }); + } + + let user = if email.is_some() { + db.get_user_by_email(target).map_err(|e| e.to_string())? + } else { + db.get_user_by_phone(target).map_err(|e| e.to_string())? + }; + + self.codes.lock().unwrap().remove(target); + + match user { + Some(u) => { + let token = format!("tok_{}", uuid::Uuid::new_v4().to_string().replace('-', "")); + Ok(AuthResult { + success: true, + message: "登录成功".to_string(), + user: Some(u), + token: Some(token), + }) + } + None => Ok(AuthResult { + success: false, + message: "账号不存在,请先注册".to_string(), + user: None, + token: None, + }), + } + } +} diff --git a/src-tauri/src/db.rs b/src-tauri/src/db.rs new file mode 100644 index 0000000..97b14cc --- /dev/null +++ b/src-tauri/src/db.rs @@ -0,0 +1,395 @@ +use duckdb::{Connection, params}; +use std::sync::Mutex; +use std::path::PathBuf; +use log::info; +use crate::models::*; + +pub struct Database { + conn: Mutex, + path: PathBuf, +} + +impl Database { + pub fn new(data_dir: &PathBuf) -> Result> { + std::fs::create_dir_all(data_dir)?; + let db_path = data_dir.join("wardrobe.duckdb"); + let conn = Connection::open(&db_path)?; + + let db = Self { + conn: Mutex::new(conn), + path: db_path, + }; + db.init_tables()?; + info!("DuckDB initialized at {:?}", db.path); + Ok(db) + } + + fn init_tables(&self) -> Result<(), Box> { + let conn = self.conn.lock().unwrap(); + conn.execute_batch(" + CREATE TABLE IF NOT EXISTS users ( + id VARCHAR PRIMARY KEY, + email VARCHAR UNIQUE, + phone VARCHAR UNIQUE, + nickname VARCHAR NOT NULL DEFAULT '', + avatar_path VARCHAR, + created_at VARCHAR NOT NULL + ); + + CREATE TABLE IF NOT EXISTS clothing_items ( + id VARCHAR PRIMARY KEY, + user_id VARCHAR NOT NULL, + name VARCHAR NOT NULL, + category VARCHAR NOT NULL, + color VARCHAR NOT NULL, + brand VARCHAR, + material VARCHAR, + seasons VARCHAR DEFAULT '[]', + occasions VARCHAR DEFAULT '[]', + formality INTEGER DEFAULT 50, + thickness INTEGER DEFAULT 50, + image_path VARCHAR, + purchase_date VARCHAR, + purchase_price DOUBLE, + last_cleaned VARCHAR, + clean_method VARCHAR, + wear_count INTEGER DEFAULT 0, + last_worn VARCHAR, + is_favorite BOOLEAN DEFAULT FALSE, + created_at VARCHAR NOT NULL, + updated_at VARCHAR NOT NULL, + FOREIGN KEY (user_id) REFERENCES users(id) + ); + + CREATE TABLE IF NOT EXISTS outfits ( + id VARCHAR PRIMARY KEY, + user_id VARCHAR NOT NULL, + name VARCHAR NOT NULL, + item_ids VARCHAR DEFAULT '[]', + occasion VARCHAR, + season VARCHAR, + match_score INTEGER, + ai_analysis VARCHAR, + is_saved BOOLEAN DEFAULT FALSE, + created_at VARCHAR NOT NULL, + FOREIGN KEY (user_id) REFERENCES users(id) + ); + + CREATE TABLE IF NOT EXISTS daily_records ( + id VARCHAR PRIMARY KEY, + user_id VARCHAR NOT NULL, + date VARCHAR NOT NULL, + outfit_id VARCHAR, + weather_temp DOUBLE, + weather_condition VARCHAR, + notes VARCHAR, + created_at VARCHAR NOT NULL, + UNIQUE(user_id, date), + FOREIGN KEY (user_id) REFERENCES users(id) + ); + + CREATE INDEX IF NOT EXISTS idx_clothing_user ON clothing_items(user_id); + CREATE INDEX IF NOT EXISTS idx_clothing_category ON clothing_items(category); + CREATE INDEX IF NOT EXISTS idx_outfits_user ON outfits(user_id); + CREATE INDEX IF NOT EXISTS idx_daily_user_date ON daily_records(user_id, date); + ")?; + Ok(()) + } + + // ── User CRUD ── + + pub fn create_user(&self, id: &str, email: Option<&str>, phone: Option<&str>, nickname: &str) -> Result> { + let conn = self.conn.lock().unwrap(); + let now = chrono::Utc::now().to_rfc3339(); + conn.execute( + "INSERT INTO users (id, email, phone, nickname, created_at) VALUES (?1, ?2, ?3, ?4, ?5)", + params![id, email, phone, nickname, now], + )?; + Ok(User { + id: id.to_string(), + email: email.map(String::from), + phone: phone.map(String::from), + nickname: nickname.to_string(), + avatar_path: None, + created_at: now, + }) + } + + pub fn get_user_by_email(&self, email: &str) -> Result, Box> { + let conn = self.conn.lock().unwrap(); + let mut stmt = conn.prepare("SELECT id, email, phone, nickname, avatar_path, created_at FROM users WHERE email = ?1")?; + let mut rows = stmt.query_map(params![email], |row| { + Ok(User { + id: row.get(0)?, + email: row.get(1)?, + phone: row.get(2)?, + nickname: row.get(3)?, + avatar_path: row.get(4)?, + created_at: row.get(5)?, + }) + })?; + match rows.next() { + Some(row) => Ok(Some(row?)), + None => Ok(None), + } + } + + pub fn get_user_by_phone(&self, phone: &str) -> Result, Box> { + let conn = self.conn.lock().unwrap(); + let mut stmt = conn.prepare("SELECT id, email, phone, nickname, avatar_path, created_at FROM users WHERE phone = ?1")?; + let mut rows = stmt.query_map(params![phone], |row| { + Ok(User { + id: row.get(0)?, + email: row.get(1)?, + phone: row.get(2)?, + nickname: row.get(3)?, + avatar_path: row.get(4)?, + created_at: row.get(5)?, + }) + })?; + match rows.next() { + Some(row) => Ok(Some(row?)), + None => Ok(None), + } + } + + // ── Clothing CRUD ── + + pub fn create_clothing(&self, item: &ClothingItem) -> Result<(), Box> { + let conn = self.conn.lock().unwrap(); + let seasons_json = serde_json::to_string(&item.seasons)?; + let occasions_json = serde_json::to_string(&item.occasions)?; + conn.execute( + "INSERT INTO clothing_items (id, user_id, name, category, color, brand, material, seasons, occasions, formality, thickness, image_path, purchase_date, purchase_price, last_cleaned, clean_method, wear_count, last_worn, is_favorite, created_at, updated_at) + VALUES (?1,?2,?3,?4,?5,?6,?7,?8,?9,?10,?11,?12,?13,?14,?15,?16,?17,?18,?19,?20,?21)", + params![ + item.id, item.user_id, item.name, item.category, item.color, + item.brand, item.material, seasons_json, occasions_json, + item.formality, item.thickness, item.image_path, + item.purchase_date, item.purchase_price, item.last_cleaned, + item.clean_method, item.wear_count, item.last_worn, + item.is_favorite, item.created_at, item.updated_at + ], + )?; + Ok(()) + } + + pub fn list_clothing(&self, user_id: &str, category: Option<&str>) -> Result, Box> { + let conn = self.conn.lock().unwrap(); + let base = "SELECT id, user_id, name, category, color, brand, material, seasons, occasions, formality, thickness, image_path, purchase_date, purchase_price, last_cleaned, clean_method, wear_count, last_worn, is_favorite, created_at, updated_at FROM clothing_items WHERE user_id = ?1"; + let (sql, params_clause): (String, Vec>) = match category { + Some(cat) => ( + format!("{} AND category = ?2 ORDER BY created_at DESC", base), + vec![Box::new(cat.to_string())], + ), + None => ( + format!("{} ORDER BY created_at DESC", base), + Vec::new(), + ), + }; + let mut stmt = conn.prepare(&sql)?; + + // Build unified param list: user_id + optional category + let mut all_params: Vec> = Vec::with_capacity(1 + params_clause.len()); + all_params.push(Box::new(user_id.to_string())); + all_params.extend(params_clause); + + let param_refs: Vec<&dyn duckdb::ToSql> = all_params.iter().map(|b| b.as_ref()).collect(); + + let mut rows = stmt.query(param_refs.as_slice())?; + let mut items = Vec::new(); + while let Some(row) = rows.next()? { + items.push(Self::map_clothing_row(row)?); + } + Ok(items) + } + + pub fn get_clothing(&self, id: &str) -> Result, Box> { + let conn = self.conn.lock().unwrap(); + let mut stmt = conn.prepare("SELECT id, user_id, name, category, color, brand, material, seasons, occasions, formality, thickness, image_path, purchase_date, purchase_price, last_cleaned, clean_method, wear_count, last_worn, is_favorite, created_at, updated_at FROM clothing_items WHERE id = ?1")?; + let mut rows = stmt.query_map(params![id], Self::map_clothing_row)?; + match rows.next() { + Some(row) => Ok(Some(row?)), + None => Ok(None), + } + } + + pub fn update_clothing(&self, id: &str, name: &str, category: &str, color: &str) -> Result<(), Box> { + let conn = self.conn.lock().unwrap(); + let now = chrono::Utc::now().to_rfc3339(); + conn.execute( + "UPDATE clothing_items SET name = ?1, category = ?2, color = ?3, updated_at = ?4 WHERE id = ?5", + params![name, category, color, now, id], + )?; + Ok(()) + } + + pub fn delete_clothing(&self, id: &str) -> Result<(), Box> { + let conn = self.conn.lock().unwrap(); + conn.execute("DELETE FROM clothing_items WHERE id = ?1", params![id])?; + Ok(()) + } + + fn map_clothing_row(row: &duckdb::Row) -> Result { + let seasons_str: String = row.get(7)?; + let occasions_str: String = row.get(8)?; + Ok(ClothingItem { + id: row.get(0)?, + user_id: row.get(1)?, + name: row.get(2)?, + category: row.get(3)?, + color: row.get(4)?, + brand: row.get(5)?, + material: row.get(6)?, + seasons: serde_json::from_str(&seasons_str).unwrap_or_default(), + occasions: serde_json::from_str(&occasions_str).unwrap_or_default(), + formality: row.get(9)?, + thickness: row.get(10)?, + image_path: row.get(11)?, + purchase_date: row.get(12)?, + purchase_price: row.get(13)?, + last_cleaned: row.get(14)?, + clean_method: row.get(15)?, + wear_count: row.get(16)?, + last_worn: row.get(17)?, + is_favorite: row.get(18)?, + created_at: row.get(19)?, + updated_at: row.get(20)?, + }) + } + + // ── Outfit CRUD ── + + pub fn create_outfit(&self, outfit: &Outfit) -> Result<(), Box> { + let conn = self.conn.lock().unwrap(); + let item_ids_json = serde_json::to_string(&outfit.item_ids)?; + conn.execute( + "INSERT INTO outfits (id, user_id, name, item_ids, occasion, season, match_score, ai_analysis, is_saved, created_at) + VALUES (?1,?2,?3,?4,?5,?6,?7,?8,?9,?10)", + params![ + outfit.id, outfit.user_id, outfit.name, item_ids_json, + outfit.occasion, outfit.season, outfit.match_score, + outfit.ai_analysis, outfit.is_saved, outfit.created_at + ], + )?; + Ok(()) + } + + pub fn list_outfits(&self, user_id: &str) -> Result, Box> { + let conn = self.conn.lock().unwrap(); + let mut stmt = conn.prepare("SELECT id, user_id, name, item_ids, occasion, season, match_score, ai_analysis, is_saved, created_at FROM outfits WHERE user_id = ?1 ORDER BY created_at DESC")?; + let rows = stmt.query_map(params![user_id], |row| { + let item_ids_str: String = row.get(3)?; + Ok(Outfit { + id: row.get(0)?, + user_id: row.get(1)?, + name: row.get(2)?, + item_ids: serde_json::from_str(&item_ids_str).unwrap_or_default(), + occasion: row.get(4)?, + season: row.get(5)?, + match_score: row.get(6)?, + ai_analysis: row.get(7)?, + is_saved: row.get(8)?, + created_at: row.get(9)?, + }) + })?; + let mut outfits = Vec::new(); + for row in rows { + outfits.push(row?); + } + Ok(outfits) + } + + // ── Daily Record CRUD ── + + pub fn upsert_daily_record(&self, record: &DailyRecord) -> Result<(), Box> { + let conn = self.conn.lock().unwrap(); + conn.execute( + "INSERT INTO daily_records (id, user_id, date, outfit_id, weather_temp, weather_condition, notes, created_at) + VALUES (?1,?2,?3,?4,?5,?6,?7,?8) + ON CONFLICT (user_id, date) DO UPDATE SET outfit_id = ?4, weather_temp = ?5, weather_condition = ?6, notes = ?7", + params![ + record.id, record.user_id, record.date, record.outfit_id, + record.weather_temp, record.weather_condition, record.notes, record.created_at + ], + )?; + Ok(()) + } + + pub fn list_daily_records(&self, user_id: &str, limit: i32) -> Result, Box> { + let conn = self.conn.lock().unwrap(); + let mut stmt = conn.prepare("SELECT id, user_id, date, outfit_id, weather_temp, weather_condition, notes, created_at FROM daily_records WHERE user_id = ?1 ORDER BY date DESC LIMIT ?2")?; + let rows = stmt.query_map(params![user_id, limit], |row| { + Ok(DailyRecord { + id: row.get(0)?, + user_id: row.get(1)?, + date: row.get(2)?, + outfit_id: row.get(3)?, + weather_temp: row.get(4)?, + weather_condition: row.get(5)?, + notes: row.get(6)?, + created_at: row.get(7)?, + }) + })?; + let mut records = Vec::new(); + for row in rows { + records.push(row?); + } + Ok(records) + } + + // ── Stats ── + + pub fn get_stats(&self, user_id: &str) -> Result> { + let conn = self.conn.lock().unwrap(); + + let total_items: i32 = conn.query_row( + "SELECT COUNT(*) FROM clothing_items WHERE user_id = ?1", params![user_id], |r| r.get(0) + )?; + let total_outfits: i32 = conn.query_row( + "SELECT COUNT(*) FROM outfits WHERE user_id = ?1", params![user_id], |r| r.get(0) + )?; + let favorite_count: i32 = conn.query_row( + "SELECT COUNT(*) FROM clothing_items WHERE user_id = ?1 AND is_favorite = TRUE", params![user_id], |r| r.get(0) + )?; + let unworn_30d: i32 = conn.query_row( + "SELECT COUNT(*) FROM clothing_items WHERE user_id = ?1 AND (last_worn IS NULL OR last_worn < strftime('%Y-%m-%d', 'now', '-30 days'))", + params![user_id], |r| r.get(0) + )?; + let needs_cleaning: i32 = conn.query_row( + "SELECT COUNT(*) FROM clothing_items WHERE user_id = ?1 AND (last_cleaned IS NULL OR last_cleaned < strftime('%Y-%m-%d', 'now', '-30 days'))", + params![user_id], |r| r.get(0) + )?; + + let utilization_rate = if total_items > 0 { + ((total_items - unworn_30d) as f64 / total_items as f64 * 100.0).round() + } else { + 0.0 + }; + + let mut category_counts = std::collections::HashMap::new(); + let cats = ["top", "bottom", "outer", "dress", "shoes", "accessory"]; + for cat in cats { + let count: i32 = conn.query_row( + "SELECT COUNT(*) FROM clothing_items WHERE user_id = ?1 AND category = ?2", + params![user_id, cat], + |r| r.get(0), + )?; + category_counts.insert(cat.to_string(), count); + } + + Ok(WardrobeStats { + total_items, + total_outfits, + utilization_rate, + category_counts, + favorite_count, + unworn_30d, + needs_cleaning, + }) + } + + pub fn db_path(&self) -> &PathBuf { + &self.path + } +} diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs new file mode 100644 index 0000000..76ad2eb --- /dev/null +++ b/src-tauri/src/lib.rs @@ -0,0 +1,298 @@ +mod auth; +mod db; +mod mcp; +mod models; + +use std::sync::atomic::{AtomicBool, Ordering}; +use std::sync::Arc; + +use log::info; +use tauri::Manager; + +use auth::AuthManager; +use db::Database; +use mcp::McpService; +use models::*; + +struct AppState { + db: Arc, + auth: Arc, + mcp: Arc, + shutdown_flag: Arc, +} + +// ══════════════════════════════════════════════════ +// Tauri IPC Commands +// ══════════════════════════════════════════════════ + +#[tauri::command] +fn send_code(state: tauri::State, target: String) -> Result { + state.auth.send_verification(&target) +} + +#[tauri::command] +fn register( + state: tauri::State, + email: Option, + phone: Option, + code: String, + nickname: String, +) -> Result { + state.auth.register(&state.db, email.as_deref(), phone.as_deref(), &code, &nickname) +} + +#[tauri::command] +fn login( + state: tauri::State, + email: Option, + phone: Option, + code: String, +) -> Result { + state.auth.login(&state.db, email.as_deref(), phone.as_deref(), &code) +} + +#[tauri::command] +fn add_clothing( + state: tauri::State, + user_id: String, + name: String, + category: String, + color: String, + brand: Option, + seasons: Option>, + occasions: Option>, +) -> Result { + let now = chrono::Utc::now().to_rfc3339(); + let item = ClothingItem { + id: uuid::Uuid::new_v4().to_string(), + user_id, + name, + category, + color, + brand, + material: None, + seasons: seasons.unwrap_or_default(), + occasions: occasions.unwrap_or_default(), + formality: 50, + thickness: 50, + image_path: None, + purchase_date: None, + purchase_price: None, + last_cleaned: None, + clean_method: None, + wear_count: 0, + last_worn: None, + is_favorite: false, + created_at: now.clone(), + updated_at: now, + }; + state.db.create_clothing(&item).map_err(|e| e.to_string())?; + Ok(item) +} + +#[tauri::command] +fn list_clothing( + state: tauri::State, + user_id: String, + category: Option, +) -> Result, String> { + state.db.list_clothing(&user_id, category.as_deref()).map_err(|e| e.to_string()) +} + +#[tauri::command] +fn get_clothing(state: tauri::State, id: String) -> Result, String> { + state.db.get_clothing(&id).map_err(|e| e.to_string()) +} + +#[tauri::command] +fn update_clothing( + state: tauri::State, + id: String, + name: String, + category: String, + color: String, +) -> Result<(), String> { + state.db.update_clothing(&id, &name, &category, &color).map_err(|e| e.to_string()) +} + +#[tauri::command] +fn delete_clothing(state: tauri::State, id: String) -> Result<(), String> { + state.db.delete_clothing(&id).map_err(|e| e.to_string()) +} + +#[tauri::command] +fn add_outfit( + state: tauri::State, + user_id: String, + name: String, + item_ids: Vec, + occasion: Option, + season: Option, +) -> Result { + let now = chrono::Utc::now().to_rfc3339(); + let outfit = Outfit { + id: uuid::Uuid::new_v4().to_string(), + user_id, + name, + item_ids, + occasion, + season, + match_score: None, + ai_analysis: None, + is_saved: false, + created_at: now, + }; + state.db.create_outfit(&outfit).map_err(|e| e.to_string())?; + Ok(outfit) +} + +#[tauri::command] +fn list_outfits(state: tauri::State, user_id: String) -> Result, String> { + state.db.list_outfits(&user_id).map_err(|e| e.to_string()) +} + +#[tauri::command] +fn record_daily( + state: tauri::State, + user_id: String, + date: String, + outfit_id: Option, + notes: Option, +) -> Result { + let now = chrono::Utc::now().to_rfc3339(); + let record = DailyRecord { + id: uuid::Uuid::new_v4().to_string(), + user_id, + date, + outfit_id, + weather_temp: None, + weather_condition: None, + notes, + created_at: now, + }; + state.db.upsert_daily_record(&record).map_err(|e| e.to_string())?; + Ok(record) +} + +#[tauri::command] +fn list_daily_records( + state: tauri::State, + user_id: String, + limit: Option, +) -> Result, String> { + state.db.list_daily_records(&user_id, limit.unwrap_or(30)).map_err(|e| e.to_string()) +} + +#[tauri::command] +fn get_stats(state: tauri::State, user_id: String) -> Result { + state.db.get_stats(&user_id).map_err(|e| e.to_string()) +} + +// ── MCP Commands ── + +#[tauri::command] +fn mcp_list_tools(state: tauri::State) -> Result, String> { + Ok(state.mcp.list_tools()) +} + +#[tauri::command] +fn mcp_call_tool( + state: tauri::State, + tool_name: String, + args: serde_json::Value, +) -> Result { + state.mcp.call_tool(&tool_name, &args) +} + +// ══════════════════════════════════════════════════ +// Main (桌面 + Android 共用) +// ══════════════════════════════════════════════════ + +// 必须用 tauri_plugin_hotswap::init 包装 generate_context, +// 返回 (插件实例, 新的 context), 并把插件注入 Builder。 +// Android 上通过 mobile_entry_point 从这里启动。 +#[cfg_attr(mobile, tauri::mobile_entry_point)] +pub fn run() { + env_logger::init(); + info!("Wardrobe starting..."); + + let shutdown_flag = Arc::new(AtomicBool::new(false)); + let ctrlc_flag = shutdown_flag.clone(); + + ctrlc::set_handler(move || { + info!("Ctrl+C received, shutting down gracefully..."); + ctrlc_flag.store(true, Ordering::SeqCst); + }) + .expect("Error setting Ctrl-C handler"); + + // 初始化 hotswap 插件 (OTA 升级), 返回改装后的 context + let context = tauri::generate_context!(); + let (hotswap, context) = match tauri_plugin_hotswap::init(context) { + Ok(ok) => ok, + Err(e) => { + eprintln!("failed to initialize tauri-plugin-hotswap: {:?}", e); + std::process::exit(1); + } + }; + + let app = tauri::Builder::default() + .plugin(hotswap) + .plugin(tauri_plugin_shell::init()) + .setup(|app| { + info!("Initializing database..."); + + let data_dir = app.path().app_data_dir().unwrap_or_else(|_| std::path::PathBuf::from(".")); + let database = match Database::new(&data_dir) { + Ok(db) => Arc::new(db), + Err(e) => { + eprintln!("Failed to initialize database: {}", e); + std::process::exit(1); + } + }; + + let auth = Arc::new(AuthManager::new()); + let mcp = Arc::new(McpService::new(database.clone())); + + app.manage(AppState { + db: database, + auth, + mcp, + shutdown_flag: shutdown_flag.clone(), + }); + + info!("Wardrobe app initialized, data dir: {:?}", data_dir); + Ok(()) + }) + .on_window_event(move |_window, event| { + if let tauri::WindowEvent::Destroyed = event { + info!("Window destroyed, shutting down gracefully..."); + shutdown_flag.store(true, Ordering::SeqCst); + } + }) + .invoke_handler(tauri::generate_handler![ + send_code, + register, + login, + add_clothing, + list_clothing, + get_clothing, + update_clothing, + delete_clothing, + add_outfit, + list_outfits, + record_daily, + list_daily_records, + get_stats, + mcp_list_tools, + mcp_call_tool, + ]) + .build(context) + .expect("error while building tauri application"); + + info!("Running Tauri application"); + app.run(|_app, _event| { + // Additional lifecycle handling can be added here + }); + + info!("Wardrobe shut down gracefully"); +} \ No newline at end of file diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs new file mode 100644 index 0000000..0a632f2 --- /dev/null +++ b/src-tauri/src/main.rs @@ -0,0 +1,7 @@ +// Windows / Linux / macOS 桌面端入口 +// Android 不走这里, 走 .lib crate (mobile_entry_point) +#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] + +fn main() { + wardrobe_lib::run(); +} diff --git a/src-tauri/src/mcp.rs b/src-tauri/src/mcp.rs new file mode 100644 index 0000000..deec3dd --- /dev/null +++ b/src-tauri/src/mcp.rs @@ -0,0 +1,205 @@ +use std::sync::Arc; +use log::info; +use crate::db::Database; +use crate::models::*; + +pub struct McpService { + db: Arc, +} + +impl McpService { + pub fn new(db: Arc) -> Self { + Self { db } + } + + pub fn list_tools(&self) -> Vec { + vec![ + McpTool { + name: "list_clothing".to_string(), + description: "获取用户衣橱中的所有衣物列表".to_string(), + input_schema: r#"{"type":"object","properties":{"user_id":{"type":"string"},"category":{"type":"string"}},"required":["user_id"]}"#.to_string(), + }, + McpTool { + name: "get_clothing".to_string(), + description: "根据ID获取单件衣物详情".to_string(), + input_schema: r#"{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}"#.to_string(), + }, + McpTool { + name: "add_clothing".to_string(), + description: "添加新衣物到衣橱".to_string(), + input_schema: r#"{"type":"object","properties":{"user_id":{"type":"string"},"name":{"type":"string"},"category":{"type":"string"},"color":{"type":"string"},"brand":{"type":"string"},"seasons":{"type":"array","items":{"type":"string"}},"occasions":{"type":"array","items":{"type":"string"}}},"required":["user_id","name","category","color"]}"#.to_string(), + }, + McpTool { + name: "update_clothing".to_string(), + description: "更新衣物信息".to_string(), + input_schema: r#"{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"category":{"type":"string"},"color":{"type":"string"}},"required":["id"]}"#.to_string(), + }, + McpTool { + name: "delete_clothing".to_string(), + description: "从衣橱中删除衣物".to_string(), + input_schema: r#"{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}"#.to_string(), + }, + McpTool { + name: "list_outfits".to_string(), + description: "获取用户的所有搭配方案".to_string(), + input_schema: r#"{"type":"object","properties":{"user_id":{"type":"string"}},"required":["user_id"]}"#.to_string(), + }, + McpTool { + name: "add_outfit".to_string(), + description: "创建新的搭配方案".to_string(), + input_schema: r#"{"type":"object","properties":{"user_id":{"type":"string"},"name":{"type":"string"},"item_ids":{"type":"array","items":{"type":"string"}},"occasion":{"type":"string"},"season":{"type":"string"}},"required":["user_id","name","item_ids"]}"#.to_string(), + }, + McpTool { + name: "get_wardrobe_stats".to_string(), + description: "获取衣橱统计数据(总数、利用率、分类统计等)".to_string(), + input_schema: r#"{"type":"object","properties":{"user_id":{"type":"string"}},"required":["user_id"]}"#.to_string(), + }, + McpTool { + name: "record_daily_outfit".to_string(), + description: "记录每日穿搭".to_string(), + input_schema: r#"{"type":"object","properties":{"user_id":{"type":"string"},"date":{"type":"string"},"outfit_id":{"type":"string"},"notes":{"type":"string"}},"required":["user_id","date"]}"#.to_string(), + }, + McpTool { + name: "list_daily_records".to_string(), + description: "获取穿搭日历记录".to_string(), + input_schema: r#"{"type":"object","properties":{"user_id":{"type":"string"},"limit":{"type":"integer"}},"required":["user_id"]}"#.to_string(), + }, + ] + } + + pub fn call_tool(&self, name: &str, args: &serde_json::Value) -> Result { + info!("MCP tool call: {}", name); + match name { + "list_clothing" => { + let user_id = args["user_id"].as_str().ok_or("missing user_id")?; + let category = args["category"].as_str(); + let items = self.db.list_clothing(user_id, category).map_err(|e| e.to_string())?; + Ok(serde_json::to_value(items).unwrap()) + } + "get_clothing" => { + let id = args["id"].as_str().ok_or("missing id")?; + match self.db.get_clothing(id).map_err(|e| e.to_string())? { + Some(item) => Ok(serde_json::to_value(item).unwrap()), + None => Ok(serde_json::json!({"error": "衣物不存在"})), + } + } + "add_clothing" => { + let user_id = args["user_id"].as_str().ok_or("missing user_id")?; + let name = args["name"].as_str().ok_or("missing name")?; + let category = args["category"].as_str().ok_or("missing category")?; + let color = args["color"].as_str().ok_or("missing color")?; + let brand = args["brand"].as_str(); + let seasons: Vec = args["seasons"].as_array() + .map(|a| a.iter().filter_map(|v| v.as_str().map(String::from)).collect()) + .unwrap_or_default(); + let occasions: Vec = args["occasions"].as_array() + .map(|a| a.iter().filter_map(|v| v.as_str().map(String::from)).collect()) + .unwrap_or_default(); + let now = chrono::Utc::now().to_rfc3339(); + let item = ClothingItem { + id: uuid::Uuid::new_v4().to_string(), + user_id: user_id.to_string(), + name: name.to_string(), + category: category.to_string(), + color: color.to_string(), + brand: brand.map(String::from), + material: None, + seasons, + occasions, + formality: args["formality"].as_i64().unwrap_or(50) as i32, + thickness: args["thickness"].as_i64().unwrap_or(50) as i32, + image_path: None, + purchase_date: None, + purchase_price: None, + last_cleaned: None, + clean_method: None, + wear_count: 0, + last_worn: None, + is_favorite: false, + created_at: now.clone(), + updated_at: now, + }; + self.db.create_clothing(&item).map_err(|e| e.to_string())?; + Ok(serde_json::to_value(item).unwrap()) + } + "update_clothing" => { + let id = args["id"].as_str().ok_or("missing id")?; + let name = args["name"].as_str().unwrap_or(""); + let category = args["category"].as_str().unwrap_or(""); + let color = args["color"].as_str().unwrap_or(""); + self.db.update_clothing(id, name, category, color).map_err(|e| e.to_string())?; + Ok(serde_json::json!({"success": true})) + } + "delete_clothing" => { + let id = args["id"].as_str().ok_or("missing id")?; + self.db.delete_clothing(id).map_err(|e| e.to_string())?; + Ok(serde_json::json!({"success": true})) + } + "list_outfits" => { + let user_id = args["user_id"].as_str().ok_or("missing user_id")?; + let outfits = self.db.list_outfits(user_id).map_err(|e| e.to_string())?; + Ok(serde_json::to_value(outfits).unwrap()) + } + "add_outfit" => { + let user_id = args["user_id"].as_str().ok_or("missing user_id")?; + let name = args["name"].as_str().ok_or("missing name")?; + let item_ids: Vec = args["item_ids"].as_array() + .ok_or("missing item_ids")? + .iter() + .filter_map(|v| v.as_str().map(String::from)) + .collect(); + let now = chrono::Utc::now().to_rfc3339(); + let outfit = Outfit { + id: uuid::Uuid::new_v4().to_string(), + user_id: user_id.to_string(), + name: name.to_string(), + item_ids, + occasion: args["occasion"].as_str().map(String::from), + season: args["season"].as_str().map(String::from), + match_score: None, + ai_analysis: None, + is_saved: false, + created_at: now, + }; + self.db.create_outfit(&outfit).map_err(|e| e.to_string())?; + Ok(serde_json::to_value(outfit).unwrap()) + } + "get_wardrobe_stats" => { + let user_id = args["user_id"].as_str().ok_or("missing user_id")?; + let stats = self.db.get_stats(user_id).map_err(|e| e.to_string())?; + Ok(serde_json::to_value(stats).unwrap()) + } + "record_daily_outfit" => { + let user_id = args["user_id"].as_str().ok_or("missing user_id")?; + let date = args["date"].as_str().ok_or("missing date")?; + let now = chrono::Utc::now().to_rfc3339(); + let record = DailyRecord { + id: uuid::Uuid::new_v4().to_string(), + user_id: user_id.to_string(), + date: date.to_string(), + outfit_id: args["outfit_id"].as_str().map(String::from), + weather_temp: args["weather_temp"].as_f64(), + weather_condition: args["weather_condition"].as_str().map(String::from), + notes: args["notes"].as_str().map(String::from), + created_at: now, + }; + self.db.upsert_daily_record(&record).map_err(|e| e.to_string())?; + Ok(serde_json::to_value(record).unwrap()) + } + "list_daily_records" => { + let user_id = args["user_id"].as_str().ok_or("missing user_id")?; + let limit = args["limit"].as_i64().unwrap_or(30) as i32; + let records = self.db.list_daily_records(user_id, limit).map_err(|e| e.to_string())?; + Ok(serde_json::to_value(records).unwrap()) + } + _ => Err(format!("Unknown tool: {}", name)), + } + } +} + +#[derive(serde::Serialize)] +pub struct McpTool { + pub name: String, + pub description: String, + pub input_schema: String, +} diff --git a/src-tauri/src/models.rs b/src-tauri/src/models.rs new file mode 100644 index 0000000..c7cacfa --- /dev/null +++ b/src-tauri/src/models.rs @@ -0,0 +1,89 @@ +use serde::{Deserialize, Serialize}; + +#[derive(Debug, Clone, Serialize, Deserialize)] +pub struct ClothingItem { + pub id: String, + pub user_id: String, + pub name: String, + pub category: String, + pub color: String, + pub brand: Option, + pub material: Option, + pub seasons: Vec, + pub occasions: Vec, + pub formality: i32, + pub thickness: i32, + pub image_path: Option, + pub purchase_date: Option, + pub purchase_price: Option, + pub last_cleaned: Option, + pub clean_method: Option, + pub wear_count: i32, + pub last_worn: Option, + pub is_favorite: bool, + pub created_at: String, + pub updated_at: String, +} + +#[derive(Debug, Clone, Serialize, Deserialize)] +pub struct Outfit { + pub id: String, + pub user_id: String, + pub name: String, + pub item_ids: Vec, + pub occasion: Option, + pub season: Option, + pub match_score: Option, + pub ai_analysis: Option, + pub is_saved: bool, + pub created_at: String, +} + +#[derive(Debug, Clone, Serialize, Deserialize)] +pub struct DailyRecord { + pub id: String, + pub user_id: String, + pub date: String, + pub outfit_id: Option, + pub weather_temp: Option, + pub weather_condition: Option, + pub notes: Option, + pub created_at: String, +} + +#[derive(Debug, Clone, Serialize, Deserialize)] +pub struct User { + pub id: String, + pub email: Option, + pub phone: Option, + pub nickname: String, + pub avatar_path: Option, + pub created_at: String, +} + +#[derive(Debug, Clone, Serialize, Deserialize)] +pub struct VerificationCode { + pub target: String, + pub code: String, + pub created_at: i64, + pub expires_at: i64, +} + +#[derive(Debug, Clone, Serialize, Deserialize)] +pub struct AuthResult { + pub success: bool, + pub message: String, + pub user: Option, + pub token: Option, +} + +#[derive(Debug, Clone, Serialize, Deserialize)] +pub struct WardrobeStats { + pub total_items: i32, + pub total_outfits: i32, + pub utilization_rate: f64, + pub category_counts: std::collections::HashMap, + pub favorite_count: i32, + pub unworn_30d: i32, + pub needs_cleaning: i32, +} diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json new file mode 100644 index 0000000..ac8e4fd --- /dev/null +++ b/src-tauri/tauri.conf.json @@ -0,0 +1,51 @@ +{ + "$schema": "https://schema.tauri.app/config/2", + "productName": "Wardrobe", + "version": "0.1.0", + "identifier": "com.wardrobe.app", + "build": { + "beforeDevCommand": "npm run dev", + "devUrl": "http://localhost:1420", + "beforeBuildCommand": "npm run build", + "frontendDist": "../dist" + }, + "app": { + "windows": [ + { + "title": "Wardrobe - 衣物管理", + "width": 390, + "height": 844, + "minWidth": 360, + "minHeight": 640, + "resizable": true, + "fullscreen": false, + "center": true + } + ], + "security": { + "csp": null + } + }, + "bundle": { + "active": true, + "targets": "all", + "icon": [ + "icons/32x32.png", + "icons/128x128.png", + "icons/128x128@2x.png", + "icons/icon.icns", + "icons/icon.ico" + ] + }, + "plugins": { + "shell": { + "open": true + }, + "hotswap": { + "endpoint": "http://bh.vps.honor3.com:3002/api/ota/check/{{current_sequence}}", + "pubkey": "RWTHU7sECNXhIJY+dp+plthZMsQ2oGdboaKxuRA2QaqbCq3tkKGiKsYl", + "require_https": false, + "headers": {} + } + } +} \ No newline at end of file diff --git a/src/App.tsx b/src/App.tsx new file mode 100644 index 0000000..9438c42 --- /dev/null +++ b/src/App.tsx @@ -0,0 +1,65 @@ +import React, { useEffect } from "react"; +import { BrowserRouter, Routes, Route, Navigate, useNavigate } from "react-router-dom"; +import { useAppStore } from "./stores/app"; +import { initOta } from "./api/ota"; +import Login from "./pages/Login"; +import Landing from "./pages/Landing"; +import Home from "./pages/Home"; +import Closet from "./pages/Closet"; +import AddClothing from "./pages/AddClothing"; +import ClothingDetail from "./pages/ClothingDetail"; +import Outfits from "./pages/Outfits"; +import Calendar from "./pages/Calendar"; +import Profile from "./pages/Profile"; +import Layout from "./components/Layout"; + +function ProtectedRoute({ children }: { children: React.ReactNode }) { + const user = useAppStore((s) => s.user); + if (!user) return ; + return <>{children}; +} + +function RouterGate() { + const user = useAppStore((s) => s.user); + const navigate = useNavigate(); + + useEffect(() => { + // Tauri 端: 告知 hotswap 当前资源已就绪 (Web 端 no-op) + initOta(); + }, []); + + useEffect(() => { + const saved = localStorage.getItem("wardrobe_user"); + if (saved && !user) { + const parsed = JSON.parse(saved); + useAppStore.getState().setUser(parsed.user, parsed.token); + navigate("/home", { replace: true }); + } else if (user) { + localStorage.setItem("wardrobe_user", JSON.stringify(useAppStore.getState())); + } + }, [user, navigate]); + + return ( + + } /> + } /> + }> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + + + ); +} + +export default function App() { + return ( + + + + ); +} \ No newline at end of file diff --git a/src/api/index.ts b/src/api/index.ts new file mode 100644 index 0000000..b62c214 --- /dev/null +++ b/src/api/index.ts @@ -0,0 +1,122 @@ +import { invoke } from "@tauri-apps/api/core"; + +export interface ClothingItem { + id: string; + user_id: string; + name: string; + category: string; + color: string; + brand?: string; + material?: string; + seasons: string[]; + occasions: string[]; + formality: number; + thickness: number; + image_path?: string; + purchase_date?: string; + purchase_price?: number; + last_cleaned?: string; + clean_method?: string; + wear_count: number; + last_worn?: string; + is_favorite: boolean; + created_at: string; + updated_at: string; +} + +export interface Outfit { + id: string; + user_id: string; + name: string; + item_ids: string[]; + occasion?: string; + season?: string; + match_score?: number; + ai_analysis?: string; + is_saved: boolean; + created_at: string; +} + +export interface DailyRecord { + id: string; + user_id: string; + date: string; + outfit_id?: string; + weather_temp?: number; + weather_condition?: string; + notes?: string; + created_at: string; +} + +export interface User { + id: string; + email?: string; + phone?: string; + nickname: string; + avatar_path?: string; + created_at: string; +} + +export interface AuthResult { + success: boolean; + message: string; + user?: User; + token?: string; +} + +export interface WardrobeStats { + total_items: number; + total_outfits: number; + utilization_rate: number; + category_counts: Record; + favorite_count: number; + unworn_30d: number; + needs_cleaning: number; +} + +export interface McpTool { + name: string; + description: string; + input_schema: string; +} + +// ── Auth ── +export const sendCode = (target: string) => invoke("send_code", { target }); +export const register = (email: string | null, phone: string | null, code: string, nickname: string) => + invoke("register", { email, phone, code, nickname }); +export const login = (email: string | null, phone: string | null, code: string) => + invoke("login", { email, phone, code }); + +// ── Clothing ── +export const addClothing = (userId: string, name: string, category: string, color: string, brand?: string, seasons?: string[], occasions?: string[]) => + invoke("add_clothing", { userId, name, category, color, brand, seasons, occasions }); +export const listClothing = (userId: string, category?: string) => + invoke("list_clothing", { userId, category }); +export const getClothing = (id: string) => + invoke("get_clothing", { id }); +export const updateClothing = (id: string, name: string, category: string, color: string) => + invoke("update_clothing", { id, name, category, color }); +export const deleteClothing = (id: string) => + invoke("delete_clothing", { id }); + +// ── Outfits ── +export const addOutfit = (userId: string, name: string, itemIds: string[], occasion?: string, season?: string) => + invoke("add_outfit", { userId, name, itemIds, occasion, season }); +export const listOutfits = (userId: string) => + invoke("list_outfits", { userId }); + +// ── Daily Records ── +export const recordDaily = (userId: string, date: string, outfitId?: string, notes?: string) => + invoke("record_daily", { userId, date, outfitId, notes }); +export const listDailyRecords = (userId: string, limit?: number) => + invoke("list_daily_records", { userId, limit }); + +// ── Stats ── +export const getStats = (userId: string) => + invoke("get_stats", { userId }); + +// ── MCP ── +export const mcpListTools = () => + invoke("mcp_list_tools"); +export const mcpCallTool = (toolName: string, args: Record) => + invoke("mcp_call_tool", { toolName, args }); \ No newline at end of file diff --git a/src/api/ota.ts b/src/api/ota.ts new file mode 100644 index 0000000..1525084 --- /dev/null +++ b/src/api/ota.ts @@ -0,0 +1,181 @@ +// 前端 OTA 封装 +// - Tauri 客户端: 直接用 tauri-plugin-hotswap-api (checkUpdate / applyUpdate / ...) +// - Web 浏览器: 只走我们自己的 /api/ota/manifest-web, 提示用户手动刷新 (Vite 资源指纹会失效) +// +// 设计原则: +// - Web 端只能"查 + 提示", 不能真下载应用, 避免误导 +// - Tauri 端走 hotswap 插件的官方 API, 签名校验/回滚/资源替换全交给插件 +import { APP_VERSION, BUILD_ID } from "../version"; + +// 判断是否在 Tauri WebView 内 (有 __TAURI_INTERNALS__ 即 Tauri 环境) +const inTauri = typeof window !== "undefined" && "__TAURI_INTERNALS__" in window; + +// 拼接绝对 URL: web 模式同源 (OTA 服务端同时托管 dist), Tauri 不走这里 +function resolveUrl(p: string) { + const base = import.meta.env.VITE_API_BASE as string | undefined; + return base ? base + p : p; +} + +export interface OtaUpdateInfo { + version: string; + sequence?: number; + notes?: string; + mandatory?: boolean; + bundle_size?: number; +} + +export interface OtaCheckResult { + available: boolean; + reason: "no_package" | "same_version" | "ota_disabled" | "unsupported" | "ok"; + info: OtaUpdateInfo | null; +} + +// 当前版本信息 (前端展示用) +export function getCurrentVersionInfo() { + return { version: APP_VERSION, build: BUILD_ID }; +} + +// 启动时: 确认当前资源可用 (Tauri only) +// 失败/异常都不抛, 仅 console.warn +export function initOta() { + if (!inTauri) return; + // 动态 import: web 模式根本不打这个 chunk + import("tauri-plugin-hotswap-api") + .then((mod) => mod.notifyReady()) + .then(() => console.log("[ota] notifyReady ok")) + .catch((e) => console.warn("[ota] notifyReady failed:", e)); +} + +// 检查更新, 返回统一结构, 调用方不关心是 Tauri 还是 web +export async function checkOtaUpdate(): Promise { + if (!inTauri) { + return checkOtaUpdateWeb(); + } + return checkOtaUpdateTauri(); +} + +async function checkOtaUpdateTauri(): Promise { + const { checkUpdate } = await import("tauri-plugin-hotswap-api"); + const r = await checkUpdate(); + if (!r.available) { + return { available: false, reason: "no_package", info: null }; + } + return { + available: true, + reason: "ok", + info: { + version: r.version ?? "0.0.0", + sequence: r.sequence ?? undefined, + notes: r.notes ?? undefined, + mandatory: r.mandatory ?? undefined, + bundle_size: r.bundle_size ?? undefined, + }, + }; +} + +async function checkOtaUpdateWeb(): Promise { + // Web 端不能下载, 只能拿到版本号/构建号做比对, 提示用户刷新 + try { + const res = await fetch(resolveUrl("/api/ota/manifest-web"), { method: "GET" }); + if (!res.ok) { + return { available: false, reason: "unsupported", info: null }; + } + const data = await res.json(); + if (!data.available) return { available: false, reason: "no_package", info: null }; + if (data.build_id && data.build_id === BUILD_ID) { + return { available: false, reason: "same_version", info: null }; + } + return { + available: true, + reason: "ok", + info: { + version: data.version, + notes: data.note || "", + mandatory: false, + bundle_size: data.size || 0, + }, + }; + } catch (e) { + console.warn("[ota] web check failed:", e); + return { available: false, reason: "unsupported", info: null }; + } +} + +// 下载并应用更新 (Tauri only). 调用方负责 UI 提示和错误处理 +// onProgress(received, total) 进度回调 +// 成功后必须 reload, 新资源才会生效 +export async function applyOtaUpdate(onProgress?: (received: number, total: number) => void): Promise { + if (!inTauri) { + throw new Error("OTA 升级仅在 Tauri 客户端可用, Web 端请直接刷新页面"); + } + const mod = await import("tauri-plugin-hotswap-api"); + + // 注册一次性进度监听 (applyUpdate 期间触发) + let unlisten: (() => void) | null = null; + let unlistenLifecycle: (() => void) | null = null; + if (onProgress) { + try { + unlisten = ((await mod.onDownloadProgress((p) => + onProgress(p.downloaded ?? 0, p.total ?? 0) + )) as () => void) ?? null; + } catch (e) { + console.warn("[ota] onDownloadProgress 监听失败:", e); + } + } + + // 监听 lifecycle 事件, 捕获失败详情 + let lifecycleError = ""; + try { + unlistenLifecycle = + ((await mod.onLifecycle((ev: { event: string; error?: string | null }) => { + if (ev.event === "download-error" || ev.event === "apply" || ev.event === "check-error") { + if (ev.error) { + lifecycleError = ev.error; + console.error("[ota] lifecycle", ev.event, "error:", ev.error); + } + } + })) as () => void) ?? null; + } catch (e) { + console.warn("[ota] onLifecycle 监听失败:", e); + } + + try { + return (await mod.applyUpdate()) as string; + } catch (e: unknown) { + const base = (e as Error)?.message || "升级失败"; + const detail = lifecycleError ? ` (${lifecycleError})` : ""; + const err = new Error(base + detail); + throw err; + } finally { + if (unlisten) { + try { unlisten(); } catch { /* ignore */ } + } + if (unlistenLifecycle) { + try { unlistenLifecycle(); } catch { /* ignore */ } + } + } +} + +// 回滚到内置 dist (Tauri only, OTA 出错时手动恢复) +export async function rollbackOta(): Promise { + if (!inTauri) throw new Error("仅 Tauri 客户端可用"); + const mod = await import("tauri-plugin-hotswap-api"); + await mod.rollback(); +} + +// 取当前 OTA 状态 (Tauri only) +export async function getOtaVersionInfo(): Promise { + if (!inTauri) return null; + try { + const mod = await import("tauri-plugin-hotswap-api"); + return await mod.getVersionInfo(); + } catch (e) { + console.warn("[ota] getVersionInfo failed:", e); + return null; + } +} + +// reload 当前页 (新资源生效) +export function reloadApp() { + window.location.reload(); +} \ No newline at end of file diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx new file mode 100644 index 0000000..816e0b0 --- /dev/null +++ b/src/components/Layout.tsx @@ -0,0 +1,52 @@ +import { Outlet, useNavigate, useLocation } from "react-router-dom"; +import { useAppStore } from "../stores/app"; + +const NAV_ICONS: Record = { + home: "🏠", + outfits: "💡", + closet: "👕", + profile: "👤", +}; + +export default function Layout() { + const navigate = useNavigate(); + const location = useLocation(); + const user = useAppStore((s) => s.user); + + const isActive = (path: string) => + path === "/home" ? location.pathname === "/home" || location.pathname === "/" : location.pathname.startsWith(path); + + const goAdd = () => { + if (!user) return; + navigate("/add"); + }; + + return ( +
+
+ +
+ +
+ ); +} \ No newline at end of file diff --git a/src/main.tsx b/src/main.tsx new file mode 100644 index 0000000..a3e352b --- /dev/null +++ b/src/main.tsx @@ -0,0 +1,10 @@ +import React from "react"; +import ReactDOM from "react-dom/client"; +import App from "./App"; +import "./styles/global.css"; + +ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render( + + + +); \ No newline at end of file diff --git a/src/pages/AddClothing.tsx b/src/pages/AddClothing.tsx new file mode 100644 index 0000000..408e93c --- /dev/null +++ b/src/pages/AddClothing.tsx @@ -0,0 +1,162 @@ +import { useState } from "react"; +import { useNavigate } from "react-router-dom"; +import { addClothing } from "../api"; +import { useAppStore } from "../stores/app"; +import { CATEGORIES, SEASONS, OCCASIONS } from "../types"; + +const COLORS = [ + { hex: "#1a1a1a", label: "黑" }, + { hex: "#f5f5f5", label: "白" }, + { hex: "#4a6fa5", label: "蓝" }, + { hex: "#8b7355", label: "棕" }, + { hex: "#c0392b", label: "红" }, + { hex: "#27ae60", label: "绿" }, + { hex: "#f39c12", label: "黄" }, + { hex: "#8e44ad", label: "紫" }, +] as const; + +export default function AddClothing() { + const navigate = useNavigate(); + const user = useAppStore((s) => s.user); + const addItem = useAppStore((s) => s.addClothingItem); + + const [category, setCategory] = useState(CATEGORIES[0].key); + const [name, setName] = useState(""); + const [color, setColor] = useState(COLORS[0].hex); + const [brand, setBrand] = useState(""); + const [seasons, setSeasons] = useState(["春", "秋"]); + const [occasions, setOccasions] = useState(["通勤"]); + const [formality, setFormality] = useState(50); + const [thickness, setThickness] = useState(30); + const [saving, setSaving] = useState(false); + const [error, setError] = useState(""); + + const toggleTag = (list: string[], value: string, setter: (v: string[]) => void) => { + setter(list.includes(value) ? list.filter((v) => v !== value) : [...list, value]); + }; + + const handleSave = async () => { + if (!user) return; + if (!name.trim()) return setError("请输入衣物名称"); + setSaving(true); + setError(""); + try { + const item = await addClothing(user.id, name.trim(), category, color, brand || undefined, seasons, occasions); + addItem(item); + navigate("/closet", { replace: true }); + } catch (e) { + setError(String(e)); + } finally { + setSaving(false); + } + }; + + return ( +
+
+ +

添加衣物

+ +
+ +
+ 📷 +

点击拍照或从相册选择

+ 支持 AI 自动识别 +
+ +
+

🤖 AI 将自动识别品类、颜色、材质

+
+ +

基础信息

+
+
+ + +
+
+ + setName(e.target.value)} /> +
+
+ +
+ {COLORS.map((c) => ( +
+
+
+ + setBrand(e.target.value)} /> +
+
+ +

属性标签

+
+
+ +
+ {SEASONS.map((s) => ( + + ))} +
+
+
+ +
+ {OCCASIONS.map((o) => ( + + ))} +
+
+
+ + setFormality(Number(e.target.value))} style={{ width: "100%" }} /> +
+
+ + setThickness(Number(e.target.value))} style={{ width: "100%" }} /> +
+
+ + {error &&

{error}

} + + +
+
+ ); +} \ No newline at end of file diff --git a/src/pages/Calendar.tsx b/src/pages/Calendar.tsx new file mode 100644 index 0000000..8074bab --- /dev/null +++ b/src/pages/Calendar.tsx @@ -0,0 +1,110 @@ +import { useEffect, useState } from "react"; +import { listDailyRecords } from "../api"; +import { useAppStore } from "../stores/app"; + +export default function Calendar() { + const user = useAppStore((s) => s.user); + const setDailyRecords = useAppStore((s) => s.setDailyRecords); + const dailyRecords = useAppStore((s) => s.dailyRecords); + const [month, setMonth] = useState({ year: 2026, month: 9 }); + const [loading, setLoading] = useState(true); + + useEffect(() => { + if (!user) return; + (async () => { + try { + const records = await listDailyRecords(user.id, 30); + setDailyRecords(records); + } catch (e) { + console.error(e); + } finally { + setLoading(false); + } + })(); + }, [user]); + + const daysInMonth = new Date(month.year, month.month, 0).getDate(); + const firstDay = new Date(month.year, month.month - 1, 1).getDay(); + const today = new Date().getDate(); + + const recordDates = new Set(dailyRecords.map((r) => r.date.slice(8, 10))); + + const prevMonth = () => setMonth((m) => (m.month === 1 ? { year: m.year - 1, month: 12 } : { ...m, month: m.month - 1 })); + const nextMonth = () => setMonth((m) => (m.month === 12 ? { year: m.year + 1, month: 1 } : { ...m, month: m.month + 1 })); + + const weekdays = ["日", "一", "二", "三", "四", "五", "六"]; + + return ( +
+
+ +

穿搭日历

+
+
+ +
+
+ +

{month.year}年{month.month}月

+ +
+
+ {weekdays.map((d) => {d})} +
+
+ {Array.from({ length: firstDay }).map((_, i) =>
)} + {Array.from({ length: daysInMonth }).map((_, i) => { + const day = i + 1; + const isToday = day === today; + const hasRecord = recordDates.has(String(day).padStart(2, "0")); + return ( +
+ {day} + {hasRecord && !isToday && } +
+ ); + })} +
+
+ +

最近穿搭

+ {loading ? ( +
加载中...
+ ) : dailyRecords.length === 0 ? ( +
+

📅

+

暂无穿搭记录

+
+ ) : ( + dailyRecords.map((r) => ( +
+
+

{r.date.slice(8, 10)}

+ {r.date.slice(5, 7)}月 +
+
+

{r.notes || "今日穿搭"}

+ {r.weather_condition && {r.weather_condition} · {r.weather_temp}°C} +
+
+ )) + )} +
+ ); +} \ No newline at end of file diff --git a/src/pages/Closet.tsx b/src/pages/Closet.tsx new file mode 100644 index 0000000..a661840 --- /dev/null +++ b/src/pages/Closet.tsx @@ -0,0 +1,135 @@ +import { useEffect, useState } from "react"; +import { useNavigate } from "react-router-dom"; +import { listClothing } from "../api"; +import { useAppStore } from "../stores/app"; +import { CATEGORIES } from "../types"; + +export default function Closet() { + const navigate = useNavigate(); + const user = useAppStore((s) => s.user); + const clothing = useAppStore((s) => s.clothing); + const setClothing = useAppStore((s) => s.setClothing); + const [view, setView] = useState<"grid" | "list">("grid"); + const [category, setCategory] = useState("all"); + const [query, setQuery] = useState(""); + const [loading, setLoading] = useState(true); + + useEffect(() => { + if (!user) return; + (async () => { + try { + const items = await listClothing(user.id, category === "all" ? undefined : category); + setClothing(items); + } catch (e) { + console.error(e); + } finally { + setLoading(false); + } + })(); + }, [user, category]); + + if (!user) return null; + + const filtered = clothing.filter( + (c) => !query || c.name.toLowerCase().includes(query.toLowerCase()) || c.color.includes(query) + ); + + const catIcon = (key: string) => CATEGORIES.find((c) => c.key === key)?.icon ?? "👕"; + + return ( +
+
+

我的衣橱

+ +
+ +
+
+ 🔍 + setQuery(e.target.value)} + /> +
+
+ +
+ + {CATEGORIES.map((c) => ( + + ))} +
+ +
+ + +
+ + {loading ? ( +
+

加载中...

+
+ ) : filtered.length === 0 ? ( +
+

👕

+

衣橱还是空的

+

点击下方按钮添加第一件衣物

+ +
+ ) : view === "grid" ? ( +
+ {filtered.map((item) => ( + + ))} +
+ ) : ( +
+ {filtered.map((item) => ( + + ))} +
+ )} +
+ ); +} \ No newline at end of file diff --git a/src/pages/ClothingDetail.tsx b/src/pages/ClothingDetail.tsx new file mode 100644 index 0000000..5747388 --- /dev/null +++ b/src/pages/ClothingDetail.tsx @@ -0,0 +1,142 @@ +import { useEffect, useState } from "react"; +import { useParams, useNavigate } from "react-router-dom"; +import { getClothing, deleteClothing, recordDaily } from "../api"; +import { useAppStore } from "../stores/app"; +import { CATEGORIES } from "../types"; + +export default function ClothingDetail() { + const { id } = useParams<{ id: string }>(); + const navigate = useNavigate(); + const user = useAppStore((s) => s.user); + const [item, setItem] = useState(null); + const [showDelete, setShowDelete] = useState(false); + const [loading, setLoading] = useState(true); + + useEffect(() => { + if (!id) return; + (async () => { + try { + const data = await getClothing(id); + setItem(data); + } catch (e) { + console.error(e); + } finally { + setLoading(false); + } + })(); + }, [id]); + + if (loading) return
加载中...
; + if (!item || !user) return
衣物不存在
; + + const cat = CATEGORIES.find((c) => c.key === item.category); + const catLabel = cat ? `${cat.icon} ${cat.label}` : item.category; + + const handleRecord = async () => { + try { + const today = new Date().toISOString().slice(0, 10); + await recordDaily(user.id, today, item.id, `今日穿搭: ${item.name}`); + window.alert("已记录今日穿搭"); + } catch (e) { + console.error(e); + } + }; + + const handleDelete = async () => { + try { + await deleteClothing(item.id); + navigate("/closet", { replace: true }); + } catch (e) { + console.error(e); + } + }; + + return ( +
+
+ +
+ + +
+
+ +
+ {cat?.icon ?? "👕"} +
+ +

{item.name}

+
+ {catLabel} + {item.color} + {item.seasons.map((s: string) => {s})} + {item.occasions.map((o: string) => {o})} +
+ +
+ {[ + { num: item.wear_count, label: "本月穿着" }, + { num: item.wear_count * 6, label: "总穿着次数" }, + { num: daysSince(item.created_at), label: "拥有天数" }, + ].map((s, i) => ( +
+

{s.num}

+

{s.label}

+
+ ))} +
+ +
+

基本信息

+
+ {[ + ["品类", catLabel], + ["颜色", item.color], + ["品牌", item.brand || "—"], + ["材质", item.material || "—"], + ["购买日期", item.purchase_date || "—"], + ["购买价格", item.purchase_price ? `¥${item.purchase_price}` : "—"], + ].map(([k, v]) => ( +
+ {k} + {v} +
+ ))} +
+ 上次清洁 + {item.last_cleaned || "从未清洁"} +
+
+
+ + + + + {showDelete && ( +
+
+

确认删除?

+

删除后无法恢复

+
+ + +
+
+
+ )} +
+ ); +} + +function isLight(hex: string) { + const m = hex.replace("#", ""); + const r = parseInt(m.slice(0, 2), 16); + const g = parseInt(m.slice(2, 4), 16); + const b = parseInt(m.slice(4, 6), 16); + return (r * 299 + g * 587 + b * 114) / 1000 > 150; +} + +function daysSince(iso: string) { + const start = new Date(iso).getTime(); + return Math.max(1, Math.floor((Date.now() - start) / 86400000)); +} \ No newline at end of file diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx new file mode 100644 index 0000000..9281d9d --- /dev/null +++ b/src/pages/Home.tsx @@ -0,0 +1,135 @@ +import { useEffect, useState } from "react"; +import { useNavigate } from "react-router-dom"; +import { getStats, listClothing } from "../api"; +import { useAppStore } from "../stores/app"; +import { CATEGORIES } from "../types"; + +export default function Home() { + const navigate = useNavigate(); + const user = useAppStore((s) => s.user); + const setStats = useAppStore((s) => s.setStats); + const stats = useAppStore((s) => s.stats); + const clothing = useAppStore((s) => s.clothing); + const setClothing = useAppStore((s) => s.setClothing); + const [loading, setLoading] = useState(true); + + useEffect(() => { + if (!user) return; + (async () => { + try { + const [statsData, clothingData] = await Promise.all([getStats(user.id), listClothing(user.id)]); + setStats(statsData); + setClothing(clothingData); + } catch (e) { + console.error(e); + } finally { + setLoading(false); + } + })(); + }, [user]); + + if (!user) return null; + + const topUnworn = clothing.filter((c) => !c.last_worn || Date.now() - new Date(c.last_worn).getTime() > 30 * 86400000); + + return ( +
+
+
+

早上好 ☀️

+

今日穿搭

+
+ +
+ + {loading ? ( +
+

加载中...

+
+ ) : ( + <> +
+
+ 🌤️ +
+

24°C

+

多云 · 适合轻薄外套

+
+
+
+ 春 + 通勤 +
+
+ +
+

推荐搭配

+ +
+ +
+
+ {["👕", "👖", "🧥", "👟"].map((icon, i) => ( +
+ {icon} +
+ ))} +
+
+ 通勤 + ⭐ 4.8 +
+

简约通勤风

+
+ + +
+
+ +
+ {[ + { num: stats?.total_items ?? 0, label: "衣物总数" }, + { num: stats?.total_outfits ?? 0, label: "搭配收藏" }, + { num: `${stats?.utilization_rate ?? 0}%`, label: "利用率" }, + ].map((s, i) => ( +
+

{s.num}

+

{s.label}

+
+ ))} +
+ +
+ {CATEGORIES.map((cat) => ( + + ))} +
+ + {topUnworn.length > 0 && ( + <> +

需要关注

+ {topUnworn.slice(0, 2).map((item) => ( +
+ 🔔 +
+

{item.name}

+ 超过30天未穿 +
+
+ ))} + + )} + + )} +
+ ); +} \ No newline at end of file diff --git a/src/pages/Landing.tsx b/src/pages/Landing.tsx new file mode 100644 index 0000000..3e9e99c --- /dev/null +++ b/src/pages/Landing.tsx @@ -0,0 +1,218 @@ +import React, { useEffect, useState } from "react"; +import { useNavigate, Link } from "react-router-dom"; +import { useAppStore } from "../stores/app"; +import { APP_VERSION, BUILD_ID } from "../version"; +import { checkOtaUpdate, reloadApp } from "../api/ota"; + +// R2 公共桶中的 APK 产物 (由 android-build.yml 上传, 固定覆盖式) +const APK_URL = "https://pub-98ee77ce79984c2cad0dc1c300901158.r2.dev/data/android/wardrobe.apk"; + +const FEATURES = [ + { icon: "👕", title: "衣物管理", desc: "分类归档 · 标签 · 季节/场合维度, 一目了然" }, + { icon: "✨", title: "智能搭配", desc: "根据风格与场合自动搭配, 解锁穿衣灵感" }, + { icon: "📅", title: "穿搭日历", desc: "每天记录穿搭与天气, 生成自己的风格轨迹" }, + { icon: "📊", title: "数据分析", desc: "统计利用率与偏好, 帮你理性管理衣橱" }, + { icon: "🔒", title: "隐私本地", desc: "数据存储在本地 DuckDB, 不上传云端" }, + { icon: "🤖", title: "MCP 支持", desc: "支持 MCP 协议, 可被 AI 助手直接调用" }, +]; + +const STATS = [ + { num: "0.1.0", label: "当前版本" }, + { num: "100%", label: "本地离线" }, + { num: "Android", label: "移动端" }, +]; + +function DownloadSection() { + const [copied, setCopied] = useState(false); + const copy = async () => { + try { + await navigator.clipboard.writeText(APK_URL); + setCopied(true); + setTimeout(() => setCopied(false), 2000); + } catch { + setCopied(false); + } + }; + + return ( +
+

下载 Android 版

+

Wardrobe 是离线优先的本地应用, 数据都保存在你的设备上。

+
+ + ⬇️ 下载 APK + +

+ 版本 {APP_VERSION} · Android 8.0+ · 约 30 MB +

+
+

或复制下载链接(发给手机打开):

+
+ {APK_URL} + +
+
+

+ 安装提示: 首次安装需在系统设置中允许「安装未知来源应用」。 +

+
+
+ ); +} + +function WebUpdateBanner() { + const [update, setUpdate] = useState(false); + const [note, setNote] = useState(""); + + useEffect(() => { + checkOtaUpdate().then((r) => { + if (r.available && r.info) { + setUpdate(true); + setNote(r.info.notes || ""); + } + }); + }, []); + + if (!update) return null; + return ( +
+
+ 🆕 +
+

有新版本可用{note ? `: ${note}` : ""}

+

请刷新页面获取最新体验

+
+ +
+
+ ); +} + +export default function Landing() { + const navigate = useNavigate(); + const user = useAppStore((s) => s.user); + + return ( +
+
+ + 👗 + Wardrobe + + +
+ +
+
+

+ 你的智能衣橱 +
+ 随身穿搭管家 +

+

+ Wardrobe 是一款离线优先的衣物管理应用。记录每一件衣物, 智能生成搭配建议, + 用数据了解自己的穿搭风格。数据 100% 存在本地, 隐私无忧。 +

+
+ + ⬇️ 下载 Android APK + + +
+
+ +
+
+ {FEATURES.map((f) => ( +
+ {f.icon} +

{f.title}

+

{f.desc}

+
+ ))} +
+
+ +
+
+ {STATS.map((s) => ( +
+

{s.num}

+

{s.label}

+
+ ))} +
+
+ + + +
+

技术栈

+

跨平台桌面 + 移动端, AI 就绪。

+
+ {["Tauri 2", "React 18 + TypeScript", "DuckDB (本地数据)", "Rust", "MCP Protocol"].map((t) => ( + + {t} + + ))} +
+
+
+ +
+

Wardrobe · 构建 {BUILD_ID} · 数据保存在本地设备, 我们看不到你的衣橱

+
+ + +
+ ); +} + +const styles: Record = { + header: { + display: "flex", + alignItems: "center", + justifyContent: "space-between", + maxWidth: 960, + margin: "0 auto", + padding: "16px 20px", + }, + logo: { display: "flex", alignItems: "center", gap: 8, textDecoration: "none", color: "var(--text-primary)" }, + logoEmoji: { fontSize: 24 }, + container: { maxWidth: 960, margin: "0 auto", padding: "0 20px 60px" }, + hero: { textAlign: "center", padding: "64px 0 48px" }, + heroTitle: { fontSize: 40, fontWeight: 800, lineHeight: 1.3, letterSpacing: -0.5 }, + heroSub: { fontSize: 16, color: "var(--text-secondary)", lineHeight: 1.8, maxWidth: 560, margin: "18px auto 0" }, + heroBtn: { padding: "12px 24px", fontSize: 15 }, + section: { padding: "40px 0 12px" }, + sectionTitle: { fontSize: 24, fontWeight: 700, textAlign: "center" }, + sectionSub: { fontSize: 14, color: "var(--text-secondary)", textAlign: "center", margin: "8px 0 22px" }, + featureCard: { background: "var(--bg-card)", border: "1px solid var(--border)", borderRadius: "var(--radius)", padding: 22, textAlign: "left" }, + statCard: { background: "var(--bg-warm)", borderRadius: "var(--radius)", padding: "20px 12px" }, + downloadCard: { + textAlign: "center", + background: "var(--bg-card)", + border: "1px solid var(--border)", + borderRadius: "var(--radius)", + padding: "32px 20px", + maxWidth: 480, + margin: "0 auto", + }, + downloadBtn: { padding: "14px 32px", fontSize: 16 }, + linkRow: { display: "flex", alignItems: "center", gap: 8, justifyContent: "center", flexWrap: "wrap" }, + linkCode: { fontSize: 11, color: "var(--text-secondary)", wordBreak: "break-all" }, + techRow: { display: "flex", gap: 10, justifyContent: "center", flexWrap: "wrap" }, + footer: { textAlign: "center", padding: "24px 16px", fontSize: 12, color: "var(--text-tertiary)" }, +}; \ No newline at end of file diff --git a/src/pages/Login.tsx b/src/pages/Login.tsx new file mode 100644 index 0000000..b678a2d --- /dev/null +++ b/src/pages/Login.tsx @@ -0,0 +1,106 @@ +import { useState } from "react"; +import { useNavigate } from "react-router-dom"; +import { sendCode, register, login } from "../api"; +import { useAppStore } from "../stores/app"; +import { useAuthStore } from "../stores/auth"; + +export default function Login() { + const navigate = useNavigate(); + const { account, code, nickname, isRegister, loading, setAccount, setCode, setNickname, setMode, setLoading } = useAuthStore(); + const setUser = useAppStore((s) => s.setUser); + const [status, setStatus] = useState(""); + + const isEmail = account.includes("@"); + const canSendCode = account.length >= 6; + + const handleSendCode = async () => { + setLoading(true); + setStatus(""); + try { + const result = await sendCode(account); + setStatus(result); + } catch (e) { + setStatus(String(e)); + } finally { + setLoading(false); + } + }; + + const handleSubmit = async () => { + setLoading(true); + setStatus(""); + try { + const email = isEmail ? account : null; + const phone = isEmail ? null : account; + const result = isRegister + ? await register(email, phone, code, nickname || "时尚达人") + : await login(email, phone, code); + + if (result.success && result.user) { + setUser(result.user, result.token); + navigate("/home", { replace: true }); + } else { + setStatus(result.message); + } + } catch (e) { + setStatus(String(e)); + } finally { + setLoading(false); + } + }; + + return ( +
+
+
👕
+

Wardrobe

+

你的 AI 穿搭私人管家

+
+ +
+
+ + +
+ +
+ + setAccount(e.target.value.trim())} /> +
+ + {isRegister && ( +
+ + setNickname(e.target.value)} /> +
+ )} + +
+ +
+ setCode(e.target.value)} /> + +
+
+ + {status &&

{status}

} + + +
+
+ ); +} \ No newline at end of file diff --git a/src/pages/Outfits.tsx b/src/pages/Outfits.tsx new file mode 100644 index 0000000..ab5c108 --- /dev/null +++ b/src/pages/Outfits.tsx @@ -0,0 +1,107 @@ +import { useEffect, useState } from "react"; +import { listOutfits } from "../api"; +import { useAppStore } from "../stores/app"; + +const SAMPLE_OUTFITS = [ + { name: "通勤首选", score: 92, tag: "通勤", items: ["👕", "👖", "🧥", "👟"], labels: ["白衬衫", "卡其裤", "风衣", "小白鞋"] }, + { name: "周末休闲", score: 87, tag: "休闲", items: ["👔", "👖", "👟"], labels: ["条纹T恤", "牛仔裤", "运动鞋"] }, + { name: "约会穿搭", score: 85, tag: "约会", items: ["👗", "👜", "👠"], labels: ["碎花裙", "手提包", "单鞋"] }, +]; + +export default function Outfits() { + const user = useAppStore((s) => s.user); + const outfits = useAppStore((s) => s.outfits); + const setOutfits = useAppStore((s) => s.setOutfits); + const [occasion, setOccasion] = useState("通勤"); + const [loading, setLoading] = useState(true); + + const occasions = ["通勤", "休闲", "约会", "运动"]; + + useEffect(() => { + if (!user) return; + (async () => { + try { + const data = await listOutfits(user.id); + setOutfits(data); + } catch (e) { + console.error(e); + } finally { + setLoading(false); + } + })(); + }, [user]); + + const matches = SAMPLE_OUTFITS.filter((o) => o.tag === occasion); + + return ( +
+
+

搭配推荐

+
+ +
+
+ {occasions.map((o) => ( + + ))} +
+
+ + {loading ? ( +
加载中...
+ ) : ( +
+ {matches.map((outfit, i) => ( +
+
+ {outfit.name} + 匹配度 {outfit.score}% +
+
+ {outfit.items.map((icon, j) => ( +
+ {icon} + {outfit.labels[j]} +
+ ))} +
+
+

🤖 AI 解析

+

+ 这套搭配适配{outfit.tag}场合,色彩和谐,符合春季气候。 + {outfit.items.length >= 4 ? "风衣可应对早晚温差。" : "整体舒适耐看。"} +

+
+
+ + +
+
+ ))} + + {outfits.length > 0 && ( + <> +

我的搭配库

+ {outfits.map((o) => ( +
+
+

{o.name}

+ {o.occasion || "通用"}{o.match_score ? ` · 匹配度 ${o.match_score}%` : ""} +
+ +
+ ))} + + )} +
+ )} +
+ ); +} \ No newline at end of file diff --git a/src/pages/Profile.tsx b/src/pages/Profile.tsx new file mode 100644 index 0000000..a77ca3b --- /dev/null +++ b/src/pages/Profile.tsx @@ -0,0 +1,229 @@ +import { useEffect, useState } from "react"; +import { useNavigate } from "react-router-dom"; +import { useAppStore } from "../stores/app"; +import { applyOtaUpdate, checkOtaUpdate, getCurrentVersionInfo, getOtaVersionInfo, reloadApp, rollbackOta } from "../api/ota"; + +type OtaState = "idle" | "checking" | "available" | "none" | "downloading" | "ready" | "error"; + +const isTauri = typeof window !== "undefined" && "__TAURI_INTERNALS__" in window; + +function OtaSection() { + const [state, setState] = useState("idle"); + const [info, setInfo] = useState<{ version?: string; notes?: string; sequence?: number; bundle_size?: number } | null>(null); + const [active, setActive] = useState<{ version?: string } | null>(null); + const [progress, setProgress] = useState({ received: 0, total: 0 }); + const [error, setError] = useState(""); + + useEffect(() => { + let cancelled = false; + getOtaVersionInfo().then((v) => { + if (!cancelled && v) setActive(v as { version?: string }); + }); + return () => { + cancelled = true; + }; + }, []); + + const cur = getCurrentVersionInfo(); + const statusText: Record = { + idle: "点击检查是否有新版本", + checking: "检查中...", + available: "", + none: "已是最新版本", + downloading: "下载中, 请稍候", + ready: "已下载, 即将重启", + error: "操作失败", + }; + + const onCheck = async () => { + setError(""); + setState("checking"); + try { + const r = await checkOtaUpdate(); + if (r.available && r.info) { + setInfo(r.info); + setState("available"); + } else { + setInfo(null); + setState("none"); + } + } catch (e) { + setError(e instanceof Error ? e.message : String(e)); + setState("error"); + } + }; + + const onApply = async () => { + setError(""); + setState("downloading"); + setProgress({ received: 0, total: 0 }); + try { + await applyOtaUpdate((received, total) => setProgress({ received, total })); + setState("ready"); + setTimeout(reloadApp, 1000); + } catch (e) { + setError(e instanceof Error ? e.message : String(e)); + setState("error"); + } + }; + + const onRollback = async () => { + if (!window.confirm("确认回滚到内置版本?")) return; + try { + await rollbackOta(); + setTimeout(reloadApp, 800); + } catch (e) { + setError(e instanceof Error ? e.message : String(e)); + } + }; + + const downloading = state === "downloading"; + const pct = downloading && progress.total > 0 ? Math.min(100, Math.round((progress.received / progress.total) * 100)) : 0; + + return ( +
+
+ 检查更新 (OTA) + v{cur.version} · {cur.build} +
+ + {active?.version && ( +

+ 当前生效: v{active.version} (OTA 覆盖) +

+ )} + + {state === "available" && info && ( +
+

+ 发现新版本 v{info.version} + {info.bundle_size ? ` (${(info.bundle_size / 1024).toFixed(0)} KB)` : ""} +

+ {info.notes &&

发布说明: {info.notes}

} +
+ )} + + {downloading && ( +
+
+
+
+

+ {progress.total ? `${(progress.received / 1024).toFixed(0)} / ${(progress.total / 1024).toFixed(0)} KB (${pct}%)` : "连接中..."} +

+
+ )} + + {(state === "none" || state === "idle") && ( +

{statusText[state]}

+ )} + {state === "error" && error && ( +

{error}

+ )} + +
+ + {state === "available" && ( + + )} + {isTauri && active?.version && ( + + )} +
+
+ ); +} + +export default function Profile() { + const navigate = useNavigate(); + const user = useAppStore((s) => s.user); + const stats = useAppStore((s) => s.stats); + const logout = useAppStore((s) => s.logout); + + const handleLogout = () => { + logout(); + localStorage.removeItem("wardrobe_user"); + navigate("/login", { replace: true }); + }; + + if (!user) return null; + + const menuItems = [ + { icon: "📅", label: "穿搭日历", onClick: () => navigate("/calendar") }, + { icon: "❤️", label: "我的收藏" }, + { icon: "🧺", label: "清洁管理" }, + { icon: "📊", label: "风格统计" }, + { icon: "☁️", label: "云端同步" }, + { icon: "📤", label: "导出数据" }, + { icon: "⚙️", label: "设置" }, + { icon: "❓", label: "帮助与反馈" }, + ]; + + return ( +
+
+

我的

+
+ +
+
+ 👤 +
+

{user.nickname}

+

+ {user.email || user.phone} +

+
+ +
+ {[ + { num: stats?.total_items ?? 0, label: "衣物" }, + { num: stats?.total_outfits ?? 0, label: "搭配" }, + { num: `${stats?.utilization_rate ?? 0}%`, label: "利用率" }, + { num: "28", label: "连续天" }, + ].map((s, i) => ( +
+

{s.num}

+

{s.label}

+
+ ))} +
+ + + +
+ {menuItems.map((m, i) => ( + + ))} +
+ + +
+
+ ); +} \ No newline at end of file diff --git a/src/stores/app.ts b/src/stores/app.ts new file mode 100644 index 0000000..1182696 --- /dev/null +++ b/src/stores/app.ts @@ -0,0 +1,35 @@ +import { create } from "zustand"; +import type { User, ClothingItem, Outfit } from "../types"; +import type { DailyRecord, WardrobeStats } from "../api"; + +interface AppState { + user: User | null; + token: string | null; + clothing: ClothingItem[]; + outfits: Outfit[]; + dailyRecords: DailyRecord[]; + stats: WardrobeStats | null; + setUser: (user: User | null, token?: string | null) => void; + setClothing: (items: ClothingItem[]) => void; + addClothingItem: (item: ClothingItem) => void; + setOutfits: (outfits: Outfit[]) => void; + setDailyRecords: (records: DailyRecord[]) => void; + setStats: (stats: WardrobeStats) => void; + logout: () => void; +} + +export const useAppStore = create((set) => ({ + user: null, + token: null, + clothing: [], + outfits: [], + dailyRecords: [], + stats: null, + setUser: (user, token = null) => set({ user, token }), + setClothing: (clothing) => set({ clothing }), + addClothingItem: (item) => set((s) => ({ clothing: [item, ...s.clothing] })), + setOutfits: (outfits) => set({ outfits }), + setDailyRecords: (dailyRecords) => set({ dailyRecords }), + setStats: (stats) => set({ stats }), + logout: () => set({ user: null, token: null, clothing: [], outfits: [], dailyRecords: [], stats: null }), +})); \ No newline at end of file diff --git a/src/stores/auth.ts b/src/stores/auth.ts new file mode 100644 index 0000000..51248ff --- /dev/null +++ b/src/stores/auth.ts @@ -0,0 +1,29 @@ +import { create } from "zustand"; + +interface AuthState { + account: string; + isEmail: boolean; + code: string; + nickname: string; + isRegister: boolean; + loading: boolean; + setAccount: (v: string) => void; + setCode: (v: string) => void; + setNickname: (v: string) => void; + setMode: (m: "login" | "register") => void; + setLoading: (b: boolean) => void; +} + +export const useAuthStore = create((set) => ({ + account: "", + isEmail: true, + code: "", + nickname: "", + isRegister: false, + loading: false, + setAccount: (account) => set({ account, isEmail: account.includes("@") }), + setCode: (code) => set({ code }), + setNickname: (nickname) => set({ nickname }), + setMode: (m) => set({ isRegister: m === "register" }), + setLoading: (loading) => set({ loading }), +})); \ No newline at end of file diff --git a/src/styles/global.css b/src/styles/global.css new file mode 100644 index 0000000..dfdf330 --- /dev/null +++ b/src/styles/global.css @@ -0,0 +1,273 @@ +:root { + --bg: #FCF9F4; + --bg-card: #FFFFFF; + --bg-warm: #F5EDE6; + --text-primary: #1A1A1A; + --text-secondary: #666666; + --text-tertiary: #999999; + --accent: #E8C4A0; + --accent-light: #FFF6ED; + --accent-peach: #FFE8E0; + --border: #F0E8DF; + --danger: #E74C3C; + --success: #27AE60; + --radius: 16px; + --radius-sm: 10px; + --radius-xs: 6px; + --nav-height: 68px; +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +html, +body, +#root { + height: 100%; +} + +body { + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', + 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; + background: var(--bg); + color: var(--text-primary); + -webkit-font-smoothing: antialiased; + user-select: none; +} + +button { + font-family: inherit; + cursor: pointer; + border: none; +} + +input, +select, +textarea { + font-family: inherit; +} + +::-webkit-scrollbar { + width: 0; + height: 0; +} + +.app-shell { + display: flex; + flex-direction: column; + height: 100%; + max-width: 500px; + margin: 0 auto; +} + +.app-content { + flex: 1; + overflow-y: auto; + padding: 8px 20px 20px; +} + +.page-header { + display: flex; + align-items: center; + justify-content: space-between; + padding: 12px 0 16px; + position: sticky; + top: 0; + background: var(--bg); + z-index: 10; +} + +.page-title { + font-size: 26px; + font-weight: 700; +} + +/* Bottom Nav */ +.bottom-nav { + display: flex; + height: var(--nav-height); + background: var(--bg-card); + border-top: 1px solid var(--border); + padding: 6px 8px; + padding-bottom: calc(6px + env(safe-area-inset-bottom)); +} + +.nav-item { + flex: 1; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + gap: 2px; + background: none; + color: var(--text-tertiary); + font-size: 11px; + transition: color 0.2s; +} + +.nav-item.active { + color: var(--text-primary); + font-weight: 600; +} + +.nav-item .nav-icon { + font-size: 20px; +} + +.center-nav-btn { + position: relative; + top: -14px; +} + +.center-nav-btn .fab-circle { + width: 52px; + height: 52px; + border-radius: 50%; + background: var(--text-primary); + display: flex; + align-items: center; + justify-content: center; + font-size: 26px; + color: #fff; + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); +} + +/* Buttons */ +.btn { + padding: 12px 20px; + border-radius: var(--radius-sm); + font-size: 15px; + font-weight: 600; + transition: opacity 0.15s, transform 0.15s; +} + +.btn:active { + opacity: 0.85; + transform: scale(0.98); +} + +.btn-primary { + background: var(--text-primary); + color: #fff; + width: 100%; +} + +.btn-secondary { + background: var(--bg-warm); + color: var(--text-primary); + width: 100%; +} + +.btn-outline { + background: transparent; + border: 1px solid var(--border); + color: var(--text-secondary); + width: 100%; +} + +.btn-danger { + background: var(--danger); + color: #fff; +} + +/* Cards */ +.card { + background: var(--bg-card); + border-radius: var(--radius); + box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04); + padding: 16px; +} + +/* Forms */ +.input-group { + margin-bottom: 16px; +} + +.input-group label { + display: block; + font-size: 13px; + font-weight: 500; + color: var(--text-secondary); + margin-bottom: 6px; +} + +.input { + width: 100%; + padding: 13px 14px; + border-radius: var(--radius-sm); + border: 1px solid var(--border); + background: var(--bg-card); + font-size: 15px; + outline: none; + transition: border-color 0.2s; +} + +.input:focus { + border-color: var(--accent); +} + +.code-row { + display: flex; + gap: 10px; +} + +.code-row .input { + flex: 1; +} + +.code-btn { + padding: 13px 18px; + background: var(--accent-light); + color: #B8734A; + border-radius: var(--radius-sm); + font-size: 14px; + font-weight: 500; + white-space: nowrap; +} + +.code-btn:disabled { + opacity: 0.5; +} + +/* Tag Pills */ +.tag-pill { + display: inline-block; + padding: 5px 14px; + border-radius: 20px; + background: var(--bg-card); + border: 1px solid var(--border); + font-size: 13px; + font-weight: 500; + color: var(--text-secondary); + cursor: pointer; + transition: all 0.2s; +} + +.tag-pill-active { + background: var(--text-primary); + border-color: var(--text-primary); + color: #fff; +} + +/* Toast */ +.toast { + position: fixed; + top: 60px; + left: 50%; + transform: translateX(-50%); + background: rgba(0, 0, 0, 0.8); + color: #fff; + padding: 10px 24px; + border-radius: 20px; + font-size: 14px; + z-index: 1000; + animation: toast-in 0.3s; +} + +@keyframes toast-in { + from { opacity: 0; transform: translateX(-50%) translateY(-8px); } + to { opacity: 1; transform: translateX(-50%) translateY(0); } +} \ No newline at end of file diff --git a/src/types/index.ts b/src/types/index.ts new file mode 100644 index 0000000..510081f --- /dev/null +++ b/src/types/index.ts @@ -0,0 +1,57 @@ +export interface ClothingItem { + id: string; + user_id: string; + name: string; + category: string; + color: string; + brand?: string; + material?: string; + seasons: string[]; + occasions: string[]; + formality: number; + thickness: number; + image_path?: string; + purchase_date?: string; + purchase_price?: number; + last_cleaned?: string; + clean_method?: string; + wear_count: number; + last_worn?: string; + is_favorite: boolean; + created_at: string; + updated_at: string; +} + +export interface Outfit { + id: string; + user_id: string; + name: string; + item_ids: string[]; + occasion?: string; + season?: string; + match_score?: number; + ai_analysis?: string; + is_saved: boolean; + created_at: string; +} + +export interface User { + id: string; + email?: string; + phone?: string; + nickname: string; + avatar_path?: string; + created_at: string; +} + +export const CATEGORIES = [ + { key: "top", label: "上衣", icon: "👕" }, + { key: "bottom", label: "下装", icon: "👖" }, + { key: "outer", label: "外套", icon: "🧥" }, + { key: "dress", label: "连衣裙", icon: "👗" }, + { key: "shoes", label: "鞋履", icon: "👟" }, + { key: "accessory", label: "配饰", icon: "👜" }, +] as const; + +export const SEASONS = ["春", "夏", "秋", "冬"] as const; +export const OCCASIONS = ["通勤", "休闲", "运动", "约会", "正式"] as const; \ No newline at end of file diff --git a/src/version.ts b/src/version.ts new file mode 100644 index 0000000..bd1fdb8 --- /dev/null +++ b/src/version.ts @@ -0,0 +1,9 @@ +// 应用版本信息唯一汇聚点 +// - APP_VERSION: 唯一手动管理点 = package.json 的 version 字段 (发版时改那里) +// - BUILD_ID: 每次编译自动生成 (vite.config.ts define 注入 __BUILD_ID__), 无需手动维护 +export const APP_VERSION = typeof __APP_VERSION__ !== "undefined" ? __APP_VERSION__ : "0.0.0"; +// __BUILD_ID__ 机制: +// - build 时: vite:define 编译期替换为字符串字面量 +// - dev 时: vite 通过 /@vite/env 把值挂到 globalThis, 源码保持原样; +// typeof 防御避免 /@vite/env 未执行时 ReferenceError, 回退 'dev' +export const BUILD_ID = typeof __BUILD_ID__ !== "undefined" ? __BUILD_ID__ : "dev"; \ No newline at end of file diff --git a/src/vite-env.d.ts b/src/vite-env.d.ts new file mode 100644 index 0000000..0ad6510 --- /dev/null +++ b/src/vite-env.d.ts @@ -0,0 +1,11 @@ +/// + +export {} + +declare global { + // vite.config.ts 里 define 注入的编译期常量 + // - __BUILD_ID__: 每次构建自动生成 (YYYYMMDD.HHmmss), OTA/web 升级比对用 + // - __APP_VERSION__: 从 package.json 读取注入 + const __BUILD_ID__: string + const __APP_VERSION__: string +} \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..10ff12a --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "target": "ES2020", + "useDefineForClassFields": true, + "lib": ["ES2020", "DOM", "DOM.Iterable"], + "module": "ESNext", + "skipLibCheck": true, + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "resolveJsonModule": true, + "isolatedModules": true, + "noEmit": true, + "jsx": "react-jsx", + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noFallthroughCasesInSwitch": true + }, + "include": ["src"] +} \ No newline at end of file diff --git a/vite.config.ts b/vite.config.ts new file mode 100644 index 0000000..3ddbe86 --- /dev/null +++ b/vite.config.ts @@ -0,0 +1,39 @@ +import { defineConfig } from "vite"; +import react from "@vitejs/plugin-react"; +import { readFileSync } from "node:fs"; + +const host = process.env.TAURI_DEV_HOST; + +function buildId() { + // YYYYMMDD.HHmmss: 每次构建生成新的 BUILD_ID, 用于 OTA/web 升级比对 + const d = new Date(); + const pad = (n: number) => String(n).padStart(2, "0"); + return ( + [d.getFullYear(), pad(d.getMonth() + 1), pad(d.getDate())].join("") + + "." + + [pad(d.getHours()), pad(d.getMinutes()), pad(d.getSeconds())].join("") + ); +} + +export default defineConfig(async () => { + const pkg = JSON.parse(readFileSync(new URL("./package.json", import.meta.url), "utf8")); + + return { + plugins: [react()], + clearScreen: false, + server: { + port: 1420, + strictPort: true, + host: host || false, + hmr: host ? { protocol: "ws", host, port: 1421 } : undefined, + watch: { + ignored: ["**/src-tauri/**"], + }, + }, + // 编译期常量: 版本 + 构建号, 供 src/version.ts 使用 + define: { + __BUILD_ID__: JSON.stringify(buildId()), + __APP_VERSION__: JSON.stringify(pkg.version || "0.0.0"), + }, + }; +}); \ No newline at end of file