Compare commits

...

2 Commits

Author SHA1 Message Date
DecDuck
fe4f295fcd fix: style and capability 2025-12-01 08:42:26 +11:00
DecDuck
1f809063ef fix: fetching versions from server 2025-12-01 08:35:43 +11:00
3 changed files with 5 additions and 10 deletions

View File

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

View File

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

View File

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