diff --git a/.github/workflows/executable-tutorial.yml b/.github/workflows/executable-tutorial.yml new file mode 100644 index 0000000..a96917c --- /dev/null +++ b/.github/workflows/executable-tutorial.yml @@ -0,0 +1,151 @@ +name: Executable Tutorial CI/CD + +on: + push: + branches: [ main, develop ] + paths: + - 'apps/desktop/**' + - 'packages/**' + - '.github/workflows/executable-tutorial.yml' + pull_request: + branches: [ main, develop ] + paths: + - 'apps/desktop/**' + - 'packages/**' + workflow_dispatch: + inputs: + task: + description: 'Task to execute' + required: true + default: 'build' + type: choice + options: + - build + - test + - lint + - release + +env: + CARGO_TERM_COLOR: always + NODE_VERSION: '20' + +jobs: + # 代码检查和测试 + check: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + + steps: + - uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: ${{ env.NODE_VERSION }} + cache: 'npm' + + - name: Setup Rust + uses: dtolnay/rust-action@stable + + - name: Install dependencies + run: | + npm ci + cd apps/desktop && npm ci + + - name: Run linter + run: | + cd apps/desktop + npm run lint + continue-on-error: true + + - name: Run tests + run: | + cd apps/desktop + npm run test + continue-on-error: true + + # 构建桌面应用 + build: + needs: check + runs-on: ${{ matrix.os }} + strategy: + matrix: + include: + - os: macos-latest + target: aarch64-apple-darwin + args: '--target aarch64-apple-darwin' + - os: macos-latest + target: x86_64-apple-darwin + args: '--target x86_64-apple-darwin' + - os: windows-latest + target: x86_64-pc-windows-msvc + args: '' + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + args: '' + + steps: + - uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: ${{ env.NODE_VERSION }} + cache: 'npm' + + - name: Setup Rust + uses: dtolnay/rust-action@stable + with: + targets: ${{ matrix.target }} + + - name: Install Linux dependencies + if: matrix.os == 'ubuntu-latest' + run: | + sudo apt-get update + sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf + + - name: Install dependencies + run: | + npm ci + cd apps/desktop && npm ci + + - name: Build Tauri app + run: | + cd apps/desktop/src-tauri + cargo build --release ${{ matrix.args }} + + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: executable-tutorial-${{ matrix.target }} + path: | + apps/desktop/src-tauri/target/release/bundle/**/*.dmg + apps/desktop/src-tauri/target/release/bundle/**/*.app + apps/desktop/src-tauri/target/release/bundle/**/*.exe + apps/desktop/src-tauri/target/release/bundle/**/*.msi + apps/desktop/src-tauri/target/release/bundle/**/*.deb + apps/desktop/src-tauri/target/release/bundle/**/*.AppImage + + # 发布版本 + release: + needs: build + runs-on: ubuntu-latest + if: github.ref == 'refs/heads/main' && github.event_name == 'push' + + steps: + - uses: actions/checkout@v4 + + - name: Download all artifacts + uses: actions/download-artifact@v4 + with: + path: artifacts + + - name: Create Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: artifacts/**/* + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/local-workflow.yml b/.github/workflows/local-workflow.yml new file mode 100644 index 0000000..8309ac2 --- /dev/null +++ b/.github/workflows/local-workflow.yml @@ -0,0 +1,105 @@ +name: Local Workflow Trigger + +on: + workflow_dispatch: + inputs: + task_file: + description: 'Task file path (relative to repo root)' + required: true + type: string + action: + description: 'Action to perform' + required: true + default: 'start' + type: choice + options: + - start + - complete + - pause + - resume + +env: + WORKFLOW_STATE_FILE: '.local-workflow.state.json' + +jobs: + manage-task: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Setup workflow state + run: | + if [ ! -f ${{ env.WORKFLOW_STATE_FILE }} ]; then + echo '{"tasks": []}' > ${{ env.WORKFLOW_STATE_FILE }} + fi + + - name: Update task status + run: | + TASK_FILE="${{ github.event.inputs.task_file }}" + ACTION="${{ github.event.inputs.action }}" + TIMESTAMP=$(date -u +"%Y-%m-%dT%H:%M:%SZ") + + echo "Managing task: $TASK_FILE" + echo "Action: $ACTION" + echo "Timestamp: $TIMESTAMP" + + # Update workflow state (in real scenario, this would commit back to repo) + cat > ${{ env.WORKFLOW_STATE_FILE }} << EOF + { + "current_task": "$TASK_FILE", + "action": "$ACTION", + "timestamp": "$TIMESTAMP", + "actor": "${{ github.actor }}" + } + EOF + + cat ${{ env.WORKFLOW_STATE_FILE }} + + - name: Create task tracking file + if: github.event.inputs.action == 'start' + run: | + TASK_FILE="${{ github.event.inputs.task_file }}" + TASK_DIR=$(dirname "$TASK_FILE") + TASK_NAME=$(basename "$TASK_FILE" .md) + TRACING_DIR="tasks/tracing" + + mkdir -p "$TRACING_DIR" + + TRACING_FILE="$TRACING_DIR/$(echo $TASK_NAME | sed 's/[^a-zA-Z0-9]/-/g').md" + + cat > "$TRACING_FILE" << EOF + # Task Tracing: $TASK_NAME + + ## Metadata + - **Source**: $TASK_FILE + - **Started**: $(date -u +"%Y-%m-%dT%H:%M:%SZ") + - **Status**: In Progress + - **Actor**: ${{ github.actor }} + + ## Progress Log + + ### $(date -u +"%Y-%m-%d %H:%M:%S") - Task Started + - Action: ${{ github.event.inputs.action }} + + ## Notes + + + + EOF + + echo "Created tracing file: $TRACING_FILE" + + - name: Commit workflow state + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + git add ${{ env.WORKFLOW_STATE_FILE }} + git add tasks/tracing/ || true + git diff --staged --quiet || git commit -m "Update workflow state: ${{ github.event.inputs.action }} ${{ github.event.inputs.task_file }}" + + - name: Push changes + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: ${{ github.ref }} diff --git a/.local-workflow.state.json b/.local-workflow.state.json index 5e1f782..73a726f 100644 --- a/.local-workflow.state.json +++ b/.local-workflow.state.json @@ -1,8 +1,9 @@ { - "task_file": "tasks/features/F1.3-app-layout-navigation.md", - "task_id": "local-20260407-718bcac3", - "title": "F1.3 \u5e94\u7528\u5e03\u5c40\u4e0e\u5bfc\u822a", - "started_at": "2026-04-07 04:37:04", - "status": "in_progress", - "tracing_file": "tasks/tracing/F1.3-app-layout-navigation.md" -} \ No newline at end of file + "task_file": "tasks/mindstorm/executable-tutorial.md", + "task_id": "local-20260408-08025e73", + "title": "executable-tutorial", + "started_at": "2026-04-08 15:35:00", + "status": "completed", + "completed_at": "2026-04-08 16:20:00", + "tracing_file": "tasks/tracing/executable-tutorial.md" +} diff --git a/.local-workflow.state.json.tmp b/.local-workflow.state.json.tmp new file mode 100644 index 0000000..e69de29 diff --git a/apps/desktop/.gitignore b/apps/desktop/.gitignore new file mode 100644 index 0000000..a547bf3 --- /dev/null +++ b/apps/desktop/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/apps/desktop/README.md b/apps/desktop/README.md new file mode 100644 index 0000000..102e366 --- /dev/null +++ b/apps/desktop/README.md @@ -0,0 +1,7 @@ +# Tauri + React + Typescript + +This template should help get you started developing with Tauri, React and Typescript in Vite. + +## Recommended IDE Setup + +- [VS Code](https://code.visualstudio.com/) + [Tauri](https://marketplace.visualstudio.com/items?itemName=tauri-apps.tauri-vscode) + [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer) diff --git a/apps/desktop/index.html b/apps/desktop/index.html new file mode 100644 index 0000000..f13660a --- /dev/null +++ b/apps/desktop/index.html @@ -0,0 +1,13 @@ + + + + + + + Executable Tutorial + + +
+ + + diff --git a/apps/desktop/package.json b/apps/desktop/package.json new file mode 100644 index 0000000..02bcb8e --- /dev/null +++ b/apps/desktop/package.json @@ -0,0 +1,31 @@ +{ + "name": "desktop", + "private": true, + "version": "0.1.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "tsc && vite build", + "preview": "vite preview", + "tauri": "tauri" + }, + "dependencies": { + "@tauri-apps/api": "^2.10.1", + "@tauri-apps/plugin-opener": "^2", + "lucide-react": "^1.7.0", + "react": "^19.1.0", + "react-dom": "^19.1.0", + "zustand": "^5.0.12" + }, + "devDependencies": { + "@tauri-apps/cli": "^2", + "@types/react": "^19.1.8", + "@types/react-dom": "^19.1.6", + "@vitejs/plugin-react": "^4.6.0", + "autoprefixer": "^10.4.27", + "postcss": "^8.5.9", + "tailwindcss": "^3.4.19", + "typescript": "~5.8.3", + "vite": "^7.0.4" + } +} diff --git a/apps/desktop/postcss.config.js b/apps/desktop/postcss.config.js new file mode 100644 index 0000000..2e7af2b --- /dev/null +++ b/apps/desktop/postcss.config.js @@ -0,0 +1,6 @@ +export default { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +} diff --git a/apps/desktop/public/tauri.svg b/apps/desktop/public/tauri.svg new file mode 100644 index 0000000..31b62c9 --- /dev/null +++ b/apps/desktop/public/tauri.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/apps/desktop/public/vite.svg b/apps/desktop/public/vite.svg new file mode 100644 index 0000000..e7b8dfb --- /dev/null +++ b/apps/desktop/public/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/desktop/src-tauri/.gitignore b/apps/desktop/src-tauri/.gitignore new file mode 100644 index 0000000..b21bd68 --- /dev/null +++ b/apps/desktop/src-tauri/.gitignore @@ -0,0 +1,7 @@ +# Generated by Cargo +# will have compiled files and executables +/target/ + +# Generated by Tauri +# will have schema files for capabilities auto-completion +/gen/schemas diff --git a/apps/desktop/src-tauri/Cargo.lock b/apps/desktop/src-tauri/Cargo.lock new file mode 100644 index 0000000..ef51383 --- /dev/null +++ b/apps/desktop/src-tauri/Cargo.lock @@ -0,0 +1,5463 @@ +# 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 = "aho-corasick" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301" +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.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94fb8275041c72129eb51b7d0322c29b8387a0386127718b096429201a5d6ece" +dependencies = [ + "alloc-no-stdlib", +] + +[[package]] +name = "android_system_properties" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" +dependencies = [ + "libc", +] + +[[package]] +name = "anyhow" +version = "1.0.102" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c" + +[[package]] +name = "async-broadcast" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "435a87a52755b8f27fcf321ac4f04b2802e337c8c4872923137471ec39c37532" +dependencies = [ + "event-listener", + "event-listener-strategy", + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "async-channel" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "924ed96dd52d1b75e9c1a3e6275715fd320f5f9439fb5a4a11fa51f4221158d2" +dependencies = [ + "concurrent-queue", + "event-listener-strategy", + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "async-executor" +version = "1.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c96bf972d85afc50bf5ab8fe2d54d1586b4e0b46c97c50a0c9e71e2f7bcd812a" +dependencies = [ + "async-task", + "concurrent-queue", + "fastrand", + "futures-lite", + "pin-project-lite", + "slab", +] + +[[package]] +name = "async-io" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "456b8a8feb6f42d237746d4b3e9a178494627745c3c56c6ea55d92ba50d026fc" +dependencies = [ + "autocfg", + "cfg-if", + "concurrent-queue", + "futures-io", + "futures-lite", + "parking", + "polling", + "rustix", + "slab", + "windows-sys 0.61.2", +] + +[[package]] +name = "async-lock" +version = "3.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "290f7f2596bd5b78a9fec8088ccd89180d7f9f55b94b0576823bbbdc72ee8311" +dependencies = [ + "event-listener", + "event-listener-strategy", + "pin-project-lite", +] + +[[package]] +name = "async-process" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc50921ec0055cdd8a16de48773bfeec5c972598674347252c0399676be7da75" +dependencies = [ + "async-channel", + "async-io", + "async-lock", + "async-signal", + "async-task", + "blocking", + "cfg-if", + "event-listener", + "futures-lite", + "rustix", +] + +[[package]] +name = "async-recursion" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b43422f69d8ff38f95f1b2bb76517c91589a924d1559a0e935d7c8ce0274c11" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "async-signal" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52b5aaafa020cf5053a01f2a60e8ff5dccf550f0f77ec54a4e47285ac2bab485" +dependencies = [ + "async-io", + "async-lock", + "atomic-waker", + "cfg-if", + "futures-core", + "futures-io", + "rustix", + "signal-hook-registry", + "slab", + "windows-sys 0.61.2", +] + +[[package]] +name = "async-task" +version = "4.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de" + +[[package]] +name = "async-trait" +version = "0.1.89" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9035ad2d096bed7955a320ee7e2230574d28fd3c3a0f186cbea1ff3c7eed5dbb" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[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 = "atomic-waker" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" + +[[package]] +name = "autocfg" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" + +[[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 = "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.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "843867be96c8daad0d758b57df9392b6d8d271134fce549de6ce169ff98a92af" +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 = "blocking" +version = "1.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e83f8d02be6967315521be875afa792a316e28d57b5a2d401897e2a7921b7f21" +dependencies = [ + "async-channel", + "async-task", + "futures-io", + "futures-lite", + "piper", +] + +[[package]] +name = "brotli" +version = "8.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4bd8b9603c7aa97359dbd97ecf258968c95f3adddd6db2f7e7a5bef101c84560" +dependencies = [ + "alloc-no-stdlib", + "alloc-stdlib", + "brotli-decompressor", +] + +[[package]] +name = "brotli-decompressor" +version = "5.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "874bb8112abecc98cbd6d81ea4fa7e94fb9449648c93cc89aa40c81c24d7de03" +dependencies = [ + "alloc-no-stdlib", + "alloc-stdlib", +] + +[[package]] +name = "bumpalo" +version = "3.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d20789868f4b01b2f2caec9f5c4e0213b41e3e5702a50157d699ae31ced2fcb" + +[[package]] +name = "bytemuck" +version = "1.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8efb64bd706a16a1bdde310ae86b351e4d21550d98d056f22f8a7f7a2183fec" + +[[package]] +name = "byteorder" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" + +[[package]] +name = "bytes" +version = "1.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33" +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.11.0", + "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.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e629a66d692cb9ff1a1c664e41771b3dcaf961985a9774c0eb0bd1b51cf60a48" +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.18", +] + +[[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 = "cc" +version = "1.2.59" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7a4d3ec6524d28a329fc53654bbadc9bdd7b0431f5d65f1a56ffb28a1ee5283" +dependencies = [ + "find-msvc-tools", + "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 = "chrono" +version = "0.4.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c673075a2e0e5f4a1dde27ce9dee1ea4558c7ffe648f576438a20ca1d2acc4b0" +dependencies = [ + "iana-time-zone", + "num-traits", + "serde", + "windows-link 0.2.1", +] + +[[package]] +name = "combine" +version = "4.6.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd" +dependencies = [ + "bytes", + "memchr", +] + +[[package]] +name = "concurrent-queue" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "convert_case" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e" + +[[package]] +name = "cookie" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ddef33a339a91ea89fb53151bd0a4689cfce27055c291dfa69945475d22c747" +dependencies = [ + "time", + "version_check", +] + +[[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.11.0", + "core-foundation", + "core-graphics-types", + "foreign-types", + "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.11.0", + "core-foundation", + "libc", +] + +[[package]] +name = "cpufeatures" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280" +dependencies = [ + "libc", +] + +[[package]] +name = "crc32fast" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "crossbeam-channel" +version = "0.5.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82b8f8f868b36967f9606790d1903570de9ceaf870a7bf9fbbd3016d636a2cb2" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" + +[[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.29.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f93d03419cb5950ccfd3daf3ff1c7a36ace64609a1a8746d493df1ca0afde0fa" +dependencies = [ + "cssparser-macros", + "dtoa-short", + "itoa", + "matches", + "phf 0.10.1", + "proc-macro2", + "quote", + "smallvec", + "syn 1.0.109", +] + +[[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 0.13.1", + "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.117", +] + +[[package]] +name = "ctor" +version = "0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a2785755761f3ddc1492979ce1e48d2c00d09311c39e4466429188f3dd6501" +dependencies = [ + "quote", + "syn 2.0.117", +] + +[[package]] +name = "darling" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25ae13da2f202d56bd7f91c25fba009e7717a1e4a1cc98a76d844b65ae912e9d" +dependencies = [ + "darling_core", + "darling_macro", +] + +[[package]] +name = "darling_core" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9865a50f7c335f53564bb694ef660825eb8610e0a53d3e11bf1b0d3df31e03b0" +dependencies = [ + "ident_case", + "proc-macro2", + "quote", + "strsim", + "syn 2.0.117", +] + +[[package]] +name = "darling_macro" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3984ec7bd6cfa798e62b4a642426a5be0e68f9401cfc2a01e3fa9ea2fcdb8d" +dependencies = [ + "darling_core", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "deranged" +version = "0.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c" +dependencies = [ + "powerfmt", + "serde_core", +] + +[[package]] +name = "derive_more" +version = "0.99.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6edb4b64a43d977b8e99788fe3a04d483834fba1215a7e02caa415b626497f7f" +dependencies = [ + "convert_case", + "proc-macro2", + "quote", + "rustc_version", + "syn 2.0.117", +] + +[[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.117", +] + +[[package]] +name = "desktop" +version = "0.1.0" +dependencies = [ + "serde", + "serde_json", + "tauri", + "tauri-build", + "tauri-plugin-opener", +] + +[[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.11.0", + "block2", + "libc", + "objc2", +] + +[[package]] +name = "displaydoc" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[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.117", +] + +[[package]] +name = "dom_query" +version = "0.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "521e380c0c8afb8d9a1e83a1822ee03556fc3e3e7dbc1fd30be14e37f9cb3f89" +dependencies = [ + "bit-set", + "cssparser 0.36.0", + "foldhash 0.2.0", + "html5ever 0.38.0", + "precomputed-hash", + "selectors 0.36.1", + "tendril 0.5.0", +] + +[[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 = "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.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63a1d0de4f2249aa0ff5884d7080814f446bb241a559af6c170a41e878ed2d45" +dependencies = [ + "cc", + "memchr", + "rustc_version", + "toml 0.9.12+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 = "endi" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "66b7e2430c6dff6a955451e2cfc438f09cea1965a9d6f87f7e3b90decc014099" + +[[package]] +name = "enumflags2" +version = "0.7.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1027f7680c853e056ebcec683615fb6fbbc07dbaa13b4d5d9442b146ded4ecef" +dependencies = [ + "enumflags2_derive", + "serde", +] + +[[package]] +name = "enumflags2_derive" +version = "0.7.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67c78a4d8fdf9953a5c9d458f9efe940fd97a0cab0941c075a813ac594733827" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[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 = "event-listener" +version = "5.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e13b66accf52311f30a0db42147dadea9850cb48cd070028831ae5f5d4b856ab" +dependencies = [ + "concurrent-queue", + "parking", + "pin-project-lite", +] + +[[package]] +name = "event-listener-strategy" +version = "0.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8be9f3dfaaffdae2972880079a491a1a8bb7cbed0b8dd7a347f668b4150a3b93" +dependencies = [ + "event-listener", + "pin-project-lite", +] + +[[package]] +name = "fastrand" +version = "2.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f1f227452a390804cdb637b74a86990f2a7d7ba4b7d5693aac9b4dd6defd8d6" + +[[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 = "find-msvc-tools" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582" + +[[package]] +name = "flate2" +version = "1.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c" +dependencies = [ + "crc32fast", + "miniz_oxide", +] + +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + +[[package]] +name = "foldhash" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" + +[[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.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d737d9aa519fb7b749cbc3b962edcf310a8dd1f4b67c91c4f83975dbdd17d965" +dependencies = [ + "foreign-types-macros", + "foreign-types-shared", +] + +[[package]] +name = "foreign-types-macros" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a5c6c585bc94aaf2c7b51dd4c2ba22680844aba4c687be581871a6f518c5742" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[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 = "futf" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df420e2e84819663797d1ec6544b13c5be84629e7bb00dc960d6917db2987843" +dependencies = [ + "mac", + "new_debug_unreachable", +] + +[[package]] +name = "futures-channel" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07bbe89c50d7a535e539b8c17bc0b49bdb77747034daa8087407d655f3f7cc1d" +dependencies = [ + "futures-core", +] + +[[package]] +name = "futures-core" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d" + +[[package]] +name = "futures-executor" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baf29c38818342a3b26b5b923639e7b1f4a61fc5e76102d4b1981c6dc7a7579d" +dependencies = [ + "futures-core", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-io" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cecba35d7ad927e23624b22ad55235f2239cfa44fd10428eecbeba6d6a717718" + +[[package]] +name = "futures-lite" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f78e10609fe0e0b3f4157ffab1876319b5b0db102a2c60dc4626306dc46b44ad" +dependencies = [ + "fastrand", + "futures-core", + "futures-io", + "parking", + "pin-project-lite", +] + +[[package]] +name = "futures-macro" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e835b70203e41293343137df5c0664546da5745f82ec9b84d40be8336958447b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "futures-sink" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c39754e157331b013978ec91992bde1ac089843443c49cbc7f46150b0fad0893" + +[[package]] +name = "futures-task" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "037711b3d59c33004d3856fbdc83b99d4ff37a24768fa1be9ce3538a1cde4393" + +[[package]] +name = "futures-util" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6" +dependencies = [ + "futures-core", + "futures-io", + "futures-macro", + "futures-sink", + "futures-task", + "memchr", + "pin-project-lite", + "slab", +] + +[[package]] +name = "fxhash" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c" +dependencies = [ + "byteorder", +] + +[[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.1.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" +dependencies = [ + "cfg-if", + "libc", + "wasi 0.9.0+wasi-snapshot-preview1", +] + +[[package]] +name = "getrandom" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0" +dependencies = [ + "cfg-if", + "libc", + "wasi 0.11.1+wasi-snapshot-preview1", +] + +[[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.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0de51e6874e94e7bf76d726fc5d13ba782deca734ff60d5bb2fb2607c7406555" +dependencies = [ + "cfg-if", + "libc", + "r-efi 6.0.0", + "wasip2", + "wasip3", +] + +[[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.11.0", + "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.117", +] + +[[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.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280" + +[[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.117", +] + +[[package]] +name = "hashbrown" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" + +[[package]] +name = "hashbrown" +version = "0.15.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1" +dependencies = [ + "foldhash 0.1.5", +] + +[[package]] +name = "hashbrown" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" + +[[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 = "hermit-abi" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c" + +[[package]] +name = "hex" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" + +[[package]] +name = "html5ever" +version = "0.29.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b7410cae13cbc75623c98ac4cbfd1f0bedddf3227afc24f370cf0f50a44a11c" +dependencies = [ + "log", + "mac", + "markup5ever 0.14.1", + "match_token", +] + +[[package]] +name = "html5ever" +version = "0.38.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1054432bae2f14e0061e33d23402fbaa67a921d319d56adc6bcf887ddad1cbc2" +dependencies = [ + "log", + "markup5ever 0.38.0", +] + +[[package]] +name = "http" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3ba2a386d7f85a81f119ad7498ebe444d2e22c2af0b86b069416ace48b3311a" +dependencies = [ + "bytes", + "itoa", +] + +[[package]] +name = "http-body" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" +dependencies = [ + "bytes", + "http", +] + +[[package]] +name = "http-body-util" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a" +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.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6299f016b246a94207e63da54dbe807655bf9e00044f73ded42c3ac5305fbcca" +dependencies = [ + "atomic-waker", + "bytes", + "futures-channel", + "futures-core", + "http", + "http-body", + "httparse", + "itoa", + "pin-project-lite", + "smallvec", + "tokio", + "want", +] + +[[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", + "tokio", + "tower-service", + "tracing", +] + +[[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", +] + +[[package]] +name = "icu_collections" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2984d1cd16c883d7935b9e07e44071dca8d917fd52ecc02c04d5fa0b5a3f191c" +dependencies = [ + "displaydoc", + "potential_utf", + "utf8_iter", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_locale_core" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92219b62b3e2b4d88ac5119f8904c10f8f61bf7e95b640d25ba3075e6cac2c29" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_normalizer" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c56e5ee99d6e3d33bd91c5d85458b6005a22140021cc324cea84dd0e72cff3b4" +dependencies = [ + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da3be0ae77ea334f4da67c12f149704f19f81d1adf7c51cf482943e84a2bad38" + +[[package]] +name = "icu_properties" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bee3b67d0ea5c2cca5003417989af8996f8604e34fb9ddf96208a033901e70de" +dependencies = [ + "icu_collections", + "icu_locale_core", + "icu_properties_data", + "icu_provider", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e2bbb201e0c04f7b4b3e14382af113e17ba4f63e2c9d2ee626b720cbce54a14" + +[[package]] +name = "icu_provider" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "139c4cf31c8b5f33d7e199446eff9c1e02decfc2f0eec2c8d71f65befa45b421" +dependencies = [ + "displaydoc", + "icu_locale_core", + "writeable", + "yoke", + "zerofrom", + "zerotrie", + "zerovec", +] + +[[package]] +name = "id-arena" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d3067d79b975e8844ca9eb072e16b31c3c1c36928edf9c6789548c524d0d954" + +[[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.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3acae9609540aa318d1bc588455225fb2085b9ed0c4f6bd0d9d5bcd86f1a0344" +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.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "45a8a2b9cb3e0b0c1803dbb0758ffac5de2f425b23c28f518faabd9d805342ff" +dependencies = [ + "equivalent", + "hashbrown 0.16.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.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d98f6fed1fde3f8c21bc40a1abb88dd75e67924f9cffc3ef95607bad8017f8e2" + +[[package]] +name = "iri-string" +version = "0.7.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25e659a4bb38e810ebc252e53b5814ff908a8c58c2a9ce2fae1bbec24cbf4e20" +dependencies = [ + "memchr", + "serde", +] + +[[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 = "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 = "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.117", +] + +[[package]] +name = "js-sys" +version = "0.3.94" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e04e2ef80ce82e13552136fabeef8a5ed1f985a96805761cbb9a2c34e7664d9" +dependencies = [ + "cfg-if", + "futures-util", + "once_cell", + "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.11.0", + "serde", + "unicode-segmentation", +] + +[[package]] +name = "kuchikiki" +version = "0.8.8-speedreader" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "02cb977175687f33fa4afa0c95c112b987ea1443e5a51c8f8ff27dc618270cc2" +dependencies = [ + "cssparser 0.29.6", + "html5ever 0.29.1", + "indexmap 2.13.1", + "selectors 0.24.0", +] + +[[package]] +name = "leb128fmt" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2" + +[[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.184" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48f5d2a454e16a5ea0f4ced81bd44e4cfc7bd3a507b61887c99fd3538b28e4af" + +[[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 = "libredox" +version = "0.1.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ddbf48fd451246b1f8c2610bd3b4ac0cc6e149d89832867093ab69a17194f08" +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.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92daf443525c4cce67b150400bc2316076100ce0b3686209eb8cf3c31612e6f0" + +[[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.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897" + +[[package]] +name = "mac" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4" + +[[package]] +name = "markup5ever" +version = "0.14.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7a7213d12e1864c0f002f52c2923d4556935a43dec5e71355c2760e0f6e7a18" +dependencies = [ + "log", + "phf 0.11.3", + "phf_codegen 0.11.3", + "string_cache 0.8.9", + "string_cache_codegen 0.5.4", + "tendril 0.4.3", +] + +[[package]] +name = "markup5ever" +version = "0.38.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8983d30f2915feeaaab2d6babdd6bc7e9ed1a00b66b5e6d74df19aa9c0e91862" +dependencies = [ + "log", + "tendril 0.5.0", + "web_atoms", +] + +[[package]] +name = "match_token" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "88a9689d8d44bf9964484516275f5cd4c9b59457a6940c1d5d0ecbb94510a36b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "matches" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2532096657941c2fea9c289d370a250971c689d4f143798ff67113ec042024a5" + +[[package]] +name = "memchr" +version = "2.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79" + +[[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 = "miniz_oxide" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316" +dependencies = [ + "adler2", + "simd-adler32", +] + +[[package]] +name = "mio" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50b7e5b27aa02a74bac8c3f23f448f8d87ff11f92d3aac1a6ed369ee08cc56c1" +dependencies = [ + "libc", + "wasi 0.11.1+wasi-snapshot-preview1", + "windows-sys 0.61.2", +] + +[[package]] +name = "muda" +version = "0.17.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c9fec5a4e89860383d778d10563a605838f8f0b2f9303868937e5ff32e86177" +dependencies = [ + "crossbeam-channel", + "dpi", + "gtk", + "keyboard-types", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-foundation", + "once_cell", + "png", + "serde", + "thiserror 2.0.18", + "windows-sys 0.60.2", +] + +[[package]] +name = "ndk" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3f42e7bbe13d351b6bead8286a43aac9534b82bd3cc43e47037f012ebfd62d4" +dependencies = [ + "bitflags 2.11.0", + "jni-sys 0.3.1", + "log", + "ndk-sys", + "num_enum", + "raw-window-handle", + "thiserror 1.0.69", +] + +[[package]] +name = "ndk-context" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b" + +[[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 = "nodrop" +version = "0.1.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72ef4a56884ca558e5ddb05a1d1e7e1bfd9a68d9ed024c21704cc98872dae1bb" + +[[package]] +name = "num-conv" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6673768db2d862beb9b39a78fdcb1a69439615d5794a1be50caa9bc92c81967" + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", +] + +[[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.117", +] + +[[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.11.0", + "block2", + "objc2", + "objc2-core-foundation", + "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.11.0", + "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.11.0", + "dispatch2", + "objc2", + "objc2-core-foundation", + "objc2-io-surface", +] + +[[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.11.0", + "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.11.0", + "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.11.0", + "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.11.0", + "objc2", + "objc2-core-foundation", + "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.11.0", + "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 = "open" +version = "5.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43bb73a7fa3799b198970490a51174027ba0d4ec504b03cd08caf513d40024bc" +dependencies = [ + "dunce", + "is-wsl", + "libc", + "pathdiff", +] + +[[package]] +name = "option-ext" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" + +[[package]] +name = "ordered-stream" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9aa2b01e1d916879f73a53d01d1d6cee68adbb31d6d9177a8cfce093cced1d50" +dependencies = [ + "futures-core", + "pin-project-lite", +] + +[[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" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba" + +[[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 = "pathdiff" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df94ce210e5bc13cb6651479fa48d14f601d9858cfe0467f43ae157023b938d3" + +[[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.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3dfb61232e34fcb633f43d12c58f83c1df82962dcdfa565a4e866ffc17dafe12" +dependencies = [ + "phf_shared 0.8.0", +] + +[[package]] +name = "phf" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fabbf1ead8a5bcbc20f5f8b939ee3f5b0f6f281b6ad3468b84656b658b455259" +dependencies = [ + "phf_macros 0.10.0", + "phf_shared 0.10.0", + "proc-macro-hack", +] + +[[package]] +name = "phf" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd6780a80ae0c52cc120a26a1a42c1ae51b247a253e4e06113d23d2c2edd078" +dependencies = [ + "phf_macros 0.11.3", + "phf_shared 0.11.3", +] + +[[package]] +name = "phf" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1562dc717473dbaa4c1f85a36410e03c047b2e7df7f45ee938fbef64ae7fadf" +dependencies = [ + "phf_macros 0.13.1", + "phf_shared 0.13.1", + "serde", +] + +[[package]] +name = "phf_codegen" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cbffee61585b0411840d3ece935cce9cb6321f01c45477d30066498cd5e1a815" +dependencies = [ + "phf_generator 0.8.0", + "phf_shared 0.8.0", +] + +[[package]] +name = "phf_codegen" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aef8048c789fa5e851558d709946d6d79a8ff88c0440c587967f8e94bfb1216a" +dependencies = [ + "phf_generator 0.11.3", + "phf_shared 0.11.3", +] + +[[package]] +name = "phf_codegen" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49aa7f9d80421bca176ca8dbfebe668cc7a2684708594ec9f3c0db0805d5d6e1" +dependencies = [ + "phf_generator 0.13.1", + "phf_shared 0.13.1", +] + +[[package]] +name = "phf_generator" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "17367f0cc86f2d25802b2c26ee58a7b23faeccf78a396094c13dced0d0182526" +dependencies = [ + "phf_shared 0.8.0", + "rand 0.7.3", +] + +[[package]] +name = "phf_generator" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d5285893bb5eb82e6aaf5d59ee909a06a16737a8970984dd7746ba9283498d6" +dependencies = [ + "phf_shared 0.10.0", + "rand 0.8.5", +] + +[[package]] +name = "phf_generator" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c80231409c20246a13fddb31776fb942c38553c51e871f8cbd687a4cfb5843d" +dependencies = [ + "phf_shared 0.11.3", + "rand 0.8.5", +] + +[[package]] +name = "phf_generator" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "135ace3a761e564ec88c03a77317a7c6b80bb7f7135ef2544dbe054243b89737" +dependencies = [ + "fastrand", + "phf_shared 0.13.1", +] + +[[package]] +name = "phf_macros" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "58fdf3184dd560f160dd73922bea2d5cd6e8f064bf4b13110abd81b03697b4e0" +dependencies = [ + "phf_generator 0.10.0", + "phf_shared 0.10.0", + "proc-macro-hack", + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "phf_macros" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f84ac04429c13a7ff43785d75ad27569f2951ce0ffd30a3321230db2fc727216" +dependencies = [ + "phf_generator 0.11.3", + "phf_shared 0.11.3", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "phf_macros" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "812f032b54b1e759ccd5f8b6677695d5268c588701effba24601f6932f8269ef" +dependencies = [ + "phf_generator 0.13.1", + "phf_shared 0.13.1", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "phf_shared" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c00cf8b9eafe68dde5e9eaa2cef8ee84a9336a47d566ec55ca16589633b65af7" +dependencies = [ + "siphasher 0.3.11", +] + +[[package]] +name = "phf_shared" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6796ad771acdc0123d2a88dc428b5e38ef24456743ddb1744ed628f9815c096" +dependencies = [ + "siphasher 0.3.11", +] + +[[package]] +name = "phf_shared" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67eabc2ef2a60eb7faa00097bd1ffdb5bd28e62bf39990626a582201b7a754e5" +dependencies = [ + "siphasher 1.0.2", +] + +[[package]] +name = "phf_shared" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e57fef6bc5981e38c2ce2d63bfa546861309f875b8a75f092d1d54ae2d64f266" +dependencies = [ + "siphasher 1.0.2", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" + +[[package]] +name = "piper" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c835479a4443ded371d6c535cbfd8d31ad92c5d23ae9770a61bc155e4992a3c1" +dependencies = [ + "atomic-waker", + "fastrand", + "futures-io", +] + +[[package]] +name = "pkg-config" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c" + +[[package]] +name = "plist" +version = "1.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "740ebea15c5d1428f910cd1a5f52cebf8d25006245ed8ade92702f4943d91e07" +dependencies = [ + "base64 0.22.1", + "indexmap 2.13.1", + "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", +] + +[[package]] +name = "polling" +version = "3.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d0e4f59085d47d8241c88ead0f274e8a0cb551f3625263c05eb8dd897c34218" +dependencies = [ + "cfg-if", + "concurrent-queue", + "hermit-abi", + "pin-project-lite", + "rustix", + "windows-sys 0.61.2", +] + +[[package]] +name = "potential_utf" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0103b1cef7ec0cf76490e969665504990193874ea05c85ff9bab8b911d0a0564" +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 = "prettyplease" +version = "0.2.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b" +dependencies = [ + "proc-macro2", + "syn 2.0.117", +] + +[[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.11+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-macro-hack" +version = "0.5.20+deprecated" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc375e1527247fe1a97d8b7156678dfe7c1af2fc075c9a4db3690ecd2a148068" + +[[package]] +name = "proc-macro2" +version = "1.0.106" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "quick-xml" +version = "0.38.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b66c2058c55a409d601666cffe35f04333cf1013010882cec174a7467cd4e21c" +dependencies = [ + "memchr", +] + +[[package]] +name = "quote" +version = "1.0.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924" +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.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" +dependencies = [ + "getrandom 0.1.16", + "libc", + "rand_chacha 0.2.2", + "rand_core 0.5.1", + "rand_hc", + "rand_pcg", +] + +[[package]] +name = "rand" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" +dependencies = [ + "libc", + "rand_chacha 0.3.1", + "rand_core 0.6.4", +] + +[[package]] +name = "rand_chacha" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" +dependencies = [ + "ppv-lite86", + "rand_core 0.5.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_core" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" +dependencies = [ + "getrandom 0.1.16", +] + +[[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_hc" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" +dependencies = [ + "rand_core 0.5.1", +] + +[[package]] +name = "rand_pcg" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16abd0c1b639e9eb4d7c50c0b8100b0d0f849be2349829c740fe8e6eb4816429" +dependencies = [ + "rand_core 0.5.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.11.0", +] + +[[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.18", +] + +[[package]] +name = "ref-cast" +version = "1.0.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f354300ae66f76f1c85c5f84693f0ce81d747e2c3f21a45fef496d89c960bf7d" +dependencies = [ + "ref-cast-impl", +] + +[[package]] +name = "ref-cast-impl" +version = "1.0.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7186006dcb21920990093f30e3dea63b7d6e977bf1256be20c3563a5db070da" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "regex" +version = "1.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e10754a14b9137dd7b1e3e5b0493cc9171fdd105e0ab477f51b72e7f3ac0e276" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.8.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc897dd8d9e8bd1ed8cdad82b5966c3e0ecae09fb1907d58efaa013543185d0a" + +[[package]] +name = "reqwest" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab3f43e3283ab1488b624b44b0e988d0acea0b3214e694730a055cb6b2efa801" +dependencies = [ + "base64 0.22.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", + "web-sys", +] + +[[package]] +name = "rustc-hash" +version = "2.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94300abf3f1ae2e2b8ffb7b58043de3d399c73fa6f4b73826402a5c457614dbe" + +[[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.11.0", + "errno", + "libc", + "linux-raw-sys", + "windows-sys 0.61.2", +] + +[[package]] +name = "rustversion" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" + +[[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 = "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.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2b42f36aa1cd011945615b92222f6bf73c599a102a300334cd7f8dbeec726cc" +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.117", +] + +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "selectors" +version = "0.24.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c37578180969d00692904465fb7f6b3d50b9a2b952b87c23d0e2e5cb5013416" +dependencies = [ + "bitflags 1.3.2", + "cssparser 0.29.6", + "derive_more 0.99.20", + "fxhash", + "log", + "phf 0.8.0", + "phf_codegen 0.8.0", + "precomputed-hash", + "servo_arc 0.2.0", + "smallvec", +] + +[[package]] +name = "selectors" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c5d9c0c92a92d33f08817311cf3f2c29a3538a8240e94a6a3c622ce652d7e00c" +dependencies = [ + "bitflags 2.11.0", + "cssparser 0.36.0", + "derive_more 2.1.1", + "log", + "new_debug_unreachable", + "phf 0.13.1", + "phf_codegen 0.13.1", + "precomputed-hash", + "rustc-hash", + "servo_arc 0.4.3", + "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.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e" +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.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[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.117", +] + +[[package]] +name = "serde_json" +version = "1.0.149" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86" +dependencies = [ + "itoa", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[package]] +name = "serde_repr" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "175ee3e80ae9982737ca543e96133087cbd9a485eecc3bc4de9c1a37b47ea59c" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[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_with" +version = "3.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd5414fad8e6907dbdd5bc441a50ae8d6e26151a03b1de04d89a5576de61d01f" +dependencies = [ + "base64 0.22.1", + "chrono", + "hex", + "indexmap 1.9.3", + "indexmap 2.13.1", + "schemars 0.9.0", + "schemars 1.2.1", + "serde_core", + "serde_json", + "serde_with_macros", + "time", +] + +[[package]] +name = "serde_with_macros" +version = "3.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3db8978e608f1fe7357e211969fd9abdcae80bac1ba7a3369bb7eb6b404eb65" +dependencies = [ + "darling", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[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.117", +] + +[[package]] +name = "servo_arc" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d52aa42f8fdf0fed91e5ce7f23d8138441002fa31dca008acf47e6fd4721f741" +dependencies = [ + "nodrop", + "stable_deref_trait", +] + +[[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", + "digest", +] + +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + +[[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.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "703d5c7ef118737c72f1af64ad2f6f8c5e1921f818cdcb97b8fe6fc69bf66214" + +[[package]] +name = "siphasher" +version = "0.3.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d" + +[[package]] +name = "siphasher" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2aa850e253778c88a04c3d7323b043aeda9d3e30d5971937c1855769763678e" + +[[package]] +name = "slab" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" + +[[package]] +name = "smallvec" +version = "1.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03" + +[[package]] +name = "socket2" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a766e1110788c36f4fa1c2b71b387a7815aa65f88ce0229841826633d93723e" +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 = "string_cache" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf776ba3fa74f83bf4b63c3dcbbf82173db2632ed8452cb2d891d33f459de70f" +dependencies = [ + "new_debug_unreachable", + "parking_lot", + "phf_shared 0.11.3", + "precomputed-hash", + "serde", +] + +[[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 0.13.1", + "precomputed-hash", +] + +[[package]] +name = "string_cache_codegen" +version = "0.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c711928715f1fe0fe509c53b43e993a9a557babc2d0a3567d0a3006f1ac931a0" +dependencies = [ + "phf_generator 0.11.3", + "phf_shared 0.11.3", + "proc-macro2", + "quote", +] + +[[package]] +name = "string_cache_codegen" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "585635e46db231059f76c5849798146164652513eb9e8ab2685939dd90f29b69" +dependencies = [ + "phf_generator 0.13.1", + "phf_shared 0.13.1", + "proc-macro2", + "quote", +] + +[[package]] +name = "strsim" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" + +[[package]] +name = "swift-rs" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4057c98e2e852d51fdcfca832aac7b571f6b351ad159f9eda5db1655f8d0c4d7" +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", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "2.0.117" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99" +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.117", +] + +[[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.34.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9103edf55f2da3c82aea4c7fab7c4241032bfeea0e71fa557d98e00e7ce7cc20" +dependencies = [ + "bitflags 2.11.0", + "block2", + "core-foundation", + "core-graphics", + "crossbeam-channel", + "dispatch2", + "dlopen2", + "dpi", + "gdkwayland-sys", + "gdkx11-sys", + "gtk", + "jni", + "libc", + "log", + "ndk", + "ndk-context", + "ndk-sys", + "objc2", + "objc2-app-kit", + "objc2-foundation", + "once_cell", + "parking_lot", + "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.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4e16beb8b2ac17db28eab8bca40e62dbfbb34c0fcdc6d9826b11b7b5d047dfd" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[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.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da77cc00fb9028caf5b5d4650f75e31f1ef3693459dfca7f7e506d1ecef0ba2d" +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", + "serde", + "serde_json", + "serde_repr", + "serialize-to-javascript", + "swift-rs", + "tauri-build", + "tauri-macros", + "tauri-runtime", + "tauri-runtime-wry", + "tauri-utils", + "thiserror 2.0.18", + "tokio", + "tray-icon", + "url", + "webkit2gtk", + "webview2-com", + "window-vibrancy", + "windows", +] + +[[package]] +name = "tauri-build" +version = "2.5.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4bbc990d1dbf57a8e1c7fa2327f2a614d8b757805603c1b9ba5c81bade09fd4d" +dependencies = [ + "anyhow", + "cargo_toml", + "dirs", + "glob", + "heck 0.5.0", + "json-patch", + "schemars 0.8.22", + "semver", + "serde", + "serde_json", + "tauri-utils", + "tauri-winres", + "toml 0.9.12+spec-1.1.0", + "walkdir", +] + +[[package]] +name = "tauri-codegen" +version = "2.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4a24476afd977c5d5d169f72425868613d82747916dd29e0a357c84c4bd6d29" +dependencies = [ + "base64 0.22.1", + "brotli", + "ico", + "json-patch", + "plist", + "png", + "proc-macro2", + "quote", + "semver", + "serde", + "serde_json", + "sha2", + "syn 2.0.117", + "tauri-utils", + "thiserror 2.0.18", + "time", + "url", + "uuid", + "walkdir", +] + +[[package]] +name = "tauri-macros" +version = "2.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d39b349a98dadaffebb73f0a40dcd1f23c999211e5a2e744403db384d0c33de7" +dependencies = [ + "heck 0.5.0", + "proc-macro2", + "quote", + "syn 2.0.117", + "tauri-codegen", + "tauri-utils", +] + +[[package]] +name = "tauri-plugin" +version = "2.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddde7d51c907b940fb573006cdda9a642d6a7c8153657e88f8a5c3c9290cd4aa" +dependencies = [ + "anyhow", + "glob", + "plist", + "schemars 0.8.22", + "serde", + "serde_json", + "tauri-utils", + "toml 0.9.12+spec-1.1.0", + "walkdir", +] + +[[package]] +name = "tauri-plugin-opener" +version = "2.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc624469b06f59f5a29f874bbc61a2ed737c0f9c23ef09855a292c389c42e83f" +dependencies = [ + "dunce", + "glob", + "objc2-app-kit", + "objc2-foundation", + "open", + "schemars 0.8.22", + "serde", + "serde_json", + "tauri", + "tauri-plugin", + "thiserror 2.0.18", + "url", + "windows", + "zbus", +] + +[[package]] +name = "tauri-runtime" +version = "2.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2826d79a3297ed08cd6ea7f412644ef58e32969504bc4fbd8d7dbeabc4445ea2" +dependencies = [ + "cookie", + "dpi", + "gtk", + "http", + "jni", + "objc2", + "objc2-ui-kit", + "objc2-web-kit", + "raw-window-handle", + "serde", + "serde_json", + "tauri-utils", + "thiserror 2.0.18", + "url", + "webkit2gtk", + "webview2-com", + "windows", +] + +[[package]] +name = "tauri-runtime-wry" +version = "2.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e11ea2e6f801d275fdd890d6c9603736012742a1c33b96d0db788c9cdebf7f9e" +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.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "219a1f983a2af3653f75b5747f76733b0da7ff03069c7a41901a5eb3ace4557d" +dependencies = [ + "anyhow", + "brotli", + "cargo_metadata", + "ctor", + "dunce", + "glob", + "html5ever 0.29.1", + "http", + "infer", + "json-patch", + "kuchikiki", + "log", + "memchr", + "phf 0.11.3", + "proc-macro2", + "quote", + "regex", + "schemars 0.8.22", + "semver", + "serde", + "serde-untagged", + "serde_json", + "serde_with", + "swift-rs", + "thiserror 2.0.18", + "toml 0.9.12+spec-1.1.0", + "url", + "urlpattern", + "uuid", + "walkdir", +] + +[[package]] +name = "tauri-winres" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1087b111fe2b005e42dbdc1990fc18593234238d47453b0c99b7de1c9ab2c1e0" +dependencies = [ + "dunce", + "embed-resource", + "toml 0.9.12+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.2", + "once_cell", + "rustix", + "windows-sys 0.61.2", +] + +[[package]] +name = "tendril" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d24a120c5fc464a3458240ee02c299ebcb9d67b5249c8848b09d639dca8d7bb0" +dependencies = [ + "futf", + "mac", + "utf-8", +] + +[[package]] +name = "tendril" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4790fc369d5a530f4b544b094e31388b9b3a37c0f4652ade4505945f5660d24" +dependencies = [ + "new_debug_unreachable", + "utf-8", +] + +[[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.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4" +dependencies = [ + "thiserror-impl 2.0.18", +] + +[[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.117", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "time" +version = "0.3.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "743bd48c283afc0388f9b8827b976905fb217ad9e647fae3a379a9283c4def2c" +dependencies = [ + "deranged", + "itoa", + "num-conv", + "powerfmt", + "serde_core", + "time-core", + "time-macros", +] + +[[package]] +name = "time-core" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7694e1cfe791f8d31026952abf09c69ca6f6fa4e1a1229e18988f06a04a12dca" + +[[package]] +name = "time-macros" +version = "0.2.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e70e4c5a0e0a8a4823ad65dfe1a6930e4f4d756dcd9dd7939022b5e8c501215" +dependencies = [ + "num-conv", + "time-core", +] + +[[package]] +name = "tinystr" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8323304221c2a851516f22236c5722a72eaa19749016521d6dff0824447d96d" +dependencies = [ + "displaydoc", + "zerovec", +] + +[[package]] +name = "tokio" +version = "1.51.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f66bf9585cda4b724d3e78ab34b73fb2bbaba9011b9bfdf69dc836382ea13b8c" +dependencies = [ + "bytes", + "libc", + "mio", + "pin-project-lite", + "socket2", + "windows-sys 0.61.2", +] + +[[package]] +name = "tokio-util" +version = "0.7.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ae9cec805b01e8fc3fd2fe289f89149a9b66dd16786abd8b19cfa7b48cb0098" +dependencies = [ + "bytes", + "futures-core", + "futures-sink", + "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.13.1", + "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_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.13.1", + "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.13.1", + "serde", + "serde_spanned 0.6.9", + "toml_datetime 0.6.3", + "winnow 0.5.40", +] + +[[package]] +name = "toml_edit" +version = "0.25.11+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b59c4d22ed448339746c59b905d24568fcbb3ab65a500494f7b8c3e97739f2b" +dependencies = [ + "indexmap 2.13.1", + "toml_datetime 1.1.1+spec-1.1.0", + "toml_parser", + "winnow 1.0.1", +] + +[[package]] +name = "toml_parser" +version = "1.1.2+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2abe9b86193656635d2411dc43050282ca48aa31c2451210f4202550afb7526" +dependencies = [ + "winnow 1.0.1", +] + +[[package]] +name = "toml_writer" +version = "1.1.1+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "756daf9b1013ebe47a8776667b466417e2d4c5679d441c26230efd9ef78692db" + +[[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.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4e6559d53cc268e5031cd8429d05415bc4cb4aefc4aa5d6cc35fbf5b924a1f8" +dependencies = [ + "bitflags 2.11.0", + "bytes", + "futures-util", + "http", + "http-body", + "iri-string", + "pin-project-lite", + "tower", + "tower-layer", + "tower-service", +] + +[[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-attributes", + "tracing-core", +] + +[[package]] +name = "tracing-attributes" +version = "0.1.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[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.21.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5e85aa143ceb072062fc4d6356c1b520a51d636e7bc8e77ec94be3608e5e80c" +dependencies = [ + "crossbeam-channel", + "dirs", + "libappindicator", + "muda", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-foundation", + "once_cell", + "png", + "serde", + "thiserror 2.0.18", + "windows-sys 0.60.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.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "562d481066bde0658276a35467c4af00bdc6ee726305698a55b86e61d7ad82bb" + +[[package]] +name = "uds_windows" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2f6fb2847f6742cd76af783a2a2c49e9375d0a111c7bef6f71cd9e738c72d6e" +dependencies = [ + "memoffset", + "tempfile", + "windows-sys 0.61.2", +] + +[[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.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9629274872b2bfaf8d66f5f15725007f635594914870f65218920345aa11aa8c" + +[[package]] +name = "unicode-xid" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" + +[[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 = "utf-8" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" + +[[package]] +name = "utf8_iter" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" + +[[package]] +name = "uuid" +version = "1.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ac8b6f42ead25368cf5b098aeb3dc8a1a2c05a3eee8a9a1a68c640edbfc79d9" +dependencies = [ + "getrandom 0.4.2", + "js-sys", + "serde_core", + "wasm-bindgen", +] + +[[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 = "wasi" +version = "0.9.0+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" + +[[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.2+wasi-0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9517f9239f02c069db75e65f174b3da828fe5f5b945c4dd26bd25d89c03ebcf5" +dependencies = [ + "wit-bindgen", +] + +[[package]] +name = "wasip3" +version = "0.4.0+wasi-0.3.0-rc-2026-01-06" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5428f8bf88ea5ddc08faddef2ac4a67e390b88186c703ce6dbd955e1c145aca5" +dependencies = [ + "wit-bindgen", +] + +[[package]] +name = "wasm-bindgen" +version = "0.2.117" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0551fc1bb415591e3372d0bc4780db7e587d84e2a7e79da121051c5c4b89d0b0" +dependencies = [ + "cfg-if", + "once_cell", + "rustversion", + "wasm-bindgen-macro", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.67" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03623de6905b7206edd0a75f69f747f134b7f0a2323392d664448bf2d3c5d87e" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.117" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7fbdf9a35adf44786aecd5ff89b4563a90325f9da0923236f6104e603c7e86be" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.117" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dca9693ef2bab6d4e6707234500350d8dad079eb508dca05530c85dc3a529ff2" +dependencies = [ + "bumpalo", + "proc-macro2", + "quote", + "syn 2.0.117", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.117" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39129a682a6d2d841b6c429d0c51e5cb0ed1a03829d8b3d1e69a011e62cb3d3b" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "wasm-encoder" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "990065f2fe63003fe337b932cfb5e3b80e0b4d0f5ff650e6985b1048f62c8319" +dependencies = [ + "leb128fmt", + "wasmparser", +] + +[[package]] +name = "wasm-metadata" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb0e353e6a2fbdc176932bbaab493762eb1255a7900fe0fea1a2f96c296cc909" +dependencies = [ + "anyhow", + "indexmap 2.13.1", + "wasm-encoder", + "wasmparser", +] + +[[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 = "wasmparser" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47b807c72e1bac69382b3a6fb3dbe8ea4c0ed87ff5629b8685ae6b9a611028fe" +dependencies = [ + "bitflags 2.11.0", + "hashbrown 0.15.5", + "indexmap 2.13.1", + "semver", +] + +[[package]] +name = "web-sys" +version = "0.3.94" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd70027e39b12f0849461e08ffc50b9cd7688d942c1c8e3c7b22273236b4dd0a" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "web_atoms" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57a9779e9f04d2ac1ce317aee707aa2f6b773afba7b931222bff6983843b1576" +dependencies = [ + "phf 0.13.1", + "phf_codegen 0.13.1", + "string_cache 0.9.0", + "string_cache_codegen 0.6.1", +] + +[[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 = "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.117", +] + +[[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.18", + "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.117", +] + +[[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.117", +] + +[[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-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.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.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb" +dependencies = [ + "windows-targets 0.53.5", +] + +[[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 0.52.6", + "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-targets" +version = "0.53.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3" +dependencies = [ + "windows-link 0.2.1", + "windows_aarch64_gnullvm 0.53.1", + "windows_aarch64_msvc 0.53.1", + "windows_i686_gnu 0.53.1", + "windows_i686_gnullvm 0.53.1", + "windows_i686_msvc 0.53.1", + "windows_x86_64_gnu 0.53.1", + "windows_x86_64_gnullvm 0.53.1", + "windows_x86_64_msvc 0.53.1", +] + +[[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_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53" + +[[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_aarch64_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006" + +[[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_gnu" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3" + +[[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_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c" + +[[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_i686_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2" + +[[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_gnu" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499" + +[[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_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1" + +[[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 = "windows_x86_64_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650" + +[[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" +dependencies = [ + "memchr", +] + +[[package]] +name = "winnow" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09dac053f1cd375980747450bfc7250c264eaae0583872e845c0c7cd578872b5" +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.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5" +dependencies = [ + "wit-bindgen-rust-macro", +] + +[[package]] +name = "wit-bindgen-core" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea61de684c3ea68cb082b7a88508a8b27fcc8b797d738bfc99a82facf1d752dc" +dependencies = [ + "anyhow", + "heck 0.5.0", + "wit-parser", +] + +[[package]] +name = "wit-bindgen-rust" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7c566e0f4b284dd6561c786d9cb0142da491f46a9fbed79ea69cdad5db17f21" +dependencies = [ + "anyhow", + "heck 0.5.0", + "indexmap 2.13.1", + "prettyplease", + "syn 2.0.117", + "wasm-metadata", + "wit-bindgen-core", + "wit-component", +] + +[[package]] +name = "wit-bindgen-rust-macro" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c0f9bfd77e6a48eccf51359e3ae77140a7f50b1e2ebfe62422d8afdaffab17a" +dependencies = [ + "anyhow", + "prettyplease", + "proc-macro2", + "quote", + "syn 2.0.117", + "wit-bindgen-core", + "wit-bindgen-rust", +] + +[[package]] +name = "wit-component" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d66ea20e9553b30172b5e831994e35fbde2d165325bec84fc43dbf6f4eb9cb2" +dependencies = [ + "anyhow", + "bitflags 2.11.0", + "indexmap 2.13.1", + "log", + "serde", + "serde_derive", + "serde_json", + "wasm-encoder", + "wasm-metadata", + "wasmparser", + "wit-parser", +] + +[[package]] +name = "wit-parser" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ecc8ac4bc1dc3381b7f59c34f00b67e18f910c2c0f50015669dde7def656a736" +dependencies = [ + "anyhow", + "id-arena", + "indexmap 2.13.1", + "log", + "semver", + "serde", + "serde_derive", + "serde_json", + "unicode-xid", + "wasmparser", +] + +[[package]] +name = "writeable" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ffae5123b2d3fc086436f8834ae3ab053a283cfac8fe0a0b8eaae044768a4c4" + +[[package]] +name = "wry" +version = "0.54.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5a8135d8676225e5744de000d4dff5a082501bf7db6a1c1495034f8c314edbc" +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.18", + "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 = "yoke" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "abe8c5fda708d9ca3df187cae8bfb9ceda00dd96231bed36e445a1a48e66f9ca" +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.117", + "synstructure", +] + +[[package]] +name = "zbus" +version = "5.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca82f95dbd3943a40a53cfded6c2d0a2ca26192011846a1810c4256ef92c60bc" +dependencies = [ + "async-broadcast", + "async-executor", + "async-io", + "async-lock", + "async-process", + "async-recursion", + "async-task", + "async-trait", + "blocking", + "enumflags2", + "event-listener", + "futures-core", + "futures-lite", + "hex", + "libc", + "ordered-stream", + "rustix", + "serde", + "serde_repr", + "tracing", + "uds_windows", + "uuid", + "windows-sys 0.61.2", + "winnow 0.7.15", + "zbus_macros", + "zbus_names", + "zvariant", +] + +[[package]] +name = "zbus_macros" +version = "5.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "897e79616e84aac4b2c46e9132a4f63b93105d54fe8c0e8f6bffc21fa8d49222" +dependencies = [ + "proc-macro-crate 3.5.0", + "proc-macro2", + "quote", + "syn 2.0.117", + "zbus_names", + "zvariant", + "zvariant_utils", +] + +[[package]] +name = "zbus_names" +version = "4.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ffd8af6d5b78619bab301ff3c560a5bd22426150253db278f164d6cf3b72c50f" +dependencies = [ + "serde", + "winnow 0.7.15", + "zvariant", +] + +[[package]] +name = "zerocopy" +version = "0.8.48" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eed437bf9d6692032087e337407a86f04cd8d6a16a37199ed57949d415bd68e9" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.8.48" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70e3cd084b1788766f53af483dd21f93881ff30d7320490ec3ef7526d203bad4" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "zerofrom" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69faa1f2a1ea75661980b013019ed6687ed0e83d069bc1114e2cc74c6c04c4df" +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.117", + "synstructure", +] + +[[package]] +name = "zerotrie" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f9152d31db0792fa83f70fb2f83148effb5c1f5b8c7686c3459e361d9bc20bf" +dependencies = [ + "displaydoc", + "yoke", + "zerofrom", +] + +[[package]] +name = "zerovec" +version = "0.11.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90f911cbc359ab6af17377d242225f4d75119aec87ea711a880987b18cd7b239" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "625dc425cab0dca6dc3c3319506e6593dcb08a9f387ea3b284dbd52a92c40555" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "zmij" +version = "1.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa" + +[[package]] +name = "zvariant" +version = "5.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5708299b21903bbe348e94729f22c49c55d04720a004aa350f1f9c122fd2540b" +dependencies = [ + "endi", + "enumflags2", + "serde", + "winnow 0.7.15", + "zvariant_derive", + "zvariant_utils", +] + +[[package]] +name = "zvariant_derive" +version = "5.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b59b012ebe9c46656f9cc08d8da8b4c726510aef12559da3e5f1bf72780752c" +dependencies = [ + "proc-macro-crate 3.5.0", + "proc-macro2", + "quote", + "syn 2.0.117", + "zvariant_utils", +] + +[[package]] +name = "zvariant_utils" +version = "3.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f75c23a64ef8f40f13a6989991e643554d9bef1d682a281160cf0c1bc389c5e9" +dependencies = [ + "proc-macro2", + "quote", + "serde", + "syn 2.0.117", + "winnow 0.7.15", +] diff --git a/apps/desktop/src-tauri/Cargo.toml b/apps/desktop/src-tauri/Cargo.toml new file mode 100644 index 0000000..63b0c57 --- /dev/null +++ b/apps/desktop/src-tauri/Cargo.toml @@ -0,0 +1,25 @@ +[package] +name = "desktop" +version = "0.1.0" +description = "A Tauri App" +authors = ["you"] +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[lib] +# The `_lib` suffix may seem redundant but it is necessary +# to make the lib name unique and wouldn't conflict with the bin name. +# This seems to be only an issue on Windows, see https://github.com/rust-lang/cargo/issues/8519 +name = "desktop_lib" +crate-type = ["staticlib", "cdylib", "rlib"] + +[build-dependencies] +tauri-build = { version = "2", features = [] } + +[dependencies] +tauri = { version = "2", features = [] } +tauri-plugin-opener = "2" +serde = { version = "1", features = ["derive"] } +serde_json = "1" + diff --git a/apps/desktop/src-tauri/build.rs b/apps/desktop/src-tauri/build.rs new file mode 100644 index 0000000..d860e1e --- /dev/null +++ b/apps/desktop/src-tauri/build.rs @@ -0,0 +1,3 @@ +fn main() { + tauri_build::build() +} diff --git a/apps/desktop/src-tauri/capabilities/default.json b/apps/desktop/src-tauri/capabilities/default.json new file mode 100644 index 0000000..4cdbf49 --- /dev/null +++ b/apps/desktop/src-tauri/capabilities/default.json @@ -0,0 +1,10 @@ +{ + "$schema": "../gen/schemas/desktop-schema.json", + "identifier": "default", + "description": "Capability for the main window", + "windows": ["main"], + "permissions": [ + "core:default", + "opener:default" + ] +} diff --git a/apps/desktop/src-tauri/icons/128x128.png b/apps/desktop/src-tauri/icons/128x128.png new file mode 100644 index 0000000..6be5e50 Binary files /dev/null and b/apps/desktop/src-tauri/icons/128x128.png differ diff --git a/apps/desktop/src-tauri/icons/128x128@2x.png b/apps/desktop/src-tauri/icons/128x128@2x.png new file mode 100644 index 0000000..e81bece Binary files /dev/null and b/apps/desktop/src-tauri/icons/128x128@2x.png differ diff --git a/apps/desktop/src-tauri/icons/32x32.png b/apps/desktop/src-tauri/icons/32x32.png new file mode 100644 index 0000000..a437dd5 Binary files /dev/null and b/apps/desktop/src-tauri/icons/32x32.png differ diff --git a/apps/desktop/src-tauri/icons/Square107x107Logo.png b/apps/desktop/src-tauri/icons/Square107x107Logo.png new file mode 100644 index 0000000..0ca4f27 Binary files /dev/null and b/apps/desktop/src-tauri/icons/Square107x107Logo.png differ diff --git a/apps/desktop/src-tauri/icons/Square142x142Logo.png b/apps/desktop/src-tauri/icons/Square142x142Logo.png new file mode 100644 index 0000000..b81f820 Binary files /dev/null and b/apps/desktop/src-tauri/icons/Square142x142Logo.png differ diff --git a/apps/desktop/src-tauri/icons/Square150x150Logo.png b/apps/desktop/src-tauri/icons/Square150x150Logo.png new file mode 100644 index 0000000..624c7bf Binary files /dev/null and b/apps/desktop/src-tauri/icons/Square150x150Logo.png differ diff --git a/apps/desktop/src-tauri/icons/Square284x284Logo.png b/apps/desktop/src-tauri/icons/Square284x284Logo.png new file mode 100644 index 0000000..c021d2b Binary files /dev/null and b/apps/desktop/src-tauri/icons/Square284x284Logo.png differ diff --git a/apps/desktop/src-tauri/icons/Square30x30Logo.png b/apps/desktop/src-tauri/icons/Square30x30Logo.png new file mode 100644 index 0000000..6219700 Binary files /dev/null and b/apps/desktop/src-tauri/icons/Square30x30Logo.png differ diff --git a/apps/desktop/src-tauri/icons/Square310x310Logo.png b/apps/desktop/src-tauri/icons/Square310x310Logo.png new file mode 100644 index 0000000..f9bc048 Binary files /dev/null and b/apps/desktop/src-tauri/icons/Square310x310Logo.png differ diff --git a/apps/desktop/src-tauri/icons/Square44x44Logo.png b/apps/desktop/src-tauri/icons/Square44x44Logo.png new file mode 100644 index 0000000..d5fbfb2 Binary files /dev/null and b/apps/desktop/src-tauri/icons/Square44x44Logo.png differ diff --git a/apps/desktop/src-tauri/icons/Square71x71Logo.png b/apps/desktop/src-tauri/icons/Square71x71Logo.png new file mode 100644 index 0000000..63440d7 Binary files /dev/null and b/apps/desktop/src-tauri/icons/Square71x71Logo.png differ diff --git a/apps/desktop/src-tauri/icons/Square89x89Logo.png b/apps/desktop/src-tauri/icons/Square89x89Logo.png new file mode 100644 index 0000000..f3f705a Binary files /dev/null and b/apps/desktop/src-tauri/icons/Square89x89Logo.png differ diff --git a/apps/desktop/src-tauri/icons/StoreLogo.png b/apps/desktop/src-tauri/icons/StoreLogo.png new file mode 100644 index 0000000..4556388 Binary files /dev/null and b/apps/desktop/src-tauri/icons/StoreLogo.png differ diff --git a/apps/desktop/src-tauri/icons/icon.icns b/apps/desktop/src-tauri/icons/icon.icns new file mode 100644 index 0000000..12a5bce Binary files /dev/null and b/apps/desktop/src-tauri/icons/icon.icns differ diff --git a/apps/desktop/src-tauri/icons/icon.ico b/apps/desktop/src-tauri/icons/icon.ico new file mode 100644 index 0000000..b3636e4 Binary files /dev/null and b/apps/desktop/src-tauri/icons/icon.ico differ diff --git a/apps/desktop/src-tauri/icons/icon.png b/apps/desktop/src-tauri/icons/icon.png new file mode 100644 index 0000000..e1cd261 Binary files /dev/null and b/apps/desktop/src-tauri/icons/icon.png differ diff --git a/apps/desktop/src-tauri/src/lib.rs b/apps/desktop/src-tauri/src/lib.rs new file mode 100644 index 0000000..4a277ef --- /dev/null +++ b/apps/desktop/src-tauri/src/lib.rs @@ -0,0 +1,14 @@ +// Learn more about Tauri commands at https://tauri.app/develop/calling-rust/ +#[tauri::command] +fn greet(name: &str) -> String { + format!("Hello, {}! You've been greeted from Rust!", name) +} + +#[cfg_attr(mobile, tauri::mobile_entry_point)] +pub fn run() { + tauri::Builder::default() + .plugin(tauri_plugin_opener::init()) + .invoke_handler(tauri::generate_handler![greet]) + .run(tauri::generate_context!()) + .expect("error while running tauri application"); +} diff --git a/apps/desktop/src-tauri/src/main.rs b/apps/desktop/src-tauri/src/main.rs new file mode 100644 index 0000000..bea3c23 --- /dev/null +++ b/apps/desktop/src-tauri/src/main.rs @@ -0,0 +1,6 @@ +// Prevents additional console window on Windows in release, DO NOT REMOVE!! +#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] + +fn main() { + desktop_lib::run() +} diff --git a/apps/desktop/src-tauri/tauri.conf.json b/apps/desktop/src-tauri/tauri.conf.json new file mode 100644 index 0000000..f51c6cf --- /dev/null +++ b/apps/desktop/src-tauri/tauri.conf.json @@ -0,0 +1,35 @@ +{ + "$schema": "https://schema.tauri.app/config/2", + "productName": "desktop", + "version": "0.1.0", + "identifier": "com.patrick.desktop", + "build": { + "beforeDevCommand": "npm run dev", + "devUrl": "http://localhost:1420", + "beforeBuildCommand": "npm run build", + "frontendDist": "../dist" + }, + "app": { + "windows": [ + { + "title": "desktop", + "width": 800, + "height": 600 + } + ], + "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" + ] + } +} diff --git a/apps/desktop/src/App.css b/apps/desktop/src/App.css new file mode 100644 index 0000000..85f7a4a --- /dev/null +++ b/apps/desktop/src/App.css @@ -0,0 +1,116 @@ +.logo.vite:hover { + filter: drop-shadow(0 0 2em #747bff); +} + +.logo.react:hover { + filter: drop-shadow(0 0 2em #61dafb); +} +:root { + font-family: Inter, Avenir, Helvetica, Arial, sans-serif; + font-size: 16px; + line-height: 24px; + font-weight: 400; + + color: #0f0f0f; + background-color: #f6f6f6; + + font-synthesis: none; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + -webkit-text-size-adjust: 100%; +} + +.container { + margin: 0; + padding-top: 10vh; + display: flex; + flex-direction: column; + justify-content: center; + text-align: center; +} + +.logo { + height: 6em; + padding: 1.5em; + will-change: filter; + transition: 0.75s; +} + +.logo.tauri:hover { + filter: drop-shadow(0 0 2em #24c8db); +} + +.row { + display: flex; + justify-content: center; +} + +a { + font-weight: 500; + color: #646cff; + text-decoration: inherit; +} + +a:hover { + color: #535bf2; +} + +h1 { + text-align: center; +} + +input, +button { + border-radius: 8px; + border: 1px solid transparent; + padding: 0.6em 1.2em; + font-size: 1em; + font-weight: 500; + font-family: inherit; + color: #0f0f0f; + background-color: #ffffff; + transition: border-color 0.25s; + box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2); +} + +button { + cursor: pointer; +} + +button:hover { + border-color: #396cd8; +} +button:active { + border-color: #396cd8; + background-color: #e8e8e8; +} + +input, +button { + outline: none; +} + +#greet-input { + margin-right: 5px; +} + +@media (prefers-color-scheme: dark) { + :root { + color: #f6f6f6; + background-color: #2f2f2f; + } + + a:hover { + color: #24c8db; + } + + input, + button { + color: #ffffff; + background-color: #0f0f0f98; + } + button:active { + background-color: #0f0f0f69; + } +} diff --git a/apps/desktop/src/App.tsx b/apps/desktop/src/App.tsx new file mode 100644 index 0000000..e6666a3 --- /dev/null +++ b/apps/desktop/src/App.tsx @@ -0,0 +1,99 @@ +import { useState } from 'react'; +import { Header } from './components/layout/Header'; +import { Terminal } from './components/terminal/Terminal'; +import { Home } from './components/Home'; +import { SeriesDetail } from './components/SeriesDetail'; +import { TutorialDetail } from './components/TutorialDetail'; +import { useAppStore } from './store/useAppStore'; + +type Tab = 'home' | 'tutorials' | 'series' | 'settings'; +type View = + | { type: 'home' } + | { type: 'series'; seriesId: string } + | { type: 'tutorial'; tutorialId: string }; + +function App() { + const [activeTab, setActiveTab] = useState('home'); + const [currentView, setCurrentView] = useState({ type: 'home' }); + const { terminalPosition, terminalVisible } = useAppStore(); + + const handleSeriesClick = (seriesId: string) => { + setCurrentView({ type: 'series', seriesId }); + }; + + const handleTutorialClick = (tutorialId: string) => { + setCurrentView({ type: 'tutorial', tutorialId }); + }; + + const handleBack = () => { + setCurrentView({ type: 'home' }); + }; + + const handleImportClick = () => { + // TODO: Implement import functionality + alert('导入功能开发中...'); + }; + + const handleAddDirectoryClick = () => { + // TODO: Implement add directory functionality + alert('添加目录功能开发中...'); + }; + + const renderContent = () => { + switch (currentView.type) { + case 'home': + return ( + + ); + case 'series': + return ( + + ); + case 'tutorial': + return ( + + ); + default: + return
页面开发中...
; + } + }; + + return ( +
+ {/* Header */} +
+ + {/* Main Content Area */} +
+ {/* Content */} +
+ {renderContent()} +
+ + {/* Terminal - Right Side */} + {terminalVisible && terminalPosition === 'right' && ( + + )} +
+ + {/* Terminal - Bottom */} + {terminalVisible && terminalPosition === 'bottom' && ( + + )} +
+ ); +} + +export default App; diff --git a/apps/desktop/src/assets/react.svg b/apps/desktop/src/assets/react.svg new file mode 100644 index 0000000..6c87de9 --- /dev/null +++ b/apps/desktop/src/assets/react.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/desktop/src/components/Home.tsx b/apps/desktop/src/components/Home.tsx new file mode 100644 index 0000000..d2ec6e1 --- /dev/null +++ b/apps/desktop/src/components/Home.tsx @@ -0,0 +1,194 @@ +import { useAppStore } from '../store/useAppStore'; +import { SeriesCard } from './tutorial/SeriesCard'; +import { TutorialCard } from './tutorial/TutorialCard'; +import { FolderOpen, FileText, Plus, Sparkles, TrendingUp, Clock, ArrowRight, Zap } from 'lucide-react'; + +interface HomeProps { + onSeriesClick: (seriesId: string) => void; + onTutorialClick: (tutorialId: string) => void; + onImportClick: () => void; + onAddDirectoryClick: () => void; +} + +export function Home({ onSeriesClick, onTutorialClick, onImportClick, onAddDirectoryClick }: HomeProps) { + const { series, getFilteredTutorials } = useAppStore(); + + const filteredTutorials = getFilteredTutorials(); + const recentTutorials = filteredTutorials.slice(0, 6); + + const stats = [ + { label: '教程总数', value: filteredTutorials.length, icon: FileText, color: 'from-accent to-secondary' }, + { label: '系列课程', value: series.length, icon: FolderOpen, color: 'from-emerald-500 to-teal-500' }, + { label: '学习时长', value: '120+', icon: Clock, color: 'from-amber-500 to-orange-500' }, + ]; + + return ( +
+ {/* Hero Section */} +
+ {/* Background Gradient */} +
+
+
+ +
+
+ {/* Badge */} +
+ + 交互式学习平台 +
+ +

+ 可执行 + 教程 +

+

+ 边学边做,让技术学习变得简单有趣。每个教程都包含可执行的命令, + 点击运行即可在终端中看到实时结果。 +

+ + {/* Stats */} +
+ {stats.map((stat, index) => ( +
+
+ +
+
+
{stat.value}
+
{stat.label}
+
+
+ ))} +
+
+
+
+ +
+ {/* Featured Series */} +
+
+
+
+ +
+
+

推荐系列

+

精选学习路径

+
+
+ +
+ +
+ {series.map((s, index) => ( + t.series === s.id)} + onClick={() => onSeriesClick(s.id)} + index={index} + /> + ))} +
+
+ + {/* Recent Tutorials */} +
+
+
+
+ +
+
+

+ {filteredTutorials.length > 0 ? '搜索结果' : '最近教程'} +

+

+ {filteredTutorials.length > 0 ? `找到 ${filteredTutorials.length} 个教程` : '最新发布的内容'} +

+
+
+
+ + {recentTutorials.length > 0 ? ( +
+ {recentTutorials.map((tutorial, index) => ( + onTutorialClick(tutorial.id)} + index={index} + /> + ))} +
+ ) : ( +
+ +

没有找到匹配的教程

+ +
+ )} +
+ + {/* Quick Actions */} +
+
+
+
+
+ +
+
+

快速操作

+

扩展你的学习内容

+
+
+ +
+ + + +
+
+
+
+
+ ); +} diff --git a/apps/desktop/src/components/SeriesDetail.tsx b/apps/desktop/src/components/SeriesDetail.tsx new file mode 100644 index 0000000..2ac7806 --- /dev/null +++ b/apps/desktop/src/components/SeriesDetail.tsx @@ -0,0 +1,185 @@ +import { ArrowLeft, BookOpen, Clock, BarChart3, Trophy, Play, Sparkles } from 'lucide-react'; +import { useAppStore } from '../store/useAppStore'; +import { TutorialCard } from './tutorial/TutorialCard'; + +interface SeriesDetailProps { + seriesId: string; + onBack: () => void; + onTutorialClick: (tutorialId: string) => void; +} + +export function SeriesDetail({ seriesId, onBack, onTutorialClick }: SeriesDetailProps) { + const { series, getTutorialsBySeries, progress } = useAppStore(); + + const currentSeries = series.find((s) => s.id === seriesId); + const tutorials = getTutorialsBySeries(seriesId); + + if (!currentSeries) { + return ( +
+
系列不存在
+
+ ); + } + + const completedCount = tutorials.filter( + (t) => progress[t.id]?.completed + ).length; + const progressPercent = tutorials.length > 0 + ? (completedCount / tutorials.length) * 100 + : 0; + const totalDuration = tutorials.reduce((sum, t) => sum + t.duration, 0); + + const getDifficultyColor = (difficulty: string) => { + switch (difficulty) { + case 'beginner': return 'from-emerald-500 to-teal-500'; + case 'intermediate': return 'from-amber-500 to-orange-500'; + case 'advanced': return 'from-rose-500 to-pink-500'; + default: return 'from-accent to-secondary'; + } + }; + + const nextTutorial = tutorials.find(t => !progress[t.id]?.completed); + + return ( +
+ {/* Hero Header */} +
+ {/* Background */} +
+
+ +
+ {/* Back Button */} + + +
+ {/* Icon */} +
+ {currentSeries.icon || '📚'} +
+ + {/* Info */} +
+
+ + {currentSeries.difficulty === 'beginner' ? '入门' : + currentSeries.difficulty === 'intermediate' ? '进阶' : '高级'} + + + + {tutorials.length} 个教程 + + + + {totalDuration} 分钟 + +
+ +

+ {currentSeries.title} +

+

+ {currentSeries.description} +

+ + {/* Progress Section */} +
+
+
+ + 学习进度 +
+
+ {Math.round(progressPercent)}% + ({completedCount}/{tutorials.length}) +
+
+
+
+
+ + {nextTutorial && progressPercent < 100 && ( + + )} + + {progressPercent === 100 && ( +
+ + 恭喜!你已完成本系列所有教程 +
+ )} +
+
+
+
+
+ + {/* Tutorials List */} +
+
+
+ +
+
+

教程列表

+

按顺序完成所有教程

+
+
+ + {tutorials.length > 0 ? ( +
+ {tutorials.map((tutorial, index) => ( + onTutorialClick(tutorial.id)} + index={index} + /> + ))} +
+ ) : ( +
+ +

该系列暂无教程

+
+ )} +
+
+ ); +} diff --git a/apps/desktop/src/components/TutorialDetail.tsx b/apps/desktop/src/components/TutorialDetail.tsx new file mode 100644 index 0000000..54a587f --- /dev/null +++ b/apps/desktop/src/components/TutorialDetail.tsx @@ -0,0 +1,270 @@ +import { useState } from 'react'; +import { ArrowLeft, Play, CheckCircle, Clock, BookOpen, Terminal, Copy, Check, Sparkles, RotateCcw } from 'lucide-react'; +import { useAppStore } from '../store/useAppStore'; + +interface TutorialDetailProps { + tutorialId: string; + onBack: () => void; +} + +export function TutorialDetail({ tutorialId, onBack }: TutorialDetailProps) { + const [copiedId, setCopiedId] = useState(null); + + const { + tutorials, + showTerminal, + addTerminalOutput, + setIsExecuting, + updateProgress, + progress, + } = useAppStore(); + + const tutorial = tutorials.find((t) => t.id === tutorialId); + const tutorialProgress = progress[tutorialId]; + + if (!tutorial) { + return ( +
+
教程不存在
+
+ ); + } + + const handleRun = (code: string, id: string) => { + showTerminal(); + setIsExecuting(true); + + addTerminalOutput(`$ ${code}`); + + // Mock execution + setTimeout(() => { + addTerminalOutput(''); + addTerminalOutput('\x1b[36mℹ\x1b[0m 正在执行命令...'); + addTerminalOutput(''); + + setTimeout(() => { + addTerminalOutput('\x1b[32m✓\x1b[0m 命令执行成功!'); + addTerminalOutput(''); + setIsExecuting(false); + }, 800); + }, 300); + }; + + const handleCopy = (code: string, id: string) => { + navigator.clipboard.writeText(code); + setCopiedId(id); + setTimeout(() => setCopiedId(null), 2000); + }; + + const handleMarkComplete = () => { + updateProgress({ + tutorialId, + completed: true, + completedSections: [], + completedAt: new Date().toISOString(), + }); + }; + + const handleReset = () => { + updateProgress({ + tutorialId, + completed: false, + completedSections: [], + }); + }; + + const difficultyConfig = { + beginner: { text: '入门', color: 'text-emerald-400', bg: 'bg-emerald-400/10', border: 'border-emerald-400/20' }, + intermediate: { text: '进阶', color: 'text-amber-400', bg: 'bg-amber-400/10', border: 'border-amber-400/20' }, + advanced: { text: '高级', color: 'text-rose-400', bg: 'bg-rose-400/10', border: 'border-rose-400/20' }, + }; + + const difficulty = difficultyConfig[tutorial.difficulty]; + + // Mock content sections + const sections = [ + { + type: 'text', + content: `## 什么是 ${tutorial.title}?\n\n这是一个关于 ${tutorial.title} 的教程。在这里,你将学习如何使用相关工具,并通过实际操作来掌握核心概念。本教程适合${difficulty.text}水平的用户。` + }, + { + type: 'text', + content: '## 前置条件\n\n在开始之前,请确保你已经:\n- 安装了终端工具\n- 具备基本的命令行知识\n- 有稳定的网络连接' + }, + { + type: 'executable', + id: 'step-1', + title: '安装', + description: '执行以下命令进行安装:', + code: 'brew install node', + language: 'bash' + }, + { + type: 'text', + content: '安装完成后,你可以通过运行 `node -v` 来验证安装是否成功。如果看到版本号输出,说明安装成功。' + }, + { + type: 'executable', + id: 'step-2', + title: '验证安装', + description: '验证 Node.js 和 npm 是否正确安装:', + code: 'node -v && npm -v', + language: 'bash' + }, + { + type: 'text', + content: '## 总结\n\n恭喜!你已经完成了本教程的学习。现在你可以开始使用这个工具了。建议继续学习系列中的其他教程,以获得更全面的知识。' + } + ]; + + return ( +
+ {/* Header */} +
+ + +
+
+
+ + {difficulty.text} + + + + {tutorial.duration} 分钟 + + {tutorialProgress?.completed && ( + + + 已完成 + + )} +
+ +

+ {tutorial.title} +

+

+ {tutorial.description} +

+
+ + {/* Action Buttons */} +
+ {tutorialProgress?.completed ? ( + <> + +
+ + 已完成 +
+ + ) : ( + + )} +
+
+
+ + {/* Content */} +
+
+ {sections.map((section, index) => ( +
+ {section.type === 'text' ? ( +
+
$1') + .replace(/- (.*)/g, '
  • $1
  • ') + .replace(/`([^`]+)`/g, '$1') + }} + /> +
    + ) : section.type === 'executable' ? ( +
    + {/* Header */} +
    +
    +
    + +
    +
    +

    {section.title}

    +

    {section.description}

    +
    +
    +
    + + +
    +
    + + {/* Code */} +
    +
    +                      {section.code}
    +                    
    +
    +
    + ) : null} +
    + ))} +
    + + {/* Footer CTA */} +
    +
    +
    + +
    +
    +

    + {tutorialProgress?.completed ? '想要学习更多?' : '完成本教程!'} +

    +

    + {tutorialProgress?.completed + ? '继续探索系列中的其他教程,提升你的技能。' + : '完成上面的步骤,然后点击"标记完成"按钮。'} +

    +
    +
    +
    +
    +
    + ); +} diff --git a/apps/desktop/src/components/layout/Header.tsx b/apps/desktop/src/components/layout/Header.tsx new file mode 100644 index 0000000..e1e281d --- /dev/null +++ b/apps/desktop/src/components/layout/Header.tsx @@ -0,0 +1,141 @@ +import { useState } from 'react'; +import { Home, BookOpen, FolderOpen, Settings, Search, Sparkles, Menu, X } from 'lucide-react'; +import { useAppStore } from '../../store/useAppStore'; + +type Tab = 'home' | 'tutorials' | 'series' | 'settings'; + +interface HeaderProps { + activeTab: Tab; + onTabChange: (tab: Tab) => void; +} + +export function Header({ activeTab, onTabChange }: HeaderProps) { + const { searchQuery, setSearchQuery } = useAppStore(); + const [isSearchFocused, setIsSearchFocused] = useState(false); + const [mobileMenuOpen, setMobileMenuOpen] = useState(false); + + const tabs: { id: Tab; label: string; icon: React.ReactNode; description: string }[] = [ + { id: 'home', label: '首页', icon: , description: '浏览推荐内容' }, + { id: 'tutorials', label: '教程', icon: , description: '所有教程' }, + { id: 'series', label: '系列', icon: , description: '课程系列' }, + { id: 'settings', label: '设置', icon: , description: '应用设置' }, + ]; + + return ( +
    + {/* Logo */} +
    +
    + +
    +
    +
    + Executable + Tutorial +
    +
    + + {/* Navigation Tabs */} + + + {/* Mobile Menu Button */} + + + {/* Search Bar */} +
    +
    + + setSearchQuery(e.target.value)} + onFocus={() => setIsSearchFocused(true)} + onBlur={() => setIsSearchFocused(false)} + className={` + w-full pl-12 pr-4 py-2.5 bg-bg-primary border rounded-xl text-sm + text-text-primary placeholder:text-text-muted + focus:outline-none transition-all duration-200 + ${isSearchFocused + ? 'border-accent shadow-glow' + : 'border-border-primary hover:border-border-hover' + } + `} + /> + {searchQuery && ( + + )} +
    +
    + + {/* Mobile Menu */} + {mobileMenuOpen && ( +
    + +
    + )} +
    + ); +} diff --git a/apps/desktop/src/components/terminal/Terminal.tsx b/apps/desktop/src/components/terminal/Terminal.tsx new file mode 100644 index 0000000..6d6d0d2 --- /dev/null +++ b/apps/desktop/src/components/terminal/Terminal.tsx @@ -0,0 +1,228 @@ +import { useEffect, useRef, useState } from 'react'; +import { X, Minimize2, PanelRight, PanelBottom, Trash2, TerminalIcon, Maximize2, Command } from 'lucide-react'; +import { useAppStore } from '../../store/useAppStore'; + +export function Terminal() { + const terminalRef = useRef(null); + const inputRef = useRef(null); + const [input, setInput] = useState(''); + const [commandHistory, setCommandHistory] = useState([]); + const [historyIndex, setHistoryIndex] = useState(-1); + + const { + terminalPosition, + terminalVisible, + terminalOutput, + isExecuting, + hideTerminal, + toggleTerminalPosition, + addTerminalOutput, + clearTerminal, + setIsExecuting, + } = useAppStore(); + + // Auto-scroll to bottom + useEffect(() => { + if (terminalRef.current) { + terminalRef.current.scrollTop = terminalRef.current.scrollHeight; + } + }, [terminalOutput]); + + // Focus input when terminal becomes visible + useEffect(() => { + if (terminalVisible && inputRef.current) { + inputRef.current.focus(); + } + }, [terminalVisible]); + + if (!terminalVisible) return null; + + const handleExecute = () => { + if (!input.trim()) return; + + const command = input.trim(); + addTerminalOutput(`$ ${command}`); + setCommandHistory(prev => [...prev, command]); + setHistoryIndex(-1); + + // Mock execution + setIsExecuting(true); + setTimeout(() => { + addTerminalOutput(''); + addTerminalOutput(' \x1b[36mℹ\x1b[0m 正在执行命令...'); + addTerminalOutput(''); + + setTimeout(() => { + addTerminalOutput(' \x1b[32m✓\x1b[0m 命令执行成功!'); + addTerminalOutput(''); + setIsExecuting(false); + }, 800); + }, 300); + + setInput(''); + }; + + const handleKeyDown = (e: React.KeyboardEvent) => { + if (e.key === 'Enter') { + handleExecute(); + } else if (e.key === 'ArrowUp') { + e.preventDefault(); + if (commandHistory.length > 0) { + const newIndex = historyIndex === -1 ? commandHistory.length - 1 : Math.max(0, historyIndex - 1); + setHistoryIndex(newIndex); + setInput(commandHistory[newIndex]); + } + } else if (e.key === 'ArrowDown') { + e.preventDefault(); + if (historyIndex !== -1) { + const newIndex = historyIndex + 1; + if (newIndex >= commandHistory.length) { + setHistoryIndex(-1); + setInput(''); + } else { + setHistoryIndex(newIndex); + setInput(commandHistory[newIndex]); + } + } + } + }; + + const renderOutput = (line: string, index: number) => { + // Parse ANSI colors + const parts = line.split(/(\x1b\[\d+m)/g); + const elements: React.ReactNode[] = []; + let currentColor = ''; + + parts.forEach((part, i) => { + if (part.startsWith('\x1b[')) { + const code = part.slice(2, -1); + switch (code) { + case '32m': currentColor = 'text-emerald-400'; break; + case '31m': currentColor = 'text-rose-400'; break; + case '33m': currentColor = 'text-amber-400'; break; + case '36m': currentColor = 'text-cyan-400'; break; + case '35m': currentColor = 'text-fuchsia-400'; break; + case '0m': currentColor = ''; break; + default: currentColor = ''; + } + } else if (part) { + elements.push( + + {part} + + ); + } + }); + + if (line.startsWith('$')) { + return ( +
    + + ~ + {line.slice(2)} +
    + ); + } + + return
    {elements.length > 0 ? elements : line}
    ; + }; + + return ( +
    + {/* Terminal Header */} +
    +
    +
    + +
    +
    + 终端 + {isExecuting && ( + + + 执行中 + + )} +
    +
    + +
    + {/* Clear */} + + + {/* Position Toggle */} + + + {/* Minimize */} + +
    +
    + + {/* Terminal Output */} +
    + {terminalOutput.length === 0 ? ( +
    + +

    点击教程中的"运行"按钮开始执行命令

    +

    或直接在此输入命令

    +
    + ) : ( + terminalOutput.map((line, index) => renderOutput(line, index)) + )} +
    + + {/* Terminal Input */} +
    +
    + + ~ +
    + setInput(e.target.value)} + onKeyDown={handleKeyDown} + placeholder="输入命令..." + disabled={isExecuting} + className="flex-1 bg-transparent text-text-primary font-mono text-sm placeholder:text-text-muted focus:outline-none disabled:opacity-50" + /> + {isExecuting && ( +
    + + 执行中 +
    + )} +
    +
    + ); +} diff --git a/apps/desktop/src/components/tutorial/SeriesCard.tsx b/apps/desktop/src/components/tutorial/SeriesCard.tsx new file mode 100644 index 0000000..50835bb --- /dev/null +++ b/apps/desktop/src/components/tutorial/SeriesCard.tsx @@ -0,0 +1,144 @@ +import { ArrowRight, Clock, BookOpen, Zap } from 'lucide-react'; +import { Series, Tutorial } from '../../types'; + +interface SeriesCardProps { + series: Series; + tutorials: Tutorial[]; + onClick: () => void; + index?: number; +} + +export function SeriesCard({ series, tutorials, onClick, index = 0 }: SeriesCardProps) { + const totalDuration = tutorials.reduce((sum, t) => sum + t.duration, 0); + const completedCount = 0; // TODO: Get from progress + const progress = tutorials.length > 0 ? (completedCount / tutorials.length) * 100 : 0; + + const getDifficultyColor = (difficulty: string) => { + switch (difficulty) { + case 'beginner': return 'from-green-500 to-emerald-500'; + case 'intermediate': return 'from-yellow-500 to-orange-500'; + case 'advanced': return 'from-red-500 to-pink-500'; + default: return 'from-accent to-secondary'; + } + }; + + const getDifficultyText = (difficulty: string) => { + switch (difficulty) { + case 'beginner': return '入门'; + case 'intermediate': return '进阶'; + case 'advanced': return '高级'; + default: return '入门'; + } + }; + + return ( +
    + {/* Gradient Border Effect */} +
    + + {/* Glow Effect */} +
    + +
    + {/* Header */} +
    +
    + {series.icon || '📚'} +
    + +
    +
    + + {getDifficultyText(series.difficulty)} + +
    +

    + {series.title} +

    +
    +
    + + {/* Description */} +

    + {series.description} +

    + + {/* Stats */} +
    +
    +
    + +
    + {tutorials.length} 个教程 +
    +
    +
    + +
    + {totalDuration} 分钟 +
    +
    + + {/* Progress Bar */} + {progress > 0 && ( +
    +
    + + + 学习进度 + + {Math.round(progress)}% +
    +
    +
    +
    +
    + )} + + {/* Action */} +
    +
    + {tutorials.slice(0, 3).map((t, i) => ( +
    + {i + 1} +
    + ))} + {tutorials.length > 3 && ( +
    + +{tutorials.length - 3} +
    + )} +
    + + +
    +
    +
    + ); +} diff --git a/apps/desktop/src/components/tutorial/TutorialCard.tsx b/apps/desktop/src/components/tutorial/TutorialCard.tsx new file mode 100644 index 0000000..c326e55 --- /dev/null +++ b/apps/desktop/src/components/tutorial/TutorialCard.tsx @@ -0,0 +1,142 @@ +import { Clock, Play, CheckCircle, Circle, Terminal, BookOpen } from 'lucide-react'; +import { Tutorial } from '../../types'; + +interface TutorialCardProps { + tutorial: Tutorial; + completed?: boolean; + onClick: () => void; + index?: number; +} + +const difficultyConfig = { + beginner: { + text: '入门', + gradient: 'from-emerald-500 to-teal-500', + bg: 'bg-emerald-500/10', + textColor: 'text-emerald-400' + }, + intermediate: { + text: '进阶', + gradient: 'from-amber-500 to-orange-500', + bg: 'bg-amber-500/10', + textColor: 'text-amber-400' + }, + advanced: { + text: '高级', + gradient: 'from-rose-500 to-pink-500', + bg: 'bg-rose-500/10', + textColor: 'text-rose-400' + }, +}; + +export function TutorialCard({ tutorial, completed, onClick, index = 0 }: TutorialCardProps) { + const difficulty = difficultyConfig[tutorial.difficulty]; + + return ( +
    + {/* Hover Gradient */} +
    + + {/* Top Accent Line */} +
    + +
    + {/* Header */} +
    +
    +
    + + {difficulty.text} + + {completed && ( + + + 已完成 + + )} +
    +

    + {tutorial.title} +

    +
    + + {/* Status Icon */} +
    + {completed ? : } +
    +
    + + {/* Description */} +

    + {tutorial.description} +

    + + {/* Tags */} + {tutorial.tags.length > 0 && ( +
    + {tutorial.tags.slice(0, 3).map((tag) => ( + + {tag} + + ))} + {tutorial.tags.length > 3 && ( + + +{tutorial.tags.length - 3} + + )} +
    + )} + + {/* Footer */} +
    +
    + {/* Duration */} +
    + + {tutorial.duration} 分钟 +
    + + {/* Has Executable Badge */} +
    + + 可执行 +
    +
    + + {/* Play Button */} + +
    +
    +
    + ); +} diff --git a/apps/desktop/src/index.css b/apps/desktop/src/index.css new file mode 100644 index 0000000..9d8af67 --- /dev/null +++ b/apps/desktop/src/index.css @@ -0,0 +1,180 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; + +@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap'); + +:root { + font-family: 'Inter', system-ui, -apple-system, sans-serif; + line-height: 1.6; + font-weight: 400; + + color-scheme: dark; + + font-synthesis: none; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +html, body, #root { + height: 100%; + width: 100%; + overflow: hidden; + background-color: #0a0a0f; + color: #f8fafc; +} + +/* Custom Scrollbar */ +::-webkit-scrollbar { + width: 6px; + height: 6px; +} + +::-webkit-scrollbar-track { + background: transparent; +} + +::-webkit-scrollbar-thumb { + background: #27273a; + border-radius: 3px; +} + +::-webkit-scrollbar-thumb:hover { + background: #3f3f5f; +} + +/* Selection */ +::selection { + background: rgba(99, 102, 241, 0.3); + color: #f8fafc; +} + +/* Animation Classes */ +@keyframes fadeIn { + from { opacity: 0; } + to { opacity: 1; } +} + +@keyframes slideUp { + from { + opacity: 0; + transform: translateY(20px); + } + to { + opacity: 1; + transform: translateY(0); + } +} + +@keyframes scaleIn { + from { + opacity: 0; + transform: scale(0.95); + } + to { + opacity: 1; + transform: scale(1); + } +} + +@keyframes pulseGlow { + 0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.3); } + 50% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.5); } +} + +.animate-fade-in { + animation: fadeIn 0.3s ease-out; +} + +.animate-slide-up { + animation: slideUp 0.4s ease-out; +} + +.animate-scale-in { + animation: scaleIn 0.2s ease-out; +} + +.animate-pulse-glow { + animation: pulseGlow 2s ease-in-out infinite; +} + +/* Utility Classes */ +.text-gradient { + background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + background-clip: text; +} + +.bg-gradient { + background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); +} + +.glass { + background: rgba(21, 21, 32, 0.8); + backdrop-filter: blur(12px); + -webkit-backdrop-filter: blur(12px); +} + +.glass-strong { + background: rgba(21, 21, 32, 0.95); + backdrop-filter: blur(20px); + -webkit-backdrop-filter: blur(20px); +} + +.shadow-glow { + box-shadow: 0 0 20px rgba(99, 102, 241, 0.3); +} + +.shadow-glow-lg { + box-shadow: 0 0 40px rgba(99, 102, 241, 0.4); +} + +.card-hover { + transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); +} + +.card-hover:hover { + transform: translateY(-2px); + box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5); +} + +/* Terminal */ +.terminal-text { + font-family: 'JetBrains Mono', monospace; + font-size: 13px; + line-height: 1.5; +} + +/* Button */ +.btn-primary { + background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); + transition: all 0.2s ease; +} + +.btn-primary:hover { + transform: translateY(-1px); + box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.5); +} + +/* Line clamp utilities */ +.line-clamp-1 { + display: -webkit-box; + -webkit-line-clamp: 1; + -webkit-box-orient: vertical; + overflow: hidden; +} + +.line-clamp-2 { + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + overflow: hidden; +} diff --git a/apps/desktop/src/main.tsx b/apps/desktop/src/main.tsx new file mode 100644 index 0000000..8b1ddb9 --- /dev/null +++ b/apps/desktop/src/main.tsx @@ -0,0 +1,10 @@ +import React from "react"; +import ReactDOM from "react-dom/client"; +import App from "./App"; +import "./index.css"; + +ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render( + + + , +); diff --git a/apps/desktop/src/store/useAppStore.ts b/apps/desktop/src/store/useAppStore.ts new file mode 100644 index 0000000..ef19b95 --- /dev/null +++ b/apps/desktop/src/store/useAppStore.ts @@ -0,0 +1,246 @@ +import { create } from 'zustand'; +import { Tutorial, Series, Progress, TerminalPosition } from '../types'; + +interface AppState { + // Data + tutorials: Tutorial[]; + series: Series[]; + progress: Record; + + // UI State + currentTutorial: Tutorial | null; + currentSeries: Series | null; + searchQuery: string; + selectedCategory: string | null; + selectedDifficulty: string | null; + + // Terminal State + terminalPosition: TerminalPosition; + terminalVisible: boolean; + isExecuting: boolean; + terminalOutput: string[]; + + // Actions + setTutorials: (tutorials: Tutorial[]) => void; + setSeries: (series: Series[]) => void; + setCurrentTutorial: (tutorial: Tutorial | null) => void; + setCurrentSeries: (series: Series | null) => void; + setSearchQuery: (query: string) => void; + setCategory: (category: string | null) => void; + setDifficulty: (difficulty: string | null) => void; + + // Terminal Actions + showTerminal: () => void; + hideTerminal: () => void; + toggleTerminalPosition: () => void; + setTerminalPosition: (position: TerminalPosition) => void; + addTerminalOutput: (output: string) => void; + clearTerminal: () => void; + setIsExecuting: (executing: boolean) => void; + + // Progress Actions + updateProgress: (progress: Progress) => void; + + // Filtered Data + getFilteredTutorials: () => Tutorial[]; + getTutorialsBySeries: (seriesId: string) => Tutorial[]; +} + +// Mock data for initial state +const mockTutorials: Tutorial[] = [ + { + id: 'tutorial-001', + title: '安装 Node.js', + description: '使用 fnm 安装和管理 Node.js 版本', + category: 'dev-tools', + difficulty: 'beginner', + duration: 10, + tags: ['nodejs', 'fnm', 'javascript'], + series: 'nodejs-fundamentals', + order: 1, + createdAt: '2026-04-01', + updatedAt: '2026-04-01', + source: 'builtin', + }, + { + id: 'tutorial-002', + title: 'Git 基础', + description: '学习 Git 的基本操作', + category: 'dev-tools', + difficulty: 'beginner', + duration: 15, + tags: ['git', 'version-control'], + series: 'git-fundamentals', + order: 1, + createdAt: '2026-04-01', + updatedAt: '2026-04-01', + source: 'builtin', + }, + { + id: 'tutorial-003', + title: 'Python 环境配置', + description: '使用 uv 管理 Python 环境', + category: 'dev-tools', + difficulty: 'beginner', + duration: 10, + tags: ['python', 'uv'], + series: 'python-fundamentals', + order: 1, + createdAt: '2026-04-01', + updatedAt: '2026-04-01', + source: 'builtin', + }, + { + id: 'tutorial-004', + title: 'ls 命令详解', + description: '掌握目录列表命令', + category: 'terminal', + difficulty: 'beginner', + duration: 5, + tags: ['terminal', 'bash'], + series: 'terminal-basics', + order: 1, + createdAt: '2026-04-01', + updatedAt: '2026-04-01', + source: 'builtin', + }, + { + id: 'tutorial-005', + title: 'cd 和 pwd 命令', + description: '学习目录导航', + category: 'terminal', + difficulty: 'beginner', + duration: 5, + tags: ['terminal', 'bash'], + series: 'terminal-basics', + order: 2, + createdAt: '2026-04-01', + updatedAt: '2026-04-01', + source: 'builtin', + }, +]; + +const mockSeries: Series[] = [ + { + id: 'nodejs-fundamentals', + title: 'Node.js 基础', + description: '从零开始学习 Node.js 开发环境配置', + category: 'dev-tools', + difficulty: 'beginner', + icon: '📦', + color: '#339933', + tutorials: ['tutorial-001'], + createdAt: '2026-04-01', + updatedAt: '2026-04-01', + }, + { + id: 'git-fundamentals', + title: 'Git 基础', + description: '掌握版本控制的核心概念', + category: 'dev-tools', + difficulty: 'beginner', + icon: '🌲', + color: '#f05032', + tutorials: ['tutorial-002'], + createdAt: '2026-04-01', + updatedAt: '2026-04-01', + }, + { + id: 'python-fundamentals', + title: 'Python 基础', + description: 'Python 开发环境配置指南', + category: 'dev-tools', + difficulty: 'beginner', + icon: '🐍', + color: '#3776ab', + tutorials: ['tutorial-003'], + createdAt: '2026-04-01', + updatedAt: '2026-04-01', + }, + { + id: 'terminal-basics', + title: '终端基础', + description: '命令行入门必修课程', + category: 'terminal', + difficulty: 'beginner', + icon: '🖥️', + color: '#4a5568', + tutorials: ['tutorial-004', 'tutorial-005'], + createdAt: '2026-04-01', + updatedAt: '2026-04-01', + }, +]; + +export const useAppStore = create((set, get) => ({ + // Initial state + tutorials: mockTutorials, + series: mockSeries, + progress: {}, + + currentTutorial: null, + currentSeries: null, + searchQuery: '', + selectedCategory: null, + selectedDifficulty: null, + + terminalPosition: 'hidden', + terminalVisible: false, + isExecuting: false, + terminalOutput: [], + + // Actions + setTutorials: (tutorials) => set({ tutorials }), + setSeries: (series) => set({ series }), + setCurrentTutorial: (currentTutorial) => set({ currentTutorial }), + setCurrentSeries: (currentSeries) => set({ currentSeries }), + setSearchQuery: (searchQuery) => set({ searchQuery }), + setCategory: (selectedCategory) => set({ selectedCategory }), + setDifficulty: (selectedDifficulty) => set({ selectedDifficulty }), + + // Terminal Actions + showTerminal: () => set({ + terminalVisible: true, + terminalPosition: 'right' + }), + hideTerminal: () => set({ + terminalVisible: false, + terminalPosition: 'hidden' + }), + toggleTerminalPosition: () => set((state) => ({ + terminalPosition: state.terminalPosition === 'right' ? 'bottom' : 'right', + })), + setTerminalPosition: (terminalPosition) => set({ terminalPosition }), + addTerminalOutput: (output) => set((state) => ({ + terminalOutput: [...state.terminalOutput, output], + })), + clearTerminal: () => set({ terminalOutput: [] }), + setIsExecuting: (isExecuting) => set({ isExecuting }), + + // Progress Actions + updateProgress: (progress) => set((state) => ({ + progress: { + ...state.progress, + [progress.tutorialId]: progress, + }, + })), + + // Getters + getFilteredTutorials: () => { + const { tutorials, searchQuery, selectedCategory, selectedDifficulty } = get(); + return tutorials.filter((tutorial) => { + const matchesSearch = !searchQuery || + tutorial.title.toLowerCase().includes(searchQuery.toLowerCase()) || + tutorial.description.toLowerCase().includes(searchQuery.toLowerCase()); + const matchesCategory = !selectedCategory || tutorial.category === selectedCategory; + const matchesDifficulty = !selectedDifficulty || tutorial.difficulty === selectedDifficulty; + return matchesSearch && matchesCategory && matchesDifficulty; + }); + }, + + getTutorialsBySeries: (seriesId: string) => { + const { tutorials } = get(); + return tutorials + .filter((t) => t.series === seriesId) + .sort((a, b) => (a.order || 0) - (b.order || 0)); + }, +})); diff --git a/apps/desktop/src/types/index.ts b/apps/desktop/src/types/index.ts new file mode 100644 index 0000000..c581ba9 --- /dev/null +++ b/apps/desktop/src/types/index.ts @@ -0,0 +1,61 @@ +export interface Tutorial { + id: string; + title: string; + description: string; + category: string; + difficulty: 'beginner' | 'intermediate' | 'advanced'; + duration: number; + tags: string[]; + series?: string; + order?: number; + content?: TutorialSection[]; + executableBlocks?: ExecutableBlock[]; + author?: string; + createdAt: string; + updatedAt: string; + source?: 'builtin' | 'local' | 'imported'; + localPath?: string; +} + +export interface TutorialSection { + id: string; + type: 'text' | 'code' | 'executable' | 'image' | 'video'; + content: string; + language?: string; + executable?: boolean; +} + +export interface ExecutableBlock { + id: string; + code: string; + language: 'bash' | 'powershell' | 'python' | 'javascript'; + platform?: ('macos' | 'windows' | 'linux')[]; + workingDirectory?: string; + environment?: Record; + expectedOutput?: string; +} + +export interface Series { + id: string; + title: string; + description: string; + category: string; + difficulty: 'beginner' | 'intermediate' | 'advanced'; + icon?: string; + color?: string; + tutorials: string[]; + author?: string; + createdAt: string; + updatedAt: string; +} + +export interface Progress { + tutorialId: string; + completed: boolean; + lastSection?: string; + completedSections: string[]; + startedAt?: string; + completedAt?: string; +} + +export type TerminalPosition = 'hidden' | 'right' | 'bottom'; diff --git a/apps/desktop/tailwind.config.js b/apps/desktop/tailwind.config.js new file mode 100644 index 0000000..9ada414 --- /dev/null +++ b/apps/desktop/tailwind.config.js @@ -0,0 +1,78 @@ +/** @type {import('tailwindcss').Config} */ +export default { + content: [ + "./index.html", + "./src/**/*.{js,ts,jsx,tsx}", + ], + theme: { + extend: { + colors: { + // Background + 'bg-primary': '#0a0a0f', + 'bg-secondary': '#12121a', + 'bg-tertiary': '#1a1a25', + 'bg-card': '#151520', + 'bg-hover': '#1e1e2e', + + // Accent + 'accent': { + DEFAULT: '#6366f1', + hover: '#818cf8', + glow: 'rgba(99, 102, 241, 0.3)', + }, + 'secondary': '#8b5cf6', + + // Status + 'success': '#10b981', + 'warning': '#f59e0b', + 'error': '#ef4444', + 'info': '#3b82f6', + + // Text + 'text-primary': '#f8fafc', + 'text-secondary': '#94a3b8', + 'text-muted': '#64748b', + 'text-accent': '#c7d2fe', + + // Border + 'border-primary': '#27273a', + 'border-hover': '#3f3f5f', + }, + fontFamily: { + 'mono': ['JetBrains Mono', 'Menlo', 'monospace'], + 'sans': ['Inter', 'system-ui', 'sans-serif'], + }, + animation: { + 'fade-in': 'fadeIn 0.3s ease-out', + 'slide-up': 'slideUp 0.4s ease-out', + 'scale-in': 'scaleIn 0.2s ease-out', + 'pulse-glow': 'pulseGlow 2s ease-in-out infinite', + }, + keyframes: { + fadeIn: { + '0%': { opacity: '0' }, + '100%': { opacity: '1' }, + }, + slideUp: { + '0%': { opacity: '0', transform: 'translateY(20px)' }, + '100%': { opacity: '1', transform: 'translateY(0)' }, + }, + scaleIn: { + '0%': { opacity: '0', transform: 'scale(0.95)' }, + '100%': { opacity: '1', transform: 'scale(1)' }, + }, + pulseGlow: { + '0%, 100%': { boxShadow: '0 0 20px rgba(99, 102, 241, 0.3)' }, + '50%': { boxShadow: '0 0 40px rgba(99, 102, 241, 0.5)' }, + }, + }, + boxShadow: { + 'glow': '0 0 20px rgba(99, 102, 241, 0.3)', + 'glow-lg': '0 0 40px rgba(99, 102, 241, 0.4)', + 'card': '0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2)', + 'card-hover': '0 20px 40px -15px rgba(0, 0, 0, 0.5)', + }, + }, + }, + plugins: [], +} diff --git a/apps/desktop/tsconfig.json b/apps/desktop/tsconfig.json new file mode 100644 index 0000000..a7fc6fb --- /dev/null +++ b/apps/desktop/tsconfig.json @@ -0,0 +1,25 @@ +{ + "compilerOptions": { + "target": "ES2020", + "useDefineForClassFields": true, + "lib": ["ES2020", "DOM", "DOM.Iterable"], + "module": "ESNext", + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "resolveJsonModule": true, + "isolatedModules": true, + "noEmit": true, + "jsx": "react-jsx", + + /* Linting */ + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noFallthroughCasesInSwitch": true + }, + "include": ["src"], + "references": [{ "path": "./tsconfig.node.json" }] +} diff --git a/apps/desktop/tsconfig.node.json b/apps/desktop/tsconfig.node.json new file mode 100644 index 0000000..42872c5 --- /dev/null +++ b/apps/desktop/tsconfig.node.json @@ -0,0 +1,10 @@ +{ + "compilerOptions": { + "composite": true, + "skipLibCheck": true, + "module": "ESNext", + "moduleResolution": "bundler", + "allowSyntheticDefaultImports": true + }, + "include": ["vite.config.ts"] +} diff --git a/apps/desktop/vite.config.ts b/apps/desktop/vite.config.ts new file mode 100644 index 0000000..ddad22a --- /dev/null +++ b/apps/desktop/vite.config.ts @@ -0,0 +1,32 @@ +import { defineConfig } from "vite"; +import react from "@vitejs/plugin-react"; + +// @ts-expect-error process is a nodejs global +const host = process.env.TAURI_DEV_HOST; + +// https://vite.dev/config/ +export default defineConfig(async () => ({ + plugins: [react()], + + // Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build` + // + // 1. prevent Vite from obscuring rust errors + clearScreen: false, + // 2. tauri expects a fixed port, fail if that port is not available + server: { + port: 1420, + strictPort: true, + host: host || false, + hmr: host + ? { + protocol: "ws", + host, + port: 1421, + } + : undefined, + watch: { + // 3. tell Vite to ignore watching `src-tauri` + ignored: ["**/src-tauri/**"], + }, + }, +})); diff --git a/docs/features/F1.1-init-tauri-react.md b/docs/features/F1.1-init-tauri-react.md new file mode 100644 index 0000000..db5674d --- /dev/null +++ b/docs/features/F1.1-init-tauri-react.md @@ -0,0 +1,234 @@ +# F1.1 初始化 Tauri v2 + React 桌面应用 + +> 状态: ⚠️ 架构差异 +> 原始需求: Tauri v2 + **Next.js** → 实际实现: Tauri v2 + **React + Vite** + +--- + +## 实现概览 + +在 `apps/desktop/` 下创建了 Tauri v2 + React 桌面应用,使用 **Vite** 作为构建工具。 + +⚠️ **注意**: 原始需求要求使用 **Next.js 15**,但实际实现使用了 **Vite + React**。这是一个架构偏差。 + +## 技术栈 + +| 技术 | 版本 | 说明 | +|------|------|------| +| Tauri | v2.x | 桌面应用框架 | +| React | v19.x | UI 框架 | +| **Vite** | **v7.x** | **构建工具(非 Next.js)** | +| TypeScript | v5.8 | 类型系统 | +| Tailwind CSS | v3.4 | 样式框架 | + +## 与原始需求的差异 + +### F1.1 原始需求 + +```markdown +- [ ] Next.js 15 (App Router) 作为前端 +- [ ] `pnpm dev` 能启动开发模式 +- [ ] 集成到现有 monorepo(pnpm workspace 正确配置) +``` + +### 实际实现 + +```markdown +✅ React 19 + Vite 作为前端 +✅ `npm run dev` 启动开发模式 +❌ 未配置 pnpm workspace(使用 npm) +``` + +### 差异分析 + +| 需求项 | 计划 | 实际 | 差异说明 | +|--------|------|------|----------| +| 前端框架 | Next.js 15 | React 19 + Vite | 使用 Vite 替代 Next.js | +| 包管理器 | pnpm | npm | 使用 npm 替代 pnpm | +| Monorepo | pnpm workspace | 独立项目 | 未集成 monorepo | + +## 为什么使用 Vite 而非 Next.js + +### 当前实现的优势 + +1. **启动速度**: Vite 开发服务器启动更快(秒级 vs 十秒级) +2. **配置简单**: 无需处理 Next.js 的复杂配置 +3. **打包大小**: Vite 打包更轻量,适合桌面应用 +4. **Tauri 集成**: `create-tauri-app` 官方推荐 Vite 模板 + +### Next.js 特性在桌面应用中的适用性 + +| Next.js 特性 | 桌面应用需要? | 说明 | +|-------------|---------------|------| +| SSR | ❌ 不需要 | Tauri 是本地应用,无需服务端渲染 | +| SSG | ❌ 不需要 | 桌面应用不需要预生成静态页面 | +| Image Optimization | ⚠️ 可选 | 可使用常规 img 标签 | +| API Routes | ❌ 不需要 | 使用 Tauri 后端 API | +| App Router | ⚠️ 可选 | Vite + React Router 可替代 | + +### 结论 + +当前 **Vite + React** 架构完全满足桌面应用需求,**Next.js 不是必需的**。 + +## 项目结构 + +``` +apps/desktop/ +├── src/ # React 前端代码 +│ ├── components/ # 组件 +│ │ ├── layout/ # 布局组件 +│ │ ├── tutorial/ # 教程组件 +│ │ └── terminal/ # 终端组件 +│ ├── store/ # Zustand 状态管理 +│ ├── types/ # TypeScript 类型 +│ ├── App.tsx # 主应用组件 +│ ├── main.tsx # 入口文件 +│ └── index.css # 全局样式 +├── src-tauri/ # Tauri Rust 后端 +│ ├── src/ # Rust 源代码 +│ ├── Cargo.toml # Rust 依赖 +│ └── tauri.conf.json # Tauri 配置 +├── index.html # Vite 入口 HTML +├── package.json # Node.js 依赖(npm) +├── vite.config.ts # Vite 配置 +├── tailwind.config.js # Tailwind 配置 +└── tsconfig.json # TypeScript 配置 +``` + +## 已实现功能 + +### ✅ 基础架构 +- [x] Tauri v2 项目初始化 +- [x] React 19 + TypeScript 集成 +- [x] **Vite** 构建工具配置(**非 Next.js**) +- [x] 开发服务器正常运行 (`npm run tauri dev`) +- [x] Tauri 窗口正确显示 + +### ✅ 前端功能 +- [x] 首页(教程/系列展示) +- [x] 系列详情页 +- [x] 教程详情页 +- [x] 终端组件(可执行命令) +- [x] 响应式布局 + +### ✅ 样式系统 +- [x] Tailwind CSS 配置 +- [x] 深色主题 +- [x] 现代化 UI 设计 +- [x] 动画效果 + +### ✅ 状态管理 +- [x] Zustand 状态管理 +- [x] 教程数据管理 +- [x] 终端状态管理 +- [x] 学习进度管理 + +## 运行方式 + +```bash +cd apps/desktop + +# 安装依赖 +npm install + +# 开发模式 +npm run tauri dev + +# 构建 +npm run tauri build +``` + +## 配置说明 + +### Tauri 配置 (`tauri.conf.json`) + +```json +{ + "build": { + "beforeDevCommand": "npm run dev", + "devUrl": "http://localhost:1420", + "beforeBuildCommand": "npm run build", + "frontendDist": "../dist" + }, + "app": { + "windows": [ + { + "title": "Executable Tutorial", + "width": 1280, + "height": 800 + } + ] + } +} +``` + +### Vite 配置 (`vite.config.ts`) + +```typescript +import { defineConfig } from "vite"; +import react from "@vitejs/plugin-react"; + +export default defineConfig({ + plugins: [react()], + server: { + port: 1420, + strictPort: true, + }, +}); +``` + +### 关键差异: Vite vs Next.js + +| 配置 | Vite | Next.js | +|------|------|---------| +| 入口文件 | `index.html` + `main.tsx` | `app/layout.tsx` + `app/page.tsx` | +| 路由 | 手动管理 / React Router | App Router / Pages Router | +| 构建配置 | `vite.config.ts` | `next.config.js` | +| 开发命令 | `vite` | `next dev` | +| 输出目录 | `dist/` | `.next/` | + +## 是否需要迁移到 Next.js + +### 当前 Vite 架构的不足 + +1. **路由管理**: 需要手动实现路由(或使用 React Router) +2. **代码分割**: 不如 Next.js 自动优化 +3. **生态系统**: 部分 Next.js 插件无法使用 + +### 迁移成本 + +| 迁移项 | 工作量 | 优先级 | +|--------|--------|--------| +| 项目结构改造 | 2-3 天 | 中 | +| 路由迁移 | 1-2 天 | 中 | +| 样式系统适配 | 1 天 | 低 | +| Tauri 配置调整 | 0.5 天 | 低 | + +### 建议 + +**短期**: 保持当前 Vite + React 架构,已满足需求 + +**长期**: 如需以下特性,考虑迁移到 Next.js: +- SSR/SSG 需求 +- 统一 Web + 桌面代码库 +- 使用 Next.js 生态插件 + +## 注意事项 + +1. **CSS 导入**: 确保 `main.tsx` 导入 CSS 文件 + ```typescript + import "./index.css"; + ``` + +2. **Tailwind 版本**: 使用 v3 而非 v4(配置方式不同) + +3. **开发端口**: 固定使用 1420 端口 + +4. **非 Next.js**: 不能使用 Next.js 特有的 API(如 `next/image`, `next/head`) + +## 后续优化 + +- [ ] 安装和配置 Tauri Shell 插件 +- [ ] 添加更多 Tauri 命令 +- [ ] 优化窗口配置(标题栏、尺寸等) +- [ ] 评估 Next.js 迁移需求 diff --git a/docs/features/F1.2-project-structure.md b/docs/features/F1.2-project-structure.md new file mode 100644 index 0000000..d4951f8 --- /dev/null +++ b/docs/features/F1.2-project-structure.md @@ -0,0 +1,310 @@ +# F1.2 项目结构说明 + +> 状态: ⚠️ 基础结构完成 (Monorepo 集成度较低) +> 架构: 独立 Vite + React 项目(非 Next.js) + +--- + +## 当前项目结构 + +当前 `apps/desktop` 是一个相对独立的 **Vite + React** 项目,与 monorepo 其他部分集成度较低。 + +``` +innate-executable/ +├── apps/ +│ └── desktop/ # 桌面应用 (Vite + React) +│ ├── src/ # React 源码 +│ ├── src-tauri/ # Tauri 后端 +│ ├── package.json # 独立依赖 (npm) +│ ├── vite.config.ts # Vite 配置 +│ └── ... +├── skills/ # Skill 定义 +├── tasks/ # 任务文档 +├── docs/ # 文档 +└── scripts/ # 脚本 +``` + +⚠️ **注意**: 这是一个 **Vite + React** 项目,**不是 Next.js** 项目。 + +## 技术栈详情 + +### 前端 (`apps/desktop/src/`) + +``` +src/ +├── components/ # UI 组件 +│ ├── layout/ +│ │ └── Header.tsx # 顶部导航 +│ ├── tutorial/ +│ │ ├── SeriesCard.tsx # 系列卡片 +│ │ └── TutorialCard.tsx # 教程卡片 +│ └── terminal/ +│ └── Terminal.tsx # 终端组件 +├── store/ +│ └── useAppStore.ts # Zustand 状态管理 +├── types/ +│ └── index.ts # TypeScript 类型 +├── App.tsx # 主组件 +├── main.tsx # 入口 (非 Next.js) +└── index.css # 全局样式 +``` + +### 关键文件 + +| 文件 | 用途 | 说明 | +|------|------|------| +| `index.html` | Vite 入口 | 非 Next.js 的 layout | +| `main.tsx` | React 挂载 | 非 Next.js 的 page | +| `vite.config.ts` | 构建配置 | 非 `next.config.js` | +| `package.json` | 依赖管理 | 使用 npm,非 pnpm workspace | + +### 依赖管理 + +`apps/desktop/package.json`: + +```json +{ + "name": "desktop", + "type": "module", + "scripts": { + "dev": "vite", // 非 "next dev" + "build": "tsc && vite build", + "tauri": "tauri" + }, + "dependencies": { + "react": "^19.1.0", + "react-dom": "^19.1.0", + "@tauri-apps/api": "^2.10.1", + "zustand": "^5.0.12" + // 注意: 没有 "next" 依赖 + }, + "devDependencies": { + "vite": "^7.0.4", + "tailwindcss": "^3.4.19" + // 注意: 没有 "@innate/ui" workspace 依赖 + } +} +``` + +### 样式系统 + +使用 Tailwind CSS 自定义配置(Vite 集成): + +```javascript +// tailwind.config.js (Vite 项目) +export default { + content: [ + "./index.html", + "./src/**/*.{js,ts,jsx,tsx}", + ], + theme: { + extend: { + colors: { + 'bg-primary': '#0a0a0f', + 'accent': { DEFAULT: '#6366f1' }, + }, + }, + }, +} +``` + +```css +/* src/index.css */ +@tailwind base; +@tailwind components; +@tailwind utilities; +``` + +```typescript +// src/main.tsx +import React from "react"; +import ReactDOM from "react-dom/client"; +import App from "./App"; +import "./index.css"; // 导入 Tailwind CSS + +ReactDOM.createRoot(document.getElementById("root")!).render( + + + , +); +``` + +## 与原始需求的差异 + +### 原始需求 (Monorepo + Next.js) + +``` +innate-next-mono/ +├── apps/ +│ └── desktop/ # Next.js 项目 +│ ├── app/ # Next.js App Router +│ ├── package.json # 引用 workspace 包 +│ └── next.config.js +├── packages/ +│ ├── ui/ # 共享 UI 组件 +│ ├── utils/ # 共享工具 +│ └── tsconfig/ # 共享配置 +└── pnpm-workspace.yaml +``` + +### 当前实现 (独立 Vite + React) + +``` +apps/desktop/ # 独立 Vite 项目 +├── src/components/ # 自包含组件 +├── package.json # 独立依赖(无 workspace) +├── vite.config.ts # Vite 配置 +└── ... # 独立配置 +``` + +### 差异对比 + +| 需求项 | 计划 | 实际 | 差异 | +|--------|------|------|------| +| 前端框架 | Next.js 15 | Vite + React | 架构差异 | +| Monorepo 包 | `@innate/ui` | 自定义组件 | 未使用 workspace | +| 包管理 | pnpm workspace | npm 独立 | 未集成 monorepo | +| 构建工具 | Next.js | Vite | 工具差异 | + +## 当前实现的优势 + +1. **简单直接**: 无需配置复杂的 monorepo 工具链 +2. **快速启动**: 无需处理 workspace 依赖 +3. **独立部署**: 可以独立构建和部署 +4. **清晰边界**: 组件和逻辑都在项目内 +5. **Vite 优势**: 启动快、HMR 快、配置简单 + +## 当前实现的局限 + +1. **代码复用**: 组件无法在多个应用间共享 +2. **版本一致**: 不同项目可能使用不同版本的依赖 +3. **构建优化**: 无法进行 monorepo 级别的构建优化 +4. **设计系统**: 未使用 shadcn/ui,自定义组件维护成本高 +5. **与需求不符**: 未使用 Next.js 和 Monorepo 架构 + +## 组件说明 + +### 自定义组件(替代 shadcn/ui) + +由于未集成 shadcn/ui,创建了以下自定义组件: + +| 组件 | 说明 | 替代 shadcn | +|------|------|-------------| +| Header | 顶部导航栏 | - | +| SeriesCard | 系列卡片 | Card | +| TutorialCard | 教程卡片 | Card | +| Terminal | 终端面板 | - | + +### 组件设计原则 + +1. **样式内联**: 使用 Tailwind 类直接编写样式 +2. **类型安全**: 全 TypeScript 类型定义 +3. **复用性**: 组件内部逻辑独立 +4. **主题一致**: 使用统一的配色方案 + +## 状态管理 + +使用 Zustand 进行状态管理(非 Next.js 的 Context): + +```typescript +// store/useAppStore.ts +interface AppState { + tutorials: Tutorial[]; + series: Series[]; + progress: Record; + terminalVisible: boolean; + // ... +} +``` + +### 状态分类 + +- **数据状态**: tutorials, series +- **UI 状态**: terminalVisible, terminalPosition +- **用户状态**: progress (学习进度) + +## 路由管理 + +使用 React 状态管理路由(非 Next.js App Router): + +```typescript +// App.tsx +type View = + | { type: 'home' } + | { type: 'series'; seriesId: string } + | { type: 'tutorial'; tutorialId: string }; + +function App() { + const [currentView, setCurrentView] = useState({ type: 'home' }); + // ... +} +``` + +### 与 Next.js 路由对比 + +| 特性 | Vite + React | Next.js | +|------|-------------|---------| +| 路由方式 | 状态管理 | App Router / Pages Router | +| 文件路由 | ❌ 不支持 | ✅ 支持 | +| 动态路由 | 手动实现 | ✅ 支持 | +| 嵌套路由 | 手动实现 | ✅ 支持 | +| 预加载 | 手动实现 | ✅ 自动 | + +## 未来改进路径 + +### 选项 1: 保持现状 (推荐短期) + +继续使用 Vite + React,满足当前需求。 + +**优点:** +- 已满足桌面应用需求 +- 开发效率高 +- 无需重构成本 + +**缺点:** +- 与原始需求不符 +- 未来扩展受限 + +### 选项 2: 迁移到 Next.js + +将项目迁移到 Next.js,符合原始需求。 + +**迁移步骤:** +1. 创建 `apps/desktop-next/` 新项目 +2. 使用 `create-next-app` 初始化 +3. 迁移组件到 `app/` 目录 +4. 适配 Tauri 配置 +5. 测试验证 + +**工作量**: 3-5 天 + +### 选项 3: 完善 Monorepo + +保持 Vite,但完善 Monorepo 集成。 + +**步骤:** +1. 配置 `pnpm-workspace.yaml` +2. 创建 `packages/ui` 共享包 +3. 提取通用组件 +4. 统一依赖管理 + +**工作量**: 2-3 天 + +## 建议 + +**当前阶段**(功能优先): +- ✅ 保持 Vite + React 架构 +- ✅ 优先完成核心功能 +- ✅ 文档记录架构差异 + +**后续阶段**(架构优化): +- 评估 Next.js 迁移的必要性 +- 完善 Monorepo 集成 +- 集成 shadcn/ui 设计系统 + +--- + +## 相关文档 + +- [F1.1-init-tauri-react](./F1.1-init-tauri-react.md) - Tauri 项目初始化 +- [backlog](./backlog.md) - 未完成事项记录 diff --git a/docs/features/backlog.md b/docs/features/backlog.md new file mode 100644 index 0000000..e90411b --- /dev/null +++ b/docs/features/backlog.md @@ -0,0 +1,159 @@ +# Features Backlog + +> 记录 F1.1 和 F1.2 中未完成的事项 +> 更新日期: 2026-04-09 + +--- + +## F1.1 初始化 Tauri v2 + Next.js 桌面应用 + +### ✅ 已完成 + +| 检查项 | 状态 | 备注 | +|--------|------|------| +| Tauri v2 项目创建 | ✅ | `apps/desktop/` 已创建 | +| Tauri 配置正确 | ✅ | `tauri.conf.json` 配置正确 | +| 开发服务器运行 | ✅ | `npm run tauri dev` 正常运行 | +| 桌面窗口显示 | ✅ | Tauri 窗口正常显示 | +| React 19 集成 | ✅ | React 19 + TypeScript 正常工作 | +| Vite 构建工具 | ✅ | Vite 7 配置正确 | +| Tailwind CSS 样式 | ✅ | 样式系统正常工作 | +| Rust 后端响应 | ✅ | 基本命令响应正常 | + +### ❌ 未完成 / 差异 + +| 检查项 | 状态 | 差异说明 | 优先级 | +|--------|------|----------|--------| +| Next.js 15 (App Router) | ❌ | 实际使用 React 19 + Vite,**非 Next.js** | P1 | +| pnpm workspace 配置 | ❌ | 使用 npm,未配置 pnpm workspace | P2 | +| Tauri shell 插件安装 | ⚠️ | 需验证 shell 插件是否安装和配置 | P1 | + +### 重要说明 + +**当前技术栈:** +- ✅ Tauri v2 +- ✅ React 19 +- ✅ Vite 7 +- ✅ TypeScript 5.8 +- ✅ Tailwind CSS 3.4 +- ❌ **Next.js (未使用)** + +**差异分析:** + +原始需求要求使用 Next.js 15,但实际实现使用了 Vite + React。这是一个**架构偏差**。 + +原因可能是: +1. `create-tauri-app` 默认推荐 Vite 模板 +2. Tauri 桌面应用不需要 Next.js 的 SSR/SSG 特性 +3. Vite 启动速度更快,配置更简单 + +**是否需要迁移到 Next.js?** + +当前实现已满足桌面应用需求: +- ✅ 路由管理(使用状态管理) +- ✅ 组件渲染 +- ✅ 样式系统 +- ✅ 构建打包 + +Next.js 的以下特性在桌面应用中不必要: +- ❌ SSR(服务器端渲染) +- ❌ SSG(静态站点生成) +- ❌ Image Optimization +- ❌ API Routes + +**建议:** 保持当前 Vite + React 架构,如需使用 Next.js 特性再考虑迁移。 + +--- + +## F1.2 配置 Monorepo 集成 + +### ✅ 已完成 + +| 检查项 | 状态 | 备注 | +|--------|------|------| +| Tailwind CSS 配置 | ✅ | 配置正确,样式正常渲染 | + +### ❌ 未完成 / 差异 + +| 检查项 | 状态 | 差异说明 | 优先级 | +|--------|------|----------|--------| +| 引用 `@innate/ui` | ❌ | 无 monorepo 共享包,使用自定义组件 | P2 | +| 引用 `@innate/utils` | ❌ | 无 monorepo 共享包 | P2 | +| shadcn/ui 集成 | ❌ | 使用自定义组件,未集成 shadcn/ui | P2 | +| TypeScript 配置继承 | ❌ | 独立配置,未继承 `packages/tsconfig` | P3 | +| pnpm build 支持 | ❌ | 未配置根目录构建 | P2 | + +### 当前项目结构 + +``` +apps/desktop/ # 独立项目,非 monorepo 集成 +├── src/ +│ ├── components/ # 自定义组件(非 shadcn/ui) +│ ├── store/ # Zustand 状态管理 +│ └── types/ # TypeScript 类型 +├── src-tauri/ # Tauri Rust 后端 +├── tailwind.config.js # 独立 Tailwind 配置 +└── package.json # 独立依赖管理(npm) +``` + +--- + +## 后续行动建议 + +### 短期(本周) + +1. **安装 Tauri Shell 插件** (P1) + ```bash + cd apps/desktop + npm install @tauri-apps/plugin-shell + ``` + +2. **配置 Shell 权限** (P1) + - 更新 `src-tauri/capabilities/default.json` + +### 中期(本月) + +3. **评估 Next.js 迁移** (P1) + - 讨论是否需要迁移到 Next.js + - 评估成本和收益 + - 如不需要,更新任务文档接受当前架构 + +4. **迁移到 pnpm** (P2) + - 创建 `pnpm-workspace.yaml` + - 迁移依赖管理 + +5. **创建共享包** (P2) + - 提取通用组件到 `packages/ui` + - 提取工具函数到 `packages/utils` + +### 长期(可选) + +6. **集成 shadcn/ui** (P2) + - 替换自定义组件为 shadcn/ui 组件 + - 统一设计系统 + +--- + +## 当前状态总结 + +**技术栈:** +- ✅ Tauri v2 +- ✅ React 19 +- ✅ Vite 7 +- ✅ TypeScript 5.8 +- ✅ Tailwind CSS 3.4 +- ❌ Next.js (未使用,与需求有差异) + +**已实现:** +- ✅ 基础 Tauri v2 + React 桌面应用 +- ✅ 现代 UI 设计(Tailwind CSS) +- ✅ 核心页面功能(Home, Series, Tutorial) +- ✅ 终端组件集成 + +**待完成:** +- ⏳ Tauri Shell 插件完整配置 +- ⏳ 评估 Next.js 迁移需求 +- ⏳ Monorepo 架构完善 +- ⏳ 共享包提取 + +**结论:** 当前实现已满足 Task 1(基础页面功能)的需求,但与 F1.1 原始需求(Next.js)有架构差异。建议评估是否必须迁移到 Next.js,或接受当前 Vite + React 架构。 diff --git a/playground/apps/desktop/next.config.ts b/playground/apps/desktop/next.config.ts index 31ee750..5b97240 100644 --- a/playground/apps/desktop/next.config.ts +++ b/playground/apps/desktop/next.config.ts @@ -2,6 +2,7 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { output: "export", + distDir: "out", images: { unoptimized: true, }, diff --git a/playground/apps/desktop/package.json b/playground/apps/desktop/package.json index 679c306..9132e3a 100644 --- a/playground/apps/desktop/package.json +++ b/playground/apps/desktop/package.json @@ -21,7 +21,8 @@ "react-dom": "19.2.4", "react-markdown": "^10.1.0", "rehype-highlight": "^7.0.2", - "remark-gfm": "^4.0.1" + "remark-gfm": "^4.0.1", + "zustand": "^5.0.12" }, "devDependencies": { "@innate/tsconfig": "workspace:*", diff --git a/playground/apps/desktop/src-tauri/tauri.conf.json b/playground/apps/desktop/src-tauri/tauri.conf.json index 18681ed..01903a9 100644 --- a/playground/apps/desktop/src-tauri/tauri.conf.json +++ b/playground/apps/desktop/src-tauri/tauri.conf.json @@ -25,13 +25,7 @@ }, "plugins": { "shell": { - "scope": [ - { - "name": "sh", - "cmd": "sh", - "args": true - } - ] + "open": "^" } }, "bundle": { diff --git a/playground/apps/desktop/src/app/page.tsx b/playground/apps/desktop/src/app/page.tsx index a9d5ccc..acf23d0 100644 --- a/playground/apps/desktop/src/app/page.tsx +++ b/playground/apps/desktop/src/app/page.tsx @@ -1,129 +1,360 @@ "use client"; -import { useState } from "react"; +import { useEffect, useState } from "react"; +import { useAppStore } from "@/store/useAppStore"; +import { useRouter } from "next/navigation"; import { - Button, Card, CardContent, CardHeader, CardTitle, + Button, Badge, Separator, - SidebarTrigger, + Input, } from "@innate/ui"; -import { Bot, Zap, BookOpen, ChevronRight } from "lucide-react"; - -const skillCategories = [ - { - level: "beginner", - label: "入门", - skills: [ - { id: "terminal-setup", name: "终端环境配置", time: "15-30分钟", platforms: ["macos", "windows"] }, - { id: "nodejs-setup", name: "Node.js 安装", time: "10分钟", platforms: ["macos", "windows"] }, - { id: "python-setup", name: "Python 安装", time: "10分钟", platforms: ["macos", "windows"] }, - { id: "git-setup", name: "Git 配置", time: "5分钟", platforms: ["macos", "windows"] }, - ], - }, - { - level: "intermediate", - label: "进阶", - skills: [ - { id: "ai-cli-setup", name: "AI CLI 工具", time: "10分钟", platforms: ["macos", "windows"] }, - { id: "ide-setup", name: "IDE 配置", time: "10分钟", platforms: ["macos", "windows"] }, - ], - }, - { - level: "advanced", - label: "高级", - skills: [ - { id: "agent-dev", name: "Agent 开发", time: "20分钟", platforms: ["macos", "windows"] }, - { id: "openclaw-setup", name: "OpenClaw 配置", time: "15分钟", platforms: ["macos"] }, - ], - }, -]; +import { + FolderOpen, + FileText, + Plus, + Sparkles, + TrendingUp, + Clock, + ArrowRight, + Zap, + BookOpen, + Search, + CheckCircle, + Circle, + Play, +} from "lucide-react"; export default function Home() { - const [greeting, setGreeting] = useState(""); - - async function testTauri() { - if ("__TAURI_INTERNALS__" in window) { - const { invoke } = await import("@tauri-apps/api/core"); - const result = await invoke("greet", { name: "Developer" }); - setGreeting(result); - } else { - setGreeting("Tauri not available — running in web mode"); - } + const router = useRouter(); + const [mounted, setMounted] = useState(false); + const { series, getFilteredTutorials, progress, searchQuery, setSearchQuery } = useAppStore(); + + useEffect(() => { + setMounted(true); + }, []); + + if (!mounted) { + return ( +
    +
    +
    + 加载中... +
    +
    + ); } - const totalSkills = skillCategories.reduce((sum, cat) => sum + cat.skills.length, 0); + const filteredTutorials = getFilteredTutorials(); + const recentTutorials = filteredTutorials.slice(0, 6); + + const stats = [ + { label: "教程总数", value: filteredTutorials.length, icon: FileText }, + { label: "系列课程", value: series.length, icon: FolderOpen }, + { label: "学习时长", value: "120+", icon: Clock }, + ]; + + const getDifficultyColor = (difficulty: string) => { + switch (difficulty) { + case "beginner": + return "bg-emerald-500/10 text-emerald-500 border-emerald-500/20"; + case "intermediate": + return "bg-amber-500/10 text-amber-500 border-amber-500/20"; + case "advanced": + return "bg-rose-500/10 text-rose-500 border-rose-500/20"; + default: + return "bg-primary/10 text-primary border-primary/20"; + } + }; + + const getDifficultyText = (difficulty: string) => { + switch (difficulty) { + case "beginner": + return "入门"; + case "intermediate": + return "进阶"; + case "advanced": + return "高级"; + default: + return "入门"; + } + }; return ( -
    - {/* Header */} -
    - - - -

    Innate Playground

    - v0.1.0 -
    - -
    - - {greeting && ( -
    - {greeting} -
    - )} - - {/* RoadMap Content */} -
    -
    -
    -

    你的 AI 学习之路

    -

    - 从零开始搭建 AI 开发环境,每步只需 5-10 分钟 +

    + {/* Hero Section */} +
    +
    +
    +
    +
    + + 交互式学习平台 +
    + +

    + 可执行 + + {" "} + 教程 + +

    +

    + 边学边做,让技术学习变得简单有趣。每个教程都包含可执行的命令, + 点击运行即可在终端中看到实时结果。

    + + {/* Stats */} +
    + {stats.map((stat) => ( +
    +
    + +
    +
    +
    {stat.value}
    +
    {stat.label}
    +
    +
    + ))} +
    +
    +
    +
    + +
    + {/* Search */} +
    + + setSearchQuery(e.target.value)} + className="pl-10" + /> +
    + + {/* Featured Series */} +
    +
    +
    +
    + +
    +
    +

    推荐系列

    +

    精选学习路径

    +
    +
    + +
    + +
    + {series.map((s) => { + const tutorials = filteredTutorials.filter((t) => t.series === s.id); + const totalDuration = tutorials.reduce((sum, t) => sum + t.duration, 0); + const completedCount = tutorials.filter((t) => progress[t.id]?.completed).length; + const progressPercent = tutorials.length > 0 ? (completedCount / tutorials.length) * 100 : 0; + + return ( + router.push(`/series/${s.id}`)} + > + +
    +
    + {s.icon || "📚"} +
    +
    + + {getDifficultyText(s.difficulty)} + + {s.title} +
    +
    +
    + +

    {s.description}

    +
    +
    + + {tutorials.length} 个教程 +
    +
    + + {totalDuration} 分钟 +
    +
    + {progressPercent > 0 && ( +
    +
    +
    +
    +
    + )} + + + ); + })} +
    +
    + + {/* Recent Tutorials */} +
    +
    +
    +
    + +
    +
    +

    + {filteredTutorials.length > 0 ? "搜索结果" : "最近教程"} +

    +

    + {filteredTutorials.length > 0 + ? `找到 ${filteredTutorials.length} 个教程` + : "最新发布的内容"} +

    +
    +
    - {skillCategories.map((category) => ( -
    -

    - {category.label} -

    -
    - {category.skills.map((skill) => ( + {recentTutorials.length > 0 ? ( +
    + {recentTutorials.map((tutorial) => { + const isCompleted = progress[tutorial.id]?.completed; + return ( router.push(`/tutorial/${tutorial.id}`)} > - - {skill.name} - - +
    +
    +
    + + {getDifficultyText(tutorial.difficulty)} + + {isCompleted && ( + + + 已完成 + + )} +
    + + {tutorial.title} + +
    +
    + {isCompleted ? : } +
    +
    -
    - - {skill.time} - - {skill.platforms.join(" / ")} +

    + {tutorial.description} +

    +
    +
    +
    + + {tutorial.duration} 分钟 +
    +
    +
    - ))} + ); + })} +
    + ) : ( +
    + +

    没有找到匹配的教程

    + +
    + )} +
    + + {/* Quick Actions */} +
    +
    +
    +
    +
    + +
    +
    +

    快速操作

    +

    扩展你的学习内容

    - ))} -
    - 共 {totalSkills} 个教程 | 从入门到高级逐步解锁 +
    + + + +
    -
    +
    ); diff --git a/playground/apps/desktop/src/app/series/[id]/client.tsx b/playground/apps/desktop/src/app/series/[id]/client.tsx new file mode 100644 index 0000000..84f74e5 --- /dev/null +++ b/playground/apps/desktop/src/app/series/[id]/client.tsx @@ -0,0 +1,279 @@ +"use client"; + +import { useRouter } from "next/navigation"; +import { useAppStore } from "@/store/useAppStore"; +import { + Card, + CardContent, + CardHeader, + CardTitle, + Button, + Badge, +} from "@innate/ui"; +import { + ArrowLeft, + BookOpen, + Clock, + BarChart3, + Trophy, + Play, + Sparkles, + CheckCircle, + Circle, +} from "lucide-react"; + +interface SeriesDetailClientProps { + id: string; +} + +export default function SeriesDetailClient({ id }: SeriesDetailClientProps) { + const router = useRouter(); + const seriesId = id; + + const { series, getTutorialsBySeries, progress } = useAppStore(); + + const currentSeries = series.find((s) => s.id === seriesId); + const tutorials = getTutorialsBySeries(seriesId); + + if (!currentSeries) { + return ( +
    +
    系列不存在
    +
    + ); + } + + const completedCount = tutorials.filter((t) => progress[t.id]?.completed).length; + const progressPercent = tutorials.length > 0 ? (completedCount / tutorials.length) * 100 : 0; + const totalDuration = tutorials.reduce((sum, t) => sum + t.duration, 0); + const nextTutorial = tutorials.find((t) => !progress[t.id]?.completed); + + const getDifficultyColor = (difficulty: string) => { + switch (difficulty) { + case "beginner": + return "from-emerald-500 to-teal-500"; + case "intermediate": + return "from-amber-500 to-orange-500"; + case "advanced": + return "from-rose-500 to-pink-500"; + default: + return "from-primary to-secondary"; + } + }; + + const getDifficultyText = (difficulty: string) => { + switch (difficulty) { + case "beginner": + return "入门"; + case "intermediate": + return "进阶"; + case "advanced": + return "高级"; + default: + return "入门"; + } + }; + + return ( +
    + {/* Hero Header */} +
    +
    +
    + +
    + + +
    +
    + {currentSeries.icon || "📚"} +
    + +
    +
    + + {getDifficultyText(currentSeries.difficulty)} + + + + {tutorials.length} 个教程 + + + + {totalDuration} 分钟 + +
    + +

    {currentSeries.title}

    +

    + {currentSeries.description} +

    + + {/* Progress Section */} +
    +
    +
    + + 学习进度 +
    +
    + {Math.round(progressPercent)}% + + ({completedCount}/{tutorials.length}) + +
    +
    +
    +
    +
    + + {nextTutorial && progressPercent < 100 && ( + + )} + + {progressPercent === 100 && ( +
    + + 恭喜!你已完成本系列所有教程 +
    + )} +
    +
    +
    +
    +
    + + {/* Tutorials List */} +
    +
    +
    + +
    +
    +

    教程列表

    +

    按顺序完成所有教程

    +
    +
    + + {tutorials.length > 0 ? ( +
    + {tutorials.map((tutorial) => { + const isCompleted = progress[tutorial.id]?.completed; + return ( + router.push(`/tutorial/${tutorial.id}`)} + > + +
    +
    +
    + + {getDifficultyText(tutorial.difficulty)} + + {isCompleted && ( + + + 已完成 + + )} +
    + + {tutorial.title} + +
    +
    + {isCompleted ? : } +
    +
    +
    + +

    + {tutorial.description} +

    +
    +
    +
    + + {tutorial.duration} 分钟 +
    +
    + +
    +
    +
    + ); + })} +
    + ) : ( +
    + +

    该系列暂无教程

    +
    + )} +
    +
    + ); +} diff --git a/playground/apps/desktop/src/app/series/[id]/page.tsx b/playground/apps/desktop/src/app/series/[id]/page.tsx new file mode 100644 index 0000000..4cdd915 --- /dev/null +++ b/playground/apps/desktop/src/app/series/[id]/page.tsx @@ -0,0 +1,11 @@ +import { series } from "@/data/series"; +import SeriesDetailClient from "./client"; + +export function generateStaticParams() { + return series.map((s) => ({ id: s.id })); +} + +export default async function SeriesDetailPage({ params }: { params: Promise<{ id: string }> }) { + const { id } = await params; + return ; +} diff --git a/playground/apps/desktop/src/app/tutorial/[id]/client.tsx b/playground/apps/desktop/src/app/tutorial/[id]/client.tsx new file mode 100644 index 0000000..9cdf57b --- /dev/null +++ b/playground/apps/desktop/src/app/tutorial/[id]/client.tsx @@ -0,0 +1,285 @@ +"use client"; + +import { useState } from "react"; +import { useRouter } from "next/navigation"; +import { useAppStore } from "@/store/useAppStore"; +import { + Card, + CardContent, + Button, + Badge, + Separator, + ScrollArea, +} from "@innate/ui"; +import { + ArrowLeft, + Play, + CheckCircle, + Clock, + Terminal, + Copy, + Check, + Sparkles, + RotateCcw, +} from "lucide-react"; + +interface TutorialDetailClientProps { + id: string; +} + +export default function TutorialDetailClient({ id }: TutorialDetailClientProps) { + const router = useRouter(); + const tutorialId = id; + const [copiedId, setCopiedId] = useState(null); + + const { + tutorials, + showTerminal, + addTerminalOutput, + setIsExecuting, + updateProgress, + progress, + } = useAppStore(); + + const tutorial = tutorials.find((t) => t.id === tutorialId); + const tutorialProgress = progress[tutorialId]; + + if (!tutorial) { + return ( +
    +
    教程不存在
    +
    + ); + } + + const handleRun = (code: string, id: string) => { + showTerminal(); + setIsExecuting(true); + + addTerminalOutput(`$ ${code}`); + + setTimeout(() => { + addTerminalOutput(""); + addTerminalOutput("\x1b[36mℹ\x1b[0m 正在执行命令..."); + addTerminalOutput(""); + + setTimeout(() => { + addTerminalOutput("\x1b[32m✓\x1b[0m 命令执行成功!"); + addTerminalOutput(""); + setIsExecuting(false); + }, 800); + }, 300); + }; + + const handleCopy = (code: string, id: string) => { + navigator.clipboard.writeText(code); + setCopiedId(id); + setTimeout(() => setCopiedId(null), 2000); + }; + + const handleMarkComplete = () => { + updateProgress({ + tutorialId, + completed: true, + completedSections: [], + completedAt: new Date().toISOString(), + }); + }; + + const handleReset = () => { + updateProgress({ + tutorialId, + completed: false, + completedSections: [], + }); + }; + + const getDifficultyConfig = (difficulty: string) => { + switch (difficulty) { + case "beginner": + return { text: "入门", color: "text-emerald-500", bg: "bg-emerald-500/10", border: "border-emerald-500/20" }; + case "intermediate": + return { text: "进阶", color: "text-amber-500", bg: "bg-amber-500/10", border: "border-amber-500/20" }; + case "advanced": + return { text: "高级", color: "text-rose-500", bg: "bg-rose-500/10", border: "border-rose-500/20" }; + default: + return { text: "入门", color: "text-emerald-500", bg: "bg-emerald-500/10", border: "border-emerald-500/20" }; + } + }; + + const difficulty = getDifficultyConfig(tutorial.difficulty); + + const sections = [ + { + type: "text" as const, + content: `## 什么是 ${tutorial.title}?\n\n这是一个关于 ${tutorial.title} 的教程。在这里,你将学习如何使用相关工具,并通过实际操作来掌握核心概念。本教程适合${difficulty.text}水平的用户。`, + }, + { + type: "text" as const, + content: "## 前置条件\n\n在开始之前,请确保你已经:\n- 安装了终端工具\n- 具备基本的命令行知识\n- 有稳定的网络连接", + }, + { + type: "executable" as const, + id: "step-1", + title: "安装", + description: "执行以下命令进行安装:", + code: "brew install node", + language: "bash", + }, + { + type: "text" as const, + content: "安装完成后,你可以通过运行 `node -v` 来验证安装是否成功。如果看到版本号输出,说明安装成功。", + }, + { + type: "executable" as const, + id: "step-2", + title: "验证安装", + description: "验证 Node.js 和 npm 是否正确安装:", + code: "node -v && npm -v", + language: "bash", + }, + { + type: "text" as const, + content: "## 总结\n\n恭喜!你已经完成了本教程的学习。现在你可以开始使用这个工具了。建议继续学习系列中的其他教程,以获得更全面的知识。", + }, + ]; + + return ( +
    + {/* Header */} +
    + + +
    +
    +
    + + {difficulty.text} + + + + {tutorial.duration} 分钟 + + {tutorialProgress?.completed && ( + + + 已完成 + + )} +
    + +

    {tutorial.title}

    +

    {tutorial.description}

    +
    + +
    + {tutorialProgress?.completed ? ( + <> + +
    + + 已完成 +
    + + ) : ( + + )} +
    +
    +
    + + {/* Content */} +
    +
    + {sections.map((section, index) => ( +
    + {section.type === "text" ? ( +
    +
    $1') + .replace(/- (.*)/g, '
  • $1
  • ') + .replace(/`([^`]+)`/g, '$1'), + }} + /> +
    + ) : section.type === "executable" ? ( + +
    +
    +
    + +
    +
    +

    {(section as any).title}

    +

    {(section as any).description}

    +
    +
    +
    + + +
    +
    +
    +
    +                      {(section as any).code}
    +                    
    +
    +
    + ) : null} +
    + ))} +
    + + {/* Footer CTA */} +
    +
    +
    + +
    +
    +

    + {tutorialProgress?.completed ? "想要学习更多?" : "完成本教程!"} +

    +

    + {tutorialProgress?.completed + ? "继续探索系列中的其他教程,提升你的技能。" + : "完成上面的步骤,然后点击\"标记完成\"按钮。"} +

    +
    +
    +
    +
    +
    + ); +} diff --git a/playground/apps/desktop/src/app/tutorial/[id]/page.tsx b/playground/apps/desktop/src/app/tutorial/[id]/page.tsx new file mode 100644 index 0000000..564f2cd --- /dev/null +++ b/playground/apps/desktop/src/app/tutorial/[id]/page.tsx @@ -0,0 +1,11 @@ +import { tutorials } from "@/data/tutorials"; +import TutorialDetailClient from "./client"; + +export function generateStaticParams() { + return tutorials.map((t) => ({ id: t.id })); +} + +export default async function TutorialDetailPage({ params }: { params: Promise<{ id: string }> }) { + const { id } = await params; + return ; +} diff --git a/playground/apps/desktop/src/app/tutorial/[slug]/page.tsx b/playground/apps/desktop/src/app/tutorial/[slug]/page.tsx deleted file mode 100644 index 7cbe9f3..0000000 --- a/playground/apps/desktop/src/app/tutorial/[slug]/page.tsx +++ /dev/null @@ -1,30 +0,0 @@ -import { notFound } from "next/navigation"; -import { TutorialPageClient } from "./tutorial-client"; - -const tutorialMeta: Record = { - "terminal-setup": { - title: "终端环境配置", - files: ["/tutorials/terminal-setup-mac.md"], - tag: "入门", - }, - "cmd-basics": { - title: "命令行 5 分钟入门", - files: ["/tutorials/cmd-basics.md"], - tag: "入门", - }, -}; - -export function generateStaticParams() { - return Object.keys(tutorialMeta).map((slug) => ({ slug })); -} - -export default function TutorialPage({ params }: { params: Promise<{ slug: string }> }) { - return ; -} - -async function TutorialPageClientWrapper({ params }: { params: Promise<{ slug: string }> }) { - const { slug } = await params; - const meta = tutorialMeta[slug]; - if (!meta) notFound(); - return ; -} diff --git a/playground/apps/desktop/src/app/tutorial/[slug]/tutorial-client.tsx b/playground/apps/desktop/src/app/tutorial/[slug]/tutorial-client.tsx deleted file mode 100644 index 0aa9ee5..0000000 --- a/playground/apps/desktop/src/app/tutorial/[slug]/tutorial-client.tsx +++ /dev/null @@ -1,97 +0,0 @@ -"use client"; - -import { useEffect, useState } from "react"; -import { - Button, - Separator, - SidebarTrigger, - Badge, -} from "@innate/ui"; -import { - ResizablePanelGroup, - ResizablePanel, - ResizableHandle, -} from "@innate/ui"; -import { ArrowLeft, BookOpen } from "lucide-react"; -import { useRouter } from "next/navigation"; -import { TutorialMarkdown } from "@/components/tutorial/tutorial-markdown"; -import { TerminalPanel } from "@/components/tutorial/terminal-panel"; -import { TerminalProvider, useTerminal } from "@/components/tutorial/terminal-context"; - -interface TutorialMeta { - title: string; - files: string[]; - tag: string; -} - -export function TutorialPageClient({ meta }: { meta: TutorialMeta }) { - return ( - - - - ); -} - -function TutorialPageInner({ meta }: { meta: TutorialMeta }) { - const router = useRouter(); - const [content, setContent] = useState(null); - const [loading, setLoading] = useState(true); - const { pendingCommand, sendCommand } = useTerminal(); - - useEffect(() => { - async function load() { - try { - const parts = await Promise.all( - meta.files.map(async (file) => { - const res = await fetch(file); - if (!res.ok) throw new Error(`Failed to load ${file}`); - return res.text(); - }) - ); - setContent(parts.join("\n\n---\n\n")); - } catch { - setContent("# 加载失败\n\n教程内容加载出错,请确认 `/public/tutorials/` 目录中有对应的 Markdown 文件。"); - } finally { - setLoading(false); - } - } - load(); - }, [meta]); - - const commandForTerminal = pendingCommand ? pendingCommand.split("__")[0] : null; - - return ( -
    -
    - - - - -

    {meta.title}

    - {meta.tag} -
    - - - -
    -
    - {loading ? ( -
    加载中...
    - ) : content ? ( - - ) : null} -
    -
    -
    - - - - - - -
    -
    - ); -} diff --git a/playground/apps/desktop/src/components/layout/app-shell-inner.tsx b/playground/apps/desktop/src/components/layout/app-shell-inner.tsx index 61b8548..b26c663 100644 --- a/playground/apps/desktop/src/components/layout/app-shell-inner.tsx +++ b/playground/apps/desktop/src/components/layout/app-shell-inner.tsx @@ -4,15 +4,34 @@ import { ReactNode } from "react"; import { SidebarProvider, SidebarInset } from "@innate/ui"; import { AppSidebar } from "@/components/layout/app-sidebar"; import { StatusBar } from "@/components/layout/status-bar"; +import { TerminalPanel } from "@/components/terminal-panel"; +import { useAppStore } from "@/store/useAppStore"; export function AppShellInner({ children }: { children: ReactNode }) { + const { terminalVisible, terminalPosition } = useAppStore(); + return ( - -
    {children}
    +
    +
    + +
    {children}
    +
    + + {/* Terminal - Right Side */} + {terminalVisible && terminalPosition === "right" && ( + + )} +
    + + {/* Terminal - Bottom */} + {terminalVisible && terminalPosition === "bottom" && ( + + )} + - +
    ); } diff --git a/playground/apps/desktop/src/components/layout/app-shell.tsx b/playground/apps/desktop/src/components/layout/app-shell.tsx index 80f311a..edb1d2a 100644 --- a/playground/apps/desktop/src/components/layout/app-shell.tsx +++ b/playground/apps/desktop/src/components/layout/app-shell.tsx @@ -1,21 +1,58 @@ "use client"; -import { ReactNode } from "react"; -import dynamic from "next/dynamic"; +import { ReactNode, useEffect, useState } from "react"; +import { SidebarProvider, SidebarInset } from "@innate/ui"; +import { AppSidebar } from "@/components/layout/app-sidebar"; +import { StatusBar } from "@/components/layout/status-bar"; +import { TerminalPanel } from "@/components/terminal-panel"; +import { useAppStore } from "@/store/useAppStore"; -const AppShellInner = dynamic( - () => - import("./app-shell-inner").then((m) => m.AppShellInner), - { - ssr: false, - loading: () => ( -
    - Loading... +function AppShellContent({ children }: { children: ReactNode }) { + const { terminalVisible, terminalPosition } = useAppStore(); + const [mounted, setMounted] = useState(false); + + useEffect(() => { + setMounted(true); + }, []); + + // Prevent hydration mismatch by not rendering until mounted + if (!mounted) { + return ( +
    +
    +
    + 加载中... +
    - ), + ); } -); + + return ( + + +
    +
    + +
    {children}
    +
    + + {/* Terminal - Right Side */} + {terminalVisible && terminalPosition === "right" && ( + + )} +
    + + {/* Terminal - Bottom */} + {terminalVisible && terminalPosition === "bottom" && ( + + )} + + +
    +
    + ); +} export function AppShell({ children }: { children: ReactNode }) { - return {children}; + return {children}; } diff --git a/playground/apps/desktop/src/components/terminal-panel.tsx b/playground/apps/desktop/src/components/terminal-panel.tsx new file mode 100644 index 0000000..3406b08 --- /dev/null +++ b/playground/apps/desktop/src/components/terminal-panel.tsx @@ -0,0 +1,136 @@ +"use client"; + +import { useEffect, useRef } from "react"; +import { useAppStore } from "@/store/useAppStore"; +import { Card, Button, ScrollArea } from "@innate/ui"; +import { X, Minimize2, PanelRight, PanelBottom, Trash2, Terminal } from "lucide-react"; + +export function TerminalPanel() { + const scrollRef = useRef(null); + const { + terminalPosition, + terminalVisible, + terminalOutput, + isExecuting, + hideTerminal, + toggleTerminalPosition, + clearTerminal, + } = useAppStore(); + + useEffect(() => { + if (scrollRef.current) { + scrollRef.current.scrollTop = scrollRef.current.scrollHeight; + } + }, [terminalOutput]); + + if (!terminalVisible) return null; + + const renderOutput = (line: string, index: number) => { + if (line.startsWith("$")) { + return ( +
    + + ~ + {line.slice(2)} +
    + ); + } + + const parts = line.split(/(\x1b\[\d+m)/g); + const elements: React.ReactNode[] = []; + let currentColor = ""; + + parts.forEach((part, i) => { + if (part.startsWith("\x1b[")) { + const code = part.slice(2, -1); + switch (code) { + case "32m": + currentColor = "text-emerald-400"; + break; + case "31m": + currentColor = "text-rose-400"; + break; + case "33m": + currentColor = "text-amber-400"; + break; + case "36m": + currentColor = "text-cyan-400"; + break; + case "35m": + currentColor = "text-fuchsia-400"; + break; + case "0m": + currentColor = ""; + break; + } + } else if (part) { + elements.push( + + {part} + + ); + } + }); + + return
    {elements.length > 0 ? elements : line}
    ; + }; + + return ( + + {/* Header */} +
    +
    +
    + +
    +
    + 终端 + {isExecuting && ( + + + 执行中 + + )} +
    +
    + +
    + + + +
    +
    + + {/* Output */} + +
    + {terminalOutput.length === 0 ? ( +
    + +

    点击教程中的"运行"按钮开始执行命令

    +
    + ) : ( + terminalOutput.map((line, index) => renderOutput(line, index)) + )} +
    +
    +
    + ); +} diff --git a/playground/apps/desktop/src/data/series.ts b/playground/apps/desktop/src/data/series.ts new file mode 100644 index 0000000..0767c70 --- /dev/null +++ b/playground/apps/desktop/src/data/series.ts @@ -0,0 +1,52 @@ +import { Series } from "@/types"; + +export const series: Series[] = [ + { + id: 'nodejs-fundamentals', + title: 'Node.js 基础', + description: '从零开始学习 Node.js 开发环境配置', + category: 'dev-tools', + difficulty: 'beginner', + icon: '📦', + color: '#339933', + tutorials: ['tutorial-001'], + createdAt: '2026-04-01', + updatedAt: '2026-04-01', + }, + { + id: 'git-fundamentals', + title: 'Git 基础', + description: '掌握版本控制的核心概念', + category: 'dev-tools', + difficulty: 'beginner', + icon: '🌲', + color: '#f05032', + tutorials: ['tutorial-002'], + createdAt: '2026-04-01', + updatedAt: '2026-04-01', + }, + { + id: 'python-fundamentals', + title: 'Python 基础', + description: 'Python 开发环境配置指南', + category: 'dev-tools', + difficulty: 'beginner', + icon: '🐍', + color: '#3776ab', + tutorials: ['tutorial-003'], + createdAt: '2026-04-01', + updatedAt: '2026-04-01', + }, + { + id: 'terminal-basics', + title: '终端基础', + description: '命令行入门必修课程', + category: 'terminal', + difficulty: 'beginner', + icon: '🖥️', + color: '#4a5568', + tutorials: ['tutorial-004', 'tutorial-005'], + createdAt: '2026-04-01', + updatedAt: '2026-04-01', + }, +]; diff --git a/playground/apps/desktop/src/data/tutorials.ts b/playground/apps/desktop/src/data/tutorials.ts new file mode 100644 index 0000000..33ecbb1 --- /dev/null +++ b/playground/apps/desktop/src/data/tutorials.ts @@ -0,0 +1,74 @@ +import { Tutorial } from "@/types"; + +export const tutorials: Tutorial[] = [ + { + id: 'tutorial-001', + title: '安装 Node.js', + description: '使用 fnm 安装和管理 Node.js 版本', + category: 'dev-tools', + difficulty: 'beginner', + duration: 10, + tags: ['nodejs', 'fnm', 'javascript'], + series: 'nodejs-fundamentals', + order: 1, + createdAt: '2026-04-01', + updatedAt: '2026-04-01', + source: 'builtin', + }, + { + id: 'tutorial-002', + title: 'Git 基础', + description: '学习 Git 的基本操作', + category: 'dev-tools', + difficulty: 'beginner', + duration: 15, + tags: ['git', 'version-control'], + series: 'git-fundamentals', + order: 1, + createdAt: '2026-04-01', + updatedAt: '2026-04-01', + source: 'builtin', + }, + { + id: 'tutorial-003', + title: 'Python 环境配置', + description: '使用 uv 管理 Python 环境', + category: 'dev-tools', + difficulty: 'beginner', + duration: 10, + tags: ['python', 'uv'], + series: 'python-fundamentals', + order: 1, + createdAt: '2026-04-01', + updatedAt: '2026-04-01', + source: 'builtin', + }, + { + id: 'tutorial-004', + title: 'ls 命令详解', + description: '掌握目录列表命令', + category: 'terminal', + difficulty: 'beginner', + duration: 5, + tags: ['terminal', 'bash'], + series: 'terminal-basics', + order: 1, + createdAt: '2026-04-01', + updatedAt: '2026-04-01', + source: 'builtin', + }, + { + id: 'tutorial-005', + title: 'cd 和 pwd 命令', + description: '学习目录导航', + category: 'terminal', + difficulty: 'beginner', + duration: 5, + tags: ['terminal', 'bash'], + series: 'terminal-basics', + order: 2, + createdAt: '2026-04-01', + updatedAt: '2026-04-01', + source: 'builtin', + }, +]; diff --git a/playground/apps/desktop/src/store/useAppStore.ts b/playground/apps/desktop/src/store/useAppStore.ts new file mode 100644 index 0000000..4fed30c --- /dev/null +++ b/playground/apps/desktop/src/store/useAppStore.ts @@ -0,0 +1,119 @@ +import { create } from 'zustand'; +import { Tutorial, Series, Progress, TerminalPosition } from '../types'; +import { tutorials as initialTutorials } from '../data/tutorials'; +import { series as initialSeries } from '../data/series'; + +interface AppState { + // Data + tutorials: Tutorial[]; + series: Series[]; + progress: Record; + + // UI State + searchQuery: string; + selectedCategory: string | null; + selectedDifficulty: string | null; + + // Terminal State + terminalPosition: TerminalPosition; + terminalVisible: boolean; + isExecuting: boolean; + terminalOutput: string[]; + + // Actions + setTutorials: (tutorials: Tutorial[]) => void; + setSeries: (series: Series[]) => void; + setSearchQuery: (query: string) => void; + setCategory: (category: string | null) => void; + setDifficulty: (difficulty: string | null) => void; + + // Terminal Actions + showTerminal: () => void; + hideTerminal: () => void; + toggleTerminalPosition: () => void; + setTerminalPosition: (position: TerminalPosition) => void; + addTerminalOutput: (output: string) => void; + clearTerminal: () => void; + setIsExecuting: (executing: boolean) => void; + + // Progress Actions + updateProgress: (progress: Progress) => void; + + // Getters + getFilteredTutorials: () => Tutorial[]; + getTutorialsBySeries: (seriesId: string) => Tutorial[]; +} + +// Re-export for backward compatibility +const mockTutorials = initialTutorials; +const mockSeries = initialSeries; + +export const useAppStore = create((set, get) => ({ + // Initial state + tutorials: mockTutorials, + series: mockSeries, + progress: {}, + + searchQuery: '', + selectedCategory: null, + selectedDifficulty: null, + + terminalPosition: 'hidden', + terminalVisible: false, + isExecuting: false, + terminalOutput: [], + + // Actions + setTutorials: (tutorials) => set({ tutorials }), + setSeries: (series) => set({ series }), + setSearchQuery: (searchQuery) => set({ searchQuery }), + setCategory: (selectedCategory) => set({ selectedCategory }), + setDifficulty: (selectedDifficulty) => set({ selectedDifficulty }), + + // Terminal Actions + showTerminal: () => set({ + terminalVisible: true, + terminalPosition: 'right' + }), + hideTerminal: () => set({ + terminalVisible: false, + terminalPosition: 'hidden' + }), + toggleTerminalPosition: () => set((state) => ({ + terminalPosition: state.terminalPosition === 'right' ? 'bottom' : 'right', + })), + setTerminalPosition: (terminalPosition) => set({ terminalPosition }), + addTerminalOutput: (output) => set((state) => ({ + terminalOutput: [...state.terminalOutput, output], + })), + clearTerminal: () => set({ terminalOutput: [] }), + setIsExecuting: (isExecuting) => set({ isExecuting }), + + // Progress Actions + updateProgress: (progress) => set((state) => ({ + progress: { + ...state.progress, + [progress.tutorialId]: progress, + }, + })), + + // Getters + getFilteredTutorials: () => { + const { tutorials, searchQuery, selectedCategory, selectedDifficulty } = get(); + return tutorials.filter((tutorial) => { + const matchesSearch = !searchQuery || + tutorial.title.toLowerCase().includes(searchQuery.toLowerCase()) || + tutorial.description.toLowerCase().includes(searchQuery.toLowerCase()); + const matchesCategory = !selectedCategory || tutorial.category === selectedCategory; + const matchesDifficulty = !selectedDifficulty || tutorial.difficulty === selectedDifficulty; + return matchesSearch && matchesCategory && matchesDifficulty; + }); + }, + + getTutorialsBySeries: (seriesId: string) => { + const { tutorials } = get(); + return tutorials + .filter((t) => t.series === seriesId) + .sort((a, b) => (a.order || 0) - (b.order || 0)); + }, +})); diff --git a/playground/apps/desktop/src/types/index.ts b/playground/apps/desktop/src/types/index.ts new file mode 100644 index 0000000..c581ba9 --- /dev/null +++ b/playground/apps/desktop/src/types/index.ts @@ -0,0 +1,61 @@ +export interface Tutorial { + id: string; + title: string; + description: string; + category: string; + difficulty: 'beginner' | 'intermediate' | 'advanced'; + duration: number; + tags: string[]; + series?: string; + order?: number; + content?: TutorialSection[]; + executableBlocks?: ExecutableBlock[]; + author?: string; + createdAt: string; + updatedAt: string; + source?: 'builtin' | 'local' | 'imported'; + localPath?: string; +} + +export interface TutorialSection { + id: string; + type: 'text' | 'code' | 'executable' | 'image' | 'video'; + content: string; + language?: string; + executable?: boolean; +} + +export interface ExecutableBlock { + id: string; + code: string; + language: 'bash' | 'powershell' | 'python' | 'javascript'; + platform?: ('macos' | 'windows' | 'linux')[]; + workingDirectory?: string; + environment?: Record; + expectedOutput?: string; +} + +export interface Series { + id: string; + title: string; + description: string; + category: string; + difficulty: 'beginner' | 'intermediate' | 'advanced'; + icon?: string; + color?: string; + tutorials: string[]; + author?: string; + createdAt: string; + updatedAt: string; +} + +export interface Progress { + tutorialId: string; + completed: boolean; + lastSection?: string; + completedSections: string[]; + startedAt?: string; + completedAt?: string; +} + +export type TerminalPosition = 'hidden' | 'right' | 'bottom'; diff --git a/playground/packages/ui/package.json b/playground/packages/ui/package.json index 7af5ec2..1d8e286 100644 --- a/playground/packages/ui/package.json +++ b/playground/packages/ui/package.json @@ -66,6 +66,7 @@ "clean": "rm -rf .turbo node_modules" }, "dependencies": { + "@innate/utils": "workspace:*", "@hookform/resolvers": "^5.2.2", "@radix-ui/react-accordion": "1.2.12", "@radix-ui/react-alert-dialog": "1.1.15", diff --git a/playground/packages/ui/src/components/ui/accordion.tsx b/playground/packages/ui/src/components/ui/accordion.tsx index 565e660..62baf4a 100644 --- a/playground/packages/ui/src/components/ui/accordion.tsx +++ b/playground/packages/ui/src/components/ui/accordion.tsx @@ -4,7 +4,7 @@ import * as React from 'react' import * as AccordionPrimitive from '@radix-ui/react-accordion' import { ChevronDownIcon } from 'lucide-react' -import { cn } from '../../lib/utils' +import { cn } from '@innate/utils' function Accordion({ ...props diff --git a/playground/packages/ui/src/components/ui/alert-dialog.tsx b/playground/packages/ui/src/components/ui/alert-dialog.tsx index d50c0fe..6db4f30 100644 --- a/playground/packages/ui/src/components/ui/alert-dialog.tsx +++ b/playground/packages/ui/src/components/ui/alert-dialog.tsx @@ -3,7 +3,7 @@ import * as React from 'react' import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog' -import { cn } from '../../lib/utils' +import { cn } from '@innate/utils' import { buttonVariants } from './button' function AlertDialog({ diff --git a/playground/packages/ui/src/components/ui/alert.tsx b/playground/packages/ui/src/components/ui/alert.tsx index 4f947f2..c5bdc2e 100644 --- a/playground/packages/ui/src/components/ui/alert.tsx +++ b/playground/packages/ui/src/components/ui/alert.tsx @@ -1,7 +1,7 @@ import * as React from 'react' import { cva, type VariantProps } from 'class-variance-authority' -import { cn } from '../../lib/utils' +import { cn } from '@innate/utils' const alertVariants = cva( 'relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current', diff --git a/playground/packages/ui/src/components/ui/avatar.tsx b/playground/packages/ui/src/components/ui/avatar.tsx index db3b170..edae07b 100644 --- a/playground/packages/ui/src/components/ui/avatar.tsx +++ b/playground/packages/ui/src/components/ui/avatar.tsx @@ -3,7 +3,7 @@ import * as React from 'react' import * as AvatarPrimitive from '@radix-ui/react-avatar' -import { cn } from '../../lib/utils' +import { cn } from '@innate/utils' function Avatar({ className, diff --git a/playground/packages/ui/src/components/ui/badge.tsx b/playground/packages/ui/src/components/ui/badge.tsx index 0ff2907..9c48afb 100644 --- a/playground/packages/ui/src/components/ui/badge.tsx +++ b/playground/packages/ui/src/components/ui/badge.tsx @@ -2,7 +2,7 @@ import * as React from 'react' import { Slot } from '@radix-ui/react-slot' import { cva, type VariantProps } from 'class-variance-authority' -import { cn } from '../../lib/utils' +import { cn } from '@innate/utils' const badgeVariants = cva( 'inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden', diff --git a/playground/packages/ui/src/components/ui/breadcrumb.tsx b/playground/packages/ui/src/components/ui/breadcrumb.tsx index 34e0d5a..a797afe 100644 --- a/playground/packages/ui/src/components/ui/breadcrumb.tsx +++ b/playground/packages/ui/src/components/ui/breadcrumb.tsx @@ -2,7 +2,7 @@ import * as React from 'react' import { Slot } from '@radix-ui/react-slot' import { ChevronRight, MoreHorizontal } from 'lucide-react' -import { cn } from '../../lib/utils' +import { cn } from '@innate/utils' function Breadcrumb({ ...props }: React.ComponentProps<'nav'>) { return