summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* add `/assets` as root dir of public files (#15219)a10121127962021-04-2812-26/+29
| | | | | | | | | | | | | | | | | | | | | | | | | * add `/assets` as root dir of public files Signed-off-by: a1012112796 <1012112796@qq.com> * move serviceworker.js * make fmt * fix some link * fix test * Apply suggestions from code review Co-authored-by: silverwind <me@silverwind.io> * Apply suggestions from code review Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: zeripath <art27@cantab.net>
* Remove x-ua-compatible header (#15640)silverwind2021-04-281-1/+0
| | | | The header is deprecated since IE 11 so it only serves to support IE 10 and below which are browsers which are long unsupported now.
* not update updated uinx for `git gc` (#15637)a10121127962021-04-281-1/+1
| | | | | fix #15634 Signed-off-by: a1012112796 <1012112796@qq.com>
* [skip ci] Updated translations via CrowdinGiteaBot2021-04-271-0/+48
|
* Fix commit graph author link (#15627)zeripath2021-04-261-1/+1
| | | | | The author link on the commit graph is incorrect and isn't providing a link to the author. Signed-off-by: Andrew Thornton <art27@cantab.net>
* fix webhook timeout bug (#15613)Lunny Xiao2021-04-252-10/+7
| | | * Also fix the potential problem in httplib
* Update config-cheat-sheet.en-us.md (#15606)Dong Nguyen2021-04-241-1/+1
| | | Add more guide about `PROVIDER_CONFIG` when `PROVIDER` is `db` (https://github.com/go-gitea/gitea/issues/14016)
* Update JS dependencies (#15591)silverwind2021-04-2417-3989/+16249
| | | | | | | | | | | | | * Update JS dependencies - Update all JS dependencies - Regenerate SVGs - Remove unused postcss dependency - Remove removed webpack option * re-add postcss Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Resolve panic on failed interface conversion in migration v156 (#15604)techknowlogick2021-04-241-1/+1
| | | | | go panics otherwise with `panic: interface conversion: error is git.ErrNotExist, not *git.ErrNotExist`, thanks to Codeberg/Andi for reporting this. Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Attachment support repository route (#15580)Lunny Xiao2021-04-231-0/+1
|
* Fix go-fuzz (#15596)65432021-04-231-6/+18
| | | | | | | | | * Fix go-fuzz followup of https://github.com/go-gitea/gitea/pull/15175 * simplify * enhance
* [skip ci] Updated translations via CrowdinGiteaBot2021-04-231-0/+13
|
* [Vendor] Update directly used dependencys (#15593)65432021-04-22558-24439/+31850
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * update github.com/blevesearch/bleve v2.0.2 -> v2.0.3 * github.com/denisenkom/go-mssqldb v0.9.0 -> v0.10.0 * github.com/editorconfig/editorconfig-core-go v2.4.1 -> v2.4.2 * github.com/go-chi/cors v1.1.1 -> v1.2.0 * github.com/go-git/go-billy v5.0.0 -> v5.1.0 * github.com/go-git/go-git v5.2.0 -> v5.3.0 * github.com/go-ldap/ldap v3.2.4 -> v3.3.0 * github.com/go-redis/redis v8.6.0 -> v8.8.2 * github.com/go-sql-driver/mysql v1.5.0 -> v1.6.0 * github.com/go-swagger/go-swagger v0.26.1 -> v0.27.0 * github.com/lib/pq v1.9.0 -> v1.10.1 * github.com/mattn/go-sqlite3 v1.14.6 -> v1.14.7 * github.com/go-testfixtures/testfixtures v3.5.0 -> v3.6.0 * github.com/issue9/identicon v1.0.1 -> v1.2.0 * github.com/klauspost/compress v1.11.8 -> v1.12.1 * github.com/mgechev/revive v1.0.3 -> v1.0.6 * github.com/microcosm-cc/bluemonday v1.0.7 -> v1.0.8 * github.com/niklasfasching/go-org v1.4.0 -> v1.5.0 * github.com/olivere/elastic v7.0.22 -> v7.0.24 * github.com/pelletier/go-toml v1.8.1 -> v1.9.0 * github.com/prometheus/client_golang v1.9.0 -> v1.10.0 * github.com/xanzy/go-gitlab v0.44.0 -> v0.48.0 * github.com/yuin/goldmark v1.3.3 -> v1.3.5 * github.com/6543/go-version v1.2.4 -> v1.3.1 * do github.com/lib/pq v1.10.0 -> v1.10.1 again ...
* Raw file view tweaks (#15520)silverwind2021-04-225-13/+27
| | | | | | | | | | | - Limit SVG images to 600px width - Adjust size of view toggle buttons to match other buttons - Make Edit/Delete buttons easier to click Had to create a separate CSS file because the less parser can not parse CSS4 case-insensitive attribute selectors which are widely supported by browsers. Fixes: https://github.com/go-gitea/gitea/issues/15515
* [Vendor] update certmagic (#15590)65432021-04-22177-1979/+4720
| | | | | * update github.com/caddyserver/certmagic v0.12.0 -> v0.13.0 * migrate
* Fix missing storage init (#15589)Lunny Xiao2021-04-221-0/+5
|
* If the default branch is not present do not report error on stats indexing ↵zeripath2021-04-221-1/+1
| | | | | | | | | | | | (follow-up of #15546) (#15583) #15546 doesn't completely fix this problem because the error returned is an ObjectNotExist error not a BranchNotExist error. Add test for ErrObjectNotExist too Fix #15257 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix docker enviroment variable from TYPE to DB_TYPE (#15585)Björn Heinrichs2021-04-222-4/+4
| | | As documented in https://docs.gitea.io/en-us/config-cheat-sheet/ the database type is defined using db_type not type.
* Bump unrolled/render to v1.1.0 (#15581)Nathan Smith2021-04-2210-32/+97
| | | v1.1.0 has improved buffer pooling
* If the default branch is not present do not report error on stats indexing ↵zeripath2021-04-221-1/+5
| | | | | | | | | | | | | | | (#15546) * If the default branch is not present do not report error on stats indexing Fix #15257 Signed-off-by: Andrew Thornton <art27@cantab.net> * as per lunny Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Add placeholder text to deploy key textarea (#15575)zeripath2021-04-211-1/+1
| | | | | | | | | | | * Add placeholder text to deploy key textarea Related #15574 Signed-off-by: Andrew Thornton <art27@cantab.net> * Update templates/repo/settings/deploy_keys.tmpl * Update templates/repo/settings/deploy_keys.tmpl
* Fix NPE on view commit with notes (#15561)zeripath2021-04-211-1/+8
| | | | | | Fix #15558 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix lfs management find (#15537)Lunny Xiao2021-04-214-4/+7
| | | | | | | | | Fix #15236 * Do not do 40byte conversion within ParseTreeLine * Missed a to40ByteSHA Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Andrew Thornton <art27@cantab.net>
* Output node min version variable (#15562)Kyle D2021-04-211-1/+2
|
* [skip ci] Updated translations via CrowdinGiteaBot2021-04-211-0/+4
|
* Project board improvements (#15429)silverwind2021-04-207-104/+141
| | | | | | | | | | | | | | | | | | | * Project board improvements - Fix link colors - Extract CSS to own file - Various minor tweaks to make it look better Fixes: https://github.com/go-gitea/gitea/issues/15424 Fixes: https://github.com/go-gitea/gitea/issues/15506 Fixes: https://github.com/go-gitea/gitea/pull/15511 * fix squashed cards on small view area * more css fixes, add second row from issue list Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Added OpenAPI document link to usage (#15535)Nathan Zook2021-04-191-0/+3
| | | | | | | | | | | | | | * Added OpenAPI document link to usage The OpenAPI document at /api/swagger.v1.json needs an obvious reference. Sadly, I am English monolingual, so someone else is going to have to do the other languages. In the mean time, this PR should help anyone looking for the file. * Update docs/content/doc/developers/api-usage.en-us.md Co-authored-by: a1012112796 <1012112796@qq.com> Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: a1012112796 <1012112796@qq.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* [skip ci] Updated translations via CrowdinGiteaBot2021-04-203-3/+78
|
* Refactor renders (#15175)Lunny Xiao2021-04-1941-626/+1026
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Refactor renders * Some performance optimization * Fix comment * Transform reader * Fix csv test * Fix test * Fix tests * Improve optimaziation * Fix test * Fix test * Detect file encoding with reader * Improve optimaziation * reduce memory usage * improve code * fix build * Fix test * Fix for go1.15 * Fix render * Fix comment * Fix lint * Fix test * Don't use NormalEOF when unnecessary * revert change on util.go * Apply suggestions from code review Co-authored-by: zeripath <art27@cantab.net> * rename function * Take NormalEOF back Co-authored-by: zeripath <art27@cantab.net>
* Fix a broken link in customizing-gitea.en-us.md (#15543)Raphael Kruse2021-04-191-1/+1
|
* Change the chinese discuss link to discourse (#15533)Lunny Xiao2021-04-182-2/+2
|
* [skip ci] Updated translations via CrowdinGiteaBot2021-04-181-0/+14
|
* Fix bug on commit graph (#15517)Lunny Xiao2021-04-171-4/+5
|
* [skip ci] Updated translations via CrowdinGiteaBot2021-04-172-0/+2
|
* Prevent migration 156 failure if tag commit missing (#15519)zeripath2021-04-161-0/+11
| | | | | | | | | | It is possible that tag commits could be deleted or missing from repos. This causes migration 156 to fail and breaks upgrade. This PR simply logs the failure. Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de>
* Send size to /avatars if requested (#15459)zeripath2021-04-172-3/+11
| | | | | | | If an avatar is requested in a particular size ensure that /avatars also gets the size request Fix #15453 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Add tests for clone from wiki (#15513)Lunny Xiao2021-04-161-0/+51
| | | Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Fix Benchmark tests, remove a broken one & add two new (#15250)65432021-04-166-99/+100
| | | | | | | | | | | | | | | * Benchmark Integration TESTS * CI: add benching-arm64 pipeline * BenchmarkRepo: name test case tests * Fix BenchmarkRepoBranchCommit beside Create new Branch * CI: benching use amd64 * rm total broken "BenchmarkRepo" * dont run benchmark in CI
* frontport: 1.14.1 changelog (#15503)techknowlogick2021-04-162-1/+31
| | | Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* add well-known config for OIDC (#15355)techknowlogick2021-04-154-0/+23
| | | | | | | | | | | | | | * add well-known config for OIDC * spacing per feedback * Update oidc_wellknown.tmpl * add id_token * Update oidc_wellknown.tmpl Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix missing icons and colorpicker when mounted on suburl (#15501)zeripath2021-04-161-2/+2
| | | | | | | | | | | * Fix missing icons and colorpicker when mounted on suburl Signed-off-by: Andrew Thornton <art27@cantab.net> * as per silverwind Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv>
* Fix: npx webpack make: *** [Makefile:699: public/js/index.js] Error -… ↵Kindyroo2021-04-151-3/+5
| | | | | | | | | | | | (#15465) * Fix: npx webpack make: *** [Makefile:699: public/js/index.js] Error -1073741819 * Update webpack.config.js Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: silverwind <me@silverwind.io>
* Fix bug clone wiki (#15499)Lunny Xiao2021-04-151-0/+10
| | | | | | | Fix #15494 Co-authored-by: Lauris BH <lauris@nix.lv>
* Performance improvement for list pull requests (#15447)Lunny Xiao2021-04-155-29/+72
|
* Disable Stars config option (#14653)Kyle D2021-04-1516-27/+83
| | | | | | | * Add config option to disable stars * Replace "stars" with watched in user profile * Add documentation
* Specify relation between multiple signing options (#15496)firesoft-de2021-04-151-4/+4
|
* migration: github: if rate limit is not enabled, ignore it (#15490)65432021-04-151-0/+5
|
* Query the DB for the hash before inserting in to email_hash (#15457)zeripath2021-04-151-0/+5
| | | | | | | | | Some postgres users have logging which logs even failed transactions. So just query the db before trying to insert. Fix #15451 Signed-off-by: Andrew Thornton art27@cantab.net Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Make build scripts compatible with node 12 (#15479)silverwind2021-04-153-4/+6
| | | | | | | | | | * Make build scripts compatible with node 12 "fs/promises" is not in node 12, use a more compatible way to import it. Also, lock major down versions of the image build dependencies to prevent future surprises. * add node_modules dependency
* Ensure review dismissal only dismisses the correct review (#15477)zeripath2021-04-152-8/+58
| | | | | Fix #15472 Signed-off-by: Andrew Thornton art27@cantab.net