ci: Fix lint setup in chat package (no-changelog) (#8275)
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
<script setup lang="ts">
|
||||
import { nextTick, onMounted } from 'vue';
|
||||
import Layout from '@n8n/chat/components/Layout.vue';
|
||||
import GetStarted from '@n8n/chat/components/GetStarted.vue';
|
||||
import GetStartedFooter from '@n8n/chat/components/GetStartedFooter.vue';
|
||||
import MessagesList from '@n8n/chat/components/MessagesList.vue';
|
||||
import Input from '@n8n/chat/components/Input.vue';
|
||||
import { nextTick, onMounted } from 'vue';
|
||||
import { useI18n, useChat, useOptions } from '@n8n/chat/composables';
|
||||
import { chatEventBus } from '@n8n/chat/event-buses';
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
import IconChat from 'virtual:icons/mdi/chat';
|
||||
// eslint-disable-next-line import/no-unresolved
|
||||
import IconChevronDown from 'virtual:icons/mdi/chevron-down';
|
||||
import Chat from '@n8n/chat/components/Chat.vue';
|
||||
import { nextTick, ref } from 'vue';
|
||||
import Chat from '@n8n/chat/components/Chat.vue';
|
||||
import { chatEventBus } from '@n8n/chat/event-buses';
|
||||
|
||||
const isOpen = ref(false);
|
||||
@@ -23,7 +23,7 @@ function toggle() {
|
||||
<template>
|
||||
<div class="chat-window-wrapper">
|
||||
<Transition name="chat-window-transition">
|
||||
<div class="chat-window" v-show="isOpen">
|
||||
<div v-show="isOpen" class="chat-window">
|
||||
<Chat />
|
||||
</div>
|
||||
</Transition>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<script setup lang="ts">
|
||||
// eslint-disable-next-line import/no-unresolved
|
||||
import IconSend from 'virtual:icons/mdi/send';
|
||||
import { useI18n, useChat } from '@n8n/chat/composables';
|
||||
import { computed, ref } from 'vue';
|
||||
import { useI18n, useChat } from '@n8n/chat/composables';
|
||||
|
||||
const chatStore = useChat();
|
||||
const { waitingForResponse } = chatStore;
|
||||
|
||||
@@ -26,7 +26,7 @@ onBeforeUnmount(() => {
|
||||
<div v-if="$slots.header" class="chat-header">
|
||||
<slot name="header" />
|
||||
</div>
|
||||
<div v-if="$slots.default" class="chat-body" ref="chatBodyRef">
|
||||
<div v-if="$slots.default" ref="chatBodyRef" class="chat-body">
|
||||
<slot />
|
||||
</div>
|
||||
<div v-if="$slots.footer" class="chat-footer">
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<script lang="ts" setup>
|
||||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
import type { ChatMessage } from '@n8n/chat/types';
|
||||
import type { PropType } from 'vue';
|
||||
import { computed, toRefs } from 'vue';
|
||||
import VueMarkdown from 'vue-markdown-render';
|
||||
import hljs from 'highlight.js/lib/core';
|
||||
import type { ChatMessage } from '@n8n/chat/types';
|
||||
|
||||
const props = defineProps({
|
||||
message: {
|
||||
@@ -41,11 +41,7 @@ const markdownOptions = {
|
||||
<template>
|
||||
<div class="chat-message" :class="classes">
|
||||
<slot>
|
||||
<vue-markdown
|
||||
class="chat-message-markdown"
|
||||
:source="messageText"
|
||||
:options="markdownOptions"
|
||||
/>
|
||||
<VueMarkdown class="chat-message-markdown" :source="messageText" :options="markdownOptions" />
|
||||
</slot>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<script lang="ts" setup>
|
||||
import type { ChatMessage } from '@n8n/chat/types';
|
||||
import { Message } from './index';
|
||||
import type { PropType } from 'vue';
|
||||
import { computed } from 'vue';
|
||||
import { Message } from './index';
|
||||
import type { ChatMessage } from '@n8n/chat/types';
|
||||
|
||||
const props = defineProps({
|
||||
animation: {
|
||||
|
||||
Reference in New Issue
Block a user