forgejo/routers
zeripath b10c416f9e
Use AJAX for notifications table (#10961)
* Use AJAX for notifications table

Signed-off-by: Andrew Thornton <art27@cantab.net>

* move to separate js

Signed-off-by: Andrew Thornton <art27@cantab.net>

* placate golangci-lint

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Add autoupdating notification count

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Fix wipeall

Signed-off-by: Andrew Thornton <art27@cantab.net>

* placate tests

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Try hidden

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Try hide and hidden

Signed-off-by: Andrew Thornton <art27@cantab.net>

* More auto-update improvements

Only run checker on pages that have a count
Change starting checker to 10s with a back-off to 60s if there is no change

Signed-off-by: Andrew Thornton <art27@cantab.net>

* string comparison!

Signed-off-by: Andrew Thornton <art27@cantab.net>

* as per @silverwind

Signed-off-by: Andrew Thornton <art27@cantab.net>

* add configurability as per @6543

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Add documentation as per @6543

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Use CSRF header not query

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Further JS improvements

Fix @etzelia update notification table request
Fix @silverwind comments

Co-Authored-By: silverwind <me@silverwind.io>
Signed-off-by: Andrew Thornton <art27@cantab.net>

* Simplify the notification count fns

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: silverwind <me@silverwind.io>
2020-04-24 00:57:38 -03:00
..
admin Users should not be able to prohibit their own login (#10970) 2020-04-06 10:23:15 -04:00
api/v1 enable ENABLE_HARD_LINE_BREAK by default (#11162) 2020-04-21 23:13:56 +01:00
dev Display ui time with customize time location (#7792) 2019-08-15 22:46:21 +08:00
org Add Organization Wide Labels (#10814) 2020-04-01 01:14:46 -03:00
private Prevent clones and pushes to disabled wiki (#11131) 2020-04-19 15:26:58 +01:00
repo Add issue subscription check to API (#10967) 2020-04-21 14:48:53 +01:00
routes Add single release page and latest redirect (#11102) 2020-04-18 11:47:15 -03:00
user Use AJAX for notifications table (#10961) 2020-04-24 00:57:38 -03:00
utils Handle push rejection message in Merge & Web Editor (#10373) 2020-02-22 15:08:48 +02:00
home.go Add detected file language to code search (#10256) 2020-02-20 16:53:55 -03:00
init.go Language statistics bar for repositories (#8037) 2020-02-11 11:34:17 +02:00
install.go Add support for database schema in PostgreSQL (#8819) 2020-01-20 16:45:14 +01:00
metrics.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
swagger_json.go Add gitea-vet (#10948) 2020-04-05 07:20:50 +01:00