Amend
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import type { Note } from '$lib/components/editor/script/editor';
|
||||
import type { Note } from '$lib/components/editor/script/types';
|
||||
|
||||
export type BoardNote = Note & {
|
||||
x: number;
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<script lang="ts">
|
||||
import type { FileAttachment, ImageAttachment, Note } from '$lib/components/editor/script/editor';
|
||||
import type { FileAttachment, ImageAttachment, Note } from '$lib/components/editor/script/types';
|
||||
import { nanoid } from 'nanoid';
|
||||
import { onMount } from 'svelte';
|
||||
import imageSvg from '$lib/assets/composer/image.svg';
|
||||
import fileSvg from '$lib/assets/composer/file.svg';
|
||||
import paletteSvg from '$lib/assets/composer/palette.svg';
|
||||
import { palette } from './script/constant';
|
||||
|
||||
type Props = {
|
||||
note?: Note;
|
||||
@@ -14,8 +15,6 @@
|
||||
|
||||
let { note, onSubmit, onClose }: Props = $props();
|
||||
|
||||
const palette = ['#ffffff', '#fef3c7', '#dbeafe', '#dcfce7', '#fee2e2', '#f3e8ff'];
|
||||
|
||||
onMount(() => {
|
||||
if (!note) {
|
||||
note = {
|
||||
|
||||
1
src/lib/components/editor/script/constant.ts
Normal file
1
src/lib/components/editor/script/constant.ts
Normal file
@@ -0,0 +1 @@
|
||||
export const palette = ['#ffffff', '#fef3c7', '#dbeafe', '#dcfce7', '#fee2e2', '#f3e8ff'];
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import type { Note } from '$lib/editor';
|
||||
import type { Note } from '$lib/components/editor/script/types';
|
||||
import NoteEditor from '../editor/NoteEditor.svelte';
|
||||
|
||||
type Props = {
|
||||
|
||||
Reference in New Issue
Block a user