This commit is contained in:
freedakgmail
2025-11-29 21:23:45 +08:00
parent 7442939ade
commit dca082e0a3
189 changed files with 1491 additions and 486 deletions
+14 -2
View File
@@ -4,7 +4,8 @@ import { SiteHeader } from "@/components/site-header"
import { useFamily } from "@/context/family-context"
import { Button } from "@/components/ui/button"
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"
import { Download, Upload, AlertTriangle, RefreshCw, FileText, Bell, History, Database, User as UserIcon, Settings, User } from "lucide-react"
import { Download, Upload, AlertTriangle, RefreshCw, FileText, Bell, History, Database, User as UserIcon, Settings, User, Users } from "lucide-react"
import Link from "next/link"
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"
import { useRef, useState, useEffect } from "react"
import { exportToGedcom, importFromGedcom } from "@/lib/gedcom"
@@ -22,6 +23,7 @@ interface UserProfile {
id: string
email: string
name: string | null
isAdmin: boolean
createdAt: string
updatedAt: string
ownedTreesCount: number
@@ -102,7 +104,17 @@ export default function SettingsPage() {
<div className="min-h-screen bg-background flex flex-col font-sans">
<SiteHeader />
<main className="container mx-auto py-8 px-4 md:px-6 flex-1 max-w-6xl">
<h1 className="text-3xl font-serif font-bold mb-8"></h1>
<div className="flex items-center justify-between mb-8">
<h1 className="text-3xl font-serif font-bold"></h1>
{userProfile?.isAdmin && (
<Link href="/admin">
<Button variant="outline" className="gap-2">
<Users className="h-4 w-4" />
</Button>
</Link>
)}
</div>
<div className="space-y-6">
{/* 用户信息和密码修改 - 两列布局 */}