windows: the app's skeleton: the service from GPUI, an overview

- bridge: ps-client on a tokio runtime of its own, awaited from GPUI's
  executor; log following as a channel that reconnects.
- model: status polled every 2 s (outbounds every fifth round and on a
  reconnect), the zapret presets and tg links on connecting, and changes
  sent through ps-client's edits; what came of each is a notification,
  the service's own words when it refuses or cannot apply.
- The window: a sidebar of pages; the overview shows the local proxy, the
  DPI bypass and the Telegram proxy with their states and switches, and
  what the service warns of. The other pages come next.
- Icons: the components' own and the few the app adds, not all of Lucide.
- zapret's engines by upstream's names (zapret-discord-youtube, zapret2).
- gui-shot.sh can click before the shot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Opus 5.5 committed 2026-10-27 01:25:11 +03:00
1 parent 63aede0dc1
commit d3ba00087d
11 files changed
+654 -21

No files matched your search

+4 -3
View File
@@ -194,10 +194,11 @@ pub fn set_zapret_enabled(c: &mut Value, on: bool) {
c["zapret"]["enable"] = on.into();
}
/// The DPI bypass's engine: `zapret` (Flowseal's presets) or `zapret2`.
/// The DPI bypass's engine, by upstream's names: `zapret-discord-youtube` (Flowseal's
/// presets) or `zapret2`.
pub fn set_zapret_engine(c: &mut Value, engine: &str) -> Result<()> {
if !matches!(engine, "zapret" | "zapret2") {
bail!("the engine is zapret or zapret2");
if !matches!(engine, "zapret-discord-youtube" | "zapret2") {
bail!("the engine is zapret-discord-youtube or zapret2");
}
c["zapret"]["engine"] = engine.into();
Ok(())