mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-24 03:58:53 +00:00
add vanilla repl build
This commit is contained in:
parent
09045d5387
commit
5f985f359b
1
packages/core/examples/vite-vanilla-repl/.gitignore
vendored
Normal file
1
packages/core/examples/vite-vanilla-repl/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
!dist
|
||||||
8
packages/core/examples/vite-vanilla-repl/dist/assets/index.60ad3587.js
vendored
Normal file
8
packages/core/examples/vite-vanilla-repl/dist/assets/index.60ad3587.js
vendored
Normal file
File diff suppressed because one or more lines are too long
56
packages/core/examples/vite-vanilla-repl/dist/assets/index.6e398646.js
vendored
Normal file
56
packages/core/examples/vite-vanilla-repl/dist/assets/index.6e398646.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
packages/core/examples/vite-vanilla-repl/dist/assets/index.865535e6.js
vendored
Normal file
1
packages/core/examples/vite-vanilla-repl/dist/assets/index.865535e6.js
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
import{g as s,b as d,e as t,j as u,l as o,f as r,p as f,i as p,d as g,h as i,w as l,a as m}from"./index.6e398646.js";export{s as getAudioContext,d as getCachedBuffer,t as getLoadedBuffer,u as getLoadedSamples,o as loadBuffer,r as loadGithubSamples,f as panic,p as resetLoadedSamples,g as reverseBuffer,i as samples,l as webaudioOutput,m as webaudioOutputTrigger};
|
||||||
1
packages/core/examples/vite-vanilla-repl/dist/assets/index.c55cf335.js
vendored
Normal file
1
packages/core/examples/vite-vanilla-repl/dist/assets/index.c55cf335.js
vendored
Normal file
File diff suppressed because one or more lines are too long
36
packages/core/examples/vite-vanilla-repl/dist/index.html
vendored
Normal file
36
packages/core/examples/vite-vanilla-repl/dist/index.html
vendored
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<title>Vite Vanilla Strudel REPL</title>
|
||||||
|
<script type="module" crossorigin src="/assets/index.6e398646.js"></script>
|
||||||
|
</head>
|
||||||
|
<body style="margin: 0; background: #222">
|
||||||
|
<div style="display: grid; height: 100vh">
|
||||||
|
<textarea
|
||||||
|
id="text"
|
||||||
|
style="font-size: 2em; border: 0; color: white; background: transparent; outline: none; padding: 20px"
|
||||||
|
spellcheck="false"
|
||||||
|
></textarea>
|
||||||
|
</div>
|
||||||
|
<button
|
||||||
|
id="start"
|
||||||
|
style="
|
||||||
|
position: absolute;
|
||||||
|
border-radius: 10px;
|
||||||
|
top: 20px;
|
||||||
|
right: 20px;
|
||||||
|
padding: 20px;
|
||||||
|
border: 2px solid white;
|
||||||
|
background: transparent;
|
||||||
|
color: white;
|
||||||
|
cursor: pointer;
|
||||||
|
"
|
||||||
|
>
|
||||||
|
evaluate
|
||||||
|
</button>
|
||||||
|
<div id="output"></div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@ -20,4 +20,7 @@ const { evaluate } = repl({
|
|||||||
getTime: () => ctx.currentTime,
|
getTime: () => ctx.currentTime,
|
||||||
transpiler: shapeshifter,
|
transpiler: shapeshifter,
|
||||||
});
|
});
|
||||||
document.getElementById('start').addEventListener('click', () => evaluate(input.value));
|
document.getElementById('start').addEventListener('click', () => {
|
||||||
|
ctx.resume();
|
||||||
|
evaluate(input.value);
|
||||||
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user