main.ts
19 lines
| 586 B
| video/mp2t
|
TypeScriptLexer
cin
|
r107 | import MainWidget from "./view/MainWidget"; | ||
cin
|
r109 | import "@implab/djx/css!dojo/resources/dojo.css"; | ||
import "@implab/djx/css!dijit/themes/dijit.css"; | ||||
import "@implab/djx/css!dijit/themes/tundra/tundra.css"; | ||||
cin
|
r118 | import { TraceSource } from "@implab/core-amd/log/TraceSource"; | ||
import { ConsoleLogger } from "@implab/core-amd/log/writers/ConsoleLogger"; | ||||
const logger = new ConsoleLogger(); | ||||
TraceSource.on(source => { | ||||
source.level = 400; | ||||
logger.writeEvents(source.events); | ||||
}); | ||||
cin
|
r99 | |||
const w = new MainWidget(); | ||||
cin
|
r134 | document.body.className = 'tundra'; | ||
cin
|
r110 | w.placeAt(document.body); | ||
cin
|
r134 | w.startup(); | ||
cin
|
r110 | w.load(); | ||