kvm/ui/src
Silke pilon c1c16c3500 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-20 21:07:33 +02:00
..
assets Clean up Virtual Keyboard styling (#761) 2025-09-03 11:33:07 +02:00
components feat(macros): add text/wait step types and improve delays 2025-09-20 20:56:15 +02:00
constants Add keyboard macros (#305) 2025-04-11 00:43:46 +02:00
hooks feat(macros): add text/wait step types and improve delays 2025-09-20 20:56:15 +02:00
keyboardLayouts Clean up Virtual Keyboard styling (#761) 2025-09-03 11:33:07 +02:00
providers Apply and Upgrade Eslint (#288) 2025-03-25 11:56:24 +01:00
routes feat(macros add import/export, sanitize imports, and refactor 2025-09-20 21:07:33 +02:00
api.ts Release 202412292127 2024-12-29 21:27:42 +01:00
cva.config.ts Release 202412292127 2024-12-29 21:27:42 +01:00
index.css Clean up Virtual Keyboard styling (#761) 2025-09-03 11:33:07 +02:00
keyboardLayouts.ts Add ability to track modifier state on the device (#725) 2025-08-26 17:09:35 +02:00
keyboardMappings.ts Clean up Virtual Keyboard styling (#761) 2025-09-03 11:33:07 +02:00
main.tsx fix(ui): Don't render a button in a button (#782) 2025-09-08 11:06:08 +02:00
notifications.tsx chore(ui): Patch-bump packages and use tailwind upgrade (#456) 2025-05-16 19:59:57 +02:00
root.tsx Upgrade vite and react-router (#778) 2025-09-04 12:20:01 +02:00
ui.config.ts feat(cloud): Add support for custom cloud app URL configuration (#207) 2025-02-28 13:48:52 +01:00
utils.ts Enhance connection stats sidebar (#748) 2025-09-08 10:59:36 +02:00
webrtc.d.ts Release 202412292127 2024-12-29 21:27:42 +01:00