|
@@ -1,10 +1,12 @@
|
|
|
import { search } from "./search.js";
|
|
import { search } from "./search.js";
|
|
|
import { pixel, percent, auto } from "./size.js";
|
|
import { pixel, percent, auto } from "./size.js";
|
|
|
-import { position, place_top } from "./position.js";
|
|
|
|
|
|
|
+import { position, place_top, place_left } from "./position.js";
|
|
|
import { sticky } from "./sticky.js";
|
|
import { sticky } from "./sticky.js";
|
|
|
import { loader } from "./loader.js";
|
|
import { loader } from "./loader.js";
|
|
|
import { database } from "./database.js";
|
|
import { database } from "./database.js";
|
|
|
import { logo } from "./logo.js";
|
|
import { logo } from "./logo.js";
|
|
|
|
|
+import { chooser } from "./chooser.js";
|
|
|
|
|
+import { workspace } from "./workspace.js";
|
|
|
|
|
|
|
|
document.addEventListener("DOMContentLoaded", async () => {
|
|
document.addEventListener("DOMContentLoaded", async () => {
|
|
|
const container = document.querySelector(".container");
|
|
const container = document.querySelector(".container");
|
|
@@ -29,6 +31,22 @@ document.addEventListener("DOMContentLoaded", async () => {
|
|
|
const name = new logo(store.content.name);
|
|
const name = new logo(store.content.name);
|
|
|
top_bar.appendChild(name.ui);
|
|
top_bar.appendChild(name.ui);
|
|
|
|
|
|
|
|
|
|
+ const left_bar_builder = new sticky();
|
|
|
|
|
+ left_bar_builder.width = new pixel(240);
|
|
|
|
|
+ left_bar_builder.height = new percent(100);
|
|
|
|
|
+ left_bar_builder.position = new place_left();
|
|
|
|
|
+
|
|
|
|
|
+ const left_bar = left_bar_builder.element;
|
|
|
|
|
+ left_bar.className = "left-bar";
|
|
|
|
|
+
|
|
|
|
|
+ const choose = new chooser(store, () => {});
|
|
|
|
|
+ left_bar.appendChild(choose.ui);
|
|
|
|
|
+
|
|
|
|
|
+ const center = new workspace();
|
|
|
|
|
+ center.update(store.content.submissions[1]);
|
|
|
|
|
+
|
|
|
container.appendChild(top_bar);
|
|
container.appendChild(top_bar);
|
|
|
|
|
+ container.appendChild(left_bar);
|
|
|
|
|
+ container.appendChild(center.ui);
|
|
|
});
|
|
});
|
|
|
|
|
|