Update prettier settings
This commit is contained in:
@@ -1,104 +1,104 @@
|
||||
{
|
||||
"name": "OwlBoard",
|
||||
"short_name": "OwlBoard",
|
||||
"start_url": "/",
|
||||
"scope": "/",
|
||||
"display": "standalone",
|
||||
"background_color": "#404c55",
|
||||
"description": "Get instant access to live train data, PIS codes, and location reference codes. Built by railway staff, for railway staff – your fastest route to accurate information.",
|
||||
"categories": "travel,utilities",
|
||||
"lang": "en",
|
||||
"orientation": "portrait",
|
||||
"theme_color": "#00b7b7",
|
||||
"icons": [
|
||||
{
|
||||
"src": "/images/app-icons/maskable/mask-icon.svg",
|
||||
"sizes": "any",
|
||||
"type": "image/svg+xml",
|
||||
"purpose": "maskable"
|
||||
},
|
||||
{
|
||||
"src": "/images/app-icons/any/plain-logo.svg",
|
||||
"sizes": "any",
|
||||
"type": "image/svg+xml",
|
||||
"purpose": "any"
|
||||
},
|
||||
{
|
||||
"src": "/images/app-icons/any/plain-logo-512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png",
|
||||
"purpose": "any"
|
||||
}
|
||||
],
|
||||
"screenshots": [
|
||||
{
|
||||
"src": "/images/screenshots/narrow-home.png",
|
||||
"type": "image/png",
|
||||
"sizes": "720x1480",
|
||||
"form_factor": "narrow",
|
||||
"label": "Homescreen of OwlBoard"
|
||||
},
|
||||
{
|
||||
"src": "/images/screenshots/narrow-ldbs.png",
|
||||
"type": "image/png",
|
||||
"sizes": "720x1480",
|
||||
"form_factor": "narrow",
|
||||
"label": "Live rail departure boards"
|
||||
},
|
||||
{
|
||||
"src": "/images/screenshots/narrow-timetable.png",
|
||||
"type": "image/png",
|
||||
"sizes": "720x1480",
|
||||
"form_factor": "narrow",
|
||||
"label": "Train details and PIS Codes"
|
||||
},
|
||||
{
|
||||
"src": "/images/screenshots/wide-home.png",
|
||||
"type": "image/png",
|
||||
"sizes": "2560x1600",
|
||||
"form_factor": "wide",
|
||||
"label": "Homescreen of OwlBoard"
|
||||
},
|
||||
{
|
||||
"src": "/images/screenshots/wide-ldbs.png",
|
||||
"type": "image/png",
|
||||
"sizes": "2560x1600",
|
||||
"form_factor": "wide",
|
||||
"label": "Live rail departure boards"
|
||||
},
|
||||
{
|
||||
"src": "/images/screenshots/wide-timetable.png",
|
||||
"type": "image/png",
|
||||
"sizes": "2560x1600",
|
||||
"form_factor": "wide",
|
||||
"label": "Train details and PIS Codes"
|
||||
}
|
||||
],
|
||||
"shortcuts": [
|
||||
{
|
||||
"name": "Location Reference",
|
||||
"short_name": "Loc Reference",
|
||||
"description": "Lookup location reference data about the UK Rail network",
|
||||
"url": "/more/corpus",
|
||||
"icons": [
|
||||
"name": "OwlBoard",
|
||||
"short_name": "OwlBoard",
|
||||
"start_url": "/",
|
||||
"scope": "/",
|
||||
"display": "standalone",
|
||||
"background_color": "#404c55",
|
||||
"description": "Get instant access to live train data, PIS codes, and location reference codes. Built by railway staff, for railway staff – your fastest route to accurate information.",
|
||||
"categories": "travel,utilities",
|
||||
"lang": "en",
|
||||
"orientation": "portrait",
|
||||
"theme_color": "#00b7b7",
|
||||
"icons": [
|
||||
{
|
||||
"src": "/images/shortcuts/location_ref.png",
|
||||
"sizes": "96x96",
|
||||
"type": "image/png"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Settings",
|
||||
"description": "Your OwlBoard settings",
|
||||
"url": "/more/settings",
|
||||
"icons": [
|
||||
"src": "/images/app-icons/maskable/mask-icon.svg",
|
||||
"sizes": "any",
|
||||
"type": "image/svg+xml",
|
||||
"purpose": "maskable"
|
||||
},
|
||||
{
|
||||
"src": "/images/shortcuts/cog.png",
|
||||
"sizes": "96x96",
|
||||
"type": "image/png"
|
||||
"src": "/images/app-icons/any/plain-logo.svg",
|
||||
"sizes": "any",
|
||||
"type": "image/svg+xml",
|
||||
"purpose": "any"
|
||||
},
|
||||
{
|
||||
"src": "/images/app-icons/any/plain-logo-512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png",
|
||||
"purpose": "any"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
],
|
||||
"screenshots": [
|
||||
{
|
||||
"src": "/images/screenshots/narrow-home.png",
|
||||
"type": "image/png",
|
||||
"sizes": "720x1480",
|
||||
"form_factor": "narrow",
|
||||
"label": "Homescreen of OwlBoard"
|
||||
},
|
||||
{
|
||||
"src": "/images/screenshots/narrow-ldbs.png",
|
||||
"type": "image/png",
|
||||
"sizes": "720x1480",
|
||||
"form_factor": "narrow",
|
||||
"label": "Live rail departure boards"
|
||||
},
|
||||
{
|
||||
"src": "/images/screenshots/narrow-timetable.png",
|
||||
"type": "image/png",
|
||||
"sizes": "720x1480",
|
||||
"form_factor": "narrow",
|
||||
"label": "Train details and PIS Codes"
|
||||
},
|
||||
{
|
||||
"src": "/images/screenshots/wide-home.png",
|
||||
"type": "image/png",
|
||||
"sizes": "2560x1600",
|
||||
"form_factor": "wide",
|
||||
"label": "Homescreen of OwlBoard"
|
||||
},
|
||||
{
|
||||
"src": "/images/screenshots/wide-ldbs.png",
|
||||
"type": "image/png",
|
||||
"sizes": "2560x1600",
|
||||
"form_factor": "wide",
|
||||
"label": "Live rail departure boards"
|
||||
},
|
||||
{
|
||||
"src": "/images/screenshots/wide-timetable.png",
|
||||
"type": "image/png",
|
||||
"sizes": "2560x1600",
|
||||
"form_factor": "wide",
|
||||
"label": "Train details and PIS Codes"
|
||||
}
|
||||
],
|
||||
"shortcuts": [
|
||||
{
|
||||
"name": "Location Reference",
|
||||
"short_name": "Loc Reference",
|
||||
"description": "Lookup location reference data about the UK Rail network",
|
||||
"url": "/more/corpus",
|
||||
"icons": [
|
||||
{
|
||||
"src": "/images/shortcuts/location_ref.png",
|
||||
"sizes": "96x96",
|
||||
"type": "image/png"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Settings",
|
||||
"description": "Your OwlBoard settings",
|
||||
"url": "/more/settings",
|
||||
"icons": [
|
||||
{
|
||||
"src": "/images/shortcuts/cog.png",
|
||||
"sizes": "96x96",
|
||||
"type": "image/png"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
26
static/sw.js
26
static/sw.js
@@ -1,17 +1,17 @@
|
||||
// Remove the service worker /sw.js from legacy installations
|
||||
// This should then enable the new /service-worker.js to be installed
|
||||
|
||||
self.addEventListener('activate', function (e) {
|
||||
console.log(`Unregistering service worker`);
|
||||
self.registration
|
||||
.unregister()
|
||||
.then(function () {
|
||||
return self.clients.matchAll();
|
||||
})
|
||||
.then(function (clients) {
|
||||
clients.forEach((client) => {
|
||||
console.log(`Navigating ${client.url}`);
|
||||
client.navigate(client.url);
|
||||
});
|
||||
});
|
||||
self.addEventListener("activate", function (e) {
|
||||
console.log(`Unregistering service worker`);
|
||||
self.registration
|
||||
.unregister()
|
||||
.then(function () {
|
||||
return self.clients.matchAll();
|
||||
})
|
||||
.then(function (clients) {
|
||||
clients.forEach((client) => {
|
||||
console.log(`Navigating ${client.url}`);
|
||||
client.navigate(client.url);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user