Commit Graph

24 Commits (47b59658629f47e0ac559559a305b867740cae9c)

Author SHA1 Message Date
JakobDev cc5df26680
Even more `db.DefaultContext` refactor (#27352) 1 year ago
JakobDev c548dde205
More refactoring of `db.DefaultContext` (#27083) 1 year ago
6543 8995046110
Less naked returns (#25713) 1 year ago
Lunny Xiao d6dd6d641b
Fix all possible setting error related storages and added some tests (#23911) 1 year ago
Lunny Xiao 5d23c885ed
Fix users cannot visit issue attachment bug (#25019) 2 years ago
wxiaoguang 6b33152b7d
Decouple the different contexts from each other (#24786) 2 years ago
wxiaoguang 023a048f52
Make repository response support HTTP range request (#24592) 2 years ago
John Olheiser 5e36024105
Require repo scope for PATs for private repos and basic authentication (#24362) 2 years ago
JakobDev 42919ccb7c
Make Release Download URLs predictable (#23891) 2 years ago
Peter c6f5029708
Preserve file size when creating attachments (#23406) 2 years ago
KN4CK3R 3c59d31bc6
Add API management for issue/pull and comment attachments (#21783) 2 years ago
Lunny Xiao 0a7d3ff786
refactor some functions to support ctx as first parameter (#21878) 2 years ago
flynnnnnnnnnn e81ccc406b
Implement FSFE REUSE for golang files (#21840) 2 years ago
Lunny Xiao 26095115f4
Move some repository related code into sub package (#19711) 3 years ago
Lunny Xiao fd7d83ace6
Move almost all functions' parameter db.Engine to context.Context (#19748) 3 years ago
Lunny Xiao cbd45471b1
Move access and repo permission to models/perm/access (#19350) 3 years ago
6543 06e4687cec
more context for models (#19511) 3 years ago
KN4CK3R 80fd25524e
Renamed ctx.User to ctx.Doer. (#19161) 3 years ago
6543 54e9ee37a7
format with gofumpt (#18184) 3 years ago
Lunny Xiao fc3d082609
Move attachment into models/repo/ (#17650) 3 years ago
Lunny Xiao ddc709ff7f
Add repo_id for attachment (#16958) 3 years ago
6543 c4d70a0325
Rename ctx.Form() to ctx.FormString() and move code into own file (#16571) 3 years ago
Lunny Xiao 33e0b38287
Rename context.Query to context.Form (#16562) 3 years ago
Lunny Xiao 1bfb0a24d8
Refactor routers directory (#15800) 4 years ago
KN4CK3R a35a5b225c
Add ETag header (#15370) 4 years ago
6543 16dea6cebd
[refactor] replace int with httpStatusCodes (#15282) 4 years ago
Farid AYOUJIL f72ce26326
Add Content-Length header to HEAD requests (#14542) 4 years ago
silverwind cda44750cb
Attachments: Add extension support, allow all types for releases (#12465) 4 years ago
Lunny Xiao 3878e985b6
Add default storage configurations (#12813) 4 years ago
Lunny Xiao 62e6c9bc6c
Add a storage layer for attachments (#11387) 4 years ago
silverwind 9d3e69e867
Move dropzone.js to npm/webpack (#10645) 5 years ago
6543 e57ac841de
Fix potential bugs (#10513) 5 years ago
Antoine GIRARD 8b24073713 Only serve attachments when linked to issue/release and if accessible by user (#9340) 5 years ago
blueworrybear 8c909820a9 Enable Uploading/Removing Attachments When Editing an Issue/Comment (#8426) 5 years ago
Antoine GIRARD f369788347 Refactor filetype is not allowed errors (#7309) 5 years ago
Lunny Xiao 09fb036ad6 fix upload attachments (#6481) 6 years ago
Mahmoud Al-Qudsi 171914e9a7 Log attachment blocked events (#3615) 7 years ago
Thomas Boerger 78535fb08e Allow custom public files (#782) 8 years ago
Philip Couling 1610b9f547 Spun attachments into seperate go file (#701) 8 years ago