integrations.html 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675
  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" {{ if $.user.OpenExternalLinksInNewTab }}target="_blank"{{ end }}>
  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.CuboxEnabled }}open{{ end }}>
  49. <summary>Cubox</summary>
  50. <div class="form-section">
  51. <label>
  52. <input type="checkbox" name="cubox_enabled" value="1" {{ if .form.CuboxEnabled }}checked{{ end }}> {{ t "form.integration.cubox_activate" }}
  53. </label>
  54. <label for="form-cubox-api-link">{{ t "form.integration.cubox_api_link" }}</label>
  55. <input type="url" name="cubox_api_link" id="form-cubox-api-link" value="{{ .form.CuboxAPILink }}" placeholder="https://cubox.pro/c/api/save/xxx" spellcheck="false">
  56. <div class="buttons">
  57. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  58. </div>
  59. </div>
  60. </details>
  61. <details {{ if .form.DiscordEnabled }}open{{ end }}>
  62. <summary>Discord</summary>
  63. <div class="form-section">
  64. <label>
  65. <input type="checkbox" name="discord_enabled" value="1" {{ if .form.DiscordEnabled }}checked{{ end }}> {{ t "form.integration.discord_activate" }}
  66. </label>
  67. <label for="form-discord-webhook-link">{{ t "form.integration.discord_webhook_link" }}</label>
  68. <input type="url" name="discord_webhook_link" id="form-discord-webhook-link" value="{{ .form.DiscordWebhookLink }}" placeholder="https://discord.com/api/webhooks/xxx/xxx" spellcheck="false">
  69. <div class="buttons">
  70. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  71. </div>
  72. </div>
  73. </details>
  74. <details {{ if .form.EspialEnabled }}open{{ end }}>
  75. <summary>Espial</summary>
  76. <div class="form-section">
  77. <label>
  78. <input type="checkbox" name="espial_enabled" value="1" {{ if .form.EspialEnabled }}checked{{ end }}> {{ t "form.integration.espial_activate" }}
  79. </label>
  80. <label for="form-espial-url">{{ t "form.integration.espial_endpoint" }}</label>
  81. <input type="url" name="espial_url" id="form-espial-url" value="{{ .form.EspialURL }}" placeholder="https://esp.ae8.org" spellcheck="false">
  82. <label for="form-espial-api-key">{{ t "form.integration.espial_api_key" }}</label>
  83. <input type="text" name="espial_api_key" id="form-espial-api-key" value="{{ .form.EspialAPIKey }}" spellcheck="false">
  84. <label for="form-espial-tags">{{ t "form.integration.espial_tags" }}</label>
  85. <input type="text" name="espial_tags" id="form-espial-tags" value="{{ .form.EspialTags }}" spellcheck="false">
  86. <div class="buttons">
  87. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  88. </div>
  89. </div>
  90. </details>
  91. <details {{ if .form.FeverEnabled }}open{{ end }}>
  92. <summary>Fever</summary>
  93. <div class="form-section">
  94. <label>
  95. <input type="checkbox" name="fever_enabled" value="1" {{ if .form.FeverEnabled }}checked{{ end }}> {{ t "form.integration.fever_activate" }}
  96. </label>
  97. <label for="form-fever-username">{{ t "form.integration.fever_username" }}</label>
  98. <input type="text" name="fever_username" id="form-fever-username" value="{{ .form.FeverUsername }}" autocomplete="username" spellcheck="false">
  99. <label for="form-fever-password">{{ t "form.integration.fever_password" }}</label>
  100. <input type="password" name="fever_password" id="form-fever-password" value="{{ .form.FeverPassword }}" autocomplete="new-password">
  101. <p>{{ t "form.integration.fever_endpoint" }} <strong>{{ rootURL }}{{ route "feverEndpoint" }}</strong></p>
  102. <div class="buttons">
  103. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  104. </div>
  105. </div>
  106. </details>
  107. <details {{ if .form.GoogleReaderEnabled }}open{{ end }}>
  108. <summary>Google Reader</summary>
  109. <div class="form-section">
  110. <label>
  111. <input type="checkbox" name="googlereader_enabled" value="1" {{ if .form.GoogleReaderEnabled }}checked{{ end }}> {{ t "form.integration.googlereader_activate" }}
  112. </label>
  113. <label for="form-googlereader-username">{{ t "form.integration.googlereader_username" }}</label>
  114. <input type="text" name="googlereader_username" id="form-googlereader-username" value="{{ .form.GoogleReaderUsername }}" autocomplete="username" spellcheck="false">
  115. <label for="form-googlereader-password">{{ t "form.integration.googlereader_password" }}</label>
  116. <input type="password" name="googlereader_password" id="form-googlereader-password" value="{{ .form.GoogleReaderPassword }}" autocomplete="new-password">
  117. <p>{{ t "form.integration.googlereader_endpoint" }} <strong>{{ rootURL }}{{ route "login" }}</strong></p>
  118. <div class="buttons">
  119. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  120. </div>
  121. </div>
  122. </details>
  123. <details {{ if .form.InstapaperEnabled }}open{{ end }}>
  124. <summary>Instapaper</summary>
  125. <div class="form-section">
  126. <label>
  127. <input type="checkbox" name="instapaper_enabled" value="1" {{ if .form.InstapaperEnabled }}checked{{ end }}> {{ t "form.integration.instapaper_activate" }}
  128. </label>
  129. <label for="form-instapaper-username">{{ t "form.integration.instapaper_username" }}</label>
  130. <input type="text" name="instapaper_username" id="form-instapaper-username" value="{{ .form.InstapaperUsername }}" spellcheck="false">
  131. <label for="form-instapaper-password">{{ t "form.integration.instapaper_password" }}</label>
  132. <input type="password" name="instapaper_password" id="form-instapaper-password" value="{{ .form.InstapaperPassword }}" autocomplete="new-password">
  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.LinkAceEnabled }}open{{ end }}>
  139. <summary>LinkAce</summary>
  140. <div class="form-section">
  141. <label>
  142. <input type="checkbox" name="linkace_enabled" value="1" {{ if .form.LinkAceEnabled }}checked{{ end }}> {{ t "form.integration.linkace_activate" }}
  143. </label>
  144. <label for="form-linkace-url">{{ t "form.integration.linkace_endpoint" }}</label>
  145. <input type="url" name="linkace_url" id="form-linkace-url" value="{{ .form.LinkAceURL }}" placeholder="http://linkace-url:port" spellcheck="false">
  146. <label for="form-linkace-api-key">{{ t "form.integration.linkace_api_key" }}</label>
  147. <input type="text" name="linkace_api_key" id="form-linkace-api-key" value="{{ .form.LinkAceAPIKey }}" spellcheck="false">
  148. <label for="form-linkace-tags">{{ t "form.integration.linkace_tags" }}</label>
  149. <input type="text" name="linkace_tags" id="form-linkace-tags" value="{{ .form.LinkAceTags }}" spellcheck="false">
  150. <label>
  151. <input type="checkbox" name="linkace_is_private" value="1" {{ if .form.LinkAcePrivate }}checked{{ end }}> {{ t "form.integration.linkace_is_private" }}
  152. </label>
  153. <label>
  154. <input type="checkbox" name="linkace_check_disabled" value="1" {{ if .form.LinkAceCheckDisabled }}checked{{ end }}> {{ t "form.integration.linkace_check_disabled" }}
  155. </label>
  156. <div class="buttons">
  157. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  158. </div>
  159. </div>
  160. </details>
  161. <details {{ if .form.LinkdingEnabled }}open{{ end }}>
  162. <summary>Linkding</summary>
  163. <div class="form-section">
  164. <label>
  165. <input type="checkbox" name="linkding_enabled" value="1" {{ if .form.LinkdingEnabled }}checked{{ end }}> {{ t "form.integration.linkding_activate" }}
  166. </label>
  167. <label for="form-linkding-url">{{ t "form.integration.linkding_endpoint" }}</label>
  168. <input type="url" name="linkding_url" id="form-linkding-url" value="{{ .form.LinkdingURL }}" placeholder="https://linkding.com" spellcheck="false">
  169. <label for="form-linkding-api-key">{{ t "form.integration.linkding_api_key" }}</label>
  170. <input type="text" name="linkding_api_key" id="form-linkding-api-key" value="{{ .form.LinkdingAPIKey }}" spellcheck="false">
  171. <label for="form-linkding-tags">{{ t "form.integration.linkding_tags" }}</label>
  172. <input type="text" name="linkding_tags" id="form-linkding-tags" value="{{ .form.LinkdingTags }}" spellcheck="false">
  173. <label>
  174. <input type="checkbox" name="linkding_mark_as_unread" value="1" {{ if .form.LinkdingMarkAsUnread }}checked{{ end }}> {{ t "form.integration.linkding_bookmark" }}
  175. </label>
  176. <div class="buttons">
  177. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  178. </div>
  179. </div>
  180. </details>
  181. <details {{ if .form.LinkwardenEnabled }}open{{ end }}>
  182. <summary>Linkwarden</summary>
  183. <div class="form-section">
  184. <label>
  185. <input type="checkbox" name="linkwarden_enabled" value="1" {{ if .form.LinkwardenEnabled }}checked{{ end }}> {{ t "form.integration.linkwarden_activate" }}
  186. </label>
  187. <label for="form-linkwarden-url">{{ t "form.integration.linkwarden_endpoint" }}</label>
  188. <input type="url" name="linkwarden_url" id="form-linkwarden-url" value="{{ .form.LinkwardenURL }}" placeholder="https://linkwarden.app" spellcheck="false">
  189. <label for="form-linkwarden-api-key">{{ t "form.integration.linkwarden_api_key" }}</label>
  190. <input type="text" name="linkwarden_api_key" id="form-linkwarden-api-key" value="{{ .form.LinkwardenAPIKey }}" spellcheck="false">
  191. <div class="buttons">
  192. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  193. </div>
  194. </div>
  195. </details>
  196. <details {{ if .form.MatrixBotEnabled }}open{{ end }}>
  197. <summary>Matrix Bot</summary>
  198. <div class="form-section">
  199. <label>
  200. <input type="checkbox" name="matrix_bot_enabled" value="1" {{ if .form.MatrixBotEnabled }}checked{{ end }}> {{ t "form.integration.matrix_bot_activate" }}
  201. </label>
  202. <label for="form-matrix-bot-user">{{ t "form.integration.matrix_bot_user" }}</label>
  203. <input type="text" name="matrix_bot_user" id="form-matrix-bot-user" value="{{ .form.MatrixBotUser }}" spellcheck="false">
  204. <label for="form-matrix-password">{{ t "form.integration.matrix_bot_password" }}</label>
  205. <input type="password" name="matrix_bot_password" id="form-matrix-password" value="{{ .form.MatrixBotPassword }}" spellcheck="false">
  206. <label for="form-matrix-url">{{ t "form.integration.matrix_bot_url" }}</label>
  207. <input type="url" name="matrix_bot_url" id="form-matrix-url" value="{{ .form.MatrixBotURL }}" spellcheck="false">
  208. <label for="form-matrix-chat-id">{{ t "form.integration.matrix_bot_chat_id" }}</label>
  209. <input type="text" name="matrix_bot_chat_id" id="form-matrix-chat-id" value="{{ .form.MatrixBotChatID }}" spellcheck="false">
  210. <div class="buttons">
  211. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  212. </div>
  213. </div>
  214. </details>
  215. <details {{ if .form.NotionEnabled }}open{{ end }}>
  216. <summary>Notion</summary>
  217. <div class="form-section">
  218. <label>
  219. <input type="checkbox" name="notion_enabled" value="1" {{ if .form.NotionEnabled }}checked{{ end }}> {{ t "form.integration.notion_activate" }}
  220. </label>
  221. <label for="form-notion-token">{{ t "form.integration.notion_token" }}</label>
  222. <input type="password" name="notion_token" id="form-notion-token" value="{{ .form.NotionToken }}" spellcheck="false">
  223. <label for="form-notion-page-id">{{ t "form.integration.notion_page_id" }}</label>
  224. <input type="text" name="notion_page_id" id="form-notion-page-id" value="{{ .form.NotionPageID }}" spellcheck="false">
  225. <div class="buttons">
  226. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  227. </div>
  228. </div>
  229. </details>
  230. <details {{ if .form.NtfyEnabled }}open{{ end }}>
  231. <summary>Ntfy</summary>
  232. <div class="form-section">
  233. <label>
  234. <input type="checkbox" name="ntfy_enabled" value="1" {{ if .form.NtfyEnabled }}checked{{ end }}> {{ t "form.integration.ntfy_activate" }}
  235. </label>
  236. <label for="form-ntfy-topic">{{ t "form.integration.ntfy_topic" }}</label>
  237. <input type="text" name="ntfy_topic" id="form-ntfy-topic" value="{{ .form.NtfyTopic }}" spellcheck="false">
  238. <label for="form-ntfy-url">{{ t "form.integration.ntfy_url" }}</label>
  239. <input type="url" name="ntfy_url" id="form-ntfy-url" value="{{ .form.NtfyURL }}" placeholder="https://ntfy.sh" spellcheck="false">
  240. <label for="form-ntfy-api-token">{{ t "form.integration.ntfy_api_token" }}</label>
  241. <input type="text" name="ntfy_api_token" id="form-ntfy-api-token" value="{{ .form.NtfyAPIToken }}" spellcheck="false">
  242. <label for="form-ntfy-username">{{ t "form.integration.ntfy_username" }}</label>
  243. <input type="text" name="ntfy_username" id="form-ntfy-username" value="{{ .form.NtfyUsername }}" spellcheck="false">
  244. <label for="form-ntfy-password">{{ t "form.integration.ntfy_password" }}</label>
  245. <input type="text" name="ntfy_password" id="form-ntfy-password" value="{{ .form.NtfyPassword }}" spellcheck="false">
  246. <label for="form-ntfy-icon-url">{{ t "form.integration.ntfy_icon_url" }}</label>
  247. <input type="url" name="ntfy_icon_url" id="form-ntfy-icon-url" value="{{ .form.NtfyIconURL }}" spellcheck="false">
  248. <label>
  249. <input type="checkbox" name="ntfy_internal_links" value="1" {{ if .form.NtfyInternalLinks }}checked{{ end }}> {{ t "form.integration.ntfy_internal_links" }}
  250. </label>
  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.NunuxKeeperEnabled }}open{{ end }}>
  257. <summary>Nunux Keeper</summary>
  258. <div class="form-section">
  259. <label>
  260. <input type="checkbox" name="nunux_keeper_enabled" value="1" {{ if .form.NunuxKeeperEnabled }}checked{{ end }}> {{ t "form.integration.nunux_keeper_activate" }}
  261. </label>
  262. <label for="form-nunux-keeper-url">{{ t "form.integration.nunux_keeper_endpoint" }}</label>
  263. <input type="url" name="nunux_keeper_url" id="form-nunux-keeper-url" value="{{ .form.NunuxKeeperURL }}" placeholder="https://api.nunux.org/keeper" spellcheck="false">
  264. <label for="form-nunux-keeper-api-key">{{ t "form.integration.nunux_keeper_api_key" }}</label>
  265. <input type="text" name="nunux_keeper_api_key" id="form-nunux-keeper-api-key" value="{{ .form.NunuxKeeperAPIKey }}" spellcheck="false">
  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.OmnivoreEnabled }}open{{ end }}>
  272. <summary>Omnivore</summary>
  273. <div class="form-section">
  274. <label>
  275. <input type="checkbox" name="omnivore_enabled" value="1" {{ if .form.OmnivoreEnabled }}checked{{ end }}> {{ t "form.integration.omnivore_activate" }}
  276. </label>
  277. <label for="form-omnivore-api-key">{{ t "form.integration.omnivore_api_key" }}</label>
  278. <input type="text" name="omnivore_api_key" id="form-omnivore-api-key" value="{{ .form.OmnivoreAPIKey }}" spellcheck="false">
  279. <label for="form-omnivore-url">{{ t "form.integration.omnivore_url" }}</label>
  280. <input type="url" name="omnivore_url" id="form-omnivore-url" value="{{ .form.OmnivoreURL }}" placeholder="https://api-prod.omnivore.app/api/graphql" spellcheck="false">
  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.KarakeepEnabled }}open{{ end }}>
  287. <summary>Karakeep</summary>
  288. <div class="form-section">
  289. <label>
  290. <input type="checkbox" name="karakeep_enabled" value="1" {{ if .form.KarakeepEnabled }}checked{{ end }}> {{ t "form.integration.karakeep_activate" }}
  291. </label>
  292. <label for="form-karakeep-api-key">{{ t "form.integration.karakeep_api_key" }}</label>
  293. <input type="text" name="karakeep_api_key" id="form-karakeep-api-key" value="{{ .form.KarakeepAPIKey }}" spellcheck="false">
  294. <label for="form-karakeep-url">{{ t "form.integration.karakeep_url" }}</label>
  295. <input type="url" name="karakeep_url" id="form-karakeep-url" value="{{ .form.KarakeepURL }}" placeholder="https://try.karakeep.app/api/v1/bookmarks" spellcheck="false">
  296. <div class="buttons">
  297. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  298. </div>
  299. </div>
  300. </details>
  301. <details {{ if .form.PinboardEnabled }}open{{ end }}>
  302. <summary>Pinboard</summary>
  303. <div class="form-section">
  304. <label>
  305. <input type="checkbox" name="pinboard_enabled" value="1" {{ if .form.PinboardEnabled }}checked{{ end }}> {{ t "form.integration.pinboard_activate" }}
  306. </label>
  307. <label for="form-pinboard-token">{{ t "form.integration.pinboard_token" }}</label>
  308. <input type="password" name="pinboard_token" id="form-pinboard-token" value="{{ .form.PinboardToken }}" autocomplete="new-password">
  309. <label for="form-pinboard-tags">{{ t "form.integration.pinboard_tags" }}</label>
  310. <input type="text" name="pinboard_tags" id="form-pinboard-tags" value="{{ .form.PinboardTags }}" spellcheck="false">
  311. <label>
  312. <input type="checkbox" name="pinboard_mark_as_unread" value="1" {{ if .form.PinboardMarkAsUnread }}checked{{ end }}> {{ t "form.integration.pinboard_bookmark" }}
  313. </label>
  314. <div class="buttons">
  315. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  316. </div>
  317. </div>
  318. </details>
  319. <details {{ if .form.PushoverEnabled }}open{{ end }}>
  320. <summary>Pushover</summary>
  321. <div class="form-section">
  322. <label>
  323. <input type="checkbox" name="pushover_enabled" value="1" {{ if .form.PushoverEnabled }}checked{{ end }}> {{ t "form.integration.pushover_activate" }}
  324. </label>
  325. <label for="form-pushover-token">{{ t "form.integration.pushover_token" }}</label>
  326. <input type="text" name="pushover_token" id="form-pushover-token" value="{{ .form.PushoverToken }}" spellcheck="false">
  327. <label for="form-pushover-user">{{ t "form.integration.pushover_user" }}</label>
  328. <input type="text" name="pushover_user" id="form-pushover-user" value="{{ .form.PushoverUser }}" spellcheck="false">
  329. <label for="form-pushover-device">{{ t "form.integration.pushover_device" }}</label>
  330. <input type="text" name="pushover_device" id="form-pushover-device" value="{{ .form.PushoverDevice }}" spellcheck="false">
  331. <label for="form-pushover-prefix">{{ t "form.integration.pushover_prefix" }}</label>
  332. <input type="text" name="pushover_prefix" id="form-pushover-prefix" value="{{ .form.PushoverPrefix }}" spellcheck="false" placeholder="https://api.pushover.net">
  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.RaindropEnabled }}open{{ end }}>
  339. <summary>Raindrop</summary>
  340. <div class="form-section">
  341. <label>
  342. <input type="checkbox" name="raindrop_enabled" value="1" {{ if .form.RaindropEnabled }}checked{{ end }}> {{ t "form.integration.raindrop_activate" }}
  343. </label>
  344. <label for="form-raindrop-token">{{ t "form.integration.raindrop_token" }}</label>
  345. <input type="text" name="raindrop_token" id="form-raindrop-token" value="{{ .form.RaindropToken }}" spellcheck="false">
  346. <label for="form-raindrop-collection-id">{{ t "form.integration.raindrop_collection_id" }}</label>
  347. <input type="text" name="raindrop_collection_id" id="form-raindrop-collection-id" value="{{ .form.RaindropCollectionID }}" spellcheck="false">
  348. <label for="form-raindrop-tags">{{ t "form.integration.raindrop_tags" }}</label>
  349. <input type="text" name="raindrop_tags" id="form-raindrop-tags" value="{{ .form.RaindropTags }}" spellcheck="false">
  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.ReadeckEnabled }}open{{ end }}>
  356. <summary>Readeck</summary>
  357. <div class="form-section">
  358. <label>
  359. <input type="checkbox" name="readeck_enabled" value="1" {{ if .form.ReadeckEnabled }}checked{{ end }}> {{ t "form.integration.readeck_activate" }}
  360. </label>
  361. <label>
  362. <input type="checkbox" name="readeck_only_url" value="1" {{ if .form.ReadeckOnlyURL }}checked{{ end }}> {{ t "form.integration.readeck_only_url" }}
  363. </label>
  364. <label for="form-readeck-url">{{ t "form.integration.readeck_endpoint" }}</label>
  365. <input type="url" name="readeck_url" id="form-readeck-url" value="{{ .form.ReadeckURL }}" placeholder="https://readeck.com" spellcheck="false">
  366. <label for="form-readeck-api-key">{{ t "form.integration.readeck_api_key" }}</label>
  367. <input type="text" name="readeck_api_key" id="form-readeck-api-key" value="{{ .form.ReadeckAPIKey }}" spellcheck="false">
  368. <label for="form-readeck-labels">{{ t "form.integration.readeck_labels" }}</label>
  369. <input type="text" name="readeck_labels" id="form-readeck-labels" value="{{ .form.ReadeckLabels }}" spellcheck="false">
  370. <div class="buttons">
  371. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  372. </div>
  373. </div>
  374. </details>
  375. <details {{ if .form.ReadwiseEnabled }}open{{ end }}>
  376. <summary>Readwise Reader</summary>
  377. <div class="form-section">
  378. <label>
  379. <input type="checkbox" name="readwise_enabled" value="1" {{ if .form.ReadwiseEnabled }}checked{{ end }}> {{ t "form.integration.readwise_activate" }}
  380. </label>
  381. <label for="form-readwise-api-key">{{ t "form.integration.readwise_api_key" }}</label>
  382. <input type="text" name="readwise_api_key" id="form-readwise-api-key" value="{{ .form.ReadwiseAPIKey }}" spellcheck="false">
  383. <p><a href="https://readwise.io/access_token" {{ if $.user.OpenExternalLinksInNewTab }}target="_blank"{{ end }}>{{ t "form.integration.readwise_api_key_link" }}</a></p>
  384. <div class="buttons">
  385. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  386. </div>
  387. </div>
  388. </details>
  389. <details {{ if .form.RSSBridgeEnabled }}open{{ end }}>
  390. <summary>RSS-Bridge</summary>
  391. <div class="form-section">
  392. <label>
  393. <input type="checkbox" name="rssbridge_enabled" value="1" {{ if .form.RSSBridgeEnabled }}checked{{ end }}> {{ t "form.integration.rssbridge_activate" }}
  394. </label>
  395. <label for="form-rssbridge-url">{{ t "form.integration.rssbridge_url" }}</label>
  396. <input type="url" name="rssbridge_url" id="form-rssbridge-url" value="{{ .form.RSSBridgeURL }}" spellcheck="false">
  397. <label for="form-rssbridge-token">{{ t "form.integration.rssbridge_token" }}</label>
  398. <input type="password" name="rssbridge_token" id="form-rssbridge-token" value="{{ .form.RSSBridgeToken }}" spellcheck="false">
  399. <div class="buttons">
  400. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  401. </div>
  402. </div>
  403. </details>
  404. <details {{ if .form.ShaarliEnabled }}open{{ end }}>
  405. <summary>Shaarli</summary>
  406. <div class="form-section">
  407. <label>
  408. <input type="checkbox" name="shaarli_enabled" value="1" {{ if .form.ShaarliEnabled }}checked{{ end }}> {{ t "form.integration.shaarli_activate" }}
  409. </label>
  410. <label for="form-shaarli-url">{{ t "form.integration.shaarli_endpoint" }}</label>
  411. <input type="url" name="shaarli_url" id="form-shaarli-url" value="{{ .form.ShaarliURL }}" placeholder="https://shaarli.example.org" spellcheck="false">
  412. <label for="form-shaarli-api-secret">{{ t "form.integration.shaarli_api_secret" }}</label>
  413. <input type="password" name="shaarli_api_secret" id="form-shaarli-api-secret" value="{{ .form.ShaarliAPISecret }}" autocomplete="new-password">
  414. <div class="buttons">
  415. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  416. </div>
  417. </div>
  418. </details>
  419. <details {{ if .form.ShioriEnabled }}open{{ end }}>
  420. <summary>Shiori</summary>
  421. <div class="form-section">
  422. <label>
  423. <input type="checkbox" name="shiori_enabled" value="1" {{ if .form.ShioriEnabled }}checked{{ end }}> {{ t "form.integration.shiori_activate" }}
  424. </label>
  425. <label for="form-shiori-url">{{ t "form.integration.shiori_endpoint" }}</label>
  426. <input type="url" name="shiori_url" id="form-shiori-url" value="{{ .form.ShioriURL }}" placeholder="https://shiori.example.org" spellcheck="false">
  427. <label for="form-shiori-username">{{ t "form.integration.shiori_username" }}</label>
  428. <input type="text" name="shiori_username" id="form-shiori-username" value="{{ .form.ShioriUsername }}" spellcheck="false">
  429. <label for="form-shiori-password">{{ t "form.integration.shiori_password" }}</label>
  430. <input type="password" name="shiori_password" id="form-shiori-password" value="{{ .form.ShioriPassword }}" autocomplete="new-password">
  431. <div class="buttons">
  432. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  433. </div>
  434. </div>
  435. </details>
  436. <details {{ if .form.SlackEnabled }}open{{ end }}>
  437. <summary>Slack</summary>
  438. <div class="form-section">
  439. <label>
  440. <input type="checkbox" name="slack_enabled" value="1" {{ if .form.SlackEnabled }}checked{{ end }}> {{ t "form.integration.slack_activate" }}
  441. </label>
  442. <label for="form-slack-webhook-link">{{ t "form.integration.slack_webhook_link" }}</label>
  443. <input type="url" name="slack_webhook_link" id="form-slack-webhook-link" value="{{ .form.SlackWebhookLink }}" placeholder="https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX" spellcheck="false">
  444. <div class="buttons">
  445. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  446. </div>
  447. </div>
  448. </details>
  449. <details {{ if .form.TelegramBotEnabled }}open{{ end }}>
  450. <summary>Telegram Bot</summary>
  451. <div class="form-section">
  452. <label>
  453. <input type="checkbox" name="telegram_bot_enabled" value="1" {{ if .form.TelegramBotEnabled }}checked{{ end }}> {{ t "form.integration.telegram_bot_activate" }}
  454. </label>
  455. <label for="form-telegram-bot-token">{{ t "form.integration.telegram_bot_token" }}</label>
  456. <input type="text" name="telegram_bot_token" id="form-telegram-bot-token" value="{{ .form.TelegramBotToken }}" placeholder="bot123456:Abcdefg" spellcheck="false">
  457. <label for="form-telegram-chat-id">{{ t "form.integration.telegram_chat_id" }}</label>
  458. <input type="text" name="telegram_bot_chat_id" id="form-telegram-chat-id" value="{{ .form.TelegramBotChatID }}" spellcheck="false">
  459. <label for="form-telegram-topic-id">{{ t "form.integration.telegram_topic_id" }}</label>
  460. <input type="number" name="telegram_bot_topic_id" id="form-telegram-topic-id" {{ if .form.TelegramBotTopicID }}value="{{ .form.TelegramBotTopicID }}"{{ end }}>
  461. <label>
  462. <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" }}
  463. </label>
  464. <label>
  465. <input type="checkbox" name="telegram_bot_disable_notification" value="1" {{ if .form.TelegramBotDisableNotification }}checked{{ end }}> {{ t "form.integration.telegram_bot_disable_notification" }}
  466. </label>
  467. <label>
  468. <input type="checkbox" name="telegram_bot_disable_buttons" value="1" {{ if .form.TelegramBotDisableButtons }}checked{{ end }}> {{ t "form.integration.telegram_bot_disable_buttons" }}
  469. </label>
  470. <div class="buttons">
  471. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  472. </div>
  473. </div>
  474. </details>
  475. <details {{ if .form.WallabagEnabled }}open{{ end }}>
  476. <summary>Wallabag</summary>
  477. <div class="form-section">
  478. <label>
  479. <input type="checkbox" name="wallabag_enabled" value="1" {{ if .form.WallabagEnabled }}checked{{ end }}> {{ t "form.integration.wallabag_activate" }}
  480. </label>
  481. <label>
  482. <input type="checkbox" name="wallabag_only_url" value="1" {{ if .form.WallabagOnlyURL }}checked{{ end }}> {{ t "form.integration.wallabag_only_url" }}
  483. </label>
  484. <label for="form-wallabag-url">{{ t "form.integration.wallabag_endpoint" }}</label>
  485. <input type="url" name="wallabag_url" id="form-wallabag-url" value="{{ .form.WallabagURL }}" spellcheck="false">
  486. <label for="form-wallabag-client-id">{{ t "form.integration.wallabag_client_id" }}</label>
  487. <input type="text" name="wallabag_client_id" id="form-wallabag-client-id" value="{{ .form.WallabagClientID }}" spellcheck="false">
  488. <label for="form-wallabag-client-secret">{{ t "form.integration.wallabag_client_secret" }}</label>
  489. <input type="password" name="wallabag_client_secret" id="form-wallabag-client-secret" value="{{ .form.WallabagClientSecret }}" autocomplete="new-password">
  490. <label for="form-wallabag-username">{{ t "form.integration.wallabag_username" }}</label>
  491. <input type="text" name="wallabag_username" id="form-wallabag-username" value="{{ .form.WallabagUsername }}" spellcheck="false">
  492. <label for="form-wallabag-password">{{ t "form.integration.wallabag_password" }}</label>
  493. <input type="password" name="wallabag_password" id="form-wallabag-password" value="{{ .form.WallabagPassword }}" autocomplete="new-password">
  494. <div class="buttons">
  495. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  496. </div>
  497. </div>
  498. </details>
  499. <details {{ if .form.WebhookEnabled }}open{{ end }}>
  500. <summary>Webhook</summary>
  501. <div class="form-section">
  502. <label>
  503. <input type="checkbox" name="webhook_enabled" value="1" {{ if .form.WebhookEnabled }}checked{{ end }}> {{ t "form.integration.webhook_activate" }}
  504. </label>
  505. <label for="form-webhook-url">{{ t "form.integration.webhook_url" }}</label>
  506. <input type="url" name="webhook_url" id="form-webhook-url" value="{{ .form.WebhookURL }}" placeholder="https://username:password@example.org" spellcheck="false">
  507. {{ if .form.WebhookSecret }}
  508. <label for="form-webhook-secret">{{ t "form.integration.webhook_secret" }}</label>
  509. <input type="text" name="webhook_secret" id="form-webhook-secret" value="{{ .form.WebhookSecret }}" spellcheck="false" readonly>
  510. {{ end }}
  511. <div class="buttons">
  512. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  513. </div>
  514. </div>
  515. </details>
  516. </form>
  517. <h3>{{ t "page.integration.bookmarklet" }}</h3>
  518. <div class="panel">
  519. <p>{{ t "page.integration.bookmarklet.help" }}</p>
  520. <div class="bookmarklet">
  521. <a href="javascript:location.href='{{ rootURL }}{{ route "bookmarklet" }}?uri='+encodeURIComponent(window.location.href)">{{ t "page.integration.bookmarklet.name" }}</a>
  522. </div>
  523. <p>{{ t "page.integration.bookmarklet.instructions" }}</p>
  524. </div>
  525. {{ end }}