rename root_widget into root

This commit is contained in:
Géry Debongnie
2019-01-29 14:41:12 +01:00
parent 552d8a0809
commit ec90663dd7
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -3,7 +3,7 @@
import { makeEnvironment } from "./env"; import { makeEnvironment } from "./env";
import { registry } from "./registry"; import { registry } from "./registry";
import { Discuss } from "./widgets/discuss"; import { Discuss } from "./widgets/discuss";
import { RootWidget } from "./root_widget"; import { Root } from "./root";
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// Prepare application registry // Prepare application registry
@@ -15,6 +15,6 @@ registry.add("action", "discuss", Discuss);
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
document.addEventListener("DOMContentLoaded", async function() { document.addEventListener("DOMContentLoaded", async function() {
const env = makeEnvironment(); const env = makeEnvironment();
const rootWidget = new RootWidget(env); const rootWidget = new Root(env);
await rootWidget.mount(document.body); await rootWidget.mount(document.body);
}); });
@@ -11,7 +11,7 @@ const template = `
</div> </div>
`; `;
export class RootWidget extends Widget<Env, {}> { export class Root extends Widget<Env, {}> {
name = "root"; name = "root";
template = template; template = template;
widgets = { Navbar }; widgets = { Navbar };