feat: 更新管理员导航,添加管理员权限模块和相关API导出,优化仪表盘链接样式

This commit is contained in:
2026-05-11 17:54:35 +08:00
parent 76e318be8f
commit 5dd7aa1185
9 changed files with 492 additions and 68 deletions

View File

@@ -489,7 +489,10 @@ export function DashboardConsole(): ReactElement {
</p>
{drawId != null ? (
<Link
className="mt-2 inline-block text-xs font-medium text-[#2563eb] underline-offset-4 hover:underline"
className={cn(
buttonVariants({ variant: "outline", size: "sm" }),
"mt-2 h-7 border-[#2563eb]/30 px-2 text-xs text-[#2563eb] hover:bg-[#2563eb]/5",
)}
href={`/admin/draws/${drawId}`}
>
@@ -533,7 +536,10 @@ export function DashboardConsole(): ReactElement {
</div>
{drawId != null ? (
<Link
className="mt-1 inline-block text-xs font-medium text-[#2563eb] underline-offset-4 hover:underline"
className={cn(
buttonVariants({ variant: "outline", size: "sm" }),
"mt-1 h-7 border-[#2563eb]/30 px-2 text-xs text-[#2563eb] hover:bg-[#2563eb]/5",
)}
href={`/admin/risk/draws/${drawId}/occupancy`}
>
@@ -576,7 +582,10 @@ export function DashboardConsole(): ReactElement {
{drawId != null ? (
<Link
href={`/admin/risk/draws/${drawId}/hot`}
className="text-xs font-medium text-[#2563eb] underline-offset-4 hover:underline"
className={cn(
buttonVariants({ variant: "outline", size: "sm" }),
"h-7 border-[#2563eb]/30 px-2 text-xs text-[#2563eb] hover:bg-[#2563eb]/5",
)}
>
</Link>
@@ -600,7 +609,10 @@ export function DashboardConsole(): ReactElement {
{drawId != null ? (
<Link
href={`/admin/risk/draws/${drawId}/sold-out`}
className="text-xs font-medium text-[#2563eb] underline-offset-4 hover:underline"
className={cn(
buttonVariants({ variant: "outline", size: "sm" }),
"h-7 border-[#2563eb]/30 px-2 text-xs text-[#2563eb] hover:bg-[#2563eb]/5",
)}
>
</Link>