From 74878094768f214963e67f65f4ad5e65b389cba2 Mon Sep 17 00:00:00 2001 From: Moby von Briesen Date: Mon, 24 Jul 2023 19:39:47 -0400 Subject: [PATCH] web/satellite: unmock list buckets in vuetify app This change implements the table on the buckets view of the vuetify app. Searching and pagination are implemented, but sorting functionality needs to be added in a separate change - we need to extend the bucketsStore/backend functionality in order to support sorting. Resolves https://github.com/storj/storj/issues/6062 Change-Id: I4e92e6facbd7b21f4ec081e41f7e568ddb3cea29 --- .../src/components/BucketsDataTable.vue | 144 ++++++++++++++++-- web/satellite/vuetify-poc/src/router/index.ts | 4 +- .../vuetify-poc/src/views/Buckets.vue | 36 +---- 3 files changed, 133 insertions(+), 51 deletions(-) diff --git a/web/satellite/vuetify-poc/src/components/BucketsDataTable.vue b/web/satellite/vuetify-poc/src/components/BucketsDataTable.vue index 21e1074f1..6a9c229c1 100644 --- a/web/satellite/vuetify-poc/src/components/BucketsDataTable.vue +++ b/web/satellite/vuetify-poc/src/components/BucketsDataTable.vue @@ -11,45 +11,161 @@ hide-details /> - - + + + + + + diff --git a/web/satellite/vuetify-poc/src/router/index.ts b/web/satellite/vuetify-poc/src/router/index.ts index dad215f88..e40988388 100644 --- a/web/satellite/vuetify-poc/src/router/index.ts +++ b/web/satellite/vuetify-poc/src/router/index.ts @@ -58,9 +58,9 @@ const routes: RouteRecordRaw[] = [ component: () => import(/* webpackChunkName: "Buckets" */ '@poc/views/Buckets.vue'), }, { - path: 'bucket', + path: 'buckets/:bucketName', name: 'Bucket', - component: () => import(/* webpackChunkName: "Buckets" */ '@poc/views/Bucket.vue'), + component: () => import(/* webpackChunkName: "Bucket" */ '@poc/views/Bucket.vue'), }, { path: 'access', diff --git a/web/satellite/vuetify-poc/src/views/Buckets.vue b/web/satellite/vuetify-poc/src/views/Buckets.vue index 9be9276c9..409839e05 100644 --- a/web/satellite/vuetify-poc/src/views/Buckets.vue +++ b/web/satellite/vuetify-poc/src/views/Buckets.vue @@ -87,7 +87,7 @@ - + @@ -126,38 +126,4 @@ const bucketNameRules = [ return true; }, ]; -const headers = [ - { - title: 'Name', - align: 'start', - key: 'name', - }, - { title: 'Files', key: 'files' }, - { title: 'Storage', key: 'storage' }, - { title: 'Bandwidth', key: 'bandwidth' }, - { title: 'Date Created', key: 'date' }, -]; -const buckets = [ - { - name: 'Demo', - date: '02 Mar 2023', - files: '4,210', - bandwidth: '481 MB', - storage: '32 GB', - }, - { - name: 'Photos', - date: '03 Mar 2023', - files: '92,155', - bandwidth: '2.0 GB', - storage: '5.2 GB', - }, - { - name: 'Videos', - date: '04 Mar 2023', - files: '24', - bandwidth: '102 MB', - storage: '1.7 TB', - }, -];