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/repo
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
..
activity.go Propagate context and ensure git commands run in request context (#17868) 3 years ago
attachment.go Renamed ctx.User to ctx.Doer. (#19161) 3 years ago
blame.go Refactor i18n, use Locale to provide i18n/translation related functions (#18648) 3 years ago
branch.go Make git.OpenRepository accept Context (#19260) 3 years ago
cherry_pick.go Pass gitRepo down to GetRawDiff, since its used for main repo and wiki (#19461) 3 years ago
commit.go Pass gitRepo down to GetRawDiff, since its used for main repo and wiki (#19461) 3 years ago
compare.go Make git.OpenRepository accept Context (#19260) 3 years ago
download.go format with gofumpt (#18184) 3 years ago
editor.go Update HTTP status codes to modern codes (#18063) 3 years ago
editor_test.go Make git.OpenRepository accept Context (#19260) 3 years ago
http.go Remove `git.Command.Run` and `git.Command.RunInDir*` (#19280) 3 years ago
http_test.go
issue.go User specific repoID or xorm builder conditions for issue search (#19475) 3 years ago
issue_content_history.go Remove legacy unmaintained packages, refactor to support change default locale (#19308) 3 years ago
issue_dependency.go Move milestone to models/issues/ (#19278) 3 years ago
issue_label.go Move some issue methods as functions (#19255) 3 years ago
issue_label_test.go Update HTTP status codes to modern codes (#18063) 3 years ago
issue_lock.go Update HTTP status codes to modern codes (#18063) 3 years ago
issue_stopwatch.go Improve Stopwatch behavior (#18930) 3 years ago
issue_test.go format with gofumpt (#18184) 3 years ago
issue_timetrack.go Renamed ctx.User to ctx.Doer. (#19161) 3 years ago
issue_watch.go Update HTTP status codes to modern codes (#18063) 3 years ago
lfs.go Make git.OpenRepository accept Context (#19260) 3 years ago
main_test.go Use a struct as test options (#19393) 3 years ago
middlewares.go Renamed ctx.User to ctx.Doer. (#19161) 3 years ago
migrate.go Use a more general (and faster) method to sanitize URLs with credentials (#19239) 3 years ago
milestone.go Move milestone to models/issues/ (#19278) 3 years ago
packages.go Package registry changes (#19305) 3 years ago
patch.go Renamed ctx.User to ctx.Doer. (#19161) 3 years ago
projects.go Move project files into models/project sub package (#17704) 3 years ago
projects_test.go
pull.go Move milestone to models/issues/ (#19278) 3 years ago
pull_review.go Renamed ctx.User to ctx.Doer. (#19161) 3 years ago
release.go Renamed ctx.User to ctx.Doer. (#19161) 3 years ago
release_test.go
repo.go Improve dashboard's repo list performance (#18963) 3 years ago
search.go Update HTTP status codes to modern codes (#18063) 3 years ago
setting.go When updating mirror repo intervals by API reschedule next update too (#19429) 3 years ago
setting_protected_branch.go Move organization related structs into sub package (#18518) 3 years ago
settings_test.go Move organization related structs into sub package (#18518) 3 years ago
tag.go Move organization related structs into sub package (#18518) 3 years ago
topic.go Renamed ctx.User to ctx.Doer. (#19161) 3 years ago
view.go Refactor readme file renderer (#19502) 3 years ago
webhook.go Add Package Registry (#16510) 3 years ago
wiki.go Make git.OpenRepository accept Context (#19260) 3 years ago
wiki_test.go Make git.OpenRepository accept Context (#19260) 3 years ago