From 467830d11a96e3c29f774b103bd9420acd6b7390 Mon Sep 17 00:00:00 2001 From: Syver Stensholt Date: Fri, 12 Sep 2025 23:11:28 +0200 Subject: [PATCH 1/4] start implementing status indicator for connections --- .../src/components/StatusIndicator.vue | 13 +++++++++++++ hydrawlics-frontend/src/pages/IndexPage.vue | 4 ++++ 2 files changed, 17 insertions(+) create mode 100644 hydrawlics-frontend/src/components/StatusIndicator.vue diff --git a/hydrawlics-frontend/src/components/StatusIndicator.vue b/hydrawlics-frontend/src/components/StatusIndicator.vue new file mode 100644 index 0000000..b897962 --- /dev/null +++ b/hydrawlics-frontend/src/components/StatusIndicator.vue @@ -0,0 +1,13 @@ + + + + + \ No newline at end of file diff --git a/hydrawlics-frontend/src/pages/IndexPage.vue b/hydrawlics-frontend/src/pages/IndexPage.vue index 611d33d..aef0d6e 100644 --- a/hydrawlics-frontend/src/pages/IndexPage.vue +++ b/hydrawlics-frontend/src/pages/IndexPage.vue @@ -4,6 +4,7 @@ import axios from "axios"; import {onMounted, ref} from "vue"; import LoadingDots from "../components/LoadingDots.vue"; import type {FileStatus} from "../models/server-objects.ts"; +import StatusIndicator from "../components/StatusIndicator.vue"; const input = ref(null); const selectedFile = ref(null); @@ -139,6 +140,9 @@ onMounted(()=> { {{ letter.char }} +
+ +
From 0e07c04b250afa10b1cc2cef93b989704b377c33 Mon Sep 17 00:00:00 2001 From: Syver Stensholt <7rst1@protonmail.com> Date: Sat, 13 Sep 2025 01:15:47 +0200 Subject: [PATCH 2/4] Finished implementing the status indicator --- .idea/hydrawlics-webui.iml | 2 +- .idea/misc.xml | 2 +- .../src/components/StatusIndicator.vue | 140 +++++++++++++++++- hydrawlics-frontend/src/constants.ts | 1 + hydrawlics-frontend/src/pages/IndexPage.vue | 23 ++- 5 files changed, 159 insertions(+), 9 deletions(-) create mode 100644 hydrawlics-frontend/src/constants.ts diff --git a/.idea/hydrawlics-webui.iml b/.idea/hydrawlics-webui.iml index 2322132..140e2ee 100644 --- a/.idea/hydrawlics-webui.iml +++ b/.idea/hydrawlics-webui.iml @@ -4,7 +4,7 @@ - + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 5868a99..371afce 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -3,5 +3,5 @@ - + \ No newline at end of file diff --git a/hydrawlics-frontend/src/components/StatusIndicator.vue b/hydrawlics-frontend/src/components/StatusIndicator.vue index b897962..8c39aac 100644 --- a/hydrawlics-frontend/src/components/StatusIndicator.vue +++ b/hydrawlics-frontend/src/components/StatusIndicator.vue @@ -1,13 +1,149 @@ - \ No newline at end of file diff --git a/hydrawlics-frontend/src/constants.ts b/hydrawlics-frontend/src/constants.ts new file mode 100644 index 0000000..e93923b --- /dev/null +++ b/hydrawlics-frontend/src/constants.ts @@ -0,0 +1 @@ +export const SERVER_URL = "http://localhost:5000"; \ No newline at end of file diff --git a/hydrawlics-frontend/src/pages/IndexPage.vue b/hydrawlics-frontend/src/pages/IndexPage.vue index aef0d6e..75c5eec 100644 --- a/hydrawlics-frontend/src/pages/IndexPage.vue +++ b/hydrawlics-frontend/src/pages/IndexPage.vue @@ -1,10 +1,12 @@