summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update JS dependencies and webpack (#14118)silverwind2020-12-2713-3626/+1130
| | | | | | | | | | | | | | | | | | * Update JS dependencies - Update all JS dependencies - Adapt webpack config for version 5 - Update to Less 4.0, adapting usage of removed mixin syntax - Enable new ESLint rules and fix discovered issues * update license-webpack-plugin to fix missing licenses * update license-webpack-plugin once more to get webpack into the license output * switch to license-checker-webpack-plugin again for performance * update deps again Co-authored-by: Lauris BH <lauris@nix.lv>
* Improve basic button and label styles (#14119)silverwind2020-12-276-103/+70
| | | | | | | | | | | | | | | | | | | | | | * Improve disabled styles for repo buttons - Simplify disabled styling of label by matching for the disabled attribute. - Raise fomantic disabled opacity from .45 to .55 to for more contrast. - Use CSS vars for basic button styles. * restore clickability on label * color tweaks and remove arc-green style * slightly reduce button size * consolidate vars * also cover active class * slightly more distinct active class * remove useless rule
* Dump github/gitlab/gitea repository data to a local directory and restore to ↵Lunny Xiao2020-12-2729-225/+1484
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gitea (#12244) * Dump github/gitlab repository data to a local directory * Fix lint * Adjust directory structure * Allow migration special units * Allow migration ignore release assets * Fix lint * Add restore repository * stage the changes * Merge * Fix lint * Update the interface * Add some restore methods * Finish restore * Add comments * Fix restore * Add a token flag * Fix bug * Fix test * Fix test * Fix bug * Fix bug * Fix lint * Fix restore * refactor downloader * fmt * Fix bug isEnd detection on getIssues * Refactor maxPerPage * Remove unused codes * Remove unused codes * Fix bug * Fix restore * Fix dump * Uploader should not depend downloader * use release attachment name but not id * Fix restore bug * Fix lint * Fix restore bug * Add a method of DownloadFunc for base.Release to make uploader not depend on downloader * fix Release yml marshal * Fix trace information * Fix bug when dump & restore * Save relative path on yml file * Fix bug * Use relative path * Update docs * Use git service string but not int * Recognize clone addr to service type
* Migration: drop to long repo topics (#14152)65432020-12-271-0/+9
|
* Change topic name size from 25 to 50 (#14150)Lunny Xiao2020-12-263-1/+37
| | | | | | | | | * Change topic name size from 25 to 50 * recreateTable requires full bean definition Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: zeripath <art27@cantab.net>
* Fix escaping issue in diff (#14153)zeripath2020-12-261-4/+3
| | | | | Ensure that linecontent is escaped before passing to template.HTML Signed-off-by: Andrew Thornton <art27@cantab.net>
* [skip ci] Updated translations via CrowdinGiteaBot2020-12-261-0/+1
|
* Fix UI on edit auth source page (#14137)Norwin2020-12-261-15/+19
| | | | * do not override OAuth URLs with default values when editing an auth source (fixes #12014) * show custom url inputs by default for providers that don't provide an official hosted service
* Disable SSH key deletion of externally managed Keys (#13985)zeripath2020-12-255-21/+125
| | | | | | | | | | | | | | | | * Disable SSH key addition and deletion when externally managed When a user has a login source which has SSH key management key addition and deletion using the UI should be disabled. Fix #13983 Signed-off-by: Andrew Thornton <art27@cantab.net> * Make only externally managed keys disabled Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* migrate from com.* to alternatives (#14103)65432020-12-2546-221/+231
| | | | | | | | | | | | | | | * remove github.com/unknwon/com from models * dont use "com.ToStr()" * replace "com.ToStr" with "fmt.Sprint" where its easy to do * more refactor * fix test * just "proxy" Copy func for now * as per @lunny
* Disable Fomantic's custom scrollbars (#14109)silverwind2020-12-242-63/+1
| | | | | | We already have custom scrollbars in our own CSS which are superior to Fomantic's so diable them to save a few bytes and prevent interference.
* Fix heatmap total contributions (#14141)Lunny Xiao2020-12-241-1/+10
|
* Fix creating OAuth2 auth source from CLI (#14116)Daniil Pankratov2020-12-243-3/+27
| | | | | | | | Fix creation OAuth2 auth source from CLI. Fix #8356 Co-authored-by: Daniil Pankratov <daniil.pankratov@t-systems.com>
* Fix api doc response code (#14123)Norwin2020-12-242-2/+2
| | | | | Fixes #14120
* Ensure that search term and page are not lost on adoption page-turn (#14133)zeripath2020-12-242-1/+14
| | | | | | | Fix #14111 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2020-12-241-1/+1
|
* Improve vfsgen to not unzip bindata files but send to browser directly (#7109)Lunny Xiao2020-12-247-5/+105
| | | | | | | | | | | | | | | * Don't unzip files from bindata but send to browser directly * remove dependent for httpgzip * Add tests for parseAcceptEncoding * Update docs for ENABLE_GZIP * Fix bug * Fix bug Co-authored-by: zeripath <art27@cantab.net>
* Fix admin monitoring margin (#14134)silverwind2020-12-231-2/+2
|
* API: Make BasicAuth Prefix case insensitive (#14106)65432020-12-231-1/+1
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-12-231-1/+1
|
* Fix manifest encoding (#14114)silverwind2020-12-233-10/+105
| | | | | | The previous URL encoding would encode spaces to '+' for the app name which is incorrect. Use base64 encoding instead which does not have such issues.
* Fix spelling avator -> avatar (#14115)Jimmy Praet2020-12-222-2/+2
|
* Fix git.parseTagData (#14105)65432020-12-224-5/+81
| | | | | | | | | | | | | | | * Fix git.parseTagData() close #14092 * Add Test * add message to test * limit readers * git tag -m trims and terminates with a newline Co-authored-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de>
* [skip ci] Updated translations via CrowdinGiteaBot2020-12-221-0/+1
|
* Fix incorrect generated link in documentation page (#14112)Donlon2020-12-221-1/+1
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-12-221-0/+2
|
* Inline manifest.json (#14038)silverwind2020-12-226-46/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Inline manifest.json Improve performance by eliminating this separate request and just inline this small JSON in HTML directly as a data uri. Also update previously static app name scripts to use AppName. I've confirmed this as working via "Add to Homescreen" feature which offered to save the shortcut under the new app name. * prerender manifest data on startup * move to settings * restore setting.AppStartTime and use it on admin page * use double quotes because template.URL escapes everything * fix lint * move variable to global context variable * delete template file Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: zeripath <art27@cantab.net>
* [skip ci] Updated translations via CrowdinGiteaBot2020-12-221-0/+1
|
* Add user filter to issueTrackedTimes, enable usage for issue managers (#14081)Norwin2020-12-222-12/+44
| | | | | | | | | | | | | * add user filter to issueTrackedTimes fixes #14024 * update swagger * allow user filter for issue writers * improve swagger doc * return 404 on invalid user
* [skip ci] Updated translations via CrowdinGiteaBot2020-12-2211-11/+0
|
* rework heatmap permissions (#14080)Norwin2020-12-228-60/+104
| | | | | | | | | | | | | | | | * now uses the same permission model as for the activity feed: only include activities in repos, that the doer has access to. this might be somewhat slower. * also improves handling of user.KeepActivityPrivate (still shows the heatmap to self & admins) * extend tests * adjust integration test to new behaviour * add access to actions for admins * extend heatmap unit tests
* Standardize Co-Authored-By / Reviewed-By strings (#14097)Cirno the Strongest2020-12-213-4/+4
| | | | | | | * Standardize Co-Authored-By / Reviewed-By strings * Use lowercase variant Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Add StatDir and replace com.StatDir (#14099)Lunny Xiao2020-12-226-14/+88
| | | | | | | | | * Add StatDir and replace com.StatDir * a nit * Remove wrong file Co-authored-by: 6543 <6543@obermui.de>
* [skip ci] Updated translations via CrowdinGiteaBot2020-12-212-0/+2
|
* more test case for STORAGE_TYPE overrides (and fixes) (#14096)胡玮文2020-12-222-8/+57
| | | Signed-off-by: 胡玮文 <huww98@outlook.com>
* Fix storage config implementation (#14091)胡玮文2020-12-212-21/+177
| | | | | | | | | The design is very flexible, but not implemented correctly. This commit fixes several issues: * Costom storage type stated in https://docs.gitea.io/en-us/config-cheat-sheet/#storage-storage not working * [storage.attachments], [storage.minio] section not respected Signed-off-by: 胡玮文 <huww98@outlook.com>
* Add Test for Fix #14040 (#14045)65432020-12-211-0/+69
| | | Add Test for Fix #14040
* Use the text of pull-request as the squash commit's message (#13071)Mura Li2020-12-212-22/+10
| | | | | | | | | | | Originally, it was filled by the commit messages of the involved commits. In this change, we use the headline comment of the pull request as the commit message when it is a squash merge. Thanks to @zeripath for suggesting the idea. Fixes #12365 Co-authored-by: Mura Li <typeless@users.noreply.github.com>
* Add mentionable teams to tributeValues and change team mention rules to gh's ↵a10121127962020-12-218-34/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | style (#13198) * Add mentionable teams to tributeValues Signed-off-by: a1012112796 <1012112796@qq.com> * Apply suggestions from code review Co-authored-by: silverwind <me@silverwind.io> * Change team mention rules to gh's style * use org's avator as team avator in ui Signed-off-by: a1012112796 <1012112796@qq.com> * Update modules/markup/html.go * Update models/issue.go Co-authored-by: Lauris BH <lauris@nix.lv> * Update models/issue.go * fix a small nit and update test code Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: 6543 <6543@obermui.de>
* [skip ci] Updated translations via CrowdinGiteaBot2020-12-211-0/+2
|
* Added option to disable migrations (#13114)Paweł Bogusławski2020-12-2114-11/+52
| | | | | | | | | | | | | | | | | | | | | | * Added option to disable migrations This patch introduces DISABLE_MIGRATIONS parameter in [repository] section of app.ini (by default set to false). If set to true it blocks access to repository migration feature. This mod hides also local repo import option in user editor if local repo importing or migrations is disabled. * Alter Example config DISABLE_MIGRATIONS set to false in example config to match its default value. * HTTP error 403 instead of 500 on denied access to migration * Parameter DISABLE_MIGRATIONS exposed via API Fixes: 04b04cf854bcb3ed7659442bcf79822bdebe29e9 Author-Change-Id: IB#1105130
* [skip ci] Updated translations via CrowdinGiteaBot2020-12-212-1/+4
|
* expose translation of previously hardcoded string (#14087)Norwin2020-12-212-1/+2
| | | Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2020-12-2121-21/+0
|
* Present repository name as {{name}}#{{index}} instead of label on dashboard ↵Cirno the Strongest2020-12-211-4/+5
| | | | | issuelist (#14085) Co-authored-by: Lauris BH <lauris@nix.lv>
* Locale: say another issue instead of this issue (#14082)DuckDuckWhale2020-12-211-1/+1
| | | | | Saying "this issue" is confusing because it could be understood as the issue that the user is currently viewing, not which the "issue" link points to.
* Add repo name label again on dashboard issue / pulls page (#14073)Jimmy Praet2020-12-201-0/+3
| | | | | | The label got removed in PR #13594 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Search and Diff CSS enhancements (#14050)silverwind2020-12-2014-153/+129
| | | | | | | | | | | | | | | | | | | * Search and Diff CSS enhancements - Use flexbox for language stats - Improve labels and code boxes on repo and code search - Use flexbox on diff header and improve suppressed diff text - Add dedicated color for diff expander * more diff tweaks, less vertical padding on header * more minor tweaks * always show fold icon, image diff improvments * remove margin Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* dep: update crypto. info: ↵techknowlogick2020-12-2035-40/+157
| | | | | https://golangtutorial.dev/news/fix-in-crypto-package/ (#14067) Co-authored-by: zeripath <art27@cantab.net>
* Show dropdown with all statuses for commit (#13977)Cirno the Strongest2020-12-2018-23/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Show dropdown with all statuses for commit * Use popups * Remove unnecessary change * Style popup * Use divided list * As per @silverwind * Refactor GetLastCommitStatus * Missing dropdown on repo home and commit page * Fix tests * Make status icon be a part of a link on PR list * Fix missing translation call * Indent fix Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>