mirror of https://github.com/jetkvm/kvm.git
- add buildDownloadFilename and pad2 helpers to consistently generate safe timestamped filenames for macro downloads - extract macro download logic into handleDownloadMacro and wire up Download button to use it - refactor normalizeSortOrders to a concise one-liner - introduce sanitizeImportedStep and sanitizeImportedMacro to validate imported JSON, enforce types, default values, and limit name length, preventing malformed data from corrupting store - generate new IDs for imported macros and ensure correct sortOrder - update Memo dependencies to include handleDownloadMacro These changes enable reliable macro export/import with sanitized inputs, improve code clarity by extracting utilities, and prevent issues from malformed external files. |
||
|---|---|---|
| .. | ||
| assets | ||
| components | ||
| constants | ||
| hooks | ||
| keyboardLayouts | ||
| providers | ||
| routes | ||
| api.ts | ||
| cva.config.ts | ||
| index.css | ||
| keyboardLayouts.ts | ||
| keyboardMappings.ts | ||
| main.tsx | ||
| notifications.tsx | ||
| root.tsx | ||
| ui.config.ts | ||
| utils.ts | ||
| webrtc.d.ts | ||