integrations.html 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601
  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.BetulaEnabled }}open{{ end }}>
  34. <summary>Betula</summary>
  35. <div class="form-section">
  36. <label>
  37. <input type="checkbox" name="betula_enabled" value="1" {{ if .form.BetulaEnabled }}checked{{ end }}> {{ t "form.integration.betula_activate" }}
  38. </label>
  39. <label for="form-betula-url">{{ t "form.integration.betula_url" }}</label>
  40. <input type="url" name="betula_url" id="form-betula-url" value="{{ .form.BetulaURL }}" placeholder="http://links.bouncepaw.com" spellcheck="false">
  41. <label for="form-betula-token">{{ t "form.integration.betula_token" }}</label>
  42. <input type="text" name="betula_token" id="form-betula-token" value="{{ .form.BetulaToken }}" 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.EspialEnabled }}open{{ end }}>
  49. <summary>Espial</summary>
  50. <div class="form-section">
  51. <label>
  52. <input type="checkbox" name="espial_enabled" value="1" {{ if .form.EspialEnabled }}checked{{ end }}> {{ t "form.integration.espial_activate" }}
  53. </label>
  54. <label for="form-espial-url">{{ t "form.integration.espial_endpoint" }}</label>
  55. <input type="url" name="espial_url" id="form-espial-url" value="{{ .form.EspialURL }}" placeholder="https://esp.ae8.org" spellcheck="false">
  56. <label for="form-espial-api-key">{{ t "form.integration.espial_api_key" }}</label>
  57. <input type="text" name="espial_api_key" id="form-espial-api-key" value="{{ .form.EspialAPIKey }}" spellcheck="false">
  58. <label for="form-espial-tags">{{ t "form.integration.espial_tags" }}</label>
  59. <input type="text" name="espial_tags" id="form-espial-tags" value="{{ .form.EspialTags }}" spellcheck="false">
  60. <div class="buttons">
  61. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  62. </div>
  63. </div>
  64. </details>
  65. <details {{ if .form.FeverEnabled }}open{{ end }}>
  66. <summary>Fever</summary>
  67. <div class="form-section">
  68. <label>
  69. <input type="checkbox" name="fever_enabled" value="1" {{ if .form.FeverEnabled }}checked{{ end }}> {{ t "form.integration.fever_activate" }}
  70. </label>
  71. <label for="form-fever-username">{{ t "form.integration.fever_username" }}</label>
  72. <input type="text" name="fever_username" id="form-fever-username" value="{{ .form.FeverUsername }}" autocomplete="username" spellcheck="false">
  73. <label for="form-fever-password">{{ t "form.integration.fever_password" }}</label>
  74. <input type="password" name="fever_password" id="form-fever-password" value="{{ .form.FeverPassword }}" autocomplete="new-password">
  75. <p>{{ t "form.integration.fever_endpoint" }} <strong>{{ rootURL }}{{ route "feverEndpoint" }}</strong></p>
  76. <div class="buttons">
  77. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  78. </div>
  79. </div>
  80. </details>
  81. <details {{ if .form.GoogleReaderEnabled }}open{{ end }}>
  82. <summary>Google Reader</summary>
  83. <div class="form-section">
  84. <label>
  85. <input type="checkbox" name="googlereader_enabled" value="1" {{ if .form.GoogleReaderEnabled }}checked{{ end }}> {{ t "form.integration.googlereader_activate" }}
  86. </label>
  87. <label for="form-googlereader-username">{{ t "form.integration.googlereader_username" }}</label>
  88. <input type="text" name="googlereader_username" id="form-googlereader-username" value="{{ .form.GoogleReaderUsername }}" autocomplete="username" spellcheck="false">
  89. <label for="form-googlereader-password">{{ t "form.integration.googlereader_password" }}</label>
  90. <input type="password" name="googlereader_password" id="form-googlereader-password" value="{{ .form.GoogleReaderPassword }}" autocomplete="new-password">
  91. <p>{{ t "form.integration.googlereader_endpoint" }} <strong>{{ rootURL }}{{ route "login" }}</strong></p>
  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.InstapaperEnabled }}open{{ end }}>
  98. <summary>Instapaper</summary>
  99. <div class="form-section">
  100. <label>
  101. <input type="checkbox" name="instapaper_enabled" value="1" {{ if .form.InstapaperEnabled }}checked{{ end }}> {{ t "form.integration.instapaper_activate" }}
  102. </label>
  103. <label for="form-instapaper-username">{{ t "form.integration.instapaper_username" }}</label>
  104. <input type="text" name="instapaper_username" id="form-instapaper-username" value="{{ .form.InstapaperUsername }}" spellcheck="false">
  105. <label for="form-instapaper-password">{{ t "form.integration.instapaper_password" }}</label>
  106. <input type="password" name="instapaper_password" id="form-instapaper-password" value="{{ .form.InstapaperPassword }}" autocomplete="new-password">
  107. <div class="buttons">
  108. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  109. </div>
  110. </div>
  111. </details>
  112. <details {{ if .form.LinkAceEnabled }}open{{ end }}>
  113. <summary>LinkAce</summary>
  114. <div class="form-section">
  115. <label>
  116. <input type="checkbox" name="linkace_enabled" value="1" {{ if .form.LinkAceEnabled }}checked{{ end }}> {{ t "form.integration.linkace_activate" }}
  117. </label>
  118. <label for="form-linkace-url">{{ t "form.integration.linkace_endpoint" }}</label>
  119. <input type="url" name="linkace_url" id="form-linkace-url" value="{{ .form.LinkAceURL }}" placeholder="http://linkace-url:port" spellcheck="false">
  120. <label for="form-linkace-api-key">{{ t "form.integration.linkace_api_key" }}</label>
  121. <input type="text" name="linkace_api_key" id="form-linkace-api-key" value="{{ .form.LinkAceAPIKey }}" spellcheck="false">
  122. <label for="form-linkace-tags">{{ t "form.integration.linkace_tags" }}</label>
  123. <input type="text" name="linkace_tags" id="form-linkace-tags" value="{{ .form.LinkAceTags }}" spellcheck="false">
  124. <label>
  125. <input type="checkbox" name="linkace_is_private" value="1" {{ if .form.LinkAcePrivate }}checked{{ end }}> {{ t "form.integration.linkace_is_private" }}
  126. </label>
  127. <label>
  128. <input type="checkbox" name="linkace_check_disabled" value="1" {{ if .form.LinkAceCheckDisabled }}checked{{ end }}> {{ t "form.integration.linkace_check_disabled" }}
  129. </label>
  130. <div class="buttons">
  131. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  132. </div>
  133. </div>
  134. </details>
  135. <details {{ if .form.LinkdingEnabled }}open{{ end }}>
  136. <summary>Linkding</summary>
  137. <div class="form-section">
  138. <label>
  139. <input type="checkbox" name="linkding_enabled" value="1" {{ if .form.LinkdingEnabled }}checked{{ end }}> {{ t "form.integration.linkding_activate" }}
  140. </label>
  141. <label for="form-linkding-url">{{ t "form.integration.linkding_endpoint" }}</label>
  142. <input type="url" name="linkding_url" id="form-linkding-url" value="{{ .form.LinkdingURL }}" placeholder="https://linkding.com" spellcheck="false">
  143. <label for="form-linkding-api-key">{{ t "form.integration.linkding_api_key" }}</label>
  144. <input type="text" name="linkding_api_key" id="form-linkding-api-key" value="{{ .form.LinkdingAPIKey }}" spellcheck="false">
  145. <label for="form-linkding-tags">{{ t "form.integration.linkding_tags" }}</label>
  146. <input type="text" name="linkding_tags" id="form-linkding-tags" value="{{ .form.LinkdingTags }}" spellcheck="false">
  147. <label>
  148. <input type="checkbox" name="linkding_mark_as_unread" value="1" {{ if .form.LinkdingMarkAsUnread }}checked{{ end }}> {{ t "form.integration.linkding_bookmark" }}
  149. </label>
  150. <div class="buttons">
  151. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  152. </div>
  153. </div>
  154. </details>
  155. <details {{ if .form.LinkwardenEnabled }}open{{ end }}>
  156. <summary>Linkwarden</summary>
  157. <div class="form-section">
  158. <label>
  159. <input type="checkbox" name="linkwarden_enabled" value="1" {{ if .form.LinkwardenEnabled }}checked{{ end }}> {{ t "form.integration.linkwarden_activate" }}
  160. </label>
  161. <label for="form-linkwarden-url">{{ t "form.integration.linkwarden_endpoint" }}</label>
  162. <input type="url" name="linkwarden_url" id="form-linkwarden-url" value="{{ .form.LinkwardenURL }}" placeholder="https://linkwarden.app" spellcheck="false">
  163. <label for="form-linkwarden-api-key">{{ t "form.integration.linkwarden_api_key" }}</label>
  164. <input type="text" name="linkwarden_api_key" id="form-linkwarden-api-key" value="{{ .form.LinkwardenAPIKey }}" spellcheck="false">
  165. <div class="buttons">
  166. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  167. </div>
  168. </div>
  169. </details>
  170. <details {{ if .form.MatrixBotEnabled }}open{{ end }}>
  171. <summary>Matrix Bot</summary>
  172. <div class="form-section">
  173. <label>
  174. <input type="checkbox" name="matrix_bot_enabled" value="1" {{ if .form.MatrixBotEnabled }}checked{{ end }}> {{ t "form.integration.matrix_bot_activate" }}
  175. </label>
  176. <label for="form-matrix-bot-user">{{ t "form.integration.matrix_bot_user" }}</label>
  177. <input type="text" name="matrix_bot_user" id="form-matrix-bot-user" value="{{ .form.MatrixBotUser }}" spellcheck="false">
  178. <label for="form-matrix-password">{{ t "form.integration.matrix_bot_password" }}</label>
  179. <input type="password" name="matrix_bot_password" id="form-matrix-password" value="{{ .form.MatrixBotPassword }}" spellcheck="false">
  180. <label for="form-matrix-url">{{ t "form.integration.matrix_bot_url" }}</label>
  181. <input type="url" name="matrix_bot_url" id="form-matrix-url" value="{{ .form.MatrixBotURL }}" spellcheck="false">
  182. <label for="form-matrix-chat-id">{{ t "form.integration.matrix_bot_chat_id" }}</label>
  183. <input type="text" name="matrix_bot_chat_id" id="form-matrix-chat-id" value="{{ .form.MatrixBotChatID }}" 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.NotionEnabled }}open{{ end }}>
  190. <summary>Notion</summary>
  191. <div class="form-section">
  192. <label>
  193. <input type="checkbox" name="notion_enabled" value="1" {{ if .form.NotionEnabled }}checked{{ end }}> {{ t "form.integration.notion_activate" }}
  194. </label>
  195. <label for="form-notion-token">{{ t "form.integration.notion_token" }}</label>
  196. <input type="password" name="notion_token" id="form-notion-token" value="{{ .form.NotionToken }}" spellcheck="false">
  197. <label for="form-notion-page-id">{{ t "form.integration.notion_page_id" }}</label>
  198. <input type="text" name="notion_page_id" id="form-notion-page-id" value="{{ .form.NotionPageID }}" 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.NtfyEnabled }}open{{ end }}>
  205. <summary>Ntfy</summary>
  206. <div class="form-section">
  207. <label>
  208. <input type="checkbox" name="ntfy_enabled" value="1" {{ if .form.NtfyEnabled }}checked{{ end }}> {{ t "form.integration.ntfy_activate" }}
  209. </label>
  210. <label for="form-ntfy-topic">{{ t "form.integration.ntfy_topic" }}</label>
  211. <input type="text" name="ntfy_topic" id="form-ntfy-topic" value="{{ .form.NtfyTopic }}" spellcheck="false">
  212. <label for="form-ntfy-url">{{ t "form.integration.ntfy_url" }}</label>
  213. <input type="url" name="ntfy_url" id="form-ntfy-url" value="{{ .form.NtfyURL }}" placeholder="https://ntfy.sh" spellcheck="false">
  214. <label for="form-ntfy-api-token">{{ t "form.integration.ntfy_api_token" }}</label>
  215. <input type="text" name="ntfy_api_token" id="form-ntfy-api-token" value="{{ .form.NtfyAPIToken }}" spellcheck="false">
  216. <label for="form-ntfy-username">{{ t "form.integration.ntfy_username" }}</label>
  217. <input type="text" name="ntfy_username" id="form-ntfy-username" value="{{ .form.NtfyUsername }}" spellcheck="false">
  218. <label for="form-ntfy-password">{{ t "form.integration.ntfy_password" }}</label>
  219. <input type="text" name="ntfy_password" id="form-ntfy-password" value="{{ .form.NtfyPassword }}" spellcheck="false">
  220. <label for="form-ntfy-icon-url">{{ t "form.integration.ntfy_icon_url" }}</label>
  221. <input type="url" name="ntfy_icon_url" id="form-ntfy-icon-url" value="{{ .form.NtfyIconURL }}" spellcheck="false">
  222. <div class="buttons">
  223. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  224. </div>
  225. </div>
  226. </details>
  227. <details {{ if .form.NunuxKeeperEnabled }}open{{ end }}>
  228. <summary>Nunux Keeper</summary>
  229. <div class="form-section">
  230. <label>
  231. <input type="checkbox" name="nunux_keeper_enabled" value="1" {{ if .form.NunuxKeeperEnabled }}checked{{ end }}> {{ t "form.integration.nunux_keeper_activate" }}
  232. </label>
  233. <label for="form-nunux-keeper-url">{{ t "form.integration.nunux_keeper_endpoint" }}</label>
  234. <input type="url" name="nunux_keeper_url" id="form-nunux-keeper-url" value="{{ .form.NunuxKeeperURL }}" placeholder="https://api.nunux.org/keeper" spellcheck="false">
  235. <label for="form-nunux-keeper-api-key">{{ t "form.integration.nunux_keeper_api_key" }}</label>
  236. <input type="text" name="nunux_keeper_api_key" id="form-nunux-keeper-api-key" value="{{ .form.NunuxKeeperAPIKey }}" spellcheck="false">
  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.OmnivoreEnabled }}open{{ end }}>
  243. <summary>Omnivore</summary>
  244. <div class="form-section">
  245. <label>
  246. <input type="checkbox" name="omnivore_enabled" value="1" {{ if .form.OmnivoreEnabled }}checked{{ end }}> {{ t "form.integration.omnivore_activate" }}
  247. </label>
  248. <label for="form-omnivore-api-key">{{ t "form.integration.omnivore_api_key" }}</label>
  249. <input type="text" name="omnivore_api_key" id="form-omnivore-api-key" value="{{ .form.OmnivoreAPIKey }}" spellcheck="false">
  250. <label for="form-omnivore-url">{{ t "form.integration.omnivore_url" }}</label>
  251. <input type="url" name="omnivore_url" id="form-omnivore-url" value="{{ .form.OmnivoreURL }}" placeholder="https://api-prod.omnivore.app/api/graphql" spellcheck="false">
  252. <div class="buttons">
  253. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  254. </div>
  255. </div>
  256. </details>
  257. <details {{ if .form.PinboardEnabled }}open{{ end }}>
  258. <summary>Pinboard</summary>
  259. <div class="form-section">
  260. <label>
  261. <input type="checkbox" name="pinboard_enabled" value="1" {{ if .form.PinboardEnabled }}checked{{ end }}> {{ t "form.integration.pinboard_activate" }}
  262. </label>
  263. <label for="form-pinboard-token">{{ t "form.integration.pinboard_token" }}</label>
  264. <input type="password" name="pinboard_token" id="form-pinboard-token" value="{{ .form.PinboardToken }}" autocomplete="new-password">
  265. <label for="form-pinboard-tags">{{ t "form.integration.pinboard_tags" }}</label>
  266. <input type="text" name="pinboard_tags" id="form-pinboard-tags" value="{{ .form.PinboardTags }}" spellcheck="false">
  267. <label>
  268. <input type="checkbox" name="pinboard_mark_as_unread" value="1" {{ if .form.PinboardMarkAsUnread }}checked{{ end }}> {{ t "form.integration.pinboard_bookmark" }}
  269. </label>
  270. <div class="buttons">
  271. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  272. </div>
  273. </div>
  274. </details>
  275. <details {{ if .form.PocketEnabled }}open{{ end }}>
  276. <summary>Pocket</summary>
  277. <div class="form-section">
  278. <label>
  279. <input type="checkbox" name="pocket_enabled" value="1" {{ if .form.PocketEnabled }}checked{{ end }}> {{ t "form.integration.pocket_activate" }}
  280. </label>
  281. {{ if not .hasPocketConsumerKeyConfigured }}
  282. <label for="form-pocket-consumer-key">{{ t "form.integration.pocket_consumer_key" }}</label>
  283. <input type="text" name="pocket_consumer_key" id="form-pocket-consumer-key" value="{{ .form.PocketConsumerKey }}" spellcheck="false">
  284. {{ end }}
  285. <label for="form-pocket-access-token">{{ t "form.integration.pocket_access_token" }}</label>
  286. <input type="password" name="pocket_access_token" id="form-pocket-access-token" value="{{ .form.PocketAccessToken }}" autocomplete="new-password">
  287. {{ if not .form.PocketAccessToken }}
  288. <p><a href="{{ route "pocketAuthorize" }}">{{ t "form.integration.pocket_connect_link" }}</a></p>
  289. {{ end }}
  290. <div class="buttons">
  291. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  292. </div>
  293. </div>
  294. </details>
  295. <details {{ if .form.RaindropEnabled }}open{{ end }}>
  296. <summary>Raindrop</summary>
  297. <div class="form-section">
  298. <label>
  299. <input type="checkbox" name="raindrop_enabled" value="1" {{ if .form.RaindropEnabled }}checked{{ end }}> {{ t "form.integration.raindrop_activate" }}
  300. </label>
  301. <label for="form-raindrop-token">{{ t "form.integration.raindrop_token" }}</label>
  302. <input type="text" name="raindrop_token" id="form-raindrop-token" value="{{ .form.RaindropToken }}" spellcheck="false">
  303. <label for="form-raindrop-collection-id">{{ t "form.integration.raindrop_collection_id" }}</label>
  304. <input type="text" name="raindrop_collection_id" id="form-raindrop-collection-id" value="{{ .form.RaindropCollectionID }}" spellcheck="false">
  305. <label for="form-raindrop-tags">{{ t "form.integration.raindrop_tags" }}</label>
  306. <input type="text" name="raindrop_tags" id="form-raindrop-tags" value="{{ .form.RaindropTags }}" spellcheck="false">
  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.ReadeckEnabled }}open{{ end }}>
  313. <summary>Readeck</summary>
  314. <div class="form-section">
  315. <label>
  316. <input type="checkbox" name="readeck_enabled" value="1" {{ if .form.ReadeckEnabled }}checked{{ end }}> {{ t "form.integration.readeck_activate" }}
  317. </label>
  318. <label>
  319. <input type="checkbox" name="readeck_only_url" value="1" {{ if .form.ReadeckOnlyURL }}checked{{ end }}> {{ t "form.integration.readeck_only_url" }}
  320. </label>
  321. <label for="form-readeck-url">{{ t "form.integration.readeck_endpoint" }}</label>
  322. <input type="url" name="readeck_url" id="form-readeck-url" value="{{ .form.ReadeckURL }}" placeholder="https://readeck.com" spellcheck="false">
  323. <label for="form-readeck-api-key">{{ t "form.integration.readeck_api_key" }}</label>
  324. <input type="text" name="readeck_api_key" id="form-readeck-api-key" value="{{ .form.ReadeckAPIKey }}" spellcheck="false">
  325. <label for="form-readeck-labels">{{ t "form.integration.readeck_labels" }}</label>
  326. <input type="text" name="readeck_labels" id="form-readeck-labels" value="{{ .form.ReadeckLabels }}" spellcheck="false">
  327. <div class="buttons">
  328. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  329. </div>
  330. </div>
  331. </details>
  332. <details {{ if .form.ReadwiseEnabled }}open{{ end }}>
  333. <summary>Readwise Reader</summary>
  334. <div class="form-section">
  335. <label>
  336. <input type="checkbox" name="readwise_enabled" value="1" {{ if .form.ReadwiseEnabled }}checked{{ end }}> {{ t "form.integration.readwise_activate" }}
  337. </label>
  338. <label for="form-readwise-api-key">{{ t "form.integration.readwise_api_key" }}</label>
  339. <input type="text" name="readwise_api_key" id="form-readwise-api-key" value="{{ .form.ReadwiseAPIKey }}" spellcheck="false">
  340. <p><a href="https://readwise.io/access_token" target="_blank">{{ t "form.integration.readwise_api_key_link" }}</a></p>
  341. <div class="buttons">
  342. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  343. </div>
  344. </div>
  345. </details>
  346. <details {{ if .form.RSSBridgeEnabled }}open{{ end }}>
  347. <summary>RSS-Bridge</summary>
  348. <div class="form-section">
  349. <label>
  350. <input type="checkbox" name="rssbridge_enabled" value="1" {{ if .form.RSSBridgeEnabled }}checked{{ end }}> {{ t "form.integration.rssbridge_activate" }}
  351. </label>
  352. <label for="form-rssbridge-url">{{ t "form.integration.rssbridge_url" }}</label>
  353. <input type="url" name="rssbridge_url" id="form-rssbridge-url" value="{{ .form.RSSBridgeURL }}" spellcheck="false">
  354. <div class="buttons">
  355. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  356. </div>
  357. </div>
  358. </details>
  359. <details {{ if .form.ShaarliEnabled }}open{{ end }}>
  360. <summary>Shaarli</summary>
  361. <div class="form-section">
  362. <label>
  363. <input type="checkbox" name="shaarli_enabled" value="1" {{ if .form.ShaarliEnabled }}checked{{ end }}> {{ t "form.integration.shaarli_activate" }}
  364. </label>
  365. <label for="form-shaarli-url">{{ t "form.integration.shaarli_endpoint" }}</label>
  366. <input type="url" name="shaarli_url" id="form-shaarli-url" value="{{ .form.ShaarliURL }}" placeholder="https://shaarli.example.org" spellcheck="false">
  367. <label for="form-shaarli-api-secret">{{ t "form.integration.shaarli_api_secret" }}</label>
  368. <input type="password" name="shaarli_api_secret" id="form-shaarli-api-secret" value="{{ .form.ShaarliAPISecret }}" autocomplete="new-password">
  369. <div class="buttons">
  370. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  371. </div>
  372. </div>
  373. </details>
  374. <details {{ if .form.ShioriEnabled }}open{{ end }}>
  375. <summary>Shiori</summary>
  376. <div class="form-section">
  377. <label>
  378. <input type="checkbox" name="shiori_enabled" value="1" {{ if .form.ShioriEnabled }}checked{{ end }}> {{ t "form.integration.shiori_activate" }}
  379. </label>
  380. <label for="form-shiori-url">{{ t "form.integration.shiori_endpoint" }}</label>
  381. <input type="url" name="shiori_url" id="form-shiori-url" value="{{ .form.ShioriURL }}" placeholder="https://shiori.example.org" spellcheck="false">
  382. <label for="form-shiori-username">{{ t "form.integration.shiori_username" }}</label>
  383. <input type="text" name="shiori_username" id="form-shiori-username" value="{{ .form.ShioriUsername }}" spellcheck="false">
  384. <label for="form-shiori-password">{{ t "form.integration.shiori_password" }}</label>
  385. <input type="password" name="shiori_password" id="form-shiori-password" value="{{ .form.ShioriPassword }}" autocomplete="new-password">
  386. <div class="buttons">
  387. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  388. </div>
  389. </div>
  390. </details>
  391. <details {{ if .form.TelegramBotEnabled }}open{{ end }}>
  392. <summary>Telegram Bot</summary>
  393. <div class="form-section">
  394. <label>
  395. <input type="checkbox" name="telegram_bot_enabled" value="1" {{ if .form.TelegramBotEnabled }}checked{{ end }}> {{ t "form.integration.telegram_bot_activate" }}
  396. </label>
  397. <label for="form-telegram-bot-token">{{ t "form.integration.telegram_bot_token" }}</label>
  398. <input type="text" name="telegram_bot_token" id="form-telegram-bot-token" value="{{ .form.TelegramBotToken }}" placeholder="bot123456:Abcdefg" spellcheck="false">
  399. <label for="form-telegram-chat-id">{{ t "form.integration.telegram_chat_id" }}</label>
  400. <input type="text" name="telegram_bot_chat_id" id="form-telegram-chat-id" value="{{ .form.TelegramBotChatID }}" spellcheck="false">
  401. <label for="form-telegram-topic-id">{{ t "form.integration.telegram_topic_id" }}</label>
  402. <input type="number" name="telegram_bot_topic_id" id="form-telegram-topic-id" {{ if .form.TelegramBotTopicID }}value="{{ .form.TelegramBotTopicID }}"{{ end }}>
  403. <label>
  404. <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" }}
  405. </label>
  406. <label>
  407. <input type="checkbox" name="telegram_bot_disable_notification" value="1" {{ if .form.TelegramBotDisableNotification }}checked{{ end }}> {{ t "form.integration.telegram_bot_disable_notification" }}
  408. </label>
  409. <label>
  410. <input type="checkbox" name="telegram_bot_disable_buttons" value="1" {{ if .form.TelegramBotDisableButtons }}checked{{ end }}> {{ t "form.integration.telegram_bot_disable_buttons" }}
  411. </label>
  412. <div class="buttons">
  413. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  414. </div>
  415. </div>
  416. </details>
  417. <details {{ if .form.WallabagEnabled }}open{{ end }}>
  418. <summary>Wallabag</summary>
  419. <div class="form-section">
  420. <label>
  421. <input type="checkbox" name="wallabag_enabled" value="1" {{ if .form.WallabagEnabled }}checked{{ end }}> {{ t "form.integration.wallabag_activate" }}
  422. </label>
  423. <label>
  424. <input type="checkbox" name="wallabag_only_url" value="1" {{ if .form.WallabagOnlyURL }}checked{{ end }}> {{ t "form.integration.wallabag_only_url" }}
  425. </label>
  426. <label for="form-wallabag-url">{{ t "form.integration.wallabag_endpoint" }}</label>
  427. <input type="url" name="wallabag_url" id="form-wallabag-url" value="{{ .form.WallabagURL }}" placeholder="http://v2.wallabag.org/" spellcheck="false">
  428. <label for="form-wallabag-client-id">{{ t "form.integration.wallabag_client_id" }}</label>
  429. <input type="text" name="wallabag_client_id" id="form-wallabag-client-id" value="{{ .form.WallabagClientID }}" spellcheck="false">
  430. <label for="form-wallabag-client-secret">{{ t "form.integration.wallabag_client_secret" }}</label>
  431. <input type="password" name="wallabag_client_secret" id="form-wallabag-client-secret" value="{{ .form.WallabagClientSecret }}" autocomplete="new-password">
  432. <label for="form-wallabag-username">{{ t "form.integration.wallabag_username" }}</label>
  433. <input type="text" name="wallabag_username" id="form-wallabag-username" value="{{ .form.WallabagUsername }}" spellcheck="false">
  434. <label for="form-wallabag-password">{{ t "form.integration.wallabag_password" }}</label>
  435. <input type="password" name="wallabag_password" id="form-wallabag-password" value="{{ .form.WallabagPassword }}" autocomplete="new-password">
  436. <div class="buttons">
  437. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  438. </div>
  439. </div>
  440. </details>
  441. <details {{ if .form.WebhookEnabled }}open{{ end }}>
  442. <summary>Webhook</summary>
  443. <div class="form-section">
  444. <label>
  445. <input type="checkbox" name="webhook_enabled" value="1" {{ if .form.WebhookEnabled }}checked{{ end }}> {{ t "form.integration.webhook_activate" }}
  446. </label>
  447. <label for="form-webhook-url">{{ t "form.integration.webhook_url" }}</label>
  448. <input type="url" name="webhook_url" id="form-webhook-url" value="{{ .form.WebhookURL }}" placeholder="https://username:password@example.org" spellcheck="false">
  449. {{ if .form.WebhookSecret }}
  450. <label for="form-webhook-secret">{{ t "form.integration.webhook_secret" }}</label>
  451. <input type="text" name="webhook_secret" id="form-webhook-secret" value="{{ .form.WebhookSecret }}" spellcheck="false" readonly>
  452. {{ end }}
  453. <div class="buttons">
  454. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  455. </div>
  456. </div>
  457. </details>
  458. </form>
  459. <h3>{{ t "page.integration.bookmarklet" }}</h3>
  460. <div class="panel">
  461. <p>{{ t "page.integration.bookmarklet.help" }}</p>
  462. <div class="bookmarklet">
  463. <a href="javascript:location.href='{{ rootURL }}{{ route "bookmarklet" }}?uri='+encodeURIComponent(window.location.href)">{{ t "page.integration.bookmarklet.name" }}</a>
  464. </div>
  465. <p>{{ t "page.integration.bookmarklet.instructions" }}</p>
  466. </div>
  467. {{ end }}