add version to profile

This commit is contained in:
Hayden 2022-10-13 16:45:03 -08:00
parent a7a769aec3
commit 26580bc6d5

View file

@ -10,6 +10,13 @@
title: "Homebox | Profile", title: "Homebox | Profile",
}); });
const pubApi = usePublicApi();
const { data: status } = useAsyncData(async () => {
const { data } = await pubApi.status();
return data;
});
const { setTheme } = useTheme(); const { setTheme } = useTheme();
type ThemeOption = { type ThemeOption = {
@ -341,6 +348,9 @@
</template> </template>
</BaseCard> </BaseCard>
</BaseContainer> </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> </div>
</template> </template>