summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Display issue/comment role even if repo archived (#17907)Lunny Xiao2021-12-052-29/+31
|
* [skip ci] Updated licenses and gitignoresGiteaBot2021-12-0517-96/+132
|
* fix i18n (#17906)wxiaoguang2021-12-041-1/+1
|
* Fix svg colors in file list table (#17903)silverwind2021-12-042-10/+5
| | | | | | | | | | * Fix svg colors in file list table Turns out this can be fixed by just removing rules. Directory and file icons have other rules that still make them color correctly. * tweak color on file icons Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Update JS dependencies, adjust eslint config (#17904)silverwind2021-12-049-1257/+1495
| | | | | - Update all JS dependencies to latest versions - Add new lint rules, enable es2022 eslint parser features - Disable github/no-then, I feel the rule was too restricting
* [skip ci] Updated translations via CrowdinGiteaBot2021-12-043-0/+20
|
* Fix the bug: no wiki page can be created if the repo didn't have any page ↵wxiaoguang2021-12-031-6/+6
| | | | yet. (#17894)
* tests: more integration tests for notifications (#17845)singuliere2021-12-031-0/+67
| | | | | Verify that multiple status-types are taken into account as expected. Refs: https://github.com/go-gitea/gitea/issues/16796
* Render issue references in file table (#17897)silverwind2021-12-041-1/+2
| | | Fixes #17887
* Improve seek-help documents (#17895)wxiaoguang2021-12-033-10/+20
| | | | * Add pprof information to seek-help documents * Improve zh-cn and zh-tw documents
* Add hints for special Wiki pages (#17283)n2021-12-033-0/+7
| | | * Add UI hints to create a Wiki sidebar and footer
* Removed SizeFmt. (#17890)KN4CK3R2021-12-035-6/+5
| | | Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Changelog for v1.15.7 (#17871) (#17889)65432021-12-022-1/+32
| | | | | | | | | | | | | * Changelog for v1.15.7 (#17871) * Changelog for v1.15.7 Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de> * update version in docs Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: zeripath <art27@cantab.net>
* [skip ci] Updated translations via CrowdinGiteaBot2021-12-032-0/+12
|
* Add migrate from Codebase (#16768)KN4CK3R2021-12-028-0/+943
| | | | | | | | | | This PR adds [Codebase](https://www.codebasehq.com/) as migration source. Supported: - Milestones - Issues - Pull Requests - Comments - Labels
* Update chi/middleware to chi/v5/middleware (#17888)zeripath2021-12-0242-2572/+128
| | | | | | Fix #17880 Co-authored-by: Lauris BH <lauris@nix.lv>
* Use fmt.Sprintf correctly (#17886)delvh2021-12-024-4/+4
|
* Added missing `data-` prefix. (#17884)KN4CK3R2021-12-031-3/+3
|
* Check if column exist before rename if exist, just return with no error (#17870)Lunny Xiao2021-12-021-0/+24
| | | | | | | | | * Check if column exist before rename if exist, just return with no error * Also check if errors column exist * Add comment for migration * Fix sqlite test
* Refactor various strings (#17784)mscherer2021-12-0217-33/+46
| | | | | | | | Fixes #16478 Co-authored-by: Gusted <williamzijl7@hotmail.com> Co-authored-by: Gusted <williamzijl7@hotmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* fix 500 error while use a reserved name in org rename (#17878)a10121127962021-12-022-7/+1
| | | | | fix #17876 Signed-off-by: a1012112796 <1012112796@qq.com>
* [skip ci] Updated translations via CrowdinGiteaBot2021-12-024-1/+74
|
* Use shadowing script for docker (#17846)zeripath2021-12-016-10/+68
| | | | | | | | | | | | | | | | | | | | Too many docker users are caught out by the default location for the app.ini file being environment dependent so that when they docker exec into the container the gitea commands do not work properly and require additional -c arguments to correctly pick up the configuration. This PR simply shadows the gitea binary using variants of the FHS compatible script to make the command gitea have the default locations by default. Fix #14468 Reference #17497 Reference #12082 Reference #8941 ... amongst others ... Replace #17501 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Improve install code to avoid low-level mistakes. (#17779)wxiaoguang2021-12-0136-177/+472
| | | | | | | | | | | | | | * 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
|
* Rework commit page header (#17849)silverwind2021-12-015-230/+145
| | | | | | | | | | | - Remove blue background and use regular header styling - Use flexbox on author and signature segments - Add shield-type icons besides gpg key, replacing icon font icons - Ensure author and signature line are same height - Remove erronous green background on arc-green signature line - Turn signing colors into CSS variables - Consolidate the two warning states into one Co-authored-by: zeripath <art27@cantab.net>
* Make Requests Processes and create process hierarchy. Associate ↵zeripath2021-11-3066-306/+591
| | | | | | | | | 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>
* Fix position of label color picker colors (#17866)silverwind2021-11-301-4/+4
|
* docs: modules do not rely on models, services do (#17861)singuliere2021-11-301-1/+1
| | | | | | | | services: provide some services for users, usually use database (models) modules: provide some basic functions without database, eg: code parser, etc The major difference is services use database, while modules don’t. Signed-off-by: singuliere <singuliere@autistici.org>
* Refactor commit graph styling to use css variables (#17860)silverwind2021-11-302-53/+15
| | | | - Use common variables for colors and font - Alter graph color 5 to provide enough contrast on both themes
* [skip ci] Updated translations via CrowdinGiteaBot2021-11-301-0/+1
|
* Remove whitespace inside rendered code `<td>` (#17859)silverwind2021-11-301-6/+2
| | | | | | This extra whitespace caused isses in Firefox where it would copy a extra space character at the start and the end. Additionally, in Chrome, the text selection indicated a spaced on the end of the selection where there was none. Both issues are fixed with the removal of whitespace.
* Switch archive URL code back to href attributes (#17796)fnetX (aka fralix)2021-11-294-14/+14
| | | | | | * Add fallback href link * Switch async archive generation to use href links * Edit all templates to use href instead of data-url for archives * Add consistent rel="nofollow" as per wxiaoguang
* Make Co-committed-by and co-authored-by trailers optional (#17848)zeripath2021-11-294-1/+8
| | | | | | | | This PR adds another option to app.ini make co-committed-by and co-authored-by trailers optional on a per server basis. Fix #17194 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix various typos in docs (#17844)qwerty2872021-11-284-5/+5
|
* Move more model into models/user (#17826)Lunny Xiao2021-11-2823-603/+547
| | | | | | | | * Move more model into models/user * Remove unnecessary comment Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Docs: replace `gitea` with `Gitea` (#17838)qwerty2872021-11-2814-48/+48
| | | | Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Move accessmode into models/perm (#17828)Lunny Xiao2021-11-2859-295/+359
|
* Disable ref selection dropdown if you don't have permissions to use it (#17837)qwerty2872021-11-282-4/+2
| | | | Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix value of User.IsRestricted to default setting when oauth2 user auto ↵Galen Suen2021-11-281-7/+8
| | | | registration; (#17839)
* Handle relative unix socket paths (#17836)zeripath2021-11-272-4/+11
| | | | | | | | | | | | Make relative unix sockets absolute by making them absolute against the AppWorkPath Fix #17833 ## :warning: BREAKING :warning: Prior to this PR relative unix sockets would have been asserted to be relative to the current working directory that gitea, gitea serv, hook and manager etc were running in. Hooks and Serv would have failed to work properly under this situation so we expect that although this is a technically breaking change the previous situation was already broken. Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix code formating (#17830)mscherer2021-11-272-4/+4
| | | * fix formatter, format imports first, then go fmt
* Replace regex usage for MIME parsing (#17831)Gabriel Vasile2021-11-271-2/+6
| | | | | | | MIME types can have multiple optional parameters, eg: video/webm; codecs="w/e codec"; charset="binary" This commit replaces the usage of regex for getting the "type/subtype" with mime.ParseMediaType.
* [skip ci] Updated translations via CrowdinGiteaBot2021-11-271-0/+39
|
* Implement Well-Known URL for password change (#17777)mscherer2021-11-261-4/+10
| | | | | * Implement Well-Known URL for password change Fixes #11804
* Add archived label for code search results in archived repo's (#17817)Jimmy Praet2021-11-261-1/+7
| | | | | | | * Add archived label for code search results in archived repo's * Remove trailing whitespace Co-authored-by: Lauris BH <lauris@nix.lv>
* Fix database inconsistent when admin change user email (#17549)Lunny Xiao2021-11-256-15/+62
|
* [skip ci] Updated translations via CrowdinGiteaBot2021-11-261-0/+3
|
* org settings -> webhook/labels/deletion should also active the menu (#17809)Lunny Xiao2021-11-253-1/+7
|
* Fixed org styles. (#17807)KN4CK3R2021-11-253-97/+97
| | | Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>