diff --git a/ui/public/locales/en.json b/ui/public/locales/en.json index 55f07357de9..d1f0d84e755 100644 --- a/ui/public/locales/en.json +++ b/ui/public/locales/en.json @@ -2148,6 +2148,7 @@ "label.volumetotal": "Volume", "label.volumetype": "Volume Type", "label.vpc": "VPC", +"label.vpcs": "VPCs", "label.vpc.id": "VPC ID", "label.vpc.offerings": "VPC offerings", "label.vpc.virtual.router": "VPC virtual router", diff --git a/ui/src/components/widgets/ChartCard.vue b/ui/src/components/widgets/ChartCard.vue index 8d5e413c9db..a41cd69a3f1 100644 --- a/ui/src/components/widgets/ChartCard.vue +++ b/ui/src/components/widgets/ChartCard.vue @@ -93,7 +93,6 @@ export default { } &-footer { - border-top: 1px solid #e8e8e8; padding-top: 9px; margin-top: 8px; } diff --git a/ui/src/components/widgets/Drawer.vue b/ui/src/components/widgets/Drawer.vue index 38636522dbd..0a1c535e5f8 100644 --- a/ui/src/components/widgets/Drawer.vue +++ b/ui/src/components/widgets/Drawer.vue @@ -134,7 +134,7 @@ export default { text-align: center; transition: all 0.5s; cursor: pointer; - top: calc(50% - 45px); + top: calc(100% - 45px); z-index: 100; &.left{ diff --git a/ui/src/config/router.js b/ui/src/config/router.js index e7e8e642877..502a0246edf 100644 --- a/ui/src/config/router.js +++ b/ui/src/config/router.js @@ -20,7 +20,7 @@ import { UserLayout, BasicLayout, RouteView } from '@/layouts' import AutogenView from '@/views/AutogenView.vue' import IFramePlugin from '@/views/plugins/IFramePlugin.vue' -import { shallowRef, defineAsyncComponent } from 'vue' +import { shallowRef } from 'vue' import { vueProps } from '@/vue-app' import compute from '@/config/section/compute' @@ -201,26 +201,7 @@ export function asyncRouterMap () { name: 'dashboard', meta: { title: 'label.dashboard', - icon: 'DashboardOutlined', - tabs: [ - { - name: 'dashboard', - component: shallowRef(defineAsyncComponent(() => import('@/views/dashboard/UsageDashboardChart'))) - }, - { - name: 'accounts', - show: (record, route, user) => { return record.account === user.account || ['Admin', 'DomainAdmin'].includes(user.roletype) }, - component: shallowRef(defineAsyncComponent(() => import('@/views/project/AccountsTab'))) - }, - { - name: 'limits', - params: { - projectid: 'id' - }, - show: (record, route, user) => { return ['Admin'].includes(user.roletype) }, - component: shallowRef(defineAsyncComponent(() => import('@/components/view/ResourceLimitTab.vue'))) - } - ] + icon: 'DashboardOutlined' }, component: () => import('@/views/dashboard/Dashboard') }, diff --git a/ui/src/core/lazy_lib/components_use.js b/ui/src/core/lazy_lib/components_use.js index 10790d61bc0..3c61c02c08f 100644 --- a/ui/src/core/lazy_lib/components_use.js +++ b/ui/src/core/lazy_lib/components_use.js @@ -63,7 +63,8 @@ import { Slider, AutoComplete, Collapse, - Space + Space, + Statistic } from 'ant-design-vue' import VueClipboard from 'vue3-clipboard' import VueCropper from 'vue-cropper' @@ -127,5 +128,6 @@ export default { app.use(Collapse) app.use(Descriptions) app.use(Space) + app.use(Statistic) } } diff --git a/ui/src/style/dark-mode.less b/ui/src/style/dark-mode.less index 1b338ea9ae6..4d8ae25104f 100644 --- a/ui/src/style/dark-mode.less +++ b/ui/src/style/dark-mode.less @@ -36,7 +36,7 @@ .dark-mode { background: @dark-bgColor; - h1, h2, h3, h4, h5, h6 { + h1, h2, h3, h4, h5, h6, .ant-statistic-title, .ant-statistic-content { color: @dark-text-color-3; } @@ -959,4 +959,4 @@ .button-clear-notification { background-color: @dark-secondary-bgColor; } -} \ No newline at end of file +} diff --git a/ui/src/utils/device.js b/ui/src/utils/device.js index ce6deab7b39..86c7b1e7d84 100644 --- a/ui/src/utils/device.js +++ b/ui/src/utils/device.js @@ -43,7 +43,7 @@ export const deviceEnquire = function (callback) { } enquireJs - .register('screen and (max-width: 800px)', matchMobile) - .register('screen and (min-width: 800px) and (max-width: 1366px)', matchTablet) - .register('screen and (min-width: 1367px)', matchDesktop) + .register('screen and (max-width: 765px)', matchMobile) + .register('screen and (min-width: 766px) and (max-width: 1279px)', matchTablet) + .register('screen and (min-width: 1280px)', matchDesktop) } diff --git a/ui/src/views/dashboard/CapacityDashboard.vue b/ui/src/views/dashboard/CapacityDashboard.vue index 2d7b31ed467..a174e60b709 100644 --- a/ui/src/views/dashboard/CapacityDashboard.vue +++ b/ui/src/views/dashboard/CapacityDashboard.vue @@ -16,8 +16,8 @@ // under the License.