-
-
+
+
-
+
@@ -21,21 +19,30 @@ import LEDsConfig from '@/components/config/pages/LEDsConfig.vue'
import ProfileConfig from '@/components/config/pages/ProfileConfig.vue'
import MappingConfig from '@/components/config/pages/MappingConfig.vue'
import HapticConfig from '@/components/config/pages/HapticConfig.vue'
-import ScrambleText from '@/components/effects/ScrambleText.vue'
-import DevPlayground from '@/components/config/pages/DevPlayground.vue'
defineProps({
- page: {
+ currentPage: {
type: String,
- default: 'profile_settings',
+ default: 'profileConfig',
},
})
-const configPages = {
- profile_settings: ProfileConfig,
- feedback_designer: HapticConfig,
- mapping_configuration: MappingConfig,
- light_designer: LEDsConfig,
- dev_playground: DevPlayground,
+const configPageOptions = {
+ profileConfig: {
+ titleKey: 'config_options.profile_settings.title',
+ component: ProfileConfig,
+ },
+ hapticConfig: {
+ titleKey: 'config_options.feedback_designer.title',
+ component: HapticConfig,
+ },
+ mappingConfig: {
+ titleKey: 'config_options.mapping_configuration.title',
+ component: MappingConfig,
+ },
+ ledsConfig: {
+ titleKey: 'config_options.light_designer.title',
+ component: LEDsConfig,
+ },
}
\ No newline at end of file
diff --git a/src/components/config/ConfigSelect.vue b/src/components/config/ConfigSelect.vue
index a272bdf..5b08496 100644
--- a/src/components/config/ConfigSelect.vue
+++ b/src/components/config/ConfigSelect.vue
@@ -15,9 +15,6 @@
v-t="config.badgeKey"
class="font-mono ml-2 rounded-full h-4 align-middle bg-zinc-900 text-muted-foreground" />
-
- {{ $t(`config_options.${config.id}.subtitle`) }}
-