Skip to content

Commit

Permalink
Deploying to gh-pages from @ 81c7ffc 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
Colonial-Dev committed Apr 29, 2024
0 parents commit e8379d2
Show file tree
Hide file tree
Showing 9 changed files with 71 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Cargo Comprehensive

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build
- name: Run tests
run: cargo test
1 change: 1 addition & 0 deletions deduct-78ecbacb14b798b8.js

Large diffs are not rendered by default.

Binary file added deduct-78ecbacb14b798b8_bg.wasm
Binary file not shown.
Binary file added favicon-d795f1a8ca954c62.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.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!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>Deduct</title><script type=module>import a,*as b from"https://colonial-dev.github.io/deduct/deduct-78ecbacb14b798b8.js";a(`https://colonial-dev.github.io/deduct/deduct-78ecbacb14b798b8_bg.wasm`);window.wasmBindings=b</script><base href=https://colonial-dev.github.io/deduct/><link href=https://colonial-dev.github.io/deduct/favicon-d795f1a8ca954c62.ico integrity=sha384-AkVOpXU3prm3sPXtzIr7u/anUgwKJ9SSAV4NdvDH2nXTMsOToHcdufCY8cPf75rs rel=icon><link href=manifest.json rel=manifest><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}}html,body{width:100%;height:100%;overflow:hidden;margin:0!important;padding:0!important}canvas{margin-left:auto;margin-right:auto;display:block;position:absolute;top:0%;left:50%;transform:translate(-50%)}.centered{color:#f0f0f0;text-align:center;margin-left:auto;margin-right:auto;font-family:Ubuntu-Light,Helvetica,sans-serif;font-size:24px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.lds-dual-ring{width:24px;height:24px;display:inline-block}.lds-dual-ring:after{content:" ";border:3px solid #fff;border-color:#fff #0000;border-radius:50%;width:24px;height:24px;margin:0;animation:1.2s linear infinite lds-dual-ring;display:block}@keyframes lds-dual-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}</style><link crossorigin href=https://colonial-dev.github.io/deduct/deduct-78ecbacb14b798b8.js integrity=sha384-Qqhzm2ZfQAp/B+oU5B+OrVt6JYK7qe7jCwy/qz8+LmoIMwnOObUHqbytumwdIhD7 rel=modulepreload><link as=fetch crossorigin href=https://colonial-dev.github.io/deduct/deduct-78ecbacb14b798b8_bg.wasm integrity=sha384-IQtBiMZiiallfn4DNLiW87hdsjRt0Re+d6J3F5VKhAbYCTM2eZNS1Uw5xqsdDmQ8 rel=preload type=application/wasm></head><body><canvas id=the_canvas_id></canvas><script>if(`serviceWorker` in navigator&&window.location.hash!==`#dev`){window.addEventListener(`load`,(()=>{navigator.serviceWorker.register(`sw.js`)}))}</script></body></html>
22 changes: 22 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "Deduct",
"short_name": "deduct",
"icons": [
{
"src": "./icon-256.png",
"sizes": "256x256",
"type": "image/png"
},
{
"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"
}
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',
'./deduct.js',
'./deduct_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 e8379d2

Please sign in to comment.