From 778680d51755294e8030ed2b3bc5957e5fc0064f Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Mon, 27 May 2024 10:17:19 +0200 Subject: [PATCH 1/4] Build - PIL/pillow package not used, probably shouldnt be installed/required (#2382) --- requirements.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index d6267bfe..b122a035 100644 --- a/requirements.txt +++ b/requirements.txt @@ -73,8 +73,6 @@ openpyxl jq~=1.3; python_version >= "3.8" and sys_platform == "darwin" jq~=1.3; python_version >= "3.8" and sys_platform == "linux" -# Any current modern version, required so far for screenshot PNG->JPEG conversion but will be used more in the future -pillow # playwright is installed at Dockerfile build time because it's not available on all platforms pyppeteer-ng==2.0.0rc5 From be91c5425c550162531fe73285c45aa868a9d94a Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Mon, 27 May 2024 12:51:01 +0200 Subject: [PATCH 2/4] UI - Preview single snapshot - Date and button fixes (#2389) --- changedetectionio/flask_app.py | 4 ++-- changedetectionio/static/js/preview.js | 4 ++++ changedetectionio/templates/preview.html | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/changedetectionio/flask_app.py b/changedetectionio/flask_app.py index 41f80a77..3a3bb0f8 100644 --- a/changedetectionio/flask_app.py +++ b/changedetectionio/flask_app.py @@ -124,10 +124,10 @@ def _jinja2_filter_datetime(watch_obj, format="%Y-%m-%d %H:%M:%S"): @app.template_filter('format_timestamp_timeago') def _jinja2_filter_datetimestamp(timestamp, format="%Y-%m-%d %H:%M:%S"): - if timestamp == False: + if not timestamp: return 'Not yet' - return timeago.format(timestamp, time.time()) + return timeago.format(int(timestamp), time.time()) @app.template_filter('pagination_slice') diff --git a/changedetectionio/static/js/preview.js b/changedetectionio/static/js/preview.js index a9895cb2..d85dd9fd 100644 --- a/changedetectionio/static/js/preview.js +++ b/changedetectionio/static/js/preview.js @@ -40,9 +40,13 @@ if (selectElement) { if (selectedOption) { if (selectedOption.previousElementSibling) { document.getElementById('btn-previous').href = "?version=" + selectedOption.previousElementSibling.value; + } else { + document.getElementById('btn-previous').remove() } if (selectedOption.nextElementSibling) { document.getElementById('btn-next').href = "?version=" + selectedOption.nextElementSibling.value; + } else { + document.getElementById('btn-next').remove() } } diff --git a/changedetectionio/templates/preview.html b/changedetectionio/templates/preview.html index 8bc231e1..28431fe9 100644 --- a/changedetectionio/templates/preview.html +++ b/changedetectionio/templates/preview.html @@ -66,7 +66,7 @@
-
{{ watch.snapshot_text_ctime|format_timestamp_timeago }}
+
{{ current_version|format_timestamp_timeago }}
Grey lines are ignored Blue lines are triggers Pro-tip: Highlight text to add to ignore filters From 6a0e14cfce660aca9608c9303721cb157f1d2072 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Thu, 30 May 2024 14:26:51 +0200 Subject: [PATCH 3/4] UI - Mobile CSS/layout fix wrapping on empty list text #2393 --- changedetectionio/templates/watch-overview.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changedetectionio/templates/watch-overview.html b/changedetectionio/templates/watch-overview.html index 15f538fb..3b5eae90 100644 --- a/changedetectionio/templates/watch-overview.html +++ b/changedetectionio/templates/watch-overview.html @@ -78,7 +78,7 @@ {% if not watches|length %} - No website watches configured, please add a URL in the box above, or import a list. + No website watches configured, please add a URL in the box above, or import a list. {% endif %} {% for watch in (watches|sort(attribute=sort_attribute, reverse=sort_order == 'asc'))|pagination_slice(skip=pagination.skip) %} From 8041d00e75f44130b08c403f60fc15dcaf133931 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 3 Jun 2024 17:25:14 +0200 Subject: [PATCH 4/4] Code - Bump eventlet from 0.33.3 to 0.35.2 (#2305) --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index b122a035..9fc485e8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ # Used by Pyppeteer pyee -eventlet==0.33.3 # related to dnspython fixes +eventlet==0.35.2 # related to dnspython fixes feedgen~=0.9 flask-compress # 0.6.3 included compatibility fix for werkzeug 3.x (2.x had deprecation of url handlers)