Release RuneStone 0.1.4 with installable plugins and settings

This commit is contained in:
Knotty Wyvern
2026-10-04 15:05:51 -07:00
parent 0268c5c9f0
commit 6b7af0d527
82 changed files with 4150 additions and 212 deletions
+30
View File
@@ -0,0 +1,30 @@
<script lang="ts">
import { onMount, untrack } from "svelte";
import type { TerminalSettings, ShellProfile } from "./model";
let { settings, profiles, onSave, onClose }: { settings: TerminalSettings; profiles: ShellProfile[]; onSave: (settings: TerminalSettings) => void; onClose: () => void } = $props();
let value = $state(untrack(() => ({ ...settings })));
let dialog: HTMLDialogElement;
onMount(() => dialog.showModal());
</script>
<dialog bind:this={dialog} oncancel={onClose} aria-label="Terminal settings">
<form onsubmit={event => { event.preventDefault(); onSave(value); onClose(); }}>
<h2>Terminal settings</h2>
<label>Default profile<select aria-label="Default profile" bind:value={value.defaultProfile}>{#each profiles.filter(p => p.kind !== "node") as profile}<option value={profile.id}>{profile.title}</option>{/each}</select></label>
<label>Font size<input type="number" min="9" max="28" required bind:value={value.fontSize} /></label>
<label>Scrollback lines<input type="number" min="100" max="100000" step="100" required bind:value={value.scrollback} /></label>
<label class="check"><input type="checkbox" bind:checked={value.cursorBlink} />Blink cursor</label>
<p>Appearance applies to open sessions. The default profile applies to new terminals.</p>
<footer><button type="button" onclick={onClose}>Cancel</button><button type="submit">Save settings</button></footer>
</form>
</dialog>
<style>
dialog { width: min(450px, 90vw); background: var(--rs-bg-elevated); color: var(--rs-text); border: 1px solid var(--rs-border); border-radius: 8px; padding: 24px; }
dialog::backdrop { background: #0008; }
h2 { font-size: 18px; margin: 0 0 8px; }
form { display: flex; flex-direction: column; gap: 16px; }
label { display: flex; flex-direction: column; gap: 6px; }
label.check { flex-direction: row; }
input, select, button { background: var(--rs-bg); color: var(--rs-text); border: 1px solid var(--rs-border); padding: 7px; }
p { color: var(--rs-text-dim); font-size: 12px; margin: 0; }
footer { display: flex; justify-content: flex-end; gap: 8px; }
</style>