From b9a2abd2818499761022f5951aaa8d51b7a6b3b4 Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Thu, 22 Dec 2022 18:47:36 -0900 Subject: [PATCH] cleanup --- frontend/components/Chart/Line.vue | 68 ++++++++++------ frontend/composables/use-css-var.ts | 2 - frontend/layouts/default.vue | 122 ++++++++++++++++------------ frontend/pages/home/index.vue | 51 +++--------- frontend/pages/profile.vue | 2 - 5 files changed, 123 insertions(+), 122 deletions(-) diff --git a/frontend/components/Chart/Line.vue b/frontend/components/Chart/Line.vue index 014f20c..c74e759 100644 --- a/frontend/components/Chart/Line.vue +++ b/frontend/components/Chart/Line.vue @@ -1,14 +1,8 @@ + + diff --git a/frontend/composables/use-css-var.ts b/frontend/composables/use-css-var.ts index 2eb7084..56ee2dc 100644 --- a/frontend/composables/use-css-var.ts +++ b/frontend/composables/use-css-var.ts @@ -119,8 +119,6 @@ export function useCssVar(name: string, options?: VarOptions) { val += `, ${options.transparency}`; } - console.log(`hsla(${val})`); - return `hsla(${val})`; }); } diff --git a/frontend/layouts/default.vue b/frontend/layouts/default.vue index df89ca5..8dff148 100644 --- a/frontend/layouts/default.vue +++ b/frontend/layouts/default.vue @@ -12,70 +12,75 @@
- +
- +
-
+
- -
-
-

Kotelman House

- -
- HK -
-
-
-
-
- -
- -
-
- - + +
+
+
+

Welcome, {{ username }}

+ +
+ +
+
+
+
+
+ +
+ +
+
+ + + +
@@ -86,6 +91,8 @@ import { useLabelStore } from "~~/stores/labels"; import { useLocationStore } from "~~/stores/locations"; + const username = computed(() => authStore.self?.name || "User"); + const modals = reactive({ item: false, location: false, @@ -116,6 +123,13 @@ const route = useRoute(); + const drawerToggle = ref(); + + function unfocus() { + // unfocus current element + drawerToggle.value = false; + } + const nav = [ { icon: "mdi-home", diff --git a/frontend/pages/home/index.vue b/frontend/pages/home/index.vue index 8739ff8..372c0a9 100644 --- a/frontend/pages/home/index.vue +++ b/frontend/pages/home/index.vue @@ -1,7 +1,6 @@