summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix load time bug (#14508)Lunny Xiao2021-01-291-4/+10
|
* Fix missing locale bug introduced by #14429 (#14513)delvh2021-01-291-0/+1
| | | Fixes #14512
* [docs] Add zh-tw Translations (#14507)kevinlin182021-01-2921-70/+1107
|
* Fix migration v141 (#14387)65432021-01-283-1/+109
| | | | | | | | | | | | | | | | | | | | | | | | | * Fix mig 141 * Add Migration to fix it * update null values to false first * Alter Table if posible * use dropTableColumns instead of recreateTable * MySQL use Alter * Postgres use Alter * Update models/migrations/v167.go * Apply suggestions from code review * use 2x add col & 2x update & 2x drop col * let sqlite be the only issue * use recreate since it just WORKS
* Extend TestUserOrgs to cover permission cases (#14495)65432021-01-281-11/+38
| | | | | * TestMyOrgs: add unauthorized test * Extend TestUserOrgs, to cover permission cases
* Add some Unit-Tests (#14500)65432021-01-286-9/+306
| | | | | | | | | | | * fix url * modules/auth/pa: coverage: 40#.0% * modules/base coverage: 67.6% -> 89.9% * modules/cache coverage: 0% -> 12.0% * modules/convert coverage: 27.1% -> 29.7%
* Vendor Update (#14496)65432021-01-28403-14240/+29620
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * update code.gitea.io/sdk/gitea v0.13.1 -> v0.13.2 * update github.com/go-swagger/go-swagger v0.25.0 -> v0.26.0 * update github.com/google/uuid v1.1.2 -> v1.2.0 * update github.com/klauspost/compress v1.11.3 -> v1.11.7 * update github.com/lib/pq 083382b7e6fc -> v1.9.0 * update github.com/markbates/goth v1.65.0 -> v1.66.1 * update github.com/mattn/go-sqlite3 v1.14.4 -> v1.14.6 * update github.com/mgechev/revive 246eac737dc7 -> v1.0.3 * update github.com/minio/minio-go/v7 v7.0.6 -> v7.0.7 * update github.com/niklasfasching/go-org v1.3.2 -> v1.4.0 * update github.com/olivere/elastic/v7 v7.0.21 -> v7.0.22 * update github.com/pquerna/otp v1.2.0 -> v1.3.0 * update github.com/xanzy/go-gitlab v0.39.0 -> v0.42.0 * update github.com/yuin/goldmark v1.2.1 -> v1.3.1
* [skip ci] Updated translations via CrowdinGiteaBot2021-01-281-1/+1
|
* Fix display since time round (#14226)Lunny Xiao2021-01-282-37/+152
| | | | | | | * Fix display since time round * Fix since time * Fix tests
* Fix JSON Header response (#14499)65432021-01-271-1/+1
|
* [skip ci] Updated translations via CrowdinGiteaBot2021-01-271-0/+2
|
* Fix access log (#14475)Lunny Xiao2021-01-2710-72/+129
| | | | | | Fix #14121, #14478. The `AccessLog` middleware has to be after `Contexter` or `APIContexter` so that we can get `LoginUserName` if possible. And also there is a **BREAK** change that it removed internal API access log.
* Use gitea.svg for public/img/gitea-gitea.svg instead of logo.svg (#14479)Kyle D2021-01-271-1/+1
|
* Fix captcha (#14488)Lunny Xiao2021-01-279-49/+30
| | | | Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lauris BH <lauris@nix.lv>
* Fix switch language (#14484)Lunny Xiao2021-01-271-6/+4
| | | | Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lauris BH <lauris@nix.lv>
* Fix: url.Values map was not initialized (#14485)PhilAtWysdom2021-01-271-0/+3
| | | | | Values map was not initialized, leading to error 500 on submission of initial configuration Co-authored-by: 6543 <6543@obermui.de>
* [skip ci] Updated translations via CrowdinGiteaBot2021-01-271-0/+4
|
* Fix bug that username missed on issue list assignee filter (#14481)Lunny Xiao2021-01-271-2/+2
| | | Co-authored-by: 6543 <6543@obermui.de>
* [skip ci] Updated translations via CrowdinGiteaBot2021-01-271-0/+1
|
* [Feature] add precise search type for Elastic Search (#12869)Jui-Nan Lin2021-01-2712-25/+77
| | | | | | | | * 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>
* Print usefull error if SQLite is used in settings but not supported (#14476)65432021-01-271-5/+8
| | | | | * move log output to points where they are relefant * check explicit of sqlite3 in settings
* [skip ci] Updated translations via CrowdinGiteaBot2021-01-261-0/+3
|
* Fix bug because of duplicated join (#14454)Lunny Xiao2021-01-261-2/+7
| | | | | | | | | | | | * Fix bug because of duplicated join * Move join into setupsession * Fix bug * Fix bug Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lauris BH <lauris@nix.lv>
* Cron job to cleanup hook_task table (#13080)Brad Albright2021-01-267-0/+251
| | | | | | | | | 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.
* Fix panic 500 page rendering (#14474)Lunny Xiao2021-01-261-1/+2
|
* [skip ci] Updated translations via CrowdinGiteaBot2021-01-261-0/+2
|
* Move macaron to chi (#14293)Lunny Xiao2021-01-26353-20734/+5412
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* [skip ci] Updated translations via CrowdinGiteaBot2021-01-263-17/+77
|
* Fix incorrect key name so registerManualConfirm setting works as expected. ↵Dofri Jónsson2021-01-261-1/+1
| | | | (#14455)
* [skip ci] Updated translations via CrowdinGiteaBot2021-01-241-0/+4
|
* Use caddy's certmagic library for extensible/robust ACME handling (#14177)techknowlogick2021-01-25437-4270/+56286
| | | | | | | | | | * use certmagic for more extensible/robust ACME cert handling * accept TOS based on config option Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv>
* Redirect on changed user and org name (#11649)Andrew Bezold2021-01-2425-64/+325
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* chore: bump minio to RELEASE.2021-01-16T02-19-44Z (#14445)wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf2021-01-241-1/+1
| | | | - image: minio/minio:RELEASE.2020-10-09T22-55-05Z + image: minio/minio:RELEASE.2021-01-16T02-19-44Z
* [skip ci] Updated translations via CrowdinGiteaBot2021-01-242-0/+22
|
* CI: skip build steps for cron update works (#14443)a10121127962021-01-241-0/+24
| | | Signed-off-by: a1012112796 <1012112796@qq.com>
* [skip ci] Updated licenses and gitignoresGiteaBot2021-01-24397-13257/+12501
|
* [skip ci] Updated translations via CrowdinGiteaBot2021-01-231-0/+1
|
* just overload to not get it by mistake again ... (#14440)65432021-01-231-0/+5
|
* [skip ci] Updated translations via CrowdinGiteaBot2021-01-2314-14/+0
|
* Add link to packages in openSUSE build service (#14439)Klaus Vink Slott2021-01-231-0/+5
| | | * Link to OpenSUSE build service
* Improve Description in new/ edit Project template (#14429)delvh2021-01-232-3/+4
| | | | | | Fixes #14358 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: 6543 <6543@obermui.de>
* Don't show "Reference in new issue" when issues unit is globally disabled ↵Jimmy Praet2021-01-231-1/+3
| | | | | (#14437) Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* CI: Update license & gitignore by cron (#14419)a10121127962021-01-231-0/+39
| | | | | | | do generate-license & generate-gitignore by cron close #12684 Signed-off-by: a1012112796 <1012112796@qq.com>
* Fix close/reopen with comment (#14436)Jimmy Praet2021-01-231-1/+1
| | | it previously only worked for the simple textarea, and not for the rich textarea
* Add german translation guidelines (#14283)kolaente2021-01-226-0/+187
| | | | | | | | | | * Add german translation guidelines * Add German Language to Docs * add Translation cateory & move guidelines into it Co-authored-by: kolaente <k@knt.li> Co-authored-by: 6543 <6543@obermui.de>
* [skip ci] Updated translations via CrowdinGiteaBot2021-01-221-3/+15
|
* Fix lfs preview bug (#14428)Lunny Xiao2021-01-221-1/+4
|
* [skip ci] Updated translations via CrowdinGiteaBot2021-01-221-1/+0
|
* Bump gsap from 3.5.1 to 3.6.0 (#14410)dependabot[bot]2021-01-221-3/+3
| | | | | | | | | | | Bumps [gsap](https://github.com/greensock/GSAP) from 3.5.1 to 3.6.0. - [Release notes](https://github.com/greensock/GSAP/releases) - [Commits](https://github.com/greensock/GSAP/compare/3.5.1...3.6.0) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: Lauris BH <lauris@nix.lv>
* Enhance Ghost comment mitigation Settings (#14392)65432021-01-2114-41/+72
| | | | | | | | | | | | | | | | | | | | | | | | | * 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>