integrations.html 27 KB

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