4
0

integrations.html 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482
  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" }}" class="integration-form">
  8. <input type="hidden" name="csrf" value="{{ .csrf }}">
  9. {{ if .errorMessage }}
  10. <div class="alert alert-error">{{ .errorMessage }}</div>
  11. {{ end }}
  12. <details {{ if .form.AppriseEnabled }}open{{ end }}>
  13. <summary>Apprise</summary>
  14. <div class="form-section">
  15. <label>
  16. <input type="checkbox" name="apprise_enabled" value="1" {{ if .form.AppriseEnabled }}checked{{ end }}> {{ t "form.integration.apprise_activate" }}
  17. </label>
  18. <label for="form-apprise-url">{{ t "form.integration.apprise_url" }}</label>
  19. <input type="url" name="apprise_url" id="form-apprise-url" value="{{ .form.AppriseURL }}" placeholder="http://apprise:8080" spellcheck="false">
  20. <label for="form-apprise-services-urls">{{ t "form.integration.apprise_services_url" }}
  21. <a href="https://github.com/caronc/apprise/wiki" target="_blank">
  22. {{ icon "external-link" }}
  23. </a>
  24. </label>
  25. <input type="text" name="apprise_services_url" id="form-apprise-services-urls" value="{{ .form.AppriseServicesURL }}" placeholder="tgram://<token>/<chat_id>/,matrix://" spellcheck="false">
  26. <div class="buttons">
  27. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  28. </div>
  29. </div>
  30. </details>
  31. <details {{ if .form.EspialEnabled }}open{{ end }}>
  32. <summary>Espial</summary>
  33. <div class="form-section">
  34. <label>
  35. <input type="checkbox" name="espial_enabled" value="1" {{ if .form.EspialEnabled }}checked{{ end }}> {{ t "form.integration.espial_activate" }}
  36. </label>
  37. <label for="form-espial-url">{{ t "form.integration.espial_endpoint" }}</label>
  38. <input type="url" name="espial_url" id="form-espial-url" value="{{ .form.EspialURL }}" placeholder="https://esp.ae8.org" spellcheck="false">
  39. <label for="form-espial-api-key">{{ t "form.integration.espial_api_key" }}</label>
  40. <input type="text" name="espial_api_key" id="form-espial-api-key" value="{{ .form.EspialAPIKey }}" spellcheck="false">
  41. <label for="form-espial-tags">{{ t "form.integration.espial_tags" }}</label>
  42. <input type="text" name="espial_tags" id="form-espial-tags" value="{{ .form.EspialTags }}" spellcheck="false">
  43. <div class="buttons">
  44. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  45. </div>
  46. </div>
  47. </details>
  48. <details {{ if .form.FeverEnabled }}open{{ end }}>
  49. <summary>Fever</summary>
  50. <div class="form-section">
  51. <label>
  52. <input type="checkbox" name="fever_enabled" value="1" {{ if .form.FeverEnabled }}checked{{ end }}> {{ t "form.integration.fever_activate" }}
  53. </label>
  54. <label for="form-fever-username">{{ t "form.integration.fever_username" }}</label>
  55. <input type="text" name="fever_username" id="form-fever-username" value="{{ .form.FeverUsername }}" autocomplete="username" spellcheck="false">
  56. <label for="form-fever-password">{{ t "form.integration.fever_password" }}</label>
  57. <input type="password" name="fever_password" id="form-fever-password" value="{{ .form.FeverPassword }}" autocomplete="new-password">
  58. <p>{{ t "form.integration.fever_endpoint" }} <strong>{{ rootURL }}{{ route "feverEndpoint" }}</strong></p>
  59. <div class="buttons">
  60. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  61. </div>
  62. </div>
  63. </details>
  64. <details {{ if .form.GoogleReaderEnabled }}open{{ end }}>
  65. <summary>Google Reader</summary>
  66. <div class="form-section">
  67. <label>
  68. <input type="checkbox" name="googlereader_enabled" value="1" {{ if .form.GoogleReaderEnabled }}checked{{ end }}> {{ t "form.integration.googlereader_activate" }}
  69. </label>
  70. <label for="form-googlereader-username">{{ t "form.integration.googlereader_username" }}</label>
  71. <input type="text" name="googlereader_username" id="form-googlereader-username" value="{{ .form.GoogleReaderUsername }}" autocomplete="username" spellcheck="false">
  72. <label for="form-googlereader-password">{{ t "form.integration.googlereader_password" }}</label>
  73. <input type="password" name="googlereader_password" id="form-googlereader-password" value="{{ .form.GoogleReaderPassword }}" autocomplete="new-password">
  74. <p>{{ t "form.integration.googlereader_endpoint" }} <strong>{{ rootURL }}{{ route "login" }}</strong></p>
  75. <div class="buttons">
  76. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  77. </div>
  78. </div>
  79. </details>
  80. <details {{ if .form.InstapaperEnabled }}open{{ end }}>
  81. <summary>Instapaper</summary>
  82. <div class="form-section">
  83. <label>
  84. <input type="checkbox" name="instapaper_enabled" value="1" {{ if .form.InstapaperEnabled }}checked{{ end }}> {{ t "form.integration.instapaper_activate" }}
  85. </label>
  86. <label for="form-instapaper-username">{{ t "form.integration.instapaper_username" }}</label>
  87. <input type="text" name="instapaper_username" id="form-instapaper-username" value="{{ .form.InstapaperUsername }}" spellcheck="false">
  88. <label for="form-instapaper-password">{{ t "form.integration.instapaper_password" }}</label>
  89. <input type="password" name="instapaper_password" id="form-instapaper-password" value="{{ .form.InstapaperPassword }}" autocomplete="new-password">
  90. <div class="buttons">
  91. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  92. </div>
  93. </div>
  94. </details>
  95. <details {{ if .form.LinkAceEnabled }}open{{ end }}>
  96. <summary>LinkAce</summary>
  97. <div class="form-section">
  98. <label>
  99. <input type="checkbox" name="linkace_enabled" value="1" {{ if .form.LinkAceEnabled }}checked{{ end }}> {{ t "form.integration.linkace_activate" }}
  100. </label>
  101. <label for="form-linkace-url">{{ t "form.integration.linkace_endpoint" }}</label>
  102. <input type="url" name="linkace_url" id="form-linkace-url" value="{{ .form.LinkAceURL }}" placeholder="http://linkace-url:port" spellcheck="false">
  103. <label for="form-linkace-api-key">{{ t "form.integration.linkace_api_key" }}</label>
  104. <input type="text" name="linkace_api_key" id="form-linkace-api-key" value="{{ .form.LinkAceAPIKey }}" spellcheck="false">
  105. <label for="form-linkace-tags">{{ t "form.integration.linkace_tags" }}</label>
  106. <input type="text" name="linkace_tags" id="form-linkace-tags" value="{{ .form.LinkAceTags }}" spellcheck="false">
  107. <label>
  108. <input type="checkbox" name="linkace_is_private" value="1" {{ if .form.LinkAcePrivate }}checked{{ end }}> {{ t "form.integration.linkace_is_private" }}
  109. </label>
  110. <label>
  111. <input type="checkbox" name="linkace_check_disabled" value="1" {{ if .form.LinkAceCheckDisabled }}checked{{ end }}> {{ t "form.integration.linkace_check_disabled" }}
  112. </label>
  113. <div class="buttons">
  114. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  115. </div>
  116. </div>
  117. </details>
  118. <details {{ if .form.LinkdingEnabled }}open{{ end }}>
  119. <summary>Linkding</summary>
  120. <div class="form-section">
  121. <label>
  122. <input type="checkbox" name="linkding_enabled" value="1" {{ if .form.LinkdingEnabled }}checked{{ end }}> {{ t "form.integration.linkding_activate" }}
  123. </label>
  124. <label for="form-linkding-url">{{ t "form.integration.linkding_endpoint" }}</label>
  125. <input type="url" name="linkding_url" id="form-linkding-url" value="{{ .form.LinkdingURL }}" placeholder="https://linkding.com" spellcheck="false">
  126. <label for="form-linkding-api-key">{{ t "form.integration.linkding_api_key" }}</label>
  127. <input type="text" name="linkding_api_key" id="form-linkding-api-key" value="{{ .form.LinkdingAPIKey }}" spellcheck="false">
  128. <label for="form-linkding-tags">{{ t "form.integration.linkding_tags" }}</label>
  129. <input type="text" name="linkding_tags" id="form-linkding-tags" value="{{ .form.LinkdingTags }}" spellcheck="false">
  130. <label>
  131. <input type="checkbox" name="linkding_mark_as_unread" value="1" {{ if .form.LinkdingMarkAsUnread }}checked{{ end }}> {{ t "form.integration.linkding_bookmark" }}
  132. </label>
  133. <div class="buttons">
  134. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  135. </div>
  136. </div>
  137. </details>
  138. <details {{ if .form.MatrixBotEnabled }}open{{ end }}>
  139. <summary>Matrix Bot</summary>
  140. <div class="form-section">
  141. <label>
  142. <input type="checkbox" name="matrix_bot_enabled" value="1" {{ if .form.MatrixBotEnabled }}checked{{ end }}> {{ t "form.integration.matrix_bot_activate" }}
  143. </label>
  144. <label for="form-matrix-bot-user">{{ t "form.integration.matrix_bot_user" }}</label>
  145. <input type="text" name="matrix_bot_user" id="form-matrix-bot-user" value="{{ .form.MatrixBotUser }}" spellcheck="false">
  146. <label for="form-matrix-password">{{ t "form.integration.matrix_bot_password" }}</label>
  147. <input type="password" name="matrix_bot_password" id="form-matrix-password" value="{{ .form.MatrixBotPassword }}" spellcheck="false">
  148. <label for="form-matrix-url">{{ t "form.integration.matrix_bot_url" }}</label>
  149. <input type="url" name="matrix_bot_url" id="form-matrix-url" value="{{ .form.MatrixBotURL }}" spellcheck="false">
  150. <label for="form-matrix-chat-id">{{ t "form.integration.matrix_bot_chat_id" }}</label>
  151. <input type="text" name="matrix_bot_chat_id" id="form-matrix-chat-id" value="{{ .form.MatrixBotChatID }}" spellcheck="false">
  152. <div class="buttons">
  153. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  154. </div>
  155. </div>
  156. </details>
  157. <details {{ if .form.NotionEnabled }}open{{ end }}>
  158. <summary>Notion</summary>
  159. <div class="form-section">
  160. <label>
  161. <input type="checkbox" name="notion_enabled" value="1" {{ if .form.NotionEnabled }}checked{{ end }}> {{ t "form.integration.notion_activate" }}
  162. </label>
  163. <label for="form-notion-token">{{ t "form.integration.notion_token" }}</label>
  164. <input type="password" name="notion_token" id="form-notion-token" value="{{ .form.NotionToken }}" spellcheck="false">
  165. <label for="form-notion-page-id">{{ t "form.integration.notion_page_id" }}</label>
  166. <input type="text" name="notion_page_id" id="form-notion-page-id" value="{{ .form.NotionPageID }}" spellcheck="false">
  167. <div class="buttons">
  168. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  169. </div>
  170. </div>
  171. </details>
  172. <details {{ if .form.NunuxKeeperEnabled }}open{{ end }}>
  173. <summary>Nunux Keeper</summary>
  174. <div class="form-section">
  175. <label>
  176. <input type="checkbox" name="nunux_keeper_enabled" value="1" {{ if .form.NunuxKeeperEnabled }}checked{{ end }}> {{ t "form.integration.nunux_keeper_activate" }}
  177. </label>
  178. <label for="form-nunux-keeper-url">{{ t "form.integration.nunux_keeper_endpoint" }}</label>
  179. <input type="url" name="nunux_keeper_url" id="form-nunux-keeper-url" value="{{ .form.NunuxKeeperURL }}" placeholder="https://api.nunux.org/keeper" spellcheck="false">
  180. <label for="form-nunux-keeper-api-key">{{ t "form.integration.nunux_keeper_api_key" }}</label>
  181. <input type="text" name="nunux_keeper_api_key" id="form-nunux-keeper-api-key" value="{{ .form.NunuxKeeperAPIKey }}" spellcheck="false">
  182. <div class="buttons">
  183. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  184. </div>
  185. </div>
  186. </details>
  187. <details {{ if .form.OmnivoreEnabled }}open{{ end }}>
  188. <summary>Omnivore</summary>
  189. <div class="form-section">
  190. <label>
  191. <input type="checkbox" name="omnivore_enabled" value="1" {{ if .form.OmnivoreEnabled }}checked{{ end }}> {{ t "form.integration.omnivore_activate" }}
  192. </label>
  193. <label for="form-omnivore-api-key">{{ t "form.integration.omnivore_api_key" }}</label>
  194. <input type="text" name="omnivore_api_key" id="form-omnivore-api-key" value="{{ .form.OmnivoreAPIKey }}" spellcheck="false">
  195. <label for="form-omnivore-url">{{ t "form.integration.omnivore_url" }}</label>
  196. <input type="url" name="omnivore_url" id="form-omnivore-url" value="{{ .form.OmnivoreURL }}" placeholder="https://api-prod.omnivore.app/api/graphql" spellcheck="false">
  197. <div class="buttons">
  198. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  199. </div>
  200. </div>
  201. </details>
  202. <details {{ if .form.PinboardEnabled }}open{{ end }}>
  203. <summary>Pinboard</summary>
  204. <div class="form-section">
  205. <label>
  206. <input type="checkbox" name="pinboard_enabled" value="1" {{ if .form.PinboardEnabled }}checked{{ end }}> {{ t "form.integration.pinboard_activate" }}
  207. </label>
  208. <label for="form-pinboard-token">{{ t "form.integration.pinboard_token" }}</label>
  209. <input type="password" name="pinboard_token" id="form-pinboard-token" value="{{ .form.PinboardToken }}" autocomplete="new-password">
  210. <label for="form-pinboard-tags">{{ t "form.integration.pinboard_tags" }}</label>
  211. <input type="text" name="pinboard_tags" id="form-pinboard-tags" value="{{ .form.PinboardTags }}" spellcheck="false">
  212. <label>
  213. <input type="checkbox" name="pinboard_mark_as_unread" value="1" {{ if .form.PinboardMarkAsUnread }}checked{{ end }}> {{ t "form.integration.pinboard_bookmark" }}
  214. </label>
  215. <div class="buttons">
  216. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  217. </div>
  218. </div>
  219. </details>
  220. <details {{ if .form.PocketEnabled }}open{{ end }}>
  221. <summary>Pocket</summary>
  222. <div class="form-section">
  223. <label>
  224. <input type="checkbox" name="pocket_enabled" value="1" {{ if .form.PocketEnabled }}checked{{ end }}> {{ t "form.integration.pocket_activate" }}
  225. </label>
  226. {{ if not .hasPocketConsumerKeyConfigured }}
  227. <label for="form-pocket-consumer-key">{{ t "form.integration.pocket_consumer_key" }}</label>
  228. <input type="text" name="pocket_consumer_key" id="form-pocket-consumer-key" value="{{ .form.PocketConsumerKey }}" spellcheck="false">
  229. {{ end }}
  230. <label for="form-pocket-access-token">{{ t "form.integration.pocket_access_token" }}</label>
  231. <input type="password" name="pocket_access_token" id="form-pocket-access-token" value="{{ .form.PocketAccessToken }}" autocomplete="new-password">
  232. {{ if not .form.PocketAccessToken }}
  233. <p><a href="{{ route "pocketAuthorize" }}">{{ t "form.integration.pocket_connect_link" }}</a></p>
  234. {{ end }}
  235. <div class="buttons">
  236. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  237. </div>
  238. </div>
  239. </details>
  240. <details {{ if .form.ReadwiseEnabled }}open{{ end }}>
  241. <summary>Readwise Reader</summary>
  242. <div class="form-section">
  243. <label>
  244. <input type="checkbox" name="readwise_enabled" value="1" {{ if .form.ReadwiseEnabled }}checked{{ end }}> {{ t "form.integration.readwise_activate" }}
  245. </label>
  246. <label for="form-readwise-api-key">{{ t "form.integration.readwise_api_key" }}</label>
  247. <input type="text" name="readwise_api_key" id="form-readwise-api-key" value="{{ .form.ReadwiseAPIKey }}" spellcheck="false">
  248. <p><a href="https://readwise.io/access_token" target="_blank">{{ t "form.integration.readwise_api_key_link" }}</a></p>
  249. <div class="buttons">
  250. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  251. </div>
  252. </div>
  253. </details>
  254. <details {{ if .form.ShaarliEnabled }}open{{ end }}>
  255. <summary>Shaarli</summary>
  256. <div class="form-section">
  257. <label>
  258. <input type="checkbox" name="shaarli_enabled" value="1" {{ if .form.ShaarliEnabled }}checked{{ end }}> {{ t "form.integration.shaarli_activate" }}
  259. </label>
  260. <label for="form-shaarli-url">{{ t "form.integration.shaarli_endpoint" }}</label>
  261. <input type="url" name="shaarli_url" id="form-shaarli-url" value="{{ .form.ShaarliURL }}" placeholder="https://shaarli.example.org" spellcheck="false">
  262. <label for="form-shaarli-api-secret">{{ t "form.integration.shaarli_api_secret" }}</label>
  263. <input type="password" name="shaarli_api_secret" id="form-shaarli-api-secret" value="{{ .form.ShaarliAPISecret }}" autocomplete="new-password">
  264. <div class="buttons">
  265. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  266. </div>
  267. </div>
  268. </details>
  269. <details {{ if .form.ShioriEnabled }}open{{ end }}>
  270. <summary>Shiori</summary>
  271. <div class="form-section">
  272. <label>
  273. <input type="checkbox" name="shiori_enabled" value="1" {{ if .form.ShioriEnabled }}checked{{ end }}> {{ t "form.integration.shiori_activate" }}
  274. </label>
  275. <label for="form-shiori-url">{{ t "form.integration.shiori_endpoint" }}</label>
  276. <input type="url" name="shiori_url" id="form-shiori-url" value="{{ .form.ShioriURL }}" placeholder="https://shiori.example.org" spellcheck="false">
  277. <label for="form-shiori-username">{{ t "form.integration.shiori_username" }}</label>
  278. <input type="text" name="shiori_username" id="form-shiori-username" value="{{ .form.ShioriUsername }}" spellcheck="false">
  279. <label for="form-shiori-password">{{ t "form.integration.shiori_password" }}</label>
  280. <input type="password" name="shiori_password" id="form-shiori-password" value="{{ .form.ShioriPassword }}" autocomplete="new-password">
  281. <div class="buttons">
  282. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  283. </div>
  284. </div>
  285. </details>
  286. <details {{ if .form.TelegramBotEnabled }}open{{ end }}>
  287. <summary>Telegram Bot</summary>
  288. <div class="form-section">
  289. <label>
  290. <input type="checkbox" name="telegram_bot_enabled" value="1" {{ if .form.TelegramBotEnabled }}checked{{ end }}> {{ t "form.integration.telegram_bot_activate" }}
  291. </label>
  292. <label for="form-telegram-bot-token">{{ t "form.integration.telegram_bot_token" }}</label>
  293. <input type="text" name="telegram_bot_token" id="form-telegram-bot-token" value="{{ .form.TelegramBotToken }}" placeholder="bot123456:Abcdefg" spellcheck="false">
  294. <label for="form-telegram-chat-id">{{ t "form.integration.telegram_chat_id" }}</label>
  295. <input type="text" name="telegram_bot_chat_id" id="form-telegram-chat-id" value="{{ .form.TelegramBotChatID }}" spellcheck="false">
  296. <label for="form-telegram-topic-id">{{ t "form.integration.telegram_topic_id" }}</label>
  297. <input type="number" name="telegram_bot_topic_id" id="form-telegram-topic-id" {{ if .form.TelegramBotTopicID }}value="{{ .form.TelegramBotTopicID }}"{{ end }}>
  298. <label>
  299. <input type="checkbox" name="telegram_bot_disable_web_page_preview" value="1" {{ if .form.TelegramBotDisableWebPagePreview }}checked{{ end }}> {{ t "form.integration.telegram_bot_disable_web_page_preview" }}
  300. </label>
  301. <label>
  302. <input type="checkbox" name="telegram_bot_disable_notification" value="1" {{ if .form.TelegramBotDisableNotification }}checked{{ end }}> {{ t "form.integration.telegram_bot_disable_notification" }}
  303. </label>
  304. <label>
  305. <input type="checkbox" name="telegram_bot_disable_buttons" value="1" {{ if .form.TelegramBotDisableButtons }}checked{{ end }}> {{ t "form.integration.telegram_bot_disable_buttons" }}
  306. </label>
  307. <div class="buttons">
  308. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  309. </div>
  310. </div>
  311. </details>
  312. <details {{ if .form.WallabagEnabled }}open{{ end }}>
  313. <summary>Wallabag</summary>
  314. <div class="form-section">
  315. <label>
  316. <input type="checkbox" name="wallabag_enabled" value="1" {{ if .form.WallabagEnabled }}checked{{ end }}> {{ t "form.integration.wallabag_activate" }}
  317. </label>
  318. <label>
  319. <input type="checkbox" name="wallabag_only_url" value="1" {{ if .form.WallabagOnlyURL }}checked{{ end }}> {{ t "form.integration.wallabag_only_url" }}
  320. </label>
  321. <label for="form-wallabag-url">{{ t "form.integration.wallabag_endpoint" }}</label>
  322. <input type="url" name="wallabag_url" id="form-wallabag-url" value="{{ .form.WallabagURL }}" placeholder="http://v2.wallabag.org/" spellcheck="false">
  323. <label for="form-wallabag-client-id">{{ t "form.integration.wallabag_client_id" }}</label>
  324. <input type="text" name="wallabag_client_id" id="form-wallabag-client-id" value="{{ .form.WallabagClientID }}" spellcheck="false">
  325. <label for="form-wallabag-client-secret">{{ t "form.integration.wallabag_client_secret" }}</label>
  326. <input type="password" name="wallabag_client_secret" id="form-wallabag-client-secret" value="{{ .form.WallabagClientSecret }}" autocomplete="new-password">
  327. <label for="form-wallabag-username">{{ t "form.integration.wallabag_username" }}</label>
  328. <input type="text" name="wallabag_username" id="form-wallabag-username" value="{{ .form.WallabagUsername }}" spellcheck="false">
  329. <label for="form-wallabag-password">{{ t "form.integration.wallabag_password" }}</label>
  330. <input type="password" name="wallabag_password" id="form-wallabag-password" value="{{ .form.WallabagPassword }}" autocomplete="new-password">
  331. <div class="buttons">
  332. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  333. </div>
  334. </div>
  335. </details>
  336. <details {{ if .form.WebhookEnabled }}open{{ end }}>
  337. <summary>Webhook</summary>
  338. <div class="form-section">
  339. <label>
  340. <input type="checkbox" name="webhook_enabled" value="1" {{ if .form.WebhookEnabled }}checked{{ end }}> {{ t "form.integration.webhook_activate" }}
  341. </label>
  342. <label for="form-webhook-url">{{ t "form.integration.webhook_url" }}</label>
  343. <input type="url" name="webhook_url" id="form-webhook-url" value="{{ .form.WebhookURL }}" placeholder="https://username:password@example.org" spellcheck="false">
  344. {{ if .form.WebhookSecret }}
  345. <label for="form-webhook-secret">{{ t "form.integration.webhook_secret" }}</label>
  346. <input type="text" name="webhook_secret" id="form-webhook-secret" value="{{ .form.WebhookSecret }}" spellcheck="false" readonly>
  347. {{ end }}
  348. <div class="buttons">
  349. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  350. </div>
  351. </div>
  352. </details>
  353. <details {{ if .form.RSSBridgeEnabled }}open{{ end }}>
  354. <summary>RSS-Bridge</summary>
  355. <div class="form-section">
  356. <label>
  357. <input type="checkbox" name="rssbridge_enabled" value="1" {{ if .form.RSSBridgeEnabled }}checked{{ end }}> {{ t "form.integration.rssbridge_activate" }}
  358. </label>
  359. <label for="form-rssbridge-url">{{ t "form.integration.rssbridge_url" }}</label>
  360. <input type="url" name="rssbridge_url" id="form-rssbridge-url" value="{{ .form.RSSBridgeURL }}" spellcheck="false">
  361. <div class="buttons">
  362. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  363. </div>
  364. </div>
  365. </details>
  366. </form>
  367. <h3>{{ t "page.integration.bookmarklet" }}</h3>
  368. <div class="panel">
  369. <p>{{ t "page.integration.bookmarklet.help" }}</p>
  370. <div class="bookmarklet">
  371. <a href="javascript:location.href='{{ rootURL }}{{ route "bookmarklet" }}?uri='+encodeURIComponent(window.location.href)">{{ t "page.integration.bookmarklet.name" }}</a>
  372. </div>
  373. <p>{{ t "page.integration.bookmarklet.instructions" }}</p>
  374. </div>
  375. {{ end }}