Compare commits

..

1 Commits

Author SHA1 Message Date
DecDuck
3f85d21f97 fix: style fixes and server error messages 2025-11-30 23:12:16 +11:00
3 changed files with 10 additions and 5 deletions

View File

@@ -38,7 +38,7 @@
>
<dt>
<DisclosureButton
class="flex w-full items-center justify-between text-left text-white"
class="flex w-full items-center justify-between text-left text-gray-900 dark:text-white"
>
<span class="text-sm font-semibold font-display">{{
nav.name
@@ -73,9 +73,9 @@
alt=""
/>
</div>
<div class="flex flex-col gap-x-2">
<div class="truncate inline-flex items-center gap-x-2">
<p
class="truncate text-sm whitespace-nowrap font-display font-semibold"
class="text-sm whitespace-nowrap font-display font-semibold"
>
{{ item.label }}
</p>

View File

@@ -106,8 +106,8 @@ pub fn auth_initiate_logic(mode: String) -> Result<String, RemoteAccessError> {
name: format!("{} (Desktop)", hostname.display()),
platform: env::consts::OS.to_string(),
capabilities: HashMap::from([
("peerAPI".to_owned(), CapabilityConfiguration {}),
("cloudSaves".to_owned(), CapabilityConfiguration {}),
("PeerAPI".to_owned(), CapabilityConfiguration {}),
("CloudSaves".to_owned(), CapabilityConfiguration {}),
]),
mode,
};

View File

@@ -224,6 +224,11 @@ pub async fn fetch_game_version_options_logic(
return Err(RemoteAccessError::InvalidResponse(err));
}
let raw = response.text().await?;
info!("{}", raw);
return Err(RemoteAccessError::CorruptedState);
let data: Vec<GameVersion> = response.json().await?;
let state_lock = state.lock();