Update public source

This commit is contained in:
2026-10-17 16:30:32 +03:00
parent 2b25a01d45
commit e89d4b8651
2 changed files with 64 additions and 6 deletions
+17 -6
View File
@@ -105,10 +105,16 @@ def format_credentials(credentials):
credential["password"] credential["password"]
) )
verified = ( verified_class = (
"Да" "verified"
if credential["verified"] if credential["verified"]
else "Нет" else "unverified"
)
verified_label = (
"Проверен"
if credential["verified"]
else "Не проверен"
) )
sources = ", ".join( sources = ", ".join(
@@ -117,10 +123,15 @@ def format_credentials(credentials):
) or "—" ) or "—"
items.append( items.append(
"<div class=\"map-popup-password\">" "<div "
f"class=\"map-popup-password "
f"map-popup-password-{verified_class}\">"
f"<b>{password}</b>" f"<b>{password}</b>"
f"<br>Verified: {verified}" f"<div class=\"map-popup-password-status "
f"<br>Source: {sources}" f"map-popup-password-status-{verified_class}\">"
f"{verified_label}"
"</div>"
f"<div>Source: {sources}</div>"
"</div>" "</div>"
) )
+47
View File
@@ -1530,6 +1530,53 @@ body .maplibregl-popup-content {
0 8px 24px rgba(0, 0, 0, 0.35); 0 8px 24px rgba(0, 0, 0, 0.35);
} }
body .maplibregl-popup-content .map-popup-password {
margin-top: 6px;
padding: 7px 9px;
border: 1px solid var(--border);
border-radius: 6px;
background: rgba(0, 0, 0, 0.12);
word-break: break-word;
}
body .maplibregl-popup-content
.map-popup-password-verified {
border-color: rgba(69, 212, 131, 0.35);
background: rgba(69, 212, 131, 0.08);
}
body .maplibregl-popup-content
.map-popup-password-verified > b {
color: #45d483;
}
body .maplibregl-popup-content
.map-popup-password-status {
margin-top: 3px;
font-size: 12px;
}
body .maplibregl-popup-content
.map-popup-password-status-verified {
color: #45d483;
}
body .maplibregl-popup-content
.map-popup-password-status-unverified {
color: #8b98a6;
}
/* Popup arrow */ /* Popup arrow */