- 16 Jun, 2022 9 commits
-
-
wxiaoguang authored
-
wxiaoguang authored
* clean git support for ver < 2.0 * fine tune tests for markup (which requires git module) * remove unnecessary comments * try to fix tests * try test again * use const for GitVersionRequired instead of var * try to fix integration test * Refactor CheckAttributeReader to make a *git.Repository version * update document for commit signing with Gitea's internal gitconfig * update document for commit signing with Gitea's internal gitconfig Co-authored-by:
Andrew Thornton <art27@cantab.net> Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com>
-
Gusted authored
-
Gusted authored
- Fomantic tries to prevent overflowing on the `y/x`-as by default on stackable menu's on mobile screens. We already solve this issue by forcing overflow on x as and hide it on y as(due to some issues with other menu's), since https://github.com/go-gitea/gitea/pull/19486. - However this edge case does require a y-overflow to show the dropdown, because you cannot easily adjust this with CSS, once you're fiddling with overflow's (https://stackoverflow.com/a/6433475). However interesting behavior is noted https://css-tricks.com/popping-hidden-overflow/ when you remove the position: relative, it will suddenly work again. Well because this is the only solution without redesigning dropdowns, I think we can live with the side-effect of the dropdown items being full-width instead "relative" width to their parent. - Resolves #19976 Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com>
-
a1012112796 authored
-
a1012112796 authored
the `BaseRepo` not always exit, should use `Repository`. Signed-off-by:
a1012112796 <1012112796@qq.com>
-
Gusted authored
- We don't need to buffer the logger with a thousand capacity. It's not a high-throughput logger, this also caused issue whereby the logger can't keep up with repeated messages being send(somehow they are lost in the queue?). - Resolves #19969 Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com>
-
Lunny Xiao authored
* Allow render HTML with css/js external links * Fix bug because of filename escape chars * Fix lint * Update docs about new configuration item * Fix bug of render HTML in sub directory * Add CSP head for displaying iframe in rendering file * Fix test * Apply suggestions from code review Co-authored-by:
delvh <dev.lh@web.de> * Some improvements * some improvement * revert change in SanitizerDisabled of external renderer * Add sandbox for iframe and support allow-scripts and allow-same-origin * refactor * fix * fix lint * fine tune * use single option RENDER_CONTENT_MODE, use sandbox=allow-scripts * fine tune CSP * Apply suggestions from code review Co-authored-by:
wxiaoguang <wxiaoguang@gmail.com> Co-authored-by:
delvh <dev.lh@web.de> Co-authored-by:
wxiaoguang <wxiaoguang@gmail.com>
-
Gusted authored
- Don't specify the field in `Count` instead use `Cols` for this. - Call `log.Error` when a error occur. Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com>
-
- 15 Jun, 2022 9 commits
-
-
Hugo Hoitink authored
* When non-admin users use code search, get code unit accessible repos in one main query * Modified some comments to match the changes * Removed unnecessary check for Access Mode in Collaboration table Co-authored-by:
wxiaoguang <wxiaoguang@gmail.com> Co-authored-by:
Lauris BH <lauris@nix.lv>
-
Gusted authored
-
Gusted authored
- Always give a best-effort to fetching the repositories, if even that fails indeed give a disconnected mirror found error. - *Partially* resolves #19928 Co-authored-by:
wxiaoguang <wxiaoguang@gmail.com>
-
Lauris BH authored
`tab` query argument and `TabName` in context is used only in profile so remove it from all other places where it's not used anymore.
-
wxiaoguang authored
* Fix cli command restore-repo: "units" should be parsed as StringSlice because after #15790 it's read by c.StringSlice("units"). Before, the "units" were processed by strings.Split * Add checking for invalid unit names Co-authored-by:
6543 <6543@obermui.de>
-
AHOHNMYC authored
-
Lunny Xiao authored
-
silverwind authored
Replace the only `<meter>` element in use with a `<progress>` which is styled properly. Also slightly adjust colors on it for better contrast. Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com>
-
singuliere authored
-
- 14 Jun, 2022 1 commit
-
-
singuliere authored
-
- 13 Jun, 2022 7 commits
-
-
singuliere authored
-
wxiaoguang authored
Co-authored-by:
6543 <6543@obermui.de>
-
Lunny Xiao authored
* Fix mirror template bug Co-authored-by:
wxiaoguang <wxiaoguang@gmail.com> Co-authored-by:
delvh <dev.lh@web.de>
-
Lunny Xiao authored
-
Lunny Xiao authored
* Move access and repo permission to models/perm/access * fix test * fix git test * Move functions sequence * Some improvements per @KN4CK3R and @delvh * Move issues related code to models/issues * Move some issues related sub package * Merge * Fix test * Fix test * Fix test * Fix test * Rename some files
-
yutotnh authored
-
Lunny Xiao authored
-
- 12 Jun, 2022 6 commits
-
-
Lunny Xiao authored
* Move access and repo permission to models/perm/access * fix test * Move some git related files into sub package models/git * Fix build * fix git test * move lfs to sub package * move more git related functions to models/git * Move functions sequence * Some improvements per @KN4CK3R and @delvh
-
wxiaoguang authored
-
Gusted authored
* Prettify number of issues - Use the PrettyNumber function to add commas in large amount of issues. * Use client-side formatting * prettify on both server and client * remove unused i18n entries * handle more cases, support other int types in PrettyNumber * specify locale to avoid issues with node default locale * remove superfluos argument * introduce template helper, octicon tweaks, js refactor * Update modules/templates/helper.go * Apply some suggestions. * Add comment * Update templates/user/dashboard/issues.tmpl Co-authored-by:
silverwind <me@silverwind.io> Co-authored-by:
silverwind <me@silverwind.io> Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com>
-
Gusted authored
- File headers can become quite width, so ensure the file size is not being wrapped into itself(width + padding-right) and allow the overflow to be scrolled(overflow-x).
-
Gusted authored
* Unify context data * Actually show invalid url in error
-
xkcdstickfigure authored
-
- 11 Jun, 2022 5 commits
-
-
xkcdstickfigure authored
-
6543 authored
Add WebUI part of Auto merge feature close #19621 Co-authored-by:
wxiaoguang <wxiaoguang@gmail.com> Co-authored-by:
delvh <dev.lh@web.de>
-
Lunny Xiao authored
* Fix some mirror bugs * Remove unnecessary code * Fix lint * rename stdard url * Allow more charactors in git ssh protocol url * improve the detection * support ipv6 for git url parse * Fix bug * Fix template * Fix bug * fix template * Fix tmpl * Fix tmpl * Fix parse ssh with interface * Rename functions name Co-authored-by:
zeripath <art27@cantab.net>
-
wxiaoguang authored
* Fix data-race problems in git module * use HomeDir instead of setting.RepoRootPath Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com>
-
silverwind authored
-
- 10 Jun, 2022 3 commits
-
-
silverwind authored
* Fix copy/paste of empty newlines again Fixes: https://github.com/go-gitea/gitea/issues/19331 Regressed by: https://github.com/go-gitea/gitea/pull/18270 Needed to do another newline addition to the Chroma output HTML to get copy/paste work again. The previous replacement conditions are probably obsolete, but as I'm not 100% sure, I opted to keep them. Specifically, the Chroma HTML change mentioned in https://github.com/go-gitea/gitea/pull/18270#issuecomment-1013350246 broke our previous newline replacement for such empty lines. Also included are a few changes to make the test more pleasant to work with. * run go mod tidy * add util.Dedent * copy in the code Co-authored-by:
techknowlogick <techknowlogick@gitea.io> Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by:
Lauris BH <lauris@nix.lv>
-
silverwind authored
Ensures consistent line endings to avoid useless diffs because there is somthing platform-dependant in that build. Co-authored-by:
wxiaoguang <wxiaoguang@gmail.com>
-
Eekle authored
* Make user profile image show full image on mobile
-