summaryrefslogtreecommitdiff
path: root/WebInterface/NodeJSServer/src/js/modules/ui/collections/login.js
blob: 98a6b30d9c65f1a30fca7726432b34203e15fe76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import Backdrop from '../components/backdrop';
import BannerController from '../components/notification-banner';
import ServerListing from '../components/server-listing';

/**
 * UI Loader for login page
 */
export default class Login {
  /**
   * Registers components for login page
   * @param {Interface} iface Interface to enable comm. with notifications
   */
  constructor(iface) {
    this.backdrop = new Backdrop('menu', 'front-layer', 'show-menu');
    this.bannerController = new BannerController(iface, 'notifications',
        'banner-info', 'dismiss-banner', 'notification-amount');
    this.serverListing = new ServerListing(iface, 'server-list',
        'refresh-button');

    this.backdrop.initialize();
    this.bannerController.initialize();
    this.serverListing.initialize();
  }
}