From c8bbeb7b1a36ad8774c8ecf09981347d42efb2a6 Mon Sep 17 00:00:00 2001 From: Avinash Gusain Date: Fri, 20 Oct 2023 22:50:34 +0530 Subject: [PATCH 1/6] storage info check --- src/components/StorageLayout.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/StorageLayout.vue b/src/components/StorageLayout.vue index e6682c0..99d4d1b 100755 --- a/src/components/StorageLayout.vue +++ b/src/components/StorageLayout.vue @@ -86,6 +86,7 @@ export default { }, computed: { totalSpaceUsedInPercentage() { + console.log(this.storageInfo); const percent = (this.storageInfo.used * 100) / this.storageInfo.quota return percent.toFixed(2) }, -- GitLab From b22d1165d7e786a2b4f7baefdf9018b3ae0df67b Mon Sep 17 00:00:00 2001 From: Avinash Gusain Date: Fri, 20 Oct 2023 22:54:38 +0530 Subject: [PATCH 2/6] storage info check --- src/components/StorageLayout.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/StorageLayout.vue b/src/components/StorageLayout.vue index 99d4d1b..1b381e8 100755 --- a/src/components/StorageLayout.vue +++ b/src/components/StorageLayout.vue @@ -86,6 +86,7 @@ export default { }, computed: { totalSpaceUsedInPercentage() { + // eslint-disable-next-line no-console console.log(this.storageInfo); const percent = (this.storageInfo.used * 100) / this.storageInfo.quota return percent.toFixed(2) -- GitLab From f96d0f1e005e2a64fddeed75a89eeb992292acc4 Mon Sep 17 00:00:00 2001 From: Avinash Gusain Date: Fri, 20 Oct 2023 22:58:06 +0530 Subject: [PATCH 3/6] storage info check --- src/components/AllApps.vue | 2 +- src/components/StorageLayout.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/AllApps.vue b/src/components/AllApps.vue index e100b14..202a408 100755 --- a/src/components/AllApps.vue +++ b/src/components/AllApps.vue @@ -80,7 +80,7 @@ export default { entries: loadState(APPLICATION_NAME, 'entries'), displayName: loadState(APPLICATION_NAME, 'displayName'), appName: APPLICATION_NAME, - documentsBaseDirectory: loadState(APPLICATION_NAME, 'documentsBaseDirectory') + documentsBaseDirectory: loadState(APPLICATION_NAME, 'documentsBaseDirectory'), } }, methods: { diff --git a/src/components/StorageLayout.vue b/src/components/StorageLayout.vue index 1b381e8..019cbfd 100755 --- a/src/components/StorageLayout.vue +++ b/src/components/StorageLayout.vue @@ -86,8 +86,8 @@ export default { }, computed: { totalSpaceUsedInPercentage() { - // eslint-disable-next-line no-console - console.log(this.storageInfo); + // eslint-disable-next-line no-console + console.log(this.storageInfo) const percent = (this.storageInfo.used * 100) / this.storageInfo.quota return percent.toFixed(2) }, -- GitLab From 39635b67cd1f3b60810d5b6e1f7a16420f293cbd Mon Sep 17 00:00:00 2001 From: Avinash Gusain Date: Fri, 20 Oct 2023 23:25:03 +0530 Subject: [PATCH 4/6] storage info check --- src/components/StorageLayout.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/StorageLayout.vue b/src/components/StorageLayout.vue index 019cbfd..25a8f1c 100755 --- a/src/components/StorageLayout.vue +++ b/src/components/StorageLayout.vue @@ -124,7 +124,7 @@ export default { getStorageUsageDetails() { this.storageFetchStatus = false axios - .get(generateUrl('/apps/files/ajax/getstoragestats')) + .get(generateUrl('/apps/files/v1/stats')) .then((response) => { this.storageInfo = response.data.data this.storageFetchStatus = true -- GitLab From c9987ce2ba7e451288c98698ebbccd4a8a388c31 Mon Sep 17 00:00:00 2001 From: Avinash Gusain Date: Sat, 21 Oct 2023 00:23:23 +0530 Subject: [PATCH 5/6] storage info check --- src/components/StorageLayout.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/StorageLayout.vue b/src/components/StorageLayout.vue index 25a8f1c..845c6a2 100755 --- a/src/components/StorageLayout.vue +++ b/src/components/StorageLayout.vue @@ -124,7 +124,7 @@ export default { getStorageUsageDetails() { this.storageFetchStatus = false axios - .get(generateUrl('/apps/files/v1/stats')) + .get(generateUrl('/apps/files/api/v1/stats')) .then((response) => { this.storageInfo = response.data.data this.storageFetchStatus = true -- GitLab From c3749707b16a918c11bde79c5022a47fa02d6b71 Mon Sep 17 00:00:00 2001 From: Avinash Gusain Date: Sat, 21 Oct 2023 00:28:10 +0530 Subject: [PATCH 6/6] storage info check --- src/components/StorageLayout.vue | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/components/StorageLayout.vue b/src/components/StorageLayout.vue index 845c6a2..3664154 100755 --- a/src/components/StorageLayout.vue +++ b/src/components/StorageLayout.vue @@ -86,8 +86,6 @@ export default { }, computed: { totalSpaceUsedInPercentage() { - // eslint-disable-next-line no-console - console.log(this.storageInfo) const percent = (this.storageInfo.used * 100) / this.storageInfo.quota return percent.toFixed(2) }, -- GitLab