mirror of
https://github.com/Kornstalx/5etools-mirror-2.github.io.git
synced 2025-10-28 20:45:35 -05:00
v1.209.3
This commit is contained in:
@@ -2741,5 +2741,10 @@
|
|||||||
"ver": "1.209.2",
|
"ver": "1.209.2",
|
||||||
"date": "2024-07-19",
|
"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)"
|
"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)"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -177,7 +177,7 @@ class PageFilterClassesRaw extends PageFilterClassesBase {
|
|||||||
classFeature.level = level;
|
classFeature.level = level;
|
||||||
classFeature.source = source;
|
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 = {
|
const loadedRoot = {
|
||||||
type: "classFeature",
|
type: "classFeature",
|
||||||
entity: entityRoot,
|
entity: entityRoot,
|
||||||
@@ -221,7 +221,7 @@ class PageFilterClassesRaw extends PageFilterClassesBase {
|
|||||||
subclassFeature.level = level;
|
subclassFeature.level = level;
|
||||||
subclassFeature.source = source;
|
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 = {
|
const loadedRoot = {
|
||||||
type: "subclassFeature",
|
type: "subclassFeature",
|
||||||
entity: entityRoot,
|
entity: entityRoot,
|
||||||
@@ -325,7 +325,7 @@ class PageFilterClassesRaw extends PageFilterClassesBase {
|
|||||||
ent.name = name;
|
ent.name = name;
|
||||||
ent.source = source;
|
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 = {
|
const loadedRoot = {
|
||||||
type: prop,
|
type: prop,
|
||||||
entity: entityRoot,
|
entity: entityRoot,
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ class Omnisearch {
|
|||||||
switch (evt.key) {
|
switch (evt.key) {
|
||||||
case "Enter":
|
case "Enter":
|
||||||
if (EventUtil.isCtrlMetaKey(evt)) {
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3620,6 +3620,7 @@ Parser.PROP_TO_TAG = {
|
|||||||
"baseitem": "item",
|
"baseitem": "item",
|
||||||
"itemGroup": "item",
|
"itemGroup": "item",
|
||||||
"magicvariant": "item",
|
"magicvariant": "item",
|
||||||
|
"subclass": "class",
|
||||||
};
|
};
|
||||||
Parser.getPropTag = function (prop) {
|
Parser.getPropTag = function (prop) {
|
||||||
if (Parser.PROP_TO_TAG[prop]) return Parser.PROP_TO_TAG[prop];
|
if (Parser.PROP_TO_TAG[prop]) return Parser.PROP_TO_TAG[prop];
|
||||||
|
|||||||
11
js/render.js
11
js/render.js
@@ -3016,9 +3016,16 @@ Renderer.utils = class {
|
|||||||
return Renderer.get().render(Renderer.utils.getAbilityRollerEntry(statblock, ability));
|
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}` : ""}">
|
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 () {
|
static getEmbeddedDataFooter () {
|
||||||
|
|||||||
@@ -1983,7 +1983,7 @@ class DataLoader {
|
|||||||
const {siteData = null, prereleaseData = null, brewData = null} = await this._pCacheAndGet_getCacheMeta({pageClean, sourceClean, dataLoader});
|
const {siteData = null, prereleaseData = null, brewData = null} = await this._pCacheAndGet_getCacheMeta({pageClean, sourceClean, dataLoader});
|
||||||
await this._pCacheAndGet_processCacheMeta({dataLoader, siteData, prereleaseData, brewData, lockToken2});
|
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) {
|
static async pCacheAndGetHash (page, hash, opts) {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
// in deployment, `IS_DEPLOYED = "<version number>";` should be set below.
|
// in deployment, `IS_DEPLOYED = "<version number>";` should be set below.
|
||||||
globalThis.IS_DEPLOYED = undefined;
|
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;
|
globalThis.DEPLOYED_IMG_ROOT = undefined;
|
||||||
// for the roll20 script to set
|
// for the roll20 script to set
|
||||||
globalThis.IS_VTT = false;
|
globalThis.IS_VTT = false;
|
||||||
|
|||||||
3486
package-lock.json
generated
3486
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "5etools",
|
"name": "5etools",
|
||||||
"author": "TheGiddyLimit",
|
"author": "TheGiddyLimit",
|
||||||
"version": "1.209.2",
|
"version": "1.209.3",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"description": "A site dedicated to making playing games with your friends as easy as possible.",
|
"description": "A site dedicated to making playing games with your friends as easy as possible.",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
@@ -64,7 +64,7 @@
|
|||||||
"simple-git": "^3.22.0",
|
"simple-git": "^3.22.0",
|
||||||
"stylelint": "^16.2.1",
|
"stylelint": "^16.2.1",
|
||||||
"stylelint-config-standard-scss": "^13.0.0",
|
"stylelint-config-standard-scss": "^13.0.0",
|
||||||
"workbox-cli": "^7.0.0"
|
"workbox-cli": "^7.1.0"
|
||||||
},
|
},
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/5etools-mirror-2/5etools-mirror-2.github.io/issues"
|
"url": "https://github.com/5etools-mirror-2/5etools-mirror-2.github.io/issues"
|
||||||
|
|||||||
Reference in New Issue
Block a user