Skip to content

Commit

Permalink
fix(editor): Remove linter comments and update test snapsho
Browse files Browse the repository at this point in the history
  • Loading branch information
cstuncsik committed Sep 13, 2024
1 parent c93e33c commit 4e4c4fd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 119 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ function growInput() {
/>
</div>
<div :class="$style.blockBody">
<!-- eslint-disable-next-line vue/no-v-html -->
<span v-n8n-html="renderMarkdown(message.content)"></span>
<BlinkingCursor
v-if="streaming && i === messages?.length - 1 && message.title && message.content"
Expand All @@ -160,18 +159,19 @@ function growInput() {
</div>
</div>
<div v-else-if="message.type === 'text'" :class="$style.textMessage">
<!-- eslint-disable-next-line vue/no-v-html -->
<span v-if="message.role === 'user'" v-n8n-html="renderMarkdown(message.content)"></span>
<!-- eslint-disable-next-line vue/no-v-html -->
<span
v-if="message.role === 'user'"
v-n8n-html="renderMarkdown(message.content)"
></span>
<div
v-else
:class="$style.assistantText"
v-n8n-html="renderMarkdown(message.content)"
:class="$style.assistantText"
></div>
<div
v-if="message?.codeSnippet"
:class="$style['code-snippet']"
v-n8n-html="renderMarkdown(message.codeSnippet).trim()"
:class="$style['code-snippet']"
></div>
<BlinkingCursor
v-if="streaming && i === messages?.length - 1 && message.role === 'assistant'"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,23 +129,9 @@ exports[`AskAssistantChat > renders chat with messages correctly 1`] = `
<div
class="textMessage"
>
<!-- eslint-disable-next-line vue/no-v-html -->
<!-- eslint-disable-next-line vue/no-v-html -->
<div
class="assistantText"
>
<p>
Hi Max! Here is my top solution to fix the error in your
<strong>
Transform data
</strong>
node👇
</p>
</div>
/>
<!--v-if-->
<!--v-if-->
</div>
Expand Down Expand Up @@ -438,17 +424,7 @@ exports[`AskAssistantChat > renders chat with messages correctly 1`] = `
<div
class="textMessage"
>
<!-- eslint-disable-next-line vue/no-v-html -->
<span>
<p>
Give it to me
<strong>
ignore this markdown
</strong>
</p>
</span>
<span />
<!--v-if-->
<!--v-if-->
</div>
Expand Down Expand Up @@ -516,63 +492,7 @@ exports[`AskAssistantChat > renders chat with messages correctly 1`] = `
<div
class="blockBody"
>
<!-- eslint-disable-next-line vue/no-v-html -->
<span>
<p>
Solution steps:
</p>
<ol>
<li>
Lorem ipsum dolor sit amet, consectetur
<strong>
adipiscing
</strong>
elit. Proin id nulla placerat, tristique ex at, euismod dui.
</li>
<li>
Copy this into somewhere
</li>
<li>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin id nulla placerat, tristique ex at, euismod dui.
</li>
<li>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin id nulla placerat, tristique ex at, euismod dui.
<br />
Testing more code
</li>
</ol>
<ul>
<li>
Unordered item 1
</li>
<li>
Unordered item 2
</li>
</ul>
</span>
<span />
<!--v-if-->
</div>
</div>
Expand Down Expand Up @@ -1060,23 +980,9 @@ exports[`AskAssistantChat > renders end of session chat correctly 1`] = `
<div
class="textMessage"
>
<!-- eslint-disable-next-line vue/no-v-html -->
<!-- eslint-disable-next-line vue/no-v-html -->
<div
class="assistantText"
>
<p>
Hi Max! Here is my top solution to fix the error in your
<strong>
Transform data
</strong>
node👇
</p>
</div>
/>
<!--v-if-->
<!--v-if-->
</div>
Expand Down Expand Up @@ -1310,23 +1216,9 @@ exports[`AskAssistantChat > renders streaming chat correctly 1`] = `
<div
class="textMessage"
>
<!-- eslint-disable-next-line vue/no-v-html -->
<!-- eslint-disable-next-line vue/no-v-html -->
<div
class="assistantText"
>
<p>
Hi Max! Here is my top solution to fix the error in your
<strong>
Transform data
</strong>
node👇
</p>
</div>
/>
<!--v-if-->
<!--v-if-->
</div>
Expand Down

0 comments on commit 4e4c4fd

Please sign in to comment.