Added initial PWA work

This commit is contained in:
Marcus Noble 2020-11-08 19:24:55 +00:00
parent 1de718526c
commit 0a97bef247
4 changed files with 41 additions and 0 deletions

View File

@ -4,6 +4,17 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Gopherss</title>
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- <link rel="apple-touch-icon" href="static/icon.png"> -->
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="manifest" href="/manifest.json">
<script>
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/sw.js');
}
</script>
<script src="/static/feed-item.js" defer></script>
<script src="https://unpkg.com/vue@2.5.17/dist/vue.min.js"></script>

13
views/manifest.json Normal file
View File

@ -0,0 +1,13 @@
{
"name": "Gopherss",
"short_name": "Gopherss",
"description": "RSS reader built in Go",
"theme_color": "#282626",
"background_color": "#282626",
"display": "standalone",
"scope": "/",
"start_url": "/",
"icons": [
],
"splash_pages": null
}

File diff suppressed because one or more lines are too long

1
views/sw.js Normal file
View File

@ -0,0 +1 @@
importScripts('/static/sw-toolbox.js');