summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add Access-Control-Expose-Headers (#12446)zeripath2020-08-1314-0/+19
| | | | | | Fix #12424 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: silverwind <me@silverwind.io>
* update (#12481)65432020-08-134-16/+16
| | | Co-authored-by: zeripath <art27@cantab.net>
* UI: Update commit signature view (#12473)techknowlogick2020-08-131-1/+1
|
* go1.15 (#12475)techknowlogick2020-08-136-18/+20
| | | | | | | | | | | | | * go1.15 * update makefile xgo version * fix vet issue * update docs to version of go in use * add TODO for asyncpreemptoff Co-authored-by: Lauris BH <lauris@nix.lv>
* [skip ci] Updated translations via CrowdinGiteaBot2020-08-132-0/+2
|
* Do not add prefix on http/https submodule links (#12477)zeripath2020-08-132-3/+4
| | | | | Fix #12345 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix ignored login on compare (#12476)Lunny Xiao2020-08-121-1/+1
|
* Update JS dependencies (#12474)silverwind2020-08-123-288/+399
| | | | | | | | | | | * Update JS dependencies - Update worker-loader options (currently unused pending #12459) - Remove @babel/plugin-proposal-object-rest-spread, it's enabled by default - Switch cssnano-webpack-plugin to css-minimizer-webpack-plugin which had been renamed * switch to css-minimizer-webpack-plugin
* Re-attempt to delete temporary upload if the file is locked by another ↵zeripath2020-08-1160-202/+304
| | | | | | | | | | | process (#12447) Replace all calls to os.Remove/os.RemoveAll by retrying util.Remove/util.RemoveAll and remove circular dependencies from util. Fix #12339 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: silverwind <me@silverwind.io>
* [skip ci] Updated translations via CrowdinGiteaBot2020-08-111-0/+1
|
* Make dashboard newsfeed list length a configurable item (#12469)techknowlogick2020-08-114-2/+7
| | | Co-authored-by: John Olheiser <john.olheiser@gmail.com>
* Add more tests for diff highlighting (#12467)mrsdizzie2020-08-112-1/+16
| | | | | Adding some more tests for different cases to make sure they keep working Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Add placeholder text for send testing email button in admin/config (#12452)Bagas Sanjaya2020-08-102-1/+2
| | | | | | | | | | | | | | | | * Add placeholder text for send testing email button in admin/config * Change placeholder text to expecting email address * Localize placeholder text * Apply suggestion from @silverwind ok Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* use community codecov drone plugin (#12468)techknowlogick2020-08-101-4/+3
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-08-102-0/+4
|
* Fix Migration 145 on MSSQL if varchar is changed to nvarchar (#12445)zeripath2020-08-101-0/+22
| | | | | | | | | | | | | | | | | | | | | | | * Handle MSSQL constraints Signed-off-by: Andrew Thornton <art27@cantab.net> * Update models/migrations/v145.go * Prevent hang with Sync2 * Agh it's uniques not indexes * Let us try a different way of finding constraints on the language column Signed-off-by: Andrew Thornton <art27@cantab.net> * minor simplification Signed-off-by: Andrew Thornton <art27@cantab.net> * Try drop index instead? Signed-off-by: Andrew Thornton <art27@cantab.net>
* Prevent redirect back to /user/events (#12462)zeripath2020-08-081-3/+6
| | | | | | This PR prevents 2 further ways of causing the redirect cookie to be set to redirect back to /user/events Signed-off-by: Andrew Thornton <art27@cantab.net>
* Make default StaticRootPath compile time settable (#12371)65432020-08-082-2/+6
| | | | | | Make it possible to compile the default location of StaticRootPath independent from AppWorkPath Co-authored-by: Andrew Thornton <art27@cantab.net>
* Improved diff syntax highlighting fix (#12455)mrsdizzie2020-08-082-20/+37
| | | | | Make previous fix from #12238 more robust since I saw a case where a diff changes only a single character in a chroma class instead of the entire thing. Add another more complicated test to match. Co-authored-by: Lauris BH <lauris@nix.lv>
* Do not show arrows on comment diffs on pull comment pages (#12434)zeripath2020-08-081-66/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Do not show arrows on comment diffs on pull comment pages Prior to this PR it was possible that an expansion arrow could be displayed on comment diffs displayed on the comments pages of pulls These arrows would not successfully work because they were not attached to a commit id - nor can they necessarily be. This PR prevents these from being shown. Fix #10851 Signed-off-by: Andrew Thornton <art27@cantab.net> * as per @silverwind Signed-off-by: Andrew Thornton <art27@cantab.net> * one more indentation fix Signed-off-by: Andrew Thornton <art27@cantab.net> * one more indentation fix Signed-off-by: Andrew Thornton <art27@cantab.net>
* Detect full references to issues and pulls in commit messages (#12399)zeripath2020-08-063-8/+200
| | | | | Fix #10269 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Use transaction in V102 migration (#12395)zeripath2020-08-062-5/+7
| | | | | | | The code for dropTableColumns has a slightly confusing portion whereby the session is committed for MSSQL but not for other variants. The v102 migration doesn't actually start a transaction so this weirdness does not affect it. However it probably should attempt to run this in a transaction. Signed-off-by: Andrew Thornton art27@cantab.net
* [skip ci] Updated translations via CrowdinGiteaBot2020-08-061-0/+2
|
* Actually fix image diff padding/border (#12381)silverwind2020-08-061-2/+2
| | | | | | | | https://github.com/go-gitea/gitea/pull/12346 was using the wrong selector which affected only the single image view. Use the correct selector for image diffs. Removal of border-radius is still worth to keep to override the global 3px on <img>. Co-authored-by: Lauris BH <lauris@nix.lv>
* Render the git graph on the server (#12333)zeripath2020-08-0619-696/+1666
| | | | | | | | | | | | | Rendering the git graph on the server means that we can properly track flows and switch from the Canvas implementation to a SVG implementation. * This implementation provides a 16 limited color selection * The uniqued color numbers are also provided * And there is also a monochrome version *In addition is a hover highlight that allows users to highlight commits on the same flow. Closes #12209 Signed-off-by: Andrew Thornton art27@cantab.net Co-authored-by: silverwind <me@silverwind.io>
* Add SVG favicon (#12437)silverwind2020-08-063-1/+24
| | | Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Remove librejs header in <head> (#12439)silverwind2020-08-061-33/+0
| | | | | | | | | | | | For the sake of performance and simplicity, remove this seemingly useless license header. It's related to LibreJS which we already pretty much killed of in an earlier commit [1]. Initially added in [2]. Note that the StaticUrlPrefix here was never actually correctly resolved and has rendered including the template fences. [1] https://github.com/go-gitea/gitea/pull/11810 [2] https://github.com/go-gitea/gitea/commit/a915a09e4f8edc7734c9374ad9f9a51b39241ee3 Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* In issue comments, put issue participants also in completion list when ↵Andreas Shimokawa2020-08-061-4/+8
| | | | | | hitting @ (#12433) Previous behaviour was only to have completion for project members
* Collapse Swagger UI tags by default (#12428)silverwind2020-08-051-0/+1
| | | | | | | | This makes is slightly faster to navigate through the swagger docs by initially collapsing the tags like 'admin' or 'miscellaneous'. Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: zeripath <art27@cantab.net>
* Mirror System Notice reports are too frequent (#12438)zeripath2020-08-053-8/+18
| | | | | | This PR switches off the success reports from the Update Mirrors cron job as they are too frequent and not necessarily helpful. Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix correct upstream remote HTTPS URL (#12436)Lauris BH2020-08-051-1/+3
|
* UserProfile Page: Render Description (#12415)65432020-08-052-3/+7
| | | | | | | | | | | | | * If Description contain more that one line render it * simpler ... * only render if description exists * Fix NPE in tests * Update routers/user/profile.go Co-authored-by: zeripath <art27@cantab.net>
* Match GH with Commit page (#12425)techknowlogick2020-08-051-5/+5
| | | Co-authored-by: zeripath <art27@cantab.net>
* Prevent empty div when editing comment (#12404)zeripath2020-08-042-5/+5
| | | | | | | | * Prevent empty div when editing comment The template for attachments needs to remove whitespace and return empty when there are no attachments. Fix #10220
* Add API to update pr headBranch (#12419)赵智超2020-08-045-7/+159
| | | | | * [API] Add update pr headBranch api Signed-off-by: a1012112796 <1012112796@qq.com>
* Add loading spinners and mermaid error handling (#12358)silverwind2020-08-0410-27/+148
| | | | | - Add loading spinners on editor and mermaid renderers - Add error handling and inline error box for mermaid - Fix Mermaid rendering by using the .init api
* Need RepoID in the languagestat field (#12427)zeripath2020-08-041-0/+1
| | | Signed-off-by: Andrew Thornton <art27@cantab.net>
* Increase size of the language column in language_stat (#12396)zeripath2020-08-043-2/+62
| | | | | | | | | In #12379 it was discovered that enry v2 has a maximum language length of 34 characters which is larger than the 30 previously provided. This PR updates the language column to 50. Fix #12379
* fix a small nit (#12420)赵智超2020-08-031-0/+1
| | | Signed-off-by: a1012112796 <1012112796@qq.com>
* Split up monaco's language chunks (#12401)silverwind2020-08-021-8/+5
| | | | | | | | This should speed up monaco's loading time by splitting the current 3.71MB chunk monaco.js into 63 individual files named 1 to 63.js in the output directory. There seems to be no way to get a better file naming scheme unfortunately. I opted to exclude those files in the webpack output for brevity.
* Add TOTP header to Swagger Documentation (#12402)65432020-08-022-0/+15
|
* Fix milestone links (#12405)zeripath2020-08-022-2/+2
| | | | | | | The milestone pages links should direct to the milestone pages Fix #10215 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix incorrect error logging in Stats indexer and OAuth2 (#12387)zeripath2020-08-012-3/+9
| | | | | | | | | | | | | | | | | | | | * Fix incorrect logging in oauth2.go Fix #11945 Signed-off-by: Andrew Thornton <art27@cantab.net> * Handle ErrAlreadyInQueue in stats indexer Fix #12380 Signed-off-by: Andrew Thornton <art27@cantab.net> * Fixes type in error message of indexer Add the missing character in the error message. Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: Lieven Hollevoet <hollie@lika.be>
* [Vendor] upgrade google/go-github to v32.1.0 (#12361)65432020-07-31114-2623/+9157
| | | | | | * upgrate go-github client to v32.1.0 * migrate
* [skip ci] Updated translations via CrowdinGiteaBot2020-07-312-4/+43
|
* models: break out of loop (#12386)Lars Lehtonen2020-07-311-1/+2
|
* Improve HTML escaping helper (#12383)silverwind2020-07-303-10/+13
| | | | | | | | The previous method did not escape single quotes which under some circumstances can lead to XSS vulnerabilites and the fact that it depends on jQuery is also not ideal. Replace it with a lightweight module. Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Various arc-green fixes (#12384)silverwind2020-07-301-6/+27
| | | | | | | | - Fix various white borders - Fix dropdown triangle - Fix tab backgrounds - Fix release page timeline dots Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Don't use legacy method to send Matrix Webhook (#12348)S7evinK2020-07-306-8/+87
| | | | | | | | | | | | | | | | | * Don't use legacy send for messages * Add migrations to ensure Matrix webhooks use PUT * Set HTTP method to PUT as default * Fix sql condition.. Signed-off-by: Till Faelligen <tfaelligen@gmail.com> * Rename getTxnID -> getMatrixTxnID * Use local variable instead of constant value Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Add note to README about make parallelism (#12378)silverwind2020-07-301-0/+2
| | | Alternative to https://github.com/go-gitea/gitea/pull/12367