mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-11 21:58:31 +00:00
build for root dir
This commit is contained in:
parent
e9b2bb6169
commit
92103dbb06
10
docs/dist/App.js
vendored
10
docs/dist/App.js
vendored
@ -43,9 +43,7 @@ function App() {
|
||||
return [];
|
||||
}
|
||||
}, [pattern]),
|
||||
onSchedule: useCallback((_events, cycle2) => {
|
||||
logCycle(_events, cycle2);
|
||||
}, [pattern]),
|
||||
onSchedule: useCallback((_events, cycle2) => logCycle(_events, cycle2), [pattern]),
|
||||
ready: !!pattern
|
||||
});
|
||||
useEffect(() => {
|
||||
@ -57,8 +55,12 @@ function App() {
|
||||
} catch (err) {
|
||||
setMode("javascript");
|
||||
_pattern = parse(code);
|
||||
if (_pattern?.constructor?.name !== "Pattern") {
|
||||
const message = `got "${typeof _pattern}" instead of pattern`;
|
||||
throw new Error(message + (typeof _pattern === "function" ? "did you foget to call a function?" : ""));
|
||||
}
|
||||
}
|
||||
setPattern(_pattern);
|
||||
setPattern(() => _pattern);
|
||||
setError(void 0);
|
||||
} catch (err) {
|
||||
console.warn(err);
|
||||
|
||||
2
docs/dist/logo.svg.proxy.js
vendored
2
docs/dist/logo.svg.proxy.js
vendored
@ -1 +1 @@
|
||||
export default "/strudel/dist/logo.svg";
|
||||
export default "/dist/logo.svg";
|
||||
@ -2,8 +2,8 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="icon" href="/strudel/favicon.ico" />
|
||||
<link rel="stylesheet" type="text/css" href="/strudel/global.css" />
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<link rel="stylesheet" type="text/css" href="/global.css" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="description" content="Strudel REPL" />
|
||||
<title>Strudel REPL</title>
|
||||
@ -11,6 +11,6 @@
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||
<script type="module" src="/strudel/dist/index.js"></script>
|
||||
<script type="module" src="/dist/index.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user