2018-09-22 03:53:29 +02:00
{{ define "title"}}{{ t "page.integrations.title" }}{{ end }}
2017-11-22 04:37:47 +01:00
{{ define "content"}}
< section class = "page-header" >
2018-09-22 03:53:29 +02:00
< h1 > {{ t "page.integrations.title" }}< / h1 >
2019-11-18 02:26:47 +01:00
{{ template "settings_menu" dict "user" .user }}
2017-11-22 04:37:47 +01:00
< / section >
2017-12-03 04:32:14 +01:00
< form method = "post" autocomplete = "off" action = "{{ route " updateIntegration " } } " >
< input type = "hidden" name = "csrf" value = "{{ .csrf }}" >
{{ if .errorMessage }}
< div class = "alert alert-error" > {{ t .errorMessage }}< / div >
{{ end }}
2017-12-04 02:44:27 +01:00
< h3 > Fever< / h3 >
< div class = "form-section" >
< label >
2018-09-22 03:53:29 +02:00
< input type = "checkbox" name = "fever_enabled" value = "1" { { if . form . FeverEnabled } } checked { { end } } > {{ t "form.integration.fever_activate" }}
2017-12-04 02:44:27 +01:00
< / label >
2018-09-22 03:53:29 +02:00
< label for = "form-fever-username" > {{ t "form.integration.fever_username" }}< / label >
2021-01-05 05:29:12 +01:00
< input type = "text" name = "fever_username" id = "form-fever-username" value = "{{ .form.FeverUsername }}" autocomplete = "username" spellcheck = "false" >
2017-12-04 02:44:27 +01:00
2018-09-22 03:53:29 +02:00
< label for = "form-fever-password" > {{ t "form.integration.fever_password" }}< / label >
2018-07-01 03:05:51 +02:00
< input type = "password" name = "fever_password" id = "form-fever-password" value = "{{ .form.FeverPassword }}" autocomplete = "new-password" >
2018-02-01 06:57:20 +01:00
2018-09-22 03:53:29 +02:00
< p > {{ t "form.integration.fever_endpoint" }} < strong > {{ rootURL }}{{ route "feverEndpoint" }}< / strong > < / p >
2020-09-13 07:03:05 +02:00
< div class = "buttons" >
< button type = "submit" class = "button button-primary" data-label-loading = "{{ t " form . submit . saving " } } " > {{ t "action.update" }}< / button >
< / div >
2017-12-04 02:44:27 +01:00
< / div >
2022-01-03 04:45:12 +01:00
< h3 > Google Reader< / h3 >
< div class = "form-section" >
< label >
< input type = "checkbox" name = "googlereader_enabled" value = "1" { { if . form . GoogleReaderEnabled } } checked { { end } } > {{ t "form.integration.googlereader_activate" }}
< / label >
< label for = "form-googlereader-username" > {{ t "form.integration.googlereader_username" }}< / label >
< input type = "text" name = "googlereader_username" id = "form-googlereader-username" value = "{{ .form.GoogleReaderUsername }}" autocomplete = "username" spellcheck = "false" >
< label for = "form-googlereader-password" > {{ t "form.integration.googlereader_password" }}< / label >
< input type = "password" name = "googlereader_password" id = "form-googlereader-password" value = "{{ .form.GoogleReaderPassword }}" autocomplete = "new-password" >
< p > {{ t "form.integration.googlereader_endpoint" }} < strong > {{ rootURL }}{{ route "login" }}< / strong > < / p >
< div class = "buttons" >
< button type = "submit" class = "button button-primary" data-label-loading = "{{ t " form . submit . saving " } } " > {{ t "action.update" }}< / button >
< / div >
< / div >
2017-12-04 02:44:27 +01:00
2022-01-03 04:45:12 +01:00
<!-- -->
2017-12-03 04:32:14 +01:00
< h3 > Pinboard< / h3 >
2017-12-03 06:12:03 +01:00
< div class = "form-section" >
< label >
2018-09-22 03:53:29 +02:00
< input type = "checkbox" name = "pinboard_enabled" value = "1" { { if . form . PinboardEnabled } } checked { { end } } > {{ t "form.integration.pinboard_activate" }}
2017-12-03 06:12:03 +01:00
< / label >
2017-12-03 04:32:14 +01:00
2018-09-22 03:53:29 +02:00
< label for = "form-pinboard-token" > {{ t "form.integration.pinboard_token" }}< / label >
2018-07-01 03:05:51 +02:00
< input type = "password" name = "pinboard_token" id = "form-pinboard-token" value = "{{ .form.PinboardToken }}" autocomplete = "new-password" >
2017-12-03 04:32:14 +01:00
2018-09-22 03:53:29 +02:00
< label for = "form-pinboard-tags" > {{ t "form.integration.pinboard_tags" }}< / label >
2021-01-05 05:29:12 +01:00
< input type = "text" name = "pinboard_tags" id = "form-pinboard-tags" value = "{{ .form.PinboardTags }}" spellcheck = "false" >
2017-12-03 04:32:14 +01:00
2017-12-03 06:12:03 +01:00
< label >
2018-09-22 03:53:29 +02:00
< input type = "checkbox" name = "pinboard_mark_as_unread" value = "1" { { if . form . PinboardMarkAsUnread } } checked { { end } } > {{ t "form.integration.pinboard_bookmark" }}
2017-12-03 06:12:03 +01:00
< / label >
2020-09-13 07:03:05 +02:00
< div class = "buttons" >
< button type = "submit" class = "button button-primary" data-label-loading = "{{ t " form . submit . saving " } } " > {{ t "action.update" }}< / button >
< / div >
2017-12-03 06:12:03 +01:00
< / div >
< h3 > Instapaper< / h3 >
< div class = "form-section" >
< label >
2018-09-22 03:53:29 +02:00
< input type = "checkbox" name = "instapaper_enabled" value = "1" { { if . form . InstapaperEnabled } } checked { { end } } > {{ t "form.integration.instapaper_activate" }}
2017-12-03 06:12:03 +01:00
< / label >
2018-09-22 03:53:29 +02:00
< label for = "form-instapaper-username" > {{ t "form.integration.instapaper_username" }}< / label >
2021-01-05 05:29:12 +01:00
< input type = "text" name = "instapaper_username" id = "form-instapaper-username" value = "{{ .form.InstapaperUsername }}" spellcheck = "false" >
2017-12-03 06:12:03 +01:00
2018-09-22 03:53:29 +02:00
< label for = "form-instapaper-password" > {{ t "form.integration.instapaper_password" }}< / label >
2018-07-01 03:05:51 +02:00
< input type = "password" name = "instapaper_password" id = "form-instapaper-password" value = "{{ .form.InstapaperPassword }}" autocomplete = "new-password" >
2020-09-13 07:03:05 +02:00
< div class = "buttons" >
< button type = "submit" class = "button button-primary" data-label-loading = "{{ t " form . submit . saving " } } " > {{ t "action.update" }}< / button >
< / div >
2017-12-03 06:12:03 +01:00
< / div >
2017-12-03 04:32:14 +01:00
2018-05-21 00:29:14 +02:00
< h3 > Pocket< / h3 >
< div class = "form-section" >
< label >
2018-09-22 03:53:29 +02:00
< input type = "checkbox" name = "pocket_enabled" value = "1" { { if . form . PocketEnabled } } checked { { end } } > {{ t "form.integration.pocket_activate" }}
2018-05-21 00:29:14 +02:00
< / label >
2018-05-21 21:19:56 +02:00
{{ if not .hasPocketConsumerKeyConfigured }}
2018-09-22 03:53:29 +02:00
< label for = "form-pocket-consumer-key" > {{ t "form.integration.pocket_consumer_key" }}< / label >
2021-01-05 05:29:12 +01:00
< input type = "text" name = "pocket_consumer_key" id = "form-pocket-consumer-key" value = "{{ .form.PocketConsumerKey }}" spellcheck = "false" >
2018-05-21 21:19:56 +02:00
{{ end }}
2018-05-21 00:29:14 +02:00
2018-09-22 03:53:29 +02:00
< label for = "form-pocket-access-token" > {{ t "form.integration.pocket_access_token" }}< / label >
2018-07-01 03:05:51 +02:00
< input type = "password" name = "pocket_access_token" id = "form-pocket-access-token" value = "{{ .form.PocketAccessToken }}" autocomplete = "new-password" >
2018-05-21 00:29:14 +02:00
{{ if not .form.PocketAccessToken }}
2018-09-22 03:53:29 +02:00
< p > < a href = "{{ route " pocketAuthorize " } } " > {{ t "form.integration.pocket_connect_link" }}< / a > < / p >
2018-05-21 00:29:14 +02:00
{{ end }}
2020-09-13 07:03:05 +02:00
< div class = "buttons" >
< button type = "submit" class = "button button-primary" data-label-loading = "{{ t " form . submit . saving " } } " > {{ t "action.update" }}< / button >
< / div >
2018-05-21 00:29:14 +02:00
< / div >
2017-12-19 05:52:46 +01:00
< h3 > Wallabag< / h3 >
< div class = "form-section" >
< label >
2018-09-22 03:53:29 +02:00
< input type = "checkbox" name = "wallabag_enabled" value = "1" { { if . form . WallabagEnabled } } checked { { end } } > {{ t "form.integration.wallabag_activate" }}
2017-12-19 05:52:46 +01:00
< / label >
2018-09-22 03:53:29 +02:00
< label for = "form-wallabag-url" > {{ t "form.integration.wallabag_endpoint" }}< / label >
2021-01-05 05:29:12 +01:00
< input type = "url" name = "wallabag_url" id = "form-wallabag-url" value = "{{ .form.WallabagURL }}" placeholder = "http://v2.wallabag.org/" spellcheck = "false" >
2017-12-19 05:52:46 +01:00
2018-09-22 03:53:29 +02:00
< label for = "form-wallabag-client-id" > {{ t "form.integration.wallabag_client_id" }}< / label >
2021-01-05 05:29:12 +01:00
< input type = "text" name = "wallabag_client_id" id = "form-wallabag-client-id" value = "{{ .form.WallabagClientID }}" spellcheck = "false" >
2017-12-19 05:52:46 +01:00
2018-09-22 03:53:29 +02:00
< label for = "form-wallabag-client-secret" > {{ t "form.integration.wallabag_client_secret" }}< / label >
2018-07-01 03:05:51 +02:00
< input type = "password" name = "wallabag_client_secret" id = "form-wallabag-client-secret" value = "{{ .form.WallabagClientSecret }}" autocomplete = "new-password" >
2017-12-19 05:52:46 +01:00
2018-09-22 03:53:29 +02:00
< label for = "form-wallabag-username" > {{ t "form.integration.wallabag_username" }}< / label >
2021-01-05 05:29:12 +01:00
< input type = "text" name = "wallabag_username" id = "form-wallabag-username" value = "{{ .form.WallabagUsername }}" spellcheck = "false" >
2017-12-19 05:52:46 +01:00
2018-09-22 03:53:29 +02:00
< label for = "form-wallabag-password" > {{ t "form.integration.wallabag_password" }}< / label >
2018-07-01 03:05:51 +02:00
< input type = "password" name = "wallabag_password" id = "form-wallabag-password" value = "{{ .form.WallabagPassword }}" autocomplete = "new-password" >
2020-09-13 07:03:05 +02:00
< div class = "buttons" >
< button type = "submit" class = "button button-primary" data-label-loading = "{{ t " form . submit . saving " } } " > {{ t "action.update" }}< / button >
< / div >
2017-12-19 05:52:46 +01:00
< / div >
2018-05-20 22:31:56 +02:00
2018-02-25 20:49:08 +01:00
< h3 > Nunux Keeper< / h3 >
< div class = "form-section" >
< label >
2018-09-22 03:53:29 +02:00
< input type = "checkbox" name = "nunux_keeper_enabled" value = "1" { { if . form . NunuxKeeperEnabled } } checked { { end } } > {{ t "form.integration.nunux_keeper_activate" }}
2018-02-25 20:49:08 +01:00
< / label >
2018-09-22 03:53:29 +02:00
< label for = "form-nunux-keeper-url" > {{ t "form.integration.nunux_keeper_endpoint" }}< / label >
2021-01-05 05:29:12 +01:00
< input type = "url" name = "nunux_keeper_url" id = "form-nunux-keeper-url" value = "{{ .form.NunuxKeeperURL }}" placeholder = "https://api.nunux.org/keeper" spellcheck = "false" >
2018-02-25 20:49:08 +01:00
2018-09-22 03:53:29 +02:00
< label for = "form-nunux-keeper-api-key" > {{ t "form.integration.nunux_keeper_api_key" }}< / label >
2021-01-05 05:29:12 +01:00
< input type = "text" name = "nunux_keeper_api_key" id = "form-nunux-keeper-api-key" value = "{{ .form.NunuxKeeperAPIKey }}" spellcheck = "false" >
2020-09-13 07:03:05 +02:00
< div class = "buttons" >
< button type = "submit" class = "button button-primary" data-label-loading = "{{ t " form . submit . saving " } } " > {{ t "action.update" }}< / button >
< / div >
2018-02-25 20:49:08 +01:00
< / div >
2017-12-19 05:52:46 +01:00
2022-04-21 04:44:47 +02:00
< h3 > Espial< / h3 >
< div class = "form-section" >
< label >
< input type = "checkbox" name = "espial_enabled" value = "1" { { if . form . EspialEnabled } } checked { { end } } > {{ t "form.integration.espial_activate" }}
< / label >
< label for = "form-espial-url" > {{ t "form.integration.espial_endpoint" }}< / label >
< input type = "url" name = "espial_url" id = "form-espial-url" value = "{{ .form.EspialURL }}" placeholder = "https://esp.ae8.org" spellcheck = "false" >
< label for = "form-espial-api-key" > {{ t "form.integration.espial_api_key" }}< / label >
< input type = "text" name = "espial_api_key" id = "form-espial-api-key" value = "{{ .form.EspialAPIKey }}" spellcheck = "false" >
< label for = "form-espial-tags" > {{ t "form.integration.espial_tags" }}< / label >
< input type = "text" name = "espial_tags" id = "form-espial-tags" value = "{{ .form.EspialTags }}" 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 >
2021-09-08 05:04:22 +02:00
< h3 > Telegram Bot< / h3 >
< div class = "form-section" >
< label >
< input type = "checkbox" name = "telegram_bot_enabled" value = "1" { { if . form . TelegramBotEnabled } } checked { { end } } > {{ t "form.integration.telegram_bot_activate" }}
< / label >
< label for = "form-telegram-bot-token" > {{ t "form.integration.telegram_bot_token" }}< / label >
< input type = "text" name = "telegram_bot_token" id = "form-telegram-bot-token" value = "{{ .form.TelegramBotToken }}" placeholder = "bot123456:Abcdefg" spellcheck = "false" >
< label for = "form-telegram-chat-id" > {{ t "form.integration.telegram_chat_id" }}< / label >
< input type = "text" name = "telegram_bot_chat_id" id = "form-telegram-chat-id" value = "{{ .form.TelegramBotChatID }}" 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 >
2017-12-03 04:32:14 +01:00
< / form >
2018-09-22 03:53:29 +02:00
< h3 > {{ t "page.integration.bookmarklet" }}< / h3 >
2017-11-22 04:37:47 +01:00
< div class = "panel" >
2018-09-22 03:53:29 +02:00
< p > {{ t "page.integration.bookmarklet.help" }}< / p >
2017-11-22 04:37:47 +01:00
< div class = "bookmarklet" >
2018-09-22 03:53:29 +02:00
< a href = "javascript:location.href='{{ rootURL }}{{ route " bookmarklet " } } ? uri = '+encodeURIComponent(window.location.href)" > {{ t "page.integration.bookmarklet.name" }}< / a >
2017-11-22 04:37:47 +01:00
< / div >
2018-09-22 03:53:29 +02:00
< p > {{ t "page.integration.bookmarklet.instructions" }}< / p >
2017-11-22 04:37:47 +01:00
< / div >
{{ end }}