From fd52e49bc165abd21ab521e054ead3816e83bf3f Mon Sep 17 00:00:00 2001 From: Chris Friemann Date: Wed, 10 Jan 2024 14:13:52 +0100 Subject: [PATCH 01/11] feat: added scan-icon --- src/resources/vue/components/icon.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/resources/vue/components/icon.vue b/src/resources/vue/components/icon.vue index b20a4b1..70c043e 100644 --- a/src/resources/vue/components/icon.vue +++ b/src/resources/vue/components/icon.vue @@ -22,6 +22,8 @@ export default { return ``; case 'warning': return ``; + case 'scan-icon': + return ``; default: return ''; } From 22751fc67eb48bd0a05178b799eac4d2b40d5eec Mon Sep 17 00:00:00 2001 From: Chris Friemann Date: Wed, 10 Jan 2024 14:14:05 +0100 Subject: [PATCH 02/11] fix: icon offset --- src/resources/vue/components/icon.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/resources/vue/components/icon.vue b/src/resources/vue/components/icon.vue index 70c043e..5e62ac5 100644 --- a/src/resources/vue/components/icon.vue +++ b/src/resources/vue/components/icon.vue @@ -1,5 +1,5 @@ - + From 1f77cde9cba8ba3500820e4a3a86b50f3d869813 Mon Sep 17 00:00:00 2001 From: Chris Friemann Date: Wed, 10 Jan 2024 14:14:52 +0100 Subject: [PATCH 03/11] fix: flex direction not variable --- src/resources/vue/components/Box.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/resources/vue/components/Box.vue b/src/resources/vue/components/Box.vue index f69ed97..1adf2f3 100644 --- a/src/resources/vue/components/Box.vue +++ b/src/resources/vue/components/Box.vue @@ -1,5 +1,5 @@ @@ -11,6 +11,10 @@ type: String, default: '#f2f2f2', }, + direction: { + type: String, + default: 'column', + }, }, }; @@ -20,7 +24,6 @@ border-radius: 5px; width: fit-content; display: flex; - flex-direction: column; justify-content: space-between; align-items: center; } From 46312b615e0d2b3a7d70caa5adc38b849d20aebe Mon Sep 17 00:00:00 2001 From: Chris Friemann Date: Wed, 10 Jan 2024 14:16:19 +0100 Subject: [PATCH 04/11] fix: moved icon, fixed direction, added props and some styling --- .../vue/components/terminal-scan.vue | 58 ++++++++++++++++--- 1 file changed, 50 insertions(+), 8 deletions(-) diff --git a/src/resources/vue/components/terminal-scan.vue b/src/resources/vue/components/terminal-scan.vue index 1edfbce..3311e30 100644 --- a/src/resources/vue/components/terminal-scan.vue +++ b/src/resources/vue/components/terminal-scan.vue @@ -1,14 +1,17 @@ @@ -16,13 +19,15 @@ import Box from '../components/Box.vue'; import Button from '../components/Button.vue'; import Input from '../components/Input.vue'; + import Icon from '../components/Icon.vue'; export default { name: 'index', components: { Box, Button, - Input + Input, + Icon }, methods: { searchInput() { @@ -30,6 +35,24 @@ console.log('Search input'); }, }, + props: { + direction: { + type: String, + default: 'column', + }, + text: { + type: String, + default: 'Lorem Ipsum Text', + }, + placeholder: { + type: String, + default: 'Placeholder', + }, + icon: { + type: String, + default: 'default', + }, + }, }; @@ -41,6 +64,10 @@ gap: 40px; margin-bottom: 17px; + &.column { + flex-direction: column !important; + } + .text { color: #000; max-width: 245px; @@ -55,6 +82,21 @@ } } + .form { + display: flex; + flex-direction: column; + align-items: center; + gap: 7px; + + .form-input { + display: flex; + flex-direction: row; + align-items: center; + justify-content: center; + gap: 10px; + } + } + .button { margin-top: 15px; } From 0c15317c5f3abcf0aac6f377fd96cb1d4a1b06e3 Mon Sep 17 00:00:00 2001 From: Chris Friemann Date: Wed, 10 Jan 2024 14:16:42 +0100 Subject: [PATCH 05/11] feat: terminal startpage --- src/resources/vue/pages/index.vue | 38 +++++++++++++++++++++++++++---- 1 file changed, 33 insertions(+), 5 deletions(-) diff --git a/src/resources/vue/pages/index.vue b/src/resources/vue/pages/index.vue index 505b780..b7fe84b 100644 --- a/src/resources/vue/pages/index.vue +++ b/src/resources/vue/pages/index.vue @@ -1,8 +1,36 @@ \ No newline at end of file + import TerminalScan from "../components/terminal-scan.vue"; + + export default { + name: "Index", + components: { + TerminalScan, + }, + }; + + \ No newline at end of file From 8d8428e577ad0b3b949ed9ef16dcbc2dde52a50d Mon Sep 17 00:00:00 2001 From: Chris Friemann Date: Thu, 11 Jan 2024 10:32:06 +0100 Subject: [PATCH 06/11] cleanup: removed comment --- src/resources/vue/components/terminal-scan.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resources/vue/components/terminal-scan.vue b/src/resources/vue/components/terminal-scan.vue index 3311e30..fac9ac4 100644 --- a/src/resources/vue/components/terminal-scan.vue +++ b/src/resources/vue/components/terminal-scan.vue @@ -7,7 +7,7 @@
- +
-