Show module version in report header

This commit is contained in:
2026-04-21 14:34:34 +00:00
parent 61a2343d9f
commit 4ea1a47239
3 changed files with 19 additions and 2 deletions

View File

@@ -39,6 +39,7 @@ export class StorageAuditReportApp extends foundry.applications.api.ApplicationV
showAll: this.#showAll,
progress: this.#progress,
notices: this.#analysis?.notices ?? [],
moduleVersion: game.modules.get("kosmos-storage-audit")?.version ?? null,
summary: this.#summarize(this.#analysis),
groupedFindings
};
@@ -50,7 +51,10 @@ export class StorageAuditReportApp extends foundry.applications.api.ApplicationV
container.innerHTML = `
<section class="storage-audit__hero">
<div>
<h2>${localize("KSA.Hero.Title")}</h2>
<div class="storage-audit__title-row">
<h2>${localize("KSA.Hero.Title")}</h2>
${context.moduleVersion ? `<span class="storage-audit__version">v${escapeHtml(context.moduleVersion)}</span>` : ""}
</div>
<p>${renderLocalizedCodeText("KSA.Hero.Intro1", { dataRoot: "data", publicRoot: "public" }, ["data", "public"])}</p>
<p>${renderLocalizedCodeText("KSA.Hero.Intro2", { dataRoot: "data" }, ["data"])}</p>
<p>${escapeHtml(localize("KSA.Hero.Intro3"))}</p>