From 9570f66d59107c87eaa93611c7d4a26e0d4cca0e Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Sat, 19 Nov 2022 15:09:48 +0100 Subject: feat: Return Thunderstore mod string of installed mods. (#56) * refactor: Rename function to better differentiate what it does * refactor: Add TS mod string field to NS mod struct This allows us to expose to frontend which Thunderstore mod a Northstar mod may belong to. Field is optional as not all mods may contain a Thunderstore mod string for example when they were installed manually. * feat: Add TS mod string field to NS mod interace * feat: Parse TS mod string and expose to frontend * fix: Mark unused variable as such --- src-vue/src/utils/NorthstarMod.d.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'src-vue/src') diff --git a/src-vue/src/utils/NorthstarMod.d.ts b/src-vue/src/utils/NorthstarMod.d.ts index b0ce0ed3..890414d0 100644 --- a/src-vue/src/utils/NorthstarMod.d.ts +++ b/src-vue/src/utils/NorthstarMod.d.ts @@ -1,5 +1,6 @@ // Matches Rust struct (in lib.rs). export interface NorthstarMod { name: String, + thunderstore_mod_string?: String, enabled: bool, } -- cgit v1.2.3