]> source.dussan.org Git - gitea.git/log
gitea.git
4 years agoFix missing authorization check on pull for public repos of private/limited org ...
Cirno the Strongest [Fri, 29 May 2020 14:47:17 +0000 (16:47 +0200)]
Fix missing authorization check on pull for public repos of private/limited org (#11656)

Fixes #11651

4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 29 May 2020 13:25:34 +0000 (13:25 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoDoctor check & fix db consistency (#11111)
6543 [Fri, 29 May 2020 13:24:15 +0000 (15:24 +0200)]
Doctor check & fix db consistency (#11111)

needed to fix issue as described in #10280

* rename check-db to check-db-version
* add check-db-consistency:
* find issues without existing repository
* find pulls without existing issues
* find tracked times without existing issues/pulls
* find labels without repository or org reference

Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 years agotranslate: Change translate for admin.config.enable_captcha (#11657)
赵智超 [Fri, 29 May 2020 08:36:51 +0000 (16:36 +0800)]
translate: Change translate for admin.config.enable_captcha (#11657)

* translate: Change translate for admin.config.enable_captcha

add 'register' to make it more accurate

Signed-off-by: a1012112796 <1012112796@qq.com>
* Update options/locale/locale_en-US.ini

Co-authored-by: Cirno the Strongest <1447794+CirnoT@users.noreply.github.com>
Co-authored-by: Cirno the Strongest <1447794+CirnoT@users.noreply.github.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
4 years agoExclude generated files from language statistics (#11653)
Lauris BH [Fri, 29 May 2020 06:20:01 +0000 (09:20 +0300)]
Exclude generated files from language statistics (#11653)

* Update go-enry to v2.5.2

4 years agoDefault MSSQL port 0 to allow automatic detection by default (#11642)
zeripath [Fri, 29 May 2020 03:59:59 +0000 (04:59 +0100)]
Default MSSQL port 0 to allow automatic detection by default (#11642)

Fix #11633

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
4 years agoAdd debug option to hooks (#11624)
zeripath [Fri, 29 May 2020 03:04:44 +0000 (04:04 +0100)]
Add debug option to hooks (#11624)

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
4 years agoHandle expected errors in AddGPGkey API (#11644)
6543 [Thu, 28 May 2020 21:25:54 +0000 (23:25 +0200)]
Handle expected errors in AddGPGkey API  (#11644)

* handle GPG Parse & Email Errors

* correct TEST

* update Swagger

* more Docu

4 years agoReturn json on 500 error from API (#11574)
6543 [Thu, 28 May 2020 16:58:11 +0000 (18:58 +0200)]
Return json on 500 error from API (#11574)

* add API specific InternalServerError()

Co-authored-by: zeripath <art27@cantab.net>
* return 500 error msg only if not Production mode

* Revert "return 500 error msg only if not Production mode"

This reverts commit 8467b2cee674ad205b452780ca88abb1b27643c8.

* InternalServerError

Co-authored-by: zeripath <art27@cantab.net>
4 years agoUse -1 to disable key algorithm type in ssh.minimum_key_sizes (#11635)
zeripath [Thu, 28 May 2020 13:29:15 +0000 (14:29 +0100)]
Use -1 to disable key algorithm type in ssh.minimum_key_sizes (#11635)

Fix #11634

Signed-off-by: Andrew Thornton <art27@cantab.net>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 27 May 2020 20:33:27 +0000 (20:33 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoFix alignment for commits on dashboard (#11595)
mrsdizzie [Wed, 27 May 2020 20:31:12 +0000 (16:31 -0400)]
Fix alignment for commits on dashboard (#11595)

Fix alignment issue between commit SHA and commit message

4 years agoWhen must change password only show Signout (#11600)
zeripath [Tue, 26 May 2020 22:39:39 +0000 (23:39 +0100)]
When must change password only show Signout (#11600)

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>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 26 May 2020 21:12:40 +0000 (21:12 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoAdd link to owners election tickets, reorder to most-recent first (#11632)
Sandro Santilli [Tue, 26 May 2020 21:11:26 +0000 (23:11 +0200)]
Add link to owners election tickets, reorder to most-recent first (#11632)

4 years agoFix numbr of files, total additions, and deletions (#11614)
zeripath [Tue, 26 May 2020 05:58:07 +0000 (06:58 +0100)]
Fix numbr of files, total additions, and deletions (#11614)

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
4 years agoApply padding to approval icons on PR list (#11622)
Cirno the Strongest [Tue, 26 May 2020 04:48:23 +0000 (06:48 +0200)]
Apply padding to approval icons on PR list (#11622)

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: zeripath <art27@cantab.net>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 26 May 2020 03:50:57 +0000 (03:50 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoFix missing styling for shabox on PR commit history (#11625)
Cirno the Strongest [Tue, 26 May 2020 03:49:53 +0000 (05:49 +0200)]
Fix missing styling for shabox on PR commit history (#11625)

4 years agoMake issues.force_push_codes message shorter (#11575)
Cirno the Strongest [Mon, 25 May 2020 19:50:52 +0000 (21:50 +0200)]
Make issues.force_push_codes message shorter (#11575)

Also removes stray dot and whitespace.

Trying to make base message shorter; I don't envy translators, the message can easily get multi-line in English, I'm sure that is even bigger problem in other languages.

4 years agoFix styling for PR merge section when no checks (#11609)
Cirno the Strongest [Mon, 25 May 2020 19:08:06 +0000 (21:08 +0200)]
Fix styling for PR merge section when no checks (#11609)

Makes styling consistent between two cases. Also removed unnecessary double border.

4 years agoStyle code review comment for arc-green (#11572)
Cirno the Strongest [Mon, 25 May 2020 16:12:49 +0000 (18:12 +0200)]
Style code review comment for arc-green (#11572)

* Style code review comment for arc-green

* change border around review for light; update border around textarea to match #11570

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
4 years agoRight-align status icon on pull request commit history (#11594)
Cirno the Strongest [Mon, 25 May 2020 13:51:13 +0000 (15:51 +0200)]
Right-align status icon on pull request commit history (#11594)

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
4 years agoFix margin on PR form (#11566)
Cirno the Strongest [Mon, 25 May 2020 10:04:02 +0000 (12:04 +0200)]
Fix margin on PR form (#11566)

4 years agoFix margin for attached top header on code review (#11571)
Cirno the Strongest [Mon, 25 May 2020 08:18:48 +0000 (10:18 +0200)]
Fix margin for attached top header on code review (#11571)

Introduced naively by #11463

The margin was being applied too widely.

4 years agoAdd warning to mailer documentation about authentication (#11563)
zeripath [Sun, 24 May 2020 22:56:18 +0000 (23:56 +0100)]
Add warning to mailer documentation about authentication (#11563)

* Add warning to mailer documentation about authentication

References #7966

Signed-off-by: Andrew Thornton <art27@cantab.net>
* As per @guillep2k and @mrsdizzie

* as per @mrsdizzie

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
4 years agoDo not show avatar for "{{user}} added X commits" (#11591)
Cirno the Strongest [Sun, 24 May 2020 20:26:03 +0000 (22:26 +0200)]
Do not show avatar for "{{user}} added X commits" (#11591)

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
4 years agoAdd chocolatey package install instructions (#11586)
Will 保哥 [Sun, 24 May 2020 19:17:33 +0000 (03:17 +0800)]
Add chocolatey package install instructions (#11586)

* Update from-package.en-us.md

https://github.com/go-gitea/gitea/issues/10800

* Update docs/content/doc/installation/from-package.en-us.md

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
4 years agoFix inconsistent font size for markdown preview on new PR view (#11565)
Cirno the Strongest [Sun, 24 May 2020 17:53:37 +0000 (19:53 +0200)]
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.

4 years agoWhen initialising repositories ensure that the user doing the creation is the initial...
zeripath [Sun, 24 May 2020 17:12:40 +0000 (18:12 +0100)]
When initialising repositories ensure that the user doing the creation is the initializer (#11601)

Fix #10760

Signed-off-by: Andrew Thornton <art27@cantab.net>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 24 May 2020 14:40:08 +0000 (14:40 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoFix wrong milestone in webhook message (#11596)
Gary Kim [Sun, 24 May 2020 14:38:34 +0000 (22:38 +0800)]
Fix wrong milestone in webhook message (#11596)

Fixes #11295

Signed-off-by: Gary Kim gary@garykim.dev
4 years agoPrevent empty query parameter being set on dashboard (#11561)
zeripath [Sun, 24 May 2020 13:02:16 +0000 (14:02 +0100)]
Prevent empty query parameter being set on dashboard (#11561)

Prevent the dashboard from setting an empty query parameter

Fix #11543

Signed-off-by: Andrew Thornton art27@cantab.net
4 years agoFix images in wiki edit preview (#11546)
mrsdizzie [Sun, 24 May 2020 10:41:33 +0000 (06:41 -0400)]
Fix images in wiki edit preview (#11546)

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

4 years agoAllow different HardBreaks settings for documents and comments (#11515)
zeripath [Sun, 24 May 2020 08:14:26 +0000 (09:14 +0100)]
Allow different HardBreaks settings for documents and comments (#11515)

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>
4 years agoFix serviceworker output file and misc improvements (#11562)
silverwind [Sun, 24 May 2020 07:36:40 +0000 (09:36 +0200)]
Fix serviceworker output file and misc improvements (#11562)

* 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

4 years agoAdd missing padding for multi-commit list on PR view (#11593)
Cirno the Strongest [Sun, 24 May 2020 05:54:18 +0000 (07:54 +0200)]
Add missing padding for multi-commit list on PR view (#11593)

4 years agoPrevent (caught) panic on login (#11590)
zeripath [Sat, 23 May 2020 23:59:04 +0000 (00:59 +0100)]
Prevent (caught) panic on login (#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>
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
4 years agoFix styling and padding for commit list on PR view (#11588)
Cirno the Strongest [Sat, 23 May 2020 22:05:20 +0000 (00:05 +0200)]
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

4 years agoProperly handle and return empty string for dangling commits in GetBranchName (#11587)
Cirno the Strongest [Sat, 23 May 2020 19:49:48 +0000 (21:49 +0200)]
Properly handle and return empty string for dangling commits in GetBranchName (#11587)

4 years agoEnsure serviceworker is created as /serviceworker.js (#11577)
zeripath [Sat, 23 May 2020 13:58:58 +0000 (14:58 +0100)]
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 art27@cantab.net
4 years agoEnforce transparent background on editor toolbar elements (#11569)
Cirno the Strongest [Sat, 23 May 2020 11:59:40 +0000 (13:59 +0200)]
Enforce transparent background on editor toolbar elements (#11569)

Co-authored-by: Lauris BH <lauris@nix.lv>
4 years agoFix Enter not working in SimpleMDE (#11564)
silverwind [Sat, 23 May 2020 01:29:57 +0000 (03:29 +0200)]
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

4 years agoUse default commit message for wiki edits (#11550)
mrsdizzie [Fri, 22 May 2020 13:14:02 +0000 (09:14 -0400)]
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

4 years agoClose EventSource before unloading the page (#11539)
silverwind [Fri, 22 May 2020 10:57:54 +0000 (12:57 +0200)]
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.

4 years agoMove serviceworker to workbox and fix SSE interference (#11538)
silverwind [Fri, 22 May 2020 01:45:34 +0000 (03:45 +0200)]
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 <18600385+guillep2k@users.noreply.github.com>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 22 May 2020 00:03:16 +0000 (00:03 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoEnsure emoji render with regular font-weight (#11541)
silverwind [Fri, 22 May 2020 00:01:58 +0000 (02:01 +0200)]
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.

4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 21 May 2020 13:49:42 +0000 (13:49 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoPrevent transferring repos to invisible orgs (#11517)
guillep2k [Thu, 21 May 2020 13:48:01 +0000 (10:48 -0300)]
Prevent transferring repos to invisible orgs (#11517)

Co-authored-by: Guillermo Prandi <guillep2k@users.noreply.github.com>
4 years agoAPI PullReviewComment HTMLPullURL should return the HTMLURL (#11501)
zeripath [Thu, 21 May 2020 02:41:30 +0000 (03:41 +0100)]
API PullReviewComment HTMLPullURL should return the HTMLURL (#11501)

Fix #11499

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
4 years agoMove tributejs to npm/webpack (#11497)
silverwind [Thu, 21 May 2020 02:00:43 +0000 (04:00 +0200)]
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 <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>
4 years agoFix repo-list private and total count bugs (#11500)
zeripath [Thu, 21 May 2020 01:15:30 +0000 (02:15 +0100)]
Fix repo-list private and total count bugs (#11500)

* 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>
4 years agoFix webpack chunk loading with STATIC_URL_PREFIX (#11526)
silverwind [Wed, 20 May 2020 22:33:31 +0000 (00:33 +0200)]
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 <art27@cantab.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
4 years agoFix text-transform on wiki revisions page (#11486)
Cirno the Strongest [Wed, 20 May 2020 20:27:14 +0000 (22:27 +0200)]
Fix text-transform on wiki revisions page (#11486)

* Fix text-transform on wiki revisions page

* apply global

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: zeripath <art27@cantab.net>
4 years agoFix the bug that the emoji does not disappear (#11489)
L0veSunshine [Wed, 20 May 2020 19:41:33 +0000 (03:41 +0800)]
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 <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>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 20 May 2020 18:36:38 +0000 (18:36 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoFix form action template substitutions on admin pages (#11519)
Matthew R. McDougal [Wed, 20 May 2020 18:35:16 +0000 (13:35 -0500)]
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 <techknowlogick@gitea.io>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 20 May 2020 17:13:30 +0000 (17:13 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoFix margin for branch-update grid on PR view when update button is not present (...
Cirno the Strongest [Wed, 20 May 2020 17:12:08 +0000 (19:12 +0200)]
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 <techknowlogick@gitea.io>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 20 May 2020 16:17:40 +0000 (16:17 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoTrimSpace when reading InternalToken from a file (#11502)
zeripath [Wed, 20 May 2020 16:16:06 +0000 (17:16 +0100)]
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 <art27@cantab.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
4 years agoAdd push commits history comment on PR time-line (#11167)
赵智超 [Wed, 20 May 2020 12:47:24 +0000 (20:47 +0800)]
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 <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>
4 years agoEnable stylelint's shorthand-property-no-redundant-values (#11436)
silverwind [Wed, 20 May 2020 04:06:04 +0000 (06:06 +0200)]
Enable stylelint's shorthand-property-no-redundant-values (#11436)

Enabled the rule and --fix'ed issues.

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
4 years agoRemove IE11 support (#11470)
silverwind [Wed, 20 May 2020 03:28:59 +0000 (05:28 +0200)]
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 <techknowlogick@gitea.io>
4 years agoFix selected line color in arc-green (#11492)
Cirno the Strongest [Wed, 20 May 2020 02:49:48 +0000 (04:49 +0200)]
Fix selected line color in arc-green (#11492)

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
4 years agoFix dropzone color on arc-green (#11514)
Cirno the Strongest [Tue, 19 May 2020 22:54:20 +0000 (00:54 +0200)]
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 <techknowlogick@gitea.io>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 19 May 2020 20:25:38 +0000 (20:25 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoInsert ui divider directly in templates instead of from inside heatmap vue component...
wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf [Tue, 19 May 2020 20:24:14 +0000 (22:24 +0200)]
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 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>
4 years agoTweak reaction buttons (#11496)
silverwind [Tue, 19 May 2020 07:17:37 +0000 (09:17 +0200)]
Tweak reaction buttons (#11496)

- 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>
4 years agoui: Add dividing line between heatmap and feeds in dashboard view (#11437)
赵智超 [Tue, 19 May 2020 06:42:43 +0000 (14:42 +0800)]
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 <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>
4 years agoUse more toned colors for selected line (#11493)
Cirno the Strongest [Tue, 19 May 2020 05:58:45 +0000 (07:58 +0200)]
Use more toned colors for selected line (#11493)

Co-authored-by: zeripath <art27@cantab.net>
4 years agoAdd myself to MAINTAINERS (#11494)
Cirno the Strongest [Mon, 18 May 2020 21:50:22 +0000 (23:50 +0200)]
Add myself to MAINTAINERS (#11494)

4 years agoMake localstorage read ssh or https correctly (#11483)
L0veSunshine [Mon, 18 May 2020 17:44:39 +0000 (01:44 +0800)]
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

4 years agoFix top margin for bottom attached header (#11480)
Cirno the Strongest [Mon, 18 May 2020 10:27:09 +0000 (12:27 +0200)]
Fix top margin for bottom attached header (#11480)

4 years agoFix footer padding for comment code reply form on issue event view (#11469)
Cirno the Strongest [Mon, 18 May 2020 05:33:47 +0000 (07:33 +0200)]
Fix footer padding for comment code reply form on issue event view (#11469)

4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 17 May 2020 23:29:05 +0000 (23:29 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoEnsure public repositories in private organizations are visible and fix admin organiz...
zeripath [Sun, 17 May 2020 23:27:54 +0000 (00:27 +0100)]
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 <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>
4 years agoFix "Unknown task: git_fsck" error on admin dashboard (#11468)
6543 [Sun, 17 May 2020 22:14:33 +0000 (00:14 +0200)]
Fix "Unknown task: git_fsck" error on admin dashboard (#11468)

4 years agoFix styling of resolved code comment box (#11463)
Cirno the Strongest [Sun, 17 May 2020 20:43:04 +0000 (22:43 +0200)]
Fix styling of resolved code comment box (#11463)

Co-authored-by: Lauris BH <lauris@nix.lv>
4 years agoFix .comment-code-cloud not being removed when cancelling new code comment (#11464)
Cirno the Strongest [Sun, 17 May 2020 20:36:34 +0000 (22:36 +0200)]
Fix .comment-code-cloud not being removed when cancelling new code comment (#11464)

4 years agoDo not show lock icon on repo list for public repos in private org (#11445) v1.13.0-dev
Cirno the Strongest [Sun, 17 May 2020 16:59:25 +0000 (18:59 +0200)]
Do not show lock icon on repo list for public repos in private org (#11445)

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 17 May 2020 15:36:19 +0000 (15:36 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoIncrease width for authors on commit view (#11441)
Cirno the Strongest [Sun, 17 May 2020 15:35:07 +0000 (17:35 +0200)]
Increase width for authors on commit view (#11441)

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 17 May 2020 14:16:15 +0000 (14:16 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoChange tab width for .go files to 4 (#11455)
silverwind [Sun, 17 May 2020 14:14:36 +0000 (16:14 +0200)]
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 <lauris@nix.lv>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 17 May 2020 12:44:33 +0000 (12:44 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoWhenever the ctx.Session is updated, release it to save it before sending the redirec...
zeripath [Sun, 17 May 2020 12:43:29 +0000 (13:43 +0100)]
Whenever the ctx.Session is updated, release it to save it before sending the redirect (#11456)

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 17 May 2020 11:11:07 +0000 (11:11 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoDocs: add AlpineLinux packages (#11446)
6543 [Sun, 17 May 2020 11:09:56 +0000 (13:09 +0200)]
Docs: add AlpineLinux packages (#11446)

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
4 years agoFix translation to be compatible with crowdin (#11453)
Lauris BH [Sun, 17 May 2020 09:18:59 +0000 (12:18 +0300)]
Fix translation to be compatible with crowdin (#11453)

4 years agoAllow all members of private orgs to see public repos (#11442)
zeripath [Sun, 17 May 2020 08:22:17 +0000 (09:22 +0100)]
Allow all members of private orgs to see public repos (#11442)

* 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>
4 years agoForcibly clean and destroy the session on logout (#11447)
zeripath [Sun, 17 May 2020 06:05:11 +0000 (07:05 +0100)]
Forcibly clean and destroy the session on logout (#11447)

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 17 May 2020 00:49:40 +0000 (00:49 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoCheck Push permissions on IsUserAllowedToUpdate (#11448)
6543 [Sun, 17 May 2020 00:48:30 +0000 (02:48 +0200)]
Check Push permissions on IsUserAllowedToUpdate (#11448)

4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sat, 16 May 2020 23:33:25 +0000 (23:33 +0000)]
[skip ci] Updated translations via Crowdin

4 years agoRefactor Cron and merge dashboard tasks (#10745)
zeripath [Sat, 16 May 2020 23:31:38 +0000 (00:31 +0100)]
Refactor Cron and merge dashboard tasks (#10745)

* 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>
4 years agoHide archived repos by default in repo-list (#11440)
zeripath [Sat, 16 May 2020 22:12:03 +0000 (23:12 +0100)]
Hide archived repos by default in repo-list (#11440)

As discussed in #11268 hide archived repos by default in the
dashboard repo-list

Signed-off-by: Andrew Thornton <art27@cantab.net>
4 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sat, 16 May 2020 21:07:43 +0000 (21:07 +0000)]
[skip ci] Updated translations via Crowdin

4 years ago[UI] Adjust CSS details for adding emoticons (#11435)
L0veSunshine [Sat, 16 May 2020 21:06:34 +0000 (05:06 +0800)]
[UI] Adjust CSS details for adding emoticons (#11435)

* Adjust CSS details for added emoticons

* fix lint

* avoid git conflict