Skip to content

Commit

Permalink
✨ feat: add user profile page (lobehub#2433)
Browse files Browse the repository at this point in the history
* ✨ feat: Add profile

* 🔧 chore: Update i18n

* ✅ test: Fix test

* ✅ test: Add tests

* 🐛 fix: Fix enableClerk

* 🔧 chore: Fix .eslintignore

* 🐛 fix: Fix review problem

* 💄 style: Fix UserInfo padding
  • Loading branch information
canisminor1990 authored May 13, 2024
1 parent b791366 commit 91f7294
Show file tree
Hide file tree
Showing 90 changed files with 1,258 additions and 294 deletions.
3 changes: 1 addition & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ coverage

# test
jest*
_test_
__test__
*.test.ts
*.test.tsx

# umi
.umi
Expand Down
2 changes: 2 additions & 0 deletions locales/ar/auth.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"login": "تسجيل الدخول",
"loginOrSignup": "تسجيل الدخول / التسجيل",
"profile": "الملف الشخصي",
"security": "الأمان",
"signout": "تسجيل الخروج",
"signup": "التسجيل"
}
1 change: 1 addition & 0 deletions locales/ar/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@
"userPanel": {
"anonymousNickName": "مستخدم مجهول",
"billing": "إدارة الفواتير",
"data": "تخزين البيانات",
"defaultNickname": "مستخدم النسخة المجتمعية",
"discord": "الدعم المجتمعي",
"docs": "وثائق الاستخدام",
Expand Down
2 changes: 2 additions & 0 deletions locales/bg-BG/auth.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"login": "Вход",
"loginOrSignup": "Вход / Регистрация",
"profile": "Профил",
"security": "Сигурност",
"signout": "Изход",
"signup": "Регистрация"
}
1 change: 1 addition & 0 deletions locales/bg-BG/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@
"userPanel": {
"anonymousNickName": "Анонимен потребител",
"billing": "Управление на сметките",
"data": "Съхранение на данни",
"defaultNickname": "Потребител на общността",
"discord": "Поддръжка на общността",
"docs": "Документация",
Expand Down
6 changes: 3 additions & 3 deletions locales/bg-BG/error.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"clerkAuth": {
"loginSuccess": {
"action": "继续会话",
"desc": "{{greeting}},很高兴能够继续为你服务。让我们接着刚刚的话题聊下去吧",
"title": "欢迎回来, {{nickName}}"
"action": "Continue Session",
"desc": "{{greeting}}, I'm glad to continue serving you. Let's pick up where we left off.",
"title": "Welcome back, {{nickName}}"
}
},
"error": {
Expand Down
2 changes: 2 additions & 0 deletions locales/de-DE/auth.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"login": "Anmelden",
"loginOrSignup": "Anmelden / Registrieren",
"profile": "Profil",
"security": "Sicherheit",
"signout": "Abmelden",
"signup": "Registrieren"
}
1 change: 1 addition & 0 deletions locales/de-DE/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@
"userPanel": {
"anonymousNickName": "Anonymer Benutzer",
"billing": "Abrechnung verwalten",
"data": "Daten speichern",
"defaultNickname": "Community User",
"discord": "Community-Support",
"docs": "Dokumentation",
Expand Down
2 changes: 2 additions & 0 deletions locales/en-US/auth.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"login": "Login",
"loginOrSignup": "Log in / Sign up",
"profile": "Profile",
"security": "Security",
"signout": "Sign out",
"signup": "Sign up"
}
1 change: 1 addition & 0 deletions locales/en-US/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@
"userPanel": {
"anonymousNickName": "Anonymous User",
"billing": "Billing Management",
"data": "Data Storage",
"defaultNickname": "Community User",
"discord": "Community Support",
"docs": "Documentation",
Expand Down
2 changes: 2 additions & 0 deletions locales/es-ES/auth.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"login": "Iniciar sesión",
"loginOrSignup": "Iniciar sesión / Registrarse",
"profile": "Perfil",
"security": "Seguridad",
"signout": "Cerrar sesión",
"signup": "Registrarse"
}
1 change: 1 addition & 0 deletions locales/es-ES/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@
"userPanel": {
"anonymousNickName": "Usuario Anónimo",
"billing": "Gestión de facturación",
"data": "Almacenamiento de datos",
"defaultNickname": "Usuario de la comunidad",
"discord": "Soporte de la comunidad",
"docs": "Documentación de uso",
Expand Down
2 changes: 2 additions & 0 deletions locales/fr-FR/auth.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"login": "Connexion",
"loginOrSignup": "Connexion / Inscription",
"profile": "Profil",
"security": "Sécurité",
"signout": "Déconnexion",
"signup": "Inscription"
}
1 change: 1 addition & 0 deletions locales/fr-FR/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@
"userPanel": {
"anonymousNickName": "Utilisateur anonyme",
"billing": "Gestion de la facturation",
"data": "Stockage des données",
"defaultNickname": "Utilisateur de la version communautaire",
"discord": "Support de la communauté",
"docs": "Documentation d'utilisation",
Expand Down
2 changes: 2 additions & 0 deletions locales/it-IT/auth.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"login": "Accedi",
"loginOrSignup": "Accedi / Registrati",
"profile": "Profilo",
"security": "Sicurezza",
"signout": "Esci",
"signup": "Registrati"
}
1 change: 1 addition & 0 deletions locales/it-IT/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@
"userPanel": {
"anonymousNickName": "Utente Anonimo",
"billing": "Gestione fatturazione",
"data": "Archiviazione dati",
"defaultNickname": "Utente Community",
"discord": "Supporto della community",
"docs": "Documentazione",
Expand Down
2 changes: 2 additions & 0 deletions locales/ja-JP/auth.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"login": "ログイン",
"loginOrSignup": "ログイン / 登録",
"profile": "プロフィール",
"security": "セキュリティ",
"signout": "ログアウト",
"signup": "サインアップ"
}
1 change: 1 addition & 0 deletions locales/ja-JP/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@
"userPanel": {
"anonymousNickName": "匿名ユーザー",
"billing": "請求管理",
"data": "データストレージ",
"defaultNickname": "コミュニティユーザー",
"discord": "コミュニティサポート",
"docs": "使用文書",
Expand Down
2 changes: 2 additions & 0 deletions locales/ko-KR/auth.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"login": "로그인",
"loginOrSignup": "로그인 / 가입",
"profile": "프로필",
"security": "보안",
"signout": "로그아웃",
"signup": "가입"
}
1 change: 1 addition & 0 deletions locales/ko-KR/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@
"userPanel": {
"anonymousNickName": "익명 사용자",
"billing": "결제 관리",
"data": "데이터 저장",
"defaultNickname": "커뮤니티 사용자",
"discord": "커뮤니티 지원",
"docs": "사용 설명서",
Expand Down
2 changes: 2 additions & 0 deletions locales/nl-NL/auth.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"login": "Inloggen",
"loginOrSignup": "Inloggen / Registreren",
"profile": "Profiel",
"security": "Veiligheid",
"signout": "Uitloggen",
"signup": "Registreren"
}
99 changes: 50 additions & 49 deletions locales/nl-NL/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,52 +104,52 @@
"pin": "Vastzetten",
"pinOff": "Vastzetten uitschakelen",
"privacy": "Privacybeleid",
"regenerate": "重新生成",
"rename": "重命名",
"reset": "重置",
"retry": "重试",
"send": "发送",
"setting": "设置",
"share": "分享",
"stop": "停止",
"regenerate": "Opnieuw genereren",
"rename": "Naam wijzigen",
"reset": "Resetten",
"retry": "Opnieuw proberen",
"send": "Verzenden",
"setting": "Instelling",
"share": "Delen",
"stop": "Stoppen",
"sync": {
"actions": {
"settings": "同步设置",
"sync": "立即同步"
"settings": "Synchronisatie-instellingen",
"sync": "Nu synchroniseren"
},
"awareness": {
"current": "当前设备"
"current": "Huidig apparaat"
},
"channel": "频道",
"channel": "Kanaal",
"disabled": {
"actions": {
"enable": "开启云端同步",
"settings": "配置同步参数"
"enable": "Cloudsynchronisatie inschakelen",
"settings": "Synchronisatie-instellingen configureren"
},
"desc": "当前会话数据仅存储于此浏览器中。如果你需要在多个设备间同步数据,请配置并开启云端同步。",
"title": "数据同步未开启"
"desc": "De huidige gespreksgegevens worden alleen opgeslagen in deze browser. Als u gegevens wilt synchroniseren tussen meerdere apparaten, configureer en schakel dan cloudsynchronisatie in.",
"title": "Gegevenssynchronisatie is uitgeschakeld"
},
"enabled": {
"title": "数据同步"
"title": "Gegevenssynchronisatie"
},
"status": {
"connecting": "连接中",
"disabled": "同步未开启",
"ready": "已连接",
"synced": "已同步",
"syncing": "同步中",
"unconnected": "连接失败"
"connecting": "Verbinding maken",
"disabled": "Synchronisatie is uitgeschakeld",
"ready": "Verbonden",
"synced": "Gesynchroniseerd",
"syncing": "Synchroniseren",
"unconnected": "Verbinding mislukt"
},
"title": "同步状态",
"title": "Synchronisatiestatus",
"unconnected": {
"tip": "信令服务器连接失败,将无法建立点对点通信频道,请检查网络后重试"
"tip": "Verbindingsfout met de signaleringsserver. Er kan geen point-to-point-communicatiekanaal worden opgezet. Controleer het netwerk en probeer het opnieuw."
}
},
"tab": {
"chat": "会话",
"market": "发现",
"me": "",
"setting": "设置"
"chat": "Chat",
"market": "Ontdekken",
"me": "Ik",
"setting": "Instellingen"
},
"telemetry": {
"allow": "Toestaan",
Expand All @@ -158,28 +158,29 @@
"learnMore": "Meer informatie",
"title": "Help LobeChat verbeteren"
},
"temp": "临时",
"terms": "Algemene voorwaarden",
"updateAgent": "更新助理信息",
"temp": "tijdelijk",
"terms": "algemene voorwaarden",
"updateAgent": "update assistent",
"upgradeVersion": {
"action": "升级",
"hasNew": "有可用更新",
"newVersion": "有新版本可用:{{version}}"
"action": "upgraden",
"hasNew": "nieuwe versie beschikbaar",
"newVersion": "nieuwe versie beschikbaar: {{version}}"
},
"userPanel": {
"anonymousNickName": "Anonieme gebruiker",
"billing": "账单管理",
"defaultNickname": "Standaardgebruiker",
"discord": "社区支持",
"docs": "使用文档",
"email": "邮件支持",
"feedback": "反馈与建议",
"help": "帮助中心",
"moveGuide": "De instellingenknop is hierheen verplaatst",
"plans": "订阅方案",
"preview": "Voorbeeld",
"profile": "账户管理",
"setting": "应用设置",
"usages": "用量统计"
"anonymousNickName": "anonieme gebruiker",
"billing": "facturatie",
"data": "gegevensopslag",
"defaultNickname": "communitygebruiker",
"discord": "communityondersteuning",
"docs": "gebruiksaanwijzing",
"email": "e-mailondersteuning",
"feedback": "feedback en suggesties",
"help": "helpcentrum",
"moveGuide": "instellingen verplaatst naar hier",
"plans": "abonnementen",
"preview": "voorbeeldversie",
"profile": "accountbeheer",
"setting": "app-instellingen",
"usages": "gebruiksstatistieken"
}
}
2 changes: 2 additions & 0 deletions locales/pl-PL/auth.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"login": "Zaloguj się",
"loginOrSignup": "Zaloguj się / Zarejestruj się",
"profile": "Profil użytkownika",
"security": "Bezpieczeństwo",
"signout": "Wyloguj",
"signup": "Zarejestruj się"
}
1 change: 1 addition & 0 deletions locales/pl-PL/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@
"userPanel": {
"anonymousNickName": "Użytkownik Anonimowy",
"billing": "Zarządzanie rachunkami",
"data": "Przechowywanie danych",
"defaultNickname": "Użytkownik Wersji Społecznościowej",
"discord": "Wsparcie społeczności",
"docs": "Dokumentacja",
Expand Down
6 changes: 3 additions & 3 deletions locales/pl-PL/error.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"clerkAuth": {
"loginSuccess": {
"action": "继续会话",
"desc": "{{greeting}},很高兴能够继续为你服务。让我们接着刚刚的话题聊下去吧",
"title": "欢迎回来, {{nickName}}"
"action": "Continue session",
"desc": "{{greeting}}, it's great to continue serving you. Let's continue our previous conversation.",
"title": "Welcome back, {{nickName}}"
}
},
"error": {
Expand Down
2 changes: 2 additions & 0 deletions locales/pt-BR/auth.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"login": "Entrar",
"loginOrSignup": "Entrar / Registrar",
"profile": "Perfil",
"security": "Segurança",
"signout": "Sair",
"signup": "Cadastre-se"
}
1 change: 1 addition & 0 deletions locales/pt-BR/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@
"userPanel": {
"anonymousNickName": "Usuário Anônimo",
"billing": "Gerenciamento de faturas",
"data": "Armazenamento de dados",
"defaultNickname": "Usuário da Comunidade",
"discord": "Suporte da Comunidade",
"docs": "Documentação",
Expand Down
2 changes: 2 additions & 0 deletions locales/ru-RU/auth.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"login": "Войти",
"loginOrSignup": "Войти / Зарегистрироваться",
"profile": "Профиль",
"security": "Безопасность",
"signout": "Выйти",
"signup": "Зарегистрироваться"
}
1 change: 1 addition & 0 deletions locales/ru-RU/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@
"userPanel": {
"anonymousNickName": "Анонимный пользователь",
"billing": "Управление счетами",
"data": "Хранилище данных",
"defaultNickname": "Пользователь сообщества",
"discord": "Поддержка сообщества",
"docs": "Документация",
Expand Down
6 changes: 3 additions & 3 deletions locales/ru-RU/error.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"clerkAuth": {
"loginSuccess": {
"action": "继续会话",
"desc": "{{greeting}},很高兴能够继续为你服务。让我们接着刚刚的话题聊下去吧",
"title": "欢迎回来, {{nickName}}"
"action": "Продолжить разговор",
"desc": "{{greeting}}, рады снова быть к вашим услугам. Давайте продолжим нашу беседу",
"title": "Добро пожаловать обратно, {{nickName}}"
}
},
"error": {
Expand Down
Loading

0 comments on commit 91f7294

Please sign in to comment.