@lobehub/chat 0.149.2 → 0.149.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,31 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 0.149.3](https://github.com/lobehub/lobe-chat/compare/v0.149.2...v0.149.3)
6
+
7
+ <sup>Released on **2024-04-25**</sup>
8
+
9
+ #### 💄 Styles
10
+
11
+ - **misc**: Add displaying the message "Reset Successfully.".
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Styles
19
+
20
+ - **misc**: Add displaying the message "Reset Successfully.", closes [#2158](https://github.com/lobehub/lobe-chat/issues/2158) ([27913ef](https://github.com/lobehub/lobe-chat/commit/27913ef))
21
+
22
+ </details>
23
+
24
+ <div align="right">
25
+
26
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
27
+
28
+ </div>
29
+
5
30
  ### [Version 0.149.2](https://github.com/lobehub/lobe-chat/compare/v0.149.1...v0.149.2)
6
31
 
7
32
  <sup>Released on **2024-04-24**</sup>
@@ -22,6 +22,7 @@
22
22
  "confirm": "هل تؤكد إعادة تعيين جميع الإعدادات؟",
23
23
  "currentVersion": "الإصدار الحالي",
24
24
  "desc": "إعادة تعيين جميع عناصر الإعدادات إلى القيم الافتراضية",
25
+ "success": "تمت إعادة ضبط جميع الإعدادات",
25
26
  "title": "إعادة تعيين جميع الإعدادات"
26
27
  }
27
28
  },
@@ -22,6 +22,7 @@
22
22
  "confirm": "Потвърдете нулирането на всички настройки?",
23
23
  "currentVersion": "Текуща версия",
24
24
  "desc": "Нулирайте всички настройки до стойностите по подразбиране",
25
+ "success": "Всички настройки са нулирани успешно",
25
26
  "title": "Нулиране на всички настройки"
26
27
  }
27
28
  },
@@ -22,6 +22,7 @@
22
22
  "confirm": "Alle Einstellungen zurücksetzen?",
23
23
  "currentVersion": "Aktuelle Version",
24
24
  "desc": "Alle Einstellungen auf Standardwerte zurücksetzen",
25
+ "success": "Alle Einstellungen wurden zurückgesetzt",
25
26
  "title": "Alle Einstellungen zurücksetzen"
26
27
  }
27
28
  },
@@ -22,6 +22,7 @@
22
22
  "confirm": "Confirm to reset all settings?",
23
23
  "currentVersion": "Current Version",
24
24
  "desc": "Reset all settings to default values",
25
+ "success": "All settings have been reset",
25
26
  "title": "Reset All Settings"
26
27
  }
27
28
  },
@@ -22,6 +22,7 @@
22
22
  "confirm": "¿Confirmar el restablecimiento de todas las configuraciones?",
23
23
  "currentVersion": "Versión actual",
24
24
  "desc": "Restablecer todas las opciones de configuración a sus valores predeterminados",
25
+ "success": "Se han restablecido todas las configuraciones",
25
26
  "title": "Restablecer todas las configuraciones"
26
27
  }
27
28
  },
@@ -22,6 +22,7 @@
22
22
  "confirm": "Confirmer la réinitialisation de tous les paramètres ?",
23
23
  "currentVersion": "Version actuelle",
24
24
  "desc": "Réinitialiser tous les paramètres aux valeurs par défaut",
25
+ "success": "Toutes les configurations ont été réinitialisées avec succès",
25
26
  "title": "Réinitialiser tous les paramètres"
26
27
  }
27
28
  },
@@ -22,6 +22,7 @@
22
22
  "confirm": "Confermi di ripristinare tutte le impostazioni?",
23
23
  "currentVersion": "Versione corrente",
24
24
  "desc": "Ripristina tutte le impostazioni ai valori predefiniti",
25
+ "success": "Tutte le impostazioni sono state ripristinate con successo",
25
26
  "title": "Ripristina tutte le impostazioni"
26
27
  }
27
28
  },
@@ -22,6 +22,7 @@
22
22
  "confirm": "すべての設定をリセットしますか?",
23
23
  "currentVersion": "現在のバージョン",
24
24
  "desc": "すべての設定をデフォルト値にリセットします",
25
+ "success": "すべての設定がリセットされました",
25
26
  "title": "すべての設定をリセット"
26
27
  }
27
28
  },
@@ -22,6 +22,7 @@
22
22
  "confirm": "모든 설정을 재설정하시겠습니까?",
23
23
  "currentVersion": "현재 버전",
24
24
  "desc": "모든 설정을 기본값으로 재설정합니다",
25
+ "success": "모든 설정이 재설정되었습니다",
25
26
  "title": "모든 설정 재설정"
26
27
  }
27
28
  },
@@ -22,6 +22,7 @@
22
22
  "confirm": "Alle instellingen resetten bevestigen?",
23
23
  "currentVersion": "Huidige versie",
24
24
  "desc": "Alle instellingen worden teruggezet naar de standaardwaarden",
25
+ "success": "Alle instellingen zijn succesvol gereset",
25
26
  "title": "Alle instellingen resetten"
26
27
  }
27
28
  },
@@ -22,6 +22,7 @@
22
22
  "confirm": "Potwierdź zresetowanie wszystkich ustawień?",
