Spaces:
Running
Running
File size: 7,608 Bytes
6948895 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 | <!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> |