2020-09-01 17:31:38 +00:00
|
|
|
/**
|
|
|
|
* @license
|
|
|
|
* stream-manager <https://filadelfia.is>
|
|
|
|
* Copyright 2015 Jonatan Nilsson <http://jonatan.nilsson.is/>
|
|
|
|
*
|
|
|
|
* Available under WTFPL License (http://www.wtfpl.net/txt/copying/)
|
|
|
|
*/
|
|
|
|
|
|
|
|
'use strict'
|
|
|
|
|
|
|
|
//Add debug components to window. Allows us to play with controls
|
|
|
|
//in the console.
|
|
|
|
window.components = {}
|
|
|
|
|
|
|
|
require('./socket')
|
|
|
|
|
|
|
|
const m = require('mithril')
|
|
|
|
const Header = require('./header')
|
|
|
|
|
2020-09-07 00:47:53 +00:00
|
|
|
const Status = require('./status/status')
|
2020-09-01 17:31:38 +00:00
|
|
|
const Log = require('./log/log')
|
2020-09-07 00:47:53 +00:00
|
|
|
const Updater = require('./updater/updater')
|
2020-09-01 17:31:38 +00:00
|
|
|
|
|
|
|
m.mount(document.getElementById('header'), Header)
|
|
|
|
|
|
|
|
m.route(document.getElementById('content'), '/', {
|
2020-09-07 00:47:53 +00:00
|
|
|
'/': Status,
|
2020-09-01 17:31:38 +00:00
|
|
|
'/log': Log,
|
2020-09-07 00:47:53 +00:00
|
|
|
'/updater': Updater,
|
|
|
|
'/updater/:id': Updater,
|
2020-09-01 17:31:38 +00:00
|
|
|
})
|