Commit Graph
16559 Commits
Author SHA1 Message Date
Cirno the StrongestandGitHub ac3c467770 Fix styling and padding for commit list on PR view (#11588)
* Fix styling and padding for commit list on PR view

* fix bold on author
2020-05-24 01:05:20 +03:00
Cirno the StrongestandGitHub 31df012968 Properly handle and return empty string for dangling commits in GetBranchName (#11587) 2020-05-23 20:49:48 +01:00
zeripathandGitHub 723b199271 Ensure serviceworker is created as /serviceworker.js (#11577)
#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 [email protected]
2020-05-23 14:58:58 +01:00
38c773d8a5 Enforce transparent background on editor toolbar elements (#11569)
Co-authored-by: Lauris BH <[email protected]>
2020-05-23 14:59:40 +03:00
silverwindandGitHub 1752a976e1 Fix Enter not working in SimpleMDE (#11564)
* 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
2020-05-22 21:29:57 -04:00
mrsdizzieandGitHub 5789e60316 Use default commit message for wiki edits (#11550)
Use a default commit message when a user doesn't add one (same as repo editor) to avoid commit lists with no message
2020-05-22 14:14:02 +01:00
silverwindandGitHub 6af13dbac2 Close EventSource before unloading the page (#11539)
Should eliminate a error in the Firefox console regarding the connection
being interrupted while the page was loading.
2020-05-22 11:57:54 +01:00
88fe7b5a72 Move serviceworker to workbox and fix SSE interference (#11538)
* 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 <[email protected]>
2020-05-21 21:45:34 -04:00
GiteaBot f6f49700cc [skip ci] Updated translations via Crowdin 2020-05-22 00:03:16 +00:00
silverwindandGitHub 035db78018 Ensure emoji render with regular font-weight (#11541)
Emoji characters don't support bold attributes and may do weird things
like rendering monochrome when bolded.
2020-05-21 21:01:58 -03:00
GiteaBot 460bc32c71 [skip ci] Updated translations via Crowdin 2020-05-21 13:49:42 +00:00
e963525c5e Prevent transferring repos to invisible orgs (#11517)
Co-authored-by: Guillermo Prandi <[email protected]>
2020-05-21 08:48:01 -05:00
0b8b81e029 API PullReviewComment HTMLPullURL should return the HTMLURL (#11501)
Fix #11499

Signed-off-by: Andrew Thornton <[email protected]>

Co-authored-by: techknowlogick <[email protected]>
2020-05-20 22:41:30 -04:00
b02d2c3772 Move tributejs to npm/webpack (#11497)
* 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 <[email protected]>

* rewrite to only use one instance of Tribute

* refactor

* fix copy/paste error

Co-authored-by: mrsdizzie <[email protected]>
Co-authored-by: techknowlogick <[email protected]>
2020-05-20 22:00:43 -04:00
3eb323901c Fix repo-list private and total count bugs (#11500)
* Fix repo-list private and total count bugs

Signed-off-by: Andrew Thornton <[email protected]>

* Ensure limited and private org public repos are displayed on "private"

Signed-off-by: Andrew Thornton <[email protected]>

* switch from onlyPrivate to is_private

Signed-off-by: Andrew Thornton <[email protected]>

* Generate swagger

Signed-off-by: Andrew Thornton <[email protected]>

Co-authored-by: guillep2k <[email protected]>
2020-05-20 22:15:30 -03:00
b797b76abd Fix webpack chunk loading with STATIC_URL_PREFIX (#11526)
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 <[email protected]>
Co-authored-by: Lauris BH <[email protected]>
2020-05-20 23:33:31 +01:00
c7c61778bc Fix text-transform on wiki revisions page (#11486)
* Fix text-transform on wiki revisions page

* apply global

Co-authored-by: techknowlogick <[email protected]>
Co-authored-by: zeripath <[email protected]>
2020-05-20 16:27:14 -04:00
b6d01ccdca Fix the bug that the emoji does not disappear (#11489)
* Fix the bug that the emoticon does not disappear

* Update web_src/js/index.js

Co-authored-by: Lauris BH <[email protected]>

* Update web_src/js/index.js

Co-authored-by: Lauris BH <[email protected]>

Co-authored-by: Lauris BH <[email protected]>
Co-authored-by: techknowlogick <[email protected]>
Co-authored-by: zeripath <[email protected]>
2020-05-20 15:41:33 -04:00
GiteaBot 7c287b9f0b [skip ci] Updated translations via Crowdin 2020-05-20 18:36:38 +00:00
689e7e8831 Fix form action template substitutions on admin pages (#11519)
* Fix form action template substitution on admin dashboard

* Fix form action template substitution on admin monitoring page

Co-authored-by: techknowlogick <[email protected]>
2020-05-20 14:35:16 -04:00
GiteaBot 21243bb46f [skip ci] Updated translations via Crowdin 2020-05-20 17:13:30 +00:00
ee4e8542c7 Fix margin for branch-update grid on PR view when update button is not 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 <[email protected]>
2020-05-20 13:12:08 -04:00
GiteaBot 3856fd7c10 [skip ci] Updated translations via Crowdin 2020-05-20 16:17:40 +00:00
c81ab17de9 TrimSpace when reading InternalToken from a file (#11502)
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 <[email protected]>

Co-authored-by: Lauris BH <[email protected]>
2020-05-20 19:16:06 +03:00
0903b1ac8c Add push commits history comment on PR time-line (#11167)
* Add push commits history comment on PR time-line
* Add notify by email and ui of this comment type also

Signed-off-by: a1012112796 <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

* Apply suggestions from code review

* fix ui view

Co-authored-by: silverwind <[email protected]>

* 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 <[email protected]>
Co-authored-by: mrsdizzie <[email protected]>
Co-authored-by: Lauris BH <[email protected]>
Co-authored-by: silverwind <[email protected]>
2020-05-20 09:47:24 -03:00
9e0e2a9fcf Enable stylelint's shorthand-property-no-redundant-values (#11436)
Enabled the rule and --fix'ed issues.

Co-authored-by: techknowlogick <[email protected]>
2020-05-20 00:06:04 -04:00
34e6a4e057 Remove IE11 support (#11470)
* 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 <[email protected]>
2020-05-19 23:28:59 -04:00
6da87eda8b Fix selected line color in arc-green (#11492)
Co-authored-by: techknowlogick <[email protected]>
2020-05-19 22:49:48 -04:00
c572ee2b61 Fix dropzone color on arc-green (#11514)
* Fix dropzone color on arc-green

* fix missing ;

* use same color as textarea and fix border

Co-authored-by: techknowlogick <[email protected]>
2020-05-19 18:54:20 -04:00
GiteaBot b5851b7d1a [skip ci] Updated translations via Crowdin 2020-05-19 20:25:38 +00:00
wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHfandGitHub a2d7999e93 Insert ui divider directly in templates instead of from inside heatmap vue component (#11508)
* ui: remove the divider between heatmap and feeds in the dashboard view

* this commit reverses 6ccd19ef86

Signed-off-by: surtur <[email protected]>

* 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 6ccd19ef86 originally)

Signed-off-by: surtur <[email protected]>

* removed the divider in heatmap.tmpl

* the separator is added by partial templates as needed

Signed-off-by: surtur <[email protected]>

* load proper dashboard template code in profile.tmpl

* as discussed in Discord
* includes a divider of its own

Signed-off-by: surtur <[email protected]>
2020-05-19 21:24:14 +01:00
50a97272b9 Tweak reaction buttons (#11496)
- Vertical centering using flexbox
- Very slightly decreased size of the boxes

Co-authored-by: zeripath <[email protected]>
Co-authored-by: techknowlogick <[email protected]>
2020-05-19 03:17:37 -04:00
6ccd19ef86 ui: Add dividing line between heatmap and feeds in dashboard view (#11437)
* 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 <[email protected]>

* Change the implementation method

* change style

* restart ci

Co-authored-by: Lauris BH <[email protected]>
Co-authored-by: techknowlogick <[email protected]>
2020-05-19 02:42:43 -04:00
7b66400f55 Use more toned colors for selected line (#11493)
Co-authored-by: zeripath <[email protected]>
2020-05-19 01:58:45 -04:00
Cirno the StrongestandGitHub 29fbe63ba9 Add myself to MAINTAINERS (#11494) 2020-05-18 16:50:22 -05:00
L0veSunshineandGitHub eb8abffcc1 Make localstorage read ssh or https correctly (#11483)
* 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
2020-05-18 12:44:39 -05:00
Cirno the StrongestandGitHub 6b798feaf6 Fix top margin for bottom attached header (#11480) 2020-05-18 11:27:09 +01:00
Cirno the StrongestandGitHub e7e0097148 Fix footer padding for comment code reply form on issue event view (#11469) 2020-05-18 06:33:47 +01:00
GiteaBot b72af7ee71 [skip ci] Updated translations via Crowdin 2020-05-17 23:29:05 +00:00
a4cd1f12f8 Ensure public repositories in private organizations are visible and fix admin organizations list (#11465)
* Ensure that we can see public repositories in private organization

Fix #10144 (Again)

Signed-off-by: Andrew Thornton <[email protected]>

* Fix Admin users and organizations page

Signed-off-by: Andrew Thornton <[email protected]>

* Update models/repo_list.go

Co-authored-by: Lauris BH <[email protected]>
2020-05-18 00:27:54 +01:00
6543andGitHub 9a829b98f0 Fix "Unknown task: git_fsck" error on admin dashboard (#11468) 2020-05-17 23:14:33 +01:00
7fd60c6d8d Fix styling of resolved code comment box (#11463)
Co-authored-by: Lauris BH <[email protected]>
2020-05-17 23:43:04 +03:00
Cirno the StrongestandGitHub ef5f176517 Fix .comment-code-cloud not being removed when cancelling new code comment (#11464) 2020-05-17 23:36:34 +03:00
03b7e11bd6 Do not show lock icon on repo list for public repos in private org (#11445)
Co-authored-by: zeripath <[email protected]>
Co-authored-by: Lauris BH <[email protected]>
2020-05-17 19:59:25 +03:00
GiteaBot fb43fbe0aa [skip ci] Updated translations via Crowdin 2020-05-17 15:36:19 +00:00
17f652a91c Increase width for authors on commit view (#11441)
Co-authored-by: Lunny Xiao <[email protected]>
Co-authored-by: zeripath <[email protected]>
Co-authored-by: Lauris BH <[email protected]>
2020-05-17 18:35:07 +03:00
GiteaBot 580f73ad79 [skip ci] Updated translations via Crowdin 2020-05-17 14:16:15 +00:00
97cabf39cd Change tab width for .go files to 4 (#11455)
* 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 <[email protected]>
2020-05-17 17:14:36 +03:00
GiteaBot 4e302baa4c [skip ci] Updated translations via Crowdin 2020-05-17 12:44:33 +00:00
76053ac31a Whenever the ctx.Session is updated, release it to save it before sending the redirect (#11456)
Signed-off-by: Andrew Thornton <[email protected]>

Co-authored-by: Lauris BH <[email protected]>
2020-05-17 15:43:29 +03:00