mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
feat(integration): add ntfy integration
This commit is contained in:
parent
3ca52c7f7f
commit
968355f9b9
32 changed files with 567 additions and 17 deletions
|
@ -142,7 +142,7 @@
|
|||
{{ t "form.feed.label.blocklist_rules" }}
|
||||
</label>
|
||||
|
||||
<a href=" https://miniflux.app/docs/rules.html#filtering-rules" target="_blank">
|
||||
<a href="https://miniflux.app/docs/rules.html#filtering-rules" target="_blank">
|
||||
{{ icon "external-link" }}
|
||||
</a>
|
||||
</div>
|
||||
|
@ -153,7 +153,7 @@
|
|||
{{ t "form.feed.label.keeplist_rules" }}
|
||||
</label>
|
||||
|
||||
<a href=" https://miniflux.app/docs/rules.html#filtering-rules" target="_blank">
|
||||
<a href="https://miniflux.app/docs/rules.html#filtering-rules" target="_blank">
|
||||
{{ icon "external-link" }}
|
||||
</a>
|
||||
</div>
|
||||
|
@ -164,7 +164,7 @@
|
|||
{{ t "form.feed.label.urlrewrite_rules" }}
|
||||
</label>
|
||||
|
||||
<a href=" https://miniflux.app/docs/rules.html#rewriteurl-rules" target="_blank">
|
||||
<a href="https://miniflux.app/docs/rules.html#rewriteurl-rules" target="_blank">
|
||||
{{ icon "external-link" }}
|
||||
</a>
|
||||
</div>
|
||||
|
@ -178,13 +178,36 @@
|
|||
<fieldset>
|
||||
<legend>{{ t "form.feed.fieldset.integration" }}</legend>
|
||||
|
||||
<div class="form-label-row">
|
||||
<label for="form-apprise-service-urls">
|
||||
{{ t "form.feed.label.apprise_service_urls" }}
|
||||
</label>
|
||||
|
||||
</div>
|
||||
<input type="text" name="apprise_service_urls" id="form-apprise-service-urls" value="{{ .form.AppriseServiceURLs }}" spellcheck="false">
|
||||
<details>
|
||||
<summary>Apprise</summary>
|
||||
<div class="form-label-row">
|
||||
<label for="form-apprise-service-urls">
|
||||
{{ t "form.feed.label.apprise_service_urls" }}
|
||||
</label>
|
||||
</div>
|
||||
<input type="text" name="apprise_service_urls" id="form-apprise-service-urls" value="{{ .form.AppriseServiceURLs }}" spellcheck="false">
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Ntfy</summary>
|
||||
<label><input type="checkbox" name="ntfy_enabled" value="1" {{ if .form.NtfyEnabled }}checked{{ end }}> {{ t "form.feed.label.ntfy_activate" }}</label>
|
||||
<div class="form-label-row">
|
||||
<label for="form-ntfy-priority">
|
||||
{{ t "form.feed.label.ntfy_priority" }}
|
||||
</label>
|
||||
|
||||
<a href="https://docs.ntfy.sh/publish/#message-priority" target="_blank">
|
||||
{{ icon "external-link" }}
|
||||
</a>
|
||||
</div>
|
||||
<select id="form-ntfy-priority" name="ntfy_priority">
|
||||
<option value="5" {{ if eq .form.NtfyPriority 5 }}selected{{ end }}>5 - {{ t "form.feed.label.ntfy_max_priority" }}</option>
|
||||
<option value="4" {{ if eq .form.NtfyPriority 4 }}selected{{ end }}>4 - {{ t "form.feed.label.ntfy_high_priority" }}</option>
|
||||
<option value="3" {{ if eq .form.NtfyPriority 3 }}selected{{ end }}>3 - {{ t "form.feed.label.ntfy_default_priority" }}</option>
|
||||
<option value="2" {{ if eq .form.NtfyPriority 2 }}selected{{ end }}>2 - {{ t "form.feed.label.ntfy_low_priority" }}</option>
|
||||
<option value="1" {{ if eq .form.NtfyPriority 1 }}selected{{ end }}>1 - {{ t "form.feed.label.ntfy_min_priority" }}</option>
|
||||
</select>
|
||||
</details>
|
||||
|
||||
<div class="buttons">
|
||||
<button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
|
||||
|
|
|
@ -259,6 +259,37 @@
|
|||
</div>
|
||||
</details>
|
||||
|
||||
<details {{ if .form.NtfyEnabled }}open{{ end }}>
|
||||
<summary>Ntfy</summary>
|
||||
<div class="form-section">
|
||||
<label>
|
||||
<input type="checkbox" name="ntfy_enabled" value="1" {{ if .form.NtfyEnabled }}checked{{ end }}> {{ t "form.integration.ntfy_activate" }}
|
||||
</label>
|
||||
|
||||
<label for="form-ntfy-topic">{{ t "form.integration.ntfy_topic" }}</label>
|
||||
<input type="text" name="ntfy_topic" id="form-ntfy-topic" value="{{ .form.NtfyTopic }}" spellcheck="false">
|
||||
|
||||
<label for="form-ntfy-url">{{ t "form.integration.ntfy_url" }}</label>
|
||||
<input type="url" name="ntfy_url" id="form-ntfy-url" value="{{ .form.NtfyURL }}" placeholder="https://ntfy.sh" spellcheck="false">
|
||||
|
||||
<label for="form-ntfy-api-token">{{ t "form.integration.ntfy_api_token" }}</label>
|
||||
<input type="text" name="ntfy_api_token" id="form-ntfy-api-token" value="{{ .form.NtfyAPIToken }}" spellcheck="false">
|
||||
|
||||
<label for="form-ntfy-username">{{ t "form.integration.ntfy_username" }}</label>
|
||||
<input type="text" name="ntfy_username" id="form-ntfy-username" value="{{ .form.NtfyUsername }}" spellcheck="false">
|
||||
|
||||
<label for="form-ntfy-password">{{ t "form.integration.ntfy_password" }}</label>
|
||||
<input type="text" name="ntfy_password" id="form-ntfy-password" value="{{ .form.NtfyPassword }}" spellcheck="false">
|
||||
|
||||
<label for="form-ntfy-icon-url">{{ t "form.integration.ntfy_icon_url" }}</label>
|
||||
<input type="url" name="ntfy_icon_url" id="form-ntfy-icon-url" value="{{ .form.NtfyIconURL }}" spellcheck="false">
|
||||
|
||||
<div class="buttons">
|
||||
<button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
|
||||
<details {{ if .form.NunuxKeeperEnabled }}open{{ end }}>
|
||||
<summary>Nunux Keeper</summary>
|
||||
<div class="form-section">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue