From 68c236dc6aad7962d68702d4a06cd295bf695f8f Mon Sep 17 00:00:00 2001 From: Qiwei Yang Date: Tue, 22 Oct 2024 19:54:27 +0800 Subject: [PATCH] fix build and minor improvements (#2) * fix build * change page title * show disconnected but added endpoints --- app/layout.tsx | 26 ++++++++++++----- components/dynamic-breadcrumb.tsx | 1 - components/telemetry-dashboard.tsx | 45 ++++++++++++++++++++++-------- lib/ws.ts | 2 +- 4 files changed, 54 insertions(+), 20 deletions(-) diff --git a/app/layout.tsx b/app/layout.tsx index 842105b..b4ee215 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,12 +1,14 @@ +import { Suspense } from "react"; import type { Metadata } from "next"; import localFont from "next/font/local"; +import Link from "next/link"; +import Image from "next/image"; import { ThemeProvider } from "@/components/theme-provider"; import { ModeToggle } from "@/components/mode-toggle"; import { Toaster } from "@/components/ui/sonner"; -import Link from "next/link"; -import Image from "next/image"; -import "./globals.css"; import { DynamicBreadcrumb } from "@/components/dynamic-breadcrumb"; +import { Loader } from "lucide-react"; +import "./globals.css"; const geistSans = localFont({ src: "./fonts/GeistVF.woff", @@ -20,8 +22,8 @@ const geistMono = localFont({ }); export const metadata: Metadata = { - title: "Create Next App", - description: "Generated by create next app", + title: "JAM Dashboard", + description: "UI for monitoring, testing and interacting with JAM Nodes.", }; export default function RootLayout({ @@ -57,9 +59,19 @@ export default function RootLayout({ -
{children}
+
+ + + + } + > + {children} + +
- +