Initial RuneStone project
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
<script lang="ts">
|
||||
import "../app.css";
|
||||
|
||||
let { children } = $props();
|
||||
</script>
|
||||
|
||||
{@render children()}
|
||||
@@ -0,0 +1,5 @@
|
||||
// Tauri doesn't have a Node.js server to do proper SSR
|
||||
// so we use adapter-static with a fallback to index.html to put the site in SPA mode
|
||||
// See: https://svelte.dev/docs/kit/single-page-apps
|
||||
// See: https://v2.tauri.app/start/frontend/sveltekit/ for more info
|
||||
export const ssr = false;
|
||||
@@ -0,0 +1,7 @@
|
||||
<script lang="ts">
|
||||
import Workbench from "$lib/layout/Workbench.svelte";
|
||||
import TerminalWindow from "$lib/terminal/TerminalWindow.svelte";
|
||||
const terminalRoot = new URLSearchParams(location.search).get("terminalWindow");
|
||||
</script>
|
||||
|
||||
{#if terminalRoot}<TerminalWindow cwd={terminalRoot} />{:else}<Workbench />{/if}
|
||||
Reference in New Issue
Block a user