Files
play/app/pages/os.vue
2025-01-02 21:58:06 +01:00

22 lines
738 B
Vue

<template>
<LayoutTile
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>
</LayoutTile>
</template>
<script lang="ts" setup>
const currentPlatform = await useTauriOsPlatform();
const currentArch = await useTauriOsArch();
const currentVersion = await useTauriOsVersion();
const currentLocale = await useTauriOsLocale() || "Not detectable";
</script>