You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/routers/web
Gusted 076eaad743
Improve dashboard's repo list performance (#18963)
* Improve dashboard's repo list performance

- Avoid a lot of database lookups for all the repo's, by adding a
undocumented "minimal" mode for this specific task, which returns the
data that's only needed by this list which doesn't require any database
lookups.
- Makes fetching these list faster.
- Less CPU overhead when a user visits home page.

* Refactor javascript code + fix Fork icon

- Use async in the function so we can use `await`.
- Remove `archivedFilter` check for count, as it doesn't make sense to
  show the count of repos when you can't even see them(as they are
  filited away).

* Add `count_only`

* Remove uncessary code

* Improve comment

Co-authored-by: delvh <dev.lh@web.de>

* Update web_src/js/components/DashboardRepoList.js

Co-authored-by: delvh <dev.lh@web.de>

* Update web_src/js/components/DashboardRepoList.js

Co-authored-by: delvh <dev.lh@web.de>

* By default apply minimal mode

* Remove `minimal` paramater

* Refactor count header

* Simplify init

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>

Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
3 years ago
..
admin Use a struct as test options (#19393) 3 years ago
auth Use a struct as test options (#19393) 3 years ago
dev
events Improve Stopwatch behavior (#18930) 3 years ago
explore Never use /api/v1 from Gitea UI Pages (#19318) 3 years ago
feed
misc Fix panic in team repos API (#19431) 3 years ago
org Never use /api/v1 from Gitea UI Pages (#19318) 3 years ago
repo Improve dashboard's repo list performance (#18963) 3 years ago
user User specific repoID or xorm builder conditions for issue search (#19475) 3 years ago
auth.go Let web and API routes have different auth methods group (#19168) 3 years ago
auth_windows.go Let web and API routes have different auth methods group (#19168) 3 years ago
base.go
goget.go Refactor legacy `unknwon/com` package, improve golangci lint (#19284) 3 years ago
home.go
metrics.go
nodeinfo.go
swagger_json.go
web.go Fix middleware function's placements for some `/user/...` (#19377) 3 years ago