This commit is contained in:
TheGiddyLimit
2024-07-20 15:02:52 +01:00
parent c330614db9
commit 275b97485e
9 changed files with 1840 additions and 1679 deletions

View File

@@ -2741,5 +2741,10 @@
"ver": "1.209.2",
"date": "2024-07-19",
"txt": "- Added Quests from the Infinite Staircase tokens; NPCs/other creatures\n- Added `p`/`P` hotkeys to pin/unpin sublist items\n- Fixed Classes Page outline filling up with junk items after hovering other content\n- (Homebrew) Fixed Adventure/Book pages failing to load un-loaded but repo-available homebrew on navigation\n- (Fixed typos/added tags)"
},
{
"ver": "1.209.3",
"date": "2024-07-20",
"txt": "- Fixed Omnisearch CTRL+ENTER using incorrect query params\n- (Brew) Fixed crash when rendering \"subclass\" `\"statblock\"` entries\n- (Fixed typos/added tags)"
}
]

View File

@@ -177,7 +177,7 @@ class PageFilterClassesRaw extends PageFilterClassesBase {
classFeature.level = level;
classFeature.source = source;
const entityRoot = await DataLoader.pCacheAndGet("raw_classFeature", classFeature.source, classFeature.hash, {isCopy: true});
const entityRoot = await DataLoader.pCacheAndGet("raw_classFeature", classFeature.source, classFeature.hash, {isCopy: true, isRequired: true});
const loadedRoot = {
type: "classFeature",
entity: entityRoot,
@@ -221,7 +221,7 @@ class PageFilterClassesRaw extends PageFilterClassesBase {
subclassFeature.level = level;
subclassFeature.source = source;
const entityRoot = await DataLoader.pCacheAndGet("raw_subclassFeature", subclassFeature.source, subclassFeature.hash, {isCopy: true});
const entityRoot = await DataLoader.pCacheAndGet("raw_subclassFeature", subclassFeature.source, subclassFeature.hash, {isCopy: true, isRequired: true});
const loadedRoot = {
type: "subclassFeature",
entity: entityRoot,
@@ -325,7 +325,7 @@ class PageFilterClassesRaw extends PageFilterClassesBase {
ent.name = name;
ent.source = source;
const entityRoot = raw != null ? MiscUtil.copyFast(raw) : await DataLoader.pCacheAndGet(`raw_${prop}`, ent.source, ent.hash, {isCopy: true});
const entityRoot = raw != null ? MiscUtil.copyFast(raw) : await DataLoader.pCacheAndGet(`raw_${prop}`, ent.source, ent.hash, {isCopy: true, isRequired: true});
const loadedRoot = {
type: prop,
entity: entityRoot,

View File

@@ -52,7 +52,7 @@ class Omnisearch {
switch (evt.key) {
case "Enter":
if (EventUtil.isCtrlMetaKey(evt)) {
window.location = `${Renderer.get().baseUrl}${UrlUtil.PG_SEARCH}?${this._iptSearch.val()}`;
window.location = `${Renderer.get().baseUrl}${UrlUtil.PG_SEARCH}?q=${this._iptSearch.val()}`;
break;
}

View File

@@ -3620,6 +3620,7 @@ Parser.PROP_TO_TAG = {
"baseitem": "item",
"itemGroup": "item",
"magicvariant": "item",
"subclass": "class",
};
Parser.getPropTag = function (prop) {
if (Parser.PROP_TO_TAG[prop]) return Parser.PROP_TO_TAG[prop];

View File

@@ -3016,9 +3016,16 @@ Renderer.utils = class {
return Renderer.get().render(Renderer.utils.getAbilityRollerEntry(statblock, ability));
}
static getEmbeddedDataHeader (name, style, {isCollapsed = false} = {}) {
static getEmbeddedDataHeader (name, style, {isCollapsed = false, isStatic = false} = {}) {
return `<table class="rd__b-special rd__b-data ${style ? `rd__b-data--${style}` : ""}">
<thead><tr><th class="rd__data-embed-header" colspan="6" data-rd-data-embed-header="true"><span class="rd__data-embed-name ${isCollapsed ? "" : `ve-hidden`}">${name}</span><span class="rd__data-embed-toggle">[${isCollapsed ? "+" : "\u2013"}]</span></th></tr></thead><tbody class="${isCollapsed ? `ve-hidden` : ""}" data-rd-embedded-data-render-target="true">`;
<thead>
<tr>
<th class="rd__data-embed-header" colspan="6" data-rd-data-embed-header="true">
<span class="rd__data-embed-name ${!isStatic && isCollapsed ? "" : `ve-hidden`}">${name}</span>
${isStatic ? `<span></span>` : `<span class="rd__data-embed-toggle">[${isCollapsed ? "+" : "\u2013"}]</span>`}
</th>
</tr>
</thead><tbody class="${!isStatic && isCollapsed ? `ve-hidden` : ""}" data-rd-embedded-data-render-target="true">`;
}
static getEmbeddedDataFooter () {

View File

@@ -1983,7 +1983,7 @@ class DataLoader {
const {siteData = null, prereleaseData = null, brewData = null} = await this._pCacheAndGet_getCacheMeta({pageClean, sourceClean, dataLoader});
await this._pCacheAndGet_processCacheMeta({dataLoader, siteData, prereleaseData, brewData, lockToken2});
return this.getFromCache(page, source, hash, {isCopy, _isInsertSentinelOnMiss: true});
return this.getFromCache(page, source, hash, {isCopy, isRequired, _isInsertSentinelOnMiss: true});
}
static async pCacheAndGetHash (page, hash, opts) {

View File

@@ -2,7 +2,7 @@
// in deployment, `IS_DEPLOYED = "<version number>";` should be set below.
globalThis.IS_DEPLOYED = undefined;
globalThis.VERSION_NUMBER = /* 5ETOOLS_VERSION__OPEN */"1.209.2"/* 5ETOOLS_VERSION__CLOSE */;
globalThis.VERSION_NUMBER = /* 5ETOOLS_VERSION__OPEN */"1.209.3"/* 5ETOOLS_VERSION__CLOSE */;
globalThis.DEPLOYED_IMG_ROOT = undefined;
// for the roll20 script to set
globalThis.IS_VTT = false;

3486
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
{
"name": "5etools",
"author": "TheGiddyLimit",
"version": "1.209.2",
"version": "1.209.3",
"license": "MIT",
"description": "A site dedicated to making playing games with your friends as easy as possible.",
"type": "module",
@@ -64,7 +64,7 @@
"simple-git": "^3.22.0",
"stylelint": "^16.2.1",
"stylelint-config-standard-scss": "^13.0.0",
"workbox-cli": "^7.0.0"
"workbox-cli": "^7.1.0"
},
"bugs": {
"url": "https://github.com/5etools-mirror-2/5etools-mirror-2.github.io/issues"