git.schokokeks.org
Repositories
Help
Report an Issue
wirc-frontend.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
97e3029
Branches
Tags
master
wirc-frontend.git
source
logic
main.ts
[mov] source/*.ts -> source/logic/*.ts
Christian Fraß
commited
97e3029
at 2021-11-20 15:04:11
main.ts
Blame
History
Raw
var _model; /** * initializes the system */ async function main ( ): Promise<void> { const conf: type_conf = await fetch("conf.json").then<type_conf>(x => x.json()); const model: type_model = { "state": enum_state.offline, "connection_id": null, "nickname": null, "channels": {}, "queries": {}, "active": null, "listeners": {}, }; _model = model; ns_model.setup(conf, model); ns_view.setup(conf, model); ns_control.setup(conf, model); } document.addEventListener("DOMContentLoaded", () => {main();});