diff options
Diffstat (limited to 'src-vue/src/utils')
4 files changed, 27 insertions, 2 deletions
diff --git a/src-vue/src/utils/NorthstarMod.d.ts b/src-vue/src/utils/NorthstarMod.d.ts index 890414d0..747836a2 100644 --- a/src-vue/src/utils/NorthstarMod.d.ts +++ b/src-vue/src/utils/NorthstarMod.d.ts @@ -1,6 +1,6 @@ // Matches Rust struct (in lib.rs). export interface NorthstarMod { - name: String, - thunderstore_mod_string?: String, + name: string, + thunderstore_mod_string?: string, enabled: bool, } diff --git a/src-vue/src/utils/thunderstore/ThunderstoreMod.d.ts b/src-vue/src/utils/thunderstore/ThunderstoreMod.d.ts new file mode 100644 index 00000000..c14a83a0 --- /dev/null +++ b/src-vue/src/utils/thunderstore/ThunderstoreMod.d.ts @@ -0,0 +1,9 @@ +import { ThunderstoreModVersion } from "./ThunderstoreModVersion"; + +export interface ThunderstoreMod { + name: string; + owner: string; + rating_score: number; + package_url: string; + versions: ThunderstoreModVersion[]; +} diff --git a/src-vue/src/utils/thunderstore/ThunderstoreModStatus.ts b/src-vue/src/utils/thunderstore/ThunderstoreModStatus.ts new file mode 100644 index 00000000..f2351226 --- /dev/null +++ b/src-vue/src/utils/thunderstore/ThunderstoreModStatus.ts @@ -0,0 +1,7 @@ +export enum ThunderstoreModStatus { + INSTALLED, + BEING_INSTALLED, + BEING_UPDATED, + NOT_INSTALLED, + OUTDATED +} diff --git a/src-vue/src/utils/thunderstore/ThunderstoreModVersion.d.ts b/src-vue/src/utils/thunderstore/ThunderstoreModVersion.d.ts new file mode 100644 index 00000000..f53f0362 --- /dev/null +++ b/src-vue/src/utils/thunderstore/ThunderstoreModVersion.d.ts @@ -0,0 +1,9 @@ +export interface ThunderstoreModVersion { + full_name: string; + description: string; + icon: string; + version_number: string; + download_url: string; + downloads: number; + date_created: string; +} |