From 40c259b1be725020874a0949aa3463ae721f591b Mon Sep 17 00:00:00 2001 From: Amir Raminfar Date: Mon, 31 Jul 2023 09:54:27 -0700 Subject: [PATCH] feat: adds table sort to homepage (#2330) * feat: adds table sort to homepage * feat: adds sorting to dashboard * fixes colors --- assets/components.d.ts | 3 - assets/components/ContainerTable.vue | 85 ++++++++++++++++--- assets/components/LogViewer/ContainerStat.vue | 2 +- public/index.html | 2 +- 4 files changed, 77 insertions(+), 15 deletions(-) diff --git a/assets/components.d.ts b/assets/components.d.ts index 7aa8391e..ed086f58 100644 --- a/assets/components.d.ts +++ b/assets/components.d.ts @@ -37,8 +37,6 @@ declare module 'vue' { LogViewer: typeof import('./components/LogViewer/LogViewer.vue')['default'] LogViewerWithSource: typeof import('./components/LogViewer/LogViewerWithSource.vue')['default'] 'Mdi:arrowUp': typeof import('~icons/mdi/arrow-up')['default'] - 'Mdi:chevronLeft': typeof import('~icons/mdi/chevron-left')['default'] - 'Mdi:chevronRight': typeof import('~icons/mdi/chevron-right')['default'] 'Mdi:dotsVertical': typeof import('~icons/mdi/dots-vertical')['default'] 'Mdi:lightChevronDoubleDown': typeof import('~icons/mdi-light/chevron-double-down')['default'] 'Mdi:lightChevronLeft': typeof import('~icons/mdi-light/chevron-left')['default'] @@ -50,7 +48,6 @@ declare module 'vue' { 'Octicon:container24': typeof import('~icons/octicon/container24')['default'] 'Octicon:download24': typeof import('~icons/octicon/download24')['default'] 'Octicon:trash24': typeof import('~icons/octicon/trash24')['default'] - OrugaIcon: typeof import('./components/OrugaIcon.vue')['default'] Popup: typeof import('./components/Popup.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] diff --git a/assets/components/ContainerTable.vue b/assets/components/ContainerTable.vue index babd5901..14a94538 100644 --- a/assets/components/ContainerTable.vue +++ b/assets/components/ContainerTable.vue @@ -2,12 +2,22 @@ - + diff --git a/assets/components/LogViewer/ContainerStat.vue b/assets/components/LogViewer/ContainerStat.vue index 0fa9b0b1..1e0878c7 100644 --- a/assets/components/LogViewer/ContainerStat.vue +++ b/assets/components/LogViewer/ContainerStat.vue @@ -44,7 +44,7 @@ const memoryData = computedWithControl( value: formatBytes(stat.snapshot.memoryUsage), })); return points; - } + }, ); diff --git a/public/index.html b/public/index.html index 89c3de8a..c639fb01 100644 --- a/public/index.html +++ b/public/index.html @@ -1,4 +1,4 @@ - +