Refactor debug mode initialization and settings management

- Replaced the "enableFeature" setting with "enableDebugMode" for clarity.
  - Added a new `requiresReload` property for the debug mode setting.
  - Updated the default value to `false` and refined the hint text.
- Removed unused "theme" setting from `settings.js`.
- Enhanced the `init` hook in `main.js` to properly configure debug mode:
  - Logs a message when debug mode is enabled.
  - Sets `CONFIG.debug.hooks` conditionally based on the debug mode setting.
- Minor adjustments for consistency in code formatting and logging.

These changes improve the debugging experience and streamline module settings.

Update module title and bump version to 0.1.1

- Changed module title from "asc-asset-manager" to "Asset Manager" for a more user-friendly name.
- Updated the version in `module.json` from `0.1.0` to `0.1.1` to reflect the update.

Add download and manifest URLs and update compatibility version

- Added `download` and `manifest` URLs to `module.json`:
  - `download`: Points to the module's ZIP file for version `0.1.1`.
  - `manifest`: Points to the latest release manifest file.
- Updated the `verified` compatibility version from `12` to `12.331` to ensure compatibility with the latest framework version.

Fix download URL in module.json

Updated the `download` URL in `module.json` to correctly point to the `0.1.1` release ZIP file under the `/releases/download/0.1.1/` path.
This commit is contained in:
2025-01-23 07:50:19 -06:00
parent 1d698c0ef1
commit a9ba4f27ff
3 changed files with 22 additions and 28 deletions

View File

@@ -35,11 +35,20 @@ export class AscAssetManager {
}
}
Hooks.on('init', ()=>CONFIG.debug.hooks = true)
Hooks.on('init', ()=>{
}
)
Hooks.on("ready", function() {
AscAssetManager.log(false, "Deno nodule reody")
registerSettings(AscAssetManager);
const DEBUG = game.settings.get(AscAssetManager.ID, "enableDebugMode")
if (DEBUG) {
AscAssetManager.log(false, "Debug Mode Enabled")
CONFIG.debug.hooks = true
}
AscAssetManager.log(false, "Deno nodule reody")
});
Hooks.on("ascAssetManager.renderUploadChoose", (data={}) => {