[feature-136] can now search models from the download modal

This commit is contained in:
MathieuG-P
2023-05-16 00:50:47 +02:00
parent eb9775c89f
commit 645f18002a
22 changed files with 336 additions and 109 deletions
+9
View File
@@ -0,0 +1,9 @@
export function isValidUrl(url: string): boolean{
try{
new URL(url);
return true;
}
catch(e){
return false;
}
}
+3 -2
View File
@@ -1,4 +1,4 @@
import { MSModelType } from "./model-saber.model";
import { MSGetSort, MSModelType } from "./model-saber.model";
export const MODEL_SABER_URL = "https://modelsaber.com";
@@ -23,4 +23,5 @@ export const MODEL_FILE_EXTENSIONS = {
[MSModelType.Saber]: ".saber"
}
export const MODEL_TYPES = Array.from(Object.values(MSModelType));
export const MODEL_TYPES = Array.from(Object.values(MSModelType));
export const MS_GET_QUERY_SORTS = Array.from(Object.values(MSGetSort));
@@ -68,4 +68,5 @@ export enum MSGetQueryFilterType {
DiscordID = "discordid",
ID = "id",
SearchName = "searchName"
}
}
+3
View File
@@ -0,0 +1,3 @@
export interface Service<T> {
getInstance: () => T;
}