@lobehub/chat 0.153.1 → 0.154.0
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 +25 -0
- package/docs/self-hosting/advanced/authentication.mdx +25 -18
- package/docs/self-hosting/advanced/authentication.zh-CN.mdx +26 -17
- package/docs/self-hosting/advanced/model-list.mdx +2 -2
- package/docs/self-hosting/advanced/model-list.zh-CN.mdx +2 -2
- package/docs/self-hosting/environment-variables/auth.mdx +48 -39
- package/docs/self-hosting/environment-variables/auth.zh-CN.mdx +49 -43
- package/locales/ar/auth.json +6 -0
- package/locales/ar/clerk.json +769 -0
- package/locales/ar/common.json +1 -0
- package/locales/ar/error.json +8 -0
- package/locales/bg-BG/auth.json +6 -0
- package/locales/bg-BG/clerk.json +769 -0
- package/locales/bg-BG/common.json +1 -0
- package/locales/bg-BG/error.json +8 -0
- package/locales/de-DE/auth.json +6 -0
- package/locales/de-DE/clerk.json +769 -0
- package/locales/de-DE/common.json +1 -0
- package/locales/de-DE/error.json +8 -0
- package/locales/en-US/auth.json +6 -0
- package/locales/en-US/clerk.json +769 -0
- package/locales/en-US/common.json +1 -0
- package/locales/en-US/error.json +8 -0
- package/locales/es-ES/auth.json +6 -0
- package/locales/es-ES/clerk.json +769 -0
- package/locales/es-ES/common.json +1 -0
- package/locales/es-ES/error.json +8 -0
- package/locales/fr-FR/auth.json +6 -0
- package/locales/fr-FR/clerk.json +769 -0
- package/locales/fr-FR/common.json +1 -0
- package/locales/fr-FR/error.json +8 -0
- package/locales/it-IT/auth.json +6 -0
- package/locales/it-IT/clerk.json +769 -0
- package/locales/it-IT/common.json +1 -0
- package/locales/it-IT/error.json +8 -0
- package/locales/ja-JP/auth.json +6 -0
- package/locales/ja-JP/clerk.json +769 -0
- package/locales/ja-JP/common.json +1 -0
- package/locales/ja-JP/error.json +8 -0
- package/locales/ko-KR/auth.json +6 -0
- package/locales/ko-KR/clerk.json +769 -0
- package/locales/ko-KR/common.json +1 -0
- package/locales/ko-KR/error.json +8 -0
- package/locales/nl-NL/auth.json +6 -0
- package/locales/nl-NL/clerk.json +769 -0
- package/locales/nl-NL/common.json +1 -0
- package/locales/nl-NL/error.json +8 -0
- package/locales/pl-PL/auth.json +6 -0
- package/locales/pl-PL/clerk.json +769 -0
- package/locales/pl-PL/common.json +1 -0
- package/locales/pl-PL/error.json +8 -0
- package/locales/pt-BR/auth.json +6 -0
- package/locales/pt-BR/clerk.json +769 -0
- package/locales/pt-BR/common.json +1 -0
- package/locales/pt-BR/error.json +8 -0
- package/locales/ru-RU/auth.json +6 -0
- package/locales/ru-RU/clerk.json +769 -0
- package/locales/ru-RU/common.json +1 -0
- package/locales/ru-RU/error.json +8 -0
- package/locales/tr-TR/auth.json +6 -0
- package/locales/tr-TR/clerk.json +769 -0
- package/locales/tr-TR/common.json +1 -0
- package/locales/tr-TR/error.json +8 -0
- package/locales/vi-VN/auth.json +6 -0
- package/locales/vi-VN/clerk.json +769 -0
- package/locales/vi-VN/common.json +1 -0
- package/locales/vi-VN/error.json +8 -0
- package/locales/zh-CN/auth.json +6 -0
- package/locales/zh-CN/clerk.json +769 -0
- package/locales/zh-CN/common.json +1 -0
- package/locales/zh-CN/error.json +8 -0
- package/locales/zh-TW/auth.json +6 -0
- package/locales/zh-TW/clerk.json +769 -0
- package/locales/zh-TW/common.json +1 -0
- package/locales/zh-TW/error.json +8 -0
- package/package.json +5 -1
- package/src/app/(auth)/layout.tsx +19 -0
- package/src/app/(auth)/login/[[...login]]/PageTitle.tsx +13 -0
- package/src/app/(auth)/login/[[...login]]/page.tsx +14 -0
- package/src/app/(auth)/profile/[[...slugs]]/PageTitle.tsx +13 -0
- package/src/app/(auth)/profile/[[...slugs]]/page.tsx +14 -0
- package/src/app/(auth)/signup/[[...signup]]/PageTitle.tsx +13 -0
- package/src/app/(auth)/signup/[[...signup]]/page.tsx +14 -0
- package/src/app/(main)/settings/common/features/Common.tsx +1 -1
- package/src/app/(main)/settings/common/features/Theme/index.tsx +2 -0
- package/src/app/(main)/settings/common/index.tsx +7 -3
- package/src/app/api/chat/[provider]/route.test.ts +76 -3
- package/src/app/api/chat/auth/index.test.ts +77 -0
- package/src/app/api/chat/auth/index.ts +19 -3
- package/src/app/api/chat/auth/utils.ts +31 -9
- package/src/app/api/plugin/gateway/route.ts +3 -3
- package/src/config/auth.ts +146 -0
- package/src/config/server/index.ts +1 -3
- package/src/const/auth.ts +7 -0
- package/src/features/Conversation/Error/ClerkLogin/index.tsx +47 -0
- package/src/features/Conversation/Error/index.tsx +5 -0
- package/src/features/Conversation/components/InboxWelcome/index.tsx +4 -17
- package/src/features/User/UserAvatar.tsx +11 -5
- package/src/features/User/UserInfo.tsx +8 -7
- package/src/features/User/UserLoginOrSignup.tsx +23 -0
- package/src/features/User/UserPanel/PanelContent.tsx +74 -0
- package/src/features/User/UserPanel/UpgradeBadge.tsx +19 -0
- package/src/features/User/UserPanel/index.tsx +8 -27
- package/src/features/User/UserPanel/useMenu.tsx +49 -21
- package/src/features/User/__tests__/PanelContent.test.tsx +151 -0
- package/src/features/User/__tests__/UserAvatar.test.tsx +78 -0
- package/src/hooks/useGreeting/greetingTime.ts +14 -0
- package/src/hooks/useGreeting/index.ts +16 -0
- package/src/layout/AuthProvider/Clerk/UserUpdater.tsx +41 -0
- package/src/layout/AuthProvider/Clerk/index.tsx +26 -0
- package/src/layout/AuthProvider/Clerk/useAppearance.ts +118 -0
- package/src/layout/AuthProvider/index.tsx +8 -4
- package/src/libs/next-auth/index.ts +4 -6
- package/src/libs/next-auth/sso-providers/auth0.ts +4 -6
- package/src/libs/next-auth/sso-providers/authentik.ts +4 -6
- package/src/libs/next-auth/sso-providers/azure-ad.ts +4 -6
- package/src/libs/next-auth/sso-providers/github.ts +3 -5
- package/src/libs/next-auth/sso-providers/zitadel.ts +4 -6
- package/src/locales/default/auth.ts +6 -0
- package/src/locales/default/clerk.ts +782 -0
- package/src/locales/default/common.ts +2 -0
- package/src/locales/default/error.ts +8 -0
- package/src/locales/default/index.ts +4 -0
- package/src/middleware.ts +19 -6
- package/src/server/globalConfig/index.ts +2 -2
- package/src/store/user/selectors.ts +1 -1
- package/src/store/user/slices/auth/action.test.ts +105 -0
- package/src/store/user/slices/auth/action.ts +40 -5
- package/src/store/user/slices/auth/initialState.ts +15 -0
- package/src/store/user/slices/auth/selectors.test.ts +127 -0
- package/src/store/user/slices/auth/selectors.ts +38 -1
- package/src/store/user/slices/settings/selectors/selectors.test.ts +25 -0
- package/src/store/user/slices/settings/selectors/settings.ts +6 -0
- package/src/types/fetch.ts +1 -0
- package/src/config/server/auth.ts +0 -71
- package/src/features/User/UserPanel/Popover.tsx +0 -35
package/locales/ko-KR/error.json
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
+
"clerkAuth": {
|
|
3
|
+
"loginSuccess": {
|
|
4
|
+
"action": "계속하기",
|
|
5
|
+
"desc": "{{greeting}}님, 다시 뵙게 되어 기쁩니다. 이전 대화를 이어나갈까요?",
|
|
6
|
+
"title": "다시 환영합니다, {{nickName}}"
|
|
7
|
+
}
|
|
8
|
+
},
|
|
2
9
|
"error": {
|
|
3
10
|
"backHome": "홈페이지로 돌아가기",
|
|
4
11
|
"desc": "잠시 후 다시 시도하거나 익숙한 세계로 돌아가세요",
|
|
@@ -54,6 +61,7 @@
|
|
|
54
61
|
"InvalidAnthropicAPIKey": "Anthropic API 키가 잘못되었거나 비어 있습니다. Anthropic API 키를 확인하고 다시 시도하십시오.",
|
|
55
62
|
"InvalidAzureAPIKey": "잘못된 또는 비어 있는 Azure API Key입니다. Azure API Key를 확인한 후 다시 시도하십시오.",
|
|
56
63
|
"InvalidBedrockCredentials": "Bedrock 인증에 실패했습니다. AccessKeyId/SecretAccessKey를 확인한 후 다시 시도하십시오.",
|
|
64
|
+
"InvalidClerkUser": "죄송합니다. 현재 로그인되어 있지 않습니다. 계속하려면 먼저 로그인하거나 계정을 등록해주세요.",
|
|
57
65
|
"InvalidGoogleAPIKey": "잘못된 또는 비어 있는 Google API Key입니다. Google API Key를 확인한 후 다시 시도하십시오.",
|
|
58
66
|
"InvalidGroqAPIKey": "잘못된 또는 비어 있는 Groq API Key입니다. Groq API Key를 확인한 후 다시 시도하십시오.",
|
|
59
67
|
"InvalidMinimaxAPIKey": "잘못된 Minimax API 키이거나 비어 있습니다. Minimax API 키를 확인한 후 다시 시도해주세요.",
|