Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | 10x | <template>
<UDashboardPanel id="overview">
<template #header>
<PageHeader :title="$t('overview.title')">
<template #actions>
<SnapshotAge class="mr-3 hidden sm:flex" :manifest />
<UButton
:label="editing ? $t('overview.done') : $t('overview.customize')"
:icon="editing ? 'i-lucide-check' : 'i-lucide-layout-grid'"
size="sm"
:variant="editing ? 'solid' : 'outline'"
color="neutral"
@click="editing = !editing"
/>
</template>
</PageHeader>
</template>
<template #body>
<DashboardGrid v-model:editing="editing" :widgets :empty storage-key="home-layout">
<template #queue>
<WorkQueue :rows :issues-read :issues-error />
</template>
<template #health>
<HealthLines :lines="health" :collected-age />
</template>
<template #workflows><WorkflowHomePanel /></template>
<template #activity><TelemetryRunsPanel /></template>
<template #tooling><TelemetryUsagePanel /></template>
<template #projects><ProjectsTile /></template>
<template #welcome><ProjectsWelcome /></template>
<template #featured><ProjectsFeatured /></template>
</DashboardGrid>
</template>
</UDashboardPanel>
</template>
<script setup lang="ts">
const { t } = useI18n();
useSeoMeta({ title: t("overview.head"), description: t("overview.description") });
const editing = ref(false);
const widgets = HOME_WIDGETS.map((widget) => ({
...widget,
label: t(`overview.widgets.${widget.id}`),
}));
const { rows, issues } = useWorkQueue();
const health = useHealthLines();
const manifest = snapshotManifest();
const collectedAge = relativeTime(metricsArtifact()?.generatedAt, t);
const issuesRead = computed(() => Boolean(issues.value.fetchedAt));
const issuesError = computed(() => Boolean(issues.value.error));
const empty = usageArtifact() ? [] : ["activity"];
</script>
|