8000 ✨ feat: add User Stats and Refactor Profile (#5149) · lobehub/lobe-chat@cbc219c · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content 8000

Commit cbc219c

Browse files
✨ feat: add User Stats and Refactor Profile (#5149)
* ♻️ refactor: Refactor Profile * ✅ test: Fix test * ✨ feat: Update nextAuth profile * ♻️ refactor: Refactor hook * 💄 style: Update style * ✅ test: Fix test * 💄 style: Update sats services * ♻️ refactor: Server service arrow function * ✨ feat: Add Rank * ♻️ refactor: rebase * ♻️ refactor: rebase * ✨ feat: Add heatmap * ♻️ refactor: refactor to support upload user profile in next-auth * 💄 style: Update Stats style * 📝 docs: Update i18n * Revert "♻️ refactor: refactor to support upload user profile in next-auth" This reverts commit d479ec3. * ✨ feat: Add Welcome * 💄 style: Update stats style * 💄 style: Update stats style * ✨ feat: Add Share Modal * 🔧 chore: Update i18n * upgrade * upgrade * 💄 style: Update Share style * ✅ test: Fix test * 💄 style: Update Modal Loading * ✨ feat: Add Model Usage Rank * add test and fix some * 🐛 fix: Fix Valid Date * 🐛 fix: Fix test * ✅ test: Fix rank order * 🐛 fix: Fix mobile * 💄 style: Update BrandLoading * 💄 style: Update moible AiHeatmaps style * 💄 style: Add Inbox * 📝 docs: Add Changelog * 📝 docs: Fix typo * ✅ test: Fix test * 📝 docs: Update Changelog * fix --------- Co-authored-by: arvinxx <arvinx@foxmail.com>
1 parent 301a945 commit cbc219c

File tree

137 files changed

+5049
-716
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

137 files changed

+5049
-716
lines changed

docs/.cdn.cache.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"https://github.com/user-attachments/assets/29508dda-2382-430f-bc81-fb23f02149f8": "/blog/assets/29b13dc042e3b839ad8865354afe2fac.webp",
88
"https://github.com/user-attachments/assets/2a4116a7-15ad-43e5-b801-cc62d8da2012": "/blog/assets/37d85fdfccff9ed56e9c6827faee01c7.webp",
99
"https://github.com/user-attachments/assets/385eaca6-daea-484a-9bea-ba7270b4753d": "/blog/assets/d6129350de510a62fe87b2d2f0fb9477.webp",
10+
"https://github.com/user-attachments/assets/3d80e0f5-d32a-4412-85b2-e709731460a0": "/blog/assets2d409f43b58953ad5396c6beab8a0719.webp",
1011
"https://github.com/user-attachments/assets/484f28f4-017c-4ed7-948b-4a8d51f0b63a": "/blog/assets/5bbb4b421d6df63780b3c7a05f5a102d.webp",
1112
"https://github.com/user-attachments/assets/533f7a5e-8a93-4a57-a62f-8233897d72b5": "/blog/assets/9498087e85f27e692716a63cb3b58d79.webp",
1213
"https://github.com/user-attachments/assets/6069332b-8e15-4d3c-8a77-479e8bc09c23": "/blog/assets/603fefbb944bc6761ebdab5956fc0084.webp",
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
title: LobeChat Supports User Data Statistics and Activity Sharing
3+
description: >-
4+
LobeChat now supports multi-dimensional user data statistics and activity
5+
sharing
6+
---
7+
8+
# User Data Statistics and Activity Sharing 💯
9+
10+
Want to know about your activity performance on LobeChat?
11+
12+
Now, you can comprehensively understand your AI data through the statistics feature, and even generate personal activity sharing images to share your LobeChat activity with friends.
13+
14+
## 📊 Data Statistics
15+
16+
- **Statistics**: Number of Assistants / Topics / Messages / Total Word Count
17+
- **Rankings**:
18+
- Model Usage Rate `Top 10`
19+
- Assistant Usage Rate `Top 10`
20+
- Topic Content Volume `Top 10`
21+
- **Heat Map**: Activity distribution over the past year
22+
- **User Activity Sharing**: Generate personal activity sharing images
23+
24+
## 👉 How to Use
25+
26+
1. Requires `PgLite` or `Database` mode
27+
2. Click on your profile picture to enter "Account" - "Data Statistics" page
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
title: LobeChat 支持用户数据统计与活跃度分享
3+
description: LobeChat 现已支持多维度用户数据统计与活跃度分享
4+
---
5+
6+
# 用户数据统计与活跃度分享 💯
7+
8+
想要了解自己在 LobeChat 上的活跃度表现吗?
9+
10+
现在,您可以通过数据统计功能,全方位了解自己的 AI 数据,还可以生成个人活跃度分享图片,与好友分享您在 LobeChat 上的活跃度。
11+
12+
## 📊 数据统计
13+
14+
- **数据统计**: 助手数 / 话题数 / 消息数 / 累计字数
15+
- **排行版**:
16+
- 模型使用率 `Top 10`
17+
- 助手使用率 `Top 10`
18+
- 话题内容量 `Top 10`
19+
- **热力图**: 过去一年内的活跃度分布
20+
- **用户活跃度分享**: 生成个人活跃度分享图片
21+
22+
## 👉 使用方式
23+
24+
1. 需要使用 `PgLite``数据库` 模式
25+
2. 点击个人头像进入「账户管理」-「数据统计」页面
26+

docs/changelog/index.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
"$schema": "https://github.com/lobehub/lobe-chat/blob/main/docs/changelog/schema.json",
33
"cloud": [],
44
"community": [
5+
{
6+
"image": "https://github.com/user-attachments/assets/3d80e0f5-d32a-4412-85b2-e709731460a0",
7+
"id": "2025-01-03-user-profile",
8+
"date": "2025-01-03"
9+
},
510
{
611
"image": "https://github.com/user-attachments/assets/2048b4c2-4a56-4029-acf9-71e35ff08652",
712
"id": "2024-11-27-forkable-chat",

docs/self-hosting/advanced/auth/next-auth/wechat.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
title: Configure Wechat Authentication Service in LobeChat
3-
description: Learn how to configure Wechat authentication service in LobeChat, including creating a new Wechat App, setting permissions, and environment variables.
3+
description: >-
4+
Learn how to configure Wechat authentication service in LobeChat, including
5+
creating a new Wechat App, setting permissions, and environment variables.
46
tags:
57
- Wechat Authentication
68
- Wechat App

docs/self-hosting/advanced/auth/next-auth/wechat.zh-CN.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
title: 在 LobeChat 中配置微信身份验证服务
33
description: 学习如何在 LobeChat 中配置微信身份验证服务,包括创建新的微信网站应用、设置权限和环境变量。
44
tags:
5-
-微信身份验证
6-
-微信网站应用
5+
- 微信身份验证
6+
- 微信网站应用
77
- 环境变量配置
88
- 单点登录
99
- LobeChat

locales/ar/auth.json

Lines changed: 76 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,80 @@
11
{
2+
"date": {
3+
"prevMonth": "الشهر الماضي",
4+
"recent30Days": "آخر 30 يومًا"
5+
},
6+
"header": {
7+
"desc": "إدارة معلومات حسابك.",
8+
"title": "الحساب"
9+
},
10+
"heatmaps": {
11+
"legend": {
12+
"less": "غير نشط",
13+
"more": "نشط"
14+
},
15+
"months": {
16+
"apr": "أبريل",
17+
"aug": "أغسطس",
18+
"dec": "ديسمبر",
19+
"feb": "فبراير",
20+
"jan": "يناير",
21+
"jul": "يوليو",
22+
"jun": "يونيو",
23+
"mar": "مارس",
24+
"may": "مايو",
25+
"nov": "نوفمبر",
26+
"oct": "أكتوبر",
27+
"sep": "سبتمبر"
28+
},
29+
"tooltip": "{{date}} أرسل {{count}} رسائل في ذلك اليوم",
30+
"totalCount": "إجمالي {{count}} رسائل أرسلت في العام الماضي"
31+
},
232
"login": "تسجيل الدخول",
3-
"loginOrSignup": "تسجيل الدخول / التسجيل",
4-
"profile": "الملف الشخصي",
5-
"security": "الأمان",
33+
"loginOrSignup": "تسجيل الدخول / الاشتراك",
34+
"profile": {
35+
"avatar": "الصورة الشخصية",
36+
"email": "عنوان البريد الإلكتروني",
37+
"username": "اسم المستخدم"
38+
},
639
"signout": "تسجيل الخروج",
7-
"signup": "التسجيل"
40+
"signup": "الاشتراك",
41+
"stats": {
42+
"aiheatmaps": "مؤشر النشاط",
43+
"assistants": "المساعدون",
44+
"assistantsRank": {
45+
"left": "المساعد",
46+
"right": "المواضيع",
47+
"title": "ترتيب استخدام المساعد"
48+
},
49+
"createdAt": "تاريخ التسجيل",
50+
"days": "أيام",
51+
"empty": {
52+
"desc": "يرجى تجميع المزيد من بيانات الدردشة للعرض",
53+
"title": "لا توجد بيانات"
54+
},
55+
"lastYearActivity": "النشاط في العام الماضي",
56+
"messages": "رسائل",
57+
"modelsRank": {
58+
"left": "النموذج",
59+
"right": "الرسائل",
60+
"title": "ترتيب استخدام النموذج"
61+
},
62+
"share": {
63+
"title": "مؤشر نشاط الذكاء الاصطناعي الخاص بي"
64+
},
65+
"topics": "المواضيع",
66+
"topicsRank": {
67+
"left": "الموضوع",
68+
"right": "الرسائل",
69+
"title": "ترتيب محتوى الموضوع"
70+
},
71+
"updatedAt": "تاريخ التحديث",
72+
"welcome": "{{username}}، هذا هو يومك <span>{{days}}</span> مع {{appName}}",
73+
"words": "كلمات"
74+
},
75+
"tab": {
76+
"profile": "الملف الشخصي",
77+
"security": "الأمان",
78+
"stats": "الإحصائيات"
79+
}
880
}

locales/bg-BG/auth.json

Lines changed: 75 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,80 @@
11
{
2+
"date": {
3+
"prevMonth": "Миналия месец",
4+
"recent30Days": "Последните 30 дни"
5+
},
6+
"header": {
7+
"desc": "Управлявайте информацията за вашия акаунт.",
8+
"title": "Акаунт"
9+
},
10+
"heatmaps": {
11+
"legend": {
12+
"less": "Неактивен",
13+
"more": "Активен"
14+
},
15+
"months": {
16+
"apr": "Апр",
17+
"aug": "Авг",
18+
"dec": "Дек",
19+
"feb": "Фев",
20+
"jan": "Ян",
21+
"jul": "Юл",
22+
"jun": "Юн",
23+
"mar": "Мар",
24+
"may": "Май",
25+
"nov": "Ное",
26+
"oct": "Окт",
27+
"sep": "Сеп"
28+
},
29+
"tooltip": "{{date}} изпратил(а) {{count}} съобщения този ден",
30+
"totalCount": "Общо {{count}} съобщения изпратени през последната година"
31+
},
232
"login": "Вход",
333
"loginOrSignup": "Вход / Регистрация",
4-
"profile": "Профил",
5-
"security": "Сигурност",
34+
"profile": {
35+
"avatar": "Аватар",
36+
"email": "Имейл адрес",
37+
"username": "Потребителско име"
38+
},
639
"signout": "Изход",
7-
"signup": "Регистрация"
40+
"signup": "Регистрация",
41+
"stats": {
42+
"aiheatmaps": "Индекс на активност",
43+
"assistants": "Асистенти",
44+
"assistantsRank": {
45+
"left": "Асистент",
46+
"right": "Тематики",
47+
"title": "Ранг на използване на асистенти"
48+
},
49+
"createdAt": "Регистриран на",
50+
"days": "дни",
51+
"empty": {
52+
"desc": "Моля, натрупайте повече данни от чат, за да видите",
53+
"title": "Няма данни"
54+
},
55+
"lastYearActivity": "активност през последната година",
56+
"messages": "Съобщения",
57+
"modelsRank": {
58+
"left": "Модел",
59+
"right": "Съобщения",
60+
"title": "Ранг на използване на модели"
61+
},
62+
"share": {
63+
"title": "Моят индекс на активност с ИИ"
64+
},
65+
"topics": "Тематики",
66+
"topicsRank": {
67+
"left": "Тематика",
68+
"right": "Съобщения",
69+
"title": "Ранг на съдържание на тематики"
70+
},
71+
"updatedAt": "Актуализиран на",
72+
"welcome": "{{username}}, това е вашият <span>{{days}}</span> ден с {{appName}}",
73+
"words": "Думи"
74+
},
75+
"tab": {
76+
"profile": "Профил",
77+
"security": "Сигурност",
78+
"stats": "Статистика"
79+
}
880
}

locales/de-DE/auth.json

Lines changed: 78 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,80 @@
11
{
2-
"login": "Anmelden",
3-
"loginOrSignup": "Anmelden / Registrieren",
4-
"profile": "Profil",
5-
"security": "Sicherheit",
6-
"signout": "Abmelden",
7-
"signup": "Registrieren"
2+
"date": {
3+
"prevMonth": "Letzter Monat",
4+
"recent30Days": "Letzte 30 Tage"
5+
},
6+
"header": {
7+
"desc": "Verwalten Sie Ihre Kontoinformationen.",
8+
"title": "Konto"
9+
},
10+
"heatmaps": {
11+
"legend": {
12+
"less": "Inaktiv",
13+
"more": "Aktiv"
14+
},
15+
"months": {
16+
"apr": "Apr",
17+
"aug": "Aug",
18+
"dec": "Dez",
19+
"feb": "Feb",
20+
"jan": "Jan",
21+
"jul": "Jul",
22+
"jun": "Jun",
23+
"mar": "Mär",
24+
"may": "Mai",
25+
"nov": "Nov",
26+
"oct": "Okt",
27+
"sep": "Sep"
28+
},
29+
"tooltip": "{{date}} hat {{count}} Nachrichten an diesem Tag gesendet",
30+
"totalCount": "Insgesamt wurden {{count}} Nachrichten im letzten Jahr gesendet"
31+
},
32+
"login": "Einloggen",
33+
"loginOrSignup": "Einloggen / Registrieren",
34+
"profile": {
35+
"avatar": "Avatar",
36+
"email": "E-Mail-Adresse",
37+
"username": "Benutzername"
38+
},
39+
"signout": "Ausloggen",
40+
"signup": "Registrieren",
41+
"stats": {
42+
"aiheatmaps": "Aktivitätsindex",
43+
"assistants": "Assistenten",
44+
"assistantsRank": {
45+
"left": "Assistent",
46+
"right": "Themen",
47+
"title": "Rang der Assistentennutzung"
48+
},
49+
"createdAt": "Registriert am",
50+
"days": "Tage",
51+
"empty": {
52+
"desc": "Bitte sammeln Sie mehr Chatdaten, um sie anzuzeigen",
53+
"title": "Keine Daten"
54+
},
55+
"lastYearActivity": "Aktivität im letzten Jahr",
56+
"messages": "Nachrichten",
57+
"modelsRank": {
58+
"left": "Modell",
59+
"right": "Nachrichten",
60+
"title": "Rang der Modellenutzung"
61+
},
62+
"share": {
63+
"title": "Mein AI Aktivitätsindex"
64+
},
65+
"topics": "Themen",
66+
"topicsRank": {
67+
"left": "Thema",
68+
"right": "Nachrichten",
69+
"title": "Rang des Themeninhalts"
70+
},
71+
"updatedAt": "Aktualisiert am",
72+
"welcome": "{{username}}, dies ist Ihr <span>{{days}}</span> Tag mit {{appName}}",
73+
"words": "Wörter"
74+
},
75+
"tab": {
76+
"profile": "Profil",
77+
"security": "Sicherheit",
78+
"stats": "Statistiken"
79+
}
880
}

0 commit comments

Comments
 (0)
0