Skip to content

Commit

Permalink
Add support for export/import of macros (#721)
Browse files Browse the repository at this point in the history
* Add macros to backup page

* Remove usedPins data from getMacroAddonOptions in dev server
  • Loading branch information
Pelsin committed Dec 29, 2023
1 parent 27902e9 commit aa2595a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion www/server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,6 @@ app.get('/api/getMacroAddonOptions', (req, res) => {
macroPin: -1,
macroBoardLedEnabled: 1,
InputMacroAddonEnabled: 1,
usedPins: Object.values(picoController),
});
});

Expand Down
1 change: 1 addition & 0 deletions www/src/Locales/en/BackupPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export default {
'api-gamepad-text': 'Gamepad',
'api-led-text': 'LED',
'api-ledTheme-text': 'Custom LED Theme',
'api-macros-text': 'Macro Mappings',
'api-pins-text': 'Pin Mappings',
'api-profiles-text': 'Profile Mappings',
'api-addons-text': 'Add-Ons',
Expand Down
5 changes: 5 additions & 0 deletions www/src/Pages/BackupPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ const API_BINDING = {
get: WebApi.getCustomTheme,
set: WebApi.setCustomTheme,
},
macros: {
label: 'Macro Mappings',
get: WebApi.getMacroAddonOptions,
set: WebApi.setMacroAddonOptions,
},
pins: {
label: 'Pin Mappings',
get: WebApi.getPinMappings,
Expand Down

0 comments on commit aa2595a

Please sign in to comment.