Commit Graph

3 Commits

Author SHA1 Message Date
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