Skip to content

Commit

Permalink
Deploying to gh-pages from @ 5594ed7 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Dec 11, 2023
1 parent 5d552f9 commit f46df95
Show file tree
Hide file tree
Showing 7 changed files with 3,691 additions and 3,688 deletions.
3,570 changes: 1,785 additions & 1,785 deletions js/main.js

Large diffs are not rendered by default.

3,535 changes: 1,768 additions & 1,767 deletions livedoc/js/main.js

Large diffs are not rendered by default.

129 changes: 129 additions & 0 deletions squint/dist/assets/index-1b7a6eab.js

Large diffs are not rendered by default.

128 changes: 0 additions & 128 deletions squint/dist/assets/index-e5c8bfde.js

This file was deleted.

4 changes: 2 additions & 2 deletions squint/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@
<script type="importmap">
{
"imports": {
"squint-cljs/core.js": "https://unpkg.com/[email protected].57/core.js"
"squint-cljs/core.js": "https://unpkg.com/[email protected].81/core.js"
}
}
</script>
<script type="module" crossorigin src="./assets/index-e5c8bfde.js"></script>
<script type="module" crossorigin src="./assets/index-1b7a6eab.js"></script>
</head>
<body>
<div class="landing-page pt-10">
Expand Down
2 changes: 1 addition & 1 deletion squint/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<script type="importmap">
{
"imports": {
"squint-cljs/core.js": "https://unpkg.com/[email protected].57/core.js"
"squint-cljs/core.js": "https://unpkg.com/[email protected].81/core.js"
}
}
</script>
Expand Down
11 changes: 6 additions & 5 deletions squint/js/demo.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { extension as eval_ext, cursor_node_string, top_level_string } from '@ne
import { EditorView, drawSelection, keymap } from '@codemirror/view';
import { EditorState } from '@codemirror/state';
import { syntaxHighlighting, defaultHighlightStyle, foldGutter } from '@codemirror/language';
import { compileString } from 'squint-cljs';
import { compileStringEx } from 'squint-cljs';

let theme = EditorView.theme({
".cm-content": {whitespace: "pre-wrap",
Expand All @@ -24,11 +24,12 @@ let theme = EditorView.theme({
".cm-cursor": {visibility: "hidden"},
"&.cm-focused .cm-cursor": {visibility: "visible"}
});

let compilerState = null;
let evalCode = async function (code) {
let js = compileString(`(do ${code})`, {repl: true,
context: 'return',
"elide-exports": true})
compilerState = compileStringEx(`(do ${code})`, {repl: true,
context: 'return',
"elide-exports": true}, compilerState)
let js = compilerState.javascript;
let result;
try {
result = {value: await eval(`(async function() { ${js} })()`)};
Expand Down

0 comments on commit f46df95

Please sign in to comment.