mirror of
https://github.com/lukaszraczylo/gohoarder.git
synced 2026-11-26 06:37:07 +00:00
A failed request left the store error set while the view kept its own empty-list branch, so the page said nothing was cached. Every view now checks loading, then error, then content, and the retry button refetches. Unknown paths render a NotFound page with a link to the dashboard. The brand shares the sidebar left edge, and a stopped socket reads Live updates paused in a neutral tone; the client already retries with backoff.
27 lines
690 B
Vue
27 lines
690 B
Vue
<template>
|
|
<div class="flex flex-col gap-6">
|
|
<PageHeader title="Page not found" />
|
|
<EmptyState
|
|
title-as="h2"
|
|
size="lg"
|
|
:icon="faMagnifyingGlass"
|
|
title="No page at this address"
|
|
:description="`Nothing lives at ${route.path}.`"
|
|
>
|
|
<template #action>
|
|
<Button as-child>
|
|
<RouterLink to="/">Back to the dashboard</RouterLink>
|
|
</Button>
|
|
</template>
|
|
</EmptyState>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { RouterLink, useRoute } from 'vue-router'
|
|
import { Button, EmptyState, PageHeader } from '@perfect-design/ui'
|
|
import { faMagnifyingGlass } from '@/lib/icons'
|
|
|
|
const route = useRoute()
|
|
</script>
|