mirror of
https://github.com/hay-kot/homebox.git
synced 2025-08-04 08:40:28 +00:00
add version to profile
This commit is contained in:
parent
a7a769aec3
commit
26580bc6d5
1 changed files with 10 additions and 0 deletions
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue