From ec90663dd7a4d8f7f289299378e5918cffc3a65d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Tue, 29 Jan 2019 14:41:12 +0100 Subject: [PATCH] rename root_widget into root --- web/static/src/ts/main.ts | 4 ++-- web/static/src/ts/{root_widget.ts => root.ts} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename web/static/src/ts/{root_widget.ts => root.ts} (95%) diff --git a/web/static/src/ts/main.ts b/web/static/src/ts/main.ts index 7a9263a3..57c28ac9 100644 --- a/web/static/src/ts/main.ts +++ b/web/static/src/ts/main.ts @@ -3,7 +3,7 @@ import { makeEnvironment } from "./env"; import { registry } from "./registry"; import { Discuss } from "./widgets/discuss"; -import { RootWidget } from "./root_widget"; +import { Root } from "./root"; //------------------------------------------------------------------------------ // Prepare application registry @@ -15,6 +15,6 @@ registry.add("action", "discuss", Discuss); //------------------------------------------------------------------------------ document.addEventListener("DOMContentLoaded", async function() { const env = makeEnvironment(); - const rootWidget = new RootWidget(env); + const rootWidget = new Root(env); await rootWidget.mount(document.body); }); diff --git a/web/static/src/ts/root_widget.ts b/web/static/src/ts/root.ts similarity index 95% rename from web/static/src/ts/root_widget.ts rename to web/static/src/ts/root.ts index 0478ba7a..c75fe253 100644 --- a/web/static/src/ts/root_widget.ts +++ b/web/static/src/ts/root.ts @@ -11,7 +11,7 @@ const template = ` `; -export class RootWidget extends Widget { +export class Root extends Widget { name = "root"; template = template; widgets = { Navbar };