This commit is contained in:
TheGiddyLimit
2024-07-10 20:47:40 +01:00
parent e5844f8a3f
commit 2eeeb0771b
341 changed files with 67623 additions and 11384 deletions

View File

@@ -98,7 +98,11 @@ class AdventuresBooksList {
this.addData(data);
await handleBrew(await PrereleaseUtil.pGetBrewProcessed());
await handleBrew(await BrewUtil2.pGetBrewProcessed());
ManageBrewUi.bindBtnOpen($(`#manage-brew`));
// TODO(MODULES) refactor
import("./utils-brew/utils-brew-ui-manage.js")
.then(({ManageBrewUi}) => {
ManageBrewUi.bindBtngroupManager(e_({id: "btngroup-manager"}));
});
this._list.init();
this._listAlt.init();
@@ -179,7 +183,7 @@ class AdventuresBooksList {
this._list.addItem(listItem);
// region Alt list (covers/thumbnails)
const eleLiAlt = $(`<a href="${this._rootPage}#${UrlUtil.encodeForHash(it.id)}" class="ve-flex-col ve-flex-v-center m-3 bks__wrp-bookshelf-item ${isExcluded ? `bks__wrp-bookshelf-item--blocklisted` : ""} py-3 px-2 ${Parser.sourceJsonToColor(it.source)}" ${Parser.sourceJsonToStyle(it.source)}>
const eleLiAlt = $(`<a href="${this._rootPage}#${UrlUtil.encodeForHash(it.id)}" class="ve-flex-col ve-flex-v-center m-3 bks__wrp-bookshelf-item ${isExcluded ? `bks__wrp-bookshelf-item--blocklisted` : ""} py-3 px-2 ${Parser.sourceJsonToSourceClassname(it.source)}" ${Parser.sourceJsonToStyle(it.source)}>
<img src="${Renderer.adventureBook.getCoverUrl(it)}" class="mb-2 bks__bookshelf-image" loading="lazy" alt="Cover Image: ${(it.name || "").qq()}">
<div class="bks__bookshelf-item-name ve-flex-vh-center ve-text-center">${it.name}</div>
</a>`)[0];