From 21d9f83d91c5fcd77cfce94128ab8d66f5eb15b9 Mon Sep 17 00:00:00 2001 From: David Newhall II Date: Sat, 3 Aug 2024 19:23:13 -0700 Subject: [PATCH 1/3] shorten a bunch of template lines --- pkg/bindata/templates/downloaders/deluge.html | 58 +++++++++---- pkg/bindata/templates/downloaders/nzbget.html | 63 ++++++++++---- pkg/bindata/templates/downloaders/qbit.html | 62 ++++++++++---- .../templates/downloaders/rtorrent.html | 61 +++++++++---- .../templates/downloaders/sabnzbd.html | 58 +++++++++---- .../templates/downloaders/transmission.html | 60 +++++++++---- pkg/bindata/templates/filewatcher.html | 57 ++++++++++--- .../templates/includes/filetablelist.html | 3 +- pkg/bindata/templates/index.html | 3 +- pkg/bindata/templates/logfiles.html | 4 +- pkg/bindata/templates/media/plex.html | 25 ++++-- pkg/bindata/templates/profile.html | 15 +++- pkg/bindata/templates/services.html | 64 ++++++++++---- pkg/bindata/templates/snapshot/nvidia.html | 9 +- pkg/bindata/templates/starr/lidarr.html | 77 ++++++++++++----- pkg/bindata/templates/starr/prowlarr.html | 74 +++++++++++----- pkg/bindata/templates/starr/radarr.html | 70 +++++++++++---- pkg/bindata/templates/starr/readarr.html | 70 +++++++++++---- pkg/bindata/templates/starr/sonarr.html | 70 +++++++++++---- pkg/bindata/templates/triggers.html | 85 ++++++++----------- 20 files changed, 704 insertions(+), 284 deletions(-) diff --git a/pkg/bindata/templates/downloaders/deluge.html b/pkg/bindata/templates/downloaders/deluge.html index fd531e871..fa1ef1df2 100644 --- a/pkg/bindata/templates/downloaders/deluge.html +++ b/pkg/bindata/templates/downloaders/deluge.html @@ -4,11 +4,16 @@

Deluge

- +
- +

Deluge

@@ -24,13 +29,16 @@

Deluge

Actions - + Name @@ -43,7 +51,10 @@

Deluge

Interval - + Timeout @@ -51,13 +62,18 @@

Deluge

{{- range $index, $app := .Config.Apps.Deluge}} - +
- + - +
@@ -73,7 +89,9 @@

Deluge

{{- end}} - + @@ -91,9 +109,12 @@

Deluge

{{- end}} - +
- +
@@ -112,8 +133,12 @@

Deluge

{{- end}} - -
+ +
+ +
@@ -131,7 +156,9 @@

Deluge

{{- end}} - {{template "includes/intervaloptions.html" $app.Interval}} @@ -151,7 +178,8 @@

Deluge

{{- end}} - {{- range $i := one259 }} diff --git a/pkg/bindata/templates/downloaders/nzbget.html b/pkg/bindata/templates/downloaders/nzbget.html index 67e5d64cf..639c82d3c 100644 --- a/pkg/bindata/templates/downloaders/nzbget.html +++ b/pkg/bindata/templates/downloaders/nzbget.html @@ -4,11 +4,17 @@

NZBGet

- +
- +

NZBGet

@@ -24,13 +30,15 @@

NZBGet

Actions - + Name @@ -44,7 +52,10 @@

NZBGet

Interval - + Timeout @@ -52,13 +63,18 @@

NZBGet

{{- range $index, $app := .Config.Apps.NZBGet}} - +
- + - +
@@ -74,7 +90,9 @@

NZBGet

{{- end}} - + @@ -92,9 +110,13 @@

NZBGet

{{- end}} - +
- +
@@ -113,7 +135,9 @@

NZBGet

{{- end}} - + @@ -131,8 +155,12 @@

NZBGet

{{- end}} - -
+ +
+ +
@@ -150,7 +178,9 @@

