aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Ensure serviceworker is created as /serviceworker.js (#11577)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
* Enforce transparent background on editor toolbar elements (#11569)Cirno the Strongest2020-05-231-0/+4
| | | Co-authored-by: Lauris BH <lauris@nix.lv>
* Fix Enter not working in SimpleMDE (#11564)silverwind2020-05-221-1/+1
| | | | | | | | | | * Fix Enter not working in SimpleMDE This condition was wrongly inverted, leading to all enter keys being blocked. Fixes: https://github.com/go-gitea/gitea/issues/11559 * fix it for absent tribute too
* Use default commit message for wiki edits (#11550)mrsdizzie2020-05-221-0/+9
| | | | Use a default commit message when a user doesn't add one (same as repo editor) to avoid commit lists with no message
* Close EventSource before unloading the page (#11539)silverwind2020-05-221-0/+3
| | | | Should eliminate a error in the Firefox console regarding the connection being interrupted while the page was loading.
* Move serviceworker to workbox and fix SSE interference (#11538)silverwind2020-05-2112-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>
* [skip ci] Updated translations via CrowdinGiteaBot2020-05-221-0/+3
|
* Ensure emoji render with regular font-weight (#11541)silverwind2020-05-211-2/+2
| | | | Emoji characters don't support bold attributes and may do weird things like rendering monochrome when bolded.
* [skip ci] Updated translations via CrowdinGiteaBot2020-05-211-1/+1
|
* Prevent transferring repos to invisible orgs (#11517)guillep2k2020-05-211-0/+9
| | | Co-authored-by: Guillermo Prandi <guillep2k@users.noreply.github.com>
* API PullReviewComment HTMLPullURL should return the HTMLURL (#11501)zeripath2020-05-201-1/+1
| | | | | | | Fix #11499 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Move tributejs to npm/webpack (#11497)silverwind2020-05-2012-127/+130
| | | | | | | | | | | | | | | | | | | | | | | | | * Move tributejs to npm/webpack - Move vendored bundle to npm and webpack - Rewrote initialization to single function - Restyled it (made it a bit smaller) - Fixed it for arc-green * fix mention * also include emoji on #content * Update web_src/less/_tribute.less Co-authored-by: mrsdizzie <info@mrsdizzie.com> * rewrite to only use one instance of Tribute * refactor * fix copy/paste error Co-authored-by: mrsdizzie <info@mrsdizzie.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Fix repo-list private and total count bugs (#11500)zeripath2020-05-205-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>
* Fix webpack chunk loading with STATIC_URL_PREFIX (#11526)silverwind2020-05-201-4/+9
| | | | | | | | | | 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. Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv>
* Fix text-transform on wiki revisions page (#11486)Cirno the Strongest2020-05-202-4/+5
| | | | | | | | * Fix text-transform on wiki revisions page * apply global Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: zeripath <art27@cantab.net>
* Fix the bug that the emoji does not disappear (#11489)L0veSunshine2020-05-201-1/+1
| | | | | | | | | | | | | | | * Fix the bug that the emoticon does not disappear * Update web_src/js/index.js Co-authored-by: Lauris BH <lauris@nix.lv> * Update web_src/js/index.js Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: zeripath <art27@cantab.net>
* [skip ci] Updated translations via CrowdinGiteaBot2020-05-201-0/+23
|
* Fix form action template substitutions on admin pages (#11519)Matthew R. McDougal2020-05-202-2/+2
| | | | | | | * Fix form action template substitution on admin dashboard * Fix form action template substitution on admin monitoring page Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* [skip ci] Updated translations via CrowdinGiteaBot2020-05-201-1/+70
|
* Fix margin for branch-update grid on PR view when update button is not ↵Cirno the Strongest2020-05-201-4/+1
| | | | | | | | | present (#11521) * 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>
* [skip ci] Updated translations via CrowdinGiteaBot2020-05-203-0/+54
|
* TrimSpace when reading InternalToken from a file (#11502)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>
* Add push commits history comment on PR time-line (#11167)赵智超2020-05-2018-6/+478
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add push commits history comment on PR time-line * Add notify by email and ui of this comment type also Signed-off-by: a1012112796 <1012112796@qq.com> * Add migrations for IsForcePush * fix wrong force-push judgement * Apply suggestions from code review * Remove commit number check * add own notify fun * fix some typo Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> * fix lint * fix style again, I forgot something before * Change email notify way * fix api * add number check if It's force-push * Add repo commit link fuction remove unnecessary check skip show push commits comment which not have commits alive * Update issue_comment.go * Apply suggestions from code review Co-authored-by: mrsdizzie <info@mrsdizzie.com> * Apply suggestions from code review * fix ui view Co-authored-by: silverwind <me@silverwind.io> * fix height * remove unnecessary style define * simplify GetBranchName * Apply suggestions from code review * save commit ids and isForce push by json * simplify GetBranchName * fix bug Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: mrsdizzie <info@mrsdizzie.com> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: silverwind <me@silverwind.io>
* Enable stylelint's shorthand-property-no-redundant-values (#11436)silverwind2020-05-205-12/+13
| | | | | Enabled the rule and --fix'ed issues. Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Remove IE11 support (#11470)silverwind2020-05-1911-45/+14
| | | | | | | | | | | | | * Remove IE11 support With master now on 1.13, it's time to drop IE11 for good. The woff variants are also in use by Opera Mini but it has even less market share and I can only imagine how broken the UI is in it. Fixes: https://github.com/go-gitea/gitea/issues/6147 * update docs Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Fix selected line color in arc-green (#11492)Cirno the Strongest2020-05-191-1/+1
| | | Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Fix dropzone color on arc-green (#11514)Cirno the Strongest2020-05-191-1/+10
| | | | | | | | | * Fix dropzone color on arc-green * fix missing ; * use same color as textarea and fix border Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* [skip ci] Updated translations via CrowdinGiteaBot2020-05-191-0/+7
|
* Insert ui divider directly in templates instead of from inside heatmap vue ↵wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf2020-05-194-12/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | component (#11508) * ui: remove the divider between heatmap and feeds in the dashboard view * this commit reverses 6ccd19ef86b3b729a3b6dc35076639db5531550a Signed-off-by: surtur <a_mirre@utb.cz> * add a divider to the default user dashboard view * another one-line change, this time as a direct complement of 2bfc71614c0c5470162825a21c13838e15ccf5a6 to implement a divider of sorts (as per 6ccd19ef86b3b729a3b6dc35076639db5531550a originally) Signed-off-by: surtur <a_mirre@utb.cz> * removed the divider in heatmap.tmpl * the separator is added by partial templates as needed Signed-off-by: surtur <a_mirre@utb.cz> * load proper dashboard template code in profile.tmpl * as discussed in Discord * includes a divider of its own Signed-off-by: surtur <a_mirre@utb.cz>
* Tweak reaction buttons (#11496)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>
* ui: Add dividing line between heatmap and feeds in dashboard view (#11437)赵智超2020-05-191-0/+1
| | | | | | | | | | | | | | | | | | * ui: Add dividing line between heatmap and feeds in dashboard view I think it's necessary to add dividing line between heatmap and feeds in dashboard view, or the first items in feed is too near with heatmap which is not a good view. Signed-off-by: a1012112796 <1012112796@qq.com> * Change the implementation method * change style * restart ci Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Use more toned colors for selected line (#11493)Cirno the Strongest2020-05-192-2/+2
| | | Co-authored-by: zeripath <art27@cantab.net>
* Add myself to MAINTAINERS (#11494)Cirno the Strongest2020-05-181-0/+1
|
* Make localstorage read ssh or https correctly (#11483)L0veSunshine2020-05-181-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
* Fix top margin for bottom attached header (#11480)Cirno the Strongest2020-05-181-1/+1
|
* Fix footer padding for comment code reply form on issue event view (#11469)Cirno the Strongest2020-05-181-0/+4
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-05-1719-19/+0
|
* Ensure public repositories in private organizations are visible and fix ↵zeripath2020-05-182-5/+27
| | | | | | | | | | | | | | | | | admin organizations list (#11465) * 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>
* Fix "Unknown task: git_fsck" error on admin dashboard (#11468)65432020-05-172-3/+2
|
* Fix styling of resolved code comment box (#11463)Cirno the Strongest2020-05-171-0/+6
| | | Co-authored-by: Lauris BH <lauris@nix.lv>
* Fix .comment-code-cloud not being removed when cancelling new code comment ↵Cirno the Strongest2020-05-171-1/+1
| | | | (#11464)
* Do not show lock icon on repo list for public repos in private org (#11445)v1.13.0-devCirno the Strongest2020-05-171-4/+0
| | | | Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv>
* [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>