From 4690f771fae95c5dde682461bdf2a0c103273206 Mon Sep 17 00:00:00 2001 From: Valentin Boulanger Date: Sat, 2 Nov 2024 00:29:46 +0100 Subject: [PATCH] added the device card component --- .../src/components/General/InfoButton.svelte | 56 ++++++++++++++++ .../src/components/Settings/DeviceCard.svelte | 62 ++++++++++++++++++ .../Settings/InputsOutputsContent.svelte | 65 ++++++++++++++++++- frontend/src/lang/en.json | 7 +- 4 files changed, 187 insertions(+), 3 deletions(-) create mode 100644 frontend/src/components/General/InfoButton.svelte create mode 100644 frontend/src/components/Settings/DeviceCard.svelte diff --git a/frontend/src/components/General/InfoButton.svelte b/frontend/src/components/General/InfoButton.svelte new file mode 100644 index 0000000..dcb4132 --- /dev/null +++ b/frontend/src/components/General/InfoButton.svelte @@ -0,0 +1,56 @@ + + + +
+
+ +
+ {#if message} + + {/if} +
+ + + + diff --git a/frontend/src/components/Settings/DeviceCard.svelte b/frontend/src/components/Settings/DeviceCard.svelte new file mode 100644 index 0000000..d890655 --- /dev/null +++ b/frontend/src/components/Settings/DeviceCard.svelte @@ -0,0 +1,62 @@ + + +
+
+

{title}

+
{subtitle}
+
{line1}
+
{line2}
+
+
+ + + +
+
+ + + \ No newline at end of file diff --git a/frontend/src/components/Settings/InputsOutputsContent.svelte b/frontend/src/components/Settings/InputsOutputsContent.svelte index 60925a3..aeecd30 100644 --- a/frontend/src/components/Settings/InputsOutputsContent.svelte +++ b/frontend/src/components/Settings/InputsOutputsContent.svelte @@ -1,9 +1,70 @@ -

This is the Inputs & outputs page

+ +
+
+

Option 1

+

Option 2

+

Option 3

+
+ +
+
+ console.log("Delete the Virtual DJ device")}/> + + +
+

{$_("projectHardwareInputsLabel")}

+
{$_("projectHardwareShowLabel")}
+

{$_("projectHardwareOutputsLabel")}

+
+ console.log("Delete the rendering interface")}/> + + + +
+
+
+ \ No newline at end of file diff --git a/frontend/src/lang/en.json b/frontend/src/lang/en.json index d4b544e..1cfc9cb 100644 --- a/frontend/src/lang/en.json +++ b/frontend/src/lang/en.json @@ -28,5 +28,10 @@ "projectAvatarTooltip": "Load a new show avatar", "projectCommentsLabel": "Comments", "projectCommentsPlaceholder": "Leave your comments here", - "projectLoadAvatarButton": "Load a new avatar" + "projectLoadAvatarButton": "Load a new avatar", + + "projectHardwareShowLabel" : "My Show", + "projectHardwareInputsLabel": "INPUTS", + "projectHardwareOutputsLabel": "OUTPUTS", + "projectHardwareDeleteTooltip": "Delete this device" }