fix(ui): render unknown routes and correct status description
This commit is contained in:
1 parent
02ab747ca9
commit
0792f0ba84
12 files changed
+53
-33
No files matched your search
@@ -0,0 +1,11 @@
|
||||
<script setup lang="ts">
|
||||
import PageHeader from "./PageHeader.vue";
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<PageHeader title="Page not found" />
|
||||
<p class="mb-4 text-sm text-fg-muted">This address does not match a page.</p>
|
||||
<RouterLink to="/" class="text-sm underline">Return to dashboard</RouterLink>
|
||||
</div>
|
||||
</template>
|
||||
@@ -119,7 +119,7 @@ const routes = [
|
||||
settings: true,
|
||||
label: "Status",
|
||||
description:
|
||||
"Update state, configuration sources, and the listen address.",
|
||||
"Service presence, dependency health, and build versions.",
|
||||
section: "settings",
|
||||
},
|
||||
},
|
||||
@@ -395,6 +395,12 @@ const routes = [
|
||||
label: "Settings",
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "/:pathMatch(.*)*",
|
||||
name: "not-found",
|
||||
component: () => import("@/base/NotFoundPage.vue"),
|
||||
meta: { nav: false },
|
||||
},
|
||||
// Paths from before Settings existed, kept for bookmarks and chat history.
|
||||
...Object.entries({
|
||||
"/system/status": "/settings/status",
|
||||
|
||||
Reference in new issue
Block a user