Gaëtan de Villèle commited on
Commit
9bc7cb7
1 Parent(s): 92aed1b
Files changed (8) hide show
  1. app-logo.svg +0 -9
  2. cubzh.data +0 -3
  3. cubzh.html +80 -1
  4. cubzh.js +0 -0
  5. cubzh.wasm +0 -3
  6. cubzh.worker.js +0 -1
  7. monogram_extended.ttf +0 -0
  8. style.css +0 -28
app-logo.svg DELETED
cubzh.data DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:ad65e6fb7639d33ebd6a5ce0a996a041590006e3442c4f86934e8b1aca8b72bb
3
- size 5394129
 
 
 
 
cubzh.html CHANGED
@@ -1 +1,80 @@
1
- <!doctypehtml><html lang=en-us style=width:100%;height:100%><head><meta charset=utf-8><meta content="text/html; charset=utf-8"http-equiv=Content-Type><title>Cubzh</title><style>@font-face{font-family:monogram_extended;src:url('monogram_extended.ttf') format('truetype');font-weight:400;font-style:normal}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}html{font-family:monogram_extended,monospace;vertical-align:baseline;background-color:#333}body{width:100%;height:100%;background-color:#333}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:'';content:none}table{border-collapse:collapse;border-spacing:0}*{padding:0;margin:0}.emscripten{padding-right:0;margin-left:auto;margin-right:auto;display:block}textarea.emscripten{font-family:monospace;width:80%}div.emscripten{text-align:center}canvas.emscripten{border:0 none;background-color:#0f0f0f;width:100%;height:100%}p{font-size:32pt}h2{font-weight:400;font-size:48pt;margin-bottom:20px}div#message{width:100%;height:100%;position:absolute;top:0;left:0;display:flex;justify-content:center;align-items:center}div#message div{text-align:center;padding:20px;color:#e5e5e5;background-color:transparent}div#message div a{color:#fff;display:inline}div#message div a.linkBtn{font-size:76px;display:block;text-align:center;padding:20px;text-decoration:none;color:#222;background-color:#fff;box-shadow:0 2px 0 rgba(0,0,0,.3),2px 4px 1px rgba(0,0,0,.3);margin-bottom:20px}div#message div a.linkBtn:last-child{margin-bottom:0}div#message img{width:auto;height:100px;display:inline-block;margin-bottom:20px}</style></head><body><div id=message><div><img src=app-logo.svg><h2 id=message_title>Loading<span id=dot1>.</span><span id=dot2>.</span><span id=dot3>.</span></h2><p id=message_content></p></div></div><div id=android style=display:none><img src=app-logo.svg><p id=android_title>Want to play on Android? 🙂</p><p id=android_content><a href="https://play.google.com/store/apps/details?id=com.voxowl.pcubes.android"class=linkBtn>Get on Play Store</a><a href=https://app.cu.bzh/ class=linkBtn>Open in app</a></p></div><div id=ios style=display:none><img src=app-logo.svg><p id=ios_title>Want to play on iOS? 🙂</p><p id=ios_content><a href=https://testflight.apple.com/join/7iMxzKht class=linkBtn>Get on TestFlight</a><a href=https://app.cu.bzh/ class=linkBtn>Open in app</a></p></div><div id=browser style=display:none><img src=app-logo.svg><p id=browser_title>Web browser not supported 😱</p><p id=browser_content>We recommend using <a href=https://www.google.com/intl/en_en/chrome/ >Google Chrome</a> or <a href=https://www.mozilla.org/en-US/firefox/new/ >Mozilla Firefox</a>.</p></div><div style=width:100%;height:100%><canvas class=emscripten id=canvas oncontextmenu=event.preventDefault() tabindex=-1></canvas><textarea aria-hidden=true id=clipboard style=width:0;height:0;border:0;position:fixed></textarea></div><script>var loadingIndicator=document.getElementById("message"),msgTitle=document.getElementById("message_title"),dots=[document.getElementById("dot1"),document.getElementById("dot2"),document.getElementById("dot3")],msgContent=document.getElementById("message_content");t=0;const loadingTick=setInterval((function(){for(t++,t>3&&(t=0),i=0;i<3;i++)dots[i].style.opacity=i<t?"1.0":"0.1"}),100);function isWebBrowserSupported(){return-1!=navigator.userAgent.indexOf("Chrome")||-1!=navigator.userAgent.indexOf("Firefox")||-1!=navigator.userAgent.indexOf("Safari")}function isIOS(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function showAndroidLinks(){msgTitle.innerHTML=document.getElementById("android_title").innerHTML,msgContent.innerHTML=document.getElementById("android_content").innerHTML}function showIOSMessage(){msgTitle.innerHTML=document.getElementById("ios_title").innerHTML,msgContent.innerHTML=document.getElementById("ios_content").innerHTML}function showBrowserSupportMessage(){msgTitle.innerHTML=document.getElementById("browser_title").innerHTML,msgContent.innerHTML=document.getElementById("browser_content").innerHTML}function initAndMountFS(){return new Promise((function(e,n){FS.mkdir("/storage"),FS.mount(IDBFS,{},"/storage"),FS.mkdir("/storage/cache"),FS.mount(IDBFS,{},"/storage/cache"),FS.mkdir("/storage/screenshots"),FS.mount(IDBFS,{},"/storage/screenshots"),FS.mkdir("/storage/thumbs"),FS.mount(IDBFS,{},"/storage/thumbs"),FS.mkdir("/storage/exports"),FS.mount(IDBFS,{},"/storage/exports");FS.syncfs(!0,(function(n){e(n)}))}))}var Module={preInit:[async function(){let e=await initAndMountFS();console.log("[Cubzh][FS] initAndMountFS: ",null==e?"OK":"ERROR ("+e+")")}],preRun:[],postRun:[],print:void 0,printErr:function(e){arguments.length>1&&(e=Array.prototype.slice.call(arguments).join(" ")),console.error(e)},canvas:function(){var e=document.getElementById("canvas");return e.addEventListener("webglcontextlost",(function(e){alert("WebGL context lost. You will need to reload the page."),e.preventDefault()}),!1),e}(),hideLoadingIndicator:function(){clearInterval(loadingTick),loadingIndicator.style.display="none"}};function launch(){if(navigator.userAgent.toLowerCase().includes("android"))return clearInterval(loadingTick),void showAndroidLinks();if(isIOS())return clearInterval(loadingTick),void showIOSMessage();if(0==isWebBrowserSupported())return clearInterval(loadingTick),void showBrowserSupportMessage();var e=document.createElement("script");e.type="text/javascript",e.src="cubzh.js",e.async=!0,document.getElementsByTagName("script")[0].parentNode.appendChild(e)}window.onerror=function(e,n,t,o,r){"number"==typeof r?Module.printErr("[Error "+r+" message] "+Module.getExceptionMessage(r)):Module.printErr(e)},launch()</script></body></html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Wrapper</title>
7
+ <style>
8
+ body, html {
9
+ margin: 0;
10
+ padding: 0;
11
+ height: 100%;
12
+ overflow: hidden;
13
+ }
14
+
15
+ .fullscreen-iframe {
16
+ position: absolute;
17
+ top: 0;
18
+ left: 0;
19
+ width: 100%;
20
+ height: 100%;
21
+ }
22
+
23
+ iframe {
24
+ width: 100%;
25
+ height: 100%;
26
+ }
27
+ </style>
28
+ </head>
29
+
30
+ <body>
31
+ <div class="fullscreen-iframe">
32
+ <iframe
33
+ src="https://app.cu.bzh"
34
+ frameborder="0"
35
+ allowfullscreen
36
+ crossorigin
37
+ credentialless
38
+ allow="cross-origin-isolated">
39
+ </iframe>
40
+ </div>
41
+ </body>
42
+
43
+ <!-- <body>
44
+
45
+ <h1>Wrapper</h1>
46
+
47
+ <iframe
48
+ src="http://localhost:3000"
49
+ crossorigin
50
+ allow="cross-origin-isolated">
51
+ </iframe>
52
+
53
+ <iframe
54
+ src="https://app.cu.bzh"
55
+ crossorigin
56
+ credentialless
57
+ allow="cross-origin-isolated"
58
+ width="480px"
59
+ height="360px">
60
+ </iframe>
61
+
62
+ <script>
63
+ document.addEventListener('DOMContentLoaded', function() {
64
+ var resultElement = document.createElement('p');
65
+ var featureCheckResult;
66
+
67
+ if (typeof SharedArrayBuffer !== 'undefined') {
68
+ featureCheckResult = 'SharedArrayBuffers are supported in this browser. ✅';
69
+ } else {
70
+ featureCheckResult = 'SharedArrayBuffers are not supported in this browser. ❌';
71
+ }
72
+
73
+ resultElement.textContent = featureCheckResult;
74
+ document.body.appendChild(resultElement);
75
+ });
76
+ </script>
77
+
78
+ </body> -->
79
+
80
+ </html>
cubzh.js DELETED
The diff for this file is too large to render. See raw diff
 
cubzh.wasm DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:a7172bca54b799b5c02cb79522739268fc31a979e966a9408f89543a85217ba2
3
- size 5220799
 
 
 
 
cubzh.worker.js DELETED
@@ -1 +0,0 @@
1
- "use strict";var Module={};var ENVIRONMENT_IS_NODE=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string";if(ENVIRONMENT_IS_NODE){var nodeWorkerThreads=require("worker_threads");var parentPort=nodeWorkerThreads.parentPort;parentPort.on("message",data=>onmessage({data:data}));var fs=require("fs");Object.assign(global,{self:global,require:require,Module:Module,location:{href:__filename},Worker:nodeWorkerThreads.Worker,importScripts:function(f){(0,eval)(fs.readFileSync(f,"utf8")+"//# sourceURL="+f)},postMessage:function(msg){parentPort.postMessage(msg)},performance:global.performance||{now:function(){return Date.now()}}})}var initializedJS=false;function threadPrintErr(){var text=Array.prototype.slice.call(arguments).join(" ");if(ENVIRONMENT_IS_NODE){fs.writeSync(2,text+"\n");return}console.error(text)}function threadAlert(){var text=Array.prototype.slice.call(arguments).join(" ");postMessage({cmd:"alert",text:text,threadId:Module["_pthread_self"]()})}var err=threadPrintErr;self.alert=threadAlert;Module["instantiateWasm"]=(info,receiveInstance)=>{var module=Module["wasmModule"];Module["wasmModule"]=null;var instance=new WebAssembly.Instance(module,info);return receiveInstance(instance)};self.onunhandledrejection=e=>{throw e.reason??e};function handleMessage(e){try{if(e.data.cmd==="load"){let messageQueue=[];self.onmessage=e=>messageQueue.push(e);self.startWorker=instance=>{postMessage({"cmd":"loaded"});for(let msg of messageQueue){handleMessage(msg)}self.onmessage=handleMessage};Module["wasmModule"]=e.data.wasmModule;for(const handler of e.data.handlers){Module[handler]=function(){postMessage({cmd:"callHandler",handler:handler,args:[...arguments]})}}Module["wasmMemory"]=e.data.wasmMemory;Module["buffer"]=Module["wasmMemory"].buffer;Module["ENVIRONMENT_IS_PTHREAD"]=true;if(typeof e.data.urlOrBlob=="string"){importScripts(e.data.urlOrBlob)}else{var objectUrl=URL.createObjectURL(e.data.urlOrBlob);importScripts(objectUrl);URL.revokeObjectURL(objectUrl)}}else if(e.data.cmd==="run"){Module["__emscripten_thread_init"](e.data.pthread_ptr,0,0,1);Module["__emscripten_thread_mailbox_await"](e.data.pthread_ptr);Module["establishStackSpace"]();Module["PThread"].receiveObjectTransfer(e.data);Module["PThread"].threadInitTLS();if(!initializedJS){Module["__embind_initialize_bindings"]();initializedJS=true}try{Module["invokeEntryPoint"](e.data.start_routine,e.data.arg)}catch(ex){if(ex!="unwind"){throw ex}}}else if(e.data.cmd==="cancel"){if(Module["_pthread_self"]()){Module["__emscripten_thread_exit"](-1)}}else if(e.data.target==="setimmediate"){}else if(e.data.cmd==="checkMailbox"){if(initializedJS){Module["checkMailbox"]()}}else if(e.data.cmd){err("worker.js received unknown command "+e.data.cmd);err(e.data)}}catch(ex){if(Module["__emscripten_thread_crashed"]){Module["__emscripten_thread_crashed"]()}throw ex}}self.onmessage=handleMessage;
 
 
monogram_extended.ttf DELETED
Binary file (34.2 kB)
 
style.css DELETED
@@ -1,28 +0,0 @@
1
- body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
4
- }
5
-
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
9
- }
10
-
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
- }
17
-
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
- }
25
-
26
- .card p:last-child {
27
- margin-bottom: 0;
28
- }