From 84bf67079bf7e2cd06fa802da9b36b727c49c1f3 Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Thu, 13 Oct 2022 16:49:29 -0800 Subject: [PATCH] feat: show app version (#60) * add version and build to homepage view * add version to profile --- frontend/pages/index.vue | 4 +++- frontend/pages/profile.vue | 10 ++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/frontend/pages/index.vue b/frontend/pages/index.vue index 12941ca..60b38e0 100644 --- a/frontend/pages/index.vue +++ b/frontend/pages/index.vue @@ -15,7 +15,6 @@ const { data } = await api.status(); if (data) { - console.log(data); username.value = "demo@example.com"; password.value = "demo"; } @@ -223,6 +222,9 @@ + diff --git a/frontend/pages/profile.vue b/frontend/pages/profile.vue index a564844..ed031a2 100644 --- a/frontend/pages/profile.vue +++ b/frontend/pages/profile.vue @@ -10,6 +10,13 @@ title: "Homebox | Profile", }); + const pubApi = usePublicApi(); + const { data: status } = useAsyncData(async () => { + const { data } = await pubApi.status(); + + return data; + }); + const { setTheme } = useTheme(); type ThemeOption = { @@ -341,6 +348,9 @@ +