summaryrefslogtreecommitdiffstats
path: root/.npmrc (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-05-22Update pull_request_template.md (#15948)Ikko Ashimine1-1/+1
Branch name - master -> main
2021-05-22Add email headers (#15939)KN4CK3R3-61/+104
* Added additional email headers. * Added tests. Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-05-22Double the avatar size factor (#15941)silverwind2-3/+3
* Double the avatar size factor This results on finer Avatar rendering on Hi-DPI display. * fix test Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2021-05-22[skip ci] Updated translations via CrowdinGiteaBot19-19/+0
2021-05-22Bump `postgres` and `mysql` versions (#15710)Patrick Schratz5-10/+10
* bump postgres and mysql DB versions * posgres test against v10 Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2021-05-21add a new internal hook to save ssh log (#15787)a10121127968-0/+78
* add a new internal hook to save ssh log as title, when a ssh error ocure like #15785. only when switch ``RUN_MODE`` to dev can we found which error is ocure. But this way is not a good idea for production envirment. this changes try save ssh error mesage to the log file like other log by a new internal hook. I think it's usefull for find error message in production envirment. Thanks. Signed-off-by: a1012112796 <1012112796@qq.com> * rename and fix nit * Update modules/private/hook.go Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2021-05-21fix default avatar url (#15938)Norwin3-3/+3
2021-05-21Add curl to rootless docker image (#15908)Steven1-0/+1
Signed-off-by: JustusBunsi <61625851+justusbunsi@users.noreply.github.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-05-20Fix layout of milestone view (#15927)sebastian-sauer1-6/+6
fix #15047 Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2021-05-20Use node 16 on release tasks too (#15936)silverwind1-2/+2
Forgot these in https://github.com/go-gitea/gitea/pull/15804.
2021-05-20Encrypt LDAP bind password in db with SECRET_KEY (#15547)zeripath6-6/+19
* Encrypt LDAP bind password in db with SECRET_KEY The LDAP source bind password are currently stored in plaintext in the db This PR simply encrypts them with the setting.SECRET_KEY. Fix #15460 Signed-off-by: Andrew Thornton <art27@cantab.net> * remove ui warning regarding unencrypted password Co-authored-by: silverwind <me@silverwind.io>
2021-05-20[skip ci] Updated translations via CrowdinGiteaBot1-2/+12
2021-05-19Disable legal comments in esbuild (#15929)silverwind1-0/+1
We already serve licenses.txt so we don't need these inline comments preserved during esbuild minification. Saves around 4kB before gzip.
2021-05-19api: fix overly strict edit pr permissions (#15900)Norwin1-1/+1
Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: zeripath <art27@cantab.net>
2021-05-19Fix and restyle menu on code line (#15913)silverwind10-84/+60
* Fix and restyle menu on code line * fix multiline and more tweaks * move to separate files * remove has-context-menu class Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2021-05-19Restore token authentication for git http when 2FA active (#15915)zeripath1-1/+1
There was a small regression in #15303 whereby token auth with 2FA active would be disallowed. This PR fixes this. Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de>
2021-05-19[skip ci] Updated translations via CrowdinGiteaBot1-38/+39
2021-05-18Fix typo in hacking-on-gitea.en-us.md (#15918)Ikko Ashimine1-3/+3
* continously -> continuously * continous -> continuous
2021-05-18[skip ci] Updated translations via CrowdinGiteaBot1-0/+1
2021-05-17Use Wants= over Requires= in systemd file (#15897)silverwind1-6/+6
`Requires=` has the behaviour of stopping `gitea.service` when the database is stopped but not bringing it up again after the database is started again. Use `Wants=` to define a weak requirement instead, meaning `gitea.service` will be kept running when the database is stopped, which is not an issue because gitea will just reconnect later on. Fixes: https://github.com/go-gitea/gitea/issues/15866 Co-authored-by: zeripath <art27@cantab.net>
2021-05-17git migration: don't prompt interactively for clone credentials (#15902)Norwin1-2/+8
* don't prompt interactively for clone credentials * apply GIT_TERMINAL_PROMPT=0 to all git cmds Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-05-17[skip ci] Updated translations via CrowdinGiteaBot3-44/+54
2021-05-17remove unimplemented searchbar from project view (#15901)Norwin1-3/+0
2021-05-16Issue sidebar and misc css fixes (#15524)silverwind9-84/+92
- Replace remaining font icons with SVG in issue sidebar - Rework issue due date display - Realign avatar in timeline - Fix font size in repo search and code explore - Consolidate active button styles - Fix loading form on arc-green - Align time tracker buttons vertically Fixes: https://github.com/go-gitea/gitea/issues/15896
2021-05-16Use a special name for update default branch on repository setting (#15893)Lunny Xiao2-1/+2
2021-05-16Rework Token API comments (#15162)Ian Wienand1-22/+36
Move the token API discussion into a common section discussing the generation and listing of the tokens. Add a note on the display of the sha1 during creation and listing. Co-authored-by: Norwin <noerw@users.noreply.github.com>
2021-05-16improve empty notice (#15890)Lunny Xiao1-0/+5
2021-05-16Systemd needs After as well as Require (#15881)zeripath1-0/+9
If the gitea service is stopped because of the db going down it needs an `After=db.service` to ensure it is restarted in addition to the `Requires=db.service` to ensure that the db is started before gitea is started. Fix #15866 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-05-16[skip ci] Updated licenses and gitignoresGiteaBot19-3/+350
2021-05-16Move sans-serif fallback font higher than emoji fonts (#15855)zeripath1-1/+1
The Tor browser does not use the system-ui font and no other fonts in the stack match its default fonts. In fact it is possible that it will in future only match generic fonts. This means that all rendering will first try the emoji fonts before falling back to the sans-serif font for glyphs. In this case has the emoji fall back fonts for Tor contains empty glyphs for numbers - in order to protect privacy - and leads to numbers being rendered as empty glyphs. This is clearly not ideal and whilst we could use the Arimo font - as I state above I suspect that Tor will eventually ban detecting this and we should instead move the sans-serif font higher in the stack so that it matches before the emoji fonts. Partial fix of #15844 Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-05-16GitHub: migrate draft releases too (#15884)65432-34/+31
* GitHub: migrate draft releases too * refactor
2021-05-15Hold the event source when there are no listeners (#15725)zeripath2-0/+35
* Hold the event source when there are no listeners The event source does not need to run when there are no listeners. Therefore pause it when there are none. * add some more logging Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-05-15Create a session on ReverseProxy and ensure that ReverseProxy users cannot ↵zeripath2-7/+16
change username (#15304) * Create a session on ReverseProxy and ensure that ReverseProxy users cannot change username ReverseProxy users should generate a session on reverse proxy username change. Also prevent ReverseProxy users from changing their username. Fix #2407 * add testcase Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-05-15Prevent double-login for Git HTTP and LFS and simplify login (#15303)zeripath10-217/+288
* Prevent double-login for Git HTTP and LFS and simplify login There are a number of inconsistencies with our current methods for logging in for git and lfs. The first is that there is a double login process. This is particularly evident in 1.13 where there are no less than 4 hash checks for basic authentication due to the previous IsPasswordSet behaviour. This duplicated code had individual inconsistencies that were not helpful and caused confusion. This PR does the following: * Remove the specific login code from the git and lfs handlers except for the lfs special bearer token * Simplify the meaning of DisableBasicAuthentication to allow Token and Oauth2 sign-in. * The removal of the specific code from git and lfs means that these both now have the same login semantics and can - if not DisableBasicAuthentication - login from external services. Further it allows Oauth2 token authentication as per our standard mechanisms. * The change in the recovery handler prevents the service from re-attempting to login - primarily because this could easily cause a further panic and it is wasteful. * add test Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Andrew Thornton <art27@cantab.net>
2021-05-15Multiple Queue improvements: LevelDB Wait on empty, shutdown empty shadow ↵zeripath24-412/+598
level queue, reduce goroutines etc (#15693) * move shutdownfns, terminatefns and hammerfns out of separate goroutines Coalesce the shutdownfns etc into a list of functions that get run at shutdown rather then have them run at goroutines blocked on selects. This may help reduce the background select/poll load in certain configurations. * The LevelDB queues can actually wait on empty instead of polling Slight refactor to cause leveldb queues to wait on empty instead of polling. * Shutdown the shadow level queue once it is empty * Remove bytefifo additional goroutine for readToChan as it can just be run in run * Remove additional removeWorkers goroutine for workers * Simplify the AtShutdown and AtTerminate functions and add Channel Flusher * Add shutdown flusher to CUQ * move persistable channel shutdown stuff to Shutdown Fn * Ensure that UPCQ has the correct config * handle shutdown during the flushing * reduce risk of race between zeroBoost and addWorkers * prevent double shutdown Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-05-15Fix error message when saving generated LOCAL_ROOT_URL config (#15880)Naohisa Murakami1-1/+1
2021-05-15Fix blame row height alignment (#15863)Norwin1-1/+5
* fix blame row alignment on firefox * fix blame row alignment in chrome * fix blame row alignment in safari as per @silverwind Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2021-05-15[skip ci] Updated translations via CrowdinGiteaBot3-60/+63
2021-05-14Close the gitrepo when deleting the repository (#15876)zeripath4-0/+14
Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-05-14Upgrade xorm to v1.1.0 (#15869)Lunny Xiao55-423/+1294
2021-05-14Fix bound address/port for caddy's certmagic library (see #15848) (#15859)Blake Miner1-1/+6
2021-05-14Fix LFS commit finder not working (#15856)KN4CK3R3-9/+12
* Create a copy of the sha bytes. Co-authored-by: Andrew Thornton <art27@cantab.net>
2021-05-14Add timeout to writing to responses (#15831)zeripath1-0/+10
In #15826 it has become apparent that there are a few occasions when a response can hang during writing, and because there is no timeout go will happily just block interminably. This PR adds a fixed 5 second timeout to all writes to a connection. Fix #15826 Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-05-14Stop calling WriteHeader in Write (#15862)zeripath1-1/+1
Fixes http: superfluous response.WriteHeader call from code.gitea.io/gitea/modules/context.(*Response).WriteHeader (response.go:67) * Looking again we don't need this writeHeader as all of our downstream implementations will always do it for us Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv>
2021-05-14Add jest rootDir and test-frontend dependency (#15860)silverwind2-2/+3
- Define jest rootDir to limit where it looks for test files - Add missing dependency on test-frontend target so it can be ran from a clean checkout
2021-05-14reverse proxy for IIS (#15555)Jimmy1-2/+25
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2021-05-14Add information on how to rotate logging from outside container (#15852)zeripath1-2/+3
Fix #15842 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-05-14Only write config in environment-to-ini if there are changes (#15861)zeripath1-3/+11
* Only write config in environment-to-ini if there are changes Only write the new config in environment-to-ini if there are changes or the destination is not the same as the customconf. Fix #15719 Fix #15857 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de>
2021-05-14Restore PAM user autocreation functionality (#15825)zeripath6-1/+24
* Restore PAM user autocreation functionality PAM autoregistration of users currently fails due to email invalidity. This PR adds a new setting to PAM to allow an email domain to be set or just sets the email to the noreply address and if that fails falls back to uuid@localhost Fix #15702 Signed-off-by: Andrew Thornton <art27@cantab.net> * As per KN4CKER Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-05-13Update JS dependencies, use Node 16 (#15804)silverwind5-728/+1226
- Update all JS dependencies to latest version - Use Node 16 on CI - Add new lint rules - Add some gitignore entries for debug files Co-authored-by: Lauris BH <lauris@nix.lv>