diff --git a/README.md b/README.md index 4bb517c..576f8ec 100644 --- a/README.md +++ b/README.md @@ -135,6 +135,12 @@ The server exposes a set of endpoints for cluster management and raw data operat | POST | /api/raw/delete | Delete a key-value pair. | `{"key": "mykey"}` | | POST | /api/raw/scan | Scan a range of keys. | `{"start_key": "a", "end_key": "z", "limit": 100}` | +### Metrics + +| Method | Endpoint | Description | +| ------ | -------- | -------------------------------------- | +| GET | /metrics | PD and TiKV metrics from the instances | + ## 🤝 Contributing We welcome contributions from the community! If you're interested in making the TiKV Admin Web UI even better: diff --git a/app/app/globals.css b/app/app/globals.css index ddb5519..ebc2048 100644 --- a/app/app/globals.css +++ b/app/app/globals.css @@ -2,6 +2,13 @@ @import "tw-animate-css"; @theme { + --breakpoint-sm: 640px; + --breakpoint-md: 768px; + --breakpoint-lg: 1024px; + --breakpoint-xl: 1280px; + --breakpoint-2xl: 1536px; + --breakpoint-3xl: 2160px; + --color-background: hsl(0 0% 100%); --color-foreground: hsl(240 10% 3.9%); --color-card: hsl(0 0% 100%); @@ -23,6 +30,11 @@ --color-ring: hsl(346.8 77.2% 49.8%); --radius: 0.65rem; --color-menu: #eee; + --chart-1: hsl(346.8 77.2% 49.8%); + --chart-2: oklch(0.6 0.118 184.704); + --chart-3: oklch(0.398 0.07 227.392); + --chart-4: oklch(0.828 0.189 84.429); + --chart-5: oklch(0.769 0.188 70.08); } @layer base { @@ -47,6 +59,11 @@ --color-border: hsl(240 3.7% 15.9%); --color-input: hsl(240 3.7% 15.9%); --color-ring: hsl(346.8 77.2% 49.8%); + --chart-1: hsl(346.8 77.2% 49.8%); + --chart-2: oklch(0.696 0.17 162.48); + --chart-3: oklch(0.769 0.188 70.08); + --chart-4: oklch(0.627 0.265 303.9); + --chart-5: oklch(0.645 0.246 16.439); } * { diff --git a/app/app/layout.tsx b/app/app/layout.tsx index 0cd702c..587b2c3 100644 --- a/app/app/layout.tsx +++ b/app/app/layout.tsx @@ -4,6 +4,9 @@ import { Geist, Geist_Mono } from "next/font/google"; import "./globals.css"; import { Toaster } from "@/components/ui/sonner"; import TiKV from "@/assets/img/tikv.webp"; +import Sidebar from "@/components/sidebar"; +import Provider from "@/components/provider"; +import Cluster from "@/components/cluster"; const geistSans = Geist({ variable: "--font-geist-sans", @@ -33,8 +36,14 @@ export default function RootLayout({
- {children} -