Release 0.0.10

This commit is contained in:
2026-04-20 21:38:13 +00:00
parent 43d1a61535
commit 9d94e75a93
4 changed files with 19 additions and 12 deletions

View File

@@ -2,7 +2,11 @@ import { analyzeStorage } from "../core/analyzer.js";
import { isMediaPath, normalizePath } from "../core/path-utils.js";
async function* walkFilePicker(storage, target = "", onProgress = null) {
onProgress?.({ phase: "files", label: format("KSA.Progress.BrowseStorage", { storage, path: target || "/" }) });
onProgress?.({
phase: "files",
label: format("KSA.Progress.ScanFiles"),
currentSource: format("KSA.Progress.BrowseStorage", { storage, path: target || "/" })
});
const result = await FilePicker.browse(storage, target);
for (const file of result.files ?? []) {
const path = normalizePath(file);
@@ -83,7 +87,11 @@ async function* packagePackEntries(onProgress = null) {
const ownerType = pack.metadata.packageType;
const ownerId = pack.metadata.packageName;
if (!["module", "system"].includes(ownerType) || !ownerId) continue;
onProgress?.({ phase: "sources", label: format("KSA.Progress.ReadPack", { pack: pack.collection }), currentSource: pack.collection });
onProgress?.({
phase: "sources",
label: format("KSA.Progress.ReadReferences"),
currentSource: format("KSA.Progress.ReadPack", { pack: pack.collection })
});
const documents = await pack.getDocuments();
for (const document of documents) {
yield {

View File

@@ -120,8 +120,6 @@ export class StorageAuditReportApp extends foundry.applications.api.ApplicationV
ui.notifications.error(format("KSA.Notify.Failed", { message: error.message }));
} finally {
this.#loading = false;
const currentWidth = this.position?.width ?? 0;
if (currentWidth < 980) this.setPosition({ width: 980 });
await this.render({ force: true });
}
}