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.
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>
2 years ago
..
components Improve dashboard's repo list performance (#18963) 2 years ago
features Allow commit status popup on /pulls page (#19507) 2 years ago
markup Various Mermaid improvements (#18776) 2 years ago
standalone Add new JS linter rules (#17699) 3 years ago
vendor Restore Accessibility for Dropdown (#16576) 3 years ago
bootstrap.js Show messages for users if the ROOT_URL is wrong, show JavaScript errors (#18971) 2 years ago
index.js Allow commit status popup on /pulls page (#19507) 2 years ago
jquery.js Upgrade jQuery to 3.5.0, remove jQuery-Migrate, fix deprecations (#11055) 4 years ago
serviceworker.js Fix serviceworker output file and misc improvements (#11562) 4 years ago
svg.js Add copy button to markdown code blocks (#17638) 3 years ago
svg.test.js Add copy button to markdown code blocks (#17638) 3 years ago
utils.js Detect dark theme via css variable (#17800) 3 years ago
utils.test.js Fix context popup error (#17398) 3 years ago