Commit 969f414
authored
feat(dexdex): forward tauri dev console logs to terminal (#282)
## Summary
- forward DexDex WebView `console.*` logs to terminal output in Tauri
development runtime
- keep production behavior unchanged by enabling the bridge only in
development mode with Tauri runtime checks
- add Tauri log plugin wiring on both Rust host and web client side
- sync DexDex docs contracts to reflect the new development logging
behavior
## Changes
- add `@tauri-apps/plugin-log` dependency and lockfile updates
- register `tauri_plugin_log::Builder::new().build()` in Tauri host
runtime
- add `log:default` capability permission for DexDex desktop window
- add `initDevConsoleTerminalBridge()` in app bootstrap
- add `dev-console-terminal-bridge.ts` and tests for level mapping,
no-op without Tauri runtime, and idempotent install
- update DexDex app and project docs:
- `docs/apps-dexdex-desktop-app-foundation.md`
- `docs/project-dexdex.md`
## Validation
- `cd apps/dexdex && pnpm test`
- `cargo test` (repository root)
- `cd apps/dexdex/src-tauri && cargo test`1 parent 50dcd4e commit 969f414
11 files changed
Lines changed: 689 additions & 1 deletion
File tree
- apps/dexdex
- src-tauri
- capabilities
- src
- src
- lib
- docs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
0 commit comments