mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
leftover things that got moved during directory org
This commit is contained in:
parent
1917a528c7
commit
590ed56d68
@ -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]);
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user