From 590ed56d684b4c09143b842e433dceca22a81b00 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Sun, 16 Jun 2019 10:54:37 +0200 Subject: [PATCH] leftover things that got moved during directory org --- src/ui/web/TimelineTile.js | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 src/ui/web/TimelineTile.js diff --git a/src/ui/web/TimelineTile.js b/src/ui/web/TimelineTile.js deleted file mode 100644 index 8ee411d2..00000000 --- a/src/ui/web/TimelineTile.js +++ /dev/null @@ -1,33 +0,0 @@ -import {tag} from "./html.js"; - -export default class TimelineTile { - constructor(tileVM) { - this._tileVM = tileVM; - this._root = null; - } - - root() { - return this._root; - } - - mount() { - this._root = renderTile(this._tileVM); - return this._root; - } - - unmount() {} - - update(vm, paramName) { - } -} - -function renderTile(tile) { - switch (tile.shape) { - case "message": - return tag.li(null, [tag.strong(null, tile.internalId+" "), tile.label]); - case "announcement": - return tag.li(null, [tag.strong(null, tile.internalId+" "), tile.label]); - default: - return tag.li(null, [tag.strong(null, tile.internalId+" "), "unknown tile shape: " + tile.shape]); - } -}