mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2025-11-26 03:13:21 +00:00
Compare commits
3 Commits
api-import
...
0.45.8.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e6de1dd135 | ||
|
|
599291645d | ||
|
|
156d403552 |
@@ -38,7 +38,7 @@ from flask_paginate import Pagination, get_page_parameter
|
|||||||
from changedetectionio import html_tools
|
from changedetectionio import html_tools
|
||||||
from changedetectionio.api import api_v1
|
from changedetectionio.api import api_v1
|
||||||
|
|
||||||
__version__ = '0.45.8'
|
__version__ = '0.45.8.1'
|
||||||
|
|
||||||
from changedetectionio.store import BASE_URL_NOT_SET_TEXT
|
from changedetectionio.store import BASE_URL_NOT_SET_TEXT
|
||||||
|
|
||||||
|
|||||||
@@ -52,6 +52,11 @@ class difference_detection_processor():
|
|||||||
prefer_fetch_backend = 'base_html_playwright'
|
prefer_fetch_backend = 'base_html_playwright'
|
||||||
browser_connection_url = connection[0].get('browser_connection_url')
|
browser_connection_url = connection[0].get('browser_connection_url')
|
||||||
|
|
||||||
|
# PDF should be html_requests because playwright will serve it up (so far) in a embedded page
|
||||||
|
# @todo https://github.com/dgtlmoon/changedetection.io/issues/2019
|
||||||
|
# @todo needs test to or a fix
|
||||||
|
if self.watch.is_pdf:
|
||||||
|
prefer_fetch_backend = "html_requests"
|
||||||
|
|
||||||
# Grab the right kind of 'fetcher', (playwright, requests, etc)
|
# Grab the right kind of 'fetcher', (playwright, requests, etc)
|
||||||
if hasattr(content_fetcher, prefer_fetch_backend):
|
if hasattr(content_fetcher, prefer_fetch_backend):
|
||||||
|
|||||||
@@ -2,21 +2,28 @@ $(document).ready(function () {
|
|||||||
|
|
||||||
// Lazy Hide/Show elements mechanism
|
// Lazy Hide/Show elements mechanism
|
||||||
$('[data-visible-for]').hide();
|
$('[data-visible-for]').hide();
|
||||||
$(':radio').on('keyup keypress blur change click', function (e) {
|
function show_related_elem(e) {
|
||||||
$('[data-visible-for]').hide();
|
var n = $(e).attr('name') + "=" + $(e).val();
|
||||||
$('.advanced-options').hide();
|
|
||||||
var n = $(this).attr('name') + "=" + $(this).val();
|
|
||||||
if (n === 'fetch_backend=system') {
|
if (n === 'fetch_backend=system') {
|
||||||
n = "fetch_backend=" + default_system_fetch_backend;
|
n = "fetch_backend=" + default_system_fetch_backend;
|
||||||
}
|
}
|
||||||
$(`[data-visible-for~="${n}"]`).show();
|
$(`[data-visible-for~="${n}"]`).show();
|
||||||
|
}
|
||||||
|
$(':radio').on('keyup keypress blur change click', function (e) {
|
||||||
|
$(`[data-visible-for]`).hide();
|
||||||
|
$('.advanced-options').hide();
|
||||||
|
show_related_elem(this);
|
||||||
});
|
});
|
||||||
$(':radio:checked').change();
|
|
||||||
|
$(':radio:checked').each(function (e) {
|
||||||
|
show_related_elem(this);
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
// Show advanced
|
// Show advanced
|
||||||
$('.show-advanced').click(function (e) {
|
$('.show-advanced').click(function (e) {
|
||||||
$(this).closest('.tab-pane-inner').find('.advanced-options').toggle();
|
$(this).closest('.tab-pane-inner').find('.advanced-options').each(function (e) {
|
||||||
|
$(this).toggle();
|
||||||
|
})
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -1,18 +1,4 @@
|
|||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
|
||||||
// Lazy Hide/Show elements mechanism
|
|
||||||
$('[data-visible-for]').hide();
|
|
||||||
$(':radio').on('keyup keypress blur change click', function (e){
|
|
||||||
$('[data-visible-for]').hide();
|
|
||||||
var n = $(this).attr('name') + "=" + $(this).val();
|
|
||||||
if (n === 'fetch_backend=system') {
|
|
||||||
n = "fetch_backend=" + default_system_fetch_backend;
|
|
||||||
}
|
|
||||||
$(`[data-visible-for~="${n}"]`).show();
|
|
||||||
|
|
||||||
});
|
|
||||||
$(':radio:checked').change();
|
|
||||||
|
|
||||||
$('#notification-setting-reset-to-default').click(function (e) {
|
$('#notification-setting-reset-to-default').click(function (e) {
|
||||||
$('#notification_title').val('');
|
$('#notification_title').val('');
|
||||||
$('#notification_body').val('');
|
$('#notification_body').val('');
|
||||||
|
|||||||
@@ -127,7 +127,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<!-- webdriver always -->
|
<!-- webdriver always -->
|
||||||
<fieldset data-visible-for="fetch_backend=html_webdriver">
|
<fieldset data-visible-for="fetch_backend=html_webdriver" style="display: none;">
|
||||||
<div class="pure-control-group">
|
<div class="pure-control-group">
|
||||||
{{ render_field(form.webdriver_delay) }}
|
{{ render_field(form.webdriver_delay) }}
|
||||||
<div class="pure-form-message-inline">
|
<div class="pure-form-message-inline">
|
||||||
@@ -153,15 +153,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<!-- html requests always -->
|
<!-- html requests always -->
|
||||||
<fieldset data-visible-for="fetch_backend=html_requests" style="display: none;">
|
<fieldset data-visible-for="fetch_backend=html_requests">
|
||||||
<div class="pure-control-group">
|
<div class="pure-control-group">
|
||||||
<a class="pure-button button-secondary button-xsmall show-advanced">Show advanced options</a>
|
<a class="pure-button button-secondary button-xsmall show-advanced">Show advanced options</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="advanced-options" style="display: none;">
|
<div class="advanced-options" style="display: none;">
|
||||||
<div class="pure-control-group advanced-options" id="request-method" style="display: none;">
|
<div class="pure-control-group" id="request-method">
|
||||||
{{ render_field(form.method) }}
|
{{ render_field(form.method) }}
|
||||||
</div>
|
</div>
|
||||||
<div class="advanced-options" id="request-body">
|
<div id="request-body">
|
||||||
{{ render_field(form.body, rows=5, placeholder="Example
|
{{ render_field(form.body, rows=5, placeholder="Example
|
||||||
{
|
{
|
||||||
\"name\":\"John\",
|
\"name\":\"John\",
|
||||||
@@ -187,8 +187,8 @@ User-Agent: wonderbra 1.0") }}
|
|||||||
(Not supported by Selenium browser)
|
(Not supported by Selenium browser)
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<fieldset data-visible-for="fetch_backend=html_requests fetch_backend=html_webdriver" style="display: none;">
|
<fieldset data-visible-for="fetch_backend=html_requests fetch_backend=html_webdriver" >
|
||||||
<div class="pure-control-group inline-radio advanced-options" style="display: none;">
|
<div class="pure-control-group inline-radio advanced-options" style="display: none;">
|
||||||
{{ render_checkbox_field(form.ignore_status_codes) }}
|
{{ render_checkbox_field(form.ignore_status_codes) }}
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|||||||
Reference in New Issue
Block a user