parent
427cf105a3
commit
b2da26b2f1
@ -1,121 +1,151 @@
|
|||||||
<!doctype html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en" data-darkmode="{{ dark_mode|lower }}">
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
<head>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta charset="utf-8"/>
|
||||||
<meta name="description" content="Self hosted website change detection.">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||||
|
<meta name="description" content="Self hosted website change detection."/>
|
||||||
<title>Change Detection{{extra_title}}</title>
|
<title>Change Detection{{extra_title}}</title>
|
||||||
<link rel="alternate" type="application/rss+xml" title="Changedetection.io » Feed{% if active_tag %}- {{active_tag}}{% endif %}" href="{{ url_for('rss', tag=active_tag , token=app_rss_token)}}" />
|
<link rel="alternate" type="application/rss+xml" title="Changedetection.io » Feed{% if active_tag %}- {{active_tag}}{% endif %}" href="{{ url_for('rss', tag=active_tag , token=app_rss_token)}}"/>
|
||||||
<link rel="stylesheet" href="{{url_for('static_content', group='styles', filename='pure-min.css')}}">
|
<link rel="stylesheet" href="{{url_for('static_content', group='styles', filename='pure-min.css')}}"/>
|
||||||
<link rel="stylesheet" href="{{url_for('static_content', group='styles', filename='styles.css')}}">
|
<link rel="stylesheet" href="{{url_for('static_content', group='styles', filename='styles.css')}}"/>
|
||||||
{% if extra_stylesheets %}
|
{% if extra_stylesheets %}
|
||||||
{% for m in extra_stylesheets %}
|
{% for m in extra_stylesheets %}
|
||||||
<link rel="stylesheet" href="{{ m }}?ver=1000">
|
<link rel="stylesheet" href="{{ m }}?ver=1000"/>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<link rel="apple-touch-icon" sizes="180x180" href="{{url_for('static_content', group='favicons', filename='apple-touch-icon.png')}}">
|
<link rel="apple-touch-icon" sizes="180x180" href="{{url_for('static_content', group='favicons', filename='apple-touch-icon.png')}}"/>
|
||||||
<link rel="icon" type="image/png" sizes="32x32" href="{{url_for('static_content', group='favicons', filename='favicon-32x32.png')}}">
|
<link rel="icon" type="image/png" sizes="32x32" href="{{url_for('static_content', group='favicons', filename='favicon-32x32.png')}}"/>
|
||||||
<link rel="icon" type="image/png" sizes="16x16" href="{{url_for('static_content', group='favicons', filename='favicon-16x16.png')}}">
|
<link rel="icon" type="image/png" sizes="16x16" href="{{url_for('static_content', group='favicons', filename='favicon-16x16.png')}}"/>
|
||||||
<link rel="manifest" href="{{url_for('static_content', group='favicons', filename='site.webmanifest')}}">
|
<link rel="manifest" href="{{url_for('static_content', group='favicons', filename='site.webmanifest')}}"/>
|
||||||
<link rel="mask-icon" href="{{url_for('static_content', group='favicons', filename='safari-pinned-tab.svg')}}" color="#5bbad5">
|
<link rel="mask-icon" href="{{url_for('static_content', group='favicons', filename='safari-pinned-tab.svg')}}" color="#5bbad5"/>
|
||||||
<link rel="shortcut icon" href="{{url_for('static_content', group='favicons', filename='favicon.ico')}}">
|
<link rel="shortcut icon" href="{{url_for('static_content', group='favicons', filename='favicon.ico')}}"/>
|
||||||
<meta name="msapplication-TileColor" content="#da532c">
|
<meta name="msapplication-TileColor" content="#da532c"/>
|
||||||
<meta name="msapplication-config" content="favicons/browserconfig.xml">
|
<meta name="msapplication-config" content="favicons/browserconfig.xml"/>
|
||||||
<meta name="theme-color" content="#ffffff">
|
<meta name="theme-color" content="#ffffff"/>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
body::before {
|
body::before {
|
||||||
background-image: url({{url_for('static_content', group='images', filename='gradient-border.png')}});
|
background-image: url({{url_for('static_content', group='images', filename='gradient-border.png') }});
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script type="text/javascript" src="{{url_for('static_content', group='js', filename='jquery-3.6.0.min.js')}}"></script>
|
<script type="text/javascript" src="{{url_for('static_content', group='js', filename='jquery-3.6.0.min.js')}}"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
</head>
|
<body>
|
||||||
|
<div class="header">
|
||||||
<body>
|
<div class="home-menu pure-menu pure-menu-horizontal pure-menu-fixed" id="nav-menu">
|
||||||
|
|
||||||
<div class="header">
|
|
||||||
|
|
||||||
<div class="home-menu pure-menu pure-menu-horizontal pure-menu-fixed" id="nav-menu">
|
|
||||||
{% if has_password and not current_user.is_authenticated %}
|
{% if has_password and not current_user.is_authenticated %}
|
||||||
<a class="pure-menu-heading" href="https://github.com/dgtlmoon/changedetection.io" rel="noopener"><strong>Change</strong>Detection.io</a>
|
<a class="pure-menu-heading" href="https://github.com/dgtlmoon/changedetection.io" rel="noopener">
|
||||||
|
<strong>Change</strong>Detection.io</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<a class="pure-menu-heading" href="{{url_for('index')}}"><strong>Change</strong>Detection.io</a>
|
<a class="pure-menu-heading" href="{{url_for('index')}}">
|
||||||
|
<strong>Change</strong>Detection.io</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if current_diff_url %}
|
{% if current_diff_url %}
|
||||||
<a class=current-diff-url href="{{ current_diff_url }}"><span style="max-width: 30%; overflow: hidden;">{{ current_diff_url }}</span></a>
|
<a class="current-diff-url" href="{{ current_diff_url }}">
|
||||||
|
<span style="max-width: 30%; overflow: hidden">{{ current_diff_url }}</span></a>
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if new_version_available and not (has_password and not current_user.is_authenticated) %}
|
{% if new_version_available and not(has_password and not current_user.is_authenticated) %}
|
||||||
<span id="new-version-text" class="pure-menu-heading"><a href="https://github.com/dgtlmoon/changedetection.io">A new version is available</a></span>
|
<span id="new-version-text" class="pure-menu-heading">
|
||||||
{% endif %}
|
<a href="https://github.com/dgtlmoon/changedetection.io">A new version is available</a>
|
||||||
|
</span>
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<ul class="pure-menu-list" id="top-right-menu">
|
<ul class="pure-menu-list" id="top-right-menu">
|
||||||
{% if current_user.is_authenticated or not has_password %}
|
{% if current_user.is_authenticated or not has_password %}
|
||||||
{% if not current_diff_url %}
|
{% if not
|
||||||
<li class="pure-menu-item">
|
current_diff_url %}
|
||||||
|
<li class="pure-menu-item">
|
||||||
<a href="{{ url_for('settings_page')}}" class="pure-menu-link">SETTINGS</a>
|
<a href="{{ url_for('settings_page')}}" class="pure-menu-link">SETTINGS</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="pure-menu-item">
|
<li class="pure-menu-item">
|
||||||
<a href="{{ url_for('import_page')}}" class="pure-menu-link">IMPORT</a>
|
<a href="{{ url_for('import_page')}}" class="pure-menu-link">IMPORT</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="pure-menu-item">
|
<li class="pure-menu-item">
|
||||||
<a href="{{ url_for('get_backup')}}" class="pure-menu-link">BACKUP</a>
|
<a href="{{ url_for('get_backup')}}" class="pure-menu-link">BACKUP</a>
|
||||||
</li>
|
</li>
|
||||||
{% else %}
|
{% else %}
|
||||||
<li class="pure-menu-item">
|
<li class="pure-menu-item">
|
||||||
<a href="{{ url_for('edit_page', uuid=uuid, next='diff') }}" class="pure-menu-link">EDIT</a>
|
<a href="{{ url_for('edit_page', uuid=uuid, next='diff') }}" class="pure-menu-link">EDIT</a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<li class="pure-menu-item">
|
<li class="pure-menu-item">
|
||||||
<a class="pure-menu-link" href="https://github.com/dgtlmoon/changedetection.io">Website Change Detection and Notification.</a>
|
<a class="pure-menu-link" href="https://github.com/dgtlmoon/changedetection.io">Website Change Detection and Notification.</a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if current_user.is_authenticated %}
|
||||||
|
<li class="pure-menu-item">
|
||||||
|
<a href="{{url_for('logout')}}" class="pure-menu-link">LOG OUT</a>
|
||||||
|
</li>
|
||||||
|
{% endif %}
|
||||||
|
<li class="pure-menu-item">
|
||||||
|
{% if dark_mode %}
|
||||||
|
{% set darkClass = 'dark' %}
|
||||||
|
{% endif %}
|
||||||
|
<button class="toggle-theme {{darkClass}}" type="button">
|
||||||
|
<span class="visually-hidden">Toggle light/dark mode</span>
|
||||||
|
<span class="icon-light">
|
||||||
|
{% include "svgs/light-mode-toggle-icon.svg" %}
|
||||||
|
</span>
|
||||||
|
<span class="icon-dark">
|
||||||
|
{% include "svgs/dark-mode-toggle-icon.svg" %}
|
||||||
|
</span>
|
||||||
|
</button>
|
||||||
|
|
||||||
{% if current_user.is_authenticated %}
|
<a class="github-link" href="https://github.com/dgtlmoon/changedetection.io">
|
||||||
<li class="pure-menu-item"><a href="{{url_for('logout')}}" class="pure-menu-link">LOG OUT</a></li>
|
{% include "svgs/github.svg" %}
|
||||||
{% endif %}
|
</a>
|
||||||
<li class="pure-menu-item"><a class="github-link" href="https://github.com/dgtlmoon/changedetection.io">
|
</li>
|
||||||
<svg class="octicon octicon-mark-github v-align-middle" height="32" viewBox="0 0 16 16"
|
|
||||||
version="1.1"
|
|
||||||
width="32" aria-hidden="true">
|
|
||||||
<path fill-rule="evenodd"
|
|
||||||
d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path>
|
|
||||||
</svg>
|
|
||||||
</a></li>
|
|
||||||
</ul>
|
</ul>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
{% if hosted_sticky %}
|
||||||
{% if hosted_sticky %}<div class="sticky-tab" id="hosted-sticky"><a href="https://lemonade.changedetection.io/start?ref={{guid}}">Let us host your instance!</a></div>{% endif %}
|
<div class="sticky-tab" id="hosted-sticky">
|
||||||
{% if left_sticky %}<div class="sticky-tab" id="left-sticky"><a href="{{url_for('preview_page', uuid=uuid)}}">Show current snapshot</a></div> {% endif %}
|
<a href="https://lemonade.changedetection.io/start?ref={{guid}}">Let us host your instance!</a>
|
||||||
{% if right_sticky %}<div class="sticky-tab" id="right-sticky">{{ right_sticky }}</div> {% endif %}
|
</div>
|
||||||
<section class="content">
|
{% endif %}
|
||||||
<header>
|
{% if left_sticky %}
|
||||||
|
<div class="sticky-tab" id="left-sticky">
|
||||||
|
<a href="{{url_for('preview_page', uuid=uuid)}}">Show current snapshot</a>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
{% if right_sticky %}
|
||||||
|
<div class="sticky-tab" id="right-sticky">{{ right_sticky }}</div>
|
||||||
|
{% endif %}
|
||||||
|
<section class="content">
|
||||||
|
<header>
|
||||||
{% block header %}{% endblock %}
|
{% block header %}{% endblock %}
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
{% with messages = get_flashed_messages(with_categories=true) %}
|
{% with messages = get_flashed_messages(with_categories = true) %}
|
||||||
{% if messages %}
|
{% if
|
||||||
<ul class=messages>
|
messages %}
|
||||||
{% for category, message in messages %}
|
<ul class="messages">
|
||||||
<li class="{{ category }}">{{ message }}</li>
|
{% for category, message in messages %}
|
||||||
{% endfor %}
|
<li class="{{ category }}">{{ message }}</li>
|
||||||
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
{% if session['share-link'] %}
|
||||||
{% if session['share-link'] %}
|
|
||||||
<ul class="messages with-share-link">
|
<ul class="messages with-share-link">
|
||||||
<li class="message">Share this link: <span id="share-link">{{ session['share-link'] }}</span> <img style="height: 1em;display:inline-block;" src="{{url_for('static_content', group='images', filename='copy.svg')}}" /></li>
|
<li class="message">
|
||||||
|
Share this link:
|
||||||
|
<span id="share-link">{{ session['share-link'] }}</span>
|
||||||
|
<img style="height: 1em; display: inline-block" src="{{url_for('static_content', group='images', filename='copy.svg')}}"/>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% block content %}{% endblock %}
|
||||||
{% block content %}
|
</section>
|
||||||
|
<script
|
||||||
{% endblock %}
|
type="text/javascript"
|
||||||
</section>
|
src="{{url_for('static_content', group='js', filename='toggle-theme.js')}}"
|
||||||
|
defer></script>
|
||||||
|
</body>
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
</html>
|
||||||
|
@ -1,32 +1,49 @@
|
|||||||
{% extends 'base.html' %}
|
{% extends 'base.html' %} {% block content %}
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
<div class="edit-form">
|
<div class="edit-form">
|
||||||
<div class="box-wrap inner">
|
<div class="box-wrap inner">
|
||||||
<form class="pure-form pure-form-stacked" action="{{url_for('clear_all_history')}}" method="POST">
|
<form
|
||||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
|
class="pure-form pure-form-stacked"
|
||||||
<fieldset>
|
action="{{url_for('clear_all_history')}}"
|
||||||
<div class="pure-control-group">
|
method="POST"
|
||||||
This will remove version history (snapshots) for ALL watches, but keep your list of URLs! <br/>
|
>
|
||||||
You may like to use the <strong>BACKUP</strong> link first.<br/>
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
||||||
</div>
|
<fieldset>
|
||||||
<br/>
|
<div class="pure-control-group">
|
||||||
<div class="pure-control-group">
|
This will remove version history (snapshots) for ALL watches, but keep
|
||||||
<label for="confirmtext">Confirmation text</label>
|
your list of URLs! <br />
|
||||||
<input type="text" id="confirmtext" required="" name="confirmtext" value="" size="10"/>
|
You may like to use the <strong>BACKUP</strong> link first.<br />
|
||||||
<span class="pure-form-message-inline">Type in the word <strong>clear</strong> to confirm that you understand.</span>
|
</div>
|
||||||
</div>
|
<br />
|
||||||
<br/>
|
<div class="pure-control-group">
|
||||||
<div class="pure-control-group">
|
<label for="confirmtext">Confirmation text</label>
|
||||||
<button type="submit" class="pure-button pure-button-primary">Clear History!</button>
|
<input
|
||||||
</div>
|
type="text"
|
||||||
<br/>
|
id="confirmtext"
|
||||||
<div class="pure-control-group">
|
required=""
|
||||||
<a href="{{url_for('index')}}" class="pure-button button-small button-cancel">Cancel</a>
|
name="confirmtext"
|
||||||
</div>
|
value=""
|
||||||
</fieldset>
|
size="10"
|
||||||
|
/>
|
||||||
|
<span class="pure-form-message-inline"
|
||||||
|
>Type in the word <strong>clear</strong> to confirm that you
|
||||||
|
understand.</span
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
<br />
|
||||||
|
<div class="pure-control-group">
|
||||||
|
<button type="submit" class="pure-button pure-button-primary">
|
||||||
|
Clear History!
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<br />
|
||||||
|
<div class="pure-control-group">
|
||||||
|
<a href="{{url_for('index')}}" class="pure-button button-cancel"
|
||||||
|
>Cancel</a
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,186 +1,287 @@
|
|||||||
{% extends 'base.html' %}
|
{% extends 'base.html' %} {% block content %} {% from '_helpers.jinja' import
|
||||||
|
render_field, render_checkbox_field, render_button %} {% from
|
||||||
{% block content %}
|
'_common_fields.jinja' import render_common_settings_form %}
|
||||||
{% from '_helpers.jinja' import render_field, render_checkbox_field, render_button %}
|
|
||||||
{% from '_common_fields.jinja' import render_common_settings_form %}
|
|
||||||
<script>
|
<script>
|
||||||
const notification_base_url="{{url_for('ajax_callback_send_notification_test')}}";
|
const notification_base_url="{{url_for('ajax_callback_send_notification_test')}}";
|
||||||
{% if emailprefix %}
|
{% if emailprefix %}
|
||||||
const email_notification_prefix=JSON.parse('{{emailprefix|tojson}}');
|
const email_notification_prefix=JSON.parse('{{emailprefix|tojson}}');
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="{{url_for('static_content', group='js', filename='tabs.js')}}" defer></script>
|
<script
|
||||||
<script type="text/javascript" src="{{url_for('static_content', group='js', filename='notifications.js')}}" defer></script>
|
type="text/javascript"
|
||||||
|
src="{{url_for('static_content', group='js', filename='tabs.js')}}"
|
||||||
|
defer
|
||||||
|
></script>
|
||||||
|
<script
|
||||||
|
type="text/javascript"
|
||||||
|
src="{{url_for('static_content', group='js', filename='notifications.js')}}"
|
||||||
|
defer
|
||||||
|
></script>
|
||||||
|
|
||||||
<script type="text/javascript" src="{{url_for('static_content', group='js', filename='global-settings.js')}}" defer></script>
|
<script
|
||||||
|
type="text/javascript"
|
||||||
|
src="{{url_for('static_content', group='js', filename='global-settings.js')}}"
|
||||||
|
defer
|
||||||
|
></script>
|
||||||
<div class="edit-form">
|
<div class="edit-form">
|
||||||
<div class="tabs collapsable">
|
<div class="tabs collapsable">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="tab" id=""><a href="#general">General</a></li>
|
<li class="tab" id=""><a href="#general">General</a></li>
|
||||||
<li class="tab"><a href="#notifications">Notifications</a></li>
|
<li class="tab"><a href="#notifications">Notifications</a></li>
|
||||||
<li class="tab"><a href="#fetching">Fetching</a></li>
|
<li class="tab"><a href="#fetching">Fetching</a></li>
|
||||||
<li class="tab"><a href="#filters">Global Filters</a></li>
|
<li class="tab"><a href="#filters">Global Filters</a></li>
|
||||||
<li class="tab"><a href="#api">API</a></li>
|
<li class="tab"><a href="#api">API</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="box-wrap inner">
|
<div class="box-wrap inner">
|
||||||
<form class="pure-form pure-form-stacked settings" action="{{url_for('settings_page')}}" method="POST">
|
<form
|
||||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
|
class="pure-form pure-form-stacked settings"
|
||||||
<div class="tab-pane-inner" id="general">
|
action="{{url_for('settings_page')}}"
|
||||||
<fieldset>
|
method="POST"
|
||||||
<div class="pure-control-group">
|
>
|
||||||
{{ render_field(form.requests.form.time_between_check, class="time-check-widget") }}
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
||||||
<span class="pure-form-message-inline">Default time for all watches, when the watch does not have a specific time setting.</span>
|
<div class="tab-pane-inner" id="general">
|
||||||
</div>
|
<fieldset>
|
||||||
<div class="pure-control-group">
|
<div class="pure-control-group">
|
||||||
{{ render_field(form.requests.form.jitter_seconds, class="jitter_seconds") }}
|
{{ render_field(form.requests.form.time_between_check,
|
||||||
<span class="pure-form-message-inline">Example - 3 seconds random jitter could trigger up to 3 seconds earlier or up to 3 seconds later</span>
|
class="time-check-widget") }}
|
||||||
</div>
|
<span class="pure-form-message-inline"
|
||||||
<div class="pure-control-group">
|
>Default time for all watches, when the watch does not have a
|
||||||
{{ render_field(form.application.form.filter_failure_notification_threshold_attempts, class="filter_failure_notification_threshold_attempts") }}
|
specific time setting.</span
|
||||||
<span class="pure-form-message-inline">After this many consecutive times that the CSS/xPath filter is missing, send a notification
|
>
|
||||||
<br/>
|
</div>
|
||||||
Set to <strong>0</strong> to disable
|
<div class="pure-control-group">
|
||||||
</span>
|
{{ render_field(form.requests.form.jitter_seconds,
|
||||||
</div>
|
class="jitter_seconds") }}
|
||||||
<div class="pure-control-group">
|
<span class="pure-form-message-inline"
|
||||||
{% if not hide_remove_pass %}
|
>Example - 3 seconds random jitter could trigger up to 3 seconds
|
||||||
{% if current_user.is_authenticated %}
|
earlier or up to 3 seconds later</span
|
||||||
{{ render_button(form.application.form.removepassword_button) }}
|
>
|
||||||
{% else %}
|
</div>
|
||||||
{{ render_field(form.application.form.password) }}
|
<div class="pure-control-group">
|
||||||
<span class="pure-form-message-inline">Password protection for your changedetection.io application.</span>
|
{{
|
||||||
{% endif %}
|
render_field(form.application.form.filter_failure_notification_threshold_attempts,
|
||||||
{% else %}
|
class="filter_failure_notification_threshold_attempts") }}
|
||||||
<span class="pure-form-message-inline">Password is locked.</span>
|
<span class="pure-form-message-inline"
|
||||||
{% endif %}
|
>After this many consecutive times that the CSS/xPath filter is
|
||||||
</div>
|
missing, send a notification
|
||||||
|
<br />
|
||||||
<div class="pure-control-group">
|
Set to <strong>0</strong> to disable
|
||||||
{{ render_field(form.application.form.base_url, placeholder="http://yoursite.com:5000/",
|
</span>
|
||||||
class="m-d") }}
|
</div>
|
||||||
<span class="pure-form-message-inline">
|
<div class="pure-control-group">
|
||||||
Base URL used for the <code>{base_url}</code> token in notifications and RSS links.<br/>Default value is the ENV var 'BASE_URL' (Currently "{{settings_application['current_base_url']}}"),
|
{% if not hide_remove_pass %} {% if current_user.is_authenticated %}
|
||||||
<a href="https://github.com/dgtlmoon/changedetection.io/wiki/Configurable-BASE_URL-setting">read more here</a>.
|
{{ render_button(form.application.form.removepassword_button) }} {%
|
||||||
</span>
|
else %} {{ render_field(form.application.form.password) }}
|
||||||
</div>
|
<span class="pure-form-message-inline"
|
||||||
|
>Password protection for your changedetection.io
|
||||||
<div class="pure-control-group">
|
application.</span
|
||||||
{{ render_checkbox_field(form.application.form.extract_title_as_title) }}
|
>
|
||||||
<span class="pure-form-message-inline">Note: This will automatically apply to all existing watches.</span>
|
{% endif %} {% else %}
|
||||||
</div>
|
<span class="pure-form-message-inline">Password is locked.</span>
|
||||||
<div class="pure-control-group">
|
{% endif %}
|
||||||
{{ render_checkbox_field(form.application.form.empty_pages_are_a_change) }}
|
</div>
|
||||||
<span class="pure-form-message-inline">When a page contains HTML, but no renderable text appears (empty page), is this considered a change?</span>
|
|
||||||
</div>
|
|
||||||
{% if form.requests.proxy %}
|
|
||||||
<div class="pure-control-group inline-radio">
|
|
||||||
{{ render_field(form.requests.form.proxy, class="fetch-backend-proxy") }}
|
|
||||||
<span class="pure-form-message-inline">
|
|
||||||
Choose a default proxy for all watches
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
</fieldset>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="tab-pane-inner" id="notifications">
|
|
||||||
<fieldset>
|
|
||||||
<div class="field-group">
|
|
||||||
{{ render_common_settings_form(form.application.form, emailprefix, settings_application) }}
|
|
||||||
</div>
|
|
||||||
</fieldset>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="tab-pane-inner" id="fetching">
|
<div class="pure-control-group">
|
||||||
<div class="pure-control-group inline-radio">
|
{{ render_field(form.application.form.base_url,
|
||||||
{{ render_field(form.application.form.fetch_backend, class="fetch-backend") }}
|
placeholder="http://yoursite.com:5000/", class="m-d") }}
|
||||||
<span class="pure-form-message-inline">
|
<span class="pure-form-message-inline">
|
||||||
<p>Use the <strong>Basic</strong> method (default) where your watched sites don't need Javascript to render.</p>
|
Base URL used for the <code>{base_url}</code> token in
|
||||||
<p>The <strong>Chrome/Javascript</strong> method requires a network connection to a running WebDriver+Chrome server, set by the ENV var 'WEBDRIVER_URL'. </p>
|
notifications and RSS links.<br />Default value is the ENV var
|
||||||
</span>
|
'BASE_URL' (Currently
|
||||||
<br/>
|
"{{settings_application['current_base_url']}}"),
|
||||||
Tip: <a href="https://github.com/dgtlmoon/changedetection.io/wiki/Proxy-configuration#brightdata-proxy-support">Connect using BrightData Proxies, find out more here.</a>
|
<a
|
||||||
</div>
|
href="https://github.com/dgtlmoon/changedetection.io/wiki/Configurable-BASE_URL-setting"
|
||||||
<fieldset class="pure-group" id="webdriver-override-options">
|
>read more here</a
|
||||||
<div class="pure-form-message-inline">
|
>.
|
||||||
<strong>If you're having trouble waiting for the page to be fully rendered (text missing etc), try increasing the 'wait' time here.</strong>
|
</span>
|
||||||
<br/>
|
</div>
|
||||||
This will wait <i>n</i> seconds before extracting the text.
|
|
||||||
</div>
|
|
||||||
<div class="pure-control-group">
|
|
||||||
{{ render_field(form.application.form.webdriver_delay) }}
|
|
||||||
</div>
|
|
||||||
</fieldset>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="tab-pane-inner" id="filters">
|
<div class="pure-control-group">
|
||||||
|
{{
|
||||||
|
render_checkbox_field(form.application.form.extract_title_as_title)
|
||||||
|
}}
|
||||||
|
<span class="pure-form-message-inline"
|
||||||
|
>Note: This will automatically apply to all existing
|
||||||
|
watches.</span
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
<div class="pure-control-group">
|
||||||
|
{{
|
||||||
|
render_checkbox_field(form.application.form.empty_pages_are_a_change)
|
||||||
|
}}
|
||||||
|
<span class="pure-form-message-inline"
|
||||||
|
>When a page contains HTML, but no renderable text appears (empty
|
||||||
|
page), is this considered a change?</span
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
{% if form.requests.proxy %}
|
||||||
|
<div class="pure-control-group inline-radio">
|
||||||
|
{{ render_field(form.requests.form.proxy,
|
||||||
|
class="fetch-backend-proxy") }}
|
||||||
|
<span class="pure-form-message-inline">
|
||||||
|
Choose a default proxy for all watches
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
</fieldset>
|
||||||
|
</div>
|
||||||
|
|
||||||
<fieldset class="pure-group">
|
<div class="tab-pane-inner" id="notifications">
|
||||||
{{ render_checkbox_field(form.application.form.ignore_whitespace) }}
|
<fieldset>
|
||||||
<span class="pure-form-message-inline">Ignore whitespace, tabs and new-lines/line-feeds when considering if a change was detected.<br/>
|
<div class="field-group">
|
||||||
<i>Note:</i> Changing this will change the status of your existing watches, possibly trigger alerts etc.
|
{{ render_common_settings_form(form.application.form, emailprefix,
|
||||||
</span>
|
settings_application) }}
|
||||||
</fieldset>
|
</div>
|
||||||
<fieldset class="pure-group">
|
</fieldset>
|
||||||
{{ render_checkbox_field(form.application.form.render_anchor_tag_content) }}
|
</div>
|
||||||
<span class="pure-form-message-inline">Render anchor tag content, default disabled, when enabled renders links as <code>(link text)[https://somesite.com]</code>
|
|
||||||
<br/>
|
|
||||||
<i>Note:</i> Changing this could affect the content of your existing watches, possibly trigger alerts etc.
|
|
||||||
</span>
|
|
||||||
</fieldset>
|
|
||||||
<fieldset class="pure-group">
|
|
||||||
{{ render_field(form.application.form.global_subtractive_selectors, rows=5, placeholder="header
|
|
||||||
footer
|
|
||||||
nav
|
|
||||||
.stockticker") }}
|
|
||||||
<span class="pure-form-message-inline">
|
|
||||||
<ul>
|
|
||||||
<li> Remove HTML element(s) by CSS selector before text conversion. </li>
|
|
||||||
<li> Add multiple elements or CSS selectors per line to ignore multiple parts of the HTML. </li>
|
|
||||||
</ul>
|
|
||||||
</span>
|
|
||||||
</fieldset>
|
|
||||||
<fieldset class="pure-group">
|
|
||||||
{{ render_field(form.application.form.global_ignore_text, rows=5, placeholder="Some text to ignore in a line
|
|
||||||
/some.regex\d{2}/ for case-INsensitive regex
|
|
||||||
") }}
|
|
||||||
<span class="pure-form-message-inline">Note: This is applied globally in addition to the per-watch rules.</span><br/>
|
|
||||||
<span class="pure-form-message-inline">
|
|
||||||
<ul>
|
|
||||||
<li>Note: This is applied globally in addition to the per-watch rules.</li>
|
|
||||||
<li>Each line processed separately, any line matching will be ignored (removed before creating the checksum)</li>
|
|
||||||
<li>Regular Expression support, wrap the entire line in forward slash <code>/regex/</code></li>
|
|
||||||
<li>Changing this will affect the comparison checksum which may trigger an alert</li>
|
|
||||||
<li>Use the preview/show current tab to see ignores</li>
|
|
||||||
</ul>
|
|
||||||
</span>
|
|
||||||
</fieldset>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="tab-pane-inner" id="api">
|
<div class="tab-pane-inner" id="fetching">
|
||||||
|
<div class="pure-control-group inline-radio">
|
||||||
|
{{ render_field(form.application.form.fetch_backend,
|
||||||
|
class="fetch-backend") }}
|
||||||
|
<span class="pure-form-message-inline">
|
||||||
|
<p>
|
||||||
|
Use the <strong>Basic</strong> method (default) where your watched
|
||||||
|
sites don't need Javascript to render.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
The <strong>Chrome/Javascript</strong> method requires a network
|
||||||
|
connection to a running WebDriver+Chrome server, set by the ENV
|
||||||
|
var 'WEBDRIVER_URL'.
|
||||||
|
</p>
|
||||||
|
</span>
|
||||||
|
<br />
|
||||||
|
Tip:
|
||||||
|
<a
|
||||||
|
href="https://github.com/dgtlmoon/changedetection.io/wiki/Proxy-configuration#brightdata-proxy-support"
|
||||||
|
>Connect using BrightData Proxies, find out more here.</a
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
<fieldset class="pure-group" id="webdriver-override-options">
|
||||||
|
<div class="pure-form-message-inline">
|
||||||
|
<strong
|
||||||
|
>If you're having trouble waiting for the page to be fully
|
||||||
|
rendered (text missing etc), try increasing the 'wait' time
|
||||||
|
here.</strong
|
||||||
|
>
|
||||||
|
<br />
|
||||||
|
This will wait <i>n</i> seconds before extracting the text.
|
||||||
|
</div>
|
||||||
|
<div class="pure-control-group">
|
||||||
|
{{ render_field(form.application.form.webdriver_delay) }}
|
||||||
|
</div>
|
||||||
|
</fieldset>
|
||||||
|
</div>
|
||||||
|
|
||||||
<p>Drive your changedetection.io via API, More about <a href="https://github.com/dgtlmoon/changedetection.io/wiki/API-Reference">API access here</a></p>
|
<div class="tab-pane-inner" id="filters">
|
||||||
|
<fieldset class="pure-group">
|
||||||
|
{{ render_checkbox_field(form.application.form.ignore_whitespace) }}
|
||||||
|
<span class="pure-form-message-inline"
|
||||||
|
>Ignore whitespace, tabs and new-lines/line-feeds when considering
|
||||||
|
if a change was detected.<br />
|
||||||
|
<i>Note:</i> Changing this will change the status of your existing
|
||||||
|
watches, possibly trigger alerts etc.
|
||||||
|
</span>
|
||||||
|
</fieldset>
|
||||||
|
<fieldset class="pure-group">
|
||||||
|
{{
|
||||||
|
render_checkbox_field(form.application.form.render_anchor_tag_content)
|
||||||
|
}}
|
||||||
|
<span class="pure-form-message-inline"
|
||||||
|
>Render anchor tag content, default disabled, when enabled renders
|
||||||
|
links as <code>(link text)[https://somesite.com]</code>
|
||||||
|
<br />
|
||||||
|
<i>Note:</i> Changing this could affect the content of your existing
|
||||||
|
watches, possibly trigger alerts etc.
|
||||||
|
</span>
|
||||||
|
</fieldset>
|
||||||
|
<fieldset class="pure-group">
|
||||||
|
{{ render_field(form.application.form.global_subtractive_selectors,
|
||||||
|
rows=5, placeholder="header footer nav .stockticker") }}
|
||||||
|
<span class="pure-form-message-inline">
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
Remove HTML element(s) by CSS selector before text conversion.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Add multiple elements or CSS selectors per line to ignore
|
||||||
|
multiple parts of the HTML.
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</span>
|
||||||
|
</fieldset>
|
||||||
|
<fieldset class="pure-group">
|
||||||
|
{{ render_field(form.application.form.global_ignore_text, rows=5,
|
||||||
|
placeholder="Some text to ignore in a line /some.regex\d{2}/ for
|
||||||
|
case-INsensitive regex ") }}
|
||||||
|
<span class="pure-form-message-inline"
|
||||||
|
>Note: This is applied globally in addition to the per-watch
|
||||||
|
rules.</span
|
||||||
|
><br />
|
||||||
|
<span class="pure-form-message-inline">
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
Note: This is applied globally in addition to the per-watch
|
||||||
|
rules.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Each line processed separately, any line matching will be
|
||||||
|
ignored (removed before creating the checksum)
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Regular Expression support, wrap the entire line in forward
|
||||||
|
slash <code>/regex/</code>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Changing this will affect the comparison checksum which may
|
||||||
|
trigger an alert
|
||||||
|
</li>
|
||||||
|
<li>Use the preview/show current tab to see ignores</li>
|
||||||
|
</ul>
|
||||||
|
</span>
|
||||||
|
</fieldset>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="pure-control-group">
|
<div class="tab-pane-inner" id="api">
|
||||||
{{ render_checkbox_field(form.application.form.api_access_token_enabled) }}
|
<p>
|
||||||
<div class="pure-form-message-inline">Restrict API access limit by using <code>x-api-key</code> header</div><br/>
|
Drive your changedetection.io via API, More about
|
||||||
<div class="pure-form-message-inline"><br/>API Key <span id="api-key">{{api_key}}</span>
|
<a
|
||||||
<span style="display:none;" id="api-key-copy" >copy</span>
|
href="https://github.com/dgtlmoon/changedetection.io/wiki/API-Reference"
|
||||||
</div>
|
>API access here</a
|
||||||
</div>
|
>
|
||||||
</div>
|
</p>
|
||||||
|
|
||||||
<div id="actions">
|
<div class="pure-control-group">
|
||||||
<div class="pure-control-group">
|
{{
|
||||||
{{ render_button(form.save_button) }}
|
render_checkbox_field(form.application.form.api_access_token_enabled)
|
||||||
<a href="{{url_for('index')}}" class="pure-button button-small button-cancel">Back</a>
|
}}
|
||||||
<a href="{{url_for('clear_all_history')}}" class="pure-button button-small button-cancel">Clear Snapshot History</a>
|
<div class="pure-form-message-inline">
|
||||||
</div>
|
Restrict API access limit by using <code>x-api-key</code> header
|
||||||
|
</div>
|
||||||
|
<br />
|
||||||
|
<div class="pure-form-message-inline">
|
||||||
|
<br />API Key <span id="api-key">{{api_key}}</span>
|
||||||
|
<span style="display: none" id="api-key-copy">copy</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
<div id="actions">
|
||||||
</form>
|
<div class="pure-control-group">
|
||||||
</div>
|
{{ render_button(form.save_button) }}
|
||||||
|
<a href="{{url_for('index')}}" class="pure-button button-cancel"
|
||||||
|
>Back</a
|
||||||
|
>
|
||||||
|
<a
|
||||||
|
href="{{url_for('clear_all_history')}}"
|
||||||
|
class="pure-button button-cancel"
|
||||||
|
>Clear Snapshot History</a
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 749 B |
After Width: | Height: | Size: 2.7 KiB |
Loading…
Reference in new issue