diff --git a/components.d.ts b/components.d.ts index ed60a88873..3de4f28f4a 100644 --- a/components.d.ts +++ b/components.d.ts @@ -36,6 +36,7 @@ declare module 'vue' { AppFocusableContainer: typeof import('./src/components/ui/AppFocusableContainer.vue')['default'] AppFooter: typeof import('./src/components/layout/AppFooter.vue')['default'] AppIcon: typeof import('./src/components/ui/AppIcon.vue')['default'] + AppInlineChart: typeof import('./src/components/ui/AppInlineChart.vue')['default'] AppInlineHelp: typeof import('./src/components/ui/AppInlineHelp.vue')['default'] AppIroColorPicker: typeof import('./src/components/ui/AppIroColorPicker.vue')['default'] AppNamedSelect: typeof import('./src/components/ui/AppNamedSelect.vue')['default'] @@ -136,6 +137,11 @@ declare module 'vue' { VSlider: typeof import('vuetify/lib')['VSlider'] VSnackbar: typeof import('vuetify/lib')['VSnackbar'] VSpacer: typeof import('vuetify/lib')['VSpacer'] + VStepper: typeof import('vuetify/lib')['VStepper'] + VStepperContent: typeof import('vuetify/lib')['VStepperContent'] + VStepperHeader: typeof import('vuetify/lib')['VStepperHeader'] + VStepperItems: typeof import('vuetify/lib')['VStepperItems'] + VStepperStep: typeof import('vuetify/lib')['VStepperStep'] VSubheader: typeof import('vuetify/lib')['VSubheader'] VSwitch: typeof import('vuetify/lib')['VSwitch'] VTab: typeof import('vuetify/lib')['VTab'] diff --git a/src/components/ui/AppInlineChart.vue b/src/components/ui/AppInlineChart.vue new file mode 100644 index 0000000000..b39f21fe3d --- /dev/null +++ b/src/components/ui/AppInlineChart.vue @@ -0,0 +1,93 @@ + + + + + + + {{ label.text }} + {{ value }} + + + + + + + + diff --git a/src/components/widgets/system/KlipperLoadChart.vue b/src/components/widgets/system/KlipperLoadChart.vue index 830b74f3a2..6cc5cbf23a 100644 --- a/src/components/widgets/system/KlipperLoadChart.vue +++ b/src/components/widgets/system/KlipperLoadChart.vue @@ -1,30 +1,32 @@ - - - {{ $t('app.system_info.label.klipper_load') }} - {{ chartData[chartData.length - 1].cputime_change }}% - - + :labels="labels" + /> - - diff --git a/src/components/widgets/system/SystemLoadChart.vue b/src/components/widgets/system/SystemLoadChart.vue index 1745809b3c..ac58cc9a26 100644 --- a/src/components/widgets/system/SystemLoadChart.vue +++ b/src/components/widgets/system/SystemLoadChart.vue @@ -1,25 +1,17 @@ - - - {{ $t('app.system_info.label.system_load') }} - {{ chartData[chartData.length - 1].load }} / {{ cores }} - - + :labels="labels" + />