blob: 3506841bc22e0ef9f809ec200b54954086d4249b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
import {FaunerieApp} from "./FaunerieApp";
import {Faunerie} from "libfaunerie";
export class FaunerieDataStore {
public loaded: boolean;
public loadedFromCache: boolean;
public hadErrorsLoading: boolean;
public searching: boolean;
public source: string;
public appData: string;
public database: Faunerie;
public db: object;
public tags: any[][];
public tagsHashed: object;
public currentView: any[];
public currentViewItems: any[];
public page: number;
public modal: any;
public loader: any;
public login: any;
public unloaded: boolean;
public currentImage: any;
public currentImageClasses: any[];
public needUpdate: boolean;
public lastQuery: string;
public lastPress: number;
public close: boolean;
constructor(instance: FaunerieApp) {
let bootstrap = instance.bootstrap;
this.page = 1;
this.searching = false;
this.unloaded = false;
// @ts-ignore
this.modal = new bootstrap.Modal(document.getElementById("preview"));
// @ts-ignore
this.loader = new bootstrap.Modal(document.getElementById("loader"));
this.login = new bootstrap.Modal(document.getElementById("login"));
this.loader.show();
this.currentImage = null;
this.currentImageClasses = [];
this.hadErrorsLoading = false;
this.lastQuery = "";
this.loaded = false;
}
}
|