mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-01 21:02:12 +03:00
- Replace all `as any` casts in MCP advancedTools with typed helpers (toRecord, toString, toNumber) - Harden open-sse services: rateLimitManager, sessionManager, usage, roleNormalizer, signatureCache, comboMetrics - Improve responseSanitizer and responseTranslator type safety - Remove deprecated openai-responses request translator - Add dashboard pages: /a2a, /mcp, /auto-combo with live data - Improve error/loading/not-found pages with consistent design - Add root loading.tsx and typecheck tsconfig variants - Add check-t11-any-budget.mjs audit script
43 lines
1.7 KiB
TypeScript
43 lines
1.7 KiB
TypeScript
"use client";
|
|
|
|
import Link from "next/link";
|
|
|
|
export default function NotFound() {
|
|
return (
|
|
<div
|
|
className="flex flex-col items-center justify-center min-h-screen p-6 bg-bg text-text-main text-center"
|
|
role="main"
|
|
aria-labelledby="not-found-title"
|
|
>
|
|
<div
|
|
className="text-[96px] font-extrabold leading-none mb-2 bg-gradient-to-br from-primary to-primary-hover bg-clip-text text-transparent"
|
|
aria-hidden="true"
|
|
>
|
|
404
|
|
</div>
|
|
<h1 id="not-found-title" className="text-2xl font-semibold mb-2">
|
|
Page not found
|
|
</h1>
|
|
<p className="text-[15px] text-text-muted max-w-[400px] leading-relaxed mb-8">
|
|
The page you're looking for doesn't exist or has been moved.
|
|
</p>
|
|
<div className="flex flex-col sm:flex-row items-center gap-3">
|
|
<Link
|
|
href="/dashboard"
|
|
className="px-8 py-3 rounded-xl text-white text-sm font-medium no-underline transition-all duration-200 motion-reduce:transition-none shadow-warm hover:-translate-y-0.5 bg-gradient-to-br from-primary to-primary-hover hover:shadow-elevated focus:outline-2 focus:outline-offset-2 focus:outline-primary"
|
|
aria-label="Return to dashboard"
|
|
>
|
|
Go to Dashboard
|
|
</Link>
|
|
<Link
|
|
href="/status"
|
|
className="px-8 py-3 rounded-xl text-sm font-medium no-underline border border-border hover:bg-bg-alt transition-colors duration-200 motion-reduce:transition-none focus:outline-2 focus:outline-offset-2 focus:outline-primary"
|
|
aria-label="Open system status page"
|
|
>
|
|
System Status
|
|
</Link>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|