refactor: load logo from disk instead of hardcoded base64 + add acknowledgment signature rendering
- Reads mpm-logo.png from filesystem at startup, converts to base64 data URI dynamically - Removes massive hardcoded LOGO_B64 constant (~5KB of source code eliminated) - Falls back gracefully if logo file is not found (dev environments) - Tries both dist/ and public/ paths for dev vs production compatibility - Adds acknowledgment rendering: if acknowledged_by is set, shows filled name/date instead of blank signature lines, with green "Acknowledged" badge on section header - Blank signature lines still shown when acknowledgment is not provided
This commit is contained in:
374
pdf/template.js
374
pdf/template.js
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user