diff --git a/public/locales/de-DE/dashboard.json b/public/locales/de-DE/dashboard.json
index 7f67c3d..7ef66cd 100644
--- a/public/locales/de-DE/dashboard.json
+++ b/public/locales/de-DE/dashboard.json
@@ -58,7 +58,7 @@
"trend": "Trend",
"summary": "Zusammenfassung",
"totalUsers": "Benutzer",
- "totalFiles": "Dateien",
+ "totalFilesAndFolders": "Dateien und Ordner",
"shareLinks": "Freigabe-Links",
"totalBlobs": "Blobs",
"homepage": "Startseite",
diff --git a/public/locales/en-US/dashboard.json b/public/locales/en-US/dashboard.json
index 358c188..4748a6c 100644
--- a/public/locales/en-US/dashboard.json
+++ b/public/locales/en-US/dashboard.json
@@ -58,7 +58,7 @@
"trend": "Trend",
"summary": "Summary",
"totalUsers": "Users",
- "totalFiles": "Files",
+ "totalFilesAndFolders": "Files and Folders",
"shareLinks": "Share links",
"totalBlobs": "Blobs",
"homepage": "Homepage",
diff --git a/public/locales/es-ES/dashboard.json b/public/locales/es-ES/dashboard.json
index d9a0f86..fdee524 100644
--- a/public/locales/es-ES/dashboard.json
+++ b/public/locales/es-ES/dashboard.json
@@ -58,7 +58,7 @@
"trend": "Tendencia",
"summary": "Resumen",
"totalUsers": "Usuarios",
- "totalFiles": "Archivos",
+ "totalFilesAndFolders": "Archivos y carpetas",
"shareLinks": "Enlaces de compartir",
"totalBlobs": "Blobs",
"homepage": "Página principal",
diff --git a/public/locales/fr-FR/dashboard.json b/public/locales/fr-FR/dashboard.json
index 264e6da..e7ffb20 100644
--- a/public/locales/fr-FR/dashboard.json
+++ b/public/locales/fr-FR/dashboard.json
@@ -58,7 +58,7 @@
"trend": "Tendance",
"summary": "Résumé",
"totalUsers": "Utilisateurs",
- "totalFiles": "Fichiers",
+ "totalFilesAndFolders": "Fichiers et dossiers",
"shareLinks": "Liens de partage",
"totalBlobs": "Blobs",
"homepage": "Page d'accueil",
diff --git a/public/locales/it-IT/dashboard.json b/public/locales/it-IT/dashboard.json
index 29e5dc2..7a25b13 100644
--- a/public/locales/it-IT/dashboard.json
+++ b/public/locales/it-IT/dashboard.json
@@ -58,7 +58,7 @@
"trend": "Tendenza",
"summary": "Riepilogo",
"totalUsers": "Utenti",
- "totalFiles": "File",
+ "totalFilesAndFolders": "File e Cartelle",
"shareLinks": "Link condivisioni",
"totalBlobs": "Blob",
"homepage": "Homepage",
diff --git a/public/locales/ja-JP/dashboard.json b/public/locales/ja-JP/dashboard.json
index 18fc69a..8321453 100644
--- a/public/locales/ja-JP/dashboard.json
+++ b/public/locales/ja-JP/dashboard.json
@@ -58,7 +58,7 @@
"trend": "傾向",
"summary": "合計",
"totalUsers": "登録ユーザー",
- "totalFiles": "ファイル",
+ "totalFilesAndFolders": "ファイルとフォルダ",
"shareLinks": "共有リンク",
"totalBlobs": "ファイルBlob",
"homepage": "ホーム",
diff --git a/public/locales/ko-KR/dashboard.json b/public/locales/ko-KR/dashboard.json
index 9612c27..39b5756 100644
--- a/public/locales/ko-KR/dashboard.json
+++ b/public/locales/ko-KR/dashboard.json
@@ -58,7 +58,7 @@
"trend": "추세",
"summary": "총계",
"totalUsers": "등록 사용자",
- "totalFiles": "파일",
+ "totalFilesAndFolders": "파일 및 폴더",
"shareLinks": "공유 링크",
"totalBlobs": "파일 Blob",
"homepage": "홈페이지",
diff --git a/public/locales/pt-BR/dashboard.json b/public/locales/pt-BR/dashboard.json
index a121ccd..0466d73 100644
--- a/public/locales/pt-BR/dashboard.json
+++ b/public/locales/pt-BR/dashboard.json
@@ -58,7 +58,7 @@
"trend": "Tendência",
"summary": "Resumo",
"totalUsers": "Usuários",
- "totalFiles": "Arquivos",
+ "totalFilesAndFolders": "Arquivos e Pastas",
"shareLinks": "Links de compartilhamento",
"totalBlobs": "Blobs",
"homepage": "Página inicial",
diff --git a/public/locales/ru-RU/dashboard.json b/public/locales/ru-RU/dashboard.json
index 78f8295..4ffaa20 100644
--- a/public/locales/ru-RU/dashboard.json
+++ b/public/locales/ru-RU/dashboard.json
@@ -58,7 +58,7 @@
"trend": "Тенденция",
"summary": "Сводка",
"totalUsers": "Пользователи",
- "totalFiles": "Файлы",
+ "totalFilesAndFolders": "Файлы и папки",
"shareLinks": "Ссылки общего доступа",
"totalBlobs": "Блобы",
"homepage": "Главная страница",
diff --git a/public/locales/zh-CN/dashboard.json b/public/locales/zh-CN/dashboard.json
index 76be053..a7854da 100644
--- a/public/locales/zh-CN/dashboard.json
+++ b/public/locales/zh-CN/dashboard.json
@@ -58,7 +58,7 @@
"trend": "趋势",
"summary": "总计",
"totalUsers": "注册用户",
- "totalFiles": "文件",
+ "totalFilesAndFolders": "文件与目录",
"shareLinks": "分享链接",
"totalBlobs": "文件 Blob",
"homepage": "主页",
diff --git a/public/locales/zh-TW/dashboard.json b/public/locales/zh-TW/dashboard.json
index 8377506..efc0338 100644
--- a/public/locales/zh-TW/dashboard.json
+++ b/public/locales/zh-TW/dashboard.json
@@ -58,7 +58,7 @@
"trend": "趨勢",
"summary": "總計",
"totalUsers": "注冊使用者",
- "totalFiles": "檔案",
+ "totalFilesAndFolders": "檔案與目錄",
"shareLinks": "分享連結",
"totalBlobs": "檔案 Blob",
"homepage": "主頁",
diff --git a/src/component/Admin/Home/Home.tsx b/src/component/Admin/Home/Home.tsx
index ab0df93..3be871c 100644
--- a/src/component/Admin/Home/Home.tsx
+++ b/src/component/Admin/Home/Home.tsx
@@ -135,19 +135,31 @@ const Home = () => {
height={350}
data={summary?.metrics_summary.dates.map((i, d) => ({
name: dayjs(i).format("MM-DD"),
- file: summary?.metrics_summary?.files[d] ?? 0,
user: summary?.metrics_summary?.users[d] ?? 0,
+ file: summary?.metrics_summary?.files[d] ?? 0,
share: summary?.metrics_summary?.shares[d] ?? 0,
}))}
>
-
+ {
+ const yAxisValue = [
+ ...(summary?.metrics_summary?.users ?? []),
+ ...(summary?.metrics_summary?.files ?? []),
+ ...(summary?.metrics_summary?.shares ?? []),
+ ];
+ const yAxisUpperLimit = yAxisValue.length ? Math.max(...yAxisValue) : 0;
+ const yAxisDigits = yAxisUpperLimit > 0 ? Math.floor(Math.log10(yAxisUpperLimit)) + 1 : 1;
+ return 3 + yAxisDigits * 9;
+ })()}
+ />
-
-
-
+
+
+
)}
@@ -225,7 +237,7 @@ const Home = () => {