NZBGet

{{- end}} - {{template "includes/intervaloptions.html" $app.Interval}} @@ -170,7 +200,8 @@

NZBGet

{{- end}} - {{- range $i := one259 }} diff --git a/pkg/bindata/templates/downloaders/qbit.html b/pkg/bindata/templates/downloaders/qbit.html index 0a81443e1..450eee228 100644 --- a/pkg/bindata/templates/downloaders/qbit.html +++ b/pkg/bindata/templates/downloaders/qbit.html @@ -4,11 +4,16 @@

qBittorrent

- +
- +

qBittorrent

@@ -24,13 +29,15 @@

qBittorrent

Actions - + Name @@ -44,7 +51,10 @@

qBittorrent

Interval - + Timeout @@ -52,13 +62,18 @@

qBittorrent

{{- range $index, $app := .Config.Apps.Qbit}} - +
- + - +
@@ -74,7 +89,9 @@

qBittorrent

{{- end}} - + @@ -92,9 +109,13 @@

qBittorrent

{{- end}} - +
- +
@@ -113,7 +134,9 @@

qBittorrent

{{- end}} - + @@ -131,8 +154,12 @@

qBittorrent

{{- end}} - -
+ +
+ +
@@ -150,7 +177,9 @@

qBittorrent

{{- end}} - {{template "includes/intervaloptions.html" $app.Interval}} @@ -170,7 +199,8 @@

qBittorrent

{{- end}} - {{- range $i := one259 }} diff --git a/pkg/bindata/templates/downloaders/rtorrent.html b/pkg/bindata/templates/downloaders/rtorrent.html index b1d72e002..21ee592d3 100644 --- a/pkg/bindata/templates/downloaders/rtorrent.html +++ b/pkg/bindata/templates/downloaders/rtorrent.html @@ -4,11 +4,16 @@

rTorrent

- +
- +

rTorrent

@@ -24,13 +29,15 @@

rTorrent

Actions - + Name @@ -44,7 +51,10 @@

rTorrent

Interval - + Timeout @@ -52,13 +62,18 @@

rTorrent

{{- range $index, $app := .Config.Apps.Rtorrent}} - +
- + - +
@@ -74,7 +89,9 @@

rTorrent

{{- end}} - + @@ -92,9 +109,12 @@

rTorrent

{{- end}} - +
- +
@@ -113,7 +133,9 @@

rTorrent

{{- end}} - + @@ -131,8 +153,12 @@

rTorrent

{{- end}} - -
+ +
+ +
@@ -150,7 +176,9 @@

rTorrent

{{- end}} - {{template "includes/intervaloptions.html" $app.Interval}} @@ -170,7 +198,8 @@

rTorrent

{{- end}} - {{- range $i := one259 }} diff --git a/pkg/bindata/templates/downloaders/sabnzbd.html b/pkg/bindata/templates/downloaders/sabnzbd.html index 23e2fa8a5..9f92f9281 100644 --- a/pkg/bindata/templates/downloaders/sabnzbd.html +++ b/pkg/bindata/templates/downloaders/sabnzbd.html @@ -4,11 +4,16 @@

SabNZB

- +
- +

SabNZB

@@ -24,13 +29,16 @@

SabNZB

Actions - + Name @@ -43,7 +51,10 @@

SabNZB

Interval - + Timeout @@ -51,13 +62,18 @@

SabNZB

{{- range $index, $app := .Config.Apps.SabNZB}} - +
- + - +
@@ -73,7 +89,9 @@

SabNZB

{{- end}} - + . @@ -91,9 +109,12 @@

SabNZB

{{- end}} - +
- +
@@ -112,8 +133,12 @@

SabNZB

{{- end}} - -
+ +
+ +
@@ -131,7 +156,9 @@

SabNZB

{{- end}} - {{template "includes/intervaloptions.html" $app.Interval}} @@ -151,7 +178,8 @@

SabNZB

{{- end}} - {{- range $i := one259 }} diff --git a/pkg/bindata/templates/downloaders/transmission.html b/pkg/bindata/templates/downloaders/transmission.html index 183a8fac9..381e5c048 100644 --- a/pkg/bindata/templates/downloaders/transmission.html +++ b/pkg/bindata/templates/downloaders/transmission.html @@ -4,11 +4,16 @@

Transmission

- +
- +

Transmission

@@ -24,7 +29,9 @@

Transmission

Actions - + Name @@ -45,7 +52,10 @@

Transmission

Interval - + Timeout @@ -53,13 +63,18 @@

Transmission

{{- range $index, $app := .Config.Apps.Transmission}} - +
- + - +
@@ -75,7 +90,9 @@

Transmission

{{- end}} - + @@ -93,9 +110,13 @@

Transmission

{{- end}} - +
- +
@@ -114,7 +135,9 @@

Transmission

{{- end}} - + @@ -132,8 +155,12 @@

Transmission

{{- end}} - -
+ +
+ +
@@ -151,7 +178,9 @@

Transmission

{{- end}} - {{template "includes/intervaloptions.html" $app.Interval}} @@ -171,7 +200,8 @@

Transmission

{{- end}} - {{- range $i := one259 }} diff --git a/pkg/bindata/templates/filewatcher.html b/pkg/bindata/templates/filewatcher.html index 3cfd6386e..82a577651 100644 --- a/pkg/bindata/templates/filewatcher.html +++ b/pkg/bindata/templates/filewatcher.html @@ -67,7 +67,10 @@

WatchFiles

FIFO Pipe - + Must Exist @@ -80,14 +83,21 @@

WatchFiles

{{- range $index, $app := .Config.WatchFiles}} - +
- + - - + +
@@ -103,10 +113,12 @@

WatchFiles

{{- end}} - -
+
+ +
@@ -164,7 +176,9 @@

WatchFiles

{{- end}} - @@ -185,7 +199,9 @@

WatchFiles

{{- end}} - @@ -206,7 +222,9 @@

WatchFiles

{{- end}} - @@ -227,7 +245,9 @@

WatchFiles

{{- end}} - @@ -244,9 +264,18 @@

WatchFiles

Regular Expression Tester

- - - + + + + + + + + + + + +
Expression
Test String
Expression
Test String
{{- /* end of filewatcher (leave this comment) */ -}} diff --git a/pkg/bindata/templates/includes/filetablelist.html b/pkg/bindata/templates/includes/filetablelist.html index 19dcadbbb..9c9d82912 100644 --- a/pkg/bindata/templates/includes/filetablelist.html +++ b/pkg/bindata/templates/includes/filetablelist.html @@ -1,6 +1,7 @@ {{- /* This is imported by configfiles and logfiles. */}} {{- range $file := . }} - + diff --git a/pkg/bindata/templates/index.html b/pkg/bindata/templates/index.html index 3e2ed9111..03b2cb43f 100644 --- a/pkg/bindata/templates/index.html +++ b/pkg/bindata/templates/index.html @@ -42,7 +42,8 @@

{{.HostInfo.Hostname}}
-

{{- end }} diff --git a/pkg/bindata/templates/media/plex.html b/pkg/bindata/templates/media/plex.html index 2e3e8195d..dc905d43d 100644 --- a/pkg/bindata/templates/media/plex.html +++ b/pkg/bindata/templates/media/plex.html @@ -24,7 +24,8 @@

Plex

@@ -45,7 +49,9 @@

Plex

{{- range $index, $svc := .Config.Service}} - + @@ -123,7 +133,9 @@

Check Configuration

{{- end}} - @@ -145,14 +157,18 @@

Check Configuration

{{- end}} - + @@ -24,7 +29,8 @@

Lidarr

Actions @@ -43,12 +49,16 @@

Lidarr

API Key @@ -58,7 +68,8 @@

Lidarr

Interval @@ -76,13 +87,18 @@

Lidarr

{{- range $index, $app := .Config.Apps.Lidarr}} - + @@ -24,7 +29,8 @@

Prowlarr

Actions @@ -43,12 +49,16 @@

Prowlarr

API Key @@ -71,13 +81,18 @@

Prowlarr

{{- range $index, $app := .Config.Apps.Prowlarr}} - + @@ -43,12 +47,16 @@

Radarr

API Key @@ -76,13 +84,18 @@

Radarr

{{- range $index, $app := .Config.Apps.Radarr}} - + @@ -43,12 +47,16 @@

Readarr

API Key @@ -76,13 +84,18 @@

Readarr

{{- range $index, $app := .Config.Apps.Readarr}} - + @@ -44,12 +48,16 @@

Sonarr

API Key @@ -77,13 +85,18 @@

Sonarr

{{- range $index, $app := .Config.Apps.Sonarr}} - + - + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + {{- if .Actions.CronTimer.List }} From 30a9bfeea07558f81335ca78f3f36826a7ed5909 Mon Sep 17 00:00:00 2001 From: David Newhall II Date: Sat, 3 Aug 2024 19:25:36 -0700 Subject: [PATCH 2/3] fix a couple more --- pkg/bindata/templates/media/tautulli.html | 26 ++++++++++---- pkg/bindata/templates/snapshot/mysql.html | 42 +++++++++++++++++------ 2 files changed, 51 insertions(+), 17 deletions(-) diff --git a/pkg/bindata/templates/media/tautulli.html b/pkg/bindata/templates/media/tautulli.html index 0f1bced67..27731530a 100644 --- a/pkg/bindata/templates/media/tautulli.html +++ b/pkg/bindata/templates/media/tautulli.html @@ -30,7 +30,10 @@

Tautulli

Interval - + Timeout @@ -40,7 +43,9 @@

Tautulli

- +
@@ -76,9 +81,12 @@

Tautulli

{{- end}} - +
- +
@@ -100,7 +108,9 @@

Tautulli

-
+
+ +
@@ -118,7 +128,8 @@

Tautulli

{{- end}} - {{template "includes/intervaloptions.html" $.Config.Apps.Tautulli.Interval}} @@ -138,7 +149,8 @@

Tautulli

{{- end}} - {{- range $i := one259 }} diff --git a/pkg/bindata/templates/snapshot/mysql.html b/pkg/bindata/templates/snapshot/mysql.html index 4fe43d6d0..e3db270ab 100644 --- a/pkg/bindata/templates/snapshot/mysql.html +++ b/pkg/bindata/templates/snapshot/mysql.html @@ -12,11 +12,17 @@

MySQL Notes

MySQL

- +
- +

MySQL

@@ -32,7 +38,9 @@

MySQL

Actions - + Name @@ -57,7 +65,10 @@

MySQL

Interval - + Timeout @@ -65,13 +76,18 @@

MySQL

{{- range $index, $app := .Config.Snapshot.MySQL}} - +
- + - +
@@ -150,7 +166,9 @@

MySQL

-
+
+ +
@@ -168,7 +186,9 @@

MySQL

{{- end}} - {{template "includes/intervaloptions.html" $app.Interval}} @@ -188,7 +208,9 @@

MySQL

{{- end}} - {{- range $i := one259 }} From b027994fa98a1e2dc05cc404209392685e2bcfcd Mon Sep 17 00:00:00 2001 From: David Newhall II Date: Sat, 3 Aug 2024 19:39:44 -0700 Subject: [PATCH 3/3] typo --- pkg/bindata/templates/downloaders/sabnzbd.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/bindata/templates/downloaders/sabnzbd.html b/pkg/bindata/templates/downloaders/sabnzbd.html index 9f92f9281..c060f2d83 100644 --- a/pkg/bindata/templates/downloaders/sabnzbd.html +++ b/pkg/bindata/templates/downloaders/sabnzbd.html @@ -91,7 +91,7 @@

SabNZB

{{- end}} . + data-original="{{$app.Name}}" value="{{$app.Name}}">.