devpulse-radar / activity.html
WinLanEm's picture
сделай страницу куда можно перейти нажатием на кнопку view all в dashboard чтобы посмотреть все комиты, таски и пулл реквесты, а так же кнопка для скачивания этого в pdf с фильтом по дате и типу скачиваемого, так же если в шапке нажать на стрелочку у ника пользователя, то там будет меню, где можно будет поменять пароль или username с email
6948895 verified
Raw History Blame Contribute Delete
7.61 kB
<!DOCTYPE html>
<html lang="en" class="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Activity | DevPulse Radar</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js"></script>
</head>
<body class="bg-gray-900 text-gray-100 min-h-screen">
<nav class="border-b border-gray-800 py-4 px-6 md:px-12">
<div class="flex justify-between items-center">
<div class="flex items-center space-x-2">
<i data-feather="activity" class="text-primary w-6 h-6"></i>
<span class="text-xl font-bold">DevPulse Radar</span>
</div>
<div class="relative group">
<button class="flex items-center space-x-2 hover:bg-gray-800 px-4 py-2 rounded-md transition">
<span>User123</span>
<i data-feather="chevron-down" class="w-4 h-4"></i>
</button>
<div class="absolute right-0 mt-2 w-48 bg-gray-800 rounded-md shadow-lg hidden group-hover:block">
<div class="py-1">
<a href="#" class="block px-4 py-2 text-sm hover:bg-gray-700">Change Password</a>
<a href="#" class="block px-4 py-2 text-sm hover:bg-gray-700">Edit Profile</a>
<a href="#" class="block px-4 py-2 text-sm hover:bg-gray-700">Logout</a>
</div>
</div>
</div>
</div>
</nav>
<main class="container mx-auto px-6 md:px-12 py-8">
<div class="flex justify-between items-center mb-8">
<h1 class="text-3xl font-bold">All Activity</h1>
<div class="flex space-x-4">
<div class="relative">
<select id="filter-type" class="bg-gray-800 border border-gray-700 rounded-lg px-4 py-2 appearance-none">
<option value="all">All Types</option>
<option value="commit">Commits</option>
<option value="pr">Pull Requests</option>
<option value="task">Tasks</option>
</select>
<i data-feather="chevron-down" class="absolute right-3 top-3 w-4 h-4 pointer-events-none"></i>
</div>
<div class="relative">
<input type="date" id="filter-date" class="bg-gray-800 border border-gray-700 rounded-lg px-4 py-2">
</div>
<button id="download-pdf" class="bg-primary hover:bg-primary/90 px-4 py-2 rounded-lg font-medium transition flex items-center space-x-2">
<i data-feather="download" class="w-4 h-4"></i>
<span>Export PDF</span>
</button>
</div>
</div>
<div class="bg-gray-800 rounded-xl p-6" id="activity-content">
<div class="grid grid-cols-1 gap-6">
<!-- Activity items will be populated here -->
<div class="card-glass p-4 rounded-lg">
<div class="flex items-start space-x-4">
<div class="bg-primary/10 p-2 rounded-lg">
<i data-feather="git-commit" class="text-primary w-5 h-5"></i>
</div>
<div class="flex-1">
<div class="flex justify-between">
<h3 class="font-medium">Fixed login bug</h3>
<span class="text-sm text-gray-400">2 hours ago</span>
</div>
<p class="text-sm text-gray-300 mt-1">Fixed issue with login form validation</p>
<div class="mt-2 flex items-center text-xs text-gray-400">
<span class="bg-gray-700 px-2 py-1 rounded">main-repo</span>
<span class="ml-2">#a1b2c3d</span>
</div>
</div>
</div>
</div>
<div class="card-glass p-4 rounded-lg">
<div class="flex items-start space-x-4">
<div class="bg-purple-500/10 p-2 rounded-lg">
<i data-feather="git-pull-request" class="text-purple-500 w-5 h-5"></i>
</div>
<div class="flex-1">
<div class="flex justify-between">
<h3 class="font-medium">Feature/new-dashboard</h3>
<span class="text-sm text-gray-400">1 day ago</span>
</div>
<p class="text-sm text-gray-300 mt-1">Implemented new dashboard UI components</p>
<div class="mt-2 flex items-center text-xs text-gray-400">
<span class="bg-gray-700 px-2 py-1 rounded">ui-repo</span>
<span class="ml-2">PR #42</span>
</div>
</div>
</div>
</div>
<div class="card-glass p-4 rounded-lg">
<div class="flex items-start space-x-4">
<div class="bg-green-500/10 p-2 rounded-lg">
<i data-feather="check-circle" class="text-green-500 w-5 h-5"></i>
</div>
<div class="flex-1">
<div class="flex justify-between">
<h3 class="font-medium">Complete auth flow</h3>
<span class="text-sm text-gray-400">3 days ago</span>
</div>
<p class="text-sm text-gray-300 mt-1">Task completed in Jira</p>
<div class="mt-2 flex items-center text-xs text-gray-400">
<span class="bg-gray-700 px-2 py-1 rounded">JIRA-123</span>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<script>
feather.replace();
document.getElementById('download-pdf').addEventListener('click', function() {
const { jsPDF } = window.jspdf;
const doc = new jsPDF();
const dateFilter = document.getElementById('filter-date').value;
const typeFilter = document.getElementById('filter-type').value;
html2canvas(document.getElementById('activity-content')).then(canvas => {
const imgData = canvas.toDataURL('image/png');
doc.text(`DevPulse Activity Report - ${new Date().toLocaleDateString()}`, 10, 10);
if (dateFilter) doc.text(`Date: ${dateFilter}`, 10, 20);
if (typeFilter !== 'all') doc.text(`Type: ${typeFilter}`, 10, 30);
doc.addImage(imgData, 'PNG', 10, 40, 180, 0);
doc.save('activity-report.pdf');
});
});
// Filter functionality would be implemented here
</script>
</body>
</html>