Commit Graph

113 Commits (3a0d000b947ff9a1fcdc90698e6d9bb852a67882)

Author SHA1 Message Date
zeripath bb0ff77e46
Share HTML template renderers and create a watcher framework (#20218) 2 years ago
KN4CK3R dc0253b063
Replace `ServeStream` with `ServeContent` (#20903) 2 years ago
Lunny Xiao 98190d0024
Fix disable download button (#20701) 2 years ago
silverwind 14178c56bb
Add Cache-Control header to html and api responses, add no-transform (#20432) 2 years ago
Gusted d55a0b7238
Refactor `i18n` to `locale` (#20153) 2 years ago
wxiaoguang 04fc4b7e05
Call MultipartForm.RemoveAll when request finishes (#19606) 3 years ago
wxiaoguang 84ceaa98bd
Refactor CSRF protection modules, make sure CSRF tokens can be up-to-date. (#19337) 3 years ago
Lunny Xiao 783a021889
Never use /api/v1 from Gitea UI Pages (#19318) 3 years ago
wxiaoguang 65f17bfc31
Refactor legacy `unknwon/com` package, improve golangci lint (#19284) 3 years ago
KN4CK3R 1d332342db
Add Package Registry (#16510) 3 years ago
KN4CK3R 59b867dc2d
Add `ContextUser` to http request context (#18798) 3 years ago
zeripath 0b1686b67a
Prevent redirect to Host (2) (#19175) 3 years ago
KN4CK3R 3f280f89e7
Update HTTP status codes to modern codes (#18063) 3 years ago
KN4CK3R 80fd25524e
Renamed ctx.User to ctx.Doer. (#19161) 3 years ago
zeripath a0db075f21
If rendering has failed due to a net.OpError stop rendering (attempt 2) (#19049) 3 years ago
Lunny Xiao e0688995ef
Display template path of current page in dev mode (#18717) 3 years ago
wxiaoguang a60e8be8d1
Refactor i18n, use Locale to provide i18n/translation related functions (#18648) 3 years ago
zeripath a6e657e999
If rendering has failed due to a net.OpError stop rendering (#18642) 3 years ago
zeripath be77ede954
Change some logging levels (#18421) 3 years ago
Gusted 27ee01e1e8
Disable content sniffing on `PlainTextBytes` (#18359) 3 years ago
6543 54e9ee37a7
format with gofumpt (#18184) 3 years ago
zeripath 5cb0c9aa0d
Propagate context and ensure git commands run in request context (#17868) 3 years ago
zeripath 16adaaeaa3
Instead of using routerCtx just escape the url before routing (#18086) 3 years ago
zeripath 6e7d28cf3a
Prevent double decoding of % in url params (#17997) 3 years ago
wxiaoguang 4da1d97810
Refactor HTTP request context (#17979) 3 years ago
Lunny Xiao a666829a37
Move user related model into models/user (#17781) 3 years ago
zeripath 0fa41b6dc4
Reset locale on login (#17734) 3 years ago
zeripath f8ec43dbc7
Extract constant names out for the ReverseProxy and Basic authentication methods (#17735) 3 years ago
zeripath bbffcc3aec
Multiple Escaping Improvements (#17551) 3 years ago
Lunny Xiao 99b2858e62
Move unit into models/unit/ (#17576) 3 years ago
wxiaoguang 2add8fe9be
Frontend refactor, PascalCase to camelCase, remove unused code (#17365) 3 years ago
Lunny Xiao f494776931
Use a variable but a function for IsProd because of a slight performance increment (#17368) 3 years ago
6543 3728f1daa0
Add RSS/Atom feed support for user actions (#16002) 3 years ago
wxiaoguang 56362043d3
Frontend refactor: move Vue related code from `index.js` to `components` dir, and remove unused codes. (#17301) 3 years ago
Lunny Xiao d47798ccc7
Upgrade chi to v5 (#17298) 3 years ago
wxiaoguang 7bcbdd0707
Add user status filter to admin user management page (#16770) 3 years ago
Lunny Xiao 37b29319aa
Fix bug of get context user (#17169) 3 years ago
6543 c4d70a0325
Rename ctx.Form() to ctx.FormString() and move code into own file (#16571) 3 years ago
zeripath afd88a2418
Allow setting X-FRAME-OPTIONS (#16643) 3 years ago
zeripath 7c4172ef71
Pass down SignedUserName down to AccessLogger context (#16605) 3 years ago
Lunny Xiao 33e0b38287
Rename context.Query to context.Form (#16562) 3 years ago
Lunny Xiao 9f31f3aa8a
Add an abstract json layout to make it's easier to change json library (#16528) 3 years ago
zeripath 5d2e11eedb
Refactor: Move login out of models (#16199) 3 years ago
Lunny Xiao b223d36195
Rework repository archive (#14723) 3 years ago
6543 6ad5d0a306
[API] ListReleases add filter for draft and pre-releases (#16175) 3 years ago
Lunny Xiao fb3ffeb18d
Add sso.Group, context.Auth, context.APIAuth to allow auth special routes (#16086) 3 years ago
zeripath 3183a465d7
Make modules/context.Context a context.Context (#16031) 4 years ago
zeripath 17c5c654a5
Prevent double-login for Git HTTP and LFS and simplify login (#15303) 4 years ago
zeripath 47fd156936
Use route rather than use thus reducing the number of stack frames (#15301) 4 years ago
Kyle D f44543a1bb
Disable Stars config option (#14653) 4 years ago