forgejo/modules/context
silverwind 3a21f8a986
Inline manifest.json (#14038)
* Inline manifest.json

Improve performance by eliminating this separate request and just inline
this small JSON in HTML directly as a data uri.

Also update previously static app name scripts to use AppName.

I've confirmed this as working via "Add to Homescreen" feature which
offered to save the shortcut under the new app name.

* prerender manifest data on startup

* move to settings

* restore setting.AppStartTime and use it on admin page

* use double quotes because template.URL escapes everything

* fix lint

* move variable to global context variable

* delete template file

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
2020-12-22 19:13:50 +08:00
..
api.go Send error message when CSRF token is missing (#13676) 2020-11-23 07:56:04 +00:00
api_org.go
api_test.go
auth.go Move install pages out of main macaron routes (#13195) 2020-10-19 17:03:08 -04:00
context.go Inline manifest.json (#14038) 2020-12-22 19:13:50 +08:00
org.go
pagination.go Multiple GitGraph improvements: Exclude PR heads, Add branch/PR links, Show only certain branches, (#12766) 2020-11-08 12:21:54 -05:00
panic.go
permission.go
repo.go Support shortened commit SHAs in URLs (#13686) 2020-11-25 15:07:39 -05:00