aboutsummaryrefslogtreecommitdiff
path: root/internal/ui/form/integration.go
diff options
context:
space:
mode:
authorGravatar MSTCL <33115327+mstcl@users.noreply.github.com> 2024-02-22 03:57:34 +0000
committerGravatar GitHub <noreply@github.com> 2024-02-21 19:57:34 -0800
commitcfdb890eae2b1090e0b43090e4e4d3007e0b94d8 (patch)
treecfc0af10612913e2e8fcba902687cc4ae2f40f98 /internal/ui/form/integration.go
parent2f8d3a7958c5b3aa952824a75351e7deb64b3471 (diff)
downloadv2-cfdb890eae2b1090e0b43090e4e4d3007e0b94d8.tar.gz
v2-cfdb890eae2b1090e0b43090e4e4d3007e0b94d8.tar.zst
v2-cfdb890eae2b1090e0b43090e4e4d3007e0b94d8.zip
Add Readeck integration
Diffstat (limited to 'internal/ui/form/integration.go')
-rw-r--r--internal/ui/form/integration.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/internal/ui/form/integration.go b/internal/ui/form/integration.go
index fffd76fd..7bc5cf91 100644
--- a/internal/ui/form/integration.go
+++ b/internal/ui/form/integration.go
@@ -76,6 +76,11 @@ type IntegrationForm struct {
AppriseEnabled bool
AppriseURL string
AppriseServicesURL string
+ ReadeckEnabled bool
+ ReadeckURL string
+ ReadeckAPIKey string
+ ReadeckLabels string
+ ReadeckOnlyURL bool
ShioriEnabled bool
ShioriURL string
ShioriUsername string
@@ -157,6 +162,11 @@ func (i IntegrationForm) Merge(integration *model.Integration) {
integration.AppriseEnabled = i.AppriseEnabled
integration.AppriseServicesURL = i.AppriseServicesURL
integration.AppriseURL = i.AppriseURL
+ integration.ReadeckEnabled = i.ReadeckEnabled
+ integration.ReadeckURL = i.ReadeckURL
+ integration.ReadeckAPIKey = i.ReadeckAPIKey
+ integration.ReadeckLabels = i.ReadeckLabels
+ integration.ReadeckOnlyURL = i.ReadeckOnlyURL
integration.ShioriEnabled = i.ShioriEnabled
integration.ShioriURL = i.ShioriURL
integration.ShioriUsername = i.ShioriUsername
@@ -240,6 +250,11 @@ func NewIntegrationForm(r *http.Request) *IntegrationForm {
AppriseEnabled: r.FormValue("apprise_enabled") == "1",
AppriseURL: r.FormValue("apprise_url"),
AppriseServicesURL: r.FormValue("apprise_services_url"),
+ ReadeckEnabled: r.FormValue("readeck_enabled") == "1",
+ ReadeckURL: r.FormValue("readeck_url"),
+ ReadeckAPIKey: r.FormValue("readeck_api_key"),
+ ReadeckLabels: r.FormValue("readeck_labels"),
+ ReadeckOnlyURL: r.FormValue("readeck_only_url") == "1",
ShioriEnabled: r.FormValue("shiori_enabled") == "1",
ShioriURL: r.FormValue("shiori_url"),
ShioriUsername: r.FormValue("shiori_username"),