diff --git a/src/lib/assets/controlIcons/branchIcon.svg b/src/lib/assets/controlIcons/branchIcon.svg new file mode 100644 index 0000000..906336b --- /dev/null +++ b/src/lib/assets/controlIcons/branchIcon.svg @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/src/lib/assets/controlIcons/copyIcon.svg b/src/lib/assets/controlIcons/copyIcon.svg new file mode 100644 index 0000000..f163685 --- /dev/null +++ b/src/lib/assets/controlIcons/copyIcon.svg @@ -0,0 +1,13 @@ + + + \ No newline at end of file diff --git a/src/lib/assets/controlIcons/linkIcon.svg b/src/lib/assets/controlIcons/linkIcon.svg new file mode 100644 index 0000000..90f429c --- /dev/null +++ b/src/lib/assets/controlIcons/linkIcon.svg @@ -0,0 +1,15 @@ + + + + \ No newline at end of file diff --git a/src/lib/assets/controlIcons/moveIcon.svg b/src/lib/assets/controlIcons/moveIcon.svg new file mode 100644 index 0000000..6be8c80 --- /dev/null +++ b/src/lib/assets/controlIcons/moveIcon.svg @@ -0,0 +1,13 @@ + + + \ No newline at end of file diff --git a/src/lib/assets/controlIcons/submitIcon.svg b/src/lib/assets/controlIcons/submitIcon.svg new file mode 100644 index 0000000..8fedae3 --- /dev/null +++ b/src/lib/assets/controlIcons/submitIcon.svg @@ -0,0 +1,14 @@ + \ No newline at end of file diff --git a/src/lib/assets/controlIcons/trashIcon.svg b/src/lib/assets/controlIcons/trashIcon.svg new file mode 100644 index 0000000..dd62099 --- /dev/null +++ b/src/lib/assets/controlIcons/trashIcon.svg @@ -0,0 +1,11 @@ + + + \ No newline at end of file diff --git a/src/lib/assets/themeIcons/darkThemeIcon.svg b/src/lib/assets/themeIcons/darkThemeIcon.svg new file mode 100644 index 0000000..a58bae3 --- /dev/null +++ b/src/lib/assets/themeIcons/darkThemeIcon.svg @@ -0,0 +1,9 @@ + + + \ No newline at end of file diff --git a/src/lib/assets/themeIcons/whiteThemeIcon.svg b/src/lib/assets/themeIcons/whiteThemeIcon.svg new file mode 100644 index 0000000..c030ef6 --- /dev/null +++ b/src/lib/assets/themeIcons/whiteThemeIcon.svg @@ -0,0 +1,9 @@ + + + \ No newline at end of file diff --git a/src/lib/components/Message.svelte b/src/lib/components/Message.svelte index 08def85..52e4d5b 100644 --- a/src/lib/components/Message.svelte +++ b/src/lib/components/Message.svelte @@ -4,6 +4,9 @@ import Markdown from 'svelte-exmarkdown' import { gfmPlugin } from 'svelte-exmarkdown/gfm' + import branchIcon from '$lib/assets/controlIcons/branchIcon.svg?raw' + import trashIcon from '$lib/assets/controlIcons/trashIcon.svg?raw' + let { value, ondelete, @@ -37,11 +40,7 @@ href="{base}/#{value.id}" title="Create a new thread" > - + {@html branchIcon} {/if} diff --git a/src/lib/components/Note.svelte b/src/lib/components/Note.svelte index 3e9821c..dbac39c 100644 --- a/src/lib/components/Note.svelte +++ b/src/lib/components/Note.svelte @@ -1,6 +1,11 @@ diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 2746422..c9a4ce9 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -6,6 +6,8 @@ import { browser } from '$app/environment' import { base } from '$app/paths' + import submitIcon from '$lib/assets/controlIcons/submitIcon.svg?raw' + // if there is hash with a leaf note id, open it // if there is no hash, redirect to a last created note @@ -107,20 +109,7 @@ class="w-full p-2 focus:outline-none focus:border-blue-500 bg-transparent" />