Commits at f2229e0566478f8a2d8b968777f8ff356f1d4900
f2229e05doc: add brief intro on using traefik as reverse-proxy (#19432)
Campbell He
authored at
GitHub
comitted at
ae6a5244Fix panic in team repos API (#19431)
* Fix panic in team repos API
* Fix pagination
* fmtqwerty287
authored at
GitHub
comitted at
409ff55aWhen updating mirror repo intervals by API reschedule next update too (#19429)
When a mirror repo interval is updated by the UI it is rescheduled with that interval
however the API does not do this. The API also lacks the enable_prune option.
This PR adds this functionality in to the API Edit Repo endpoint.
Signed-off-by: Andrew Thornton <art27@cantab.net>
zeripath
authored at
GitHub
comitted at
a56fcdfaFix nil error when some pages are rendered outside request context (#19427)
wxiaoguang
authored at
GitHub
comitted at
4396d0e7Note where frontend files are located in docs (#19379)
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>ktprograms
authored at
GitHub
comitted at
f029b9aeDocument 409 error returned by repos/migrate api (#19376)
* Document 409 error returned by repos/migrate api
* Generate swagger spec
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>Chongyi Zheng
authored at
GitHub
comitted at
0d3d9675Fix middleware function's placements for some `/user/...` (#19377)
- Add reqSignIn to `/user/task/{task}` as it specific to a logged in user currently not-logged in user could cause a NPE.
- Move `/user/stopwatch` & `/user/search` middleware before the actual function is called, because functions are executed in order and currently hadn't any effect and could as well cause a NPE due to that.
- Remove `/user/active` reqSignIn middleware, because when you want to active a account you're not "signed in" so it doesn't make sense to add that middleware.Gusted
authored at
GitHub
comitted at
d139c239Fix panic in teams API when requesting members (#19360)
delvh
authored at
GitHub
comitted at
ee769f74Add logic to switch between source/rendered on Markdown (#19356)
Adds a button to switch between the source blob and the rendered markdown.Gusted
authored at
GitHub
comitted at
c003491cAllow package linking to private repository (#19348)
* Display private repos too.
* lint
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>KN4CK3R
authored at
GitHub
comitted at
d9068588Use "main" as default branch name (#19354)
* Use "main" as default branch name
* fix test codewxiaoguang
authored at
GitHub
comitted at
1dfa26e0Move milestone to models/issues/ (#19278)
* Move milestone to models/issues/
* Fix lint
* Fix test
* Fix lint
* Fix lintLunny Xiao
authored at
GitHub
comitted at
84ceaa98Refactor CSRF protection modules, make sure CSRF tokens can be up-to-date. (#19337)
Do a refactoring to the CSRF related code, remove most unnecessary functions.
Parse the generated token's issue time, regenerate the token every a few minutes.wxiaoguang
authored at
GitHub
comitted at
3c3d4989Remove dependent on session auth for api/v1 routers (#19321)
* Remove dependent on session auth for api/v1 routers
* Remove unnecessary session on API context
* remove missed header
* fix test
* fix missed api/v1Lunny Xiao
authored at
GitHub
comitted at
75f8534cAPI: Search Issues, dont show 500 if filter result in empty list (#19244)
* remove error who is none
* use setupSessionNoLimit instead of setupSessionWithLimit when no pagination
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>6543
authored at
GitHub
comitted at
783a0218Never use /api/v1 from Gitea UI Pages (#19318)
Reusing `/api/v1` from Gitea UI Pages have pros and cons.
Pros:
1) Less code copy
Cons:
1) API/v1 have to support shared session with page requests.
2) You need to consider for each other when you want to change something about api/v1 or page.
This PR moves all dependencies to API/v1 from UI Pages.
Partially replace #16052 Lunny Xiao
authored at
GitHub
comitted at
18430266Show ssh command directly in template instead of i18n translation (#19335)
* add missing space for generate ssh token command
Signed-off-by: Junjie Yuan <yuan@junjie.pro>
* Do not use i18n for ssh command
* Remove unnecessary settings.ssh_token_code
* Revert locale_zh-CN.ini
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>原俊杰
authored at
GitHub
comitted at