1 Commits
Author SHA1 Message Date
clear edbc6d0f87 Show all recent overview photos 2026-08-06 12:08:23 +08:00
4 changed files with 16 additions and 15 deletions

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@
ESP32-CAM 图片接收、设备管理和唤醒策略后台。
当前版本:`1.5.2`
当前版本:`1.5.3`
## 功能
+2 -2
View File
@@ -12,8 +12,8 @@ DB_PATH = DATA_DIR / "platform.db"
TEMPLATE_DIR = BASE_DIR / "templates"
STATIC_DIR = BASE_DIR / "static"
APP_VERSION = "1.5.2"
ASSET_VERSION = "1.5.2"
APP_VERSION = "1.5.3"
ASSET_VERSION = "1.5.3"
HOST = "0.0.0.0"
PORT = 8765
EXPECTED_REPORT_GRACE_SECONDS = 15 * 60
+1 -1
View File
@@ -65,7 +65,7 @@
<span><strong>{{ latest_report.capture_time }}</strong><small>基站 {{ (latest_report.bs_latitude, latest_report.bs_longitude)|coord_pair }}</small></span>
</a>
<div class="device-media-strip">
{% for report in recent_images[1:5] %}
{% for report in recent_images[1:] %}
<a href="/media/{{ report.image_path }}" target="_blank" title="{{ report.capture_time }}">
<img src="/media-thumb/{{ report.image_path }}" alt="{{ report.capture_time }} 拍摄照片" loading="lazy" decoding="async">
<span>{{ report.capture_time[5:16] }}</span>
+12 -11
View File
@@ -131,7 +131,7 @@ def test_deep_health_reports_worker_heartbeat(app_database):
payload = response.get_json()
assert response.status_code == 200
assert payload["version"] == "1.5.2"
assert payload["version"] == "1.5.3"
assert payload["overall"] == "ok"
assert payload["worker"]["status"] == "ok"
assert payload["storage"]["path"]
@@ -246,8 +246,8 @@ def test_dashboard_renders_expected_report_statuses(app_database):
assert 'localStorage.setItem(THEME_KEY, next)' in preferences_js
assert 'localStorage.setItem(LANGUAGE_KEY, next)' in preferences_js
assert 'id="app-confirm-modal"' in text
assert "/static/preferences.js?v=1.5.2" in text
assert "/static/app.js?v=1.5.2" in text
assert "/static/preferences.js?v=1.5.3" in text
assert "/static/app.js?v=1.5.3" in text
assert "data-theme-toggle" in text
assert "data-language-toggle" in text
assert "e32c-theme" in text
@@ -268,12 +268,12 @@ def test_frontend_dependencies_are_served_locally(app_database):
rendered_html = login_html + dashboard_html + overview_html
assert "cdn.jsdelivr.net" not in rendered_html
assert "/static/favicon.svg?v=1.5.2" in rendered_html
assert "/static/vendor/bootstrap/bootstrap.min.css?v=1.5.2" in rendered_html
assert "/static/vendor/bootstrap/bootstrap.bundle.min.js?v=1.5.2" in rendered_html
assert "/static/vendor/bootstrap-icons/bootstrap-icons.min.css?v=1.5.2" in rendered_html
assert "/static/preferences.js?v=1.5.2" in rendered_html
assert "/static/vendor/chart.js/chart.umd.min.js?v=1.5.2" in overview_html
assert "/static/favicon.svg?v=1.5.3" in rendered_html
assert "/static/vendor/bootstrap/bootstrap.min.css?v=1.5.3" in rendered_html
assert "/static/vendor/bootstrap/bootstrap.bundle.min.js?v=1.5.3" in rendered_html
assert "/static/vendor/bootstrap-icons/bootstrap-icons.min.css?v=1.5.3" in rendered_html
assert "/static/preferences.js?v=1.5.3" in rendered_html
assert "/static/vendor/chart.js/chart.umd.min.js?v=1.5.3" in overview_html
minimum_sizes = {
"/static/vendor/bootstrap/bootstrap.min.css": 200_000,
@@ -425,7 +425,7 @@ def test_photo_gallery_filters_dates_and_preserves_pagination(app_database):
assert gallery.count('class="photo-gallery-item"') == 24
assert 'id="photoViewer"' in text
assert "function renderPhoto(index)" in text
assert "/static/app.css?v=1.5.2" in text
assert "/static/app.css?v=1.5.3" in text
assert "ICCID" in text
assert "8986000000000000001" in text
assert "IMSI" in text
@@ -484,7 +484,8 @@ def test_device_detail_separates_overview_photos_and_settings(app_database):
assert 'id="trend-signal-chart"' in overview
assert 'id="trend-storage-chart"' in overview
assert 'id="trend-storage-empty"' in overview
assert "/static/vendor/chart.js/chart.umd.min.js?v=1.5.2" in overview
assert "/static/vendor/chart.js/chart.umd.min.js?v=1.5.3" in overview
assert overview.count('src="/media-thumb/') == 8
assert "历史照片" not in overview
assert "设备备注" not in overview