]> source.dussan.org Git - gitea.git/commit
Move the stopwatches to the eventsource stream (#14588)
authorzeripath <art27@cantab.net>
Fri, 19 Feb 2021 10:05:35 +0000 (10:05 +0000)
committerGitHub <noreply@github.com>
Fri, 19 Feb 2021 10:05:35 +0000 (11:05 +0100)
commit092299891f07326f65b27e050c7aa8a9595b3445
treedd2eb099539a3bf10d8151396116ba964314a56c
parent430b3b780619bfcdcf0af209e0cba45caa32efbd
Move the stopwatches to the eventsource stream (#14588)

Move the stopwatches to the eventsource stream

Use the /user/events eventsource to update the stopwatches
instead of polling /api/v1/user/stopwatches if the eventsource
is enabled.

Signed-off-by: Andrew Thornton <art27@cantab.net>
routers/events/events.go
web_src/js/features/eventsource.sharedworker.js
web_src/js/features/stopwatch.js