實作個人收藏、個人活動紀錄

This commit is contained in:
2025-09-11 17:40:07 +08:00
parent bc2104d374
commit 9c5dceb001
29 changed files with 3781 additions and 601 deletions

View File

@@ -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>

View File

@@ -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>