diff --git a/.env.template b/.env.template deleted file mode 100644 index 180dbd6..0000000 --- a/.env.template +++ /dev/null @@ -1,2 +0,0 @@ -# The absolute path to the Foundry installation to create symlinks to -FOUNDRY_ROOT="" diff --git a/.github/workflows/draft-release.yaml b/.github/workflows/draft-release.yaml index d38d6ab..7d0df21 100644 --- a/.github/workflows/draft-release.yaml +++ b/.github/workflows/draft-release.yaml @@ -50,13 +50,7 @@ jobs: tag: "v${{ steps.version.outputs.version }}" commit: ${{ github.ref }} draft: true - body: > - | - | - | ### Changes: - | - - | - | This version can be installed using this manifest URL: https://github.com/Oliver-Akins/Foundry-Stat-Tracker/releases/download/v${{ steps.version.outputs.version }}/module.json + body: "This version can be installed using this manifest URL: https://github.com/Oliver-Akins/Foundry-Stat-Tracker/releases/download/v${{ steps.version.outputs.version }}/module.json" generateReleaseNotes: true artifacts: "prod.dist/release.zip,prod.dist/module.json" artifactsErrorsFailBuild: true diff --git a/.gitignore b/.gitignore index ff8974d..8878028 100644 --- a/.gitignore +++ b/.gitignore @@ -17,8 +17,6 @@ lerna-debug.log* node_modules /*.dist *.local -.env -/foundry # Editor directories and files .vscode/* diff --git a/.promo/imgs/example-dice-stat.png b/.promo/imgs/example-dice-stat.png deleted file mode 100644 index 63cb502..0000000 Binary files a/.promo/imgs/example-dice-stat.png and /dev/null differ diff --git a/.promo/imgs/example-string-stat.png b/.promo/imgs/example-string-stat.png deleted file mode 100644 index fa884dc..0000000 Binary files a/.promo/imgs/example-string-stat.png and /dev/null differ diff --git a/.promo/imgs/example-table-config.png b/.promo/imgs/example-table-config.png deleted file mode 100644 index a86cdf5..0000000 Binary files a/.promo/imgs/example-table-config.png and /dev/null differ diff --git a/README.md b/README.md index 61e924e..ccf8f72 100644 --- a/README.md +++ b/README.md @@ -1,30 +1,2 @@ -# Stats Tracker -This FoundryVTT module aims to provide a clean way of keeping track of any data -points you want within Foundry, whether that be dice rolls, or other things like -how many natural 1s to natural 20s you get. - -I was inspired by the dicestats module, however it only allows tracking dice -statistics, which is something I found myself needing to work around and struggle -against, so I decided to make this module to fill that gap while improving upon -the graph rendering. - -For more information on how to use this module, check out the "Documentation" -compendium within your world! - -## Installation -
- - -
- -You can find a history of all releases on the [Foundry package listing](https://foundryvtt.com/packages/stat-tracker) -or in the [GitHub releases tab](https://github.com/Oliver-Akins/Foundry-Stat-Tracker/releases). -Prereleases will only be released to the GitHub page, so if you want to check -out those releases, you'll need to use those manifest links directly. - -## Bugs or Feature Requests -Bugs and Feature Requests can be submitted via the [GitHub issues](https://github.com/Oliver-Akins/Foundry-Stat-Tracker/issues/new/choose). -Planned features can also be seen in the GitHub issues list. - -## Contribution -Contribution guidelines / requirements coming soon. +# Foundry-Stat-Tracker +A Foundry module that allows tracking arbitrary stats. diff --git a/augments.d.ts b/augments.d.ts deleted file mode 100644 index a08bb60..0000000 --- a/augments.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -declare global { - class Hooks extends foundry.helpers.Hooks {}; - const fromUuid = foundry.utils.fromUuid; -} - -interface Actor { - /** The system-specific data */ - system: any; -}; - -interface Item { - /** The system-specific data */ - system: any; -}; diff --git a/jsconfig.json b/jsconfig.json index 27f6e7c..8b97154 100644 --- a/jsconfig.json +++ b/jsconfig.json @@ -1,22 +1,10 @@ { "compilerOptions": { "module": "ES2020", - "target": "ES2020", - "types": [ - "./augments.d.ts" - ], - "paths": { - "@client/*": ["./foundry/client/*"], - "@common/*": ["./foundry/common/*"], - } + "target": "ES2020" }, "exclude": ["node_modules", "**/node_modules/*"], - "include": [ - "module/**/*", - "foundry/client/client.mjs", - "foundry/client/global.d.mts", - "foundry/common/primitives/global.d.mts" - ], + "include": ["module/**/*"], "typeAcquisition": { "include": ["joi"] } diff --git a/module/Apps/TableCreator.mjs b/module/Apps/TableCreator.mjs index 1422fbf..9619af2 100644 --- a/module/Apps/TableCreator.mjs +++ b/module/Apps/TableCreator.mjs @@ -75,7 +75,7 @@ export class TableCreator extends HandlebarsApplicationMixin(ApplicationV2) { if (this._name.startsWith(`Dice`)) { ctx.createButtonDisabled = !this._name.match(diceNamespacePattern); ctx.typeDisabled = true; - ctx.type = BucketTypes.NUMBER; + ctx.type = BucketTypes.RANGE; this.#diceNamespaceAlert ??= ui.notifications.info( `Tables in the "Dice" namespace must be formatted as "Dice/dX" where X is the number of sides on the die and are restricted to be ranges 1 to X.`, { permanent: true }, diff --git a/module/__tests__/registration.mjs b/module/__tests__/registration.mjs index 0d45207..83e025c 100644 --- a/module/__tests__/registration.mjs +++ b/module/__tests__/registration.mjs @@ -1,8 +1,8 @@ -import { barGraphTests } from "./schemas/barGraph.test.mjs"; -import { numberBucketTests } from "./schemas/numberBucket.test.mjs"; -import { rowTests } from "./schemas/row.test.mjs"; -import { stringBucketTests } from "./schemas/stringBucket.test.mjs"; -import { tableTests } from "./schemas/table.test.mjs"; +import { barGraphTests } from "./schemas/barGraph.mjs"; +import { numberBucketTests } from "./schemas/numberBucket.mjs"; +import { rowTests } from "./schemas/row.mjs"; +import { stringBucketTests } from "./schemas/stringBucket.mjs"; +import { tableTests } from "./schemas/table.mjs"; Hooks.on(`quenchReady`, (quench) => { numberBucketTests(quench); diff --git a/module/__tests__/schemas/barGraph.test.mjs b/module/__tests__/schemas/barGraph.mjs similarity index 100% rename from module/__tests__/schemas/barGraph.test.mjs rename to module/__tests__/schemas/barGraph.mjs diff --git a/module/__tests__/schemas/numberBucket.test.mjs b/module/__tests__/schemas/numberBucket.mjs similarity index 100% rename from module/__tests__/schemas/numberBucket.test.mjs rename to module/__tests__/schemas/numberBucket.mjs diff --git a/module/__tests__/schemas/row.test.mjs b/module/__tests__/schemas/row.mjs similarity index 100% rename from module/__tests__/schemas/row.test.mjs rename to module/__tests__/schemas/row.mjs diff --git a/module/__tests__/schemas/stringBucket.test.mjs b/module/__tests__/schemas/stringBucket.mjs similarity index 100% rename from module/__tests__/schemas/stringBucket.test.mjs rename to module/__tests__/schemas/stringBucket.mjs diff --git a/module/__tests__/schemas/table.test.mjs b/module/__tests__/schemas/table.mjs similarity index 100% rename from module/__tests__/schemas/table.test.mjs rename to module/__tests__/schemas/table.mjs diff --git a/module/api.mjs b/module/api.mjs index 274f255..9faffaa 100644 --- a/module/api.mjs +++ b/module/api.mjs @@ -13,7 +13,6 @@ import { UserFlagDatabase } from "./utils/databases/UserFlag.mjs"; import { barGraphSchema, numberBucketSchema, rowSchema, stringBucketSchema, tableSchema } from "./utils/databases/model.mjs"; import { determinePrivacyFromRollMode, filterPrivateRows, PrivacyMode } from "./utils/privacy.mjs"; import { validateBucketConfig, validateValue } from "./utils/buckets.mjs"; -import { inferRollMode } from "./utils/inferRollMode.mjs"; const { deepFreeze } = foundry.utils; @@ -26,7 +25,6 @@ export const api = deepFreeze({ }, utils: { determinePrivacyFromRollMode, - inferRollMode, filterPrivateRows, validateValue, validateBucketConfig, diff --git a/module/hooks/createChatMessage.mjs b/module/hooks/createChatMessage.mjs deleted file mode 100644 index e686c70..0000000 --- a/module/hooks/createChatMessage.mjs +++ /dev/null @@ -1,40 +0,0 @@ -import { determinePrivacyFromRollMode } from "../utils/privacy.mjs"; -import { inferRollMode } from "../utils/inferRollMode.mjs"; - -Hooks.on(`createChatMessage`, (message, options, author) => { - const isSelf = author === game.user.id; - const isNew = options.action === `create`; - const hasRolls = message.rolls?.length > 0; - const autoTracking = game.settings.get(__ID__, `autoTrackRolls`); - if (!isSelf || !isNew || !hasRolls || !autoTracking) { return }; - - /** An object of dice denomination to database rows */ - const rows = {}; - - const privacy = determinePrivacyFromRollMode(options.rollMode ?? inferRollMode(message)); - - /* - Goes through all of the dice within the message and grabs their result in order - to batch-save them all to the database handler. - */ - for (const roll of message.rolls) { - for (const die of roll.dice) { - const size = die.denomination; - rows[size] ??= []; - for (const result of die.results) { - rows[size].push({ privacy, value: result.result }); - }; - }; - }; - - // save all the rows, then rerender once we're properly done - for (const denomination in rows) { - CONFIG.stats.db.createRows( - `Dice/${denomination}`, - author, - rows[denomination], - { rerender: false }, - ); - }; - CONFIG.stats.db.render({ userUpdated: author }); -}); diff --git a/module/hooks/preCreateChatMessage.mjs b/module/hooks/preCreateChatMessage.mjs new file mode 100644 index 0000000..05a4d41 --- /dev/null +++ b/module/hooks/preCreateChatMessage.mjs @@ -0,0 +1,30 @@ +import { determinePrivacyFromRollMode } from "../utils/privacy.mjs"; + +Hooks.on(`preCreateChatMessage`, (_message, context, options, author) => { + const isNew = options.action === `create`; + const hasRolls = context.rolls?.length > 0; + const autoTracking = game.settings.get(__ID__, `autoTrackRolls`); + if (!isNew || !hasRolls || !autoTracking) { return }; + + /** An object of dice denomination to rows to add */ + const rows = {}; + + const privacy = determinePrivacyFromRollMode(options.rollMode); + for (const roll of context.rolls) { + for (const die of roll.dice) { + const size = die.denomination; + rows[size] ??= []; + for (const result of die.results) { + rows[size].push({ privacy, value: result.result }); + }; + }; + }; + + for (const denomination in rows) { + CONFIG.stats.db.createRows( + `Dice/${denomination}`, + author, + rows[denomination], + ); + }; +}); diff --git a/module/hooks/ready.mjs b/module/hooks/ready.mjs index 025ed1b..33fe483 100644 --- a/module/hooks/ready.mjs +++ b/module/hooks/ready.mjs @@ -29,10 +29,10 @@ Hooks.on(`ready`, () => { ); // Fire and forget - CONFIG.stats.db.migrateData(lastVersion, notif) + CONFIG.stats.db.migrateData(notif) .then(() => { game.settings.set(__ID__, `lastVersion`, __VERSION__); - setTimeout(() => ui.notifications.remove(notif), 5_000); + setTimeout(() => ui.notifications.remove(notif), 500); }); } else { ui.notifications.error( diff --git a/module/main.mjs b/module/main.mjs index 4a90d3f..12d5422 100644 --- a/module/main.mjs +++ b/module/main.mjs @@ -5,7 +5,7 @@ import "./hooks/init.mjs"; import "./hooks/ready.mjs"; // Document Hooks -import "./hooks/createChatMessage.mjs"; +import "./hooks/preCreateChatMessage.mjs"; // Dev Only imports if (import.meta.env.DEV) { diff --git a/module/utils/buckets.mjs b/module/utils/buckets.mjs index 53c78f6..7082df1 100644 --- a/module/utils/buckets.mjs +++ b/module/utils/buckets.mjs @@ -6,6 +6,7 @@ const { StringField, NumberField } = foundry.data.fields; export const BucketTypes = { STRING: `string`, NUMBER: `number`, + RANGE: `range`, }; /** diff --git a/module/utils/databases/Database.mjs b/module/utils/databases/Database.mjs index 9cd4be1..acca180 100644 --- a/module/utils/databases/Database.mjs +++ b/module/utils/databases/Database.mjs @@ -28,7 +28,7 @@ Default Subtables: tables that are parents to other tables. */ -const { deleteProperty, diffObject, expandObject, isNewerVersion, mergeObject } = foundry.utils; +const { deleteProperty, diffObject, expandObject, mergeObject } = foundry.utils; /** * The generic Database implementation, any subclasses should implement all of @@ -275,7 +275,7 @@ export class Database { * @returns {boolean} */ static requiresMigrationFrom(lastVersion) { - return isNewerVersion(__VERSION__, lastVersion); + return foundry.utils.isNewerVersion(__VERSION__, lastVersion); }; /** @@ -289,27 +289,7 @@ export class Database { * @param {Notification} notif The progress bar notification used for * user feedback while performing migrations. */ - static async migrateData(lastVersion, notif) { - const totalSteps = 1; - - /* - This migration is for going up to 1.0.3, getting rid of any tables that have - a bucket type of range, since those were not supported within the initial - release, but could still accidentally be created by users. - */ - if (isNewerVersion(`1.0.3`, lastVersion)) { - Logger.log(`Migrating up to the v1.0.3 data structure`); - const tables = game.settings.get(__ID__, `tables`); - for (const table of Object.values(tables)) { - if (table.buckets.type !== `range`) { continue }; - table.buckets.type = BucketTypes.NUMBER; - table.buckets.showEmptyBuckets = true; - }; - await game.settings.set(__ID__, `tables`, tables); - notif.update({ pct: notif.pct + (1 / totalSteps) }); - }; - - }; + static async migrateData(lastVersion, notif) {}; }; /* eslint-enable no-unused-vars */ diff --git a/module/utils/inferRollMode.mjs b/module/utils/inferRollMode.mjs deleted file mode 100644 index 4880c21..0000000 --- a/module/utils/inferRollMode.mjs +++ /dev/null @@ -1,36 +0,0 @@ -/** - * A helper function to try and infer what roll mode was used when creating a - * chat message in case the roll mode was not provided during the createChatMessage - * hook for whatever reason. - * - * **Disclaimer**: This inference is not totally correct. Particularly when inferring - * a GM's message, as it won't be able to distinguish between a self-roll and a - * private GM roll when it's - * - * @param {ChatMessage} message The ChatMessage document to infer from - * @returns The Foundry-specified roll mode - */ -export function inferRollMode(message) { - const whisperCount = message.whisper.length; - if (whisperCount === 0) { - return CONST.DICE_ROLL_MODES.PUBLIC; - }; - - if (whisperCount === 1 && message.whisper[0] === game.user.id) { - return CONST.DICE_ROLL_MODES.SELF; - }; - - let allGMs = true; - for (const userID of message.whisper) { - const user = game.users.get(userID); - if (!user) { continue }; - allGMs &&= user.isGM; - }; - - if (!allGMs) { - return CONST.DICE_ROLL_MODES.PUBLIC; - }; - return message.blind - ? CONST.DICE_ROLL_MODES.BLIND - : CONST.DICE_ROLL_MODES.PRIVATE; -}; diff --git a/module/utils/privacy.mjs b/module/utils/privacy.mjs index b437880..f04a885 100644 --- a/module/utils/privacy.mjs +++ b/module/utils/privacy.mjs @@ -11,8 +11,6 @@ export const PrivacyMode = Object.freeze({ export function determinePrivacyFromRollMode(rollMode) { switch (rollMode) { - case CONST.DICE_ROLL_MODES.PUBLIC: - return PrivacyMode.PUBLIC; case CONST.DICE_ROLL_MODES.BLIND: return PrivacyMode.GM; case CONST.DICE_ROLL_MODES.PRIVATE: @@ -20,7 +18,7 @@ export function determinePrivacyFromRollMode(rollMode) { case CONST.DICE_ROLL_MODES.SELF: return PrivacyMode.SELF; } - return PrivacyMode.SELF; + return PrivacyMode.PUBLIC; }; /** diff --git a/package-lock.json b/package-lock.json index 6594a26..7664dfa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,11 +13,10 @@ "devDependencies": { "@foundryvtt/foundryvtt-cli": "^1.1.0", "@stylistic/eslint-plugin": "^4.2.0", - "dotenv": "^17.2.2", "eslint": "^9.25.0", "glob": "^11.0.1", "terser": "^5.39.0", - "vite": "^6.3.4" + "vite": "^6.3.1" } }, "node_modules/@esbuild/aix-ppc64": { @@ -1681,19 +1680,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/dotenv": { - "version": "17.2.2", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.2.2.tgz", - "integrity": "sha512-Sf2LSQP+bOlhKWWyhFsn0UsfdK/kCWRv1iuA2gXAwt3dyNabr6QSj00I2V10pidqz69soatm9ZwZvpQMTIOd5Q==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://dotenvx.com" - } - }, "node_modules/dunder-proto": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", @@ -2045,14 +2031,10 @@ } }, "node_modules/fdir": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", - "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "version": "6.4.3", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.3.tgz", + "integrity": "sha512-PMXmW2y1hDDfTSRc9gaXIuCCRpuoz3Kaz8cUelp3smouvfT632ozg2vrT6lJsHKKOF59YLbOGfAWGUcKEfRMQw==", "dev": true, - "license": "MIT", - "engines": { - "node": ">=12.0.0" - }, "peerDependencies": { "picomatch": "^3 || ^4" }, @@ -2970,11 +2952,10 @@ "dev": true }, "node_modules/picomatch": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", - "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", + "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", "dev": true, - "license": "MIT", "engines": { "node": ">=12" }, @@ -3393,14 +3374,13 @@ } }, "node_modules/tinyglobby": { - "version": "0.2.15", - "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz", - "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==", + "version": "0.2.12", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.12.tgz", + "integrity": "sha512-qkf4trmKSIiMTs/E63cxH+ojC2unam7rJ0WrauAzpT3ECNTxGRMlaXxVbfxMUC/w0LaYk6jQ4y/nGR9uBO3tww==", "dev": true, - "license": "MIT", "dependencies": { - "fdir": "^6.5.0", - "picomatch": "^4.0.3" + "fdir": "^6.4.3", + "picomatch": "^4.0.2" }, "engines": { "node": ">=12.0.0" @@ -3482,18 +3462,17 @@ } }, "node_modules/vite": { - "version": "6.3.6", - "resolved": "https://registry.npmjs.org/vite/-/vite-6.3.6.tgz", - "integrity": "sha512-0msEVHJEScQbhkbVTb/4iHZdJ6SXp/AvxL2sjwYQFfBqleHtnCqv1J3sa9zbWz/6kW1m9Tfzn92vW+kZ1WV6QA==", + "version": "6.3.2", + "resolved": "https://registry.npmjs.org/vite/-/vite-6.3.2.tgz", + "integrity": "sha512-ZSvGOXKGceizRQIZSz7TGJ0pS3QLlVY/9hwxVh17W3re67je1RKYzFHivZ/t0tubU78Vkyb9WnHPENSBCzbckg==", "dev": true, - "license": "MIT", "dependencies": { "esbuild": "^0.25.0", - "fdir": "^6.4.4", + "fdir": "^6.4.3", "picomatch": "^4.0.2", "postcss": "^8.5.3", "rollup": "^4.34.9", - "tinyglobby": "^0.2.13" + "tinyglobby": "^0.2.12" }, "bin": { "vite": "bin/vite.js" diff --git a/package.json b/package.json index ad4b381..a88df2c 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,6 @@ "devDependencies": { "@foundryvtt/foundryvtt-cli": "^1.1.0", "@stylistic/eslint-plugin": "^4.2.0", - "dotenv": "^17.2.2", "eslint": "^9.25.0", "glob": "^11.0.1", "terser": "^5.39.0", diff --git a/packs/docs/_source/English_pBOyeBDuTeowuDOE.json b/packs/docs/_source/English_pBOyeBDuTeowuDOE.json index f6e18d1..91393f7 100644 --- a/packs/docs/_source/English_pBOyeBDuTeowuDOE.json +++ b/packs/docs/_source/English_pBOyeBDuTeowuDOE.json @@ -250,7 +250,7 @@ "image": {}, "text": { "format": 1, - "content": "

The module provides a multitude of utility functions through it's API for usage however desired. This will go over them and describe their purpose.

filterPrivateRows

This method is intended to take @UUID[Compendium.stat-tracker.docs.JournalEntry.pBOyeBDuTeowuDOE.JournalEntryPage.S7Z6mZ0JablJVQJu]{rows} provided by the database and filter out any that the user would not be able to see normally. This is usually called by the database adapters so there's unlikely to be any reason to use it externally.

Available under <api>.utils.filterPrivateRows.

inferRollMode

This utility is intended to try and determine what roll mode was used to create a chat message. The inference is not entirely accurate because it struggles to differentiate between a GM rolling with a Private GM Roll and a Self Roll when there is only one GM present in the world.

Available under <api>.utils.inferRollMode

validateValue

Available under <api>.utils.validateValue.

validateBucketConfig

Available under <api>.utils.validateBucketConfig.

" + "content": "

The module provides a multitude of utility functions through it's API for usage however desired. This will go over them and describe their purpose.

filterPrivateRows

This method is intended to take @UUID[Compendium.stat-tracker.docs.JournalEntry.pBOyeBDuTeowuDOE.JournalEntryPage.S7Z6mZ0JablJVQJu]{rows} provided by the database and filter out any that the user would not be able to see normally. This is usually called by the database adapters so there's unlikely to be any reason to use it externally.

Available under <api>.utils.filterPrivateRows.

validateValue

Available under <api>.utils.validateValue.

validateBucketConfig

Available under <api>.utils.validateBucketConfig.

" }, "video": { "controls": true, @@ -266,11 +266,11 @@ "compendiumSource": null, "duplicateSource": null, "exportSource": null, - "coreVersion": "13.345", + "coreVersion": "13.344", "systemId": "empty-system", "systemVersion": "0.0.0", "createdTime": 1748330904988, - "modifiedTime": 1749864406851, + "modifiedTime": 1748394635911, "lastModifiedBy": "t2sWGWEYSMFrfBu3" }, "_key": "!journal.pages!pBOyeBDuTeowuDOE.TQzWrVTEz4oQhLPD" diff --git a/public/module.json b/public/module.json index 431b68d..91289af 100644 --- a/public/module.json +++ b/public/module.json @@ -1,8 +1,7 @@ { "id": "stat-tracker", "title": "Stats Tracker", - "description": "

A user-first approach to stat tracking. Designed from the ground up with the intent of being able to track whatever statistics you want.

", - "version": "1.0.3", + "version": "1.0.2", "compatibility": { "maximum": 13, "verified": 13, diff --git a/public/templates/Apps/TableManager/buckets/number.hbs b/public/templates/Apps/TableManager/buckets/number.hbs index cebbfaa..91ce2ec 100644 --- a/public/templates/Apps/TableManager/buckets/number.hbs +++ b/public/templates/Apps/TableManager/buckets/number.hbs @@ -1,4 +1,13 @@ -
+
+ {{#if buckets.locked}} +

+ This bucket configuration has been locked, preventing editing + of the settings. +

+ {{/if}}