Added initial PWA work
This commit is contained in:
parent
1de718526c
commit
0a97bef247
@ -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
13
views/manifest.json
Normal 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
|
||||
}
|
16
views/static/sw-toolbox.js
Normal file
16
views/static/sw-toolbox.js
Normal file
File diff suppressed because one or more lines are too long
1
views/sw.js
Normal file
1
views/sw.js
Normal file
@ -0,0 +1 @@
|
||||
importScripts('/static/sw-toolbox.js');
|
Loading…
Reference in New Issue
Block a user