diff --git a/.gitignore b/.gitignore index d9fcee736..363fe7422 100644 --- a/.gitignore +++ b/.gitignore @@ -110,3 +110,5 @@ fabric.properties # MSVC Windows builds of rustc generate these, which store debugging information *.pdb +theseus.iml + diff --git a/Cargo.lock b/Cargo.lock index d89677e07..9fe68b1f0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4609,7 +4609,7 @@ dependencies = [ [[package]] name = "theseus" -version = "0.5.0" +version = "0.5.1" dependencies = [ "async-recursion", "async-tungstenite", @@ -4654,7 +4654,7 @@ dependencies = [ [[package]] name = "theseus_cli" -version = "0.5.0" +version = "0.5.1" dependencies = [ "argh", "color-eyre", @@ -4681,7 +4681,7 @@ dependencies = [ [[package]] name = "theseus_gui" -version = "0.5.0" +version = "0.5.1" dependencies = [ "chrono", "cocoa", diff --git a/theseus.iml b/theseus.iml new file mode 100644 index 000000000..fbdd85c4d --- /dev/null +++ b/theseus.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/theseus/Cargo.toml b/theseus/Cargo.toml index 30c3dc8ed..d41ad9a08 100644 --- a/theseus/Cargo.toml +++ b/theseus/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "theseus" -version = "0.5.0" +version = "0.5.1" authors = ["Jai A "] edition = "2018" diff --git a/theseus/src/state/children.rs b/theseus/src/state/children.rs index efa2b0424..189a8eab3 100644 --- a/theseus/src/state/children.rs +++ b/theseus/src/state/children.rs @@ -160,12 +160,11 @@ impl Children { .signed_duration_since(last_updated_playtime) .num_seconds(); if diff >= 60 { - if let Err(e) = - profile::edit(&associated_profile, |mut prof| { - prof.metadata.recent_time_played += diff as u64; - async { Ok(()) } - }) - .await + if let Err(e) = profile::edit(&associated_profile, |prof| { + prof.metadata.recent_time_played += diff as u64; + async { Ok(()) } + }) + .await { tracing::warn!( "Failed to update playtime for profile {}: {}", @@ -181,7 +180,7 @@ impl Children { let diff = Utc::now() .signed_duration_since(last_updated_playtime) .num_seconds(); - if let Err(e) = profile::edit(&associated_profile, |mut prof| { + if let Err(e) = profile::edit(&associated_profile, |prof| { prof.metadata.recent_time_played += diff as u64; async { Ok(()) } }) diff --git a/theseus_cli/Cargo.toml b/theseus_cli/Cargo.toml index 762d23120..1bd9be909 100644 --- a/theseus_cli/Cargo.toml +++ b/theseus_cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "theseus_cli" -version = "0.5.0" +version = "0.5.1" authors = ["Jai A "] edition = "2018" diff --git a/theseus_gui/package.json b/theseus_gui/package.json index 273e5effd..0cb6f3d39 100644 --- a/theseus_gui/package.json +++ b/theseus_gui/package.json @@ -1,7 +1,7 @@ { "name": "theseus_gui", "private": true, - "version": "0.5.0", + "version": "0.5.1", "type": "module", "scripts": { "dev": "vite", @@ -18,7 +18,7 @@ "floating-vue": "^2.0.0-beta.20", "mixpanel-browser": "^2.47.0", "ofetch": "^1.0.1", - "omorphia": "^0.4.35", + "omorphia": "^0.4.38", "pinia": "^2.1.3", "qrcode.vue": "^3.4.0", "tauri-plugin-window-state-api": "github:tauri-apps/tauri-plugin-window-state#v1", diff --git a/theseus_gui/pnpm-lock.yaml b/theseus_gui/pnpm-lock.yaml index 027d36dfa..145740cf2 100644 --- a/theseus_gui/pnpm-lock.yaml +++ b/theseus_gui/pnpm-lock.yaml @@ -21,8 +21,8 @@ dependencies: specifier: ^1.0.1 version: 1.0.1 omorphia: - specifier: ^0.4.35 - version: 0.4.35 + specifier: ^0.4.38 + version: 0.4.38 pinia: specifier: ^2.1.3 version: 2.1.3(vue@3.3.4) @@ -1348,8 +1348,8 @@ packages: ufo: 1.1.2 dev: false - /omorphia@0.4.35: - resolution: {integrity: sha512-ZxA6sJKWZbiG49l/gTG25cxAvTcIfVSLhuIV2e+LSY0nwkZO4EFvxhzGNz0exR3lVs+OdDCdJyb1U2QYMVbVrA==} + /omorphia@0.4.38: + resolution: {integrity: sha512-V0vEarmAart6Gf5WuPUZ58TuIiQf7rI5HJpmYU7FVbtdvZ3q08VqyKZflCddbeBSFQ4/N+A+sNr/ELf/jz+Cug==} dependencies: dayjs: 1.11.7 floating-vue: 2.0.0-beta.20(vue@3.3.4) diff --git a/theseus_gui/src-tauri/Cargo.toml b/theseus_gui/src-tauri/Cargo.toml index de8b7a061..db9f66549 100644 --- a/theseus_gui/src-tauri/Cargo.toml +++ b/theseus_gui/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "theseus_gui" -version = "0.5.0" +version = "0.5.1" description = "A Tauri App" authors = ["you"] license = "" diff --git a/theseus_gui/src-tauri/tauri.conf.json b/theseus_gui/src-tauri/tauri.conf.json index 1f11c3e85..4bc1b6a5f 100644 --- a/theseus_gui/src-tauri/tauri.conf.json +++ b/theseus_gui/src-tauri/tauri.conf.json @@ -8,7 +8,7 @@ }, "package": { "productName": "Modrinth App", - "version": "0.5.0" + "version": "0.5.1" }, "tauri": { "allowlist": { diff --git a/theseus_gui/src/App.vue b/theseus_gui/src/App.vue index a70cde19c..3b01c4b16 100644 --- a/theseus_gui/src/App.vue +++ b/theseus_gui/src/App.vue @@ -218,10 +218,11 @@ command_listener((e) => {
- + + @@ -240,6 +241,7 @@ command_listener((e) => {
- +
@@ -260,7 +262,7 @@ command_listener((e) => {
- +
@@ -290,7 +292,7 @@ command_listener((e) => { offset-height="var(--appbar-height)" offset-width="var(--sidebar-width)" /> - + diff --git a/theseus_gui/src/components/ui/tutorial/FakeGridDisplay.vue b/theseus_gui/src/components/ui/tutorial/FakeGridDisplay.vue index d955e77ea..bafa22ef0 100644 --- a/theseus_gui/src/components/ui/tutorial/FakeGridDisplay.vue +++ b/theseus_gui/src/components/ui/tutorial/FakeGridDisplay.vue @@ -32,6 +32,7 @@ defineProps({ @@ -41,6 +42,7 @@ defineProps({ @@ -50,6 +52,7 @@ defineProps({ diff --git a/theseus_gui/src/components/ui/tutorial/FakeRowDisplay.vue b/theseus_gui/src/components/ui/tutorial/FakeRowDisplay.vue index 74f417de3..a7a2abe50 100644 --- a/theseus_gui/src/components/ui/tutorial/FakeRowDisplay.vue +++ b/theseus_gui/src/components/ui/tutorial/FakeRowDisplay.vue @@ -63,7 +63,7 @@ defineProps({ > diff --git a/theseus_gui/src/components/ui/tutorial/FakeSearch.vue b/theseus_gui/src/components/ui/tutorial/FakeSearch.vue index 17f53cf44..d32d41518 100644 --- a/theseus_gui/src/components/ui/tutorial/FakeSearch.vue +++ b/theseus_gui/src/components/ui/tutorial/FakeSearch.vue @@ -176,7 +176,7 @@ defineProps({