integrations.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  1. {{ define "title"}}{{ t "page.integrations.title" }}{{ end }}
  2. {{ define "content"}}
  3. <section class="page-header">
  4. <h1>{{ t "page.integrations.title" }}</h1>
  5. {{ template "settings_menu" dict "user" .user }}
  6. </section>
  7. <form method="post" autocomplete="off" action="{{ route "updateIntegration" }}">
  8. <input type="hidden" name="csrf" value="{{ .csrf }}">
  9. {{ if .errorMessage }}
  10. <div class="alert alert-error">{{ t .errorMessage }}</div>
  11. {{ end }}
  12. <h3>Fever</h3>
  13. <div class="form-section">
  14. <label>
  15. <input type="checkbox" name="fever_enabled" value="1" {{ if .form.FeverEnabled }}checked{{ end }}> {{ t "form.integration.fever_activate" }}
  16. </label>
  17. <label for="form-fever-username">{{ t "form.integration.fever_username" }}</label>
  18. <input type="text" name="fever_username" id="form-fever-username" value="{{ .form.FeverUsername }}" autocomplete="username" spellcheck="false">
  19. <label for="form-fever-password">{{ t "form.integration.fever_password" }}</label>
  20. <input type="password" name="fever_password" id="form-fever-password" value="{{ .form.FeverPassword }}" autocomplete="new-password">
  21. <p>{{ t "form.integration.fever_endpoint" }} <strong>{{ rootURL }}{{ route "feverEndpoint" }}</strong></p>
  22. <div class="buttons">
  23. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  24. </div>
  25. </div>
  26. <h3>Google Reader</h3>
  27. <div class="form-section">
  28. <label>
  29. <input type="checkbox" name="googlereader_enabled" value="1" {{ if .form.GoogleReaderEnabled }}checked{{ end }}> {{ t "form.integration.googlereader_activate" }}
  30. </label>
  31. <label for="form-googlereader-username">{{ t "form.integration.googlereader_username" }}</label>
  32. <input type="text" name="googlereader_username" id="form-googlereader-username" value="{{ .form.GoogleReaderUsername }}" autocomplete="username" spellcheck="false">
  33. <label for="form-googlereader-password">{{ t "form.integration.googlereader_password" }}</label>
  34. <input type="password" name="googlereader_password" id="form-googlereader-password" value="{{ .form.GoogleReaderPassword }}" autocomplete="new-password">
  35. <p>{{ t "form.integration.googlereader_endpoint" }} <strong>{{ rootURL }}{{ route "login" }}</strong></p>
  36. <div class="buttons">
  37. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  38. </div>
  39. </div>
  40. <!-- -->
  41. <h3>Pinboard</h3>
  42. <div class="form-section">
  43. <label>
  44. <input type="checkbox" name="pinboard_enabled" value="1" {{ if .form.PinboardEnabled }}checked{{ end }}> {{ t "form.integration.pinboard_activate" }}
  45. </label>
  46. <label for="form-pinboard-token">{{ t "form.integration.pinboard_token" }}</label>
  47. <input type="password" name="pinboard_token" id="form-pinboard-token" value="{{ .form.PinboardToken }}" autocomplete="new-password">
  48. <label for="form-pinboard-tags">{{ t "form.integration.pinboard_tags" }}</label>
  49. <input type="text" name="pinboard_tags" id="form-pinboard-tags" value="{{ .form.PinboardTags }}" spellcheck="false">
  50. <label>
  51. <input type="checkbox" name="pinboard_mark_as_unread" value="1" {{ if .form.PinboardMarkAsUnread }}checked{{ end }}> {{ t "form.integration.pinboard_bookmark" }}
  52. </label>
  53. <div class="buttons">
  54. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  55. </div>
  56. </div>
  57. <h3>Instapaper</h3>
  58. <div class="form-section">
  59. <label>
  60. <input type="checkbox" name="instapaper_enabled" value="1" {{ if .form.InstapaperEnabled }}checked{{ end }}> {{ t "form.integration.instapaper_activate" }}
  61. </label>
  62. <label for="form-instapaper-username">{{ t "form.integration.instapaper_username" }}</label>
  63. <input type="text" name="instapaper_username" id="form-instapaper-username" value="{{ .form.InstapaperUsername }}" spellcheck="false">
  64. <label for="form-instapaper-password">{{ t "form.integration.instapaper_password" }}</label>
  65. <input type="password" name="instapaper_password" id="form-instapaper-password" value="{{ .form.InstapaperPassword }}" autocomplete="new-password">
  66. <div class="buttons">
  67. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  68. </div>
  69. </div>
  70. <h3>Pocket</h3>
  71. <div class="form-section">
  72. <label>
  73. <input type="checkbox" name="pocket_enabled" value="1" {{ if .form.PocketEnabled }}checked{{ end }}> {{ t "form.integration.pocket_activate" }}
  74. </label>
  75. {{ if not .hasPocketConsumerKeyConfigured }}
  76. <label for="form-pocket-consumer-key">{{ t "form.integration.pocket_consumer_key" }}</label>
  77. <input type="text" name="pocket_consumer_key" id="form-pocket-consumer-key" value="{{ .form.PocketConsumerKey }}" spellcheck="false">
  78. {{ end }}
  79. <label for="form-pocket-access-token">{{ t "form.integration.pocket_access_token" }}</label>
  80. <input type="password" name="pocket_access_token" id="form-pocket-access-token" value="{{ .form.PocketAccessToken }}" autocomplete="new-password">
  81. {{ if not .form.PocketAccessToken }}
  82. <p><a href="{{ route "pocketAuthorize" }}">{{ t "form.integration.pocket_connect_link" }}</a></p>
  83. {{ end }}
  84. <div class="buttons">
  85. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  86. </div>
  87. </div>
  88. <h3>Wallabag</h3>
  89. <div class="form-section">
  90. <label>
  91. <input type="checkbox" name="wallabag_enabled" value="1" {{ if .form.WallabagEnabled }}checked{{ end }}> {{ t "form.integration.wallabag_activate" }}
  92. </label>
  93. <label>
  94. <input type="checkbox" name="wallabag_only_url" value="1" {{ if .form.WallabagOnlyURL }}checked{{ end }}> {{ t "form.integration.wallabag_only_url" }}
  95. </label>
  96. <label for="form-wallabag-url">{{ t "form.integration.wallabag_endpoint" }}</label>
  97. <input type="url" name="wallabag_url" id="form-wallabag-url" value="{{ .form.WallabagURL }}" placeholder="http://v2.wallabag.org/" spellcheck="false">
  98. <label for="form-wallabag-client-id">{{ t "form.integration.wallabag_client_id" }}</label>
  99. <input type="text" name="wallabag_client_id" id="form-wallabag-client-id" value="{{ .form.WallabagClientID }}" spellcheck="false">
  100. <label for="form-wallabag-client-secret">{{ t "form.integration.wallabag_client_secret" }}</label>
  101. <input type="password" name="wallabag_client_secret" id="form-wallabag-client-secret" value="{{ .form.WallabagClientSecret }}" autocomplete="new-password">
  102. <label for="form-wallabag-username">{{ t "form.integration.wallabag_username" }}</label>
  103. <input type="text" name="wallabag_username" id="form-wallabag-username" value="{{ .form.WallabagUsername }}" spellcheck="false">
  104. <label for="form-wallabag-password">{{ t "form.integration.wallabag_password" }}</label>
  105. <input type="password" name="wallabag_password" id="form-wallabag-password" value="{{ .form.WallabagPassword }}" autocomplete="new-password">
  106. <div class="buttons">
  107. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  108. </div>
  109. </div>
  110. <h3>Notion</h3>
  111. <div class="form-section">
  112. <label>
  113. <input type="checkbox" name="notion_enabled" value="1" {{ if .form.NotionEnabled }}checked{{ end }}> {{ t "form.integration.notion_activate" }}
  114. </label>
  115. <label for="form-notion-token">{{ t "form.integration.notion_token" }}</label>
  116. <input type="password" name="notion_token" id="form-notion-token" value="{{ .form.NotionToken }}" spellcheck="false">
  117. <label for="form-notion-page-id">{{ t "form.integration.notion_page_id" }}</label>
  118. <input type="text" name="notion_page_id" id="form-notion-page-id" value="{{ .form.NotionPageID }}" spellcheck="false">
  119. <div class="buttons">
  120. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  121. </div>
  122. </div>
  123. <h3>Nunux Keeper</h3>
  124. <div class="form-section">
  125. <label>
  126. <input type="checkbox" name="nunux_keeper_enabled" value="1" {{ if .form.NunuxKeeperEnabled }}checked{{ end }}> {{ t "form.integration.nunux_keeper_activate" }}
  127. </label>
  128. <label for="form-nunux-keeper-url">{{ t "form.integration.nunux_keeper_endpoint" }}</label>
  129. <input type="url" name="nunux_keeper_url" id="form-nunux-keeper-url" value="{{ .form.NunuxKeeperURL }}" placeholder="https://api.nunux.org/keeper" spellcheck="false">
  130. <label for="form-nunux-keeper-api-key">{{ t "form.integration.nunux_keeper_api_key" }}</label>
  131. <input type="text" name="nunux_keeper_api_key" id="form-nunux-keeper-api-key" value="{{ .form.NunuxKeeperAPIKey }}" spellcheck="false">
  132. <div class="buttons">
  133. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  134. </div>
  135. </div>
  136. <h3>Espial</h3>
  137. <div class="form-section">
  138. <label>
  139. <input type="checkbox" name="espial_enabled" value="1" {{ if .form.EspialEnabled }}checked{{ end }}> {{ t "form.integration.espial_activate" }}
  140. </label>
  141. <label for="form-espial-url">{{ t "form.integration.espial_endpoint" }}</label>
  142. <input type="url" name="espial_url" id="form-espial-url" value="{{ .form.EspialURL }}" placeholder="https://esp.ae8.org" spellcheck="false">
  143. <label for="form-espial-api-key">{{ t "form.integration.espial_api_key" }}</label>
  144. <input type="text" name="espial_api_key" id="form-espial-api-key" value="{{ .form.EspialAPIKey }}" spellcheck="false">
  145. <label for="form-espial-tags">{{ t "form.integration.espial_tags" }}</label>
  146. <input type="text" name="espial_tags" id="form-espial-tags" value="{{ .form.EspialTags }}" spellcheck="false">
  147. <div class="buttons">
  148. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  149. </div>
  150. </div>
  151. <h3>Readwise Reader</h3>
  152. <div class="form-section">
  153. <label>
  154. <input type="checkbox" name="readwise_enabled" value="1" {{ if .form.ReadwiseEnabled }}checked{{ end }}> {{ t "form.integration.readwise_activate" }}
  155. </label>
  156. <label for="form-readwise-api-key">{{ t "form.integration.readwise_api_key" }}</label>
  157. <input type="text" name="readwise_api_key" id="form-readwise-api-key" value="{{ .form.ReadwiseAPIKey }}" spellcheck="false">
  158. <p><a href="https://readwise.io/access_token" target="_blank">{{ t "form.integration.readwise_api_key_link" }}</a></p>
  159. <div class="buttons">
  160. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  161. </div>
  162. </div>
  163. <h3>Linkding</h3>
  164. <div class="form-section">
  165. <label>
  166. <input type="checkbox" name="linkding_enabled" value="1" {{ if .form.LinkdingEnabled }}checked{{ end }}> {{ t "form.integration.linkding_activate" }}
  167. </label>
  168. <label for="form-linkding-url">{{ t "form.integration.linkding_endpoint" }}</label>
  169. <input type="url" name="linkding_url" id="form-linkding-url" value="{{ .form.LinkdingURL }}" placeholder="https://linkding.com" spellcheck="false">
  170. <label for="form-linkding-api-key">{{ t "form.integration.linkding_api_key" }}</label>
  171. <input type="text" name="linkding_api_key" id="form-linkding-api-key" value="{{ .form.LinkdingAPIKey }}" spellcheck="false">
  172. <label for="form-linkding-tags">{{ t "form.integration.linkding_tags" }}</label>
  173. <input type="text" name="linkding_tags" id="form-linkding-tags" value="{{ .form.LinkdingTags }}" spellcheck="false">
  174. <label>
  175. <input type="checkbox" name="linkding_mark_as_unread" value="1" {{ if .form.LinkdingMarkAsUnread }}checked{{ end }}> {{ t "form.integration.linkding_bookmark" }}
  176. </label>
  177. <div class="buttons">
  178. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  179. </div>
  180. </div>
  181. <h3>Apprise</h3>
  182. <div class="form-section">
  183. <label>
  184. <input type="checkbox" name="apprise_enabled" value="1" {{ if .form.AppriseEnabled }}checked{{ end }}> {{ t "form.integration.apprise_activate" }}
  185. </label>
  186. <label for="form-apprise-url">{{ t "form.integration.apprise_url" }}</label>
  187. <input type="text" name="apprise_url" id="form-apprise-url" value="{{ .form.AppriseURL }}" placeholder="http://apprise:8080" spellcheck="false">
  188. <label for="form-apprise-services-url">{{ t "form.integration.apprise_services_url" }}
  189. <a href="https://github.com/caronc/apprise/wiki" target="_blank">
  190. {{ icon "external-link" }}
  191. </a>
  192. </label>
  193. <input type="text" name="apprise_services_url" id="form-apprise-services-urls" value="{{ .form.AppriseServicesURL }}" placeholder="tgram://<token>/<chat_id>/,matrix://" spellcheck="false">
  194. <div class="buttons">
  195. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  196. </div>
  197. </div>
  198. <h3>Telegram Bot</h3>
  199. <div class="form-section">
  200. <label>
  201. <input type="checkbox" name="telegram_bot_enabled" value="1" {{ if .form.TelegramBotEnabled }}checked{{ end }}> {{ t "form.integration.telegram_bot_activate" }}
  202. </label>
  203. <label for="form-telegram-bot-token">{{ t "form.integration.telegram_bot_token" }}</label>
  204. <input type="text" name="telegram_bot_token" id="form-telegram-bot-token" value="{{ .form.TelegramBotToken }}" placeholder="bot123456:Abcdefg" spellcheck="false">
  205. <label for="form-telegram-chat-id">{{ t "form.integration.telegram_chat_id" }}</label>
  206. <input type="text" name="telegram_bot_chat_id" id="form-telegram-chat-id" value="{{ .form.TelegramBotChatID }}" spellcheck="false">
  207. <div class="buttons">
  208. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  209. </div>
  210. </div>
  211. <h3>Matrix Bot</h3>
  212. <div class="form-section">
  213. <label>
  214. <input type="checkbox" name="matrix_bot_enabled" value="1" {{ if .form.MatrixBotEnabled }}checked{{ end }}> {{ t "form.integration.matrix_bot_activate" }}
  215. </label>
  216. <label for="form-matrix-bot-user">{{ t "form.integration.matrix_bot_user" }}</label>
  217. <input type="text" name="matrix_bot_user" id="form-matrix-bot-user" value="{{ .form.MatrixBotUser }}" spellcheck="false">
  218. <label for="form-matrix-chat-password">{{ t "form.integration.matrix_bot_password" }}</label>
  219. <input type="password" name="matrix_bot_password" id="form-matrix-password" value="{{ .form.MatrixBotPassword }}" spellcheck="false">
  220. <label for="form-matrix-url">{{ t "form.integration.matrix_bot_url" }}</label>
  221. <input type="text" name="matrix_bot_url" id="form-matrix-url" value="{{ .form.MatrixBotURL }}" spellcheck="false">
  222. <label for="form-matrix-chat-id">{{ t "form.integration.matrix_bot_chat_id" }}</label>
  223. <input type="text" name="matrix_bot_chat_id" id="form-matrix-chat-id" value="{{ .form.MatrixBotChatID }}" spellcheck="false">
  224. <div class="buttons">
  225. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  226. </div>
  227. </div>
  228. </form>
  229. <h3>{{ t "page.integration.bookmarklet" }}</h3>
  230. <div class="panel">
  231. <p>{{ t "page.integration.bookmarklet.help" }}</p>
  232. <div class="bookmarklet">
  233. <a href="javascript:location.href='{{ rootURL }}{{ route "bookmarklet" }}?uri='+encodeURIComponent(window.location.href)">{{ t "page.integration.bookmarklet.name" }}</a>
  234. </div>
  235. <p>{{ t "page.integration.bookmarklet.instructions" }}</p>
  236. </div>
  237. {{ end }}