From a268e774def5875354129c06122898bad018d5ed Mon Sep 17 00:00:00 2001 From: Daan Wijns Date: Sun, 17 Apr 2022 16:33:40 +0200 Subject: [PATCH] perf: add all-time stats #351 --- src/components/Core/StorageCard.vue | 2 +- .../SettingsModal/Tabs/Vuetorrent/General.vue | 21 ++++++++++++ src/components/Navbar/Navbar.vue | 13 ++++++-- .../{SessionStats.vue => TransferStats.vue} | 32 +++++++++++++++---- src/components/Navbar/index.js | 4 +-- src/models/Status.js | 8 +++-- src/store/index.js | 1 + 7 files changed, 66 insertions(+), 15 deletions(-) rename src/components/Navbar/{SessionStats.vue => TransferStats.vue} (50%) diff --git a/src/components/Core/StorageCard.vue b/src/components/Core/StorageCard.vue index 875f6857..b7840275 100644 --- a/src/components/Core/StorageCard.vue +++ b/src/components/Core/StorageCard.vue @@ -10,7 +10,7 @@ {{ label }} - + {{ value | getDataValue(2) }} diff --git a/src/components/Modals/SettingsModal/Tabs/Vuetorrent/General.vue b/src/components/Modals/SettingsModal/Tabs/Vuetorrent/General.vue index 39153009..cb10c284 100644 --- a/src/components/Modals/SettingsModal/Tabs/Vuetorrent/General.vue +++ b/src/components/Modals/SettingsModal/Tabs/Vuetorrent/General.vue @@ -43,6 +43,19 @@ + + + + + + + @@ -228,6 +241,14 @@ export default { this.webuiSettings.showSessionStat = val } }, + showAlltimeStat: { + get() { + return this.webuiSettings.showAlltimeStat + }, + set(val) { + this.webuiSettings.showAlltimeStat = val + } + }, showTrackerFilter: { get() { return this.webuiSettings.showTrackerFilter diff --git a/src/components/Navbar/Navbar.vue b/src/components/Navbar/Navbar.vue index 29d6672c..dc522e6b 100644 --- a/src/components/Navbar/Navbar.vue +++ b/src/components/Navbar/Navbar.vue @@ -49,8 +49,15 @@ - + + @@ -83,7 +90,7 @@ import { TopMenu, SpeedGraph, FreeSpace, - SessionStats, + TranserStats, CurrentSpeed, FilterSelect } from './index' @@ -95,7 +102,7 @@ export default { BottomActions, TopMenu, SpeedGraph, - SessionStats, + TranserStats, CurrentSpeed, FilterSelect }, diff --git a/src/components/Navbar/SessionStats.vue b/src/components/Navbar/TransferStats.vue similarity index 50% rename from src/components/Navbar/SessionStats.vue rename to src/components/Navbar/TransferStats.vue index b7946c88..12e790c1 100644 --- a/src/components/Navbar/SessionStats.vue +++ b/src/components/Navbar/TransferStats.vue @@ -1,9 +1,9 @@