From 31c13214f8f247ee112b3d9ae6db0626a10c4a1d Mon Sep 17 00:00:00 2001 From: Svenum Date: Wed, 3 Dec 2025 16:33:32 +0100 Subject: [PATCH] add not implemented --- src/app/app/page.tsx | 16 ++++++++++------ src/app/app/performance/page.tsx | 19 +++++++++++++++++++ src/app/app/settings/page.tsx | 19 +++++++++++++++++++ src/app/app/storage/page.tsx | 19 +++++++++++++++++++ src/components/custom/NotImplemented.tsx | 22 ++++++++++++++++++++++ 5 files changed, 89 insertions(+), 6 deletions(-) create mode 100644 src/app/app/performance/page.tsx create mode 100644 src/app/app/settings/page.tsx create mode 100644 src/app/app/storage/page.tsx create mode 100644 src/components/custom/NotImplemented.tsx diff --git a/src/app/app/page.tsx b/src/app/app/page.tsx index f8d197d..22cd23d 100755 --- a/src/app/app/page.tsx +++ b/src/app/app/page.tsx @@ -1,6 +1,6 @@ 'use client' import {auth} from "@/server/auth"; -import {redirect, useParams, useSearchParams} from "next/navigation"; +import {useRouter, redirect, useParams, useSearchParams} from "next/navigation"; import {useState} from "react"; import {useEffect} from "react"; import {api} from "@/trpc/react"; @@ -13,7 +13,6 @@ import { HardDrive, Network, Package, RefreshCcw, - Settings, SettingsIcon, Users, Zap @@ -27,6 +26,11 @@ export default function App(){ const cacheID = params.get("cacheID"); const [size, setSize] = useState(0) + const router = useRouter() + const handler = async (path: string) => { + router.push(path + "?" + params.toString()) + } + // Fetch the selected cache const cache = api.cache.getOverview.useQuery({ cacheID: parseInt(cacheID!) // This should be replaced with the actual cache ID you want to fetch @@ -128,7 +132,7 @@ export default function App(){ - - - -