Commit Graph
11060 Commits
Author SHA1 Message Date
GiteaBot ff2a0e8dcd [skip ci] Updated translations via Crowdin 2021-02-22 13:46:10 +00:00
techknowlogickandGitHub 1f570f2208 build for only available darwin target (#14771) 2021-02-22 08:44:54 -05:00
Lunny XiaoandGitHub 00fffdf5df Make release-linux archtectures via envs (#14184) 2021-02-22 09:01:57 +02:00
e79dae29cc Fix repo-restore bug with poster not replaced (#14759)
* Fix restore bug

* Fix restore bug

Co-authored-by: Lauris BH <[email protected]>
Co-authored-by: John Olheiser <[email protected]>
Co-authored-by: 6543 <[email protected]>
2021-02-22 11:57:41 +08:00
a1012112796andGitHub cd8b2f3273 Fix double alert in oauth2 application edit view (#14764)
Signed-off-by: a1012112796 <[email protected]>
2021-02-22 03:51:45 +01:00
1ecdc55aff fix link account ui (#14763)
Signed-off-by: a1012112796 <[email protected]>

Co-authored-by: techknowlogick <[email protected]>
2021-02-21 20:14:27 -05:00
Kyle DandGitHub a50ca28355 Only for direct descendants of items (#14761) 2021-02-21 16:22:15 -05:00
GiteaBot 73a093d60f [skip ci] Updated translations via Crowdin 2021-02-21 16:52:24 +00:00
bd9361384a Fix go get (#14758)
* Fix go get

* Fix default branch

Co-authored-by: 6543 <[email protected]>
2021-02-22 00:51:15 +08:00
GiteaBot b56c19d819 [skip ci] Updated translations via Crowdin 2021-02-21 10:00:43 +00:00
Bagas SanjayaandGitHub 1f13229830 Add helper descriptions on new repo page (#14591)
* Add helper descriptions on new repo page

Add helpers for:
  * repo description
  * .gitignore
  * license
  * README
  * default branch
  * signature trust model

Signed-off-by: Bagas Sanjaya <[email protected]>

* Oops, rename trust_model_helper

To match similar helper.

trust_model_helper_intro -> trust_model_helper

Signed-off-by: Bagas Sanjaya <[email protected]>
2021-02-21 17:59:31 +08:00
GiteaBot d6068c1cf7 [skip ci] Updated licenses and gitignores 2021-02-21 00:19:09 +00:00
GiteaBot 7118347bae [skip ci] Updated translations via Crowdin 2021-02-20 22:10:05 +00:00
343c756357 Heatmap days clickable (#13935)
* Heatmap days clickable

* Error handling

* Unselect filter

* better dayclick handler

* made linter happy

* clickable heatmap for profiles

Co-authored-by: 6543 <[email protected]>
Co-authored-by: techknowlogick <[email protected]>
2021-02-20 17:08:58 -05:00
f3e64f677f Remove unused commit (#14741)
* Remove unused commit

* a small nit

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

Co-authored-by: a1012112796 <[email protected]>
2021-02-20 15:02:39 +01:00
GiteaBot 835f301063 [skip ci] Updated translations via Crowdin 2021-02-20 10:19:10 +00:00
6543andGitHub 190bd0accd Export LFS & TimeTracking function status (#14753) 2021-02-20 11:17:51 +01:00
GiteaBot db07aedd32 [skip ci] Updated translations via Crowdin 2021-02-20 04:28:10 +00:00
65c940f66c Prevent endless loop if templates missing (#14752)
Since the chi upgrade if the templates are missing an endless loop will occur if
status/500.tmpl is missing.

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

Co-authored-by: 6543 <[email protected]>
Co-authored-by: techknowlogick <[email protected]>
2021-02-20 12:26:57 +08:00
NorwinandGitHub 91424fff3d stopwatch notif: check if timetracking is enabled (#14750)
fixes #14435
2021-02-20 00:06:56 +01:00
zeripathandGitHub aa4f9180e4 Clarify the suffices and prefixes of setting.AppSubURL and setting.AppURL (#12999)
Also removes some unnecessary uses of fmt.Sprintf and adds documentation
strings

Signed-off-by: Andrew Thornton <[email protected]>
2021-02-19 22:36:43 +01:00
a1012112796andGitHub 39aa11f9c0 fix preview status switch button on wiki editr (#14742)
Signed-off-by: a1012112796 <[email protected]>
2021-02-19 19:58:11 +01:00
ca9c1f822e [docs] Fix typo in command-line.en-us.md (#14746)
seperated -> separated

Co-authored-by: 6543 <[email protected]>
Co-authored-by: techknowlogick <[email protected]>
2021-02-19 11:29:22 -05:00
GiteaBot 404f3484ad [skip ci] Updated translations via Crowdin 2021-02-19 15:46:38 +00:00
6543andGitHub 25fe60d12f Update golangci-lint v1.35.2 -> v1.37.0 (#14747) 2021-02-19 16:45:23 +01:00
d38ae597e1 Add UI to delete tracked times (#14100)
Co-authored-by: 6543 <[email protected]>
2021-02-19 12:52:11 +02:00
GiteaBot 6a696b93b1 [skip ci] Updated translations via Crowdin 2021-02-19 10:06:49 +00:00
zeripathandGitHub 092299891f Move the stopwatches to the eventsource stream (#14588)
Move the stopwatches to the eventsource stream

Use the /user/events eventsource to update the stopwatches
instead of polling /api/v1/user/stopwatches if the eventsource
is enabled.

Signed-off-by: Andrew Thornton <[email protected]>
2021-02-19 11:05:35 +01:00
Lunny XiaoandGitHub 430b3b7806 Fix misleading word on delete repositories' archives (#14737) 2021-02-19 01:24:51 -05:00
GiteaBot cc551dac97 [skip ci] Updated translations via Crowdin 2021-02-19 00:41:31 +00:00
6362b24a59 Fix when a commit not found returned 500 (#14732)
Co-authored-by: Lauris BH <[email protected]>
2021-02-18 19:40:17 -05:00
8f05a2876b models/repo: Fix typo in comment (#14731)
* models/repo: Fix typo in comment

* another typo

Co-authored-by: Lunny Xiao <[email protected]>
2021-02-18 10:39:04 -05:00
GiteaBot 9c41ad03b4 [skip ci] Updated translations via Crowdin 2021-02-18 14:48:40 +00:00
Jacob HrbekandGitHub 867f4c557d routers/routes/web: Fix typo in comment (#14729) 2021-02-18 22:47:23 +08:00
c9a04cfdc8 Issue template addition: Are you using Gitea behind CloudFlare? (#14098)
* chore: are you using Gitea behind CloudFlare

since more often than not CF appears to serve stale cache and cause
troubles, I'd argue it might be helpful to ask about it in this here
issue template

* implement suggestion: change question to comment

* as per @techknowlogick's suggestion

* chore: edit comment

* implement @mrsdizzie's suggestion
* as the comment grows, rather span multiple lines
* Gitea --> gitea to match case used in the rest of the template

Co-authored-by: 6543 <[email protected]>
Co-authored-by: Lunny Xiao <[email protected]>
2021-02-18 12:28:07 +01:00
8d5c795cc4 [API] Add Restricted Field to User (#14630)
* Expose Restricted field for User

* Add Option to Change Restricted on User via adminEditUser API

* Add test who change restricted & test if it changed it ...

* make generate-swagger

Co-authored-by: zeripath <[email protected]>
Co-authored-by: Lunny Xiao <[email protected]>
2021-02-18 16:25:35 +08:00
ce0346448f remove outdated notice in makefile (#14720)
Co-authored-by: 6543 <[email protected]>
2021-02-17 21:48:12 -05:00
Jimmy PraetandGitHub 4c82485424 #14699 Make branch names in PR description clickable (#14716) 2021-02-18 03:45:49 +01:00
zeripathandGitHub 7ab6c77b41 Remove NULs byte arrays passed to PostProcess (#14587)
PostProcess is supposed to be parsing and handling HTML
fragments, but on fuzzing it appears that there is a weird
issue with NUL elements that could cause a memory address
error in downstream libraries.

The simplest solution is to strip out the weird NULs - they
should not be there in any case and would be stripped out
anyway.

Signed-off-by: Andrew Thornton <[email protected]>
2021-02-18 02:32:14 +01:00
ec06eb112c Fix github download on migration (#14703)
* Fix github download on migration

* Use Context for Client

Co-authored-by: zeripath <[email protected]>
2021-02-18 01:36:49 +01:00
zeripathandGitHub ae7e6cd474 Reduce calls to git cat-file -s (#14682)
* Reduce calls to git cat-file -s

There are multiple places where there are repeated calls to git cat-file
-s due to the blobs not being created with their size.

Through judicious use of git ls-tree -l and slight adjustments to the
indexer code we can avoid a lot of these calls.

* simplify by always expecting the long format

* Also always set the sized field and tell the indexer the update is sized
2021-02-17 22:32:25 +01:00
7ba158183a Use cat-file --batch in GetLanguageStats (#14685)
* Use cat-file --batch in GetLanguageStats

This PR moves to using a single cat-file --batch in GetLanguageStats
significantly reducing the number of processes spawned during language stat
processing.

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

* placate lint

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

* Update modules/git/repo_language_stats_nogogit.go

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

Co-authored-by: Lauris BH <[email protected]>
Co-authored-by: 6543 <[email protected]>
Co-authored-by: a1012112796 <[email protected]>
Co-authored-by: Lunny Xiao <[email protected]>
2021-02-17 14:32:47 -05:00
fe628d8406 Vendor Update (#14696)
* github.com/yuin/goldmark v1.3.1 -> v1.3.2

* github.com/xanzy/go-gitlab v0.42.0 -> v0.44.0

* github.com/prometheus/client_golang v1.8.0 -> v1.9.0

* github.com/minio/minio-go v7.0.7 -> v7.0.9

* github.com/lafriks/xormstore v1.3.2 -> v1.4.0

Co-authored-by: Lunny Xiao <[email protected]>
2021-02-16 22:47:24 -05:00
GiteaBot dc707aea09 [skip ci] Updated translations via Crowdin 2021-02-16 22:38:34 +00:00
ad43b119a8 Add Password Algorithm option to install page (#14701)
Add Password Algorithm option to install page

Fix #14674 

Co-authored-by: John Olheiser <[email protected]>
2021-02-16 23:37:20 +01:00
zeripathandGitHub 66a148e398 Restore detection of branches are equal on compare page (#14586)
Somehow the test for detecting if branches are equal broke
this PR restores this functionality.

Fix #14502

Signed-off-by: Andrew Thornton <[email protected]>
2021-02-16 16:39:45 +01:00
GiteaBot ebddee8d2b [skip ci] Updated translations via Crowdin 2021-02-16 03:04:48 +00:00
zeripathandGitHub 60ef2a7c67 Add fullTextSearch to dropdowns by default (#14694)
This PR adds `fullTextSearch: 'exact'` to most dropdown
invocations meaning that if there is a search box for the
dropdown it will automatically do a fullTextSearch looking
for the provided fragment instead of starting at the beginning

We should consider changing other places that use
`fullTextSearch: true` to `'exact'` because these will be using a
fuzzy-textual search that doesn't necessarily return the
expected results.

Fix #14689

Signed-off-by: Andrew Thornton <[email protected]>
2021-02-16 11:03:32 +08:00
0a9a484e1e Create DB session provider(based on xorm) (#13031)
* Create Xorm session provider

This PR creates a Xorm session provider which creates
the appropriate Session table for macaron/session.

Fix #7137

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

* extraneous l

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

* fix lint

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

* use key instead of ID to be compatible with go-macaron/session

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

* And change the migration too.

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

* Update spacing of imports

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

* Update modules/session/xorm.go

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

* add xorm provider to the virtual provider

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

* prep for master merge

* prep for merge master

* As per @lunny

* move migration out of the way

* Move to call this db session as per @lunny

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

Co-authored-by: 6543 <[email protected]>
Co-authored-by: techknowlogick <[email protected]>
Co-authored-by: Lunny Xiao <[email protected]>
2021-02-15 00:33:31 -05:00
Damien Goutte-GattatandGitHub fc4a8c2980 Allow blocking some email domains from registering an account (#14667)
Gitea allows to whitelist email domains so that only email addresses from certain domains are allowed to register an account, but does not currently allows to do the opposite: blacklisting email domains so that addresses from certain domains are *forbidden* to register an account.

The idea has been briefly mentioned in the discussion about issue #6350, but never implemented. This PR does that.

The rationale is that, in my experience of running a Gitea instance, *a single email domain* is responsible for *most* of the spam accounts, and for *all* of the spam accounts that manage to get past the email confirmation step. So on top of the other spam mitigation measures already available (email confirmation, CAPTCHA, etc.), having the option to block a particularly annoying domain would be helpful.

close #13628
2021-02-15 00:31:29 +01:00