summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Movde dependents on macaron from modules/setting (#10050)Lunny Xiao2020-01-296-35/+74
| | | | Co-authored-by: Lauris BH <lauris@nix.lv>
* Fix milestone API state parameter unhandled (#10049)Lunny Xiao2020-01-295-6/+79
| | | | | | * Fix milestone API state parameter unhandled * Fix test
* Refactor api repo dir (#10048)65432020-01-293-234/+264
| | | | | | | | * mv migrate * mv mirror Co-authored-by: zeripath <art27@cantab.net>
* Update documentation for the go module era (#9751)zeripath2020-01-284-27/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update documentation for the go module era use go env instead of $GOPATH Update instructions to just use git clone Slight update to readme Signed-off-by: Andrew Thornton <art27@cantab.net> * fixup * Apply suggestions from code review Co-Authored-By: Antoine GIRARD <sapk@users.noreply.github.com> Co-Authored-By: Bagas Sanjaya <bagasdotme@gmail.com> * Apply suggestions from code review * Fix GOPATH settings Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com> Co-authored-by: Bagas Sanjaya <bagasdotme@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* add touch-icon with background (#10022)NiTRoeSE2020-01-283-1/+3
| | | | | | | | | | | | * add touch-icon with background ...to prevent ugly glitch while minimize app to homescreen * add / generate apple-touch-icon * run make command Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Queue: Make WorkerPools and Queues flushable (#10001)zeripath2020-01-2827-327/+1030
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Make WorkerPools and Queues flushable Adds Flush methods to Queues and the WorkerPool Further abstracts the WorkerPool Adds a final step to Flush the queues in the defer from PrintCurrentTest Fixes an issue with Settings inheritance in queues Signed-off-by: Andrew Thornton <art27@cantab.net> * Change to for loop * Add IsEmpty and begin just making the queues composed WorkerPools * subsume workerpool into the queues and create a flushable interface * Add manager command * Move flushall to queue.Manager and add to testlogger * As per @guillep2k * as per @guillep2k * Just make queues all implement flushable and clean up the wrapped queue flushes * cope with no timeout Co-authored-by: Lauris BH <lauris@nix.lv>
* fix gitgraph commit hashes in dark theme (#10046)silverwind2020-01-283-6/+2
| | | | | | because the CSS was lazy-loaded the rules in arc-green did not win. included the css file in the main bundle to fix. the black dots can not be fixed via CSS because they are drawn in a `<canvas>` element unfortunately.
* move highlight.js to npm/webpack (#10011)silverwind2020-01-2816-254/+53
| | | | | | | | | | - introduced window.config to help with js-based lazy-loading - adjusted webpack chunk naming to avoid 'vendors~name.js' that webpack defaults to for vendor chunks. - added theme class to html and prefixed all selectors. this is neccesary so that the theme styles win over the lazy-loaded ones. Co-authored-by: zeripath <art27@cantab.net>
* Minor typo fix (#10043)Andy Harrison2020-01-282-2/+2
|
* More expansions in template repositories (#10021)John Olheiser2020-01-2818-80/+1814
| | | | | | | | * Super expansion * Explain which features are in 1.11 vs 1.12 * Move imports Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Ensure that feeds are appropriately restricted (#10018)zeripath2020-01-282-5/+6
| | | | | | | | | | * Always limit results by what is accessible to the user * Change signature of AccessibleRepoIDsQuery * Ensure that user with ID <= 0 is handled * Update models/repo_list.go
* PRs: Move to use a temporary repo for pushing new prs (#10009)zeripath2020-01-281-14/+30
| | | | * Move to use a temporary repo for pushing new prs
* Fix wiki raw view on sub path (#10002)Lunny Xiao2020-01-286-19/+12
| | | | | | | | * Fix wiki raw view on sub path * Add test for subpath wiki raw file * Fix bug
* Repo name added to automatically generated commit message when mergin… (#9997)Shashvat Kedia2020-01-281-1/+6
| | | | | | | | | * Repo name added to automatically generated commit message when merging pull request * As per @lunny Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: zeripath <art27@cantab.net>
* Some refactor on git diff and ignore getting commit information failed on ↵Lunny Xiao2020-01-287-321/+356
| | | | | | | | | | | | | | migrating pull request review comments (#9996) * Some refactor on git diff and ignore getting commit information failed on migrating pull request review comments * fix test * fix lint * Change error log to warn
* move CSS build to webpack (#9983)silverwind2020-01-2810-425/+88
| | | | | | | | | | | | | | - added new 'make webpack' target - deprecated 'make js' and 'make css' - extend webpack config to load the less files - updated docs I had to rename the source file of `arc-green.less` to avoid generating a useless JS entrypoint via webpack-fix-style-only-entries which would not work with different source/destination filenames. I hear that there should be cleaner solutions possible once we upgrade to Webpack 5. Co-authored-by: zeripath <art27@cantab.net>
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-271-1/+1
|
* Style blockquote for default issue mail template (#10024)mrsdizzie2020-01-271-0/+1
| | | | Style blockquotes as one might expect for html email to disinguish them from other text
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-271-9/+9
|
* trim whitespace of MilestoneName at creation/rename (#10017)65432020-01-272-2/+7
|
* On merge of already closed PR redirect back to the pulls page (#10010)zeripath2020-01-271-4/+18
| | | | | | | | | * On merge of already closed PR redirect back to the pulls page * More redirects * As per @6543 Co-Authored-By: 6543 <6543@obermui.de>
* add apple-touch-icon (#10006)silverwind2020-01-271-1/+2
| | | | | | | fixes: https://github.com/go-gitea/gitea/issues/10003 Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Generate Bindata iff TAGS="bindata" and not up-to-date (#10004)zeripath2020-01-2711-76/+113
| | | | | | | | | | | | | | | | | | | | | | * Only generate bindata if necessary * Only generate bindata if they are not up-to-date * generate a hash of the fileinfo and use that to keep up-to-date * Newer test is redundant * handle missing bindata and clean * Only update hash after successful write * switch to sha1 hash * Apply suggestions from code review Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Sign: Handle ErrTwoFactorNotEnrolled correctly (#10008)zeripath2020-01-262-4/+4
|
* Enforce tests do not change files in source tree (#9625)zeripath2020-01-262-1/+13
|
* enable fomantic api module (#9994)silverwind2020-01-261-0/+1
| | | Fixes: #9992
* add explicit dimensions to navbar avatar (#9986)silverwind2020-01-262-4/+4
| | | | | | | | | | | * add explicit dimensions to navbar avatar this prevents a temporary layout change when navigating between pages with cache disabled. * also add dimensions on frontpage Co-authored-by: Lauris BH <lauris@nix.lv>
* avoid useless fomantic rebuilds (#9999)silverwind2020-01-261-0/+3
| | | | | | the `fomantic` target for some reason does sometimes not update the timestamp on the directory, leading to useless rebuild. Manually update the timestamp at the end of the build to avoid this and also added the same to js/css targets.
* fix commit view JS features, reimplement folding (#9968)silverwind2020-01-265-13/+36
| | | | | | | | | | | | | | | * fix commit view JS features, reimplement folding File content folding was not working so I reimplemented it in a saner way. Then I noticed the issue was actually because of missing JS libraries (seen on the console of every commit with error 'SimpleMDE is not defined'). Fixed the libraries. I think the reimplementation is worth to keep. * add .closest polyfill Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix wrong paging on org members (#9990)Lunny Xiao2020-01-262-2/+2
|
* Change font to Roboto to support more charsets (#9803)Lauris BH2020-01-2533-1848/+50
|
* fix browser warnings related to crossorigin preload (#9984)silverwind2020-01-251-3/+3
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-251-1/+1
|
* remove loadCSS and preload woff2 icon fonts (#9976)silverwind2020-01-257-50/+4
| | | | | | | | | | loadCSS was used as a polyfill for rel=preload but it seems we only used it on a single CSS file which did not help much. Changed the icon CSS to a blocking load and preload the woff2 variants which does work in modern browsers (Firefox currently needs the network.preload about:config setting but should gain proper support soon). Co-authored-by: zeripath <art27@cantab.net>
* combine make calls on drone (#9979)silverwind2020-01-251-21/+8
| | | | | | | | | | * combine make calls on drone combine most make calls on drone into one command. this should give a speedup of about 5-15 seconds per make invocation because make only needs to resolve file globs once. * combine timeout calls as well
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-2525-1758/+1760
|
* Fix regexp ranges (#9977)guillep2k2020-01-251-2/+2
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-259-0/+20
|
* chore: update default version (#9916)Antoine GIRARD2020-01-251-1/+1
| | | | | | | | | | | | | | | * chore: update default version * use develop Co-Authored-By: 6543 <6543@obermui.de> * Update main.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* make node_modules a order-only prerequisite (#9923)silverwind2020-01-251-4/+4
| | | | | | | | | | | | | | | * make node_modules a order-only prerequisite Package installations and our fomantic step results in changes inside node_modules which lead to make triggering that target unnecessarily. Moved all node_modules prerequisites to order-only which will make skip the timestamp check on in and eliminate useless npm calls. Changes in package-lock.json will still result in reinstallation so node_modules should stay consistent. * revert change to clean-all
* Sanitize credentials in mirror form (#9975)Lunny Xiao2020-01-254-1/+37
|
* add css extraction and minification to webpack (#9944)silverwind2020-01-256-54/+687
| | | | | | | | | | | | | | This changes the CSS output of webpack to output to the public/css directory instead of inling CSS in JS. This enables CSS minification and autoprefixer based on browserslist which would otherwise not be possible. The result of this change is two new output files currently: - public/css/swagger.css - public/css/gitgraph.css Co-authored-by: techknowlogick <matti@mdranta.net>
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-2525-1765/+1765
|
* Fix crowdin update script (#9969)guillep2k2020-01-251-2/+7
| | | | | | | | * Fix crowdin update script * Refine the script to be specific about what it should change Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-251-1/+1
|
* Fix pull view when head repository or head branch missed and close related ↵Lunny Xiao2020-01-256-19/+173
| | | | | | | | | | | | | | | | | | pull requests when delete head repository or head branch (#9927) * fix pull view when head repository or head branch missed and close related pull requests when delete branch * fix pull view broken when head repository deleted * close pull requests when head repositories deleted * Add tests for broken pull request head repository or branch * fix typo * ignore special error when close pull request Co-authored-by: Lauris BH <lauris@nix.lv>
* Fix file rename/copy not supported by indexer (#9965)guillep2k2020-01-241-2/+27
| | | | Co-authored-by: zeripath <art27@cantab.net>
* Switch to use -f instead of -F for sendmail (#9961)zeripath2020-01-241-1/+1
| | | Fix #9385
* Fix image (#9962)John Olheiser2020-01-241-2/+2
| | | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* API add/generalize pagination (#9452)SpaWn2KiLl2020-01-24113-563/+1884
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * paginate results * fixed deadlock * prevented breaking change * updated swagger * go fmt * fixed find topic * go mod tidy * go mod vendor with go1.13.5 * fixed repo find topics * fixed unit test * added Limit method to Engine struct; use engine variable when provided; fixed gitignore * use ItemsPerPage for default pagesize; fix GetWatchers, getOrgUsersByOrgID and GetStargazers; fix GetAllCommits headers; reverted some changed behaviors * set Page value on Home route * improved memory allocations * fixed response headers * removed logfiles * fixed import order * import order * improved swagger * added function to get models.ListOptions from context * removed pagesize diff on unit test * fixed imports * removed unnecessary struct field * fixed go fmt * scoped PR * code improvements * code improvements * go mod tidy * fixed import order * fixed commit statuses session * fixed files headers * fixed headers; added pagination for notifications * go mod tidy * go fmt * removed Private from user search options; added setting.UI.IssuePagingNum as default valeu on repo's issues list * Apply suggestions from code review Co-Authored-By: 6543 <6543@obermui.de> Co-Authored-By: zeripath <art27@cantab.net> * fixed build error * CI.restart() * fixed merge conflicts resolve * fixed conflicts resolve * improved FindTrackedTimesOptions.ToOptions() method * added backwards compatibility on ListReleases request; fixed issue tracked time ToSession * fixed build error; fixed swagger template * fixed swagger template * fixed ListReleases backwards compatibility * added page to user search route Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: zeripath <art27@cantab.net>