summaryrefslogtreecommitdiffstats
path: root/templates/pwa/manifest_json.tmpl
diff options
context:
space:
mode:
authorSohnyBohny <sohny.bean@streber24.de>2018-11-27 16:18:26 +0100
committertechknowlogick <hello@techknowlogick.com>2018-11-27 10:18:26 -0500
commit294904321cb6de535237a6a156d5c4ec462bc117 (patch)
tree3b4c7bc1748a5b64de29d6efca37705b3071fc2b /templates/pwa/manifest_json.tmpl
parente09fe487734238708c2f9fc7c47dbb2132250400 (diff)
downloadgitea-294904321cb6de535237a6a156d5c4ec462bc117.tar.gz
gitea-294904321cb6de535237a6a156d5c4ec462bc117.zip
Create Progressive Web App (#4730)
* Create manifest and serviceworker * Create templates and add AppSubUrl * Add JSRenderer * fix ctx type * Add JSRenderer to static.go * Complete adding {{AppSubUrl}} * Add more fonts to urlsToCache * Add 512px and 192px icons * Hardcode font MD5 * Default theme doesn't have a specific CSS file
Diffstat (limited to 'templates/pwa/manifest_json.tmpl')
-rw-r--r--templates/pwa/manifest_json.tmpl31
1 files changed, 31 insertions, 0 deletions
diff --git a/templates/pwa/manifest_json.tmpl b/templates/pwa/manifest_json.tmpl
new file mode 100644
index 0000000000..557bee5d76
--- /dev/null
+++ b/templates/pwa/manifest_json.tmpl
@@ -0,0 +1,31 @@
+{
+ "short_name": "Gitea",
+ "name": "Gitea - Git with a cup of tea",
+ "icons": [
+ {
+ "src": "{{AppSubUrl}}/img/gitea-lg.png",
+ "type": "image/png",
+ "sizes": "880x880"
+ },
+ {
+ "src": "{{AppSubUrl}}/img/gitea-sm.png",
+ "type": "image/png",
+ "sizes": "120x120"
+ },
+ {
+ "src": "{{AppSubUrl}}/img/gitea-512.png",
+ "type": "image/png",
+ "sizes": "512x512"
+ },
+ {
+ "src": "{{AppSubUrl}}/img/gitea-192.png",
+ "type": "image/png",
+ "sizes": "192x192"
+ }
+ ],
+ "start_url": "{{AppSubUrl}}/",
+ "scope": "{{AppSubUrl}}/",
+ "background_color": "#FAFAFA",
+ "display": "standalone",
+ "theme_color": "{{ThemeColorMetaTag}}"
+ } \ No newline at end of file