0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-29 01:46:21 +01:00
gitea/modules/setting
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
..
cache.go Cache last commit to accelerate the repository directory page visit (#10069) 2020-02-01 19:11:32 +00:00
cors.go Movde dependents on macaron from modules/setting (#10050) 2020-01-29 09:47:46 +02:00
cron.go
database_sqlite.go
database_test.go
database.go Fix SQLite concurrency problems by using BEGIN IMMEDIATE (#10368) 2020-02-27 07:51:37 +08:00
git.go Make PR message on pushes configurable (#10664) 2020-03-08 08:34:38 -05:00
indexer_test.go
indexer.go Add detected file language to code search (#10256) 2020-02-20 16:53:55 -03:00
log.go
mailer.go
markup.go
migrations.go
queue.go Add Unique Queue infrastructure and move TestPullRequests to this (#9856) 2020-02-02 23:19:58 +00:00
repository.go
service.go
session.go Movde dependents on macaron from modules/setting (#10050) 2020-01-29 09:47:46 +02:00
setting.go Use AJAX for notifications table (#10961) 2020-04-24 00:57:38 -03:00
task.go
webhook.go Add Matrix webhook (#10831) 2020-03-28 15:09:55 +02:00