Something went wrong. Try again.
small gleam coding and persistent agent daemon with a detachable cli and a canvas ui forked from okami.mom/albedo
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445<script lang="ts"> import { boards } from './lib/boards.svelte'; import { popup, startPopup } from './lib/popouts.svelte'; import { sessions } from './lib/sessions.svelte'; import BoardView from './lib/tiles/BoardView.svelte'; import { tileTitle } from './lib/tiles/title'; import WindowSlot from './lib/tiles/WindowSlot.svelte';
// A pane popped out of a board, alone on its own page (popouts.svelte.ts): // a window in its frame, or a section, group or canvas as the whole of a // board that is never saved. const board = boards.board; if (board && popup) startPopup(board, popup); sessions.start();
$effect(() => { // Again once the session list comes: the tab count (notifications.svelte.ts) writes the title then. void sessions.list; if (board?.root && popup) document.title = `${popup.pane.tile.name || tileTitle(board.root, board.windows)} · albedo`; });</script>
<div class="pop" class:board={popup?.pane.tile.kind !== 'leaf'}> {#if board && popup} {#if popup.pane.tile.kind === 'leaf'} <WindowSlot {board} window={popup.id} over /> {:else} <BoardView {board} /> {/if} {/if}</div>
<style> .pop { box-sizing: border-box; height: 100%; padding: 8px; background: var(--bg); } .pop.board { position: relative; padding: 0; }</style>