0.2.0.0
This commit is contained in:
+14
-2
@@ -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">
|
||||
{/* 用户信息和密码修改 - 两列布局 */}
|
||||
|
||||
Reference in New Issue
Block a user