mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-25 12:38:35 +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 [];
|
return [];
|
||||||
}
|
}
|
||||||
}, [pattern]),
|
}, [pattern]),
|
||||||
onSchedule: useCallback((_events, cycle2) => {
|
onSchedule: useCallback((_events, cycle2) => logCycle(_events, cycle2), [pattern]),
|
||||||
logCycle(_events, cycle2);
|
|
||||||
}, [pattern]),
|
|
||||||
ready: !!pattern
|
ready: !!pattern
|
||||||
});
|
});
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@ -57,8 +55,12 @@ function App() {
|
|||||||
} catch (err) {
|
} catch (err) {
|
||||||
setMode("javascript");
|
setMode("javascript");
|
||||||
_pattern = parse(code);
|
_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);
|
setError(void 0);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.warn(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">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="icon" href="/strudel/favicon.ico" />
|
<link rel="icon" href="/favicon.ico" />
|
||||||
<link rel="stylesheet" type="text/css" href="/strudel/global.css" />
|
<link rel="stylesheet" type="text/css" href="/global.css" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<meta name="description" content="Strudel REPL" />
|
<meta name="description" content="Strudel REPL" />
|
||||||
<title>Strudel REPL</title>
|
<title>Strudel REPL</title>
|
||||||
@ -11,6 +11,6 @@
|
|||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
<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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user