修改 ICON 和部門資料

This commit is contained in:
2025-09-19 08:29:51 +08:00
parent 08a1f1b248
commit 753e32ada2
14 changed files with 596 additions and 32 deletions

View File

@@ -16,12 +16,28 @@ import {
Line,
ComposedChart,
} from "recharts"
import { Users, Eye, Star, TrendingUp, Clock, Activity, Calendar, AlertTriangle } from "lucide-react"
import { useState } from "react"
import { Users, Eye, Star, TrendingUp, Clock, Activity, Calendar, AlertTriangle, Loader2 } from "lucide-react"
import { useState, useEffect } from "react"
export function AnalyticsDashboard() {
const [showHistoryModal, setShowHistoryModal] = useState(false)
const [selectedDateRange, setSelectedDateRange] = useState("近7天")
const [isLoading, setIsLoading] = useState(true)
const [analyticsData, setAnalyticsData] = useState({
totalUsers: 0,
todayActiveUsers: 0,
todayActiveGrowth: 0,
avgRating: 0,
ratingGrowth: 0,
totalApps: 0,
newThisWeek: 0,
userGrowth: 0,
dailyUsageData: [],
categoryData: [],
topApps: [],
satisfactionRate: 0,
weeklyFeedback: 0
})
// 24小時使用數據 - 優化版本
const hourlyData = [