A continuation of HomeBox the inventory and organization system built for the Home User
feat: show app version (#60)
Hayden84bf67079bf7
diff --git a/frontend/pages/index.vue b/frontend/pages/index.vueindex 12941ca0..60b38e06 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 = "[email protected]";password.value = "demo";}@@ -223,6 +222,9 @@</div></div></div>+ <footer v-if="status" class="absolute text-center w-full bottom-0 pb-4">+ <p class="text-center text-sm">Version: {{ status.build.version }} ~ Build: {{ status.build.commit }}</p>+ </footer></div></template>diff --git a/frontend/pages/profile.vue b/frontend/pages/profile.vueindex a5648449..ed031a24 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 @@</template></BaseCard></BaseContainer>+ <footer v-if="status" class="text-center w-full bottom-0 pb-4">+ <p class="text-center text-sm">Version: {{ status.build.version }} ~ Build: {{ status.build.commit }}</p>+ </footer></div></template>