-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
96d06bf
commit fe5dd2f
Showing
12 changed files
with
79 additions
and
81 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<script lang="ts"> | ||
import PaneButton from './PaneButton.svelte'; | ||
export let title: string = ''; | ||
function closePane() { | ||
console.log('Close pane'); | ||
} | ||
function minimizePane() { | ||
console.log('Minimize pane'); | ||
} | ||
function maximizePane() { | ||
console.log('Maximize pane'); | ||
} | ||
</script> | ||
|
||
<header class="flex h-2 items-center justify-between border-b border-gray-400 bg-gray-300 p-2"> | ||
<PaneButton action={closePane} label="Close" /> | ||
<h2 class="text-left text-base font-normal">{title}</h2> | ||
<div class="flex items-center justify-end space-x-2"> | ||
<PaneButton action={minimizePane} label="Minimize" /> | ||
<PaneButton action={maximizePane} label="Maximize" /> | ||
</div> | ||
</header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
import type WinSignupNews from '../routes/sections/WinSignupNews.svelte'; | ||
import type WinBlog from '../routes/sections/WinBlog.svelte'; | ||
// src/lib/types.ts | ||
import type { Writable } from 'svelte/store'; | ||
import type PaneSignupNews from '../routes/sections/PaneSignupNews.svelte'; | ||
import type PaneBlog from '../routes/sections/PaneBlog.svelte'; | ||
|
||
export type Window = { | ||
component: typeof WinSignupNews | typeof WinBlog; | ||
x: number; | ||
y: number; | ||
}; | ||
export type Pane = { | ||
component: typeof PaneSignupNews | typeof PaneBlog; | ||
x: Writable<number>; | ||
y: Writable<number>; | ||
width: Writable<number>; | ||
height: Writable<number>; | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters