mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
[feature-136] can now search models from the download modal
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
export function isValidUrl(url: string): boolean{
|
||||
try{
|
||||
new URL(url);
|
||||
return true;
|
||||
}
|
||||
catch(e){
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
export interface Service<T> {
|
||||
getInstance: () => T;
|
||||
}
|
||||
Reference in New Issue
Block a user