zeripath
a926ff919d
Performance improvement for last commit cache and show-ref ( #15455 )
...
* Improve performance when there are multiple commits in the last commit cache
* read refs directly if we can
Signed-off-by: Andrew Thornton <art27@cantab.net>
4 years ago
Kyle D
fda2e4549f
Move tooltip down to allow selection of Remove File on error ( #15672 )
4 years ago
silverwind
a64cdfd4fd
Markdown CSS tweaks ( #15572 )
...
Update Markdown CSS to more closely match GH rendering. Changes include
better nested list margins and tweaked font sizes.
Co-authored-by: Lauris BH <lauris@nix.lv>
4 years ago
a1012112796
ae6d7860be
add cron job to delete old actions from database ( #15688 )
...
that's a way to save database storage space.
Signed-off-by: a1012112796 <1012112796@qq.com>
4 years ago
KN4CK3R
ca0460beb7
Unify integration test configs. ( #15650 )
4 years ago
KN4CK3R
67e10397af
Add Location, Website and Biography to API ( #15675 )
4 years ago
GiteaBot
5811e162ae
[skip ci] Updated translations via Crowdin
4 years ago
KN4CK3R
7670c1c99e
Fixed several activation bugs ( #15473 )
...
* Removed unneeded form tag.
* Fixed typo.
* Fixed NPE.
* Use better error page.
* Splitted GET and POST.
4 years ago
KN4CK3R
ee3fb92419
Delete references if repository gets deleted ( #15681 )
...
* Remove DeletedBranch and LFSLocks.
* Sort beans.
Co-authored-by: zeripath <art27@cantab.net>
4 years ago
Lunny Xiao
f5eb33c354
Fix orphaned objects deletion bug ( #15657 )
...
* Fix orphaned objects deletion bug
* extend test
Co-authored-by: 6543 <6543@obermui.de>
4 years ago
KN4CK3R
c80d7f33b6
Unified link creation. ( #15619 )
4 years ago
KN4CK3R
1456978246
Added missing prefix on install route. ( #15677 )
...
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
4 years ago
yearski
49b28956e2
Docs: fix location for custom/options/license ( #15671 )
4 years ago
6543
a6bfe59b4b
Docs: renderers rst: rst2html.py -> pandoc ( #15659 )
4 years ago
KN4CK3R
2e85165349
Delete protected branch if repository gets removed ( #15658 )
...
* Added missing error parameters.
* Delete protected branch if repository gets removed.
* Added doctor fix.
4 years ago
Martin Michaelis
d576126286
Remove random password in Dockerfiles ( #15362 )
...
* Remove random password of git user in dockerfile
* Disable git user account in rootless dockerfile
4 years ago
Garrit Franke
f67e36097a
fix(settings): misaligned buttons ( #15656 )
...
Co-authored-by: 6543 <6543@obermui.de>
4 years ago
Lunny Xiao
d7dbe4feeb
Fix readme render bug ( #15649 )
4 years ago
zeripath
2c57352a30
Remove spurious set name from eventsource.sharedworker.js ( #15643 )
...
Fix #15617
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 years ago
a1012112796
1e877613bf
add `/assets` as root dir of public files ( #15219 )
...
* add `/assets` as root dir of public files
Signed-off-by: a1012112796 <1012112796@qq.com>
* move serviceworker.js
* make fmt
* fix some link
* fix test
* Apply suggestions from code review
Co-authored-by: silverwind <me@silverwind.io>
* Apply suggestions from code review
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
4 years ago
silverwind
cc7d118b12
Remove x-ua-compatible header ( #15640 )
...
The header is deprecated since IE 11 so it only serves to support IE 10
and below which are browsers which are long unsupported now.
4 years ago
a1012112796
f31443d6a8
not update updated uinx for `git gc` ( #15637 )
...
fix #15634
Signed-off-by: a1012112796 <1012112796@qq.com>
4 years ago
GiteaBot
e711050450
[skip ci] Updated translations via Crowdin
4 years ago
zeripath
b07938be5b
Fix commit graph author link ( #15627 )
...
The author link on the commit graph is incorrect and isn't providing a link to the author.
Signed-off-by: Andrew Thornton <art27@cantab.net>
4 years ago
Lunny Xiao
3d5bb3e6a3
fix webhook timeout bug ( #15613 )
...
* Also fix the potential problem in httplib
4 years ago
Dong Nguyen
6ea6e2b4eb
Update config-cheat-sheet.en-us.md ( #15606 )
...
Add more guide about `PROVIDER_CONFIG` when `PROVIDER` is `db` (https://github.com/go-gitea/gitea/issues/14016 )
4 years ago
silverwind
ec69f34726
Update JS dependencies ( #15591 )
...
* Update JS dependencies
- Update all JS dependencies
- Regenerate SVGs
- Remove unused postcss dependency
- Remove removed webpack option
* re-add postcss
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 years ago
techknowlogick
ea40eb749b
Resolve panic on failed interface conversion in migration v156 ( #15604 )
...
go panics otherwise with `panic: interface conversion: error is git.ErrNotExist, not *git.ErrNotExist`, thanks to Codeberg/Andi for reporting this.
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 years ago
Lunny Xiao
1b3dbdba4e
Attachment support repository route ( #15580 )
4 years ago
6543
bee8ce342f
Fix go-fuzz ( #15596 )
...
* Fix go-fuzz
followup of https://github.com/go-gitea/gitea/pull/15175
* simplify
* enhance
4 years ago
GiteaBot
e91932bc15
[skip ci] Updated translations via Crowdin
4 years ago
6543
792b4dba2c
[Vendor] Update directly used dependencys ( #15593 )
...
* update github.com/blevesearch/bleve v2.0.2 -> v2.0.3
* github.com/denisenkom/go-mssqldb v0.9.0 -> v0.10.0
* github.com/editorconfig/editorconfig-core-go v2.4.1 -> v2.4.2
* github.com/go-chi/cors v1.1.1 -> v1.2.0
* github.com/go-git/go-billy v5.0.0 -> v5.1.0
* github.com/go-git/go-git v5.2.0 -> v5.3.0
* github.com/go-ldap/ldap v3.2.4 -> v3.3.0
* github.com/go-redis/redis v8.6.0 -> v8.8.2
* github.com/go-sql-driver/mysql v1.5.0 -> v1.6.0
* github.com/go-swagger/go-swagger v0.26.1 -> v0.27.0
* github.com/lib/pq v1.9.0 -> v1.10.1
* github.com/mattn/go-sqlite3 v1.14.6 -> v1.14.7
* github.com/go-testfixtures/testfixtures v3.5.0 -> v3.6.0
* github.com/issue9/identicon v1.0.1 -> v1.2.0
* github.com/klauspost/compress v1.11.8 -> v1.12.1
* github.com/mgechev/revive v1.0.3 -> v1.0.6
* github.com/microcosm-cc/bluemonday v1.0.7 -> v1.0.8
* github.com/niklasfasching/go-org v1.4.0 -> v1.5.0
* github.com/olivere/elastic v7.0.22 -> v7.0.24
* github.com/pelletier/go-toml v1.8.1 -> v1.9.0
* github.com/prometheus/client_golang v1.9.0 -> v1.10.0
* github.com/xanzy/go-gitlab v0.44.0 -> v0.48.0
* github.com/yuin/goldmark v1.3.3 -> v1.3.5
* github.com/6543/go-version v1.2.4 -> v1.3.1
* do github.com/lib/pq v1.10.0 -> v1.10.1 again ...
4 years ago
silverwind
834fc74873
Raw file view tweaks ( #15520 )
...
- Limit SVG images to 600px width
- Adjust size of view toggle buttons to match other buttons
- Make Edit/Delete buttons easier to click
Had to create a separate CSS file because the less parser can not parse
CSS4 case-insensitive attribute selectors which are widely supported by
browsers.
Fixes: https://github.com/go-gitea/gitea/issues/15515
4 years ago
6543
8ea1d32bea
[Vendor] update certmagic ( #15590 )
...
* update github.com/caddyserver/certmagic v0.12.0 -> v0.13.0
* migrate
4 years ago
Lunny Xiao
e7fc078891
Fix missing storage init ( #15589 )
4 years ago
zeripath
d6a33cef23
If the default branch is not present do not report error on stats indexing (follow-up of #15546 ) ( #15583 )
...
#15546 doesn't completely fix this problem because the error returned is an ObjectNotExist
error not a BranchNotExist error.
Add test for ErrObjectNotExist too
Fix #15257
Signed-off-by: Andrew Thornton <art27@cantab.net>
4 years ago
Björn Heinrichs
72e0ad8000
Fix docker enviroment variable from TYPE to DB_TYPE ( #15585 )
...
As documented in https://docs.gitea.io/en-us/config-cheat-sheet/ the database type is defined using db_type not type.
4 years ago
Nathan Smith
445e47b692
Bump unrolled/render to v1.1.0 ( #15581 )
...
v1.1.0 has improved buffer pooling
4 years ago
zeripath
f719ffc783
If the default branch is not present do not report error on stats indexing ( #15546 )
...
* If the default branch is not present do not report error on stats indexing
Fix #15257
Signed-off-by: Andrew Thornton <art27@cantab.net>
* as per lunny
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
4 years ago
zeripath
df416f2414
Add placeholder text to deploy key textarea ( #15575 )
...
* Add placeholder text to deploy key textarea
Related #15574
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Update templates/repo/settings/deploy_keys.tmpl
* Update templates/repo/settings/deploy_keys.tmpl
4 years ago
zeripath
1cd8d0ca0e
Fix NPE on view commit with notes ( #15561 )
...
Fix #15558
Signed-off-by: Andrew Thornton <art27@cantab.net>
4 years ago
Lunny Xiao
2255afffad
Fix lfs management find ( #15537 )
...
Fix #15236
* Do not do 40byte conversion within ParseTreeLine
* Missed a to40ByteSHA
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Andrew Thornton <art27@cantab.net>
4 years ago
Kyle D
9b8ffa1c7a
Output node min version variable ( #15562 )
4 years ago
GiteaBot
d85a4e8cec
[skip ci] Updated translations via Crowdin
4 years ago
silverwind
5e85cdad29
Project board improvements ( #15429 )
...
* Project board improvements
- Fix link colors
- Extract CSS to own file
- Various minor tweaks to make it look better
Fixes: https://github.com/go-gitea/gitea/issues/15424
Fixes: https://github.com/go-gitea/gitea/issues/15506
Fixes: https://github.com/go-gitea/gitea/pull/15511
* fix squashed cards on small view area
* more css fixes, add second row from issue list
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
4 years ago
Nathan Zook
2242f381e6
Added OpenAPI document link to usage ( #15535 )
...
* Added OpenAPI document link to usage
The OpenAPI document at /api/swagger.v1.json needs an obvious reference. Sadly, I am English monolingual, so someone else is going to have to do the other languages. In the mean time, this PR should help anyone looking for the file.
* Update docs/content/doc/developers/api-usage.en-us.md
Co-authored-by: a1012112796 <1012112796@qq.com>
Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: a1012112796 <1012112796@qq.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
4 years ago
GiteaBot
3a49c00f0d
[skip ci] Updated translations via Crowdin
4 years ago
Lunny Xiao
9d99f6ab19
Refactor renders ( #15175 )
...
* Refactor renders
* Some performance optimization
* Fix comment
* Transform reader
* Fix csv test
* Fix test
* Fix tests
* Improve optimaziation
* Fix test
* Fix test
* Detect file encoding with reader
* Improve optimaziation
* reduce memory usage
* improve code
* fix build
* Fix test
* Fix for go1.15
* Fix render
* Fix comment
* Fix lint
* Fix test
* Don't use NormalEOF when unnecessary
* revert change on util.go
* Apply suggestions from code review
Co-authored-by: zeripath <art27@cantab.net>
* rename function
* Take NormalEOF back
Co-authored-by: zeripath <art27@cantab.net>
4 years ago
Raphael Kruse
c9cc6698d2
Fix a broken link in customizing-gitea.en-us.md ( #15543 )
4 years ago
Lunny Xiao
ce8255fb7b
Change the chinese discuss link to discourse ( #15533 )
4 years ago