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
Şahin Akkaya 875f5ea6d8
Implement code frequency graph (#29191)
### Overview
This is the implementation of Code Frequency page. This feature was
mentioned on these issues: #18262, #7392.


It adds another tab to Activity page called Code Frequency. Code
Frequency tab shows additions and deletions over time since the
repository existed.


Before:
<img width="1296" alt="image"
src="https://github.com/go-gitea/gitea/assets/32161460/2603504f-aee7-4929-a8c4-fb3412a7a0f6">

After:
<img width="1296" alt="image"
src="https://github.com/go-gitea/gitea/assets/32161460/58c03721-729f-4536-a663-9f337f240963">

---


#### Features
- See additions deletions over time since repository existed
- Click on "Additions" or "Deletions" legend to show only one type of
contribution
- Use the same cache from Contributors page so that the loading of data
will be fast once it is cached by visiting either one of the pages

---------

Co-authored-by: Giteabot <teabot@gitea.io>
12 months ago
..
actions Artifact deletion in actions ui (#27172) 12 months ago
setting Change webhook-type in create-view (#29114) 12 months ago
activity.go Implement contributors graph (#27882) 12 months ago
attachment.go Even more `db.DefaultContext` refactor (#27352) 1 year ago
blame.go Extract linguist code to method (#29168) 12 months ago
branch.go Adjust object format interface (#28469) 1 year ago
cherry_pick.go Refactor locale&string&template related code (#29165) 12 months ago
code_frequency.go Implement code frequency graph (#29191) 12 months ago
commit.go Simplify how git repositories are opened (#28937) 1 year ago
compare.go Start to migrate from `util.OptionalBool` to `optional.Option[bool]` (#29329) 12 months ago
contributors.go Deduplicate translations for contributors graph (#29256) 12 months ago
download.go
editor.go Refactor locale&string&template related code (#29165) 12 months ago
editor_test.go Simplify how git repositories are opened (#28937) 1 year ago
find.go
githttp.go Some refactor for git http (#28995) 1 year ago
githttp_test.go Fix http protocol auth (#27875) 1 year ago
helper.go Improve tree not found page (#26570) 1 year ago
helper_test.go Make web context initialize correctly for different cases (#26726) 1 year ago
issue.go Refactor locale&string&template related code (#29165) 12 months ago
issue_content_history.go Refactor locale&string&template related code (#29165) 12 months ago
issue_dependency.go Upgrade to golangci-lint@v1.55.0 (#27756) 1 year ago
issue_label.go Even more `db.DefaultContext` refactor (#27352) 1 year ago
issue_label_test.go Refactor locale&string&template related code (#29165) 12 months ago
issue_lock.go Penultimate round of `db.DefaultContext` refactor (#27414) 1 year ago
issue_pin.go Fix missing check (#28406) 1 year ago
issue_stopwatch.go Final round of `db.DefaultContext` refactor (#27587) 1 year ago
issue_test.go
issue_timetrack.go Final round of `db.DefaultContext` refactor (#27587) 1 year ago
issue_watch.go Introduce htmx and use it to avoid full page load on `Subscribe` and `Follow` (#28908) 1 year ago
main_test.go make writing main test easier (#27270) 1 year ago
middlewares.go Improve user experience for outdated comments (#29050) 1 year ago
migrate.go Next round of `db.DefaultContext` refactor (#27089) 1 year ago
milestone.go Refactor issue template parsing and fix API endpoint (#29069) 12 months ago
packages.go Fix the display of org level badges (#26504) 1 year ago
patch.go Refactor locale&string&template related code (#29165) 12 months ago
projects.go Refactor locale&string&template related code (#29165) 12 months ago
projects_test.go Move web/api context related testing function into a separate package (#26859) 1 year ago
pull.go Start to migrate from `util.OptionalBool` to `optional.Option[bool]` (#29329) 12 months ago
pull_review.go Load outdated comments when (un)resolving conversation on PR timeline (#29203) 12 months ago
pull_review_test.go Load outdated comments when (un)resolving conversation on PR timeline (#29203) 12 months ago
release.go Show commit status for releases (#29149) 12 months ago
release_test.go Move more functions to db.Find (#28419) 1 year ago
render.go Preserve BOM in web editor (#28935) 1 year ago
repo.go Start to migrate from `util.OptionalBool` to `optional.Option[bool]` (#29329) 12 months ago
search.go
topic.go Next round of `db.DefaultContext` refactor (#27089) 1 year ago
treelist.go
view.go Refactor locale&string&template related code (#29165) 12 months ago
view_test.go
wiki.go Refactor locale&string&template related code (#29165) 12 months ago
wiki_test.go Simplify how git repositories are opened (#28937) 1 year ago