advancement on oneClick model AND lazy loading react windows

This commit is contained in:
MathieuG-P
2022-12-24 18:19:59 +01:00
parent 6c5190eacb
commit 2aed523480
19 changed files with 440 additions and 47 deletions
@@ -0,0 +1,42 @@
export interface MSModel {
tags: string[],
type: MSModelType,
name: string,
author: string,
thumbnail: string,
id: number,
hash: string,
bsaber: string,
status: string,
discordid: string,
discord?: string,
variationid?: number,
platform: MSModelPlatform,
download: string,
install_link: string,
date: string
}
export type MSModelType = "saber"|"platform"|"bloq"|"misc"|"avatar";
export type MSModelPlatform = "pc"|"quest"|"all";
export interface MSGetQuery {
type?: MSModelType;
platform?: MSModelPlatform,
start?: number,
end?: number,
sort?: MSGetSort,
sortDirection?: MSGetSortDirection,
filter?: MSGetQueryFilter[]
}
export interface MSGetQueryFilter {
type:MSGetQueryFilterType,
value: string|number,
isNegative?: boolean
}
export type MSGetResponse<T extends string = string> = Record<T, MSModel>;
export type MSGetSort = "date"|"name"|"author"
export type MSGetSortDirection = "asc"|"desc"
export type MSGetQueryFilterType = "author"|"name"|"tag"|"hash"|"discordid"|"id"|"searchName"
@@ -2,5 +2,6 @@ export type AppWindow = (
"index.html" |
"launcher.html" |
"oneclick-download-map.html"|
"oneclick-download-playlist.html"
"oneclick-download-playlist.html"|
"oneclick-download-model.html"
);