diff --git a/client/components/app/ConfigSideNav.vue b/client/components/app/ConfigSideNav.vue index b4835255..2b46eb7c 100644 --- a/client/components/app/ConfigSideNav.vue +++ b/client/components/app/ConfigSideNav.vue @@ -114,9 +114,9 @@ export default { if (this.currentLibraryId) { configRoutes.push({ - id: 'config-library-stats', + id: 'library-stats', title: this.$strings.HeaderLibraryStats, - path: '/config/library-stats' + path: `/library/${this.currentLibraryId}/stats` }) configRoutes.push({ id: 'config-stats', @@ -182,4 +182,4 @@ export default { } } } - \ No newline at end of file + diff --git a/client/components/app/SideRail.vue b/client/components/app/SideRail.vue index 7475f7ed..2c1538ec 100644 --- a/client/components/app/SideRail.vue +++ b/client/components/app/SideRail.vue @@ -79,6 +79,14 @@
+{{ $strings.ButtonStats }}
+ + +{{ $strings.ButtonIssues }}
@@ -194,6 +202,9 @@ export default { isPlaylistsPage() { return this.paramId === 'playlists' }, + isStatsPage() { + return this.$route.name === 'library-library-stats' + }, libraryBookshelfPage() { return this.$route.name === 'library-library-bookshelf-id' }, diff --git a/client/pages/config.vue b/client/pages/config.vue index 957cef52..4492bbfd 100644 --- a/client/pages/config.vue +++ b/client/pages/config.vue @@ -52,7 +52,6 @@ export default { else if (pageName === 'notifications') return this.$strings.HeaderNotifications else if (pageName === 'sessions') return this.$strings.HeaderListeningSessions else if (pageName === 'stats') return this.$strings.HeaderYourStats - else if (pageName === 'library-stats') return this.$strings.HeaderLibraryStats else if (pageName === 'users') return this.$strings.HeaderUsers else if (pageName === 'item-metadata-utils') return this.$strings.HeaderItemMetadataUtils else if (pageName === 'rss-feeds') return this.$strings.HeaderRSSFeeds @@ -94,4 +93,4 @@ export default { max-width: 100%; } } - \ No newline at end of file + diff --git a/client/pages/config/library-stats.vue b/client/pages/config/library-stats.vue deleted file mode 100644 index 1a95c630..00000000 --- a/client/pages/config/library-stats.vue +++ /dev/null @@ -1,175 +0,0 @@ - -{{ $strings.MessageNoGenres }}
- -{{ Math.round((100 * genre.count) / totalItems) }} %
- -{{ $strings.MessageNoAuthors }}
- -
- {{ index + 1 }}.
{{ author.count }}
-{{ $strings.MessageNoItems }}
- -
- {{ index + 1 }}.
{{ (ab.duration / 3600).toFixed(1) }}
-{{ $strings.MessageNoItems }}
- -
- {{ index + 1 }}.
{{ $bytesPretty(ab.size) }}
-{{ $strings.MessageNoGenres }}
+ +{{ Math.round((100 * genre.count) / totalItems) }} %
+ +{{ $strings.MessageNoAuthors }}
+ +
+ {{ index + 1 }}.
{{ author.count }}
+{{ $strings.MessageNoItems }}
+ +
+ {{ index + 1 }}.
{{ (ab.duration / 3600).toFixed(1) }}
+{{ $strings.MessageNoItems }}
+ +
+ {{ index + 1 }}.
{{ $bytesPretty(ab.size) }}
+