1507 Commits (d6068c1cf705e307e660e711f2b3fe0f2769fbb8)

Author SHA1 Message Date
GiteaBot d6068c1cf7 [skip ci] Updated licenses and gitignores 3 years ago
GiteaBot 7118347bae [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot 835f301063 [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot db07aedd32 [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot 404f3484ad [skip ci] Updated translations via Crowdin 3 years ago
Norwin d38ae597e1
Add UI to delete tracked times (#14100)
Co-authored-by: 6543 <6543@obermui.de>
3 years ago
GiteaBot 6a696b93b1 [skip ci] Updated translations via Crowdin 3 years ago
Lunny Xiao 430b3b7806
Fix misleading word on delete repositories' archives (#14737) 3 years ago
GiteaBot cc551dac97 [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot 9c41ad03b4 [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot dc707aea09 [skip ci] Updated translations via Crowdin 3 years ago
zeripath ad43b119a8
Add Password Algorithm option to install page (#14701)
Add Password Algorithm option to install page

Fix #14674 

Co-authored-by: John Olheiser <john.olheiser@gmail.com>
3 years ago
GiteaBot ebddee8d2b [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot 5e5b063c6f [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot f3847c9d82 [skip ci] Updated licenses and gitignores 3 years ago
GiteaBot ed834126a6 [skip ci] Updated translations via Crowdin 3 years ago
a1012112796 ac701637b4
Add dismiss review feature (#12674)
* Add dismiss review feature

refs:
    https://github.blog/2016-10-12-dismissing-reviews-on-pull-requests/
    https://developer.github.com/v3/pulls/reviews/#dismiss-a-review-for-a-pull-request

* change modal ui and error message

* Add unDismissReview api

Signed-off-by: a1012112796 <1012112796@qq.com>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
3 years ago
GiteaBot f180009375 [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot c11db35aec [skip ci] Updated licenses and gitignores 3 years ago
GiteaBot dcd20f4364 [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot a9188631b9 [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot 05365816ab [skip ci] Updated translations via Crowdin 3 years ago
Lunny Xiao 0cd87d64ff
Update docs and comments to remove macaron (#14491) 3 years ago
GiteaBot 25b6255b92 [skip ci] Updated translations via Crowdin 3 years ago
a1012112796 f19da14c34
enhancement: add signoff option in commit form (#14516)
Signed-off-by: a1012112796 <1012112796@qq.com>
3 years ago
delvh aec8029277
Fix missing locale bug introduced by #14429 (#14513)
Fixes #14512
3 years ago
GiteaBot e45bf12a34 [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot fe5266a25b [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot 2e90a256be [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot 1080b27a39 [skip ci] Updated translations via Crowdin 3 years ago
Jui-Nan Lin c10503afec
[Feature] add precise search type for Elastic Search (#12869)
* feat: add type query parameters for specifying precise search

* feat: add select dropdown in search box

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
3 years ago
GiteaBot 5845c87b31 [skip ci] Updated translations via Crowdin 3 years ago
Brad Albright a598877fdf
Cron job to cleanup hook_task table (#13080)
Close **Prune hook_task Table (#10741)**

Added a cron job to delete webhook deliveries in the hook_task table. It can be turned on/off and the schedule controlled globally via app.ini. The data can be deleted by either the age of the delivery which is the default or by deleting the all but the most recent deliveries _per webhook_.

Note: I had previously submitted pr #11416  but I closed it when I realized that I had deleted per repository instead of per webhook. Also, I decided allowing the settings to be overridden via the ui was overkill. Also this version allows the deletion by age which is probably what most people would want.
3 years ago
GiteaBot afbddf1f0e [skip ci] Updated translations via Crowdin 3 years ago
Lunny Xiao 6433ba0ec3
Move macaron to chi (#14293)
Use [chi](https://github.com/go-chi/chi) instead of the forked [macaron](https://gitea.com/macaron/macaron). Since macaron and chi have conflicts with session share, this big PR becomes a have-to thing. According my previous idea, we can replace macaron step by step but I'm wrong. :( Below is a list of big changes on this PR.

- [x] Define `context.ResponseWriter` interface with an implementation `context.Response`.
- [x] Use chi instead of macaron, and also a customize `Route` to wrap chi so that the router usage is similar as before.
- [x] Create different routers for `web`, `api`, `internal` and `install` so that the codes will be more clear and no magic .
- [x] Use https://github.com/unrolled/render instead of macaron's internal render
- [x] Use https://github.com/NYTimes/gziphandler instead of https://gitea.com/macaron/gzip
- [x] Use https://gitea.com/go-chi/session which is a modified version of https://gitea.com/macaron/session and removed `nodb` support since it will not be maintained. **BREAK**
- [x] Use https://gitea.com/go-chi/captcha which is a modified version of https://gitea.com/macaron/captcha
- [x] Use https://gitea.com/go-chi/cache which is a modified version of https://gitea.com/macaron/cache
- [x] Use https://gitea.com/go-chi/binding which is a modified version of https://gitea.com/macaron/binding
- [x] Use https://github.com/go-chi/cors instead of https://gitea.com/macaron/cors
- [x] Dropped https://gitea.com/macaron/i18n and make a new one in `code.gitea.io/gitea/modules/translation`
- [x] Move validation form structs from `code.gitea.io/gitea/modules/auth` to `code.gitea.io/gitea/modules/forms` to avoid dependency cycle.
- [x] Removed macaron log service because it's not need any more. **BREAK**
- [x] All form structs have to be get by `web.GetForm(ctx)` in the route function but not as a function parameter on routes definition.
- [x] Move Git HTTP protocol implementation to use routers directly.
- [x] Fix the problem that chi routes don't support trailing slash but macaron did.
- [x] `/api/v1/swagger` now will be redirect to `/api/swagger` but not render directly so that `APIContext` will not create a html render. 

Notices:
- Chi router don't support request with trailing slash
- Integration test `TestUserHeatmap` maybe mysql version related. It's failed on my macOS(mysql 5.7.29 installed via brew) but succeed on CI.

Co-authored-by: 6543 <6543@obermui.de>
3 years ago
GiteaBot 3adbbb4255 [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot efe4235412 [skip ci] Updated translations via Crowdin 3 years ago
Andrew Bezold bc05ddc0eb
Redirect on changed user and org name (#11649)
* Add redirect for user

* Add redirect for orgs

* Add user redirect test

* Appease linter

* Add comment to DeleteUserRedirect function

* Fix locale changes

* Fix GetUserByParams

* Fix orgAssignment

* Remove debug logging

* Add redirect prompt

* Dont Export DeleteUserRedirect & only use it within a session

* Unexport newUserRedirect

* cleanup

* Fix & Dedub API code

* Format Template

* Add Migration & rm dublicat

* Refactor: unexport newRepoRedirect() & rm dedub del exec

* if this fails we'll need to re-rename the user directory

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
3 years ago
GiteaBot 4c3ccb096e [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot e35a2b65bc [skip ci] Updated licenses and gitignores 3 years ago
GiteaBot 4b7d85bfa5 [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot 800c436b0b [skip ci] Updated translations via Crowdin 3 years ago
delvh 9872b8d97a
Improve Description in new/ edit Project template (#14429)
Fixes #14358

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
3 years ago
GiteaBot 4d4cace5e7 [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot e35d1bf502 [skip ci] Updated translations via Crowdin 3 years ago
6543 a0e424da85
Enhance Ghost comment mitigation Settings (#14392)
* refactor models.DeleteComment and delete related reactions too

* use deleteComment for UserDeleteWithCommentsMaxDays in DeleteUser

* nits

* Use time.Duration as other time settings have

* docs

* Resolve Fixme & fix potential deadlock

* Disabled by Default

* Update Config Value Description

* switch args

* Update models/issue_comment.go

Co-authored-by: zeripath <art27@cantab.net>

Co-authored-by: zeripath <art27@cantab.net>
3 years ago
GiteaBot 0e2e73410e [skip ci] Updated translations via Crowdin 3 years ago
EV3R4 af7054511e
Add TrN for repository limit (#12492)
* Added TrN for repository limit

* Removed form.reach_limit_of_creation_0

* disable Create Button if user can not create

Co-authored-by: 6543 <6543@obermui.de>
3 years ago
GiteaBot aa4c33b43d [skip ci] Updated translations via Crowdin 3 years ago
GiteaBot c05c0a1512 [skip ci] Updated translations via Crowdin 3 years ago