Show module version in report header
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
"id": "kosmos-storage-audit",
|
"id": "kosmos-storage-audit",
|
||||||
"title": "Kosmos Storage Audit",
|
"title": "Kosmos Storage Audit",
|
||||||
"description": "Analyzes media references and risky storage locations across Foundry data and public roots.",
|
"description": "Analyzes media references and risky storage locations across Foundry data and public roots.",
|
||||||
"version": "0.0.25",
|
"version": "0.0.26",
|
||||||
"compatibility": {
|
"compatibility": {
|
||||||
"minimum": "13",
|
"minimum": "13",
|
||||||
"verified": "13"
|
"verified": "13"
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ export class StorageAuditReportApp extends foundry.applications.api.ApplicationV
|
|||||||
showAll: this.#showAll,
|
showAll: this.#showAll,
|
||||||
progress: this.#progress,
|
progress: this.#progress,
|
||||||
notices: this.#analysis?.notices ?? [],
|
notices: this.#analysis?.notices ?? [],
|
||||||
|
moduleVersion: game.modules.get("kosmos-storage-audit")?.version ?? null,
|
||||||
summary: this.#summarize(this.#analysis),
|
summary: this.#summarize(this.#analysis),
|
||||||
groupedFindings
|
groupedFindings
|
||||||
};
|
};
|
||||||
@@ -50,7 +51,10 @@ export class StorageAuditReportApp extends foundry.applications.api.ApplicationV
|
|||||||
container.innerHTML = `
|
container.innerHTML = `
|
||||||
<section class="storage-audit__hero">
|
<section class="storage-audit__hero">
|
||||||
<div>
|
<div>
|
||||||
|
<div class="storage-audit__title-row">
|
||||||
<h2>${localize("KSA.Hero.Title")}</h2>
|
<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.Intro1", { dataRoot: "data", publicRoot: "public" }, ["data", "public"])}</p>
|
||||||
<p>${renderLocalizedCodeText("KSA.Hero.Intro2", { dataRoot: "data" }, ["data"])}</p>
|
<p>${renderLocalizedCodeText("KSA.Hero.Intro2", { dataRoot: "data" }, ["data"])}</p>
|
||||||
<p>${escapeHtml(localize("KSA.Hero.Intro3"))}</p>
|
<p>${escapeHtml(localize("KSA.Hero.Intro3"))}</p>
|
||||||
|
|||||||
@@ -107,9 +107,22 @@
|
|||||||
line-height: 1.05;
|
line-height: 1.05;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.storage-audit__title-row {
|
||||||
|
display: flex;
|
||||||
|
align-items: baseline;
|
||||||
|
gap: 0.7rem;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
.storage-audit__hero h2 {
|
.storage-audit__hero h2 {
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
letter-spacing: 0.01em;
|
letter-spacing: 0.01em;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.storage-audit__version {
|
||||||
|
opacity: 0.7;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.storage-audit__hero p,
|
.storage-audit__hero p,
|
||||||
|
|||||||
Reference in New Issue
Block a user