實作個人收藏、個人活動紀錄
This commit is contained in:
@@ -131,6 +131,7 @@ export function AppManagement() {
|
||||
basic: {
|
||||
views: 0,
|
||||
likes: 0,
|
||||
favorites: 0,
|
||||
rating: 0,
|
||||
reviewCount: 0
|
||||
},
|
||||
@@ -1305,7 +1306,7 @@ export function AppManagement() {
|
||||
|
||||
<TabsContent value="stats" className="space-y-4">
|
||||
{/* 基本統計數據 */}
|
||||
<div className="grid grid-cols-2 lg:grid-cols-4 gap-4">
|
||||
<div className="grid grid-cols-2 lg:grid-cols-5 gap-4">
|
||||
<Card>
|
||||
<CardContent className="p-4">
|
||||
<div className="text-center">
|
||||
@@ -1322,6 +1323,16 @@ export function AppManagement() {
|
||||
<p className="text-2xl font-bold text-red-600">
|
||||
{isLoadingStats ? '...' : (appStats?.basic?.likes || 0)}
|
||||
</p>
|
||||
<p className="text-sm text-gray-600">按讚數</p>
|
||||
</div>
|
||||
</CardContent>
|
||||
</Card>
|
||||
<Card>
|
||||
<CardContent className="p-4">
|
||||
<div className="text-center">
|
||||
<p className="text-2xl font-bold text-purple-600">
|
||||
{isLoadingStats ? '...' : (appStats?.basic?.favorites || 0)}
|
||||
</p>
|
||||
<p className="text-sm text-gray-600">收藏數</p>
|
||||
</div>
|
||||
</CardContent>
|
||||
|
@@ -903,8 +903,8 @@ export function UserManagement() {
|
||||
<TableCell className="text-sm text-gray-600">{user.lastLogin || "-"}</TableCell>
|
||||
<TableCell>
|
||||
<div className="text-sm">
|
||||
<p>{user.totalApps} 應用</p>
|
||||
<p className="text-gray-500">{user.totalReviews} 評價</p>
|
||||
<p>{user.appCount || 0} 應用</p>
|
||||
<p className="text-gray-500">{user.reviewCount || 0} 評價</p>
|
||||
</div>
|
||||
</TableCell>
|
||||
<TableCell>
|
||||
|
Reference in New Issue
Block a user