修改 ICON 和部門資料
This commit is contained in:
@@ -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 = [
|
||||
|
Reference in New Issue
Block a user