mirror of
https://github.com/AeThex-Corporation/AeThex-OS.git
synced 2026-04-17 22:27:19 +00:00
modified: client/src/pages/analytics.tsx
modified: client/src/pages/file-manager.tsx modified: client/src/pages/messaging.tsx modified: client/src/pages/notifications.tsx
This commit is contained in:
parent
d41043dfdc
commit
e1c3b9d745
4 changed files with 8 additions and 55 deletions
|
|
@ -106,52 +106,6 @@ export default function Analytics() {
|
|||
}
|
||||
};
|
||||
|
||||
// Mock analytics data for charts
|
||||
const stats: StatCard[] = [
|
||||
{
|
||||
label: "Total Projects",
|
||||
value: 12,
|
||||
change: 25,
|
||||
icon: <Code className="w-6 h-6" />,
|
||||
color: "text-blue-400"
|
||||
},
|
||||
{
|
||||
label: "Active Messages",
|
||||
value: 48,
|
||||
change: 12,
|
||||
icon: <MessageSquare className="w-6 h-6" />,
|
||||
color: "text-purple-400"
|
||||
},
|
||||
{
|
||||
label: "LP Earned",
|
||||
value: "2,450",
|
||||
change: 34,
|
||||
icon: <Zap className="w-6 h-6" />,
|
||||
color: "text-yellow-400"
|
||||
},
|
||||
{
|
||||
label: "Achievements",
|
||||
value: 23,
|
||||
change: 8,
|
||||
icon: <Award className="w-6 h-6" />,
|
||||
color: "text-green-400"
|
||||
},
|
||||
{
|
||||
label: "Network Connections",
|
||||
value: 156,
|
||||
change: 18,
|
||||
icon: <Users className="w-6 h-6" />,
|
||||
color: "text-cyan-400"
|
||||
},
|
||||
{
|
||||
label: "Code Views",
|
||||
value: "3.2K",
|
||||
change: 42,
|
||||
icon: <BarChart3 className="w-6 h-6" />,
|
||||
color: "text-pink-400"
|
||||
}
|
||||
];
|
||||
|
||||
const activityData: ActivityData[] = [
|
||||
{ date: "Mon", projects: 2, messages: 8, earnings: 120, achievements: 1 },
|
||||
{ date: "Tue", projects: 1, messages: 12, earnings: 180, achievements: 0 },
|
||||
|
|
|
|||
|
|
@ -69,8 +69,6 @@ export default function FileManager() {
|
|||
console.error('Error deleting file:', err);
|
||||
}
|
||||
};
|
||||
if (selectedFile?.id === id) setSelectedFile(null);
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="h-screen flex flex-col bg-slate-900">
|
||||
|
|
|
|||
|
|
@ -80,10 +80,14 @@ export default function Messaging() {
|
|||
hour: "2-digit",
|
||||
minute: "2-digit",
|
||||
}),
|
||||
isOwn: true,
|
||||
};
|
||||
setMessages([...messages, newMessage]);
|
||||
setMessageInput("");
|
||||
isOwn: true,
|
||||
};
|
||||
setMessages([...messages, newMessage]);
|
||||
setMessageInput("");
|
||||
}
|
||||
} catch (err) {
|
||||
console.error('Error sending message:', err);
|
||||
}
|
||||
};
|
||||
|
||||
const selectedChat = chats.find((c) => c.id === selectedChatId);
|
||||
|
|
|
|||
|
|
@ -47,9 +47,6 @@ export default function Notifications() {
|
|||
setLoading(false);
|
||||
}
|
||||
};
|
||||
timestamp: new Date(Date.now() - 259200000)
|
||||
}
|
||||
]);
|
||||
|
||||
const [filterType, setFilterType] = useState<string | null>(null);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue