Rework os info page

This commit is contained in:
Nicola Spadari
2025-02-09 12:53:21 +01:00
parent 8dcf25078b
commit ae66af30d9
2 changed files with 24 additions and 11 deletions

View File

@@ -33,6 +33,12 @@ export default defineAppConfig({
base: "resize-none"
}
},
accordion: {
slots: {
trigger: "cursor-pointer",
item: "md:py-2"
},
},
navigationMenu: {
slots: {
link: "cursor-pointer",

View File

@@ -3,13 +3,7 @@
title="OS Information"
description="Read information about the operating system using the OS Information plugin."
>
<div class="overflow-hidden rounded-lg bg-neutral-800 shadow">
<dl class="divide-y divide-neutral-600">
<TabRow heading="Platform" :body="`${currentPlatform} ${currentVersion}`" />
<TabRow heading="Arch" :body="currentArch" />
<TabRow heading="Locale" :body="currentLocale" />
</dl>
</div>
<UAccordion :items="items" type="multiple" />
</LayoutTile>
</template>
@@ -19,8 +13,21 @@
icon: "lucide:info"
});
const currentPlatform = await useTauriOsPlatform();
const currentArch = await useTauriOsArch();
const currentVersion = await useTauriOsVersion();
const currentLocale = await useTauriOsLocale() || "Not detectable";
const items = ref([
{
label: "System",
icon: "lucide:monitor",
content: `${useTauriOsPlatform()} ${useTauriOsVersion()}`
},
{
label: "Arch",
icon: "lucide:microchip",
content: useTauriOsArch()
},
{
label: "Locale",
icon: "lucide:globe",
content: await useTauriOsLocale() || "Not detectable"
}
]);
</script>