12 Commits

Author SHA1 Message Date
8fbbb4f788 Bump version to 0.2.1 and update download URL
Incremented the module version from 0.2.0 to 0.2.1 and updated the corresponding download URL to reflect the new release. This ensures proper version tracking and correct download linkage for the updated module.
0.2.1
2025-02-03 07:57:27 -06:00
e6e8ae4f3f Fix incorrect Handlebars context reference in input names
Updated the Handlebars template to correctly reference the parent context for `item_id` using `../item_id` instead of `item_id`. This ensures the input field names are properly constructed within nested loops, avoiding potential data binding issues.
2025-02-03 07:55:52 -06:00
fb9eeba103 Rename log and manifest files in asset manager macros
- Renamed `000028.log` to `000041.log`
- Renamed `MANIFEST-000027` to `MANIFEST-000039`
- Updated binary files `CURRENT`, `LOG`, and `LOG.old`
2025-01-31 09:57:34 -06:00
04aee6e44c Bump version to 0.2.0 and update download URL
- Updated the module version in `module.json` from `0.1.1` to `0.2.0`.
- Adjusted the `download` URL to point to the `0.2.0` release ZIP file.

This change reflects the addition of new features and improvements in the latest release.
0.2.0
2025-01-23 10:26:17 -06:00
3fdaadf7e0 Add customizable tags and categories with UI management
- Introduced settings for tags and categories in `settings.js`:
  - Added `tags` and `categories` settings with default values and support for customization.
  - Registered a new settings menu for managing tags and categories dynamically.
- Enhanced `main.js` to use the customizable tags and categories in templates.
  - Adjusted `AscAssetManager.TEMPLATES` to include a new `SETTINGS_TAGS_AND_CATEGORIES` template.
  - Updated the `renderUploadForm` hook to fetch tags and categories dynamically from settings.
- Added a new Handlebars template `settings-tags-and-categories.hbs`:
  - Provides a user interface for managing tags and categories.
  - Includes functionality to add, reset, and delete rows dynamically.

These updates allow users to define and manage tags and categories via the module's settings menu, improving flexibility and user experience.
2025-01-23 10:24:54 -06:00
4cd01570f7 Update and rename binary files in asset manager macros
- Renamed `000024.log` to `000028.log`.
- Renamed `MANIFEST-000023` to `MANIFEST-000027` with updated binary content.
- Updated binary content for `CURRENT`, `LOG`, and `LOG.old`.

These changes reorganize and modify the binary files in the `asc-asset-manager-macros` directory to reflect the latest updates.
2025-01-23 10:24:14 -06:00
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.
0.1.1
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
c25715c8d0 Add drag-and-drop file upload and macro settings enhancements
### Changes Made
- Added a new SVG asset (`download-solid.svg`) to `src/assets`.
- Updated `main.js`:
  - Added a new template `SETTINGS_MENU_MACRO`.
  - Improved drag-and-drop file upload handling with visual feedback.
  - Enhanced macro functionality with custom drag-and-drop events on hotbar macros.
  - Adjusted `registerSettings` function to include macro menu registration.
- Updated `module.json`:
  - Added macro pack support under `packs` for "asc-asset-manager-macros."
- Created new binary files for macro pack (`asc-asset-manager-macros`).
- Improved CSS styling:
  - Added `.dragover` class for better drag-and-drop UI feedback.
  - Updated styles to include `asc-asset-manager` context.
- Updated `upload-choose.hbs` and `upload-form.hbs`:
  - Added `moduleId` class context.
  - Enhanced `upload-form` with an image preview section.
- Added a new template (`settings-menu-macro.hbs`) for macro-related UI.
- Improved logging and hooks for better event tracking and debugging.

This commit enhances functionality, user experience, and modularity for managing assets.
0.1.0
2025-01-19 16:24:20 -06:00
ae60ce3fcf Update .gitignore to include the dist directory
Updated the `.gitignore` file to replace `dist/module.zip` with the entire `dist` directory, ensuring all files within the directory are ignored.
2025-01-19 11:19:17 -06:00
aba086d7f0 Add initial implementation for AscAssetManager module
This commit introduces the following key features:

- **New `.gitignore`**:
  - Ignores `.vscode`, `.eslintrc.js`, and `dist/module.zip`.

- **Core functionality**:
  - Created `src/main.js` to implement the `AscAssetManager` class with methods to manage file uploads, categories, tags, and settings registration.
  - Introduced hooks for rendering and managing custom upload dialogs and forms.

- **Configuration and settings**:
  - Added `src/settings.js` to register settings for features like enabling/disabling, root directory configuration, and theme selection.

- **Templates**:
  - Added `upload-choose.hbs` for the file selection dialog.
  - Added `upload-form.hbs` for the file metadata customization dialog.

- **Utilities**:
  - Added `src/utils.js` with helper functions for file parsing, metadata handling, and filename creation.

- **Styling**:
  - Added `style.css` for styling upload areas.

- **Module metadata**:
  - Added `module.json` with module details, compatibility, and dependencies.

This commit establishes the foundational structure and functionality for the AscAssetManager module.
2025-01-19 10:52:44 -06:00