+ {/* eslint-disable-next-line ts/ban-ts-comment */}
+ {/* @ts-expect-error */}
{children}
diff --git a/web/app/styles/globals.css b/web/app/styles/globals.css
index 52e36a2767..2027a945ac 100644
--- a/web/app/styles/globals.css
+++ b/web/app/styles/globals.css
@@ -698,3 +698,26 @@ button:focus-within {
scrollbar-width: none;
}
}
+
+/** small size scroll bar */
+.scrollbar-small {
+ &::-webkit-scrollbar {
+ width: 6px;
+ height: 6px;
+ }
+
+ &::-webkit-scrollbar-thumb {
+ border-radius: 4px;
+ background-color: #b0b0b0;
+ }
+
+ &::-webkit-scrollbar-track {
+ background-color: #f0f0f0;
+ border-radius: 4px;
+ }
+
+ &::-webkit-scrollbar-thumb:hover {
+ background-color: #888888;
+ }
+
+}
diff --git a/web/eslint.config.mjs b/web/eslint.config.mjs
index d40d96356b..72f34d82bb 100644
--- a/web/eslint.config.mjs
+++ b/web/eslint.config.mjs
@@ -167,7 +167,6 @@ export default combine(
'sonarjs/max-lines': 'warn', // max 1000 lines
'sonarjs/no-variable-usage-before-declaration': 'error',
// security
- // eslint-disable-next-line sonarjs/no-hardcoded-passwords
'sonarjs/no-hardcoded-passwords': 'off', // detect the wrong code that is not password.
'sonarjs/no-hardcoded-secrets': 'off',
'sonarjs/pseudo-random': 'off',
diff --git a/web/i18n/de-DE/common.ts b/web/i18n/de-DE/common.ts
index 509f44708d..902983b588 100644
--- a/web/i18n/de-DE/common.ts
+++ b/web/i18n/de-DE/common.ts
@@ -540,7 +540,7 @@ const translation = {
vectorHash: 'Vektorhash:',
hitScore: 'Abrufwertung:',
},
- inputPlaceholder: 'Sprechen Sie mit dem Bot',
+ inputPlaceholder: 'Bitte erzählen Sie mir von Ihrem Anliegen, verwenden Sie Umschalt + Eingabetaste für einen Zeilenumbruch',
thought: 'Gedanke',
thinking: 'Denken...',
},
diff --git a/web/i18n/en-US/common.ts b/web/i18n/en-US/common.ts
index 8756095075..51ae786d98 100644
--- a/web/i18n/en-US/common.ts
+++ b/web/i18n/en-US/common.ts
@@ -561,7 +561,7 @@ const translation = {
vectorHash: 'Vector hash:',
hitScore: 'Retrieval Score:',
},
- inputPlaceholder: 'Talk to Bot',
+ inputPlaceholder: 'Please tell me about your issue, use Shift + Enter for a new line',
thinking: 'Thinking...',
thought: 'Thought',
resend: 'Resend',
diff --git a/web/i18n/es-ES/common.ts b/web/i18n/es-ES/common.ts
index 483949553e..d74b4d8c04 100644
--- a/web/i18n/es-ES/common.ts
+++ b/web/i18n/es-ES/common.ts
@@ -544,7 +544,7 @@ const translation = {
vectorHash: 'Hash de vector:',
hitScore: 'Puntuación de recuperación:',
},
- inputPlaceholder: 'Hablar con el bot',
+ inputPlaceholder: 'Por favor, cuéntame sobre tu problema, utiliza Mayús + Intro para una nueva línea',
thinking: 'Pensamiento...',
thought: 'Pensamiento',
},
diff --git a/web/i18n/fa-IR/common.ts b/web/i18n/fa-IR/common.ts
index 5ca55da25b..73487e344c 100644
--- a/web/i18n/fa-IR/common.ts
+++ b/web/i18n/fa-IR/common.ts
@@ -544,7 +544,7 @@ const translation = {
vectorHash: 'هش بردار:',
hitScore: 'امتیاز بازیابی:',
},
- inputPlaceholder: 'با ربات صحبت کنید',
+ inputPlaceholder: 'لطفاً مشکل خود را به من بگویید، از Shift + Enter برای خط جدید استفاده کنید',
thought: 'فکر',
thinking: 'تفکر...',
},
diff --git a/web/i18n/fr-FR/common.ts b/web/i18n/fr-FR/common.ts
index a7fc9c671d..61cdbb0c0b 100644
--- a/web/i18n/fr-FR/common.ts
+++ b/web/i18n/fr-FR/common.ts
@@ -540,7 +540,7 @@ const translation = {
vectorHash: 'Hachage vectoriel:',
hitScore: 'Score de Récupération:',
},
- inputPlaceholder: 'Parler au bot',
+ inputPlaceholder: 'Veuillez me parler de votre problème, utilisez Maj + Entrée pour une nouvelle ligne',
thinking: 'Pensée...',
thought: 'Pensée',
},
diff --git a/web/i18n/hi-IN/common.ts b/web/i18n/hi-IN/common.ts
index dab3229fe2..7cc446a772 100644
--- a/web/i18n/hi-IN/common.ts
+++ b/web/i18n/hi-IN/common.ts
@@ -562,7 +562,7 @@ const translation = {
vectorHash: 'वेक्टर हैश:',
hitScore: 'पुनः प्राप्ति स्कोर:',
},
- inputPlaceholder: 'बॉट से बात करें',
+ inputPlaceholder: 'कृपया अपनी समस्या के बारे में मुझे बताएं, नई पंक्ति के लिए Shift + Enter का उपयोग करें',
thought: 'विचार',
thinking: 'सोचते हुए...',
},
diff --git a/web/i18n/it-IT/common.ts b/web/i18n/it-IT/common.ts
index a413a9ef68..ff385552ba 100644
--- a/web/i18n/it-IT/common.ts
+++ b/web/i18n/it-IT/common.ts
@@ -571,7 +571,7 @@ const translation = {
vectorHash: 'Hash del vettore:',
hitScore: 'Punteggio di recupero:',
},
- inputPlaceholder: 'Parla con il bot',
+ inputPlaceholder: 'Per favore, parlami del tuo problema, usa Maiusc + Invio per una nuova riga',
thinking: 'Pensante...',
thought: 'Pensiero',
},
diff --git a/web/i18n/ja-JP/common.ts b/web/i18n/ja-JP/common.ts
index f2d7e0b4f0..a657606288 100644
--- a/web/i18n/ja-JP/common.ts
+++ b/web/i18n/ja-JP/common.ts
@@ -561,7 +561,7 @@ const translation = {
vectorHash: 'ベクトルハッシュ:',
hitScore: '検索スコア:',
},
- inputPlaceholder: 'ボットと話す',
+ inputPlaceholder: 'お困りの問題について教えてください。新しい行では Shift + Enter を使用します',
thought: '思考',
thinking: '考え中...',
},
diff --git a/web/i18n/ko-KR/common.ts b/web/i18n/ko-KR/common.ts
index aff00be97a..778a268d99 100644
--- a/web/i18n/ko-KR/common.ts
+++ b/web/i18n/ko-KR/common.ts
@@ -536,7 +536,7 @@ const translation = {
vectorHash: '벡터 해시:',
hitScore: '검색 점수:',
},
- inputPlaceholder: '봇과 대화',
+ inputPlaceholder: '문제에 대해 말씀해 주세요, 줄 바꿈을 위해 Shift + Enter 를 사용하세요',
thought: '생각',
thinking: '생각...',
},
diff --git a/web/i18n/pl-PL/common.ts b/web/i18n/pl-PL/common.ts
index b0ef026f5e..ee0ff6cce4 100644
--- a/web/i18n/pl-PL/common.ts
+++ b/web/i18n/pl-PL/common.ts
@@ -555,7 +555,7 @@ const translation = {
vectorHash: 'Wektor hash:',
hitScore: 'Wynik trafień:',
},
- inputPlaceholder: 'Porozmawiaj z botem',
+ inputPlaceholder: 'Proszę opowiedz mi o swoim problemie, użyj Shift + Enter, aby dodać nową linię',
thought: 'Myśl',
thinking: 'Myślenie...',
},
diff --git a/web/i18n/pt-BR/common.ts b/web/i18n/pt-BR/common.ts
index eb92d9ab1d..f6baa1c952 100644
--- a/web/i18n/pt-BR/common.ts
+++ b/web/i18n/pt-BR/common.ts
@@ -540,7 +540,7 @@ const translation = {
vectorHash: 'Hash de vetor:',
hitScore: 'Pontuação de recuperação:',
},
- inputPlaceholder: 'Fale com o bot',
+ inputPlaceholder: 'Por favor, conte-me sobre o seu problema, use Shift + Enter para uma nova linha',
thinking: 'Pensante...',
thought: 'Pensamento',
},
diff --git a/web/i18n/ro-RO/common.ts b/web/i18n/ro-RO/common.ts
index e755d59354..cec00d1322 100644
--- a/web/i18n/ro-RO/common.ts
+++ b/web/i18n/ro-RO/common.ts
@@ -540,7 +540,7 @@ const translation = {
vectorHash: 'Hash vector:',
hitScore: 'Scor de recuperare:',
},
- inputPlaceholder: 'Vorbește cu Bot',
+ inputPlaceholder: 'Vă rog să-mi spuneți despre problema dumneavoastră, folosiți Shift + Enter pentru o nouă linie',
thinking: 'Gândire...',
thought: 'Gând',
},
diff --git a/web/i18n/ru-RU/common.ts b/web/i18n/ru-RU/common.ts
index de925d1742..7cc005bdc5 100644
--- a/web/i18n/ru-RU/common.ts
+++ b/web/i18n/ru-RU/common.ts
@@ -544,7 +544,7 @@ const translation = {
vectorHash: 'Векторный хэш:',
hitScore: 'Оценка совпадения:',
},
- inputPlaceholder: 'Поговорить с ботом',
+ inputPlaceholder: 'Пожалуйста, расскажите мне о своей проблеме, используйте Shift + Enter для новой строки',
thinking: 'Мыслящий...',
thought: 'Мысль',
},
diff --git a/web/i18n/sl-SI/app-debug.ts b/web/i18n/sl-SI/app-debug.ts
index 8672fa5c58..fcd6a84232 100644
--- a/web/i18n/sl-SI/app-debug.ts
+++ b/web/i18n/sl-SI/app-debug.ts
@@ -1,3 +1,5 @@
+// eslint-disable-next-line ts/ban-ts-comment
+// @ts-ignore
const translation = {
pageTitle: {
line1: 'PROMPT',
diff --git a/web/i18n/sl-SI/common.ts b/web/i18n/sl-SI/common.ts
index ce80c8a086..bdf724a834 100644
--- a/web/i18n/sl-SI/common.ts
+++ b/web/i18n/sl-SI/common.ts
@@ -740,7 +740,7 @@ const translation = {
title: 'CITATI',
},
conversationNameCanNotEmpty: 'Zahtevano ime pogovora',
- inputPlaceholder: 'Pogovorite se z botom',
+ inputPlaceholder: 'Prosimo, povejte mi o svoji težavi, uporabite Shift + Enter za novo vrstico',
renameConversation: 'Preimenovanje pogovora',
conversationName: 'Ime pogovora',
conversationNamePlaceholder: 'Prosimo, vnesite ime pogovora',
diff --git a/web/i18n/th-TH/common.ts b/web/i18n/th-TH/common.ts
index fca1dc428c..daa059b289 100644
--- a/web/i18n/th-TH/common.ts
+++ b/web/i18n/th-TH/common.ts
@@ -539,7 +539,7 @@ const translation = {
vectorHash: 'แฮชเวกเตอร์:',
hitScore: 'คะแนนการดึงข้อมูล:',
},
- inputPlaceholder: 'พูดคุยกับบอท',
+ inputPlaceholder: 'กรุณาบอกฉันเกี่ยวกับปัญหาของคุณ ใช้ Shift + Enter เพื่อขึ้นบรรทัดใหม่',
thought: 'ความคิด',
thinking: 'ความคิด ',
},
diff --git a/web/i18n/tr-TR/common.ts b/web/i18n/tr-TR/common.ts
index d66c226aa6..9fd25a6175 100644
--- a/web/i18n/tr-TR/common.ts
+++ b/web/i18n/tr-TR/common.ts
@@ -544,7 +544,7 @@ const translation = {
vectorHash: 'Vektör Hash:',
hitScore: 'Geri Alım Skoru:',
},
- inputPlaceholder: 'Bot ile konuş',
+ inputPlaceholder: 'Lütfen karşılaştığınız sorunu bana anlatın, yeni satır için Shift + Enter kullanın',
thought: 'Düşünce',
thinking: 'Düşünü...',
},
diff --git a/web/i18n/uk-UA/common.ts b/web/i18n/uk-UA/common.ts
index 7416e30594..34f788b719 100644
--- a/web/i18n/uk-UA/common.ts
+++ b/web/i18n/uk-UA/common.ts
@@ -541,7 +541,7 @@ const translation = {
vectorHash: 'Хеш вектора:',
hitScore: 'Оцінка звернення:',
},
- inputPlaceholder: 'Поговоріть з ботом',
+ inputPlaceholder: 'Будь ласка, розкажіть мені про вашу проблему, використовуйте Shift + Enter для нового рядка',
thought: 'Думка',
thinking: 'Мислення...',
},
diff --git a/web/i18n/vi-VN/common.ts b/web/i18n/vi-VN/common.ts
index 2ce9c3c41a..de07925633 100644
--- a/web/i18n/vi-VN/common.ts
+++ b/web/i18n/vi-VN/common.ts
@@ -540,7 +540,7 @@ const translation = {
vectorHash: 'Vector hash:',
hitScore: 'Điểm truy xuất:',
},
- inputPlaceholder: 'Nói chuyện với Bot',
+ inputPlaceholder: 'Vui lòng cho tôi biết vấn đề bạn gặp phải, sử dụng Shift + Enter để xuống dòng',
thought: 'Tư duy',
thinking: 'Suy nghĩ...',
},
diff --git a/web/i18n/zh-Hans/common.ts b/web/i18n/zh-Hans/common.ts
index 22211a92aa..93599efc05 100644
--- a/web/i18n/zh-Hans/common.ts
+++ b/web/i18n/zh-Hans/common.ts
@@ -561,7 +561,7 @@ const translation = {
vectorHash: '向量哈希:',
hitScore: '召回得分:',
},
- inputPlaceholder: '和机器人聊天',
+ inputPlaceholder: '请将您遇到的问题告诉我,使用 Shift + Enter 换行',
thinking: '深度思考中...',
thought: '已深度思考',
resend: '重新发送',
diff --git a/web/i18n/zh-Hant/common.ts b/web/i18n/zh-Hant/common.ts
index cf15a00d61..d7ff8f96b3 100644
--- a/web/i18n/zh-Hant/common.ts
+++ b/web/i18n/zh-Hant/common.ts
@@ -540,7 +540,7 @@ const translation = {
vectorHash: '向量雜湊:',
hitScore: '召回得分:',
},
- inputPlaceholder: '與 Bot 對話',
+ inputPlaceholder: '請將您遇到的問題告訴我,使用 Shift + Enter 換行',
thinking: '思維。。。',
thought: '思想',
},
diff --git a/web/public/embed.js b/web/public/embed.js
index 1efa541a88..59db8c9a75 100644
--- a/web/public/embed.js
+++ b/web/public/embed.js
@@ -6,13 +6,13 @@
// attention: This JavaScript script must be placed after the element. Otherwise, the script will not work.
-(function () {
+(function() {
// Constants for DOM element IDs and configuration key
- const configKey = "difyChatbotConfig";
- const buttonId = "dify-chatbot-bubble-button";
- const iframeId = "dify-chatbot-bubble-window";
- const config = window[configKey];
- let isExpanded = false;
+ const configKey = 'difyChatbotConfig'
+ const buttonId = 'dify-chatbot-bubble-button'
+ const iframeId = 'dify-chatbot-bubble-window'
+ const config = window[configKey]
+ let isExpanded = false
// SVG icons for open and close states
const svgIcons = `