diff --git a/src/lib/components/app/daemon.svelte b/src/lib/components/app/daemon.svelte index 3d194cb..1691338 100644 --- a/src/lib/components/app/daemon.svelte +++ b/src/lib/components/app/daemon.svelte @@ -3,6 +3,8 @@ import { getGeneralData, getStationSongs } from '@/utils'; import { onMount } from 'svelte'; import { useIsMobile } from '@/isMobile.svelte'; + import Window from '../ui/window/window.svelte'; + import TodoList from './todo-list.svelte'; // svelte-ignore non_reactive_update let audioElement: HTMLAudioElement; @@ -233,4 +235,16 @@ autoplay preload="none" > -{/each} \ No newline at end of file +{/each} + + appState.showTodoList = false} + show={appState.showTodoList} +> + + \ No newline at end of file diff --git a/src/lib/components/app/left-bar.svelte b/src/lib/components/app/left-bar.svelte new file mode 100644 index 0000000..e3576cd --- /dev/null +++ b/src/lib/components/app/left-bar.svelte @@ -0,0 +1,13 @@ + + +
+ +
diff --git a/src/lib/components/app/todo-list.svelte b/src/lib/components/app/todo-list.svelte new file mode 100644 index 0000000..4f3e425 --- /dev/null +++ b/src/lib/components/app/todo-list.svelte @@ -0,0 +1,50 @@ + + +
+ e.key === 'Enter' && addTodo()} + /> + +
+ +{#if appState.todoList.length === 0} +

No tasks yet. Add one above!

+{:else} + +{/if} \ No newline at end of file diff --git a/src/lib/components/ui/window/window.svelte b/src/lib/components/ui/window/window.svelte index 12bfaca..ffa15f7 100644 --- a/src/lib/components/ui/window/window.svelte +++ b/src/lib/components/ui/window/window.svelte @@ -14,6 +14,7 @@ showTitleBar = true, showCloseButton = true, onClose = () => {}, + show = false, initialZIndex = 50, }: { children?: Snippet; @@ -25,6 +26,7 @@ showTitleBar?: boolean; showCloseButton?: boolean; onClose?: () => void; + show?: boolean; initialZIndex?: number; } = $props(); @@ -107,37 +109,36 @@ }); -