windows: the app's Outbounds page

Adding an outbound from a share link or a backend's JSON (checked here
first, by the same parser as proxy-ctl; tagged from the link unless
named); the list with each one's source, backend and detour, pinned or
left out, its delay on request, and remove for the user's own; the
routing mode; subscriptions added, updated and removed.

dev-service.sh: the demo server resolves names over HTTPS (sing-box needs
a resolver for its direct outbound, and plain DNS may be blocked).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Opus 5.5 committed 2026-10-27 01:37:02 +03:00
1 parent 7dfb3129f4
commit a839d48e02
3 files changed
+249 -2

No files matched your search

+5 -1
View File
@@ -2,6 +2,7 @@
//! notification.
mod dpi;
mod outbounds;
mod overview;
mod telegram;
mod widgets;
@@ -58,6 +59,7 @@ pub struct AppView {
page: Page,
dpi: Entity<dpi::DpiPage>,
telegram: Entity<telegram::TelegramPage>,
outbounds: Entity<outbounds::OutboundsPage>,
_subscriptions: Vec<Subscription>,
}
@@ -75,7 +77,8 @@ impl AppView {
];
let dpi = cx.new(|cx| dpi::DpiPage::new(model.clone(), window, cx));
let telegram = cx.new(|cx| telegram::TelegramPage::new(model.clone(), window, cx));
Self { model, page: Page::Overview, dpi, telegram, _subscriptions: subscriptions }
let outbounds = cx.new(|cx| outbounds::OutboundsPage::new(model.clone(), window, cx));
Self { model, page: Page::Overview, dpi, telegram, outbounds, _subscriptions: subscriptions }
}
fn sidebar(&self, cx: &mut Context<Self>) -> impl IntoElement {
@@ -95,6 +98,7 @@ impl Render for AppView {
Page::Overview => overview::render(&self.model, window, cx).into_any_element(),
Page::Dpi => self.dpi.clone().into_any_element(),
Page::Telegram => self.telegram.clone().into_any_element(),
Page::Outbounds => self.outbounds.clone().into_any_element(),
other => widgets::page(other.title(), cx).child(div().text_color(cx.theme().muted_foreground).child("Not here yet.")).into_any_element(),
};
div()