Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

⚡️ perf: support no animation mode (#8705)

Arvin Xuff94ef0fea03
diff --git a/locales/ar/setting.json b/locales/ar/setting.json
index 6467cf9eb0d..8cc1b34c0ac 100644
--- a/locales/ar/setting.json
+++ b/locales/ar/setting.json
@@ -183,10 +183,21 @@
"title": "معلومات المساعد"
},
"settingAppearance": {
+ "animationMode": {
+ "agile": "سريع",
+ "desc": "اختر سرعة استجابة حركة التطبيق",
+ "disabled": "إيقاف",
+ "elegant": "أنيق",
+ "title": "حركة الاستجابة"
+ },
"neutralColor": {
"desc": "تخصيص تدرجات الرمادي ذات الاتجاهات اللونية المختلفة",
"title": "لون محايد"
},
+ "noAnimation": {
+ "desc": "تعطيل جميع تأثيرات الحركة في التطبيق",
+ "title": "وضع بدون حركة"
+ },
"preview": {
"title": "لوحة الألوان"
},
diff --git a/locales/bg-BG/setting.json b/locales/bg-BG/setting.json
index 6baf64cabca..514813b21ce 100644
--- a/locales/bg-BG/setting.json
+++ b/locales/bg-BG/setting.json
@@ -183,10 +183,21 @@
"title": "Информация за агента"
},
"settingAppearance": {
+ "animationMode": {
+ "agile": "Бързо",
+ "desc": "Изберете скоростта на анимацията за отговор на действията в приложението",
+ "disabled": "Изключено",
+ "elegant": "Елегантно",
+ "title": "Анимация на отговор"
+ },
"neutralColor": {
"desc": "Персонализиране на сивата скала с различни цветови нюанси",
"title": "Неутрални цветове"
},
+ "noAnimation": {
+ "desc": "Деактивирайте всички анимационни ефекти в приложението",
+ "title": "Режим без анимация"
+ },
"preview": {
"title": "Цветова палитра"
},
diff --git a/locales/de-DE/setting.json b/locales/de-DE/setting.json
index 4a8fe711a73..7aa08c14fdf 100644
--- a/locales/de-DE/setting.json
+++ b/locales/de-DE/setting.json
@@ -183,10 +183,21 @@
"title": "Assistenteninformationen"
},
"settingAppearance": {
+ "animationMode": {
+ "agile": "Agil",
+ "desc": "Wählen Sie die Animationsgeschwindigkeit für die Reaktion der Anwendung",
+ "disabled": "Aus",
+ "elegant": "Elegant",
+ "title": "Reaktionsanimation"
+ },
"neutralColor": {
"desc": "Anpassung der Graustufen mit unterschiedlichen Farbneigungen",
"title": "Neutrale Farben"
},
+ "noAnimation": {
+ "desc": "Deaktivieren Sie alle Animationseffekte in der Anwendung",
+ "title": "Kein Animationsmodus"
+ },
"preview": {
"title": "Farbauswahl"
},
diff --git a/locales/en-US/setting.json b/locales/en-US/setting.json
index 644b99abc69..ba1a94d38dc 100644
--- a/locales/en-US/setting.json
+++ b/locales/en-US/setting.json
@@ -183,10 +183,21 @@
"title": "Assistant Information"
},
"settingAppearance": {
+ "animationMode": {
+ "agile": "Agile",
+ "desc": "Select the animation speed for application response actions",
+ "disabled": "Off",
+ "elegant": "Elegant",
+ "title": "Response Animation"
+ },
"neutralColor": {
"desc": "Custom grayscale with different color tendencies",
"title": "Neutral Color"
},
+ "noAnimation": {
+ "desc": "Disable all animation effects in the application",
+ "title": "No Animation Mode"
+ },
"preview": {
"title": "Color Palette"
},
diff --git a/locales/es-ES/setting.json b/locales/es-ES/setting.json
index b765db5b401..c9c7e7c6d0e 100644
--- a/locales/es-ES/setting.json
+++ b/locales/es-ES/setting.json
@@ -183,10 +183,21 @@
"title": "Información del asistente"
},
"settingAppearance": {
+ "animationMode": {
+ "agile": "Ágil",
+ "desc": "Selecciona la velocidad de la animación para las respuestas de la aplicación",
+ "disabled": "Desactivado",
+ "elegant": "Elegante",
+ "title": "Animación de respuesta"
+ },
"neutralColor": {
"desc": "Personalización de escalas de grises con diferentes inclinaciones de color",
"title": "Color Neutro"
},
+ "noAnimation": {
+ "desc": "Desactiva todos los efectos de animación en la aplicación",
+ "title": "Modo sin animación"
+ },
"preview": {
"title": "Paleta de Colores"
},
diff --git a/locales/fa-IR/setting.json b/locales/fa-IR/setting.json
index c67c8bcf1da..8663eb6e174 100644
--- a/locales/fa-IR/setting.json
+++ b/locales/fa-IR/setting.json
@@ -183,10 +183,21 @@
"title": "اطلاعات دستیار"
},
"settingAppearance": {
+ "animationMode": {
+ "agile": "چابک",
+ "desc": "سرعت انیمیشن پاسخ عملیات برنامه را انتخاب کنید",
+ "disabled": "خاموش",
+ "elegant": "ظریف",
+ "title": "انیمیشن پاسخ"
+ },
"neutralColor": {
"desc": "سفارشی‌سازی مقیاس خاکستری با تم‌های رنگی مختلف",
"title": "رنگ‌های خنثی"
},
+ "noAnimation": {
+ "desc": "تمام جلوه‌های انیمیشنی در برنامه را غیرفعال کنید",
+ "title": "حالت بدون انیمیشن"
+ },
"preview": {
"title": "پالت رنگ"
},
diff --git a/locales/fr-FR/setting.json b/locales/fr-FR/setting.json
index fc4f79452c7..b1890651006 100644
--- a/locales/fr-FR/setting.json
+++ b/locales/fr-FR/setting.json
@@ -183,10 +183,21 @@
"title": "Informations sur l'agent"
},
"settingAppearance": {
+ "animationMode": {
+ "agile": "Agile",
+ "desc": "Choisissez la vitesse d'animation des réponses des actions de l'application",
+ "disabled": "Désactivé",
+ "elegant": "Élégant",
+ "title": "Animation de réponse"
+ },
"neutralColor": {
"desc": "Personnalisation des nuances de gris selon les tendances de couleur",
"title": "Couleur neutre"
},
+ "noAnimation": {
+ "desc": "Désactive toutes les animations dans l'application",
+ "title": "Mode sans animation"
+ },
"preview": {
"title": "Palette de couleurs"
},
diff --git a/locales/it-IT/setting.json b/locales/it-IT/setting.json
index 18578f705b3..6f0fd332c2c 100644
--- a/locales/it-IT/setting.json
+++ b/locales/it-IT/setting.json
@@ -183,10 +183,21 @@
"title": "Informazioni sull'assistente"
},
"settingAppearance": {
+ "animationMode": {
+ "agile": "Agile",
+ "desc": "Seleziona la velocità dell'animazione per la risposta delle azioni dell'applicazione",
+ "disabled": "Disattivato",
+ "elegant": "Elegante",
+ "title": "Animazione di risposta"
+ },
"neutralColor": {
"desc": "Personalizzazione dei grigi con diverse inclinazioni di colore",
"title": "Colore Neutro"
},
+ "noAnimation": {
+ "desc": "Disabilita tutte le animazioni nell'applicazione",
+ "title": "Modalità senza animazioni"
+ },
"preview": {
"title": "Tavolozza"
},
diff --git a/locales/ja-JP/setting.json b/locales/ja-JP/setting.json
index 8c68e91f797..836d0675232 100644
--- a/locales/ja-JP/setting.json
+++ b/locales/ja-JP/setting.json
@@ -183,10 +183,21 @@
"title": "アシスタント情報"
},
"settingAppearance": {
+ "animationMode": {
+ "agile": "敏捷",
+ "desc": "アプリケーションの操作応答のアニメーション速度を選択します",
+ "disabled": "オフ",
+ "elegant": "エレガント",
+ "title": "応答アニメーション"
+ },
"neutralColor": {
"desc": "異なる色彩傾向のグレースケールカスタマイズ",
"title": "ニュートラルカラー"
},
+ "noAnimation": {
+ "desc": "アプリ内のすべてのアニメーション効果を無効にします",
+ "title": "アニメーションなしモード"
+ },
"preview": {
"title": "カラーパレット"
},
diff --git a/locales/ko-KR/setting.json b/locales/ko-KR/setting.json
index b69a1bb6b62..b3a590d9f96 100644
--- a/locales/ko-KR/setting.json
+++ b/locales/ko-KR/setting.json
@@ -183,10 +183,21 @@
"title": "도우미 정보"
},
"settingAppearance": {
+ "animationMode": {
+ "agile": "민첩함",
+ "desc": "애플리케이션의 동작 반응 애니메이션 속도를 선택하세요",
+ "disabled": "끄기",
+ "elegant": "우아함",
+ "title": "반응 애니메이션"
+ },
"neutralColor": {
"desc": "다양한 색조의 그레이스케일 사용자 정의",
"title": "중립 색상"
},
+ "noAnimation": {
+ "desc": "애플리케이션 내 모든 애니메이션 효과를 비활성화합니다",
+ "title": "애니메이션 없음 모드"
+ },
"preview": {
"title": "팔레트"
},
diff --git a/locales/nl-NL/setting.json b/locales/nl-NL/setting.json
index 2f722b8e2b3..2d387a0a414 100644
--- a/locales/nl-NL/setting.json
+++ b/locales/nl-NL/setting.json
@@ -183,10 +183,21 @@
"title": "Assistentinformatie"
},
"settingAppearance": {
+ "animationMode": {
+ "agile": "Behendig",
+ "desc": "Kies de animatiesnelheid voor de reactietijd van de applicatie",
+ "disabled": "Uitgeschakeld",
+ "elegant": "Elegant",
+ "title": "Reactie-animatie"
+ },
"neutralColor": {
"desc": "Aangepaste grijstinten met verschillende kleurvoorkeuren",
"title": "Neutrale kleur"
},
+ "noAnimation": {
+ "desc": "Schakel alle animatie-effecten in de applicatie uit",
+ "title": "Animatie uit modus"
+ },
"preview": {
"title": "Kleurpalet"
},
diff --git a/locales/pl-PL/setting.json b/locales/pl-PL/setting.json
index 2c256c95a51..bca01608fa6 100644
--- a/locales/pl-PL/setting.json
+++ b/locales/pl-PL/setting.json
@@ -183,10 +183,21 @@
"title": "Informacje o asystencie"
},
"settingAppearance": {
+ "animationMode": {
+ "agile": "Zwinny",
+ "desc": "Wybierz prędkość animacji reakcji aplikacji",
+ "disabled": "Wyłączone",
+ "elegant": "Elegancki",
+ "title": "Animacja reakcji"
+ },
"neutralColor": {
"desc": "Dostosowanie odcieni szarości w różnych kolorach",
"title": "Kolor neutralny"
},
+ "noAnimation": {
+ "desc": "Wyłącz wszystkie efekty animacji w aplikacji",
+ "title": "Tryb bez animacji"
+ },
"preview": {
"title": "Paleta kolorów"
},
diff --git a/locales/pt-BR/setting.json b/locales/pt-BR/setting.json
index 069f2f1fb6a..cd196ab5e5e 100644
--- a/locales/pt-BR/setting.json
+++ b/locales/pt-BR/setting.json
@@ -183,10 +183,21 @@
"title": "Informações do assistente"
},
"settingAppearance": {
+ "animationMode": {
+ "agile": "Ágil",
+ "desc": "Escolha a velocidade da animação para as respostas das ações do aplicativo",
+ "disabled": "Desativado",
+ "elegant": "Elegante",
+ "title": "Animação de Resposta"
+ },
"neutralColor": {
"desc": "Personalização de escala de cinza com diferentes inclinações de cor",
"title": "Cor Neutra"
},
+ "noAnimation": {
+ "desc": "Desativa todos os efeitos de animação no aplicativo",
+ "title": "Modo Sem Animação"
+ },
"preview": {
"title": "Paleta de Cores"
},
diff --git a/locales/ru-RU/setting.json b/locales/ru-RU/setting.json
index e9bb820d211..1858b3833d1 100644
--- a/locales/ru-RU/setting.json
+++ b/locales/ru-RU/setting.json
@@ -183,10 +183,21 @@
"title": "Информация о помощнике"
},
"settingAppearance": {
+ "animationMode": {
+ "agile": "Быстрый",
+ "desc": "Выберите скорость анимации отклика приложения",
+ "disabled": "Выключено",
+ "elegant": "Элегантный",
+ "title": "Анимация отклика"
+ },
"neutralColor": {
"desc": "Настройка градаций серого с различными цветовыми наклонами",
"title": "Нейтральный цвет"
},
+ "noAnimation": {
+ "desc": "Отключить все анимационные эффекты в приложении",
+ "title": "Режим без анимации"
+ },
"preview": {
"title": "Палитра"
},
diff --git a/locales/tr-TR/setting.json b/locales/tr-TR/setting.json
index 0f3bd90e415..96f6c53b9c3 100644
--- a/locales/tr-TR/setting.json
+++ b/locales/tr-TR/setting.json
@@ -183,10 +183,21 @@
"title": "Asistan Bilgileri"
},
"settingAppearance": {
+ "animationMode": {
+ "agile": "Çevik",
+ "desc": "Uygulamanın işlem yanıt animasyon hızını seçin",
+ "disabled": "Kapalı",
+ "elegant": "Zarif",
+ "title": "Yanıt Animasyonu"
+ },
"neutralColor": {
"desc": "Farklı renk eğilimlerine sahip gri tonları özelleştirme",
"title": "Nötr Renk"
},
+ "noAnimation": {
+ "desc": "Uygulamadaki tüm animasyon efektlerini devre dışı bırak",
+ "title": "Animasyonsuz Mod"
+ },
"preview": {
"title": "Renk Paleti"
},
diff --git a/locales/vi-VN/setting.json b/locales/vi-VN/setting.json
index 9166f9a5867..cadc78cca30 100644
--- a/locales/vi-VN/setting.json
+++ b/locales/vi-VN/setting.json
@@ -183,10 +183,21 @@
"title": "Thông tin trợ lý"
},
"settingAppearance": {
+ "animationMode": {
+ "agile": "Nhanh nhẹn",
+ "desc": "Chọn tốc độ hoạt ảnh phản hồi của ứng dụng",
+ "disabled": "Tắt",
+ "elegant": "Thanh lịch",
+ "title": "Hoạt ảnh phản hồi"
+ },
"neutralColor": {
"desc": "Tùy chỉnh thang độ xám với các xu hướng màu sắc khác nhau",
"title": "Màu trung tính"
},
+ "noAnimation": {
+ "desc": "Vô hiệu hóa tất cả hiệu ứng hoạt ảnh trong ứng dụng",
+ "title": "Chế độ không hoạt ảnh"
+ },
"preview": {
"title": "Bảng màu"
},
diff --git a/locales/zh-CN/setting.json b/locales/zh-CN/setting.json
index 580669ab2d5..d65fb0fa82f 100644
--- a/locales/zh-CN/setting.json
+++ b/locales/zh-CN/setting.json
@@ -183,10 +183,21 @@
"title": "助手信息"
},
"settingAppearance": {
+ "animationMode": {
+ "agile": "敏捷",
+ "desc": "选择应用程序的操作响应的动画速度",
+ "disabled": "关闭",
+ "elegant": "优雅",
+ "title": "响应动画"
+ },
"neutralColor": {
"desc": "不同色彩倾向的灰阶自定义",
"title": "中性色"
},
+ "noAnimation": {
+ "desc": "禁用应用程序中的所有动画效果",
+ "title": "无动画模式"
+ },
"preview": {
"title": "调色盘"
},
diff --git a/locales/zh-TW/setting.json b/locales/zh-TW/setting.json
index 25e1e2873cc..9234ca5de23 100644
--- a/locales/zh-TW/setting.json
+++ b/locales/zh-TW/setting.json
@@ -183,10 +183,21 @@
"title": "助手資訊"
},
"settingAppearance": {
+ "animationMode": {
+ "agile": "敏捷",
+ "desc": "選擇應用程式操作回應的動畫速度",
+ "disabled": "關閉",
+ "elegant": "優雅",
+ "title": "回應動畫"
+ },
"neutralColor": {
"desc": "不同色彩傾向的灰階自訂",
"title": "中性色"
},
+ "noAnimation": {
+ "desc": "停用應用程式中的所有動畫效果",
+ "title": "無動畫模式"
+ },
"preview": {
"title": "調色盤"
},
diff --git a/package.json b/package.json
index aa35d66590b..a0861d29d76 100644
--- a/package.json
+++ b/package.json
@@ -123,25 +123,25 @@
"@ant-design/pro-components": "^2.8.10",
"@anthropic-ai/sdk": "^0.57.0",
"@auth/core": "^0.40.0",
- "@aws-sdk/client-bedrock-runtime": "^3.848.0",
- "@aws-sdk/client-s3": "^3.850.0",
- "@aws-sdk/s3-request-presigner": "^3.850.0",
+ "@aws-sdk/client-bedrock-runtime": "^3.862.0",
+ "@aws-sdk/client-s3": "^3.862.0",
+ "@aws-sdk/s3-request-presigner": "^3.862.0",
"@azure-rest/ai-inference": "1.0.0-beta.5",
"@azure/core-auth": "^1.10.0",
"@cfworker/json-schema": "^4.1.1",
- "@clerk/localizations": "^3.20.6",
- "@clerk/nextjs": "^6.28.1",
- "@clerk/themes": "^2.4.4",
+ "@clerk/localizations": "^3.20.7",
+ "@clerk/nextjs": "^6.29.0",
+ "@clerk/themes": "^2.4.5",
"@codesandbox/sandpack-react": "^2.20.0",
"@cyntler/react-doc-viewer": "^1.17.0",
"@electric-sql/pglite": "0.2.17",
"@fal-ai/client": "^1.6.1",
"@formkit/auto-animate": "^0.8.2",
- "@google/genai": "^1.10.0",
+ "@google/genai": "^1.13.0",
"@huggingface/inference": "^2.8.1",
"@icons-pack/react-simple-icons": "9.6.0",
"@khmyznikov/pwa-install": "0.3.9",
- "@langchain/community": "^0.3.49",
+ "@langchain/community": "^0.3.50",
"@lobechat/electron-client-ipc": "workspace:*",
"@lobechat/electron-server-ipc": "workspace:*",
"@lobechat/file-loaders": "workspace:*",
@@ -150,29 +150,29 @@
"@lobehub/charts": "^2.0.0",
"@lobehub/chat-plugin-sdk": "^1.32.4",
"@lobehub/chat-plugins-gateway": "^1.9.0",
- "@lobehub/icons": "^2.17.0",
+ "@lobehub/icons": "^2.25.0",
"@lobehub/market-sdk": "^0.22.7",
"@lobehub/tts": "^2.0.1",
- "@lobehub/ui": "^2.7.5",
- "@modelcontextprotocol/sdk": "^1.16.0",
+ "@lobehub/ui": "^2.8.3",
+ "@modelcontextprotocol/sdk": "^1.17.1",
"@neondatabase/serverless": "^1.0.1",
- "@next/third-parties": "^15.4.3",
+ "@next/third-parties": "^15.4.6",
"@react-spring/web": "^9.7.5",
- "@sentry/nextjs": "^7.120.3",
+ "@sentry/nextjs": "^7.120.4",
"@serwist/next": "^9.1.1",
- "@t3-oss/env-nextjs": "^0.13.0",
- "@tanstack/react-query": "^5.83.0",
- "@trpc/client": "^11.4.3",
- "@trpc/next": "^11.4.3",
- "@trpc/react-query": "^11.4.3",
- "@trpc/server": "^11.4.3",
+ "@t3-oss/env-nextjs": "^0.13.8",
+ "@tanstack/react-query": "^5.84.1",
+ "@trpc/client": "^11.4.4",
+ "@trpc/next": "^11.4.4",
+ "@trpc/react-query": "^11.4.4",
+ "@trpc/server": "^11.4.4",
"@vercel/analytics": "^1.5.0",
"@vercel/edge-config": "^1.4.0",
- "@vercel/functions": "^2.2.4",
+ "@vercel/functions": "^2.2.8",
"@vercel/speed-insights": "^1.2.0",
"@xterm/xterm": "^5.5.0",
"ahooks": "^3.9.0",
- "antd": "^5.26.6",
+ "antd": "^5.26.7",
"antd-style": "^3.7.1",
"brotli-wasm": "^3.0.1",
"chroma-js": "^3.1.2",
@@ -182,16 +182,16 @@
"debug": "^4.4.1",
"dexie": "^3.2.7",
"diff": "^7.0.0",
- "drizzle-orm": "^0.44.0",
+ "drizzle-orm": "^0.44.4",
"drizzle-zod": "^0.5.1",
"epub2": "^3.0.2",
"fast-deep-equal": "^3.1.3",
"file-type": "^20.5.0",
- "framer-motion": "^12.23.6",
+ "framer-motion": "^12.23.12",
"gpt-tokenizer": "^2.9.0",
"gray-matter": "^4.0.3",
"html-to-text": "^9.0.5",
- "i18next": "^25.0.0",
+ "i18next": "^25.3.2",
"i18next-browser-languagedetector": "^8.2.0",
"i18next-resources-to-backend": "^1.2.1",
"idb-keyval": "^6.2.2",
@@ -205,7 +205,7 @@
"langfuse-core": "^3.38.4",
"lodash-es": "^4.17.21",
"lucide-react": "^0.536.0",
- "mammoth": "^1.9.1",
+ "mammoth": "^1.10.0",
"markdown-to-txt": "^2.0.1",
"mdast-util-to-markdown": "^2.1.2",
"modern-screenshot": "^4.6.5",
@@ -227,17 +227,17 @@
"pdf-parse": "^1.1.1",
"pdfjs-dist": "4.8.69",
"pg": "^8.16.3",
- "pino": "^9.7.0",
+ "pino": "^9.8.0",
"plaiceholder": "^3.0.0",
"polished": "^4.3.1",
- "posthog-js": "^1.257.2",
+ "posthog-js": "^1.258.6",
"pure-rand": "^7.0.1",
- "pwa-install-handler": "^2.6.2",
+ "pwa-install-handler": "^2.6.3",
"query-string": "^9.2.2",
"random-words": "^2.0.1",
- "react": "^19.1.0",
+ "react": "^19.1.1",
"react-confetti": "^6.4.0",
- "react-dom": "^19.1.0",
+ "react-dom": "^19.1.1",
"react-fast-marquee": "^1.6.5",
"react-hotkeys-hook": "^5.1.0",
"react-i18next": "^15.6.1",
@@ -256,10 +256,10 @@
"rtl-detect": "^1.1.2",
"semver": "^7.7.2",
"sharp": "^0.34.3",
- "shiki": "^3.8.1",
+ "shiki": "^3.9.2",
"stripe": "^17.7.0",
"superjson": "^2.2.2",
- "svix": "^1.69.0",
+ "svix": "^1.70.1",
"swr": "^2.3.4",
"systemjs": "^6.15.1",
"tokenx": "^0.4.1",
@@ -272,7 +272,7 @@
"ws": "^8.18.3",
"y-protocols": "^1.0.6",
"y-webrtc": "^10.3.0",
- "yaml": "^2.8.0",
+ "yaml": "^2.8.1",
"yjs": "^13.6.27",
"zod": "^3.25.76",
"zustand": "5.0.4",
@@ -287,12 +287,12 @@
"@lobehub/lint": "^1.26.2",
"@lobehub/market-types": "^1.11.4",
"@lobehub/seo-cli": "^1.7.0",
- "@next/bundle-analyzer": "^15.4.3",
- "@next/eslint-plugin-next": "^15.4.3",
+ "@next/bundle-analyzer": "^15.4.6",
+ "@next/eslint-plugin-next": "^15.4.6",
"@peculiar/webcrypto": "^1.5.0",
"@prettier/sync": "^0.6.1",
"@semantic-release/exec": "^6.0.3",
- "@testing-library/jest-dom": "^6.6.3",
+ "@testing-library/jest-dom": "^6.6.4",
"@testing-library/react": "^16.3.0",
"@testing-library/user-event": "^14.6.1",
"@types/chroma-js": "^3.1.1",
@@ -304,12 +304,12 @@
"@types/json-schema": "^7.0.15",
"@types/lodash": "^4.17.20",
"@types/lodash-es": "^4.17.12",
- "@types/node": "^22.16.5",
+ "@types/node": "^22.17.0",
"@types/numeral": "^2.0.5",
- "@types/oidc-provider": "^9.1.1",
- "@types/pg": "^8.15.4",
- "@types/react": "^19.1.8",
- "@types/react-dom": "^19.1.6",
+ "@types/oidc-provider": "^9.1.2",
+ "@types/pg": "^8.15.5",
+ "@types/react": "^19.1.9",
+ "@types/react-dom": "^19.1.7",
"@types/rtl-detect": "^1.0.3",
"@types/semver": "^7.7.0",
"@types/systemjs": "^6.15.3",
@@ -332,7 +332,7 @@
"eslint": "^8.57.1",
"eslint-plugin-mdx": "^3.6.2",
"fake-indexeddb": "^6.0.1",
- "fs-extra": "^11.3.0",
+ "fs-extra": "^11.3.1",
"glob": "^11.0.3",
"happy-dom": "^17.6.3",
"husky": "^9.1.7",
@@ -343,7 +343,7 @@
"mcp-hello-world": "^1.1.2",
"mime": "^4.0.7",
"node-fetch": "^3.3.2",
- "node-gyp": "^11.2.0",
+ "node-gyp": "^11.3.0",
"openapi-typescript": "^7.8.0",
"p-map": "^7.0.3",
"prettier": "^3.6.2",
@@ -354,7 +354,7 @@
"semantic-release": "^21.1.2",
"serwist": "^9.1.1",
"stylelint": "^15.11.0",
- "tsx": "^4.20.0",
+ "tsx": "^4.20.3",
"type-fest": "^4.41.0",
"typescript": "^5.9.2",
"unified": "^11.0.5",
diff --git a/packages/types/src/user/settings/general.ts b/packages/types/src/user/settings/general.ts
index e557f7e234d..632176c02e1 100644
--- a/packages/types/src/user/settings/general.ts
+++ b/packages/types/src/user/settings/general.ts
@@ -2,7 +2,10 @@ import type { HighlighterProps, MermaidProps, NeutralColors, PrimaryColors } fro
import { ResponseAnimationStyle } from '@/types/llm';
+export type AnimationMode = 'disabled' | 'agile' | 'elegant';
+
export interface UserGeneralConfig {
+ animationMode?: AnimationMode;
fontSize: number;
highlighterTheme?: HighlighterProps['theme'];
mermaidTheme?: MermaidProps['theme'];
diff --git a/src/app/[variants]/(main)/settings/common/features/Common.tsx b/src/app/[variants]/(main)/settings/common/features/Common.tsx
index 64c4076993d..dbecc1af656 100644
--- a/src/app/[variants]/(main)/settings/common/features/Common.tsx
+++ b/src/app/[variants]/(main)/settings/common/features/Common.tsx
@@ -2,9 +2,9 @@
import { Form, type FormGroupItemType, Icon, ImageSelect, InputPassword } from '@lobehub/ui';
import { Select } from '@lobehub/ui';
-import { Skeleton } from 'antd';
+import { Segmented, Skeleton } from 'antd';
import isEqual from 'fast-deep-equal';
-import { Loader2Icon, Monitor, Moon, Sun } from 'lucide-react';
+import { Ban, Gauge, Loader2Icon, Monitor, Moon, Sun, Waves } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
@@ -22,7 +22,7 @@ const Common = memo(() => {
const { t } = useTranslation('setting');
const showAccessCodeConfig = useServerConfigStore(serverConfigSelectors.enabledAccessCode);
- const settings = useUserStore(settingsSelectors.currentSettings, isEqual);
+ const general = useUserStore((s) => settingsSelectors.currentSettings(s).general, isEqual);
const themeMode = useGlobalStore(systemStatusSelectors.themeMode);
const language = useGlobalStore(systemStatusSelectors.language);
const [setSettings, isUserStateInit] = useUserStore((s) => [s.setSettings, s.isUserStateInit]);
@@ -81,6 +81,34 @@ const Common = memo(() => {
),
label: t('settingCommon.lang.title'),
},
+ {
+ children: (
+ <Segmented
+ options={[
+ {
+ icon: <Icon icon={Ban} size={16} />,
+ label: t('settingAppearance.animationMode.disabled'),
+ value: 'disabled',
+ },
+ {
+ icon: <Icon icon={Gauge} size={16} />,
+ label: t('settingAppearance.animationMode.agile'),
+ value: 'agile',
+ },
+ {
+ icon: <Icon icon={Waves} size={16} />,
+ label: t('settingAppearance.animationMode.elegant'),
+ value: 'elegant',
+ },
+ ]}
+ />
+ ),
+ desc: t('settingAppearance.animationMode.desc'),
+ label: t('settingAppearance.animationMode.title'),
+ minWidth: undefined,
+ name: 'animationMode',
+ },
+
{
children: (
<InputPassword
@@ -100,12 +128,12 @@ const Common = memo(() => {
return (
<Form
- initialValues={settings.keyVaults}
+ initialValues={general}
items={[theme]}
itemsType={'group'}
onValuesChange={async (v) => {
setLoading(true);
- await setSettings({ keyVaults: v });
+ await setSettings({ general: v });
setLoading(false);
}}
variant={'borderless'}
diff --git a/src/const/settings/common.ts b/src/const/settings/common.ts
index e05a5830bb8..7548444e287 100644
--- a/src/const/settings/common.ts
+++ b/src/const/settings/common.ts
@@ -1,6 +1,7 @@
import { UserGeneralConfig } from '@/types/user/settings';
export const DEFAULT_COMMON_SETTINGS: UserGeneralConfig = {
+ animationMode: 'agile',
fontSize: 14,
highlighterTheme: 'lobe-theme',
mermaidTheme: 'lobe-theme',
diff --git a/src/layout/GlobalProvider/AppTheme.tsx b/src/layout/GlobalProvider/AppTheme.tsx
index 23a4ab9e991..0a5c23a0a18 100644
--- a/src/layout/GlobalProvider/AppTheme.tsx
+++ b/src/layout/GlobalProvider/AppTheme.tsx
@@ -102,14 +102,12 @@ const AppTheme = memo<AppThemeProps>(
customFontURL,
customFontFamily,
}) => {
- // console.debug('server:appearance', defaultAppearance);
- // console.debug('server:primaryColor', defaultPrimaryColor);
- // console.debug('server:neutralColor', defaultNeutralColor);
const themeMode = useGlobalStore(systemStatusSelectors.themeMode);
const { styles, cx, theme } = useStyles();
- const [primaryColor, neutralColor] = useUserStore((s) => [
+ const [primaryColor, neutralColor, animationMode] = useUserStore((s) => [
userGeneralSettingsSelectors.primaryColor(s),
userGeneralSettingsSelectors.neutralColor(s),
+ userGeneralSettingsSelectors.animationMode(s),
]);
useEffect(() => {
@@ -138,6 +136,8 @@ const AppTheme = memo<AppThemeProps>(
cssVar: true,
token: {
fontFamily: customFontFamily ? `${customFontFamily},${theme.fontFamily}` : undefined,
+ motion: animationMode !== 'disabled',
+ motionUnit: animationMode === 'agile' ? 0.05 : 0.1,
},
}}
themeMode={themeMode}
diff --git a/src/locales/default/setting.ts b/src/locales/default/setting.ts
index a2c00cc589f..fd4d88514cb 100644
--- a/src/locales/default/setting.ts
+++ b/src/locales/default/setting.ts
@@ -186,10 +186,21 @@ export default {
},
settingAppearance: {
+ animationMode: {
+ agile: '敏捷',
+ desc: '选择应用程序的操作响应的动画速度',
+ disabled: '关闭',
+ elegant: '优雅',
+ title: '响应动画',
+ },
neutralColor: {
desc: '不同色彩倾向的灰阶自定义',
title: '中性色',
},
+ noAnimation: {
+ desc: '禁用应用程序中的所有动画效果',
+ title: '无动画模式',
+ },
preview: {
title: '调色盘',
},
diff --git a/src/server/routers/lambda/agent.ts b/src/server/routers/lambda/agent.ts
index de216ab05de..4067d20417d 100644
--- a/src/server/routers/lambda/agent.ts
+++ b/src/server/routers/lambda/agent.ts
@@ -93,8 +93,8 @@ export const agentRouter = router({
const user = await UserModel.findById(ctx.serverDB, ctx.userId);
if (!user) return DEFAULT_AGENT_CONFIG;
- const res = await ctx.agentService.createInbox();
- pino.info('create inbox session', res);
+ await ctx.agentService.createInbox();
+ pino.info('create inbox session');
}
}
diff --git a/src/server/services/user/index.ts b/src/server/services/user/index.ts
index 34b0706e5de..4c36f9c71a1 100644
--- a/src/server/services/user/index.ts
+++ b/src/server/services/user/index.ts
@@ -123,9 +123,9 @@ export class UserService {
if (!file) {
return null;
}
- const fileBuffer = Buffer.from(file);
- return fileBuffer;
+ return Buffer.from(file);
} catch (error) {
+ // @ts-expect-error 这里很奇怪,升级了 pino 就报错,我怀疑是 pino 的问题
pino.error('Failed to get user avatar:', error);
}
};
diff --git a/src/store/user/slices/settings/selectors/general.test.ts b/src/store/user/slices/settings/selectors/general.test.ts
index dd5558215f3..463a5520e98 100644
--- a/src/store/user/slices/settings/selectors/general.test.ts
+++ b/src/store/user/slices/settings/selectors/general.test.ts
@@ -16,6 +16,7 @@ describe('settingsSelectors', () => {
const result = userGeneralSettingsSelectors.config(s as UserStore);
expect(result).toEqual({
+ animationMode: 'agile',
fontSize: 12,
highlighterTheme: 'lobe-theme',
mermaidTheme: 'lobe-theme',
diff --git a/src/store/user/slices/settings/selectors/general.ts b/src/store/user/slices/settings/selectors/general.ts
index 9097c48f157..1083a490ffd 100644
--- a/src/store/user/slices/settings/selectors/general.ts
+++ b/src/store/user/slices/settings/selectors/general.ts
@@ -9,8 +9,10 @@ const fontSize = (s: UserStore) => generalConfig(s).fontSize;
const highlighterTheme = (s: UserStore) => generalConfig(s).highlighterTheme;
const mermaidTheme = (s: UserStore) => generalConfig(s).mermaidTheme;
const transitionMode = (s: UserStore) => generalConfig(s).transitionMode;
+const animationMode = (s: UserStore) => generalConfig(s).animationMode;
export const userGeneralSettingsSelectors = {
+ animationMode,
config: generalConfig,
fontSize,
highlighterTheme,