mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-03-14 06:30:35 +00:00
24 lines
685 B
JavaScript
24 lines
685 B
JavaScript
nopaque.app.Client = class Client {
|
|
constructor() {
|
|
this.socket = io({transports: ['websocket'], upgrade: false});
|
|
|
|
// Endpoints
|
|
this.corpora = new nopaque.app.endpoints.Corpora(this);
|
|
this.jobs = new nopaque.app.endpoints.Jobs(this);
|
|
this.settings = new nopaque.app.endpoints.Settings(this);
|
|
this.users = new nopaque.app.endpoints.Users(this);
|
|
|
|
// 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() {
|
|
// Initialize extensions
|
|
this.toaster.init();
|
|
this.ui.init();
|
|
this.userHub.init();
|
|
}
|
|
};
|