From 4398cd249232d56a9ffef1eae2ba5c62b7641e79 Mon Sep 17 00:00:00 2001 From: Robert Kossessa Date: Sat, 3 Feb 2024 23:15:53 +0100 Subject: [PATCH] ADD: Device element selection --- src/components/device/DeviceKeys.vue | 39 +++++++++++++++++-------- src/components/device/DeviceLEDRing.vue | 2 +- src/components/device/DevicePreview.vue | 13 +++++++-- 3 files changed, 39 insertions(+), 15 deletions(-) diff --git a/src/components/device/DeviceKeys.vue b/src/components/device/DeviceKeys.vue index 5395f17..26ee387 100644 --- a/src/components/device/DeviceKeys.vue +++ b/src/components/device/DeviceKeys.vue @@ -1,23 +1,38 @@ \ No newline at end of file diff --git a/src/components/device/DeviceLEDRing.vue b/src/components/device/DeviceLEDRing.vue index b576d11..8983c21 100644 --- a/src/components/device/DeviceLEDRing.vue +++ b/src/components/device/DeviceLEDRing.vue @@ -28,7 +28,7 @@ const props = defineProps({ }, }) -const leds = ref(new Array(60).fill(Color())) +const leds = ref(Array(60).fill(Color())) const radius = ref(100) const ledRadius = ref(3) diff --git a/src/components/device/DevicePreview.vue b/src/components/device/DevicePreview.vue index 3e94a7c..28b3ac9 100644 --- a/src/components/device/DevicePreview.vue +++ b/src/components/device/DevicePreview.vue @@ -24,7 +24,14 @@ - +
+
@@ -34,11 +41,13 @@ import LogoMidi from '@/assets/logos/logoMidi.svg' import DeviceBar from '@/components/device/DeviceBar.vue' import { useStore } from '@/store' import ScrambleText from '@/components/effects/ScrambleText.vue' -import { computed, onMounted, onUnmounted, ref } from 'vue' +import { computed, onMounted, ref } from 'vue' import DeviceLEDRing from '@/components/device/DeviceLEDRing.vue' import gsap from 'gsap' import DeviceKeys from '@/components/device/DeviceKeys.vue' +const selected = ref('a') + const value = ref(69) const barValue = computed(() => value.value / 127 * 100)