::
-
+
+
+ Devices (2)
+
+
+ Device
+
+
- {{ $t('navbar.device.disconnect') }}
+ {{ store.connected ? $t('navbar.device.disconnect') : $t('navbar.device.connect') }}
⌘D
- {{ $t('navbar.device.about') }}
+ Next Device
+ ⌘N
+
- {{ $t('navbar.device.preferences') }}
+ {{ $t('navbar.device.preferences') }}
+ ⌘,
+
{{ $t('navbar.device.export') }}
⌘E
@@ -54,25 +65,16 @@
Help
-
-
- {{ $t('navbar.device.disconnect') }}
- ⌘D
-
- {{ $t('navbar.device.about') }}
+ Help?
+ HELP!
+ HEEEELLLP!!!
- {{ $t('navbar.device.preferences') }}
+ Aaah!!!
+ AAAAAaaaaaahh!!!
+ AAAAAAAAAAAAAaaaaaargh!!!
- {{ $t('navbar.device.export') }}
- ⌘E
-
- {{ $t('navbar.device.import') }}
- ⌘I
-
-
- {{ $t('navbar.device.quit') }}
- ⌘Q
-
+ Contact Support
+ Report a Bug
diff --git a/src/components/profile/ProfileManager.vue b/src/components/profile/ProfileManager.vue
index 233782e..2cbc284 100644
--- a/src/components/profile/ProfileManager.vue
+++ b/src/components/profile/ProfileManager.vue
@@ -18,7 +18,7 @@
diff --git a/src/lang/en.json b/src/lang/en.json
index 77837b5..900b84a 100644
--- a/src/lang/en.json
+++ b/src/lang/en.json
@@ -90,8 +90,8 @@
"about": "About Device",
"connect": "Connect",
"disconnect": "Disconnect",
- "export": "Export JSON",
- "import": "Import JSON",
+ "export": "Export Profiles",
+ "import": "Import Profiles",
"preferences": "Preferences",
"quit": "Quit",
"title": "Device"
diff --git a/src/store.js b/src/store.js
index 703f18b..aa32b4b 100644
--- a/src/store.js
+++ b/src/store.js
@@ -18,6 +18,7 @@ export const useStore = defineStore('main', {
profileCategories: [],
selectedProfileId: null,
connected: false,
+ connectedDevices: ['test1', 'test2'],
selectedFeature: 'knob',
selectedKey: 'a',
currentConfigPage: 'mapping',
@@ -46,6 +47,7 @@ export const useStore = defineStore('main', {
selectedProfile: (state) => state.profiles.find(p => p.id === state.selectedProfileId),
currentConfigComponent: (state) => state.configPages[state.selectedFeature][state.currentConfigPage]?.component || WIP,
currentConfigPages: (state) => state.configPages[state.selectedFeature] || {},
+ multipleDevicesConnected: (state) => state.connectedDevices.length > 1,
}, actions: {
selectProfile(id) {
if (!this.profileIds.includes(id)) return false