diff --git a/app/admin/[slug]/page.tsx b/app/admin/[slug]/page.tsx index ed67689..dff0367 100644 --- a/app/admin/[slug]/page.tsx +++ b/app/admin/[slug]/page.tsx @@ -5,7 +5,7 @@ import { cookies } from "next/headers"; export const revalidate = 60; // ISR: 60秒后重新验证 -export default async function Page({ params }: { params: { slug: string } }) { +export default async function Page({ params }: any) { const { slug } = await params const jwt = (await cookies()).get('jwt')?.value diff --git a/app/api/session/logout/route.ts b/app/api/session/logout/route.ts deleted file mode 100644 index e69de29..0000000 diff --git a/app/border_trail.tsx b/app/border_trail.tsx deleted file mode 100644 index 151aae2..0000000 --- a/app/border_trail.tsx +++ /dev/null @@ -1,48 +0,0 @@ -'use client'; -import { cn } from '@/lib/utils'; -import { motion, Transition } from 'framer-motion'; - -type BorderTrailProps = { - className?: string; - size?: number; - transition?: Transition; - delay?: number; - onAnimationComplete?: () => void; - style?: React.CSSProperties; -}; - -export function BorderTrail({ - className, - size = 60, - transition, - delay, - onAnimationComplete, - style, -}: BorderTrailProps) { - const BASE_TRANSITION = { - repeat: Infinity, - duration: 5, - ease: 'linear', - }; - - return ( -
- -
- ); -} diff --git a/app/favicon.ico b/app/favicon.ico deleted file mode 100644 index 718d6fe..0000000 Binary files a/app/favicon.ico and /dev/null differ diff --git a/app/icon.svg b/app/icon.svg new file mode 100644 index 0000000..cc30b65 --- /dev/null +++ b/app/icon.svg @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/layout.tsx b/app/layout.tsx index cefab62..99185c4 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -15,8 +15,8 @@ const geistMono = Geist_Mono({ }); export const metadata: Metadata = { - title: "Create Next App", - description: "Generated by create next app", + title: "LiDAR", + description: "LiDAR for Radar", }; export default function RootLayout({ diff --git a/app/page.tsx b/app/page.tsx index 079a3bb..0a32029 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -33,12 +33,12 @@ export default function Page() {
-
- -
- +
+ +
+
-
+
diff --git a/app/spotlight.tsx b/app/spotlight.tsx deleted file mode 100644 index 151aae2..0000000 --- a/app/spotlight.tsx +++ /dev/null @@ -1,48 +0,0 @@ -'use client'; -import { cn } from '@/lib/utils'; -import { motion, Transition } from 'framer-motion'; - -type BorderTrailProps = { - className?: string; - size?: number; - transition?: Transition; - delay?: number; - onAnimationComplete?: () => void; - style?: React.CSSProperties; -}; - -export function BorderTrail({ - className, - size = 60, - transition, - delay, - onAnimationComplete, - style, -}: BorderTrailProps) { - const BASE_TRANSITION = { - repeat: Infinity, - duration: 5, - ease: 'linear', - }; - - return ( -
- -
- ); -} diff --git a/app/status-bar.tsx b/app/status-bar.tsx index d1d7a9f..7df185a 100644 --- a/app/status-bar.tsx +++ b/app/status-bar.tsx @@ -2,10 +2,12 @@ import { Label } from "@/components/ui/label" import { useWS } from "./ws-context" +import { useMap } from "./map-context" export default function StatusBar() { const { wsStatus } = useWS() + const { currentDatetime } = useMap() // 根据WebSocket状态返回对应颜色的圆点 const getStatusDot = () => { @@ -21,7 +23,15 @@ export default function StatusBar() { } return ( -
+
+
+ + +
{getStatusDot()}