summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update JS dependencies, adjust eslint (#20659)silverwind2022-08-0610-693/+936
| | | | | | | | | | | | * Update JS dependencies - Update all JS dependencies minus vue-* - Improve eslint restricted globals - Tested build, lint and swagger * few more lint improvements Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Background color of private list-items updated (#20630)Luke Wyatt2022-08-063-5/+3
| | | A minor color update on the dashboard. This PR simply changes the background from hard-coded light yellow to the theme colors (var).
* Use request timeout for git service rpc (#20689)parnic2022-08-062-13/+23
| | | | | | | | | This enables git.Command's Run to optionally use the given context directly so its deadline will be respected. Otherwise, it falls back to the previous behavior of using the supplied timeout or a default timeout value of 360 seconds. repo's serviceRPC() calls now use the context's deadline (which is unset/unlimited) instead of the default 6-minute timeout. This means that large repo clones will no longer arbitrarily time out on the upload-pack step, and pushes can take longer than 6 minutes on the receive-pack step. Fixes #20680 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Increase default item listing size `ISSUE_PAGING_NUM` to 20 (#20547)Norwin2022-08-065-53/+53
| | | | | | | | * increase default page sizes to 20 * adjust docs to reflect that the setting is used all over the place * fix tests Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* [skip ci] Updated translations via CrowdinKN4CK3R2022-08-061-0/+112
|
* Allow multiple metadata files for Maven packages (#20674)KN4CK3R2022-08-052-7/+20
| | | | | | | | | | * Allow file overwrite for meta files. * Added tests. * lint Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* docs: update comparison.zh-cn.md (#20656)PEN²2022-08-051-4/+7
| | | Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Add a notice for breaking check in upgrade document (#20682)wxiaoguang2022-08-051-0/+6
|
* move handleGlobalEnterQuickSubmit into a separate file to avoid cycle-import ↵wxiaoguang2022-08-053-15/+17
| | | | (#20679)
* Use correct field name. (#20675)KN4CK3R2022-08-051-1/+1
| | | Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* [skip ci] Updated translations via CrowdinKN4CK3R2022-08-051-4/+48
|
* Use correct context to get package content (#20673)KN4CK3R2022-08-041-1/+1
|
* Executable check always returns true for windows (#20637)JonRB2022-08-041-0/+5
| | | | | | | | | | | | | | | | | * Executable check always returns true for windows Windows doesn't have the concept of "executable" POSIX bits so for now always return true to minimise doctor and logging noise. Addresses #20636 * gofmt tweak * Update modules/repository/hooks.go Co-authored-by: silverwind <me@silverwind.io> * gofmt comment line Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Lauris BH <lauris@nix.lv>
* Check webhooks slice length before calling xorm (#20642)Gabriel Vasile2022-08-041-0/+4
| | | | | | | xorm.db.Insert errors for empty slices. Fixes: #20641 Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: John Olheiser <john.olheiser@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Check issue labels slice length before calling xorm Insert; fixes #20654 ↵Gabriel Vasile2022-08-041-0/+5
| | | | | | | (#20655) Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* [skip ci] Updated translations via Crowdinwxiaoguang2022-08-0428-104/+36
|
* Fix the JS error "EventSource is not defined" caused by some non-standard ↵wxiaoguang2022-08-033-64/+71
| | | | | | | browsers (#20584) * fall back to periodic poller Co-authored-by: silverwind <me@silverwind.io>
* Send correct NuGet status codes (#20647)KN4CK3R2022-08-032-6/+8
| | | | | * Fixed status codes. * Fixed status codes.
* Add default commit messages to PR for squash merge (#20618)Tyrone Yeh2022-08-032-1/+3
| | | | | | Keep the same behavior as 1.16 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: John Olheiser <john.olheiser@gmail.com>
* [skip ci] Updated translations via CrowdinGusted2022-08-032-1/+166
|
* Use `strings.Cut` for GIT_PROTOCOL value (#20638)Gusted2022-08-031-2/+1
| | | - As per https://github.com/go-gitea/gitea/pull/20616#discussion_r935612542
* Fix the admin mailer config display (#20633)wxiaoguang2022-08-032-9/+19
|
* Use correct page size for link header pagination (#20546)Norwin2022-08-021-1/+1
| | | | Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix package upload for files >32mb (#20622)KN4CK3R2022-08-023-5/+98
| | | | | | * Rewind file before first read. * Added tests. Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Add info about Wire 2 when Git over SSH (#20619)Gusted2022-08-022-1/+3
| | | | - Follow up of #20616. Add a note about this in the config cheat sheet, given there's no dedicated page for this.
* Enable Wire 2 for Internal SSH Server (#20616)Gusted2022-08-021-0/+10
| | | | | | | - Git only decides to use the Wire 2 protocol when `git {receive,upload}-pack` receive the `GIT_PROTOCOL` environment with as value `version=2`. Currently the internal SSH Server wasn't passing this environment through. The `gitea serv` code already passed all received environments to the git command, so no code changes there.
* Rework mailer settings (#18982)Clar Fon2022-08-0214-155/+297
| | | | | | | | | | | * `PROTOCOL`: can be smtp, smtps, smtp+startls, smtp+unix, sendmail, dummy * `SMTP_ADDR`: domain for SMTP, or path to unix socket * `SMTP_PORT`: port for SMTP; defaults to 25 for `smtp`, 465 for `smtps`, and 587 for `smtp+startls` * `ENABLE_HELO`, `HELO_HOSTNAME`: reverse `DISABLE_HELO` to `ENABLE_HELO`; default to false + system hostname * `FORCE_TRUST_SERVER_CERT`: replace the unclear `SKIP_VERIFY` * `CLIENT_CERT_FILE`, `CLIENT_KEY_FILE`, `USE_CLIENT_CERT`: clarify client certificates here Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Add default value for clone URLs (#20600)silverwind2022-08-022-3/+3
| | | | | | | | Default clone URLs to HTTP(S) in DOM rendering. JS will immediately replace this if the user preference is SSH. Fixes: https://github.com/go-gitea/gitea/issues/20558 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* [skip ci] Updated translations via CrowdinPEN²2022-08-021-0/+71
|
* docs: zh-cn translations for fail2ban setup (#20588)PEN²2022-08-011-0/+92
| | | Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Should also support upper-case README files (#20581)Gary Wang2022-08-012-0/+12
| | | Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix typos in backup documentation (#20567)tryfail2022-08-012-5/+5
| | | Fixed multiple typos "/user/local/bin" to the proper path "/usr/local/bin"
* [skip ci] Updated translations via CrowdinGary Wang2022-08-014-15/+393
|
* Support localized README (#20508)Gary Wang2022-08-014-92/+182
| | | | | | | | | | | | | | | | * Support localized README * Slightly simplify getting the readme file and add some tests. Ensure that i18n also works for docs/ etc. Signed-off-by: Andrew Thornton <art27@cantab.net> * Update modules/markup/renderer.go * Update modules/markup/renderer.go * Update modules/markup/renderer.go Co-authored-by: Andrew Thornton <art27@cantab.net>
* Clean up and fix clone button script (#20415)silverwind2022-07-317-53/+33
| | | | | | | The button 'primary' class needs to be set in a synchronous script to prevent flicker of the button which was regressed recently, fixed that. Additionally, reduced the two script tags to just one, the previous scripts were actually initializing the buttons thrice on the empty repo page, now it only initializes once. Finally, removed duplicate code and re-used the inline function in the update code as well. I had to split out the script into a separate template as on the empty repo page, the script needs access to the clone URL span in the example text, which is rendered below the clone buttons, so buttons and script could not be combined.
* Add disable download source configuration (#20548)Lunny Xiao2022-07-319-16/+39
| | | | | Add configuration to enable/disable download source from UI. Co-authored-by: zeripath <art27@cantab.net>
* Fix default merge style (#20564)wxiaoguang2022-07-312-1/+5
|
* Update login methods in package docs (#20561)KN4CK3R2022-07-318-5/+11
|
* Add missing Tabs on organisation/package view (Frontport #20539) (#20540)65432022-07-312-7/+57
| | | hotfix #20106
* [skip ci] Updated licenses and gitignoresNorwin2022-07-311-0/+24
|
* Add setting `SQLITE_JOURNAL_MODE` to enable WAL (#20535)Norwin2022-07-303-1/+11
| | | Co-authored-by: Andrew Thornton <art27@cantab.net>
* Rework file highlight rendering and fix yaml copy-paste (#19967)silverwind2022-07-303-143/+177
| | | | | | | | | | | * Rework file highlight rendering and fix yaml copy-paste * use Split+Trim to replace tag parser * remove unnecessary bytes.Count * remove newLineInHTML = "&#10;" Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Add new API endpoints for push mirrors management (#19841)Mohamed Sekour2022-07-3014-44/+787
| | | | | | | | | | | - Add a new push mirror to specific repository - Sync now ( send all the changes to the configured push mirrors ) - Get list of all push mirrors of a repository - Get a push mirror by ID - Delete push mirror by ID Signed-off-by: Mohamed Sekour <mohamed.sekour@exfo.com> Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: zeripath <art27@cantab.net>
* WebAuthn CredentialID field needs to be increased in size (#20530)zeripath2022-07-3010-16/+363
| | | | | | | | | | | | | WebAuthn have updated their specification to set the maximum size of the CredentialID to 1023 bytes. This is somewhat larger than our current size and therefore we need to migrate. The PR changes the struct to add CredentialIDBytes and migrates the CredentialID string to the bytes field before another migration drops the old CredentialID field. Another migration renames this field back. Fix #20457 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Add latest commit's SHA to content response (#20398)Gusted2022-07-3012-131/+187
| | | | | | | | | | | | | | | | | | | | | | | | * Add latest commit's SHA to content response - When requesting the contents of a filepath, add the latest commit's SHA to the requested file. - Resolves #12840 * Add swagger * Fix NPE * Fix tests * Hook into LastCommitCache * Move AddLastCommitCache to a common nogogit and gogit file Signed-off-by: Andrew Thornton <art27@cantab.net> * Prevent NPE Co-authored-by: Andrew Thornton <art27@cantab.net> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Improve token and secret key generation docs (#20387)Ben Yanke2022-07-301-1/+17
| | | | | This PR proposes a minor improvement to the docs which allows a user to paste a single command into their terminal and get the needed tokens and keys. Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* [skip ci] Updated translations via Crowdinsilverwind2022-07-3023-106/+828
|
* Rework raw file http header logic (#20484)silverwind2022-07-292-38/+66
| | | | | | | | | | | | | | - Always respect the user's configured mime type map - Allow more types like image/pdf/video/audio to serve with correct content-type - Shorten cache duration of raw files to 5 minutes, matching GitHub - Don't set `content-disposition: attachment`, let the browser decide whether it wants to download or display a file directly - Implement rfc5987 for filenames, remove previous hack. Confirmed it working in Safari. - Make PDF attachment work in Safari by removing `sandbox` attribute. This change will make a lot more file types open directly in browser now. Logic should generally be more readable than before with less `if` nesting and such. Replaces: https://github.com/go-gitea/gitea/pull/20460 Replaces: https://github.com/go-gitea/gitea/pull/20455 Fixes: https://github.com/go-gitea/gitea/issues/20404
* Update lunny/levelqueue to prevent NPE when reads are performed after close ↵zeripath2022-07-292-3/+3
| | | | (#20534)
* Added guidance on file to choose to download (#20474)Alex Papadimoulis2022-07-291-1/+17
| | | | | | | | | | | | | | | | * Added guidance on file to choose to download * Update from-binary.en-us.md * Update from-binary.en-us.md * Update from-binary.en-us.md * Update docs/content/doc/installation/from-binary.en-us.md * Update docs/content/doc/installation/from-binary.en-us.md Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: 6543 <6543@obermui.de>