@lobehub/chat 1.82.8 → 1.82.10

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.
Files changed (49) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/changelog/v1.json +18 -0
  3. package/locales/ar/models.json +18 -3
  4. package/locales/ar/oauth.json +16 -0
  5. package/locales/bg-BG/models.json +18 -3
  6. package/locales/bg-BG/oauth.json +16 -0
  7. package/locales/de-DE/models.json +18 -3
  8. package/locales/de-DE/oauth.json +16 -0
  9. package/locales/en-US/models.json +18 -3
  10. package/locales/en-US/oauth.json +16 -0
  11. package/locales/es-ES/models.json +18 -3
  12. package/locales/es-ES/oauth.json +16 -0
  13. package/locales/fa-IR/models.json +18 -3
  14. package/locales/fa-IR/oauth.json +16 -0
  15. package/locales/fr-FR/models.json +18 -3
  16. package/locales/fr-FR/oauth.json +16 -0
  17. package/locales/it-IT/models.json +18 -3
  18. package/locales/it-IT/oauth.json +16 -0
  19. package/locales/ja-JP/models.json +18 -3
  20. package/locales/ja-JP/oauth.json +16 -0
  21. package/locales/ko-KR/models.json +18 -3
  22. package/locales/ko-KR/oauth.json +16 -0
  23. package/locales/nl-NL/models.json +18 -3
  24. package/locales/nl-NL/oauth.json +16 -0
  25. package/locales/pl-PL/models.json +18 -3
  26. package/locales/pl-PL/oauth.json +16 -0
  27. package/locales/pt-BR/models.json +18 -3
  28. package/locales/pt-BR/oauth.json +16 -0
  29. package/locales/ru-RU/models.json +18 -3
  30. package/locales/ru-RU/oauth.json +16 -0
  31. package/locales/tr-TR/models.json +18 -3
  32. package/locales/tr-TR/oauth.json +16 -0
  33. package/locales/vi-VN/models.json +18 -3
  34. package/locales/vi-VN/oauth.json +16 -0
  35. package/locales/zh-CN/models.json +19 -4
  36. package/locales/zh-CN/oauth.json +16 -0
  37. package/locales/zh-TW/models.json +18 -3
  38. package/locales/zh-TW/oauth.json +16 -0
  39. package/package.json +1 -1
  40. package/src/app/(backend)/oidc/consent/route.ts +12 -0
  41. package/src/app/[variants]/oauth/consent/[uid]/{Client.tsx → Consent.tsx} +6 -40
  42. package/src/app/[variants]/oauth/consent/[uid]/Login.tsx +130 -0
  43. package/src/app/[variants]/oauth/consent/[uid]/components/OAuthApplicationLogo.tsx +82 -0
  44. package/src/app/[variants]/oauth/consent/[uid]/page.tsx +12 -7
  45. package/src/app/[variants]/oauth/handoff/Client.tsx +98 -0
  46. package/src/app/[variants]/oauth/handoff/page.tsx +13 -0
  47. package/src/config/aiModels/wenxin.ts +95 -8
  48. package/src/locales/default/oauth.ts +16 -0
  49. package/src/middleware.ts +1 -0
@@ -34,6 +34,22 @@ const oauth = {
34
34
  subTitle: '您已拒绝授权应用访问您的 LobeChat 账户',
35
35
  title: '授权被拒绝',
36
36
  },
37
+ handoff: {
38
+ desc: {
39
+ processing: '应用正在处理授权,即将跳转下一个页面...',
40
+ success: '已尝试打开桌面应用。如果应用未自动打开,请手动切换。您可以稍后关闭此浏览器窗口。',
41
+ },
42
+ title: {
43
+ processing: '授权处理中...',
44
+ success: '授权已完成',
45
+ },
46
+ },
47
+ login: {
48
+ button: '确认登录',
49
+ description: '应用 {{clientName}} 申请使用您的账户进行登录',
50
+ title: '登录 {{clientName}}',
51
+ userWelcome: '欢迎回来,',
52
+ },
37
53
  success: {
38
54
  subTitle: '您已成功授权应用访问您的 LobeChat 账户,可以关闭该页面了',
39
55
  title: '授权成功',
package/src/middleware.ts CHANGED
@@ -175,6 +175,7 @@ const isProtectedRoute = createRouteMatcher([
175
175
  '/settings(.*)',
176
176
  '/files(.*)',
177
177
  '/onboard(.*)',
178
+ '/oauth(.*)',
178
179
  // ↓ cloud ↓
179
180
  ]);
180
181