| LOW | .github/workflows/release.yml | 1 | # SwitchHosts v5 (Tauri) release workflow. |
| LOW | .github/workflows/release.yml | 21 | # Tauri updater signing: |
| LOW | .github/workflows/release.yml | 421 | |
| LOW | src-tauri/Cargo.toml | 21 | tauri-plugin-log = "2" |
| LOW | src-tauri/tests/window_config.rs | 1 | //! Structural canaries for window setup that have no behavioural |
| LOW | src-tauri/src/http_api.rs | 1 | //! Local HTTP API server. |
| LOW | src-tauri/src/http_api.rs | 21 | //! - `stop()` aborts the join handle and clears the slot. |
| LOW | src-tauri/src/import_export.rs | 1 | //! Manual import / export of v3, v4, and v5 backup JSON files. |
| LOW | src-tauri/src/import_export.rs | 161 | } |
| LOW | src-tauri/src/lib.rs | 201 | }) |
| LOW | src-tauri/src/tray.rs | 1 | //! System tray for the v5 main app. |
| LOW | src-tauri/src/tray.rs | 41 | |
| LOW | src-tauri/src/tray.rs | 501 | /// On any Retina mac the cursor coords are ~2× too large, so the |
| LOW | src-tauri/src/tray.rs | 621 | // Tauri's `Focused(false)` event is unreliable as a click-outside signal |
| LOW | src-tauri/src/commands.rs | 1 | //! Tauri commands. |
| LOW | src-tauri/src/commands.rs | 261 | |
| LOW | src-tauri/src/commands.rs | 1101 | // TopBar/ImportFromUrl keeps working without changes: |
| LOW | src-tauri/src/commands.rs | 1401 | Ok(builder) |
| LOW | src-tauri/src/app_menu.rs | 1 | //! Application menu — the macOS menu bar / Windows+Linux window menu. |
| LOW | src-tauri/src/refresh.rs | 1 | //! Remote `hosts` refresh, both renderer-driven and time-driven. |
| LOW | src-tauri/src/lifecycle.rs | 1 | //! Window lifecycle plumbing for the v5 main window. |
| LOW | src-tauri/src/lifecycle.rs | 181 | |
| LOW | src-tauri/src/find.rs | 1 | //! Find / replace window plumbing. |
| LOW | src-tauri/src/find.rs | 181 | // string search by default. Mirrors the |
| LOW | src-tauri/src/hosts_apply/elevation.rs | 1 | //! Privileged write to the system hosts file. |
| LOW | src-tauri/src/hosts_apply/elevation.rs | 21 | //! with a process-lifetime cached `AuthorizationRef` (single prompt) |
| LOW | src-tauri/src/hosts_apply/elevation.rs | 61 | } |
| LOW | src-tauri/src/hosts_apply/elevation.rs | 381 | #[cfg(target_os = "macos")] |
| LOW | src-tauri/src/hosts_apply/elevation.rs | 441 | code.map(|c| c.to_string()).unwrap_or_else(|| "?".into()), |
| LOW | src-tauri/src/hosts_apply/elevation.rs | 461 | // resolve to a path containing literal `%`. Going through cmd |
| LOW | src-tauri/src/hosts_apply/elevation.rs | 541 | // ourselves. The thread is short-lived (one elevated write + |
| LOW | src-tauri/src/hosts_apply/error.rs | 1 | //! Apply-time error type. |
| LOW | src-tauri/src/hosts_apply/error.rs | 21 | #[allow(dead_code)] |
| LOW | src-tauri/src/hosts_apply/write.rs | 1 | //! System hosts write orchestration. |
| LOW | src-tauri/src/hosts_apply/aggregate.rs | 1 | //! Selected-content aggregation. |
| LOW | src-tauri/src/hosts_apply/mod.rs | 1 | //! Hosts apply pipeline. |
| LOW | src-tauri/src/hosts_apply/history.rs | 1 | //! Apply history persistence: `internal/histories/system-hosts.json`. |
| LOW | src-tauri/src/hosts_apply/cmd_runner.rs | 1 | //! Run the user-configured `cmd_after_hosts_apply` script after every |
| LOW | src-tauri/src/storage/manifest.rs | 1 | //! `~/.SwitchHosts/manifest.json` reader, writer, and tree operations. |
| LOW | src-tauri/src/storage/manifest.rs | 61 | /// `internal/state.json`. The returned `Manifest.root` is in the |
| LOW | src-tauri/src/storage/entries.rs | 1 | //! `~/.SwitchHosts/entries/<id>.hosts` reader and writer. |
| LOW | src-tauri/src/storage/mod.rs | 21 | |
| LOW | src-tauri/src/storage/mod.rs | 41 | /// pipeline. Tauri runs `#[tauri::command] async fn`s concurrently |
| LOW | src-tauri/src/storage/state.rs | 1 | //! `~/.SwitchHosts/internal/state.json` reader and writer. |
| LOW | src-tauri/src/storage/state.rs | 41 | pub struct TreeState { |
| LOW | src-tauri/src/storage/tree_format.rs | 1 | //! Two-way translation between the renderer's `IHostsListObject` shape |
| LOW | src-tauri/src/storage/tree_format.rs | 21 | //! { id, type, title, on, isSys?, contentFile?, |
| LOW | src-tauri/src/storage/tree_format.rs | 241 | |
| LOW | src-tauri/src/migration/mod.rs | 1 | //! First-startup PotDb → v5 migration. |
| LOW | src-tauri/src/migration/potdb.rs | 1 | //! Read legacy Electron PotDb data directly from disk. |
| LOW | src-tauri/src/migration/potdb.rs | 21 | //! history/ |