From d90f2eea084b79241a9c2c889c1a665dc848cd9d Mon Sep 17 00:00:00 2001 From: Robert Kossessa Date: Thu, 25 Jan 2024 01:05:01 +0100 Subject: [PATCH] ADD: ConfigSection component --- src/components/config/ConfigSection.vue | 36 ++++++++ .../config/{ => pages}/ProfileConfig.vue | 92 +++++++------------ 2 files changed, 70 insertions(+), 58 deletions(-) create mode 100644 src/components/config/ConfigSection.vue rename src/components/config/{ => pages}/ProfileConfig.vue (61%) diff --git a/src/components/config/ConfigSection.vue b/src/components/config/ConfigSection.vue new file mode 100644 index 0000000..efe7007 --- /dev/null +++ b/src/components/config/ConfigSection.vue @@ -0,0 +1,36 @@ + + + \ No newline at end of file diff --git a/src/components/config/ProfileConfig.vue b/src/components/config/pages/ProfileConfig.vue similarity index 61% rename from src/components/config/ProfileConfig.vue rename to src/components/config/pages/ProfileConfig.vue index 2c17c6f..ed663d3 100644 --- a/src/components/config/ProfileConfig.vue +++ b/src/components/config/pages/ProfileConfig.vue @@ -2,72 +2,47 @@
-
- -
- -
-

- {{ $t('config_options.profile_settings.connection_type.title') }}

- -
- - - - - -
-
- usb-logo + + + + +
+
+ usb-logo +
+ {{ $t('config_options.profile_settings.connection_type.usb') + }}
- {{ $t('config_options.profile_settings.connection_type.usb') - }} -
- - -
-
- midi-logo -
- + + +
+
+ midi-logo +
+ {{ $t('config_options.profile_settings.connection_type.midi') }} -
-
- +
+
+ - - - - - -
- -
- -
-
-

{{ $t('config_options.profile_settings.profile_properties.title') - }}

-
- - -
- - -
+ + + +
{{ $t('config_options.profile_settings.profile_properties.profile_name') }} - + + + +
+
- -
-
{{ $t('config_options.profile_settings.profile_properties.profile_description') @@ -130,6 +105,7 @@ import { Tabs } from '@/components/ui/tabs/index.js' import { Label } from '@/components/ui/label/index.js' import { Switch } from '@/components/ui/switch/index.js' import { Replace, Type, Cable, Power } from 'lucide-vue-next' +import ConfigSection from '@/components/config/ConfigSection.vue'