28 lines
949 B
JavaScript
28 lines
949 B
JavaScript
import PopupController from '../../lib/popup-controller'
|
|
import ContentController from '../../lib/content-controller'
|
|
import RoomController from '../../lib/room-controller'
|
|
import ChannelController from '../../lib/channel-controller'
|
|
|
|
|
|
/* (1) Channel data gathering
|
|
---------------------------------------------------------*/
|
|
/* (1) Store route params */
|
|
window.initial_link = gs.get.router.history.current.params.link;
|
|
console.log(`[channel.URL] ${initial_link}`);
|
|
|
|
|
|
|
|
/* (2) Main components
|
|
---------------------------------------------------------*/
|
|
/* (1) Initialize popup management */
|
|
gs.set('popup', new PopupController());
|
|
|
|
/* (2) Initialize content management */
|
|
gs.set('content', new ContentController());
|
|
|
|
/* (3) Initialize rooms & room menu */
|
|
gs.set('room', new RoomController());
|
|
|
|
/* (4) Initialize channels & channel menu */
|
|
gs.set('channel', new ChannelController());
|
|
gs.get.channel.fetch(); // fetch at load time
|