mirror of
https://github.com/coollabsio/coolify.git
synced 2026-03-11 08:55:47 +00:00
chore(ui): set dashboard page title and description
This commit is contained in:
parent
5ae756f441
commit
164c3ce9ad
3 changed files with 12 additions and 1 deletions
|
|
@ -49,6 +49,7 @@ final class HandleInertiaRequests extends Middleware
|
|||
{
|
||||
return [
|
||||
...parent::share($request),
|
||||
'appName' => config('app.name'),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
3
resources/js/global.d.ts
vendored
3
resources/js/global.d.ts
vendored
|
|
@ -1,7 +1,8 @@
|
|||
declare module "@inertiajs/core" {
|
||||
export interface InertiaConfig {
|
||||
sharedPageProps: {
|
||||
};
|
||||
appName: string
|
||||
}
|
||||
// flashDataType: {
|
||||
// toast?: { type: "success" | "error"; message: string };
|
||||
// };
|
||||
|
|
|
|||
|
|
@ -1,3 +1,12 @@
|
|||
<script lang="ts">
|
||||
import { page } from '@inertiajs/svelte'
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<title>Dashboard - {$page.props.appName}</title> <!-- the TS type of appName is currently incorrect, which is likely an Inertia bug. -->
|
||||
<meta name="description" content="The {$page.props.appName} dashboard" />
|
||||
</svelte:head>
|
||||
|
||||
<div class="min-h-screen bg-background text-foreground p-8">
|
||||
<h1 class="text-3xl font-bold mb-6">Dashboard</h1>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue