aboutsummaryrefslogtreecommitdiffstats
path: root/options
Commit message (Collapse)AuthorAgeFilesLines
* [skip ci] Updated translations via CrowdinGiteaBot2021-12-103-0/+12
|
* [skip ci] Updated translations via CrowdinGiteaBot2021-12-0925-25/+55
|
* Refactor install page (db type) (#17919)wxiaoguang2021-12-071-1/+1
| | | | | | | | | | | | * Refactor install page (db type) * set correct default DB HOST for different DB TYPE * remove legacy TiDB from documents * unify the usage of DB TYPE, in code we only use "mysql". "MySQL" is only shown to users for friendly name. * Gitea can use TiDB via MySQL protocol Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2021-12-075-3/+15
|
* [skip ci] Updated translations via CrowdinGiteaBot2021-12-064-5/+57
|
* [skip ci] Updated licenses and gitignoresGiteaBot2021-12-0517-96/+132
|
* fix i18n (#17906)wxiaoguang2021-12-041-1/+1
|
* [skip ci] Updated translations via CrowdinGiteaBot2021-12-043-0/+20
|
* Add hints for special Wiki pages (#17283)n2021-12-031-0/+1
| | | * Add UI hints to create a Wiki sidebar and footer
* [skip ci] Updated translations via CrowdinGiteaBot2021-12-032-0/+12
|
* Add migrate from Codebase (#16768)KN4CK3R2021-12-021-0/+1
| | | | | | | | | | This PR adds [Codebase](https://www.codebasehq.com/) as migration source. Supported: - Milestones - Issues - Pull Requests - Comments - Labels
* [skip ci] Updated translations via CrowdinGiteaBot2021-12-024-1/+74
|
* Improve install code to avoid low-level mistakes. (#17779)wxiaoguang2021-12-011-0/+9
| | | | | | | | | | | | | | * Improve install code to avoid low-level mistakes. If a user tries to do a re-install in a Gitea database, they gets a warning and double check. When Gitea runs, it never create empty app.ini automatically. Also some small (related) refactoring: * Refactor db.InitEngine related logic make it more clean (especially for the install code) * Move some i18n strings out from setting.go to make the setting.go can be easily maintained. * Show errors in CLI code if an incorrect app.ini is used. * APP_DATA_PATH is created when installing, and checked when starting (no empty directory is created any more).
* [skip ci] Updated translations via CrowdinGiteaBot2021-12-012-1/+824
|
* Make Requests Processes and create process hierarchy. Associate ↵zeripath2021-11-301-0/+1
| | | | | | | | | OpenRepository with context. (#17125) This PR registers requests with the process manager and manages hierarchy within the processes. Git repos are then associated with a context, (usually the request's context) - with sub commands using this context as their base context. Signed-off-by: Andrew Thornton <art27@cantab.net>
* [skip ci] Updated translations via CrowdinGiteaBot2021-11-301-0/+1
|
* [skip ci] Updated translations via CrowdinGiteaBot2021-11-271-0/+39
|
* [skip ci] Updated translations via CrowdinGiteaBot2021-11-261-0/+3
|
* [skip ci] Updated translations via CrowdinGiteaBot2021-11-253-149/+228
|
* [skip ci] Updated translations via CrowdinGiteaBot2021-11-244-18/+96
|
* [skip ci] Updated translations via CrowdinGiteaBot2021-11-2314-28/+2
|
* More pleasantly handle broken or missing git repositories (#17747)zeripath2021-11-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | * More pleasantly handle broken or missing git repositories In #17742 it was noted that there a completely invalid git repository underlying a repo on gitea.com. This happened due to a problem during a migration however, it is not beyond the realms of possibility that a corruption could occur to another user. This PR adds a check to RepoAssignment that will detect if a repository loading has failed due to an absent git repository. It will then show a page suggesting the user contacts the administrator or deletes the repository. Fix #17742 Signed-off-by: Andrew Thornton <art27@cantab.net> * Update options/locale/locale_en-US.ini Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* [skip ci] Updated translations via CrowdinGiteaBot2021-11-223-0/+16
|
* Allow Loading of Diffs that are too large (#17739)zeripath2021-11-221-0/+1
| | | | | | | | | | | * Allow Loading of Diffs that are too large This PR allows the loading of diffs that are suppressed because the file is too large. It does not handle diffs of files which have lines which are too long. Fix #17738 Signed-off-by: Andrew Thornton <art27@cantab.net>
* [skip ci] Updated licenses and gitignoresGiteaBot2021-11-213-2/+5
|
* Use `hostmatcher` to replace `matchlist`, improve security (#17605)wxiaoguang2021-11-201-2/+1
| | | | | Use hostmacher to replace matchlist. And we introduce a better DialContext to do a full host/IP check, otherwise the attackers can still bypass the allow/block list by a 302 redirection.
* [skip ci] Updated translations via CrowdinGiteaBot2021-11-202-0/+55
|
* Added comment for changing issue ref (#17672)Gusted2021-11-191-0/+3
| | | | | * Added comment for changing issue ref - Add a comment when someone changes the ref(erence?) of a issue.
* [skip ci] Updated translations via CrowdinGiteaBot2021-11-191-0/+2
|
* [skip ci] Updated translations via CrowdinGiteaBot2021-11-1827-507/+124
|
* Fixed commit count. (#17698)KN4CK3R2021-11-171-0/+1
| | | | Added "Tag" label. Unified branch, tag and commit name.
* [skip ci] Updated translations via CrowdinGiteaBot2021-11-174-0/+7
|
* Allow admins to change user avatars (#17661)qwerty2872021-11-161-0/+1
| | | | | | | Adds the avatar change panel to the edit user page (bottom) and allows admins to change it this way Co-authored-by: Gusted <williamzijl7@hotmail.com> Co-authored-by: zeripath <art27@cantab.net>
* Multiple Escaping Improvements (#17551)zeripath2021-11-161-19/+19
| | | | | | | | | | | | | | There are multiple places where Gitea does not properly escape URLs that it is building and there are multiple places where it builds urls when there is already a simpler function available to use this. This is an extensive PR attempting to fix these issues. 1. The first commit in this PR looks through all href, src and links in the Gitea codebase and has attempted to catch all the places where there is potentially incomplete escaping. 2. Whilst doing this we will prefer to use functions that create URLs over recreating them by hand. 3. All uses of strings should be directly escaped - even if they are not currently expected to contain escaping characters. The main benefit to doing this will be that we can consider relaxing the constraints on user names and reponames in future. 4. The next commit looks at escaping in the wiki and re-considers the urls that are used there. Using the improved escaping here wiki files containing '/'. (This implementation will currently still place all of the wiki files the root directory of the repo but this would not be difficult to change.) 5. The title generation in feeds is now properly escaped. 6. EscapePound is no longer needed - urls should be PathEscaped / QueryEscaped as necessary but then re-escaped with Escape when creating html with locales Signed-off-by: Andrew Thornton <art27@cantab.net> Signed-off-by: Andrew Thornton <art27@cantab.net>
* Add copy button to markdown code blocks (#17638)silverwind2021-11-161-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add copy button to markdown code blocks Done mostly in JS because I think it's better not to try getting buttons past the markup sanitizer. * add svg module tests * fix sanitizer regexp * remove outdated comment * vertically center button in issue comments as well * add comment to css * fix undefined on view file line copy * combine animation less files * Update modules/markup/markdown/markdown.go Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * add test for different sizes * add cloneNode and add tests for it * use deep clone * remove useless optional chaining * remove the svg node cache * unify clipboard copy string and i18n * remove unused var * remove unused localization * minor css tweaks to the button * comment tweak * remove useless attribute Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2021-11-162-1/+2
|
* Changed migration text. (#17654)KN4CK3R2021-11-151-1/+1
|
* Add download button for file viewer (#17640)Gusted2021-11-151-0/+1
| | | | | | | | - Resolves #17286 - Use the `download` attribute such that the browser will natively initate a download dialog for the given URL. Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* [skip ci] Updated translations via CrowdinGiteaBot2021-11-151-0/+4
|
* Add migration from GitBucket (#16767)KN4CK3R2021-11-141-0/+1
| | | | | | | | | | | | | This PR adds [GitBucket](https://gitbucket.github.io/) as migration source. Supported: - Milestones - Issues - Pull Requests - Comments - Reviews - Labels There is no public usable instance so no integration tests added.
* [skip ci] Updated licenses and gitignoresGiteaBot2021-11-145-19/+408
|
* Correctly handle failed migrations (#17575)zeripath2021-11-131-0/+1
| | | | | | | | | | | | | | * Correctly handle failed migrations There is a bug in handling failed migrations whereby the migration task gets decoupled from the migration repository. This leads to a failure of the task to get deleted with the repository and also leads to the migration failed page resulting in a ISE. This PR removes the zeroing out of the task id from the migration but also makes the migration handler tolerate missing tasks much nicer. Fix #17571 Signed-off-by: Andrew Thornton <art27@cantab.net>
* [skip ci] Updated translations via CrowdinGiteaBot2021-11-1022-22/+0
|
* Allow U2F 2FA without TOTP (#11573)Kamil Domański2021-11-081-1/+0
| | | | | | | This change enables the usage of U2F without being forced to enroll an TOTP authenticator. The `/user/auth/u2f` has been changed to hide the "use TOTP instead" bar if TOTP is not enrolled. Fixes #5410 Fixes #17495
* [skip ci] Updated translations via CrowdinGiteaBot2021-11-0725-94/+12
|
* Update locale_en-US.ini (#17553)Yuwei Ba2021-11-051-4/+4
|
* [skip ci] Updated translations via CrowdinGiteaBot2021-11-051-0/+4
|
* [skip ci] Updated licenses and gitignoresGiteaBot2021-10-313-4/+26
|
* [skip ci] Updated translations via CrowdinGiteaBot2021-10-307-12/+7
|
* [skip ci] Updated translations via CrowdinGiteaBot2021-10-295-6/+57
|