Skip to content

Commit

Permalink
move all panels to their own folder. i hope this doesnt break it
Browse files Browse the repository at this point in the history
  • Loading branch information
TodePond committed Jan 25, 2025
1 parent 8dba174 commit 79eb5d7
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion hydra.html → panels/hydra.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
// the js here is only for plumbing postMessages
// + creating the hydra session

import { HydraSession } from './src/hydra';
import { HydraSession } from '/src/hydra';
function send(type, msg) {
window.parent.postMessage({ type, msg });
}
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion shader.html → panels/shader.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
window.global = window;
</script>
<script type="module">
import { ShaderSession } from './src/shader';
import { ShaderSession } from '/src/shader';
function send(type, msg) {
window.parent.postMessage({ type, msg });
}
Expand Down
2 changes: 1 addition & 1 deletion strudel.html → panels/strudel.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// + we can sandbox the evaluation
// the js here is only for plumbing postMessages
// + creating the strudel session
import { StrudelSession } from './src/strudel';
import { StrudelSession } from '/src/strudel';
function send(type, msg) {
window.parent.postMessage({ type, msg });
}
Expand Down
2 changes: 1 addition & 1 deletion src/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ let appliedSettings = null;

function addFrame(key) {
Frame[key] = document.createElement('iframe');
Frame[key].src = `/${key}`;
Frame[key].src = `/panels/${key}`;
Frame[key].id = key;
Frame[key].sandbox = 'allow-scripts allow-same-origin';
Frame[key].setAttribute('scrolling', 'no');
Expand Down
8 changes: 4 additions & 4 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ export default defineConfig({
rollupOptions: {
input: {
main: 'index.html',
strudel: 'strudel.html', // iframe
hydra: 'hydra.html', // iframe
shader: 'shader.html', // iframe
kabelsalat: 'kabelsalat.html', // iframe
strudel: 'panels/strudel.html',
hydra: 'panels/hydra.html',
shader: 'panels/shader.html',
kabelsalat: 'panels/kabelsalat.html',
},
},
},
Expand Down

0 comments on commit 79eb5d7

Please sign in to comment.