From dbde4cd56c8451c58103ca52e74eb0864bb292ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B4=94=E5=BA=86=E6=89=8D=E4=B8=A8=E9=9D=99=E8=A7=85?= Date: Mon, 22 Apr 2024 01:39:48 +0800 Subject: [PATCH] Add support for usage history (#30) Co-authored-by: Germey --- ...-b634c68d-ad57-4fa0-8780-c27a2aef120c.json | 7 + src/components/console/SidePanel.vue | 13 +- src/i18n/en/application.json | 10 +- src/i18n/en/usage.json | 12 + src/models/usage.ts | 10 +- src/pages/console/order/List.vue | 4 +- src/pages/console/usage/List.vue | 309 ++++++++++++++++++ src/router/console.ts | 8 +- src/router/constants.ts | 2 + 9 files changed, 366 insertions(+), 9 deletions(-) create mode 100644 change/@acedatacloud-hub-b634c68d-ad57-4fa0-8780-c27a2aef120c.json create mode 100644 src/pages/console/usage/List.vue diff --git a/change/@acedatacloud-hub-b634c68d-ad57-4fa0-8780-c27a2aef120c.json b/change/@acedatacloud-hub-b634c68d-ad57-4fa0-8780-c27a2aef120c.json new file mode 100644 index 00000000..3a3bd2cc --- /dev/null +++ b/change/@acedatacloud-hub-b634c68d-ad57-4fa0-8780-c27a2aef120c.json @@ -0,0 +1,7 @@ +{ + "type": "minor", + "comment": "add support for usage history", + "packageName": "@acedatacloud/hub", + "email": "germey@acedata.cloud", + "dependentChangeType": "patch" +} diff --git a/src/components/console/SidePanel.vue b/src/components/console/SidePanel.vue index d25e7eda..763aaa54 100644 --- a/src/components/console/SidePanel.vue +++ b/src/components/console/SidePanel.vue @@ -26,7 +26,12 @@ + + diff --git a/src/router/console.ts b/src/router/console.ts index da5891bd..876d677d 100644 --- a/src/router/console.ts +++ b/src/router/console.ts @@ -3,7 +3,8 @@ import { ROUTE_CONSOLE_APPLICATION_LIST, ROUTE_CONSOLE_ORDER_DETAIL, ROUTE_CONSOLE_ORDER_LIST, - ROUTE_CONSOLE_ROOT + ROUTE_CONSOLE_ROOT, + ROUTE_CONSOLE_USAGE_LIST } from './constants'; export default { @@ -39,6 +40,11 @@ export default { path: 'applications/:id/buy', name: ROUTE_CONSOLE_APPLICATION_BUY, component: () => import('@/pages/console/application/Buy.vue') + }, + { + path: 'usages', + name: ROUTE_CONSOLE_USAGE_LIST, + component: () => import('@/pages/console/usage/List.vue') } ] }; diff --git a/src/router/constants.ts b/src/router/constants.ts index b7d54b1b..b31af101 100644 --- a/src/router/constants.ts +++ b/src/router/constants.ts @@ -24,3 +24,5 @@ export const ROUTE_CONSOLE_APPLICATION_BUY = 'console-application-buy'; export const ROUTE_DISTRIBUTION_INDEX = 'distribution-index'; export const ROUTE_DISTRIBUTION_HISTORY = 'distribution-history'; export const ROUTE_DISTRIBUTION_INVITEES = 'distribution-invitees'; + +export const ROUTE_CONSOLE_USAGE_LIST = 'console-usage-list';