aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* allways set a message-id on mails (#17900)Garionion2021-12-083-5/+66
| | | | | | | * allways set a message-id on mails * Add unit tests for mailer & Message-ID Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Support sorting for project board issuses (#17152)Anbraten2021-12-088-57/+114
| | | Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Remove unnecessary `X-Remote` HTTP header in AJAX request (#17932)wxiaoguang2021-12-082-7/+0
|
* Refactor install page (db type) (#17919)wxiaoguang2021-12-0714-80/+75
| | | | | | | | | | | | * 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
|
* Allow default branch to be inferred on compare page (#17908)John Olheiser2021-12-062-3/+21
| | | | | | | | | | | * Allow default branch to be inferred Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add test for inferred default branch Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Apply CSS Variables to all message elements (#17920)silverwind2021-12-062-85/+76
| | | | | Fixes #17918. Applies color variables to all ui message on both themes. The colorization on .segment is a customization not present in fomantic ui, only used on user/repo/org delete pages.
* Move repo archiver to models/repo (#17913)Lunny Xiao2021-12-0611-171/+204
| | | | | | | | | | | * Move repo archiver to models/repo * Move archiver service into services/repository/ * Fix imports * Fix test * Fix test
* Replace "unix" by "http+unix" for PROTOCOL (#17771)mscherer2021-12-054-26/+25
|
* Fix loading content history on show more (#17819)Gusted2021-12-061-1/+3
| | | | | | | | | | | | | | | * Fix loading content history on show more - Call `initRepoIssueContentHistory` so that the newly loaded issues also get their content history. - Resolves #17767 * apply history to show diff too Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de>
* update xgo to use 1.17 (#17915)techknowlogick2021-12-051-2/+2
|
* [skip ci] Updated translations via CrowdinGiteaBot2021-12-064-5/+57
|
* Test cache during init (#17852)wxiaoguang2021-12-061-0/+15
|
* 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>