mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2026-02-15 10:46:01 +00:00
Multi-language / Translations Support (#3696) - Complete internationalization system implemented - Support for 7 languages: Czech (cs), German (de), French (fr), Italian (it), Korean (ko), Chinese Simplified (zh), Chinese Traditional (zh_TW) - Language selector with localized flags and theming - Flash message translations - Multiple translation fixes and improvements across all languages - Language setting preserved across redirects Pluggable Content Fetchers (#3653) - New architecture for extensible content fetcher system - Allows custom fetcher implementations Image / Screenshot Comparison Processor (#3680) - New processor for visual change detection (disabled for this release) - Supporting CSS/JS infrastructure added UI Improvements Design & Layout - Auto-generated tag color schemes - Simplified login form styling - Removed hard-coded CSS, moved to SCSS variables - Tag UI cleanup and improvements - Automatic tab wrapper functionality - Menu refactoring for better organization - Cleanup of offset settings - Hide sticky tabs on narrow viewports - Improved responsive layout (#3702) User Experience - Modal alerts/confirmations on delete/clear operations (#3693, #3598, #3382) - Auto-add https:// to URLs in quickwatch form if not present - Better redirect handling on login (#3699) - 'Recheck all' now returns to correct group/tag (#3673) - Language set redirect keeps hash fragment - More friendly human-readable text throughout UI Performance & Reliability Scheduler & Processing - Soft delays instead of blocking time.sleep() calls (#3710) - More resilient handling of same UUID being processed (#3700) - Better Puppeteer timeout handling - Improved Puppeteer shutdown/cleanup (#3692) - Requests cleanup now properly async History & Rendering - Faster server-side "difference" rendering on History page (#3442) - Show ignored/triggered rows in history - API: Retry watch data if watch dict changed (more reliable) API Improvements - Watch get endpoint: retry mechanism for changed watch data - WatchHistoryDiff API endpoint includes extra format args (#3703) Testing Improvements - Replace time.sleep with wait_for_notification_endpoint_output (#3716) - Test for mode switching (#3701) - Test for #3720 added (#3725) - Extract-text difference test fixes - Improved dev workflow Bug Fixes - Notification error text output (#3672, #3669, #3280) - HTML validation fixes (#3704) - Template discovery path fixes - Notification debug log now uses system locale for dates/times - Puppeteer spelling mistake in log output - Recalculation on anchor change - Queue bubble update disabled temporarily Dependency Updates - beautifulsoup4 updated (#3724) - psutil 7.1.0 → 7.2.1 (#3723) - python-engineio ~=4.12.3 → ~=4.13.0 (#3707) - python-socketio ~=5.14.3 → ~=5.16.0 (#3706) - flask-socketio ~=5.5.1 → ~=5.6.0 (#3691) - brotli ~=1.1 → ~=1.2 (#3687) - lxml updated (#3590) - pytest ~=7.2 → ~=9.0 (#3676) - jsonschema ~=4.0 → ~=4.25 (#3618) - pluggy ~=1.5 → ~=1.6 (#3616) - cryptography 44.0.1 → 46.0.3 (security) (#3589) Documentation - README updated with viewport size setup information Development Infrastructure - Dev container only built on dev branch - Improved dev workflow tooling
167 lines
8.9 KiB
HTML
167 lines
8.9 KiB
HTML
{% extends 'base.html' %}
|
|
{% from '_helpers.html' import render_field, render_checkbox_field, render_button %}
|
|
{% block content %}
|
|
<script>
|
|
const screenshot_url="{{url_for('static_content', group='screenshot', filename=uuid)}}";
|
|
{% if last_error_screenshot %}
|
|
const error_screenshot_url="{{url_for('static_content', group='screenshot', filename=uuid, error_screenshot=1) }}";
|
|
{% endif %}
|
|
|
|
const highlight_submit_ignore_url="{{url_for('ui.ui_edit.highlight_submit_ignore_url', uuid=uuid)}}";
|
|
const watch_url= {{watch_a.link|tojson}};
|
|
|
|
// Initial scroll position: if set, scroll to this line number in #difference on page load
|
|
const initialScrollToLineNumber = {{ initial_scroll_line_number|default('null') }};
|
|
</script>
|
|
<script src="https://cdn.jsdelivr.net/npm/html2canvas@1.4.1/dist/html2canvas.min.js"></script>
|
|
<script src="{{url_for('static_content', group='js', filename='plugins.js')}}"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/piexifjs@1.0.6/piexif.min.js"></script>
|
|
<script src="{{url_for('static_content', group='js', filename='snippet-to-image.js')}}"></script>
|
|
<script src="{{url_for('static_content', group='js', filename='diff-overview.js')}}" defer></script>
|
|
|
|
|
|
<div id="settings">
|
|
<form class="pure-form " action="{{ url_for("ui.ui_diff.diff_history_page", uuid=uuid) }}" method="GET" id="diff-form">
|
|
<fieldset class="diff-fieldset">
|
|
{% if versions|length >= 1 %}
|
|
<span style="white-space: nowrap;">
|
|
<label id="change-from" for="diff-from-version" class="from-to-label">{{ _('From') }}</label>
|
|
<select id="diff-from-version" name="from_version" class="needs-localtime">
|
|
{%- for version in versions|reverse -%}
|
|
<option value="{{ version }}" {% if version== from_version %} selected="" {% endif %}>
|
|
{{ version }}{#{% if loop.index == 2 %} (Previous){% endif %}#}
|
|
</option>
|
|
{%- endfor -%}
|
|
</select>
|
|
</span>
|
|
<span style="white-space: nowrap;">
|
|
<label id="change-to" for="diff-to-version" class="from-to-label">{{ _('To') }}</label>
|
|
<select id="diff-to-version" name="to_version" class="needs-localtime">
|
|
{%- for version in versions|reverse -%}
|
|
<option value="{{ version }}" {% if version== to_version %} selected="" {% endif %}>
|
|
{{ version }}{#{% if loop.first %} (Current){% endif %}#}
|
|
</option>
|
|
{%- endfor -%}
|
|
</select>
|
|
</span>
|
|
{#<button type="submit" class="pure-button pure-button-primary reset-margin">Go</button>#}
|
|
{% endif %}
|
|
</fieldset>
|
|
<fieldset id="diff-style">
|
|
<span>
|
|
<label for="diffWords" class="pure-checkbox">
|
|
<input type="radio" name="type" id="diffWords" value="diffWords" {% if diff_prefs.type == 'diffWords' %}checked=""{% endif %}> {{ _('Words') }}</label>
|
|
</span>
|
|
<span>
|
|
<label for="diffLines" class="pure-checkbox">
|
|
<input type="radio" name="type" id="diffLines" value="diffLines" {% if diff_prefs.type == 'diffLines' %}checked=""{% endif %}> {{ _('Lines') }}</label>
|
|
</span>
|
|
<span>
|
|
<label for="ignoreWhitespace" class="pure-checkbox" id="label-diff-ignorewhitespace">
|
|
<input type="checkbox" id="ignoreWhitespace" name="ignoreWhitespace" {% if diff_prefs.ignoreWhitespace %}checked=""{% endif %}> {{ _('Ignore Whitespace') }}</label>
|
|
</span>
|
|
<span>
|
|
<label for="changesOnly" class="pure-checkbox" id="label-diff-changes">
|
|
<input type="checkbox" id="changesOnly" name="changesOnly" {% if diff_prefs.changesOnly %}checked=""{% endif %}> {{ _('Same/non-changed') }}</label>
|
|
</span>
|
|
<span>
|
|
<label for="removed" class="pure-checkbox" id="label-diff-removed">
|
|
<input type="checkbox" id="removed" name="removed" {% if diff_prefs.removed %}checked=""{% endif %}> {{ _('Removed') }}</label>
|
|
</span>
|
|
<span>
|
|
<label for="added" class="pure-checkbox" id="label-diff-added">
|
|
<input type="checkbox" id="added" name="added" {% if diff_prefs.added %}checked=""{% endif %}> {{ _('Added') }}</label>
|
|
</span>
|
|
<span>
|
|
<label for="replaced" class="pure-checkbox" id="label-diff-replaced">
|
|
<input type="checkbox" id="replaced" name="replaced" {% if diff_prefs.replaced %}checked=""{% endif %}> {{ _('Replaced') }}</label>
|
|
</span>
|
|
</fieldset>
|
|
{%- if versions|length >= 2 -%}
|
|
<div id="keyboard-nav">
|
|
<strong>{{ _('Keyboard:') }} </strong>
|
|
<a href="" class="pure-button pure-button-primary" id="btn-previous"> ← {{ _('Previous') }}</a>
|
|
<a class="pure-button pure-button-primary" id="btn-next" href=""> → {{ _('Next') }}</a>
|
|
</div>
|
|
{%- endif -%}
|
|
</form>
|
|
</div>
|
|
|
|
<div id="diff-jump" style="display:none;"><!-- disabled for now -->
|
|
<a id="jump-next-diff" title="{{ _('Jump to next difference') }}">{{ _('Jump') }}</a>
|
|
</div>
|
|
|
|
<script src="{{url_for('static_content', group='js', filename='tabs.js')}}" defer></script>
|
|
<div class="tabs">
|
|
<ul>
|
|
{% if last_error_text %}<li class="tab" id="error-text-tab"><a href="#error-text">{{ _('Error Text') }}</a></li> {% endif %}
|
|
{% if last_error_screenshot %}<li class="tab" id="error-screenshot-tab"><a href="#error-screenshot">{{ _('Error Screenshot') }}</a></li> {% endif %}
|
|
<li class="tab" id="text-tab"><a href="#text">{{ _('Text') }}</a></li>
|
|
<li class="tab" id="screenshot-tab"><a href="#screenshot">{{ _('Current screenshot') }}</a></li>
|
|
<li class="tab" id="extract-tab"><a href="{{ url_for('ui.ui_diff.diff_history_page_extract_GET', uuid=uuid)}}">{{ _('Extract Data') }}</a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div id="diff-ui">
|
|
<div class="tab-pane-inner" id="error-text">
|
|
<div class="snapshot-age error">{{watch_a.error_text_ctime|format_seconds_ago}} {{ _('seconds ago.') }}</div>
|
|
<pre>
|
|
{{ last_error_text }}
|
|
</pre>
|
|
</div>
|
|
|
|
<div class="tab-pane-inner" id="error-screenshot">
|
|
<div class="snapshot-age error">{{watch_a.snapshot_error_screenshot_ctime|format_seconds_ago}} {{ _('seconds ago') }}</div>
|
|
<img id="error-screenshot-img" style="max-width: 80%" alt="{{ _('Current error-ing screenshot from most recent request') }}" >
|
|
</div>
|
|
|
|
<div class="tab-pane-inner" id="text">
|
|
{%- if (content | default('')).split('\n') | length > 100 -%}
|
|
<div id="cell-diff-jump-visualiser" style="user-select: none;">
|
|
{%- for cell in diff_cell_grid -%}
|
|
<div{% if cell.class %} class="{{ cell.class }}"{% endif %}></div>
|
|
{%- endfor -%}
|
|
</div>
|
|
{%- endif -%}
|
|
{%- if password_enabled_and_share_is_off -%}
|
|
<div class="tip">{{ _('Pro-tip: You can enable') }} <strong>{{ _('"share access when password is enabled"') }}</strong> {{ _('from settings.') }}
|
|
</div>
|
|
{%- endif -%}
|
|
<div id="text-diff-heading-area" style="user-select: none;">
|
|
<div class="snapshot-age"><span>{{ from_version|format_timestamp_timeago }}</span>
|
|
{%- if note -%}<span class="note"><strong>{{ note }}</strong></span>{%- endif -%}
|
|
<a href="{{ url_for("ui.ui_preview.preview_page", uuid=uuid) }}">{{ _('Goto single snapshot') }}</a>
|
|
</div>
|
|
</div>
|
|
<pre id="difference" style="border-left: 2px solid #ddd;">{{ content| diff_unescape_difference_spans }}</pre>
|
|
<div id="diff-visualiser-area-after" style="user-select: none;">
|
|
<strong>{{ _('Tip:') }}</strong> {{ _('Highlight text to share or add to ignore lists.') }}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="tab-pane-inner" id="screenshot">
|
|
<div class="tip">
|
|
{{ _('For now, Differences are performed on text, not graphically, only the latest screenshot is available.') }}
|
|
</div>
|
|
{% if is_html_webdriver %}
|
|
{% if screenshot %}
|
|
<div class="snapshot-age">{{watch_a.snapshot_screenshot_ctime|format_timestamp_timeago}}</div>
|
|
<img style="max-width: 80%" id="screenshot-img" alt="{{ _('Current screenshot from most recent request') }}" >
|
|
{% else %}
|
|
{{ _('No screenshot available just yet! Try rechecking the page.') }}
|
|
{% endif %}
|
|
{% else %}
|
|
<strong>{{ _('Screenshot requires Playwright/WebDriver enabled') }}</strong>
|
|
{% endif %}
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script>
|
|
const newest_version_timestamp = {{newest_version_timestamp}};
|
|
</script>
|
|
<script src="{{url_for('static_content', group='js', filename='diff-render.js')}}"></script>
|
|
|
|
|
|
{% endblock %}
|