mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-06 21:13:24 +09:00
enhance: move window.config to JSON, improve CSP format (#39236)
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
@@ -46,8 +46,11 @@ type Context struct {
|
||||
|
||||
TemplateContext TemplateContext
|
||||
|
||||
Render Render
|
||||
PageData map[string]any // data used by JavaScript modules in one page, it's `window.config.pageData`
|
||||
Render Render
|
||||
|
||||
// PageData is used by JavaScript modules, it is `window.config.pageData`.
|
||||
// Deprecated: it was introduced for refactoring some legacy JS code, it should not be used in new code anymore.
|
||||
PageData map[string]any
|
||||
|
||||
Cache cache.StringCache
|
||||
Flash *middleware.Flash
|
||||
|
||||
Reference in New Issue
Block a user