Commit graph

12 commits

Author SHA1 Message Date
Renaud Chaput
d27216dc46
Enforce import order with ESLint () 2023-05-23 17:15:17 +02:00
Renaud Chaput
c8181eb0a4
Enforce stricter rules for Typescript files () 2023-05-09 03:11:56 +02:00
Nick Schonning
ab3f23da91
SUBMIT doesn't exist on XMLHttpRequest () 2023-04-05 10:56:55 +02:00
Nick Schonning
06b68490d1
Enable eslint:recommended ruleset ()
* Enable ESLint recommended ruleset

* Disable failing ESLint recommended rules

* Remove rules shadowed by eslint:recommended
2022-12-19 00:51:37 +09:00
Eugen Rochko
43b5d5e38d
Add logged-out access to the web UI () 2022-09-29 04:39:33 +02:00
Eugen Rochko
59d943e152
Fix alert when failing to save timeline markers in web UI ()
Fix 
2020-12-07 03:23:43 +01:00
Takeshi Umeda
bec8b12bb5
Fix mark as read in notifications to be saved immediately ()
* Fix mark as read in notifications to be saved immediately

* fix code style
2020-10-01 04:17:46 +02:00
ThibG
ff89025979
Add unread notification markers ()
* Add unread notification markers

Fixes 

* Allow IntersectionObserverArticle's children to be updated
2020-09-26 20:57:07 +02:00
ThibG
eaea2311aa
Fix home TL marker code mishandling gaps () 2020-09-16 20:17:40 +02:00
ThibG
cc650bc023
Fix timeline markers in Firefox (regression from ) ()
Unfortunately, Firefox does not support the `keepalive` parameter
I used in the previous PR. However it supports the `navigator.sendBeacon`
API that allows that kind of things, but does not allow setting headers.

Therefore, this PR replaces it with a `sendBeacon` call that passes the
bearer token in the POST data.

Doorkeeper will then handle the auth token out of the box, as long as
it is passed as form data. Passing the query as JSON does not work.
2020-05-29 19:25:57 +02:00
ThibG
5aff2a6957
Fix timeline markers not working on Chrome ()
* Periodically save timeline markers

This saves timeline markers immediately upon message arrival, but not more
than once every 5 minutes.

This does not change how the markers are saved on closing the window,
except that it avoids submitting them if there is no need for it.

* Use the Fetch API when possible instead of XHR on window unload
2020-05-29 16:14:16 +02:00
Eugen Rochko
e445a8af64
Add timeline read markers API ()
Fix 
2019-09-06 13:55:51 +02:00