Rework os info page
This commit is contained in:
@@ -33,6 +33,12 @@ export default defineAppConfig({
|
||||
base: "resize-none"
|
||||
}
|
||||
},
|
||||
accordion: {
|
||||
slots: {
|
||||
trigger: "cursor-pointer",
|
||||
item: "md:py-2"
|
||||
},
|
||||
},
|
||||
navigationMenu: {
|
||||
slots: {
|
||||
link: "cursor-pointer",
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user