时间显示到秒 & 表格之间的跳转页面

This commit is contained in:
Eamon
2026-05-13 14:57:27 +08:00
parent bc29a025b0
commit 284b0d6afe
25 changed files with 442 additions and 240 deletions

View File

@@ -6,7 +6,6 @@ import {
ChevronsRight,
CircleDollarSign,
ClipboardList,
ComputerIcon,
ContactRound,
DollarSign,
DoorClosedIcon,
@@ -24,7 +23,7 @@ import {
} from "lucide-react"
import Link from "next/link"
import { usePathname } from "next/navigation"
import { createContext, type ReactNode, Suspense, useContext, useState } from "react"
import { createContext, type ReactNode, useContext, useState } from "react"
import { twJoin } from "tailwind-merge"
import { Auth } from "@/components/auth"
import { Button } from "@/components/ui/button"
@@ -307,7 +306,7 @@ export default function Navigation() {
)}
>
{/*Logo 区域 */}
<Suspense><Logo collapsed={collapsed} /></Suspense>
<Logo collapsed={collapsed} />
{/* Navigation Menu */}
<ScrollArea className="flex-1 py-3 overflow-hidden">

View File

@@ -1,10 +1,15 @@
"use client"
import { ComputerIcon } from "lucide-react"
import { useEffect, useState } from "react"
import { getNodeEnv } from "@/actions/env"
import { cn } from "@/lib/utils"
export default async function Logo(props: { collapsed: boolean }) {
const env = await getNodeEnv()
export default function Logo(props: { collapsed: boolean }) {
const [env, setEnv] = useState<string>("")
useEffect(() => {
getNodeEnv().then(setEnv)
}, [])
return (
<div
className={cn(