新增測驗連結管理

This commit is contained in:
2025-10-04 21:53:50 +08:00
parent ea2fb1efe9
commit c5a48807e5
2 changed files with 444 additions and 1 deletions

View File

@@ -3,7 +3,7 @@
import { useState, useEffect, useRef } from "react"
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"
import { Button } from "@/components/ui/button"
import { Brain, Lightbulb, BarChart3, Users, Settings, Menu, ChevronDown } from "lucide-react"
import { Brain, Lightbulb, BarChart3, Users, Settings, Menu, ChevronDown, Link as LinkIcon } from "lucide-react"
import { Sheet, SheetContent, SheetHeader, SheetTitle, SheetTrigger } from "@/components/ui/sheet"
import Link from "next/link"
import Image from "next/image"
@@ -123,6 +123,14 @@ export default function HomePage() {
<Brain className="w-4 h-4" />
</Link>
<Link
href="/admin/test-links"
className="flex items-center gap-2 px-4 py-2 text-sm text-foreground hover:bg-accent hover:text-accent-foreground"
onClick={() => setIsDropdownOpen(false)}
>
<LinkIcon className="w-4 h-4" />
</Link>
</>
)}
<div className="border-t border-border my-1"></div>