further simplify proxy config

This commit is contained in:
2025-10-25 18:15:26 -06:00
parent 134e42e69f
commit b8a201911f
11 changed files with 114 additions and 2693 deletions
+6 -6
View File
@@ -3,7 +3,7 @@
use base64::{display::Base64Display, prelude::BASE64_URL_SAFE};
use dioxus::prelude::*;
use mime_guess::Mime;
use mumble_web2_common::GuiConfig;
use mumble_web2_common::ClientConfig;
use ordermap::OrderSet;
use sir::{css, global_css};
use std::collections::HashMap;
@@ -26,7 +26,7 @@ pub enum Command {
Connect {
address: String,
username: String,
config: GuiConfig,
config: ClientConfig,
},
SendChat {
markdown: String,
@@ -437,7 +437,7 @@ pub fn ChatView() -> Element {
//},
#[component]
pub fn ControlView(config: Resource<GuiConfig>) -> Element {
pub fn ControlView(config: Resource<ClientConfig>) -> Element {
let net: Coroutine<Command> = use_coroutine_handle();
let status = &STATE.status;
let server = STATE.server.read();
@@ -705,7 +705,7 @@ pub fn ControlView(config: Resource<GuiConfig>) -> Element {
}
#[component]
pub fn ServerView(config: Resource<GuiConfig>) -> Element {
pub fn ServerView(config: Resource<ClientConfig>) -> Element {
let net: Coroutine<Command> = use_coroutine_handle();
let server = STATE.server.read();
let Some(&UserState {
@@ -803,7 +803,7 @@ pub fn ServerView(config: Resource<GuiConfig>) -> Element {
}
#[component]
pub fn LoginView(config: Resource<GuiConfig>) -> Element {
pub fn LoginView(config: Resource<ClientConfig>) -> Element {
let net: Coroutine<Command> = use_coroutine_handle();
let mut address_input = use_signal(|| None::<String>);
@@ -931,7 +931,7 @@ pub fn app() -> Element {
let config = use_resource(|| async move {
match imp::load_config().await {
Ok(config) => config,
Err(_) => GuiConfig::default(),
Err(_) => ClientConfig::default(),
}
});