aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Only return JSON for add/remove all (#9028)John Olheiser2019-11-161-4/+8
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Check compiled files during build (#9042)Gary Kim2019-11-162-7/+1
| | | Signed-off-by: Gary Kim <gary@garykim.dev>
* Button tooltip formatting under Branches (#9034)Vedran2019-11-161-4/+4
| | | | | | * Fixes button tooltip formatting under Branches * Formatting on download button for default branch
* Add retry for migration http/https requests (#9019)Lunny Xiao2019-11-167-1/+195
| | | | | | | | | | * Add retry for migration http/https requests * give the more suitable name for retry configuraion items * fix docs and lint * Only use retryDownloader when setting > 1
* wiki - editor - enable side-by-side button (#7242)Cherrg2019-11-165-17/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * wiki - enable side-by-side button in editor and add some delay so side-by-side live preview is updated * every 10th keypress * if keypress < 10 -> apter no input for 1 sec affects #5436 Signed-off-by: Michael Gnehr <michael@gnehr.de> * decrease timeinterval user need to stop before rendering is triggered Signed-off-by: Michael Gnehr <michael@gnehr.de> * removed not needed code with simpleMDE placeholder Signed-off-by: Michael Gnehr <michael@gnehr.de> * run highlight.js on markdown preview Signed-off-by: Michael Gnehr <michael@gnehr.de> * fix white border around side-by-side preview Signed-off-by: Michael Gnehr <michael@gnehr.de>
* Move git graph from models to modules/graph (#9027)Lunny Xiao2019-11-163-3/+4
|
* Update display of reactions to issues and comments (#9038)mrsdizzie2019-11-152-6/+24
| | | | Modify display of reactions to issues to remove spaces and make them feel more apart of the reactions bar rather than separate items within.
* extract some inline functions related with create comment (#8931)Lunny Xiao2019-11-155-88/+65
|
* Fix permission checks for close/reopen from commit (#8875)guillep2k2019-11-152-18/+31
| | | | | * Fix checks for close/reopen from commit * Fix permission order
* Ensure Written is set in GZIP ProxyResponseWriter (#9018)zeripath2019-11-151-10/+43
| | | | | | | | Fix #9001 The GZIP ProxyReponseWriter doesn't currently respond correctly to requests about its Written status - leading to #9001. This PR properly reimplements these methods.
* Add review comments to mail notifications (#8996)guillep2k2019-11-156-35/+73
|
* Fix broken link to branch from issue list (#9003)Vedran2019-11-151-1/+1
| | | | | | | | | | * Fix broken link to branch from issue list * Update templates/repo/issue/list.tmpl Co-Authored-By: mrsdizzie <info@mrsdizzie.com> * apply @mrsdizzie's review
* fix wrong system notice when repository is empty (#9010)Lunny Xiao2019-11-151-0/+5
|
* Move transfer repository and rename repository on a service package and ↵Lunny Xiao2019-11-1516-253/+216
| | | | | | | | | | | | | | | | | | | | | | start action notification (#8573) * move transfer repository and rename repository on a service package and start action notification * remove unused codes * fix lint * fix bugs * fix test * fix test * fix test * fix lint * update go mod and sum
* Githook highlighter (#8932)Konctantin2019-11-152-0/+13
| | | | | | | | | | | | | | | | | | | | | | * Add code highlighter to GitHook edit Signed-off-by: Konctantin <gawrilyako@gmail.com> * Fix indentation Signed-off-by: Konctantin <gawrilyako@gmail.com> * Resolve merge conflict Signed-off-by: gawrilyako@gmail.com <Konctantin> * Resolve merge conflict Signed-off-by: gawrilyako@gmail.com <Konctantin> * Fix pre-build drone event Signed-off-by: Konctantin <gawrilyako@gmail.com>
* services/mirror: fix dropped test errors (#9007)Lars Lehtonen2019-11-151-0/+2
|
* Expand/Collapse Files and Blob Excerpt while Reviewing/Comparing code (#8924)Benno2019-11-1516-36/+460
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * update #8659 fold/unfold code diffs * add fold button style * update #8659 implement expand up/down codes (blob excerpt) * fix golint errors * fix expand direction * remove debug message * update css style for blob exceprt * fix typo in comment * update style sheet with less * update expect diff (add SectionInfo) * update #8942 accept suggested change (fix typo) * close reader and check file type before get tail section * adjust button position and check file type before insert fold button * move index js to web_src * merge index.js with master * generate index.js * update js coding style
* Pack web_src/js/draw.js to public/js/index.js (#8975)Lunny Xiao2019-11-148-27/+20
| | | | | | * pack web_src/js/draw.js to public/js/index.js * fix eslint
* Update dashboard context for PR reviews (#8995)John Olheiser2019-11-155-26/+50
| | | | | | | | | | | | | | | | | | * Update dashboard context for PR reviews Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update options/locale/locale_en-US.ini Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Only append head action if it has content or is approval/rejection Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update options/locale/locale_en-US.ini Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Enforce Gitea environment for pushes (#8982)zeripath2019-11-144-18/+42
| | | | | | | | * Enforce Gitea environment for pushes * Update custom/conf/app.ini.sample Co-Authored-By: Antoine GIRARD <sapk@users.noreply.github.com>
* modernize js and use babel (#8973)silverwind2019-11-1410-3740/+5226
| | | | | | | | | | | | | | * modernize js and use babel - add babel toolchain to transform modern JS to ES5 - extend eslint config for modern rules - fixes linting issues via `eslint --fix` and manual fixes * run 'make css' to satisfy CI * code style tweaks and set js indendation to 2 in .editorconfig * regenerate js
* New review approvals shouldn't require a message (#8991)John Olheiser2019-11-141-2/+2
| | | | | | | | | | * New approvals don't require content Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix edge-bug Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Shadow password correctly for session config (#8984)zeripath2019-11-141-9/+17
| | | | | | | Fix #8718 This PR shadows passwords in session config correctly by detecting the VirtualProvider, unmarshalling the original config and then shadowing config within that.
* Drop Admin attribute based on LDAP when login (continue #1743) (#8849)65432019-11-141-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update User information in Gitea based on LDAP when login * Update Admin Flag only if exist in settings * Fix affectation * Update models/login_source.go Co-Authored-By: JustKiddingCode <JustKiddingCode@users.noreply.github.com> * Better ident * Apply suggestions from code review Update user information Co-Authored-By: 6543 <24977596+6543@users.noreply.github.com> * Make fmt * add err handling * if user exist but login is Prohibit return return nil, and Prohibit err * keep login speed * User sync is implemented at #1478 - so only make sure that admin acces is drpoed if changed * handle error and still use async task * no async * only update admin if Sync is enabled * update two comments * add lafriks suggestions Co-Authored-By: Lauris BH <lauris@nix.lv> * if adminFilter is set - use it Co-Authored-By: Lauris BH <lauris@nix.lv> * Update models/login_source.go well - I should look more detaild at suggestions :D Co-Authored-By: Lauris BH <lauris@nix.lv> * make it work again * set is_admin value to user * look nicer
* fix bug when pack js (#8992)Lunny Xiao2019-11-144-6/+6
|
* Add ALLOW_ONLY_EXTERNAL_REGISTRATION to config cheat sheet (#8986)zeripath2019-11-141-0/+1
| | | | | ALLOW_ONLY_EXTERNAL_REGISTRATION was missed off the cheat sheet. This PR adds it. Fix #8180
* Changelog for 1.10.0 (#8978) (#8987)John Olheiser2019-11-141-22/+34
| | | | | | | | | | * Changelog for 1.10.0 (#8978) Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update security Signed-off-by: jolheiser <john.olheiser@gmail.com>
* [Feature] Add Gitea Emoji (#8950)65432019-11-147-8/+5
| | | | | | | | | | | | | | * add gitea emoji * alphabetic order * Update emojify.js to 1.1.0 * mv to custom * add gitea emoji * minify
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-141-0/+39
|
* fix(docs): Fixed creating Windows service commands (#8979)Wars2019-11-144-4/+4
| | | escaping " to \"
* docs reference latest stable version (1.10.0)techknowlogick2019-11-141-1/+1
|
* Refactor pull request review (#8954)Lunny Xiao2019-11-148-249/+289
| | | | | | | | | | | | | | | | | | * refactor submit review * remove unnecessary code * remove unused comment * fix lint * remove duplicated actions * remove duplicated actions * fix typo * fix comment content
* Backport the backport of 1.9.6 (#8970)John Olheiser2019-11-141-0/+8
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix intermittent GPG Git test failure (#8968)zeripath2019-11-132-126/+209
|
* Add CDNJS to script-src CSP (#8966)John Olheiser2019-11-131-1/+1
|
* Don't send notification on pending reviews (#8943)guillep2k2019-11-131-1/+3
|
* Implement documentation search (#8937)John Olheiser2019-11-1313-4/+362
| | | | | | * Implement documentation search Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Move index.js to web_src and use webpack to pack them (#8598)Lunny Xiao2019-11-1312-3793/+4747
| | | | | | | | | | | | * Move index.js to web_src and use webpack * Fix initHeatMap * update eslint and move webpack to devDependencies * update index.js * add eslint env node
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-131-0/+2
|
* add /etc/timezone and /etc/localtime volumes (#8911)Florian Hübner2019-11-131-0/+12
| | | | Passing these volumes to the container enable gitea to use hosts localtime and timezone. This is a mandatory change when using the "Setup fail2ban" Guide, but it is not described in the documentation.
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-131-0/+12
|
* Add Close() method to gogitRepository (#8901)zeripath2019-11-1375-102/+387
| | | | | | | | | In investigating #7947 it has become clear that the storage component of go-git repositories needs closing. This PR adds this Close function and adds the Close functions as necessary. In TransferOwnership the ctx.Repo.GitRepo is closed if it is open to help prevent the risk of multiple open files. Fixes #7947
* Convert EOL to UNIX-style to render MD properly (#8925)guillep2k2019-11-134-1/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Convert EOL to UNIX-style to render MD properly * Update modules/markup/markdown/markdown.go Co-Authored-By: zeripath <art27@cantab.net> * Fix lint optimization * Check for empty content before conversion * Update modules/util/util.go Co-Authored-By: zeripath <art27@cantab.net> * Improved checks and tests * Add paragraph render test * Improve speed even more, improve tests * Small improvement by @gary-kim * Fix test for DOS * More improvements * Restart CI
* Show repository size in repo home page and settings (#8940)Antoine GIRARD2019-11-133-0/+8
| | | | | | * feat: display repository size on repo home and settings * refactor: move repo size up in setting page
* Fix Notify Create Ref Error on tag creation (#8936)zeripath2019-11-131-2/+2
| | | | | | * Fix Notify Create Ref Error on tag creation * Just use the provided full ref instead of BranchCommit
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-1216-16/+1
|
* Update Github Migration Tests (#8938)mrsdizzie2019-11-121-278/+143
| | | | | | | Update all Github migration tests to use a new repo created just for these tests that won't accidentially be modified by regular users interacting with issues. Fixes #8895
* Fix spelling as suggested by @rmbleeker (#8934)guillep2k2019-11-121-1/+1
|
* Move less from public/ to web_src/ so that it will not be packe… (#8908)Lunny Xiao2019-11-1219-3/+3
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-123-0/+44
|