Skip to content

Commit

Permalink
Deploying to gh-pages from @ ab40c10 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
c-git committed Jan 10, 2024
0 parents commit 5f3d371
Show file tree
Hide file tree
Showing 10 changed files with 60 additions and 0 deletions.
1 change: 1 addition & 0 deletions eframe_template-1559fbcc78737c80.js

Large diffs are not rendered by default.

Binary file added eframe_template-1559fbcc78737c80_bg.wasm
Binary file not shown.
Binary file added favicon-f402c8741ce815ec.ico
Binary file not shown.
Binary file added icon-1024.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 icon-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 icon_ios_touch_192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<!doctype html><meta content="text/html; charset=utf-8" http-equiv=Content-Type><meta content="width=device-width,initial-scale=1.0,user-scalable=no" name=viewport><title>eframe template</title><script type=module>
import init, * as bindings from '/log-viewer/eframe_template-1559fbcc78737c80.js';
init('/log-viewer/eframe_template-1559fbcc78737c80_bg.wasm');
window.wasmBindings = bindings;

</script><base href=/log-viewer/><link href=/log-viewer/favicon-f402c8741ce815ec.ico integrity=sha384-jNOAE6jgE03LznIulCTVP6BH4NrTuROFjP9wj8bV1UUMJKtZAvstFpIAP3PDcFpx rel=icon><link href=manifest.json rel=manifest><link href=icon_ios_touch_192.png rel=apple-touch-icon><meta media="(prefers-color-scheme: light)" content=white name=theme-color><meta media="(prefers-color-scheme: dark)" content=#404040 name=theme-color><style>html{touch-action:manipulation}body{background:#909090}@media (prefers-color-scheme: dark){body{background:#404040}}body,html{overflow:hidden;margin:0!important;padding:0!important;height:100%;width:100%}canvas{margin-right:auto;margin-left:auto;display:block;position:absolute;top:0%;left:50%;transform:translate(-50%,0%)}.centered{margin-right:auto;margin-left:auto;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#f0f0f0;font-size:24px;font-family:Ubuntu-Light,Helvetica,sans-serif;text-align:center}.lds-dual-ring{display:inline-block;width:24px;height:24px}.lds-dual-ring:after {content:" ";display:block;width:24px;height:24px;margin:0;border-radius:50%;border:3px solid #fff;border-color:#fff;animation:lds-dual-ring 1.2s linear infinite}@keyframes lds-dual-ring{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}</style><link as=fetch crossorigin href=/log-viewer/eframe_template-1559fbcc78737c80_bg.wasm integrity=sha384-Gd1Ceqy9QqXRgbiNd1U4EPL2serY1mSDKT9TchuIA-SCAyeTtTsqepR6lX6GQU9o rel=preload type=application/wasm><link crossorigin href=/log-viewer/eframe_template-1559fbcc78737c80.js integrity=sha384-L_wKVBKlR-PfuVHzpy35OCHau0pm7dH4mSM8X5EDGvL10xGYOSQ7c0DR7ovIbI58 rel=modulepreload></head><body><canvas id=the_canvas_id></canvas><script>if('serviceWorker' in navigator&&window.location.hash!=="#dev"){window.addEventListener('load',function(){navigator.serviceWorker.register('sw.js')})}</script></body></html>
28 changes: 28 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "egui Template PWA",
"short_name": "egui-template-pwa",
"icons": [
{
"src": "./icon-256.png",
"sizes": "256x256",
"type": "image/png"
},
{
"src": "./maskable_icon_x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any maskable"
},
{
"src": "./icon-1024.png",
"sizes": "1024x1024",
"type": "image/png"
}
],
"lang": "en-US",
"id": "/index.html",
"start_url": "./index.html",
"display": "standalone",
"background_color": "white",
"theme_color": "white"
}
Binary file added maskable_icon_x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions sw.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
var cacheName = 'egui-template-pwa';
var filesToCache = [
'./',
'./index.html',
'./eframe_template.js',
'./eframe_template_bg.wasm',
];

/* Start the service worker and cache all of the app's content */
self.addEventListener('install', function (e) {
e.waitUntil(
caches.open(cacheName).then(function (cache) {
return cache.addAll(filesToCache);
})
);
});

/* Serve cached content when offline */
self.addEventListener('fetch', function (e) {
e.respondWith(
caches.match(e.request).then(function (response) {
return response || fetch(e.request);
})
);
});

0 comments on commit 5f3d371

Please sign in to comment.