23
23
  "currentVersion": "Aktualna wersja",
24
24
  "desc": "Zresetuj wszystkie ustawienia do wartości domyślnych",
25
+ "success": "Wszystkie ustawienia zostały zresetowane",
25
26
  "title": "Zresetuj wszystkie ustawienia"
26
27
  }
27
28
  },
@@ -22,6 +22,7 @@
22
22
  "confirm": "Confirmar a redefinição de todas as configurações?",
23
23
  "currentVersion": "Versão Atual",
24
24
  "desc": "Redefinir todas as configurações para os valores padrão",
25
+ "success": "Todas as configurações foram redefinidas com sucesso",
25
26
  "title": "Redefinir Todas as Configurações"
26
27
  }
27
28
  },
@@ -22,6 +22,7 @@
22
22
  "confirm": "Вы уверены, что хотите сбросить все настройки?",
23
23
  "currentVersion": "Текущая версия",
24
24
  "desc": "Сброс всех параметров настройки до значений по умолчанию",
25
+ "success": "Все настройки были успешно сброшены",
25
26
  "title": "Сброс всех настроек"
26
27
  }
27
28
  },
@@ -22,6 +22,7 @@
22
22
  "confirm": "Tüm ayarları sıfırlamayı onaylıyor musunuz?",
23
23
  "currentVersion": "Geçerli Sürüm",
24
24
  "desc": "Tüm ayarları varsayılan değerlere sıfırlar",
25
+ "success": "Tüm ayarlar sıfırlandı",
25
26
  "title": "Tüm Ayarları Sıfırla"
26
27
  }
27
28
  },
@@ -22,6 +22,7 @@
22
22
  "confirm": "Xác nhận đặt lại tất cả cài đặt?",
23
23
  "currentVersion": "Phiên bản hiện tại",
24
24
  "desc": "Đặt lại tất cả cài đặt về giá trị mặc định",
25
+ "success": "Đã đặt lại tất cả cài đặt",
25
26
  "title": "Đặt lại tất cả cài đặt"
26
27
  }
27
28
  },
@@ -21,7 +21,8 @@
21
21
  "action": "立即重置",
22
22
  "confirm": "确认重置所有设置?",
23
23
  "currentVersion": "当前版本",
24
- "desc": "重置所有设置项回默认值",
24
+ "desc": "重置所有设置,使用默认值",
25
+ "success": "已重置所有设置",
25
26
  "title": "重置所有设置"
26
27
  }
27
28
  },
@@ -22,6 +22,7 @@
22
22
  "confirm": "確認重置所有設定?",
23
23
  "currentVersion": "當前版本",
24
24
  "desc": "重置所有設定項回預設值",
25
+ "success": "已重設所有設定",
25
26
  "title": "重置所有設定"
26
27
  }
27
28
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "0.149.2",
3
+ "version": "0.149.3",
4
4
  "description": "Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
5
5
  "keywords": [
6
6
  "framework",
@@ -15,8 +15,7 @@ describe('Configuration tests', () => {
15
15
  });
16
16
 
17
17
  it('should contain specific regions in preferredRegion', () => {
18
- expect(preferredRegion).not.contain(['hkg1']);
19
- expect(preferredRegion).not.contain(['dub1']);
18
+ expect(preferredRegion).not.contain(['hk1']);
20
19
  });
21
20
  });
22
21
 
@@ -15,23 +15,6 @@ export const runtime = 'edge';
15
15
 
16
16
  // due to Gemini-1.5-pro is not available in Hong Kong and Ireland, we need to set the preferred region to exclude "Hong Kong" or "Ireland".
17
17
  // refs: https://github.com/lobehub/lobe-chat/pull/2149
18
- export const preferredRegion = [
19
- 'icn1',
20
- 'sin1',
21
- 'hnd1',
22
- 'kix1',
23
- 'bom1',
24
- 'cdg1',
25
- 'lhr1',
26
- 'cpt1',
27
- 'pdx1',
28
- 'arn1',
29
- 'cle1',
30
- 'syd1',
31
- 'iad1',
32
- 'fra1',
33
- 'sfo1',
34
- 'gru1'
35
- ];
18
+ export const preferredRegion = ['cle1', 'iad1', 'pdx1', 'sfo1'];
36
19
 
37
20
  export const POST = async (req: Request) => UniverseRoute(req, { params: { provider: 'google' } });
@@ -68,6 +68,7 @@ const Common = memo<SettingsCommonProps>(({ showAccessCodeConfig, showOAuthLogin
68
68
  onOk: () => {
69
69
  resetSettings();
70
70
  form.setFieldsValue(DEFAULT_SETTINGS);
71
+ message.success(t('danger.reset.success'));
71
72
  },
72
73
  title: t('danger.reset.confirm'),
73
74
  });
@@ -21,7 +21,8 @@ export default {
21
21
  action: '立即重置',
22
22
  confirm: '确认重置所有设置?',
23
23
  currentVersion: '当前版本',
24
- desc: '重置所有设置项回默认值',
24
+ desc: '重置所有设置,使用默认值',
25
+ success: '已重置所有设置',
25
26
  title: '重置所有设置',
26
27
  },
27
28
  },