mirror of
https://github.com/AeThex-Corporation/AeThex-OS.git
synced 2026-04-26 09:37: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[] = [
|
const activityData: ActivityData[] = [
|
||||||
{ date: "Mon", projects: 2, messages: 8, earnings: 120, achievements: 1 },
|
{ date: "Mon", projects: 2, messages: 8, earnings: 120, achievements: 1 },
|
||||||
{ date: "Tue", projects: 1, messages: 12, earnings: 180, achievements: 0 },
|
{ date: "Tue", projects: 1, messages: 12, earnings: 180, achievements: 0 },
|
||||||
|
|
|
||||||
|
|
@ -69,8 +69,6 @@ export default function FileManager() {
|
||||||
console.error('Error deleting file:', err);
|
console.error('Error deleting file:', err);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if (selectedFile?.id === id) setSelectedFile(null);
|
|
||||||
};
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="h-screen flex flex-col bg-slate-900">
|
<div className="h-screen flex flex-col bg-slate-900">
|
||||||
|
|
|
||||||
|
|
@ -80,10 +80,14 @@ export default function Messaging() {
|
||||||
hour: "2-digit",
|
hour: "2-digit",
|
||||||
minute: "2-digit",
|
minute: "2-digit",
|
||||||
}),
|
}),
|
||||||
isOwn: true,
|
isOwn: true,
|
||||||
};
|
};
|
||||||
setMessages([...messages, newMessage]);
|
setMessages([...messages, newMessage]);
|
||||||
setMessageInput("");
|
setMessageInput("");
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
|
console.error('Error sending message:', err);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const selectedChat = chats.find((c) => c.id === selectedChatId);
|
const selectedChat = chats.find((c) => c.id === selectedChatId);
|
||||||
|
|
|
||||||
|
|
@ -47,9 +47,6 @@ export default function Notifications() {
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
timestamp: new Date(Date.now() - 259200000)
|
|
||||||
}
|
|
||||||
]);
|
|
||||||
|
|
||||||
const [filterType, setFilterType] = useState<string | null>(null);
|
const [filterType, setFilterType] = useState<string | null>(null);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue