Skip to content

Commit

Permalink
snap4arduino pwa configured
Browse files Browse the repository at this point in the history
  • Loading branch information
jguille2 committed Jan 7, 2022
1 parent 66aaad0 commit 32fe059
Show file tree
Hide file tree
Showing 13 changed files with 839 additions and 0 deletions.
Binary file added src/platforms/web/chromium/root/img/app_120.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/platforms/web/chromium/root/img/app_128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/platforms/web/chromium/root/img/app_144.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/platforms/web/chromium/root/img/app_152.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/platforms/web/chromium/root/img/app_192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/platforms/web/chromium/root/img/app_256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/platforms/web/chromium/root/img/app_384.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/platforms/web/chromium/root/img/app_512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/platforms/web/chromium/root/img/app_72.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/platforms/web/chromium/root/img/app_96.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions src/platforms/web/chromium/root/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Snap4Arduino @AppVersion</title>
<link rel="icon" href="s4a.ico" type="image/ico">
<link rel="manifest" href="manifest.json">
<link rel="apple-touch-icon" href="img/app_152.png">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="white"/>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="Snap4Arduino">
<meta name="msapplication-TileImage" content="img/app_144.png">
<meta name="msapplication-TileColor" content="#FFFFFF">
<script>
require = function () {};
</script>
Expand Down Expand Up @@ -52,6 +61,9 @@
ide;

window.onload = function () {
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('sw.js');
}
world = new WorldMorph(document.getElementById('world'));

// keepAlive should be handled at the plugin side
Expand Down
51 changes: 51 additions & 0 deletions src/platforms/web/chromium/root/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"name": "Snap4Arduino",
"short_name": "Snap4Arduino",
"icons": [{
"src": "img/app_72.png",
"sizes": "72x72",
"type": "image/png"
}, {
"src": "img/app_96.png",
"sizes": "96x96",
"type": "image/png"
}, {
"src": "img/app_120.png",
"sizes": "120x120",
"type": "image/png"
}, {
"src": "img/app_128.png",
"sizes": "128x128",
"type": "image/png"
}, {
"src": "img/app_144.png",
"sizes": "144x144",
"type": "image/png"
}, {
"src": "img/app_152.png",
"sizes": "152x152",
"type": "image/png"
}, {
"src": "img/app_192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "any maskable"
}, {
"src": "img/app_256.png",
"sizes": "256x256",
"type": "image/png"
}, {
"src": "img/app_384.png",
"sizes": "384x384",
"type": "image/png"
}, {
"src": "img/app_512.png",
"sizes": "512x512",
"type": "image/png"
}],
"lang": "en-US",
"start_url": "./index.html",
"display": "standalone",
"background_color": "white",
"theme_color": "white"
}
Loading

0 comments on commit 32fe059

Please sign in to comment.