From 754f9c2ad87c0668b794b16879b1c45cfe2c5577 Mon Sep 17 00:00:00 2001 From: Reza Rahemtola Date: Thu, 30 May 2024 21:41:14 +0200 Subject: [PATCH 01/11] fix: Typos and props ordering --- src/components/KnowledgeStoreUploader.js | 2 +- src/components/PersonaDialog.vue | 25 +++---- src/layouts/MainLayout.vue | 94 ++++++++++++------------ src/pages/Chat.vue | 58 +++++++-------- src/pages/KnowledgeBase.vue | 14 ++-- src/pages/VocalChat.vue | 9 ++- src/stores/chats-store.js | 8 +- src/stores/knowledge-store.js | 4 +- src/utils/knowledge.js | 6 +- src/utils/personas.js | 2 +- 10 files changed, 111 insertions(+), 111 deletions(-) diff --git a/src/components/KnowledgeStoreUploader.js b/src/components/KnowledgeStoreUploader.js index 8a519f9..ac77e97 100644 --- a/src/components/KnowledgeStoreUploader.js +++ b/src/components/KnowledgeStoreUploader.js @@ -56,7 +56,7 @@ export default createUploaderComponent({ if (text.length < 4 * 1024) { fileStatus.value[file.name] = 'uploaded'; helpers.updateFileStatus(file, 'uploaded'); - // If you don't embed the doucment, make sure to set the content + // If you don't embed the document, make sure to set the content emit('attachment-added', { title, type, content: text }); return; } diff --git a/src/components/PersonaDialog.vue b/src/components/PersonaDialog.vue index c3ecca0..1bfb0cc 100644 --- a/src/components/PersonaDialog.vue +++ b/src/components/PersonaDialog.vue @@ -1,10 +1,10 @@ - diff --git a/src/components/PersonaDropDown.vue b/src/components/PersonaDropDown.vue index 8aad70a..d7a3dab 100644 --- a/src/components/PersonaDropDown.vue +++ b/src/components/PersonaDropDown.vue @@ -31,23 +31,12 @@ - diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue index de7b7d0..37772e2 100644 --- a/src/layouts/MainLayout.vue +++ b/src/layouts/MainLayout.vue @@ -3,7 +3,6 @@ - @@ -148,7 +147,7 @@ - + Twitter - X @@ -188,14 +187,13 @@ - diff --git a/src/pages/Chat.vue b/src/pages/Chat.vue index 3f981e7..01eae99 100644 --- a/src/pages/Chat.vue +++ b/src/pages/Chat.vue @@ -135,10 +135,10 @@ - + + diff --git a/src/pages/PointsDetail.vue b/src/pages/PointsDetail.vue index fe2c376..3e6cc0a 100644 --- a/src/pages/PointsDetail.vue +++ b/src/pages/PointsDetail.vue @@ -54,116 +54,102 @@ - diff --git a/src/pages/PointsInfo.vue b/src/pages/PointsInfo.vue index eb90f8a..f2969ba 100644 --- a/src/pages/PointsInfo.vue +++ b/src/pages/PointsInfo.vue @@ -107,53 +107,38 @@ - From ed225c94d3b8059f1b590fe0dcc66c6c08c1478d Mon Sep 17 00:00:00 2001 From: Reza Rahemtola Date: Fri, 31 May 2024 22:40:35 +0200 Subject: [PATCH 09/11] fix: Lint --- .eslintrc.cjs | 2 ++ src/pages/KnowledgeBase.vue | 16 ++++++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 7a1afa8..0a85c44 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -60,5 +60,7 @@ module.exports = { // allow debugger during development only "no-debugger": process.env.NODE_ENV === "production" ? "error" : "off", + + "vue/multi-word-component-names": "off" }, }; diff --git a/src/pages/KnowledgeBase.vue b/src/pages/KnowledgeBase.vue index 9634736..428647e 100644 --- a/src/pages/KnowledgeBase.vue +++ b/src/pages/KnowledgeBase.vue @@ -31,7 +31,7 @@