summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Use -1 to disable key algorithm type in ssh.minimum_key_sizes (#11635) (#11662)zeripath2020-05-281-0/+2
| | | | | | | | | Backport #11635 Fix #11634 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Handle expected errors in AddGPGkey API (#11644) (#11661)65432020-05-284-4/+18
| | | | | | | | | * handle GPG Parse & Email Errors * correct TEST * update Swagger * more Docu
* Return json on 500 error from API (#11574) (#11659)65432020-05-281-4/+21
| | | | | | | Backport #11574 add API specific InternalServerError() InternalServerError
* When must change password only show Signout (#11600) (#11637)guillep2k2020-05-273-6/+31
| | | | | | | | | | | | | | When "Must Change Password" simplify the navbar header to only show the signout button as all other links will redirect back. This prevents the notifications icon from showing preventing initialization of the event-source and hence preventing redirect_to being set, however in addition do not set the redirect_to cookie if we are looking at the /user/events page. Fix #11554 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: zeripath <art27@cantab.net>
* Backport various styling fixes (#11619)Cirno the Strongest2020-05-255-5/+33
| | | | | | | | | | | | | | | | | | | | | | | | | * Fix inconsistent font size for markdown preview on new PR view (#11565) We use same method for new issue form and issue view, but was missing from new PR view making it one place where markdown preview is inconsistent in font size. (cherry picked from commit 04afd9d1e2399d61978fdeeab7e7ac8ff9057a93) * Fix margin on PR form (#11566) (cherry picked from commit f2a0be1683daf3330a7c94fa65300e7056e9bc98) * Fix margin for attached top header on code review (#11571) Introduced naively by #11463 The margin was being applied too widely. (cherry picked from commit e682a922957ebb1d40843be4da902fe13b15adde) * Fix styling for PR merge section when no checks (#11609) Makes styling consistent between two cases. Also removed unnecessary double border. * Normalize avatar radius
* Fix wrong milestone in webhook message (#11596) (#11611)Gary Kim2020-05-251-1/+1
| | | | | | | | Backport of #11596 Signed-off-by: Gary Kim <gary@garykim.dev> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* When initialising repositories ensure that the user doing the creation is ↵zeripath2020-05-251-1/+1
| | | | | | | | | the initializer (#11601) (#11608) Backport #11601 Fix #10760 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix serviceworker output file and misc improvements (#11562) (#11610)silverwind2020-05-256-21/+38
| | | | | | | | | | | | | * Fix serviceworker output file and misc improvements - Fix output file location for production build - Cache more asset types: fonts and worker variants - Parallelize a few tasks during initalization - Only invalidate caches starting with our prefix - Remove public/serviceworker.js before building - Remove font preloads, they cause strange cors issues - Misc eslint config adjustments * remove webpack output files on watch-frontend
* Prevent (caught) panic on login (#11590) (#11597)zeripath2020-05-241-6/+14
| | | | | | | | | | | | | | | | | Backport #11590 Unfortunately when the virtual session is released it requires that the real session does not exist. This worked fine when sessions were only saved at the end of request/response cycle however, now sessions are saved proactively this does not hold. The result is a caught panic in the logs during every log-in. This panic has no significant side-effects but should not occur. This PR marks the virtual session as released when released and updates it if the same session is released again. Signed-off-by: Andrew Thornton <art27@cantab.net>
* Prevent empty query parameter being set on dashboard (#11561) (#11604)zeripath2020-05-241-1/+6
| | | | | | | Prevent the dashboard from setting an empty query parameter Fix #11543 Signed-off-by: Andrew Thornton art27@cantab.net
* Fix images in wiki edit preview (#11546) (#11602)mrsdizzie2020-05-242-2/+3
| | | | | | | Make sure wiki editor sets wiki to true so gitea renders it as a wiki page. Also change the context data attr for edit form. This looks wrong but everywhere else in our code assumes the urlPrefix to be just the repo url when rendering and manually adds /wiki to the rendered url regardless. Fixes #11540
* Allow different HardBreaks settings for documents and comments (#11515) (#11599)zeripath2020-05-2412-29/+77
| | | | | | | | | | | | | | | GH has different HardBreaks behaviour for markdown comments and documents. Comments have hard breaks and documents have soft breaks - therefore Gitea's rendering will always be different from GH's if we only provide one setting. Here we split the setting in to two - one for documents and one for comments and other things. Signed-off-by: Andrew Thornton art27@cantab.net Changes to index.js as per @silverwind Co-authored-by: silverwind <me@silverwind.io> Changes to docs as per @guillep2k Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Enforce transparent background on editor toolbar elements (#11569) (#11583)Cirno the Strongest2020-05-231-0/+4
| | | | | | Co-authored-by: Lauris BH <lauris@nix.lv> (cherry picked from commit 38c773d8a5d6168ebb3030513a6063381976bd22) Co-authored-by: zeripath <art27@cantab.net>
* Ensure serviceworker is created as /serviceworker.js (#11577) (#11582)zeripath2020-05-232-1/+2
| | | | | | | | | #11538 moved the serviceworker to webbox but unfortunately created the serviceworker in public/js rather than public/ This PR fixes this, fixing multiple issues with broken js as a result of that change. Signed-off-by: Andrew Thornton art27@cantab.net
* Prevent transferring repos to invisible orgs (#11517) (#11549)guillep2k2020-05-221-0/+9
| | | | | | Co-authored-by: Guillermo Prandi <guillep2k@users.noreply.github.com> Co-authored-by: Guillermo Prandi <guillep2k@users.noreply.github.com> Co-authored-by: zeripath <art27@cantab.net>
* Fix webpack chunk loading with STATIC_URL_PREFIX (#11526) (#11542)silverwind2020-05-221-3/+6
| | | | | | | Previously, we had only set __webpack_public_path__ to a path which caused webpack chunks to be loaded from the current origin which is incorrect when STATIC_URL_PREFIX points to another origin. This should fix the issue curretnly seen on gitea.com.
* Close EventSource before unloading the page (#11539) (#11557)silverwind2020-05-221-0/+3
| | | | | | Should eliminate a error in the Firefox console regarding the connection being interrupted while the page was loading.
* Fix the bug that the emoji don't disappear(#11489) (#11530)L0veSunshine2020-05-221-1/+1
| | | | Co-authored-by: John Olheiser <john.olheiser@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Move serviceworker to workbox and fix SSE interference (#11538) (#11547)silverwind2020-05-2212-133/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Move serviceworker to workbox and fix SSE interference Instead of statically hardcoding every frontend asset, this uses a type-based approach to cache all js,css and manifest.json requests. This also fixes the issue that the service worker was interfering with EventSource because it was unconditionally handling all requests which this new implementation doesn't. Fixes: https://github.com/go-gitea/gitea/issues/11092 Fixes: https://github.com/go-gitea/gitea/issues/7372 * rethrow error instead of logging * await .register * Revert "rethrow error instead of logging" This reverts commit 043162ba1f18b98a4bf9635959fd28d16e839fc5. * improve comment * remove JSRenderer * add version-based cache invalidation * refactor * more refactor * remove comment * rename item to fit cache name Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Ensure emoji render with regular font-weight (#11541) (#11545)silverwind2020-05-221-2/+2
| | | | | Emoji characters don't support bold attributes and may do weird things like rendering monochrome when bolded.
* Fix form action template substitutions on admin pages (backport #11519) (#11531)Matthew R. McDougal2020-05-212-2/+2
| | | | | | | | * Fix form action template substitution on admin dashboard * Fix form action template substitution on admin monitoring page Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv>
* API PullReviewComment HTMLPullURL should return the HTMLURL (#11501) (#11533)zeripath2020-05-211-1/+1
| | | | | | | Fix #11499 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Fix repo-list private and total count bugs (#11500) (#11532)zeripath2020-05-215-62/+23
| | | | | | | | | | | | | | | | | | | | | * Fix repo-list private and total count bugs Signed-off-by: Andrew Thornton <art27@cantab.net> * Ensure limited and private org public repos are displayed on "private" Signed-off-by: Andrew Thornton <art27@cantab.net> * switch from onlyPrivate to is_private Signed-off-by: Andrew Thornton <art27@cantab.net> * Generate swagger Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Fix margin for branch-update grid on PR view when update button is not ↵Cirno the Strongest2020-05-211-4/+1
| | | | | | | | | | | | present (#11521) (#11525) * Fix margin for branch-update grid on PR view when update button is not present * Move padding to row element Co-authored-by: techknowlogick <techknowlogick@gitea.io> (cherry picked from commit ee4e8542c7dddafe8ed110f6ec0bb9f730a63b0a) Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* TrimSpace when reading InternalToken from a file (#11502) (#11524)zeripath2020-05-202-4/+21
| | | | | | | | | | | | InternalTokens are fixed as alphanum strings therefore TrimSpace from these. Also use isatty to not add a terminal newline when redirecting generate. Fix #11498 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: Lauris BH <lauris@nix.lv>
* Fix selected line color in arc-green (#11492) (#11520)Cirno the Strongest2020-05-201-1/+1
| | | | Co-authored-by: techknowlogick <techknowlogick@gitea.io> (cherry picked from commit 6da87eda8bcfca49a008c07f7e3cff001df921bf)
* Use more toned colors for selected line (#11493) (#11511)Cirno the Strongest2020-05-192-2/+2
| | | | | | Co-authored-by: zeripath <art27@cantab.net> (cherry picked from commit 7b66400f55779e5af3704403e605abb025a9002d) Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Tweak reaction buttons (#11496) (#11516)silverwind2020-05-191-9/+9
| | | | | | | | | | - Vertical centering using flexbox - Very slightly decreased size of the boxes Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Make localstorage read ssh or https correctly (#11483) (#11490)65432020-05-191-3/+7
| | | | | | | | | | | | | | * Make localstorage read ssh or https correctly * Update index.js If not login there is only a "https" button, This commit fix the "https" button hasn't blue border. * Keep user selected whether or not to log in * Update index.js Co-authored-by: L0veSunshine <xuan199651@gmail.com> Co-authored-by: zeripath <art27@cantab.net>
* Fix top margin for bottom attached header (#11480) (#11485)Cirno the Strongest2020-05-191-1/+1
| | | | | | | | | * Fix top margin for bottom attached header (#11480) (cherry picked from commit 6b798feaf6bb59ba32273d13755a11d3dcefaddc) * restart ci Co-authored-by: Lauris BH <lauris@nix.lv>
* MySQL instance is needed for all triggers (#11484)v1.12.0-rc1Lauris BH2020-05-181-4/+0
|
* Changelog for v1.12.0-rc1 (#11462)Lauris BH2020-05-181-0/+280
|
* Fix comment box styling and cancelling (#11463) (#11464) (#11469) (#11467)Lauris BH2020-05-183-1/+11
| | | | | | | | | | | * Fix styling of resolved code comment box (#11463) Co-authored-by: Lauris BH <lauris@nix.lv> * Fix .comment-code-cloud not being removed when cancelling new code comment (#11464) * Fix footer padding for comment code reply form on issue event view (#11469) Co-authored-by: Cirno the Strongest <1447794+CirnoT@users.noreply.github.com>
* Ensure public repositories in private organizations are visible and fix ↵65432020-05-182-5/+27
| | | | | | | | | | | | | | | | | | | | admin organizations list (#11465) (#11474) * Ensure that we can see public repositories in private organization Fix #10144 (Again) Signed-off-by: Andrew Thornton <art27@cantab.net> * Fix Admin users and organizations page Signed-off-by: Andrew Thornton <art27@cantab.net> * Update models/repo_list.go Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv>
* Fix "Unknown task: git_fsck" error on admin dashboard (#11468) (#11471)65432020-05-183-5/+2
| | | | | | | * Fix "Unknown task: git_fsck" error on admin dashboard (#11468) * Update .drone.yml Co-authored-by: zeripath <art27@cantab.net>
* [skip ci] Updated translations via CrowdinGiteaBot2020-05-172-2/+36
|
* Increase width for authors on commit view (#11441)Cirno the Strongest2020-05-171-3/+3
| | | | | Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv>
* [skip ci] Updated translations via CrowdinGiteaBot2020-05-176-5/+456
|
* Change tab width for .go files to 4 (#11455)silverwind2020-05-171-12/+3
| | | | | | | | | | | | * Change tab width for .go files to 4 I thing 8-wide tabs are kind of archaic and inconsisten with template files which already use 4-wide. Also did some misc cleanups in the .editorconfig files. * add css Co-authored-by: Lauris BH <lauris@nix.lv>
* [skip ci] Updated translations via CrowdinGiteaBot2020-05-173-0/+176
|
* Whenever the ctx.Session is updated, release it to save it before sending ↵zeripath2020-05-176-100/+168
| | | | | | | the redirect (#11456) Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv>
* [skip ci] Updated translations via CrowdinGiteaBot2020-05-177-25/+1110
|
* Docs: add AlpineLinux packages (#11446)65432020-05-171-0/+11
| | | | Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Lauris BH <lauris@nix.lv>
* Fix translation to be compatible with crowdin (#11453)Lauris BH2020-05-171-4/+4
|
* Allow all members of private orgs to see public repos (#11442)zeripath2020-05-171-10/+15
| | | | | | | | | | | * Allow all members of private orgs to see public repos Fix #10144 Signed-off-by: Andrew Thornton <art27@cantab.net> * Update models/repo_list.go Co-authored-by: Lauris BH <lauris@nix.lv>
* Forcibly clean and destroy the session on logout (#11447)zeripath2020-05-171-5/+2
| | | | | Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* [skip ci] Updated translations via CrowdinGiteaBot2020-05-1723-208/+0
|
* Check Push permissions on IsUserAllowedToUpdate (#11448)65432020-05-161-0/+11
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-05-161-0/+11
|
* Refactor Cron and merge dashboard tasks (#10745)zeripath2020-05-1625-452/+850
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Refactor Cron and merge dashboard tasks * Merge Cron and Dashboard tasks * Make every cron task report a system notice on completion * Refactor the creation of these tasks * Ensure that execution counts of tasks is correct * Allow cron tasks to be started from the cron page * golangci-lint fixes * Enforce that only one task with the same name can be registered Signed-off-by: Andrew Thornton <art27@cantab.net> * fix name check Signed-off-by: Andrew Thornton <art27@cantab.net> * as per @guillep2k * as per @lafriks Signed-off-by: Andrew Thornton <art27@cantab.net> * Add git.CommandContext variants Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>