Spaces:
Build error
Build error
auto-formatting (#45)
Browse files
.vscode/settings.json
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
{
|
2 |
"editor.formatOnSave": true,
|
|
|
3 |
"editor.codeActionsOnSave": {
|
4 |
"source.fixAll": true
|
5 |
}
|
|
|
1 |
{
|
2 |
"editor.formatOnSave": true,
|
3 |
+
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
4 |
"editor.codeActionsOnSave": {
|
5 |
"source.fixAll": true
|
6 |
}
|
src/lib/components/Tooltip.svelte
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<script lang="ts">
|
2 |
-
export let classNames =
|
3 |
-
export let label =
|
4 |
-
export let position =
|
5 |
</script>
|
6 |
|
7 |
<div
|
|
|
1 |
<script lang="ts">
|
2 |
+
export let classNames = '';
|
3 |
+
export let label = 'Copied';
|
4 |
+
export let position = 'left-1/2 top-full transform -translate-x-1/2 translate-y-2';
|
5 |
</script>
|
6 |
|
7 |
<div
|
src/lib/components/chat/ChatMessage.svelte
CHANGED
@@ -53,7 +53,9 @@
|
|
53 |
renderer
|
54 |
};
|
55 |
|
56 |
-
$: browser &&
|
|
|
|
|
57 |
|
58 |
if (message.from === 'assistant') {
|
59 |
html = marked(sanitizeMd(message.content), options);
|
|
|
53 |
renderer
|
54 |
};
|
55 |
|
56 |
+
$: browser &&
|
57 |
+
message.from === 'assistant' &&
|
58 |
+
marked(sanitizeMd(message.content), options, handleParsed);
|
59 |
|
60 |
if (message.from === 'assistant') {
|
61 |
html = marked(sanitizeMd(message.content), options);
|
src/lib/components/icons/IconCopy.svelte
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<script lang="ts">
|
2 |
-
export let classNames =
|
3 |
</script>
|
4 |
|
5 |
<svg
|
@@ -18,5 +18,9 @@
|
|
18 |
d="M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z"
|
19 |
transform="translate(0)"
|
20 |
/>
|
21 |
-
<path d="M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z" transform="translate(0)" /><rect
|
|
|
|
|
|
|
|
|
22 |
</svg>
|
|
|
1 |
<script lang="ts">
|
2 |
+
export let classNames = '';
|
3 |
</script>
|
4 |
|
5 |
<svg
|
|
|
18 |
d="M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z"
|
19 |
transform="translate(0)"
|
20 |
/>
|
21 |
+
<path d="M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z" transform="translate(0)" /><rect
|
22 |
+
fill="none"
|
23 |
+
width="32"
|
24 |
+
height="32"
|
25 |
+
/>
|
26 |
</svg>
|