diff --git a/i18n/en.json b/i18n/en.json index c34de74ae5..91bbb6cda2 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -1,4 +1,6 @@ { + "user_usage_stats": "Account usage statistics", + "user_usage_stats_description": "View account usage statistics", "about": "Refresh", "account": "Account", "account_settings": "Account Settings", @@ -1315,5 +1317,7 @@ "years_ago": "{years, plural, one {# year} other {# years}} ago", "yes": "Yes", "you_dont_have_any_shared_links": "You don't have any shared links", - "zoom_image": "Zoom Image" + "zoom_image": "Zoom Image", + "timeline": "Timeline", + "total": "Total" } diff --git a/web/src/lib/components/shared-components/side-bar/more-information-albums.svelte b/web/src/lib/components/shared-components/side-bar/more-information-albums.svelte deleted file mode 100644 index 58ce0c8574..0000000000 --- a/web/src/lib/components/shared-components/side-bar/more-information-albums.svelte +++ /dev/null @@ -1,27 +0,0 @@ - - -{#await handleAlbumCount()} - -{:then data} -
-

{$t('albums_count', { values: { count: data[albumType] } })}

-
-{/await} diff --git a/web/src/lib/components/shared-components/side-bar/more-information-assets.svelte b/web/src/lib/components/shared-components/side-bar/more-information-assets.svelte deleted file mode 100644 index 5e4589be18..0000000000 --- a/web/src/lib/components/shared-components/side-bar/more-information-assets.svelte +++ /dev/null @@ -1,20 +0,0 @@ - - -{#await getAssetStatistics(assetStats)} - -{:then data} -
-

{$t('videos_count', { values: { count: data.videos } })}

-

{$t('photos_count', { values: { count: data.images } })}

-
-{/await} diff --git a/web/src/lib/components/shared-components/side-bar/side-bar-link.svelte b/web/src/lib/components/shared-components/side-bar/side-bar-link.svelte index d3fd94ae08..13f08533c5 100644 --- a/web/src/lib/components/shared-components/side-bar/side-bar-link.svelte +++ b/web/src/lib/components/shared-components/side-bar/side-bar-link.svelte @@ -1,10 +1,7 @@ + +{#snippet row(viewName: string, imageCount: number, videoCount: number, totalCount: number)} + {viewName} + {imageCount} + {videoCount} + {totalCount} +{/snippet} + +
+

{$t('photos_and_videos')}

+ + + + + + + + + + + + {@render row($t('timeline'), timelineStats.images, timelineStats.videos, timelineStats.total)} + + + + {@render row($t('favorites'), favoriteStats.images, favoriteStats.videos, favoriteStats.total)} + + + + {@render row($t('archive'), archiveStats.images, archiveStats.videos, archiveStats.total)} + + + + {@render row($t('trash'), trashStats.images, trashStats.videos, trashStats.total)} + + +
{$t('view').toLocaleString()}{$t('photos').toLocaleString()}{$t('videos').toLocaleString()}{$t('total').toLocaleString()}
+ +
+

{$t('albums')}

+
+ + + + + + + + + + + + + +
{$t('owned')}{$t('shared')}
{albumStats.owned.toLocaleString()}{albumStats.shared.toLocaleString()}
+