From e4f47c1abf9ec378cf6a7bda916e7e37ba4d2648 Mon Sep 17 00:00:00 2001 From: timothycarambat <rambat1010@gmail.com> Date: Thu, 21 Nov 2024 15:49:59 -0800 Subject: [PATCH] linting --- .../components/EmbeddingSelection/MistralAiOptions/index.jsx | 4 +--- frontend/src/locales/resources.js | 5 ++--- frontend/src/locales/vn/common.js | 3 +-- server/utils/EmbeddingEngines/mistral/index.js | 2 +- 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/frontend/src/components/EmbeddingSelection/MistralAiOptions/index.jsx b/frontend/src/components/EmbeddingSelection/MistralAiOptions/index.jsx index 6012b3192..77cdd1676 100644 --- a/frontend/src/components/EmbeddingSelection/MistralAiOptions/index.jsx +++ b/frontend/src/components/EmbeddingSelection/MistralAiOptions/index.jsx @@ -28,9 +28,7 @@ export default function MistralAiOptions({ settings }) { className="bg-theme-settings-input-bg border-gray-500 text-white text-sm rounded-lg block w-full p-2.5" > <optgroup label="Available embedding models"> - {[ - "mistral-embed", - ].map((model) => { + {["mistral-embed"].map((model) => { return ( <option key={model} value={model}> {model} diff --git a/frontend/src/locales/resources.js b/frontend/src/locales/resources.js index 2858ed515..89c757e3f 100644 --- a/frontend/src/locales/resources.js +++ b/frontend/src/locales/resources.js @@ -25,7 +25,7 @@ import Italian from "./it/common.js"; import Portuguese from "./pt_BR/common.js"; import Hebrew from "./he/common.js"; import Dutch from "./nl/common.js"; -import Vietnamese from "./vn/common.js"; +import Vietnamese from "./vn/common.js"; import TraditionalChinese from "./zh_TW/common.js"; export const defaultNS = "common"; @@ -66,8 +66,7 @@ export const resources = { nl: { common: Dutch, }, - vi: { + vi: { common: Vietnamese, }, - }; diff --git a/frontend/src/locales/vn/common.js b/frontend/src/locales/vn/common.js index dd8d8c462..1901d89fd 100644 --- a/frontend/src/locales/vn/common.js +++ b/frontend/src/locales/vn/common.js @@ -58,8 +58,7 @@ const TRANSLATIONS = { }, "password-reset": { title: "Máºt khẩu Äặt lại", - description: - "Cung cấp thông tin cần thiết dưới đây để đặt lại máºt khẩu.", + description: "Cung cấp thông tin cần thiết dưới đây để đặt lại máºt khẩu.", "recovery-codes": "Mã khôi phục", "recovery-code": "Mã khôi phục {{index}}", "back-to-login": "Back to Äăng nháºp", diff --git a/server/utils/EmbeddingEngines/mistral/index.js b/server/utils/EmbeddingEngines/mistral/index.js index 1d4f73514..23f4ddc8a 100644 --- a/server/utils/EmbeddingEngines/mistral/index.js +++ b/server/utils/EmbeddingEngines/mistral/index.js @@ -40,4 +40,4 @@ class MistralEmbedder { module.exports = { MistralEmbedder, -}; \ No newline at end of file +}; -- GitLab