gui: new login screen
Build Mumble Web 2 / macos_build (push) Successful in 1m6s
Build Mumble Web 2 / linux_build (push) Successful in 1m26s
Build Mumble Web 2 / windows_build (push) Successful in 3m7s
Build Mumble Web 2 / android_build (push) Successful in 4m34s

This commit is contained in:
2026-05-04 23:04:03 -06:00
parent e72bb6d4c4
commit 25730858f7
10 changed files with 995 additions and 168 deletions
+5 -1
View File
@@ -37,7 +37,11 @@ impl super::PlatformInterface for DesktopPlatform {
_client: &reqwest::Client,
address: &str,
) -> color_eyre::Result<ServerStatus> {
mumble_web2_common::ping_server(address, 64738).await
let (host, port) = match address.rsplit_once(':') {
Some((h, p)) => (h, p.parse().unwrap_or(64738)),
None => (address, 64738),
};
mumble_web2_common::ping_server(host, port).await
}
fn init_logging() {
+5 -1
View File
@@ -33,7 +33,11 @@ impl super::PlatformInterface for MobilePlatform {
_client: &reqwest::Client,
address: &str,
) -> color_eyre::Result<ServerStatus> {
mumble_web2_common::ping_server(address, 64738).await
let (host, port) = match address.rsplit_once(':') {
Some((h, p)) => (h, p.parse().unwrap_or(64738)),
None => (address, 64738),
};
mumble_web2_common::ping_server(host, port).await
}
fn init_logging() {
+2 -6
View File
@@ -28,12 +28,8 @@ impl super::ConfigSystemInterface for NativeConfigSystem {
match serde_json::from_value::<T>(value_untyped) {
Ok(v) => Some(v),
Err(_) => {
let default_value = config_get_default(key)
.expect("Default value required after config parse failure");
Some(
serde_json::from_value::<T>(default_value)
.expect("Default value could not be parsed"),
)
let default_value = config_get_default(key)?;
serde_json::from_value::<T>(default_value).ok()
}
}
}