Compare commits

...

3 Commits

Author SHA1 Message Date
a9ba4f27ff 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.
2025-01-23 08:16:11 -06:00
1d698c0ef1 Update and reorganize binary files in asset manager macros
- Deleted `000005.ldb` and `MANIFEST-000010` binary files.
- Renamed:
  - `000008.ldb` to `000020.ldb`.
  - `000011.log` to `000024.log`.
- Updated binary content for `CURRENT`, `LOG`, and `LOG.old`.
- Added new binary file `MANIFEST-000023`.

These changes reflect a reorganization and update of the binary files within the `asc-asset-manager-macros` directory.
2025-01-23 07:49:31 -06:00
07db5da750 Add .gitattributes file to manage binary files
Introduced a new `.gitattributes` file to mark all files under `src/packs/` as binary. This ensures proper handling of binary files in the specified directory during Git operations.
2025-01-23 07:48:31 -06:00
12 changed files with 30 additions and 37 deletions

1
.gitattributes vendored Normal file
View File

@@ -0,0 +1 @@
src/packs/** binary

View File

@@ -35,11 +35,20 @@ export class AscAssetManager {
} }
} }
Hooks.on('init', ()=>CONFIG.debug.hooks = true) Hooks.on('init', ()=>{
}
)
Hooks.on("ready", function() { Hooks.on("ready", function() {
AscAssetManager.log(false, "Deno nodule reody")
registerSettings(AscAssetManager); 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={}) => { Hooks.on("ascAssetManager.renderUploadChoose", (data={}) => {

View File

@@ -1,10 +1,12 @@
{ {
"id": "asc-asset-manager", "id": "asc-asset-manager",
"title": "asc-asset-manager", "title": "Asset Manager",
"version": "0.1.0", "version": "0.1.1",
"download": "https://gitea.ascorrea.com/asc/asc-asset-manager/releases/download/0.1.1/module.zip",
"manifest": "https://gitea.ascorrea.com/asc/asc-asset-manager/releases/download/latest/module.json",
"compatibility": { "compatibility": {
"minimum": "12", "minimum": "12",
"verified": "12" "verified": "12.331"
}, },
"authors": [ "authors": [
{ {

View File

@@ -1 +1 @@
MANIFEST-000010 MANIFEST-000023

View File

@@ -1,3 +1,3 @@
2025/01/19-15:09:29.737471 17359b000 Recovering log #9 2025/01/23-07:36:18.512910 16efc3000 Recovering log #22
2025/01/19-15:09:29.737887 17359b000 Delete type=3 #7 2025/01/23-07:36:18.513160 16efc3000 Delete type=3 #21
2025/01/19-15:09:29.737973 17359b000 Delete type=0 #9 2025/01/23-07:36:18.513188 16efc3000 Delete type=0 #22

View File

@@ -1,5 +1,3 @@
2025/01/19-15:04:17.219781 17397b000 Recovering log #6 2025/01/23-07:33:44.757771 172f3f000 Recovering log #18
2025/01/19-15:04:17.219809 17397b000 Level-0 table #8: started 2025/01/23-07:33:44.758028 172f3f000 Delete type=3 #16
2025/01/19-15:04:17.219961 17397b000 Level-0 table #8: 634 bytes OK 2025/01/23-07:33:44.758052 172f3f000 Delete type=0 #18
2025/01/19-15:04:17.220279 17397b000 Delete type=0 #6
2025/01/19-15:04:17.220330 17397b000 Delete type=3 #4

Binary file not shown.

View File

@@ -3,15 +3,16 @@ export function registerSettings(AscAssetManager) {
const ID = AscAssetManager.ID const ID = AscAssetManager.ID
//<a class="content-link" draggable="true" data-link="" data-uuid="Item.VF90ijwtDojmEQE5" data-id="VF90ijwtDojmEQE5" data-type="Item" data-tooltip="Ability Item"><i class="fas fa-suitcase"></i>Ability</a> //<a class="content-link" draggable="true" data-link="" data-uuid="Item.VF90ijwtDojmEQE5" data-id="VF90ijwtDojmEQE5" data-type="Item" data-tooltip="Ability Item"><i class="fas fa-suitcase"></i>Ability</a>
// Register the "enableFeature" setting // Register the "enableFeature" setting
game.settings.register(ID, "enableFeature", { game.settings.register(ID, "enableDebugMode", {
name: "Enable Feature", name: "Enable Debug Mode",
hint: "Enable or disable the special feature of this module.", hint: "Enable or disable debug mode for this module. When enabled, additional debugging information will be logged to the console.",
scope: "world", scope: "world",
config: true, config: true,
type: Boolean, type: Boolean,
default: true, requiresReload: true,
default: false,
onChange: value => { onChange: value => {
console.log(`Enable Feature setting changed to: ${value}`); console.log(`Debug Mode setting changed to: ${value}`);
} }
}); });
@@ -29,24 +30,6 @@ export function registerSettings(AscAssetManager) {
} }
}); });
// Register a dropdown setting
game.settings.register(ID, "theme", {
name: "Select Theme",
hint: "Choose a theme for the module.",
scope: "world",
config: true,
type: String,
choices: {
light: "Light Theme",
dark: "Dark Theme",
system: "Use System Default"
},
default: "system",
onChange: value => {
console.log(`Theme changed to: ${value}`);
}
});
game.settings.registerMenu(ID, "instructions", { game.settings.registerMenu(ID, "instructions", {
name: "Add macro to hotbar", name: "Add macro to hotbar",
label: "Get Macro", label: "Get Macro",