kvm/ui
Silke pilon 8dd004ab54 feat(macros add import/export, sanitize imports, and refactor
- 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.
2025-09-21 15:49:48 +02:00
..
public chore: enhance the gzip and cacheable handling of static files 2025-09-12 08:41:41 +02:00
src feat(macros add import/export, sanitize imports, and refactor 2025-09-21 15:49:48 +02:00
.env.cloud-development feat(cloud): Add custom cloud API URL configuration support (#181) 2025-02-25 16:10:46 +01:00
.env.cloud-production feat(cloud): Add custom cloud API URL configuration support (#181) 2025-02-25 16:10:46 +01:00
.env.cloud-staging feat(cloud): Add custom cloud API URL configuration support (#181) 2025-02-25 16:10:46 +01:00
.gitignore Release 202412292127 2024-12-29 21:27:42 +01:00
.prettierrc refactor: network settings UI (#486) 2025-05-20 15:22:08 +02:00
dev_device.sh network enhanecment / refactor (#361) 2025-04-16 01:39:23 +02:00
eslint.config.cjs Add ability to track modifier state on the device (#725) 2025-08-26 17:09:35 +02:00
index.html chore: enhance the gzip and cacheable handling of static files 2025-09-12 08:41:41 +02:00
package-lock.json build(deps-dev): bump vite (#788) 2025-09-11 12:07:52 +02:00
package.json build(deps-dev): bump vite (#788) 2025-09-11 12:07:52 +02:00
postcss.config.js chore: Upgrade UI vite and tailwind packages (#443) 2025-05-15 14:21:03 +02:00
tailwind.config.js chore(ui): Patch-bump packages and use tailwind upgrade (#456) 2025-05-16 19:59:57 +02:00
tsconfig.json chore(ui): Clean up warnings (#536) 2025-05-30 15:01:32 +02:00
tsconfig.node.json Release 202412292127 2024-12-29 21:27:42 +01:00
vite-env.d.ts Release 202412292127 2024-12-29 21:27:42 +01:00
vite.config.ts chore: enhance the gzip and cacheable handling of static files 2025-09-12 08:41:41 +02:00