integrations.html 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551
  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.LinkwardenEnabled }}open{{ end }}>
  141. <summary>Linkwarden</summary>
  142. <div class="form-section">
  143. <label>
  144. <input type="checkbox" name="linkwarden_enabled" value="1" {{ if .form.LinkwardenEnabled }}checked{{ end }}> {{ t "form.integration.linkwarden_activate" }}
  145. </label>
  146. <label for="form-linkwarden-url">{{ t "form.integration.linkwarden_endpoint" }}</label>
  147. <input type="url" name="linkwarden_url" id="form-linkwarden-url" value="{{ .form.LinkwardenURL }}" placeholder="https://linkwarden.app" spellcheck="false">
  148. <label for="form-linkwarden-api-key">{{ t "form.integration.linkwarden_api_key" }}</label>
  149. <input type="text" name="linkwarden_api_key" id="form-linkwarden-api-key" value="{{ .form.LinkwardenAPIKey }}" spellcheck="false">
  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.MatrixBotEnabled }}open{{ end }}>
  156. <summary>Matrix Bot</summary>
  157. <div class="form-section">
  158. <label>
  159. <input type="checkbox" name="matrix_bot_enabled" value="1" {{ if .form.MatrixBotEnabled }}checked{{ end }}> {{ t "form.integration.matrix_bot_activate" }}
  160. </label>
  161. <label for="form-matrix-bot-user">{{ t "form.integration.matrix_bot_user" }}</label>
  162. <input type="text" name="matrix_bot_user" id="form-matrix-bot-user" value="{{ .form.MatrixBotUser }}" spellcheck="false">
  163. <label for="form-matrix-password">{{ t "form.integration.matrix_bot_password" }}</label>
  164. <input type="password" name="matrix_bot_password" id="form-matrix-password" value="{{ .form.MatrixBotPassword }}" spellcheck="false">
  165. <label for="form-matrix-url">{{ t "form.integration.matrix_bot_url" }}</label>
  166. <input type="url" name="matrix_bot_url" id="form-matrix-url" value="{{ .form.MatrixBotURL }}" spellcheck="false">
  167. <label for="form-matrix-chat-id">{{ t "form.integration.matrix_bot_chat_id" }}</label>
  168. <input type="text" name="matrix_bot_chat_id" id="form-matrix-chat-id" value="{{ .form.MatrixBotChatID }}" 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.NotionEnabled }}open{{ end }}>
  175. <summary>Notion</summary>
  176. <div class="form-section">
  177. <label>
  178. <input type="checkbox" name="notion_enabled" value="1" {{ if .form.NotionEnabled }}checked{{ end }}> {{ t "form.integration.notion_activate" }}
  179. </label>
  180. <label for="form-notion-token">{{ t "form.integration.notion_token" }}</label>
  181. <input type="password" name="notion_token" id="form-notion-token" value="{{ .form.NotionToken }}" spellcheck="false">
  182. <label for="form-notion-page-id">{{ t "form.integration.notion_page_id" }}</label>
  183. <input type="text" name="notion_page_id" id="form-notion-page-id" value="{{ .form.NotionPageID }}" 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.NunuxKeeperEnabled }}open{{ end }}>
  190. <summary>Nunux Keeper</summary>
  191. <div class="form-section">
  192. <label>
  193. <input type="checkbox" name="nunux_keeper_enabled" value="1" {{ if .form.NunuxKeeperEnabled }}checked{{ end }}> {{ t "form.integration.nunux_keeper_activate" }}
  194. </label>
  195. <label for="form-nunux-keeper-url">{{ t "form.integration.nunux_keeper_endpoint" }}</label>
  196. <input type="url" name="nunux_keeper_url" id="form-nunux-keeper-url" value="{{ .form.NunuxKeeperURL }}" placeholder="https://api.nunux.org/keeper" spellcheck="false">
  197. <label for="form-nunux-keeper-api-key">{{ t "form.integration.nunux_keeper_api_key" }}</label>
  198. <input type="text" name="nunux_keeper_api_key" id="form-nunux-keeper-api-key" value="{{ .form.NunuxKeeperAPIKey }}" 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.OmnivoreEnabled }}open{{ end }}>
  205. <summary>Omnivore</summary>
  206. <div class="form-section">
  207. <label>
  208. <input type="checkbox" name="omnivore_enabled" value="1" {{ if .form.OmnivoreEnabled }}checked{{ end }}> {{ t "form.integration.omnivore_activate" }}
  209. </label>
  210. <label for="form-omnivore-api-key">{{ t "form.integration.omnivore_api_key" }}</label>
  211. <input type="text" name="omnivore_api_key" id="form-omnivore-api-key" value="{{ .form.OmnivoreAPIKey }}" spellcheck="false">
  212. <label for="form-omnivore-url">{{ t "form.integration.omnivore_url" }}</label>
  213. <input type="url" name="omnivore_url" id="form-omnivore-url" value="{{ .form.OmnivoreURL }}" placeholder="https://api-prod.omnivore.app/api/graphql" spellcheck="false">
  214. <div class="buttons">
  215. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  216. </div>
  217. </div>
  218. </details>
  219. <details {{ if .form.PinboardEnabled }}open{{ end }}>
  220. <summary>Pinboard</summary>
  221. <div class="form-section">
  222. <label>
  223. <input type="checkbox" name="pinboard_enabled" value="1" {{ if .form.PinboardEnabled }}checked{{ end }}> {{ t "form.integration.pinboard_activate" }}
  224. </label>
  225. <label for="form-pinboard-token">{{ t "form.integration.pinboard_token" }}</label>
  226. <input type="password" name="pinboard_token" id="form-pinboard-token" value="{{ .form.PinboardToken }}" autocomplete="new-password">
  227. <label for="form-pinboard-tags">{{ t "form.integration.pinboard_tags" }}</label>
  228. <input type="text" name="pinboard_tags" id="form-pinboard-tags" value="{{ .form.PinboardTags }}" spellcheck="false">
  229. <label>
  230. <input type="checkbox" name="pinboard_mark_as_unread" value="1" {{ if .form.PinboardMarkAsUnread }}checked{{ end }}> {{ t "form.integration.pinboard_bookmark" }}
  231. </label>
  232. <div class="buttons">
  233. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  234. </div>
  235. </div>
  236. </details>
  237. <details {{ if .form.PocketEnabled }}open{{ end }}>
  238. <summary>Pocket</summary>
  239. <div class="form-section">
  240. <label>
  241. <input type="checkbox" name="pocket_enabled" value="1" {{ if .form.PocketEnabled }}checked{{ end }}> {{ t "form.integration.pocket_activate" }}
  242. </label>
  243. {{ if not .hasPocketConsumerKeyConfigured }}
  244. <label for="form-pocket-consumer-key">{{ t "form.integration.pocket_consumer_key" }}</label>
  245. <input type="text" name="pocket_consumer_key" id="form-pocket-consumer-key" value="{{ .form.PocketConsumerKey }}" spellcheck="false">
  246. {{ end }}
  247. <label for="form-pocket-access-token">{{ t "form.integration.pocket_access_token" }}</label>
  248. <input type="password" name="pocket_access_token" id="form-pocket-access-token" value="{{ .form.PocketAccessToken }}" autocomplete="new-password">
  249. {{ if not .form.PocketAccessToken }}
  250. <p><a href="{{ route "pocketAuthorize" }}">{{ t "form.integration.pocket_connect_link" }}</a></p>
  251. {{ end }}
  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.RaindropEnabled }}open{{ end }}>
  258. <summary>Raindrop</summary>
  259. <div class="form-section">
  260. <label>
  261. <input type="checkbox" name="raindrop_enabled" value="1" {{ if .form.RaindropEnabled }}checked{{ end }}> {{ t "form.integration.raindrop_activate" }}
  262. </label>
  263. <label for="form-raindrop-token">{{ t "form.integration.raindrop_token" }}</label>
  264. <input type="text" name="raindrop_token" id="form-raindrop-token" value="{{ .form.RaindropToken }}" spellcheck="false">
  265. <label for="form-raindrop-collection-id">{{ t "form.integration.raindrop_collection_id" }}</label>
  266. <input type="text" name="raindrop_collection_id" id="form-raindrop-collection-id" value="{{ .form.RaindropCollectionID }}" spellcheck="false">
  267. <label for="form-raindrop-tags">{{ t "form.integration.raindrop_tags" }}</label>
  268. <input type="text" name="raindrop_tags" id="form-raindrop-tags" value="{{ .form.RaindropTags }}" spellcheck="false">
  269. <div class="buttons">
  270. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  271. </div>
  272. </div>
  273. </details>
  274. <details {{ if .form.ReadeckEnabled }}open{{ end }}>
  275. <summary>Readeck</summary>
  276. <div class="form-section">
  277. <label>
  278. <input type="checkbox" name="readeck_enabled" value="1" {{ if .form.ReadeckEnabled }}checked{{ end }}> {{ t "form.integration.readeck_activate" }}
  279. </label>
  280. <label>
  281. <input type="checkbox" name="readeck_only_url" value="1" {{ if .form.ReadeckOnlyURL }}checked{{ end }}> {{ t "form.integration.readeck_only_url" }}
  282. </label>
  283. <label for="form-readeck-url">{{ t "form.integration.readeck_endpoint" }}</label>
  284. <input type="url" name="readeck_url" id="form-readeck-url" value="{{ .form.ReadeckURL }}" placeholder="https://readeck.com" spellcheck="false">
  285. <label for="form-readeck-api-key">{{ t "form.integration.readeck_api_key" }}</label>
  286. <input type="text" name="readeck_api_key" id="form-readeck-api-key" value="{{ .form.ReadeckAPIKey }}" spellcheck="false">
  287. <label for="form-readeck-labels">{{ t "form.integration.readeck_labels" }}</label>
  288. <input type="text" name="readeck_labels" id="form-readeck-labels" value="{{ .form.ReadeckLabels }}" spellcheck="false">
  289. <div class="buttons">
  290. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  291. </div>
  292. </div>
  293. </details>
  294. <details {{ if .form.ReadwiseEnabled }}open{{ end }}>
  295. <summary>Readwise Reader</summary>
  296. <div class="form-section">
  297. <label>
  298. <input type="checkbox" name="readwise_enabled" value="1" {{ if .form.ReadwiseEnabled }}checked{{ end }}> {{ t "form.integration.readwise_activate" }}
  299. </label>
  300. <label for="form-readwise-api-key">{{ t "form.integration.readwise_api_key" }}</label>
  301. <input type="text" name="readwise_api_key" id="form-readwise-api-key" value="{{ .form.ReadwiseAPIKey }}" spellcheck="false">
  302. <p><a href="https://readwise.io/access_token" target="_blank">{{ t "form.integration.readwise_api_key_link" }}</a></p>
  303. <div class="buttons">
  304. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  305. </div>
  306. </div>
  307. </details>
  308. <details {{ if .form.RSSBridgeEnabled }}open{{ end }}>
  309. <summary>RSS-Bridge</summary>
  310. <div class="form-section">
  311. <label>
  312. <input type="checkbox" name="rssbridge_enabled" value="1" {{ if .form.RSSBridgeEnabled }}checked{{ end }}> {{ t "form.integration.rssbridge_activate" }}
  313. </label>
  314. <label for="form-rssbridge-url">{{ t "form.integration.rssbridge_url" }}</label>
  315. <input type="url" name="rssbridge_url" id="form-rssbridge-url" value="{{ .form.RSSBridgeURL }}" spellcheck="false">
  316. <div class="buttons">
  317. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  318. </div>
  319. </div>
  320. </details>
  321. <details {{ if .form.ShaarliEnabled }}open{{ end }}>
  322. <summary>Shaarli</summary>
  323. <div class="form-section">
  324. <label>
  325. <input type="checkbox" name="shaarli_enabled" value="1" {{ if .form.ShaarliEnabled }}checked{{ end }}> {{ t "form.integration.shaarli_activate" }}
  326. </label>
  327. <label for="form-shaarli-url">{{ t "form.integration.shaarli_endpoint" }}</label>
  328. <input type="url" name="shaarli_url" id="form-shaarli-url" value="{{ .form.ShaarliURL }}" placeholder="https://shaarli.example.org" spellcheck="false">
  329. <label for="form-shaarli-api-secret">{{ t "form.integration.shaarli_api_secret" }}</label>
  330. <input type="password" name="shaarli_api_secret" id="form-shaarli-api-secret" value="{{ .form.ShaarliAPISecret }}" autocomplete="new-password">
  331. <div class="buttons">
  332. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  333. </div>
  334. </div>
  335. </details>
  336. <details {{ if .form.ShioriEnabled }}open{{ end }}>
  337. <summary>Shiori</summary>
  338. <div class="form-section">
  339. <label>
  340. <input type="checkbox" name="shiori_enabled" value="1" {{ if .form.ShioriEnabled }}checked{{ end }}> {{ t "form.integration.shiori_activate" }}
  341. </label>
  342. <label for="form-shiori-url">{{ t "form.integration.shiori_endpoint" }}</label>
  343. <input type="url" name="shiori_url" id="form-shiori-url" value="{{ .form.ShioriURL }}" placeholder="https://shiori.example.org" spellcheck="false">
  344. <label for="form-shiori-username">{{ t "form.integration.shiori_username" }}</label>
  345. <input type="text" name="shiori_username" id="form-shiori-username" value="{{ .form.ShioriUsername }}" spellcheck="false">
  346. <label for="form-shiori-password">{{ t "form.integration.shiori_password" }}</label>
  347. <input type="password" name="shiori_password" id="form-shiori-password" value="{{ .form.ShioriPassword }}" autocomplete="new-password">
  348. <div class="buttons">
  349. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  350. </div>
  351. </div>
  352. </details>
  353. <details {{ if .form.TelegramBotEnabled }}open{{ end }}>
  354. <summary>Telegram Bot</summary>
  355. <div class="form-section">
  356. <label>
  357. <input type="checkbox" name="telegram_bot_enabled" value="1" {{ if .form.TelegramBotEnabled }}checked{{ end }}> {{ t "form.integration.telegram_bot_activate" }}
  358. </label>
  359. <label for="form-telegram-bot-token">{{ t "form.integration.telegram_bot_token" }}</label>
  360. <input type="text" name="telegram_bot_token" id="form-telegram-bot-token" value="{{ .form.TelegramBotToken }}" placeholder="bot123456:Abcdefg" spellcheck="false">
  361. <label for="form-telegram-chat-id">{{ t "form.integration.telegram_chat_id" }}</label>
  362. <input type="text" name="telegram_bot_chat_id" id="form-telegram-chat-id" value="{{ .form.TelegramBotChatID }}" spellcheck="false">
  363. <label for="form-telegram-topic-id">{{ t "form.integration.telegram_topic_id" }}</label>
  364. <input type="number" name="telegram_bot_topic_id" id="form-telegram-topic-id" {{ if .form.TelegramBotTopicID }}value="{{ .form.TelegramBotTopicID }}"{{ end }}>
  365. <label>
  366. <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" }}
  367. </label>
  368. <label>
  369. <input type="checkbox" name="telegram_bot_disable_notification" value="1" {{ if .form.TelegramBotDisableNotification }}checked{{ end }}> {{ t "form.integration.telegram_bot_disable_notification" }}
  370. </label>
  371. <label>
  372. <input type="checkbox" name="telegram_bot_disable_buttons" value="1" {{ if .form.TelegramBotDisableButtons }}checked{{ end }}> {{ t "form.integration.telegram_bot_disable_buttons" }}
  373. </label>
  374. <div class="buttons">
  375. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  376. </div>
  377. </div>
  378. </details>
  379. <details {{ if .form.WallabagEnabled }}open{{ end }}>
  380. <summary>Wallabag</summary>
  381. <div class="form-section">
  382. <label>
  383. <input type="checkbox" name="wallabag_enabled" value="1" {{ if .form.WallabagEnabled }}checked{{ end }}> {{ t "form.integration.wallabag_activate" }}
  384. </label>
  385. <label>
  386. <input type="checkbox" name="wallabag_only_url" value="1" {{ if .form.WallabagOnlyURL }}checked{{ end }}> {{ t "form.integration.wallabag_only_url" }}
  387. </label>
  388. <label for="form-wallabag-url">{{ t "form.integration.wallabag_endpoint" }}</label>
  389. <input type="url" name="wallabag_url" id="form-wallabag-url" value="{{ .form.WallabagURL }}" placeholder="http://v2.wallabag.org/" spellcheck="false">
  390. <label for="form-wallabag-client-id">{{ t "form.integration.wallabag_client_id" }}</label>
  391. <input type="text" name="wallabag_client_id" id="form-wallabag-client-id" value="{{ .form.WallabagClientID }}" spellcheck="false">
  392. <label for="form-wallabag-client-secret">{{ t "form.integration.wallabag_client_secret" }}</label>
  393. <input type="password" name="wallabag_client_secret" id="form-wallabag-client-secret" value="{{ .form.WallabagClientSecret }}" autocomplete="new-password">
  394. <label for="form-wallabag-username">{{ t "form.integration.wallabag_username" }}</label>
  395. <input type="text" name="wallabag_username" id="form-wallabag-username" value="{{ .form.WallabagUsername }}" spellcheck="false">
  396. <label for="form-wallabag-password">{{ t "form.integration.wallabag_password" }}</label>
  397. <input type="password" name="wallabag_password" id="form-wallabag-password" value="{{ .form.WallabagPassword }}" autocomplete="new-password">
  398. <div class="buttons">
  399. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  400. </div>
  401. </div>
  402. </details>
  403. <details {{ if .form.WebhookEnabled }}open{{ end }}>
  404. <summary>Webhook</summary>
  405. <div class="form-section">
  406. <label>
  407. <input type="checkbox" name="webhook_enabled" value="1" {{ if .form.WebhookEnabled }}checked{{ end }}> {{ t "form.integration.webhook_activate" }}
  408. </label>
  409. <label for="form-webhook-url">{{ t "form.integration.webhook_url" }}</label>
  410. <input type="url" name="webhook_url" id="form-webhook-url" value="{{ .form.WebhookURL }}" placeholder="https://username:password@example.org" spellcheck="false">
  411. {{ if .form.WebhookSecret }}
  412. <label for="form-webhook-secret">{{ t "form.integration.webhook_secret" }}</label>
  413. <input type="text" name="webhook_secret" id="form-webhook-secret" value="{{ .form.WebhookSecret }}" spellcheck="false" readonly>
  414. {{ end }}
  415. <div class="buttons">
  416. <button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
  417. </div>
  418. </div>
  419. </details>
  420. </form>
  421. <h3>{{ t "page.integration.bookmarklet" }}</h3>
  422. <div class="panel">
  423. <p>{{ t "page.integration.bookmarklet.help" }}</p>
  424. <div class="bookmarklet">
  425. <a href="javascript:location.href='{{ rootURL }}{{ route "bookmarklet" }}?uri='+encodeURIComponent(window.location.href)">{{ t "page.integration.bookmarklet.name" }}</a>
  426. </div>
  427. <p>{{ t "page.integration.bookmarklet.instructions" }}</p>
  428. </div>
  429. {{ end }}