Update public source
This commit is contained in:
@@ -1109,6 +1109,7 @@ def render_access_points_page(
|
||||
"📡 Access Points",
|
||||
active="access_points",
|
||||
context=context,
|
||||
section_title="Reports",
|
||||
)
|
||||
|
||||
html += f"""
|
||||
|
||||
@@ -1159,14 +1159,11 @@ def render_access_point_page(
|
||||
|
||||
if not ap:
|
||||
page = page_begin(
|
||||
"Access Point",
|
||||
active="access_points",
|
||||
context=context,
|
||||
)
|
||||
|
||||
page += page_header(
|
||||
"Точка доступа не найдена",
|
||||
"BSSID: " + esc(bssid),
|
||||
active="access_points",
|
||||
context=context,
|
||||
section_title="Reports",
|
||||
)
|
||||
|
||||
page += card(
|
||||
@@ -1214,14 +1211,11 @@ def render_access_point_page(
|
||||
)
|
||||
|
||||
page = page_begin(
|
||||
f"AP {ap['bssid']}",
|
||||
active="access_points",
|
||||
context=context,
|
||||
)
|
||||
|
||||
page += page_header(
|
||||
f"📡 {esc(ap['essid'] or 'Access Point')}",
|
||||
f"BSSID: {esc(ap['bssid'])}",
|
||||
active="access_points",
|
||||
context=context,
|
||||
section_title="Reports",
|
||||
)
|
||||
|
||||
page += f"""
|
||||
|
||||
+13
-16
@@ -705,16 +705,19 @@ def generate_dashboard(
|
||||
|
||||
html = page_begin(
|
||||
|
||||
title="WiFi GPS Mapper",
|
||||
title="Dashboard",
|
||||
|
||||
description=(
|
||||
"Database overview"
|
||||
"Overview of collected Wi-Fi data, access points, "
|
||||
"capture sessions, and vendors."
|
||||
),
|
||||
|
||||
active="dashboard",
|
||||
|
||||
context=context,
|
||||
|
||||
section_title="Reports",
|
||||
|
||||
)
|
||||
|
||||
# --------------------------------------------------------
|
||||
@@ -813,28 +816,22 @@ def generate_capture_sessions(
|
||||
|
||||
html = page_begin(
|
||||
|
||||
title="Capture Sessions",
|
||||
title="🚗 Capture Sessions",
|
||||
|
||||
description="All capture sessions",
|
||||
description=f"""
|
||||
All capture sessions
|
||||
<br>
|
||||
Total sessions: <b>{len(sessions)}</b>
|
||||
""",
|
||||
|
||||
active="capture_sessions",
|
||||
|
||||
context=context,
|
||||
|
||||
section_title="Reports",
|
||||
|
||||
)
|
||||
|
||||
html += page_header(
|
||||
|
||||
"🚗 Capture Sessions",
|
||||
|
||||
f"""
|
||||
|
||||
Total sessions:
|
||||
|
||||
<b>{len(sessions)}</b>
|
||||
|
||||
"""
|
||||
)
|
||||
|
||||
cards = []
|
||||
|
||||
|
||||
@@ -53,7 +53,8 @@ def render_hashcat_page(
|
||||
"hashcat --show."
|
||||
),
|
||||
"hashcat",
|
||||
context
|
||||
context,
|
||||
section_title="Reports",
|
||||
)
|
||||
|
||||
if message:
|
||||
|
||||
+2
-1
@@ -1124,7 +1124,8 @@ def render_search_page(
|
||||
"Search",
|
||||
"Search access points in the WiFi GPS Mapper database.",
|
||||
"search",
|
||||
context
|
||||
context,
|
||||
section_title="Reports",
|
||||
)
|
||||
|
||||
html += """
|
||||
|
||||
+7
-12
@@ -2607,20 +2607,9 @@ def render_session_page(
|
||||
|
||||
html = page_begin(
|
||||
|
||||
f"Session {format_session_folder(Path(session['capture_file']).parent.name) if session.get('origin') == 'Local capture' else '-'}",
|
||||
|
||||
active="capture_sessions",
|
||||
|
||||
context=context,
|
||||
|
||||
)
|
||||
|
||||
html += page_header(
|
||||
|
||||
f"🚗 Session {format_datetime(session.get('trip_start'))}",
|
||||
|
||||
f"""
|
||||
|
||||
Trip start:
|
||||
|
||||
{esc(format_datetime(session.get("trip_start")))}
|
||||
@@ -2655,7 +2644,13 @@ Session folder:
|
||||
|
||||
{esc(Path(session["capture_file"]).parent.name if session.get("origin") == "Local capture" else "-")}
|
||||
|
||||
"""
|
||||
""",
|
||||
|
||||
active="capture_sessions",
|
||||
|
||||
context=context,
|
||||
|
||||
section_title="Reports",
|
||||
|
||||
)
|
||||
|
||||
|
||||
@@ -249,6 +249,7 @@ def render_trips_page(
|
||||
),
|
||||
"trips",
|
||||
context,
|
||||
section_title="Reports",
|
||||
)
|
||||
|
||||
html += _message(
|
||||
|
||||
@@ -855,6 +855,7 @@ def render_vendors_page(
|
||||
),
|
||||
active="vendors",
|
||||
context=context,
|
||||
section_title="Reports",
|
||||
)
|
||||
|
||||
if message:
|
||||
|
||||
Reference in New Issue
Block a user