summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Move syntax highlighting to web worker (#11017)silverwind2020-04-137-17/+83
| | | | | | | | | This should eliminate page freezes when loading big files/diff. `highlightBlock` is needed to preserve existing nodes when highlighting and for that, highlight.js needs access to the DOM API so I added a DOM implementation to make it work, which adds around 300kB to the output file size of the lazy-loaded `highlight.js`. Co-authored-by: Lauris BH <lauris@nix.lv>
* add 'make watch-frontend' and expand docs (#10931)silverwind2020-04-122-2/+25
| | | | | | | | | * add 'make watch-frontend' and expand docs * add bindata note * add .PHONY Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* fix 404 and 500 image size in small size screen (#11043)赵智超2020-04-112-2/+2
| | | | | | | do it by define Semantic UI image class Signed-off-by: a1012112796 <1012112796@qq.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Tweak app.ini.sample (#11042)silverwind2020-04-111-3/+3
| | | Few misc tweaks to the sample config
* Fix CreateComment for SQLite and JS click event on Request Review (#11040)赵智超2020-04-112-10/+18
| | | | | | | | | | | | | | | | | | | | | | * fix some bug about Request review * fix ``CreateComment`` wrong using ,it will not work when use Sqlite * fix wrong js click event code , it will send wrong data when it has many choices Signed-off-by: a1012112796 <1012112796@qq.com> * Apply suggestions from code review Co-Authored-By: Lauris BH <lauris@nix.lv> * add getReviewerByIssueIDAndUserID fix wrong conditions check in initIssueComments after #10972 * call CI again Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* [Docs] Cross Build Gitea from Source (#10999)Bagas Sanjaya2020-04-111-0/+20
| | | | | | | | | | | | | | | | | | * Add cross-build docs Note that C cross compiler is required for building Gitea with `TAGS`. * Apply suggestion from @mrsdizzie Co-Authored-By: mrsdizzie <info@mrsdizzie.com> * Apply suggestion from @guillep2k Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: mrsdizzie <info@mrsdizzie.com> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: John Olheiser <john.olheiser@gmail.com>
* [Api] Check Notify (always return json) (#10059)65432020-04-103-15/+11
| | | | | | | * BEAKING: check return status based on struct not httpStatus * update Tests * CI.restart()
* Prettify Timeline (#10972)Sorien2020-04-119-216/+296
| | | Co-authored-by: mrsdizzie <info@mrsdizzie.com>
* remove package code.gitea.io/gitea/modules/git import out of models (#11025)65432020-04-106-205/+206
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-04-101-2/+51
|
* Load pr Issue Poster on API too (#11033)65432020-04-101-0/+4
|
* Add Get/Update for api/v1/user/applications/oauth2 (#11008)Dan Molik2020-04-094-4/+214
| | | | | | | Add api methods for getting and updating user oauth2 applications. Signed-off-by: Dan Molik <dan@danmolik.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Add git hook tooltip (#11030)John Olheiser2020-04-092-1/+2
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Match arc-green code tag color to code blocks (#11023)silverwind2020-04-091-1/+1
| | | | Co-authored-by: John Olheiser <john.olheiser@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* ui:Add flash notify for email preference seting success (#11027)赵智超2020-04-092-0/+2
| | | | | | | | | | | | | * Add flash notify for email preference seting success Signed-off-by: a1012112796 <1012112796@qq.com> * add review suggest changes Co-authored-by: Lauris BH <lauris@nix.lv> Co-Authored-By: Lauris BH <lauris@nix.lv> Co-authored-by: Lauris BH <lauris@nix.lv>
* Handle yaml frontmatter (#11016)zeripath2020-04-0910-0/+422
| | | | | | | | Add goldmark-meta to render yaml frontmatter as a table Fix #5377 Signed-off-by: Andrew Thornton <art27@cantab.net>
* integrations: deprecate HeaderMaps (#11018)Lars Lehtonen2020-04-081-3/+3
|
* Fix forked repo has no icon and language stat. (#10791)L0veSunshine2020-04-084-5/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update header.tmpl * Update _repository.less * Update pull.go * Update indexer.go * Update pull.go * Update pull.go * Update indexer.go * fix forked repo doesn't have language stat * fix forked repo doesn't have language stat * fix forked repo doesn't have language stat * fix forked repo doesn't have language stat * fix forked repo doesn't have language stat * fix forked repo doesn't have language stat * fix forked repo doesn't have language stat * fix forked repo doesn't have language stat * fix forked repo doesn't have language stat * fix forked repo doesn't have language stat * fix forked repo doesn't have language stat Thanks the advice from lunny and 6543. * fix forked repo doesn't have language stat Modified as suggested by 6543. * fix forked repo doesn't have language stat simplify the function. * fix forked repo doesn't have language stat update the indexer after the loop Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: Lauris BH <lauris@nix.lv>
* [suggest] change merge strategy: do not check write access if user in ↵j.yao.SUSE2020-04-083-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | merge white list (#10951) * [suggest] change merge strategy: do not check write access if user in merge white list #10935 (cherry picked from commit ba74fc6389dfcad03c273441a49b54e4d38c86ee) * fix NPE * Fix cross compile (#10952) * Fix cross compile * Add test for cross compile * Fix drone * Fix drone * Also prevent CC environment not to generate Co-authored-by: zeripath <art27@cantab.net> * fix merge box icon color bug (#10974) that because need some space beturn ``text`` and color defines Signed-off-by: a1012112796 <1012112796@qq.com> * [skip ci] Updated translations via Crowdin * Allow X in addition to x in tasks (#10979) Signed-off-by: Andrew Thornton <art27@cantab.net> * remove api: merge reqRepoWriter Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: 赵智超 <1012112796@qq.com> Co-authored-by: GiteaBot <teabot@gitea.io> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Return error for authorized_keys and mergebase problems (#10990)zeripath2020-04-081-1/+4
| | | | | Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* [API] Get a single commit via Ref (#10915)65432020-04-077-32/+171
| | | | | | | | | * GET /repos/:owner/:repo/commits/:ref * add Validation Checks * Fix & Extend TEST * add two new tast cases
* Automatically remove Watches, Assignments, etc if user loses access due to ↵65432020-04-074-13/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | being removed as collaborator or from a team (#10997) * remove a user from being assigned to any issue/PR if (s)he is removed as a collaborator * fix gender specific comment * do not remove users that still have access to the repo if they are a member of a team that can access the repo * add context to errors * updates * incorporate review fixes * Update models/repo_collaboration.go Co-Authored-By: 6543 <6543@obermui.de> * Update models/repo_collaboration.go Co-Authored-By: 6543 <6543@obermui.de> * Fix Rebase Relict * Fix & Impruve * use xorm builder * all in one session * generalize reconsiderIssueAssignees * Only Unwatch if have no access anymore * prepare for reuse * Same things if remove User from Team * fix lint * let mysql take time to react * add description * CI.restart() * CI.restart() Co-authored-by: Lanre Adelowo <yo@lanre.wtf> Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: Lauris BH <lauris@nix.lv>
* upgrade to most recent bluemonday (#11007)techknowlogick2020-04-0750-296/+4973
| | | | | | | | | | | * upgrade to most recent bluemonday * make vendor * update tests for bluemonday * update tests for bluemonday * update tests for bluemonday
* [skip ci] Updated translations via CrowdinGiteaBot2020-04-072-18/+278
|
* tweak code tags in markdown (#11000)silverwind2020-04-072-9/+6
| | | | | - remove whitespace before and after - increase horizontal padding - make blocks more apparant on arc-green
* Support running subtests manually (#10988)Mura Li2020-04-071-6/+6
| | | | | | Since GNU Make does not allow '/' in the target patterns, we tranlate the subsequent '.' into '/' for "go test -run". Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Fix Ctrl-Enter shortcut for issues (#10986)Michael Kuhn2020-04-071-0/+2
| | | | | | | | | | The js-quick-submit class needs to be applied to SimpleMDE's input field, which is currently only done for wiki pages. Fixes #10937 Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* [feature] provide `OwnerName` field for README template (#10981)j.yao.SUSE2020-04-062-1/+2
| | | | Co-Authored-By: 6543 <6543@obermui.de> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* [Docs] Add Note to Readme-Template about Variable Espansion (#10983)65432020-04-061-3/+6
| | | | | * add note with Espansion VarNames * add context of Name
* [skip ci] Updated translations via CrowdinGiteaBot2020-04-061-0/+600
|
* Add docs for gmail (#10995)zeripath2020-04-061-0/+16
| | | | | | | Fix #10971 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv>
* Fix release counter on API repository info (#10968)65432020-04-064-7/+25
| | | | | | Use the same mechanism as the webpage for calculating the release count Fix #10946
* add request review from specific reviewers feature in pull request (#10756)赵智超2020-04-0624-67/+714
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add request review feature in pull request add a way to notify specific reviewers to review like github , by add or delet a special type review . The acton is is similar to Assign , so many code reuse the function and items of Assignee, but the meaning and result is different. The Permission style is is similar to github, that only writer can add a review request from Reviewers, but the poster can recall and remove a review request after a reviwer has revied even if he don't have Write Premission. only manager , the poster and reviewer of a request review can remove it. The reviewers can be requested to review contain all readers for private repo , for public, contain all writers and watchers. The offical Review Request will block merge if Reject can block it. an other change: add ui otify for Assignees. Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: Lauris BH <lauris@nix.lv> Signed-off-by: a1012112796 <1012112796@qq.com> * new change * add placeholder string * do some changes follow #10238 to add review requests num on lists also change icon for review requests to eye Co-authored-by: Lauris BH <lauris@nix.lv>
* Users should not be able to prohibit their own login (#10970)赵智超2020-04-062-2/+8
| | | | | | | | | | | | | | | | * ui: limit managers prohibit themself to login Because I think it's crazy and not reasonale , that if a user can prohibit themself to login. so suggest limit this choice on ui Signed-off-by: a1012112796 <1012112796@qq.com> * skip self Prohibit Login in post event handle * fix comment Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: John Olheiser <john.olheiser@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Change default charset for MySQL on install to utf8mb4 (#10989)zeripath2020-04-061-3/+3
| | | | | Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Mulitple Gitea Doctor improvements (#10943)zeripath2020-04-064-64/+472
| | | | | | | | | | | | | | * Add `gitea doctor --list` flag to list the checks that will be run, including those by default * Add `gitea doctor --run` to run specific checks * Add `gitea doctor --all` to run all checks * Add db version checker * Add non-default recalculate merge bases check/fixer to doctor * Add hook checker (Fix #9878) and ensure hooks are executable (Fix #6319) * Fix authorized_keys checker - slight change of functionality here because parsing the command is fragile and we should just check if the authorized_keys file is essentially the same as what gitea would produce. (This is still not perfect as order matters - we should probably just md5sum the two files.) * Add SCRIPT_TYPE check (Fix #10977) * Add `gitea doctor --fix` to attempt to fix what is possible to easily fix * Add `gitea doctor --log-file` to set the log-file, be it a file, stdout or to switch off completely. (Fixes previously undetected bug with certain xorm logging configurations - see @6543 comment.) Signed-off-by: Andrew Thornton <art27@cantab.net>
* Turn off go modules for xgo and gxz (#10963)John Olheiser2020-04-062-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Turn off go modules for xgo and gxz Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add test release for PR Signed-off-by: jolheiser <john.olheiser@gmail.com> * Try with go modules off Signed-off-by: jolheiser <john.olheiser@gmail.com> * Revert Makefile, force a release test Signed-off-by: jolheiser <john.olheiser@gmail.com> * Turn on GOPROXY for release Signed-off-by: jolheiser <john.olheiser@gmail.com> * CI Signed-off-by: jolheiser <john.olheiser@gmail.com> * CI Signed-off-by: jolheiser <john.olheiser@gmail.com> * Final commit Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Migrate ActivityHeatmap to Vue SFC (#10953)Gary Kim2020-04-062-92/+83
| | | | | | | | | | | | | | | * Migrate ActivityHeatmap to Vue SFC Signed-off-by: Gary Kim <gary@garykim.dev> * Readd vue compiler alias Signed-off-by: Gary Kim <gary@garykim.dev> * Remove unneeded use of v-html Signed-off-by: Gary Kim <gary@garykim.dev> Co-authored-by: zeripath <art27@cantab.net>
* Allow X in addition to x in tasks (#10979)zeripath2020-04-051-2/+2
| | | Signed-off-by: Andrew Thornton <art27@cantab.net>
* [skip ci] Updated translations via CrowdinGiteaBot2020-04-051-11/+11
|
* fix merge box icon color bug (#10974)赵智超2020-04-051-2/+1
| | | | | that because need some space beturn ``text`` and color defines Signed-off-by: a1012112796 <1012112796@qq.com>
* Fix cross compile (#10952)Lunny Xiao2020-04-052-1/+16
| | | | | | | | | | | | | * Fix cross compile * Add test for cross compile * Fix drone * Fix drone * Also prevent CC environment not to generate Co-authored-by: zeripath <art27@cantab.net>
* Add gitea-vet (#10948)John Olheiser2020-04-0555-101/+2990
| | | | | | | | | | | | | | | | | * Add copyright Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add gitea-vet and fix non-compliance Signed-off-by: jolheiser <john.olheiser@gmail.com> * Combine tools.go into build.go and clean up Signed-off-by: jolheiser <john.olheiser@gmail.com> * Remove extra GO111MODULE=on Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Prevent support libraries from compiling into Gitea (#10964)guillep2k2020-04-053-5/+7
| | | | | | | | | | | * Prevent support libraries from compiling into Gitea * Fix tag position * Fix golangci-lint errors * Refactor to make it work Co-authored-by: Guillermo Prandi <guillep2k@users.noreply.github.com>
* Fix scrollbar issues in dropdowns (#10897)silverwind2020-04-042-9/+13
| | | | | | | | | | | * Fix scrollbar issues in dropdowns Fixes: https://github.com/go-gitea/gitea/pull/10835 * remove wrapping * grammar Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Adjust label padding (#10957)mrsdizzie2020-04-041-0/+4
| | | | | | | * Adjust label padding * fix less complaint * Make top/bottom padding a bit smaller to create better label look
* Avoiding directory execution on hook (#10954) (#10955)Vasil Mikhalenya2020-04-047-9/+9
| | | * test -x is not enough https://stackoverflow.com/a/39489087
* Enable GO111MODULE=on globally in Makefile (#10939)mrsdizzie2020-04-041-16/+16
| | | | | | | Now that our minimum required go version is 1.12 we can remove code that disables GO111MODULE globally and turn it on, so each command doesn't need it set specifically. Also fixes a small bug with make pr that didn't work because GO111MODULE=on wasn't set Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Move gocovmerge as vendor (#10947)Lunny Xiao2020-04-046-4/+382
| | | | | | | | | * Move gocovmerge as vendor * Update Makefile Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Add titles and improve messages on sidebar menus (#10872)赵智超2020-04-049-91/+145
| | | | | | | | | | | | | | | | | | | * ui: add more message on sidebar menus * add title on the menus * show some message instead of hide choose bar when have nothing to choose * add simply filter for each menus * do same changes in mew_form.tmpl * remove some unusefull comments in mew_form.tmpl Signed-off-by: a1012112796 <1012112796@qq.com> * do review suggestions * add filter message on sidebar filter * change IsIssueWriter to HasIssuesOrPullsWritePermission Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>