Skip to content

Commit aea7335

Browse files
committed
deploy: 23e8b83
1 parent 53b1999 commit aea7335

9 files changed

Lines changed: 106 additions & 0 deletions

File tree

v1.0.0-works-for-me/ccons_expr/ccons_expr.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
1.31 MB
Binary file not shown.

v1.0.0-works-for-me/ccons_expr/coi-serviceworker.min.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<!doctypehtml><html lang=en><head><meta charset=UTF-8><meta content="width=device-width,initial-scale=1"name=viewport><title>ccons_expr</title><link href=https://cdn.jsdelivr.net/npm/water.css@2/out/water.min.css rel=stylesheet id=theme-stylesheet><link href=https://cdn.jsdelivr.net/npm/@xterm/xterm@6.0.0/css/xterm.css rel=stylesheet><style>body{max-width:1000px}header{text-align:center}fieldset{text-align:center;border:none}#terminal{margin:2rem auto;border:1px solid var(--border);border-radius:4px;overflow:hidden}#loading{text-align:center;padding:3rem 1rem}.spinner{border:4px solid var(--background-alt);border-top:4px solid var(--links);border-radius:50%;width:40px;height:40px;animation:spin 1s linear infinite;margin:0 auto 1rem}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}#error{display:none;background-color:#d32f2f;color:#fff;padding:1rem;border-radius:4px;margin-top:1rem}section{margin-top:2rem;padding:1.5rem;background-color:var(--background-alt);border-radius:4px}.hidden{display:none!important}</style></head><body><script src=coi-serviceworker.min.js></script><main><fieldset><label><input name=theme type=radio value=auto checked> Auto</label> <label><input name=theme type=radio value=light> Light</label> <label><input name=theme type=radio value=dark> Dark</label></fieldset><header><h1>ccons_expr</h1></header><div id=loading><div class=spinner></div><p>Loading ccons_expr...</p><p id=progress></p></div><div id=terminal class=hidden></div><div id=error></div><section><h3>Command-Line Arguments via URL</h3><p>Pass command-line arguments to the application using URL parameters:</p><strong>Conversion Rules:</strong><ul><li>• Single-character params → short flags: <code>?v</code><code>-v</code></li><li>• Multi-character params → long flags: <code>?version</code><code>--version</code></li><li>• Params with values: <code>?file=test.txt</code><code>--file test.txt</code></li><li>• Multiple params: <code>?v&help</code><code>-v --help</code></li></ul><strong>Examples:</strong><ul><li><code>intro.html?version</code></li><li><code>intro.html?h</code></li><li><code>intro.html?file=data.txt</code></li><li><code>intro.html?verbose&config=settings.json</code></li></ul></section></main><script>var Module={arguments:function(){const e=[];return new URLSearchParams(window.location.search).forEach(((n,t)=>{e.push((1===t.length?"-":"--")+t),n&&e.push(n)})),console.log("Module.arguments:",e),e}(),preRun:[],postRun:[],print:function(e){console.log(e)},printErr:function(e){console.error(e)},setStatus:function(e){var n=document.getElementById("progress");n&&(n.textContent=e||"")},totalDependencies:0,monitorRunDependencies:function(e){this.totalDependencies=Math.max(this.totalDependencies,e),e?Module.setStatus("Loading... ("+(this.totalDependencies-e)+"/"+this.totalDependencies+")"):Module.setStatus("")},onRuntimeInitialized:function(){console.log("WASM runtime initialized")}};Module.setStatus("Downloading...")</script><script type=importmap>{
2+
"imports": {
3+
"@xterm/xterm": "https://cdn.jsdelivr.net/npm/@xterm/xterm@6.0.0/+esm",
4+
"@xterm/addon-fit": "https://cdn.jsdelivr.net/npm/@xterm/addon-fit@0.11.0/+esm",
5+
"@xterm/addon-webgl": "https://cdn.jsdelivr.net/npm/@xterm/addon-webgl@0.18.0/+esm"
6+
}
7+
}</script><script type=module>import{Terminal}from"@xterm/xterm";import{FitAddon}from"@xterm/addon-fit";import{WebglAddon}from"@xterm/addon-webgl";var term=new Terminal({cols:80,rows:35,theme:{background:"#0f0f23",foreground:"#eee",cursor:"#e94560"},fontFamily:'"DejaVu Sans Mono", "Fira Code", "Consolas", "Monaco", monospace',fontSize:14,lineHeight:1,cursorBlink:!1,convertEol:!0,allowTransparency:!1}),fitAddon=new FitAddon;term.loadAddon(fitAddon);try{var webglAddon=new WebglAddon;webglAddon.onContextLoss((function(){webglAddon.dispose()})),term.loadAddon(webglAddon),console.log("WebGL addon loaded")}catch(e){console.log("WebGL addon not available, using canvas renderer")}var stdin_buffer=[],stdout_buffer=[],stderr_buffer=[];function stdin(){return stdin_buffer.shift()||0}function createBufferWriter(e,r){return function(o){if(0===o||10===o){if(10===o&&e.push(o),e.length>0){var n=(new TextDecoder).decode(new Uint8Array(e));r(n),e.length=0}}else e.push(o)}}var stdout=createBufferWriter(stdout_buffer,(function(e){term.write(e)})),stderr=createBufferWriter(stderr_buffer,(function(e){console.error(e),term.write(e)}));function showError(e,r){var o=document.getElementById("error");o.textContent="Error: "+e,o.style.display="block",document.getElementById("loading").classList.add("hidden"),r&&console.error(e,r)}Module.preRun.push((function(){var e=document.getElementById("terminal");e.classList.remove("hidden"),term.open(e),term.clear(),term.write(""),term.onData((function(e){for(var r=e.replace(/\x1b\[[0-9]+;[0-9]+R/g,""),o=0;o<r.length;o++)stdin_buffer.push(r.charCodeAt(o))})),FS.init(stdin,stdout,stderr)})),Module.postRun.push((function(){(document.getElementById("loading").classList.add("hidden"),Module._ftxui_on_resize)&&new ResizeObserver((function(){fitAddon.fit(),Module._ftxui_on_resize(term.cols,term.rows)})).observe(document.getElementById("terminal"))})),window.onerror=function(e,r,o,n,t){showError(e,{source:r,lineno:o,colno:n,error:t})},window.addEventListener("unhandledrejection",(function(e){showError(e.reason)})),window.term=term,window.fitAddon=fitAddon</script><script>const themeStylesheet=document.getElementById("theme-stylesheet"),themeRadios=document.querySelectorAll('input[name="theme"]'),themes={auto:"https://cdn.jsdelivr.net/npm/water.css@2/out/water.min.css",light:"https://cdn.jsdelivr.net/npm/water.css@2/out/light.min.css",dark:"https://cdn.jsdelivr.net/npm/water.css@2/out/dark.min.css"},savedTheme=localStorage.getItem("theme")||"auto";themeStylesheet.href=themes[savedTheme],document.querySelector(`input[value="${savedTheme}"]`).checked=!0,themeRadios.forEach((e=>{e.addEventListener("change",(e=>{const t=e.target.value;themeStylesheet.href=themes[t],localStorage.setItem("theme",t)}))}))</script><script src=ccons_expr.js async></script></body></html>

v1.0.0-works-for-me/cons_expr_cli/coi-serviceworker.min.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

v1.0.0-works-for-me/cons_expr_cli/cons_expr.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
1.49 MB
Binary file not shown.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<!doctypehtml><html lang=en><head><meta charset=UTF-8><meta content="width=device-width,initial-scale=1"name=viewport><title>cons_expr_cli</title><link href=https://cdn.jsdelivr.net/npm/water.css@2/out/water.min.css rel=stylesheet id=theme-stylesheet><link href=https://cdn.jsdelivr.net/npm/@xterm/xterm@6.0.0/css/xterm.css rel=stylesheet><style>body{max-width:1000px}header{text-align:center}fieldset{text-align:center;border:none}#terminal{margin:2rem auto;border:1px solid var(--border);border-radius:4px;overflow:hidden}#loading{text-align:center;padding:3rem 1rem}.spinner{border:4px solid var(--background-alt);border-top:4px solid var(--links);border-radius:50%;width:40px;height:40px;animation:spin 1s linear infinite;margin:0 auto 1rem}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}#error{display:none;background-color:#d32f2f;color:#fff;padding:1rem;border-radius:4px;margin-top:1rem}section{margin-top:2rem;padding:1.5rem;background-color:var(--background-alt);border-radius:4px}.hidden{display:none!important}</style></head><body><script src=coi-serviceworker.min.js></script><main><fieldset><label><input name=theme type=radio value=auto checked> Auto</label> <label><input name=theme type=radio value=light> Light</label> <label><input name=theme type=radio value=dark> Dark</label></fieldset><header><h1>cons_expr</h1></header><div id=loading><div class=spinner></div><p>Loading cons_expr...</p><p id=progress></p></div><div id=terminal class=hidden></div><div id=error></div><section><h3>Command-Line Arguments via URL</h3><p>Pass command-line arguments to the application using URL parameters:</p><strong>Conversion Rules:</strong><ul><li>• Single-character params → short flags: <code>?v</code><code>-v</code></li><li>• Multi-character params → long flags: <code>?version</code><code>--version</code></li><li>• Params with values: <code>?file=test.txt</code><code>--file test.txt</code></li><li>• Multiple params: <code>?v&help</code><code>-v --help</code></li></ul><strong>Examples:</strong><ul><li><code>intro.html?version</code></li><li><code>intro.html?h</code></li><li><code>intro.html?file=data.txt</code></li><li><code>intro.html?verbose&config=settings.json</code></li></ul></section></main><script>var Module={arguments:function(){const e=[];return new URLSearchParams(window.location.search).forEach(((n,t)=>{e.push((1===t.length?"-":"--")+t),n&&e.push(n)})),console.log("Module.arguments:",e),e}(),preRun:[],postRun:[],print:function(e){console.log(e)},printErr:function(e){console.error(e)},setStatus:function(e){var n=document.getElementById("progress");n&&(n.textContent=e||"")},totalDependencies:0,monitorRunDependencies:function(e){this.totalDependencies=Math.max(this.totalDependencies,e),e?Module.setStatus("Loading... ("+(this.totalDependencies-e)+"/"+this.totalDependencies+")"):Module.setStatus("")},onRuntimeInitialized:function(){console.log("WASM runtime initialized")}};Module.setStatus("Downloading...")</script><script type=importmap>{
2+
"imports": {
3+
"@xterm/xterm": "https://cdn.jsdelivr.net/npm/@xterm/xterm@6.0.0/+esm",
4+
"@xterm/addon-fit": "https://cdn.jsdelivr.net/npm/@xterm/addon-fit@0.11.0/+esm",
5+
"@xterm/addon-webgl": "https://cdn.jsdelivr.net/npm/@xterm/addon-webgl@0.18.0/+esm",
6+
"xterm-pty": "https://cdn.jsdelivr.net/npm/xterm-pty@0.11.1/+esm"
7+
}
8+
}</script><script type=module>import{Terminal}from"@xterm/xterm";import{FitAddon}from"@xterm/addon-fit";import{WebglAddon}from"@xterm/addon-webgl";import{openpty}from"xterm-pty";var term=new Terminal({cols:80,rows:35,theme:{background:"#0f0f23",foreground:"#eee",cursor:"#e94560"},fontFamily:'"DejaVu Sans Mono", "Fira Code", "Consolas", "Monaco", monospace',fontSize:14,lineHeight:1,cursorBlink:!1,convertEol:!0,allowTransparency:!1}),fitAddon=new FitAddon;term.loadAddon(fitAddon);try{var webglAddon=new WebglAddon;webglAddon.onContextLoss((function(){webglAddon.dispose()})),term.loadAddon(webglAddon),console.log("WebGL addon loaded")}catch(o){console.log("WebGL addon not available, using canvas renderer")}const pty=openpty();function showError(o,e){var n=document.getElementById("error");n.textContent="Error: "+o,n.style.display="block",document.getElementById("loading").classList.add("hidden"),e&&console.error(o,e)}console.log("PTY created:",pty),Module.preRun.push((function(){var o=document.getElementById("terminal");o.classList.remove("hidden"),term.open(o),fitAddon.fit(),pty.master.activate(term),console.log("PTY master activated with terminal"),FS.init((function(){var o=pty.slave.read(1);return o.length>0?o[0]:0}),(function(o){null!=o&&pty.slave.write([o])}),(function(o){null!=o&&(console.error(String.fromCharCode(o)),pty.slave.write([o]))})),console.log("FS.init() configured with PTY I/O handlers")})),Module.postRun.push((function(){document.getElementById("loading").classList.add("hidden")})),window.onerror=function(o,e,n,t,r){showError(o,{source:e,lineno:n,colno:t,error:r})},window.addEventListener("unhandledrejection",(function(o){showError(o.reason)})),window.term=term,window.fitAddon=fitAddon,window.pty=pty</script><script>const themeStylesheet=document.getElementById("theme-stylesheet"),themeRadios=document.querySelectorAll('input[name="theme"]'),themes={auto:"https://cdn.jsdelivr.net/npm/water.css@2/out/water.min.css",light:"https://cdn.jsdelivr.net/npm/water.css@2/out/light.min.css",dark:"https://cdn.jsdelivr.net/npm/water.css@2/out/dark.min.css"},savedTheme=localStorage.getItem("theme")||"auto";themeStylesheet.href=themes[savedTheme],document.querySelector(`input[value="${savedTheme}"]`).checked=!0,themeRadios.forEach((e=>{e.addEventListener("change",(e=>{const t=e.target.value;themeStylesheet.href=themes[t],localStorage.setItem("theme",t)}))}))</script><script src=cons_expr.js async></script></body></html>

0 commit comments

Comments
 (0)