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-11-07 12:12:42 +01:00
|
|
|
|
2024-12-05 14:26:05 +01:00
|
|
|
// Endpoints
|
2024-12-06 11:41:36 +01:00
|
|
|
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);
|
|
|
|
}
|
2023-10-24 15:09:20 +02:00
|
|
|
|
|
|
|
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-24 15:09:20 +02:00
|
|
|
}
|
2023-10-12 14:13:47 +02:00
|
|
|
};
|