11 Commits

Author SHA1 Message Date
c2372f661e Update configuration, add dependencies, and enhance socket event handling
Some checks failed
farmcontrol/farmcontrol-ws/pipeline/head There was a failure building this commit
- Changed log level in config.json from "debug" to "trace" for more detailed logging.
- Added new dependencies "pdf-to-img" and "sharp" in package.json for image processing capabilities.
- Introduced 'renderTemplateJPG' event handling in SocketHost and SocketUser classes to support JPG rendering.
- Implemented the renderJPG method in TemplateManager for converting templates to JPG format, including error handling and logging.
2026-07-28 23:16:05 +01:00
53b5924767 Refactor parent template handling in TemplateManager
All checks were successful
farmcontrol/farmcontrol-ws/pipeline/head This commit looks good
- Updated the logic to retrieve and validate the parent template content, ensuring it is correctly fetched and checked for string type.
- Improved error logging to provide clearer messages when parent template content is missing or invalid.
2026-07-28 02:51:02 +01:00
8c445a7392 Enhance socket management and error handling in template events
- Increased the maximum HTTP buffer size for the Socket.IO server to improve data handling capabilities.
- Added error handling in `handlePreviewTemplateEvent` and `handleRenderTemplatePDFEvent` methods to log errors and return error messages through callbacks.
- Implemented a check for unknown object types in the `TemplateManager` to prevent processing errors and return appropriate error messages.
2026-07-28 01:50:24 +01:00
107ec278ef Fixed template crash.
All checks were successful
farmcontrol/farmcontrol-ws/pipeline/head This commit looks good
2026-07-13 23:20:40 +01:00
237383d3c4 Removed development logging. 2025-12-27 15:19:18 +00:00
8eafc81321 Updated models inline with API. 2025-12-27 14:15:13 +00:00
4653430c0f Added infinite height support. 2025-12-13 21:02:14 +00:00
79ed7691f9 Added document printer support. 2025-11-29 01:28:20 +00:00
6be53349b5 Refactor LockManager to standardize lock key format and enhance logging; add debug statement in TemplateManager for template rendering 2025-11-16 17:11:15 +00:00
ca78fd6e62 Enhance template manager with additional style attributes
- Added support for color, background, and scale attributes in getNodeStyles function.
- Updated transformCustomElements function to apply dynamic styles to Text, Bold, and Barcode elements.
- Changed Barcode element to use a div container for better structure and styling.
2025-09-05 23:29:28 +01:00
5584e61583 Add Template Manager and associated assets for document rendering
- Implemented TemplateManager class for rendering EJS templates with dynamic content.
- Added base template, preview template, content placeholder, and render template EJS files.
- Introduced CSS styles for document layout and presentation.
- Integrated dayjs for date formatting and posthtml for custom element transformation.
2025-08-18 01:05:57 +01:00