mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 20:27:23 +00:00
serve frontend
This commit is contained in:
@@ -1,12 +1,19 @@
|
||||
import {User} from "./network/models.ts";
|
||||
|
||||
interface MyWindow extends Window {
|
||||
serverName?: string;
|
||||
cloudflareTurnstileSiteKey?: string;
|
||||
}
|
||||
|
||||
class App {
|
||||
appName = "资源库"
|
||||
appName = "Nysoure"
|
||||
|
||||
user: User | null = null;
|
||||
|
||||
token: string | null = null;
|
||||
|
||||
cloudflareTurnstileSiteKey: string | null = null;
|
||||
|
||||
constructor() {
|
||||
this.init();
|
||||
}
|
||||
@@ -20,6 +27,8 @@ class App {
|
||||
if (tokenJson) {
|
||||
this.token = JSON.parse(tokenJson);
|
||||
}
|
||||
this.appName = (window as MyWindow).serverName || this.appName;
|
||||
this.cloudflareTurnstileSiteKey = (window as MyWindow).cloudflareTurnstileSiteKey || null;
|
||||
}
|
||||
|
||||
saveData() {
|
||||
|
Reference in New Issue
Block a user