From 3019f34013a75acc938dcd82c22108664cabcf00 Mon Sep 17 00:00:00 2001
From: Daniel Egger
Date: Mon, 13 Jun 2022 18:13:39 +0200
Subject: [PATCH] Add dropdown example
---
client/package.json | 1 +
client/src/components/MainNavigationBar.vue | 5 +-
client/src/views/StyelGuideView.vue | 159 +++++++++++++-----
.../static/icons/icon-arrow-down.svg | 2 +-
.../static/icons/icon-arrow-left.svg | 2 +-
.../static/icons/icon-arrow-right.svg | 2 +-
.../static/icons/icon-arrow-up.svg | 2 +-
.../vbv_lernwelt/static/icons/icon-check.svg | 2 +-
.../static/icons/icon-checkbox-checked.svg | 8 +-
.../static/icons/icon-checkbox-unchecked.svg | 7 +-
.../vbv_lernwelt/static/icons/icon-close.svg | 2 +-
.../vbv_lernwelt/static/icons/icon-info.svg | 2 +-
.../static/icons/icon-ls-apply.svg | 2 +-
.../vbv_lernwelt/static/icons/icon-ls-end.svg | 2 +-
.../static/icons/icon-ls-network.svg | 2 +-
.../static/icons/icon-ls-practice.svg | 2 +-
.../static/icons/icon-ls-start.svg | 2 +-
.../static/icons/icon-ls-test.svg | 2 +-
.../static/icons/icon-ls-watch.svg | 2 +-
.../static/icons/icon-message.svg | 2 +-
.../static/icons/icon-smiley-happy.svg | 19 +--
.../static/icons/icon-smiley-neutral.svg | 18 +-
.../static/icons/icon-smiley-thinking.svg | 29 ++--
tailwind.config.js | 2 +-
24 files changed, 175 insertions(+), 103 deletions(-)
diff --git a/client/package.json b/client/package.json
index 8cc8e949..8d703d42 100644
--- a/client/package.json
+++ b/client/package.json
@@ -12,6 +12,7 @@
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
},
"dependencies": {
+ "@headlessui/vue": "^1.6.4",
"axios": "^0.26.1",
"d3": "^7.4.4",
"loglevel": "^1.8.0",
diff --git a/client/src/components/MainNavigationBar.vue b/client/src/components/MainNavigationBar.vue
index 3e06df82..9e73317d 100644
--- a/client/src/components/MainNavigationBar.vue
+++ b/client/src/components/MainNavigationBar.vue
@@ -74,7 +74,10 @@ function calcNavigationMobileOpenClasses() {
Mediathek
- Netzwerk
+
+
+ Netzwerk
+
Jan Baumgartner
diff --git a/client/src/views/StyelGuideView.vue b/client/src/views/StyelGuideView.vue
index 44ccd7ed..e964dca8 100644
--- a/client/src/views/StyelGuideView.vue
+++ b/client/src/views/StyelGuideView.vue
@@ -1,14 +1,32 @@
@@ -25,110 +43,110 @@ function colorBgClass(color: string, value: number) {
<it-icon-message/>
-
+
message
-
+
-
+
arrow-up
-
+
-
+
arrow-down
-
+
-
+
arrow-left
-
+
-
+
arrow-right
-
+
-
+
close
-
+
-
+
check
-
+
-
+
info
-
+
-
+
checkbox-checked
-
+
-
-
+
ls-apply
-
+
-
+
ls-watch
-
+
-
+
ls-test
-
+
-
+
ls-practice
-
+
-
+
ls-network
-
+
-
+
ls-start
-
+
-
-
+
smiley-happy
-
+
-
+
smiley-thinking
-
+
-
@@ -137,7 +155,7 @@ function colorBgClass(color: string, value: number) {
- |
+ |
{{value}} |
@@ -177,6 +195,63 @@ function colorBgClass(color: string, value: number) {
+
+
+
+
+
+
+
+
+
+
+
+ Dropdown (Work-in-progress)
+
+
+
+
+ {{ selected.name }}
+
+
+
+
+
+
+
+
+
+
+ {{ person.name }}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/server/vbv_lernwelt/static/icons/icon-arrow-down.svg b/server/vbv_lernwelt/static/icons/icon-arrow-down.svg
index b79cfb02..ab374eca 100644
--- a/server/vbv_lernwelt/static/icons/icon-arrow-down.svg
+++ b/server/vbv_lernwelt/static/icons/icon-arrow-down.svg
@@ -1,4 +1,4 @@
-