chore(views/board): create empty board

This commit is contained in:
Elian Doran
2025-07-19 18:29:31 +03:00
parent f405682ec1
commit 11547ecaa3
2 changed files with 57 additions and 2 deletions

View File

@@ -0,0 +1,51 @@
import ViewMode, { ViewModeArgs } from "../view_mode";
const TPL = /*html*/`
<div class="board-view">
<style>
.board-view {
overflow: hidden;
position: relative;
height: 100%;
user-select: none;
}
.board-view-container {
height: 100%;
}
</style>
<div class="board-view-container">
Board view goes here.
</div>
</div>
`;
export interface StateInfo {
};
export default class BoardView extends ViewMode<StateInfo> {
private $root: JQuery<HTMLElement>;
private $container: JQuery<HTMLElement>;
constructor(args: ViewModeArgs) {
super(args, "board");
this.$root = $(TPL);
this.$container = this.$root.find(".board-view-container");
args.$parent.append(this.$root);
}
async renderList(): Promise<JQuery<HTMLElement> | undefined> {
// this.$container.empty();
this.renderBoard(this.$container[0]);
return this.$root;
}
private async renderBoard(el: HTMLElement) {
}
}