1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-07-16 21:14:05 +00:00

Application settings

This commit is contained in:
2023-01-20 15:35:16 +01:00
parent 6703950734
commit 6c77941ae9
10 changed files with 234 additions and 20 deletions

View File

@ -1,5 +1,21 @@
export namespace app {
export class Settings {
defaultLimit: number;
defaultSort: string;
autosubmitQuery: boolean;
static createFrom(source: any = {}) {
return new Settings(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.defaultLimit = source["defaultLimit"];
this.defaultSort = source["defaultSort"];
this.autosubmitQuery = source["autosubmitQuery"];
}
}
export class findResult {
total: number;
results: any;