nopaque/app/static/js/app.js

22 lines
553 B
JavaScript
Raw Normal View History

2023-10-30 11:36:28 +01:00
nopaque.App = class App {
2021-11-30 16:22:16 +01:00
constructor() {
2024-11-18 12:36:37 +01:00
this.socket = io({transports: ['websocket'], upgrade: false});
2024-12-05 14:26:05 +01:00
// Endpoints
this.jobs = new nopaque.app.endpoints.Jobs(this);
2024-12-05 14:26:05 +01:00
this.users = new nopaque.app.endpoints.Users(this);
2024-12-02 09:34:17 +01:00
2024-12-05 14:26:05 +01:00
// Extensions
this.toaster = new nopaque.app.extensions.Toaster(this);
this.ui = new nopaque.app.extensions.UI(this);
this.userHub = new nopaque.app.extensions.UserHub(this);
}
init() {
2024-12-05 14:26:05 +01:00
// Initialize extensions
this.toaster.init();
2024-12-02 09:34:17 +01:00
this.ui.init();
2024-12-05 14:26:05 +01:00
this.userHub.init();
}
2023-10-12 14:13:47 +02:00
};