export interface IConfig { app_name: string; version: string; permisstions: string[]; pack_name: string; display: "fullscreen" | "inapp"; app_type: | "global" | "personal" | "workspace" | "workspace_enterprise" | "core_app"; } const CONFIG_DEFAULT: IConfig = { app_name: "", version: "", permisstions: [], pack_name: "", display: "fullscreen", app_type: "personal", }; export default class Applications { private config: IConfig = { ...CONFIG_DEFAULT }; public requetConfig() { return new Promise(async (resolve, reject) => { // // const config: IConfig = await fetch( // // `http://172.20.10.6:3000/config.json` // // ).then((response) => response.json()); // resolve(config); }); } public setConfig(config: IConfig) { this.config = config; } public getConfig() { return this.config; } }