Item Support #69

Merged
Oliver merged 50 commits from feature/item-support into main 2026-04-15 02:42:54 +00:00
3 changed files with 30 additions and 22 deletions
Showing only changes of commit c9ad0d8a4e - Show all commits

View file

@ -13,11 +13,7 @@ import { toID } from "./utils/toID.mjs";
const { deepFreeze } = foundry.utils;
Object.defineProperty(
globalThis,
`taf`,
{
value: deepFreeze({
export const api = deepFreeze({
DialogManager,
QueryManager,
Apps: {
@ -31,6 +27,4 @@ Object.defineProperty(
localizer,
toID,
},
}),
},
);
});

View file

@ -2,6 +2,6 @@ import { formatWeight } from "./utils/formatWeight.mjs";
const { deepSeal } = foundry.utils;
export const config = CONFIG.TAF = deepSeal({
export const config = deepSeal({
weightFormatter: formatWeight,
});

View file

@ -1,4 +1,18 @@
import "./api.mjs";
import "./hooks/init.mjs";
import "./hooks/userConnected.mjs";
import "./hooks/renderSettingsConfig.mjs";
import { api } from "./api.mjs";
import { config } from "./config.mjs";
Object.defineProperty(
globalThis,
`taf`,
{
value: Object.seal({
api,
config,
}),
writable: false,
enumerable: true,
},
);