GiteaBot
42a5e39b3b
[skip ci] Updated translations via Crowdin
2020-09-03 21:27:49 +00:00
silverwind and GitHub
844d9b46f3
Update JS dependencies ( #12702 )
...
- Added some new octicons
- Add explicit less dependency as required by upstream
- Enable es2021 environment in eslint
2020-09-04 00:26:50 +03:00
GiteaBot
6d6b5ceaa5
[skip ci] Updated translations via Crowdin
2020-09-03 18:59:33 +00:00
5c0697ad1e
Use argon as default password hash algorithm ( #12688 )
...
* Restrict TLS connections to 1.2 minimum
* Set Argon2 as the default KDF
* Fix user.yml
* Remove TLS minversion changes
Signed-off-by: Andrew Thornton <[email protected] >
* Add migration as per @techknowlogick
Signed-off-by: Andrew Thornton <[email protected] >
* set the password algo in the fixtures
Signed-off-by: Andrew Thornton <[email protected] >
* Remove the v148 migration - it needs recreate table to change the defaults
Signed-off-by: Andrew Thornton <[email protected] >
Co-authored-by: Nadim Kobeissi <[email protected] >
2020-09-03 14:58:31 -04:00
GiteaBot
8fa7a4b511
[skip ci] Updated translations via Crowdin
2020-09-03 10:12:22 +00:00
Lunny Xiao and GitHub
f1a7cd6757
Remove GOPATH set up on hacking ( #12698 )
2020-09-03 11:11:23 +01:00
GiteaBot
baa93855e8
[skip ci] Updated translations via Crowdin
2020-09-03 07:36:13 +00:00
ad4a644fb3
Migrations: Gitlab Add Reactions Support for Issues & MergeRequests ( #12695 )
...
* fix migrations: gitlab_test
* more stable test
* Get Reactions to Pulls
* Reactions for Issues
* Comments are still hard
Co-authored-by: Lauris BH <[email protected] >
2020-09-03 10:35:17 +03:00
7af2ccd511
Avoid sending "0 new commits" webhooks ( #12212 )
...
* Avoid sending "0 new commits" webhook
Signed-off-by: Till Faelligen <[email protected] >
* Revert "Avoid sending "0 new commits" webhook"
This reverts commit 1f47ccfacd81470e2c33a02bb8d255172aa4ec08.
* Move commit count check to more central place
* Make tests pass
* Update modules/webhook/webhook.go
Co-authored-by: Lauris BH <[email protected] >
Co-authored-by: Lauris BH <[email protected] >
Co-authored-by: zeripath <[email protected] >
Co-authored-by: techknowlogick <[email protected] >
2020-09-02 22:46:02 -04:00
Lunny Xiao and GitHub
514201af5d
Upgrade xorm to v1.0.4 ( #12694 )
2020-09-03 02:58:04 +01:00
zeripath and GitHub
702e98c5ec
Set TLS minimum version to 1.2 ( #12689 )
...
Signed-off-by: Andrew Thornton <[email protected] >
2020-09-02 23:37:49 +01:00
zeripath and GitHub
5fd9f72104
When reading expired sessions - expire them ( #12686 )
...
* When reading expired sessions - expire them
Update to latest macaron/session following merge of
https://gitea.com/macaron/session/pulls/11
Also remove old memory provider as 11 updates the memory provider to
make it unnecessary.
Signed-off-by: Andrew Thornton <[email protected] >
* and macaron/session/pulls/12
Signed-off-by: Andrew Thornton <[email protected] >
2020-09-02 17:10:35 -04:00
GiteaBot
ed81a95a84
[skip ci] Updated translations via Crowdin
2020-09-02 20:20:42 +00:00
zeripath and GitHub
dead2a9b2d
Escape failed highlighted code ( #12685 )
...
Signed-off-by: Andrew Thornton <[email protected] >
2020-09-02 16:19:42 -04:00
72eeb13e4d
Set avatar image dimensions ( #12654 )
...
Set the avatar image dimensions to help browsers
avoid layout reflows. Helps page load performance and
user experience (less content jank).
Co-authored-by: Lauris BH <[email protected] >
Co-authored-by: Lunny Xiao <[email protected] >
Co-authored-by: techknowlogick <[email protected] >
2020-09-02 14:42:28 -04:00
714ab71ddc
Ensure that all migration requests are cancellable ( #12669 )
...
* Ensure that all migration requests are cancellable
Signed-off-by: Andrew Thornton <[email protected] >
* Use WithContext as RequestWithContext is go 1.14
Signed-off-by: Andrew Thornton <[email protected] >
Co-authored-by: techknowlogick <[email protected] >
2020-09-02 13:49:25 -04:00
84eac6ed6c
Add make targed generate-license & generate-gitignore + Update ( #12682 )
...
* Add make targed generate-license & generate-gitignore
* Update Gitignores & Licenses
Co-authored-by: techknowlogick <[email protected] >
2020-09-02 12:57:08 -04:00
GiteaBot
3ecd030cd5
[skip ci] Updated translations via Crowdin
2020-09-02 16:56:15 +00:00
3981f1b127
Remove duplicate logic in initListSubmits ( #12660 )
...
* Remove duplicate logic in initListSubmits
Using the same logic to handle Choosing reviewers and assignees as
choosing label. It's the first step of #10926 .
Signed-off-by: a1012112796 <[email protected] >
* fix choose block
* fix nit
* try fix bug
* simple code
Co-authored-by: techknowlogick <[email protected] >
2020-09-02 12:55:13 -04:00
GiteaBot
ea775e67fb
[skip ci] Updated translations via Crowdin
2020-09-02 15:02:44 +00:00
Martin and GitHub
a0c4c1ce0d
Fixes cli error for Asciidoctor ( #12677 )
...
The original fix for #8676 introduced illegal arguments for Asciidoctor, causing no rendering at all. This PR fixes the command line arguments so that Asciidoctor properly renders the text. See https://asciidoctor.org/docs/user-manual/#piping-content-through-the-cli as reference.
2020-09-02 11:01:28 -04:00
6543 and GitHub
3270e7a443
[Vendor] update go-swagger v0.21.0 -> v0.25.0 ( #12670 )
...
* Update go-swagger
* vendor
2020-09-01 10:01:23 -04:00
GiteaBot
66843f2237
[skip ci] Updated translations via Crowdin
2020-08-31 17:13:45 +00:00
zeripath and GitHub
82b71881d8
Ensure repoNames are lowercased in serv ( #12668 )
...
#12624 missed lowering the provided repoPath.
(Additionally make a few fixes to the way the debug flag works.)
Fix #12659
Fix #12667
Signed-off-by: Andrew Thornton <[email protected] >
2020-08-31 18:12:49 +01:00
GiteaBot
807a41ca9a
[skip ci] Updated translations via Crowdin
2020-08-30 22:55:54 +00:00
58f57b3b6c
Escape provider name in oauth2 provider redirect ( #12648 )
...
Signed-off-by: Andrew Thornton <[email protected] >
Co-authored-by: Lauris BH <[email protected] >
2020-08-30 23:55:01 +01:00
9bc69ff26e
Support elastic search for code search ( #10273 )
...
* Support elastic search for code search
* Finished elastic search implementation and add some tests
* Enable test on drone and added docs
* Add new fields to elastic search
* Fix bug
* remove unused changes
* Use indexer alias to keep the gitea indexer version
* Improve codes
* Some code improvements
* The real indexer name changed to xxx.v1
Co-authored-by: zeripath <[email protected] >
2020-08-30 19:08:01 +03:00
zeripath and GitHub
d257485bc0
Rename models.ProtectedBranchRepoID to models.EnvRepoID and ensure EnvPusherEmail is set ( #12646 )
...
Signed-off-by: Andrew Thornton <[email protected] >
2020-08-30 08:24:39 +01:00
zeripath and GitHub
17fbbe97d7
Do not disable commit changes button on repost ( #12644 )
...
If the user has pressed commit changes and the post has failed - do not disable
the commit changes button.
Fix #12072
Signed-off-by: Andrew Thornton <[email protected] >
2020-08-29 17:32:46 -04:00
zeripath and GitHub
9abc16a280
fix documentation for REFRESH_TOKEN_EXPIRATION_TIME ( #12642 )
...
REFRESH_TOKEN_EXPIRATION_TIME refers to the refresh token not the access token
Fix #12641
Signed-off-by: Andrew Thornton <[email protected] >
2020-08-29 23:02:38 +03:00
silverwind and GitHub
7187fdbb1c
Update eslint config ( #12609 )
...
- Remove unneeded "Tribute" global
- Separate Node and Browser environments
- Update environment to es2020 to enable new globals like "BigInt"
2020-08-29 16:34:00 +01:00
Mike L and GitHub
afd89b1767
Dark theme for line numbers in blame view ( #12632 )
2020-08-29 13:41:04 +03:00
e1eee2d00a
Avoid unnecessary system-ui expansion ( #12522 )
...
* Avoid unnecessary system-ui expansion (fix #12325 )
* extract config to static object
Co-authored-by: silverwind <[email protected] >
Co-authored-by: techknowlogick <[email protected] >
2020-08-28 19:41:28 -04:00
zeripath and GitHub
7ba6fea0b7
Use shellquote to unpack arguments to gitea serv ( #12624 )
...
Fix #12471
Signed-off-by: Andrew Thornton <[email protected] >
2020-08-28 20:55:25 +01:00
GiteaBot
274f9233ab
[skip ci] Updated translations via Crowdin
2020-08-28 17:40:33 +00:00
1fe909757c
Apply #12576 to top right reaction picker ( #12623 )
...
Co-authored-by: techknowlogick <[email protected] >
2020-08-28 13:39:41 -04:00
GiteaBot
3bf1c4fad0
[skip ci] Updated translations via Crowdin
2020-08-28 14:40:48 +00:00
zeripath and GitHub
1d47a25759
Fix confusing last_org_owner locale string ( #12628 )
...
Signed-off-by: Andrew Thornton <[email protected] >
2020-08-28 09:39:50 -05:00
d5b6931dbe
[API] Delete Token accept names too ( #12366 )
...
* Delete Token accept names too
* better description
Co-authored-by: zeripath <[email protected] >
Co-authored-by: Lauris BH <[email protected] >
2020-08-28 11:09:33 +03:00
eb1bf2377b
Set context for running CreateArchive in to that of the request ( #12555 )
...
Set the context for CreateArchive to that of the request to ensure that archives
are only built for as long as a request is requesting them
Fix #11551
Signed-off-by: Andrew Thornton <[email protected] >
Co-authored-by: Lauris BH <[email protected] >
2020-08-28 09:55:12 +03:00
d3b5edacb6
Escape more things that are passed through str2html ( #12622 )
...
* Escape more things that are passed through str2html
Signed-off-by: Andrew Thornton <[email protected] >
* Bloody editors!
Co-authored-by: mrsdizzie <[email protected] >
* Update routers/user/oauth.go
Co-authored-by: mrsdizzie <[email protected] >
Co-authored-by: techknowlogick <[email protected] >
2020-08-28 00:37:05 -04:00
GiteaBot
cbc60f5c70
[skip ci] Updated translations via Crowdin
2020-08-28 02:48:16 +00:00
c5d5d63c9c
Macaron 1.5 ( #12596 )
...
* update macaron to v1.5 of fork
* update macaron to v1.5 of fork
* test gzip PR
* add push method impl to context_tests
* use proper gzip commit
Co-authored-by: zeripath <[email protected] >
Co-authored-by: Lunny Xiao <[email protected] >
2020-08-27 22:47:17 -04:00
211321fb93
Git migration UX ( #12619 )
...
* Initial work
Signed-off-by: jolheiser <[email protected] >
* Implementation
Signed-off-by: jolheiser <[email protected] >
* Fix gitlab and token cloning
Signed-off-by: jolheiser <[email protected] >
* Imports and JS
Signed-off-by: jolheiser <[email protected] >
* Fix test
Signed-off-by: jolheiser <[email protected] >
* Linting
Signed-off-by: jolheiser <[email protected] >
* Generate swagger
Signed-off-by: jolheiser <[email protected] >
* Move mirror toggle and rename options
Signed-off-by: jolheiser <[email protected] >
Co-authored-by: Lauris BH <[email protected] >
Co-authored-by: Lunny Xiao <[email protected] >
2020-08-28 09:36:37 +08:00
GiteaBot
ed2f6e137b
[skip ci] Updated translations via Crowdin
2020-08-27 20:46:30 +00:00
silverwind and GitHub
f8601f3f09
Fix ellipsis in files table ( #12617 )
...
Turns out text ellispsis does not work in combination with flexbox and
while wrapping in a display:block can help in some cases, I could not
get this to work properly so this changes the truncate to inline-block
again and reduces the clickable area to just vertical expansion from the
links.
2020-08-27 21:45:37 +01:00
silverwind and GitHub
e25d4867be
Extract Swagger CSS to its own file ( #12616 )
2020-08-26 18:42:46 +01:00
65444c5ea3
Add link to home page on swagger ui ( #12601 )
...
* Add link to home page on swagger ui
Signed-off-by: a1012112796 <[email protected] >
* translate
* Apply review suggestion
* Move to right, Thanks @silverwind
* tweaks
Co-authored-by: silverwind <[email protected] >
Co-authored-by: John Olheiser <[email protected] >
Co-authored-by: techknowlogick <[email protected] >
2020-08-26 12:39:45 -04:00
7d14d6c1c1
Fix file table overflows ( #12603 )
...
- Fix overflow regression from https://github.com/go-gitea/gitea/pull/12553 .
- Fix submodule columns stretching the table
- Refactor template to share more HTML nodes
- Introduce CSS helper classes
Co-authored-by: zeripath <[email protected] >
Co-authored-by: techknowlogick <[email protected] >
2020-08-26 11:52:44 -04:00
zeripath and GitHub
69b3dd6362
Escape Email in forgot_password.tmpl ( #12610 )
...
Signed-off-by: Andrew Thornton <[email protected] >
2020-08-26 08:47:38 -05:00