mirror of
https://github.com/lockfale/OSINT-Framework.git
synced 2026-09-09 11:17:46 +02:00
Add api, invitationOnly, deprecated badges to tool panel (THE-116)
Show boolean feature badges in the tool details panel when true: - API (blue): tool has a public API - Invite Only (amber): tool requires an invitation - Deprecated (dark red): tool is no longer actively maintained Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -335,7 +335,12 @@
|
||||
.badge-active { background: #c84040; }
|
||||
|
||||
/* Unknown / fallback */
|
||||
.badge-unknown { background: #606060; }
|
||||
.badge-unknown { background: #606060; }
|
||||
|
||||
/* Boolean feature badges */
|
||||
.badge-api { background: #1e90cc; }
|
||||
.badge-invitation-only { background: #b87800; }
|
||||
.badge-deprecated { background: #8b3030; }
|
||||
|
||||
/* OPSEC row layout */
|
||||
.opsec-row {
|
||||
|
||||
@@ -451,6 +451,16 @@ function openPanel(d) {
|
||||
var pricingClass = ["free","freemium","paid"].indexOf(pricing) !== -1 ? pricing : "unknown";
|
||||
badgeHtml += ' <span class="badge-pill badge-' + pricingClass + '">' + escapeHtml(pricing) + '</span>';
|
||||
|
||||
if (d.data.api === true) {
|
||||
badgeHtml += ' <span class="badge-pill badge-api">API</span>';
|
||||
}
|
||||
if (d.data.invitationOnly === true) {
|
||||
badgeHtml += ' <span class="badge-pill badge-invitation-only">Invite Only</span>';
|
||||
}
|
||||
if (d.data.deprecated === true) {
|
||||
badgeHtml += ' <span class="badge-pill badge-deprecated">Deprecated</span>';
|
||||
}
|
||||
|
||||
badgesEl.innerHTML = badgeHtml;
|
||||
badgesEl.classList.remove("empty");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user