From df48f888ff293444d5a1299f97a94ab51e4f62c4 Mon Sep 17 00:00:00 2001 From: Thoronium <107363768+NotThorny@users.noreply.github.com> Date: Tue, 25 Apr 2023 14:19:17 -0600 Subject: [PATCH] Mod browser page number --- src-tauri/src/release.rs | 2 +- src/ui/Mods.css | 2 +- src/ui/Mods.tsx | 7 ++++++- src/ui/components/mods/ModPages.css | 21 ++++++++++++++++++++- src/ui/components/news/NewsSection.tsx | 2 +- 5 files changed, 29 insertions(+), 5 deletions(-) diff --git a/src-tauri/src/release.rs b/src-tauri/src/release.rs index 9056f77..647f454 100644 --- a/src-tauri/src/release.rs +++ b/src-tauri/src/release.rs @@ -17,7 +17,7 @@ pub async fn get_latest_release() -> Release { .unwrap(); let text = response.text().await.unwrap(); - println!("Response: {}", text); + //println!("Response: {}", text); // Parse "tag_name" from JSON let json: serde_json::Value = serde_json::from_str(&text).unwrap(); diff --git a/src/ui/Mods.css b/src/ui/Mods.css index 709ca26..520a3a8 100644 --- a/src/ui/Mods.css +++ b/src/ui/Mods.css @@ -1,6 +1,6 @@ .Mods { backdrop-filter: blur(10px); - height: 90%; + height: 80%; width: 100%; } diff --git a/src/ui/Mods.tsx b/src/ui/Mods.tsx index 623d1f7..612f277 100644 --- a/src/ui/Mods.tsx +++ b/src/ui/Mods.tsx @@ -188,7 +188,12 @@ export class Mods extends React.Component { - + {this.state.category != 'installed' && ( + <> +

{this.state.page}

+ + + )} { case 'latest_version': news = ( - Latest version: Grasscutter 1.4.6 - Cultivation 1.0.10 + Latest version: Grasscutter 1.4.8 - Cultivation 1.0.26 ) break