forked from OWASP-BLT/BLT-NetGuardian
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdashboard.html
More file actions
183 lines (177 loc) · 10.9 KB
/
dashboard.html
File metadata and controls
183 lines (177 loc) · 10.9 KB
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BLT-NetGuardian Dashboard</title>
<meta name="description" content="Operational dashboard for BLT-NetGuardian scans, jobs, and live security workflow metrics.">
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
brand: '#E10101',
'neutral-border': '#E5E5E5',
'dark-base': '#111827',
'dark-surface': '#1F2937'
},
fontFamily: {
sans: ['Manrope', 'ui-sans-serif', 'system-ui', 'sans-serif'],
mono: ['JetBrains Mono', 'ui-monospace', 'SFMono-Regular', 'monospace']
},
boxShadow: {
card: '0 10px 30px rgba(17, 24, 39, 0.07)'
}
}
}
}
</script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600family=JetBrains+Mono:wght@400;500;600&family=Manrope:wght@400;500;600;700;800&display=swapamp;family=Manrope:wght@400;500;600;700;800family=JetBrains+Mono:wght@400;500;600&family=Manrope:wght@400;500;600;700;800&display=swapamp;display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" crossorigin="anonymous" referrerpolicy="no-referrer">
<link rel="stylesheet" href="assets/css/style.css">
</head>
<body class="font-sans text-gray-900">
<div class="min-h-screen lg:flex">
<aside class="hidden lg:flex lg:w-72 lg:flex-col border-r border-neutral-border bg-white">
<div class="border-b border-neutral-border px-6 py-6">
<p class="text-xs font-semibold uppercase tracking-[0.2em] text-gray-500">OWASP BLT</p>
<div class="mt-2 flex items-center gap-3">
<img src="assets/img/logo.png" alt="BLT-NetGuardian Logo" class="h-8 w-8 rounded-full">
<div>
<h1 class="text-lg font-extrabold text-dark-base">BLT-NetGuardian</h1>
<p class="text-xs text-gray-500">Operational Dashboard</p>
</div>
</div>
</div>
<nav class="flex-1 space-y-8 overflow-y-auto px-4 py-6" aria-label="Primary navigation">
<div>
<p class="px-2 text-xs font-semibold uppercase tracking-wide text-gray-500">Platform</p>
<div class="mt-3 space-y-1">
<a href="index.html" class="flex items-center gap-3 rounded-md px-3 py-2 text-sm text-gray-700 hover:bg-gray-100">
<i class="fa-solid fa-house" aria-hidden="true"></i>
Autonomous Overview
</a>
<a href="dashboard.html" class="flex items-center gap-3 rounded-md bg-[#feeae9] px-3 py-2 text-sm font-semibold text-brand" aria-current="page">
<i class="fa-solid fa-chart-line" aria-hidden="true"></i>
Jobs Dashboard
</a>
<a href="vulnerabilities.html" class="flex items-center gap-3 rounded-md px-3 py-2 text-sm text-gray-700 hover:bg-gray-100">
<i class="fa-solid fa-bug" aria-hidden="true"></i>
Vulnerability Feed
</a>
</div>
</div>
<div>
<p class="px-2 text-xs font-semibold uppercase tracking-wide text-gray-500">Operations</p>
<div class="mt-3 space-y-1">
<a href="dashboard.html?view=discovery" class="flex items-center gap-3 rounded-md px-3 py-2 text-sm text-gray-700 hover:bg-gray-100">
<i class="fa-solid fa-list-check" aria-hidden="true"></i>
Discovery Queue
</a>
<a href="dashboard.html?view=contacts" class="flex items-center gap-3 rounded-md px-3 py-2 text-sm text-gray-700 hover:bg-gray-100">
<i class="fa-solid fa-envelopes-bulk" aria-hidden="true"></i>
Contact Log
</a>
</div>
</div>
</nav>
</aside>
<div class="flex-1">
<header class="border-b border-neutral-border bg-white/90 px-5 py-4 backdrop-blur lg:px-8">
<div class="flex flex-wrap items-center justify-between gap-3">
<div>
<p class="text-xs font-semibold uppercase tracking-[0.2em] text-gray-500">Scan Operations</p>
<h2 class="text-2xl font-extrabold text-dark-base">Jobs Dashboard</h2>
</div>
<div class="flex flex-wrap gap-2">
<a href="index.html" class="btn-outline">
<i class="fa-solid fa-arrow-left" aria-hidden="true"></i>
Back to Home
</a>
<button type="button" class="btn-primary" onclick="refreshDashboard()">
<i class="fa-solid fa-rotate-right" aria-hidden="true"></i>
Refresh
</button>
</div>
</div>
<div class="mt-4 flex items-center gap-2 lg:hidden">
<a href="index.html" class="rounded-md border border-neutral-border px-3 py-2 text-xs font-semibold text-gray-700">Overview</a>
<a href="dashboard.html" class="rounded-md bg-[#feeae9] px-3 py-2 text-xs font-semibold text-brand">Dashboard</a>
<a href="vulnerabilities.html" class="rounded-md border border-neutral-border px-3 py-2 text-xs font-semibold text-gray-700">Vulnerabilities</a>
</div>
</header>
<main class="space-y-6 px-5 py-6 lg:px-8">
<section class="grid gap-4 sm:grid-cols-2 xl:grid-cols-4">
<article class="rounded-xl border border-neutral-border bg-white p-5 shadow-card">
<p class="text-xs font-semibold uppercase tracking-wide text-gray-500">Total Jobs</p>
<p id="totalJobs" class="mt-2 text-3xl font-extrabold text-dark-base">-</p>
</article>
<article class="rounded-xl border border-neutral-border bg-white p-5 shadow-card">
<p class="text-xs font-semibold uppercase tracking-wide text-gray-500">Active Jobs</p>
<p id="activeJobs" class="mt-2 text-3xl font-extrabold text-dark-base">-</p>
</article>
<article class="rounded-xl border border-neutral-border bg-white p-5 shadow-card">
<p class="text-xs font-semibold uppercase tracking-wide text-gray-500">Vulnerabilities Found</p>
<p id="totalVulnerabilities" class="mt-2 text-3xl font-extrabold text-dark-base">-</p>
</article>
<article class="rounded-xl border border-neutral-border bg-white p-5 shadow-card">
<p class="text-xs font-semibold uppercase tracking-wide text-gray-500">Critical Issues</p>
<p id="criticalVulns" class="mt-2 text-3xl font-extrabold text-brand">-</p>
</article>
</section>
<section id="currentJobSection" class="hidden rounded-xl border border-neutral-border bg-white p-6 shadow-card">
<h3 class="text-lg font-bold text-dark-base">Current Job Status</h3>
<div id="currentJobStatus" class="mt-4"></div>
</section>
<section class="rounded-xl border border-neutral-border bg-white p-6 shadow-card">
<div class="flex flex-wrap items-center justify-between gap-3">
<h3 class="text-lg font-bold text-dark-base">Recent Jobs</h3>
<div class="flex w-full flex-wrap items-center gap-3 lg:w-auto">
<div class="search-wrap w-full lg:w-72">
<i class="fa-solid fa-magnifying-glass search-icon" aria-hidden="true"></i>
<label class="sr-only" for="jobsSearch">Search jobs</label>
<input id="jobsSearch" class="input-field" type="text" placeholder="Search by job id or target">
</div>
<label class="sr-only" for="jobsStatusFilter">Filter jobs by status</label>
<select id="jobsStatusFilter" class="select-field w-full lg:w-44">
<option value="">All Statuses</option>
<option value="queued">Queued</option>
<option value="running">Running</option>
<option value="completed">Completed</option>
<option value="failed">Failed</option>
</select>
</div>
</div>
<div class="mt-5 overflow-x-auto rounded-lg border border-neutral-border">
<div id="jobsLoading" class="loading">
<div class="spinner" aria-hidden="true"></div>
<p>Loading jobs...</p>
</div>
<table id="jobsTable" class="hidden min-w-[760px] bg-white">
<thead>
<tr>
<th>Job ID</th>
<th>Target</th>
<th>Status</th>
<th>Progress</th>
<th>Created</th>
<th>Actions</th>
</tr>
</thead>
<tbody id="jobsTableBody"></tbody>
</table>
<div id="jobsEmpty" class="hidden p-10 text-center text-sm text-gray-500">
No jobs found. <a href="index.html" class="font-semibold text-red-600 hover:underline">Submit a new scan</a>
</div>
</div>
</section>
</main>
</div>
</div>
<script src="assets/js/config.js"></script>
<script src="assets/js/dashboard.js"></script>
</body>
</html>