-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Remove obsolete Root Page
- Loading branch information
Tim Hofmann
committed
Jul 1, 2020
1 parent
c24cebc
commit a9e863b
Showing
14 changed files
with
136 additions
and
31 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
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<_LastSelectedProfileId>D:\Programmierung\VB.NET & C#\Diverse Projekte\LAPS-WebUI\Properties\PublishProfiles\Linux x64.pubxml</_LastSelectedProfileId> | ||
<_LastSelectedProfileId>D:\Programmierung\VB.NET & C#\Diverse Projekte\LAPS-WebUI\Properties\PublishProfiles\Windows x64.pubxml</_LastSelectedProfileId> | ||
<ShowAllFiles>false</ShowAllFiles> | ||
</PropertyGroup> | ||
</Project> |
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
This file was deleted.
Oops, something went wrong.
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.
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,9 @@ | ||
if ('serviceWorker' in navigator) { | ||
window.addEventListener('load', function () { | ||
navigator.serviceWorker.register('/sw.js', { scope: '/' }).then(function (registration) { | ||
console.log('Service worker successfully registered on scope', registration.scope); | ||
}).catch(function (error) { | ||
console.log('Service worker failed to register'); | ||
}); | ||
}); | ||
} |
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,38 @@ | ||
const staticCacheName = 'LAPSWebUI'; | ||
const assets = [ | ||
'/', | ||
'/laps', | ||
'/ressources/js/helper.js', | ||
'/ressources/images/*.png', | ||
'/ressources/bootstrap/css/bootstrap.min.css', | ||
'/ressources/bootstrap/js/popper.min.js', | ||
'/ressources/bootstrap/js/bootstrap.min.js', | ||
'/ressources/clipboardjs/js/clipboard.min.js', | ||
'/ressources/fontawesome/css/all.min.css', | ||
'/ressources/fontawesome/webfonts/*.(svg|ttf|woff|woff2)', | ||
];// install event | ||
self.addEventListener('install', evt => { | ||
evt.waitUntil( | ||
caches.open(staticCacheName).then((cache) => { | ||
console.log('caching shell assets'); | ||
cache.addAll(assets); | ||
}) | ||
); | ||
});// activate event | ||
self.addEventListener('activate', evt => { | ||
evt.waitUntil( | ||
caches.keys().then(keys => { | ||
return Promise.all(keys | ||
.filter(key => key !== staticCacheName) | ||
.map(key => caches.delete(key)) | ||
); | ||
}) | ||
); | ||
});// fetch event | ||
self.addEventListener('fetch', evt => { | ||
evt.respondWith( | ||
caches.match(evt.request).then(cacheRes => { | ||
return cacheRes || fetch(evt.request); | ||
}) | ||
); | ||
}); |
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,36 @@ | ||
{ | ||
"name": "LAPS WebUI", | ||
"short_name": "LAPSUI", | ||
"start_url": "/", | ||
"lang": "en-US", | ||
"background_color": "#F4F4F4", | ||
"theme_color": "#F4F4F4", | ||
"display": "standalone", | ||
"icons": [ | ||
{ | ||
"src": "/ressources/images/logo-72x72.png", | ||
"type": "image/png", | ||
"sizes": "72x72" | ||
}, | ||
{ | ||
"src": "/ressources/images/logo-96x96.png", | ||
"type": "image/png", | ||
"sizes": "96x96" | ||
}, | ||
{ | ||
"src": "/ressources/images/logo-128x128.png", | ||
"type": "image/png", | ||
"sizes": "128x128" | ||
}, | ||
{ | ||
"src": "/ressources/images/logo-192x192.png", | ||
"type": "image/png", | ||
"sizes": "192x192" | ||
}, | ||
{ | ||
"src": "/ressources/images/logo-512x512.png", | ||
"type": "image/png", | ||
"sizes": "512x512" | ||
} | ||
] | ||
} |