mirror of https://github.com/go-gitea/gitea
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>pull/14112/head
parent
cd607b5f98
commit
3a21f8a986
@ -1,31 +0,0 @@ |
||||
{ |
||||
"short_name": "Gitea", |
||||
"name": "Gitea - Git with a cup of tea", |
||||
"icons": [ |
||||
{ |
||||
"src": "{{StaticUrlPrefix}}/img/logo-lg.png", |
||||
"type": "image/png", |
||||
"sizes": "880x880" |
||||
}, |
||||
{ |
||||
"src": "{{StaticUrlPrefix}}/img/logo-sm.png", |
||||
"type": "image/png", |
||||
"sizes": "120x120" |
||||
}, |
||||
{ |
||||
"src": "{{StaticUrlPrefix}}/img/logo-512.png", |
||||
"type": "image/png", |
||||
"sizes": "512x512" |
||||
}, |
||||
{ |
||||
"src": "{{StaticUrlPrefix}}/img/logo-192.png", |
||||
"type": "image/png", |
||||
"sizes": "192x192" |
||||
} |
||||
], |
||||
"start_url": "{{AppSubUrl}}/", |
||||
"scope": "{{AppSubUrl}}/", |
||||
"background_color": "#FAFAFA", |
||||
"display": "standalone", |
||||
"theme_color": "{{ThemeColorMetaTag}}" |
||||
} |
Loading…
Reference in new issue