-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
07b33a7
commit 2a50387
Showing
19 changed files
with
182 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<browserconfig> | ||
<msapplication> | ||
<tile> | ||
<square70x70logo src="/mstile-70x70.png?v=eEvNOAdjm7"/> | ||
<square150x150logo src="/mstile-150x150.png?v=eEvNOAdjm7"/> | ||
<square310x310logo src="/mstile-310x310.png?v=eEvNOAdjm7"/> | ||
<wide310x150logo src="/mstile-310x150.png?v=eEvNOAdjm7"/> | ||
<TileColor>#000000</TileColor> | ||
</tile> | ||
</msapplication> | ||
</browserconfig> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"name": "When is the next SpaceX launch", | ||
"short_name": "X Launch", | ||
"icons": [{ | ||
"src": "android-chrome-192x192.png?v=eEvNOAdjm7", | ||
"sizes": "192x192", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "android-chrome-512x512.png?v=eEvNOAdjm7", | ||
"sizes": "512x512", | ||
"type": "image/png" | ||
} | ||
], | ||
"theme_color": "#000000", | ||
"background_color": "#000000", | ||
"start_url": "index.html", | ||
"display": "standalone" | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
// Set this to true for production | ||
var doCache = false; | ||
|
||
// Name our cache | ||
var CACHE_NAME = 'whenisthenextspacexlaunch'; | ||
|
||
// Delete old caches that are not our current one! | ||
self.addEventListener("activate", event => { | ||
const cacheWhitelist = [CACHE_NAME]; | ||
event.waitUntil( | ||
caches.keys() | ||
.then(keyList => | ||
Promise.all(keyList.map(key => { | ||
if (!cacheWhitelist.includes(key)) { | ||
console.log('Deleting cache: ' + key) | ||
return caches.delete(key); | ||
} | ||
})) | ||
) | ||
); | ||
}); | ||
|
||
// The first time the user starts up the PWA, 'install' is triggered. | ||
self.addEventListener('install', function (event) { | ||
if (doCache) { | ||
event.waitUntil( | ||
caches.open(CACHE_NAME) | ||
.then(function (cache) { | ||
// Get the assets manifest so we can see what our js file is named | ||
// This is because webpack hashes it | ||
fetch("asset-manifest.json") | ||
.then(response => { | ||
response.json() | ||
}) | ||
.then(assets => { | ||
// Open a cache and cache our files | ||
// We want to cache the page and the main.js generated by webpack | ||
// We could also cache any static assets like CSS or images | ||
const urlsToCache = [ | ||
"/index.html", | ||
assets["app.js"], | ||
assets["ui.js"], | ||
assets["http.js"], | ||
assets["storage.js"], | ||
assets["style.css"] | ||
] | ||
cache.addAll(urlsToCache) | ||
console.log('cached'); | ||
}) | ||
}) | ||
); | ||
} | ||
}); | ||
|
||
// When the webpage goes to fetch files, we intercept that request and serve up the matching files | ||
// if we have them | ||
self.addEventListener('fetch', function (event) { | ||
if (doCache) { | ||
event.respondWith( | ||
caches.match(event.request).then(function (response) { | ||
return response || fetch(event.request); | ||
}) | ||
); | ||
} | ||
}); |
2 changes: 1 addition & 1 deletion
2
node_modules/gh-pages/.cache/github.com!warwickofthegh!whenisthenextspacexlaunch.com.git
Submodule github.com!warwickofthegh!whenisthenextspacexlaunch.com.git
updated
from 607f07 to b15777