-
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.
Improved wals embed to be able to collapse them
- Loading branch information
Showing
7 changed files
with
101 additions
and
58 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
<script lang="ts"> | ||
// import { type EmbedWalElement } from './type'; | ||
import Checkbox from '~/GameSpace/ui/Checkbox.svelte'; | ||
import { type EmbedWalElement } from './type'; | ||
// import Input from '../../ui/Input.svelte'; | ||
// export let el: EmbedWalElement; | ||
// export let onUpdate: (el: Partial<EmbedWalElement>) => void; | ||
export let el: EmbedWalElement; | ||
export let onUpdate: (el: Partial<EmbedWalElement>) => void; | ||
$$restProps; // This prevents Svelte warnings from unused props | ||
</script> | ||
|
||
<div> | ||
<!-- <Input | ||
disabled={el.lock.config} | ||
label="URL" | ||
value={el.url} | ||
onInput={(url) => onUpdate({ uuid: el.uuid, url })} | ||
/> --> | ||
<Checkbox | ||
value={el.preview} | ||
label={'Preview'} | ||
onInput={(preview) => onUpdate({ uuid: el.uuid, preview })} | ||
/> | ||
</div> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
import { type GElementBase } from '~/store'; | ||
|
||
export const VERSION = 2; | ||
|
||
export type EmbedWalElement = GElementBase & { | ||
type: 'EmbedWal'; | ||
version: number; | ||
version: typeof VERSION; | ||
url: string; | ||
preview: boolean; | ||
storedHeight: number; | ||
}; |