From e4ef784be739f5449ebe871b1db960a4eb186cd5 Mon Sep 17 00:00:00 2001 From: Amir Raminfar Date: Thu, 6 Jul 2023 08:41:04 -0700 Subject: [PATCH] chore(format): updates js files to updates prettier --- assets/components/LogViewer/ContainerStat.vue | 4 ++-- .../LogViewer/LogEventSource.spec.ts | 2 +- assets/components/LogViewer/LogViewer.vue | 14 ++++++++--- assets/components/ScrollProgress.vue | 4 ++-- assets/components/Search.vue | 4 +++- assets/components/SideMenu.vue | 24 ++++++++++++------- assets/components/common/DateTime.vue | 5 ++-- assets/components/common/MobileMenu.vue | 13 ++++++---- assets/composables/eventsource.ts | 12 +++++----- assets/main.ts | 4 ++-- assets/models/Container.ts | 2 +- assets/models/LogEntry.ts | 18 ++++++++------ assets/modules/i18n.ts | 4 ++-- assets/pages/index.vue | 4 ++-- assets/stores/container.ts | 15 +++++++----- .../.vitepress/theme/components/HeroVideo.vue | 2 +- 16 files changed, 79 insertions(+), 52 deletions(-) diff --git a/assets/components/LogViewer/ContainerStat.vue b/assets/components/LogViewer/ContainerStat.vue index 26f4c830..1e0878c7 100644 --- a/assets/components/LogViewer/ContainerStat.vue +++ b/assets/components/LogViewer/ContainerStat.vue @@ -31,7 +31,7 @@ const cpuData = computedWithControl( value: stat.snapshot.cpu + "%", })); return points; - } + }, ); const memoryData = computedWithControl( @@ -44,7 +44,7 @@ const memoryData = computedWithControl( value: formatBytes(stat.snapshot.memoryUsage), })); return points; - } + }, ); diff --git a/assets/components/LogViewer/LogEventSource.spec.ts b/assets/components/LogViewer/LogEventSource.spec.ts index 60d7d48c..405f0c56 100644 --- a/assets/components/LogViewer/LogEventSource.spec.ts +++ b/assets/components/LogViewer/LogEventSource.spec.ts @@ -44,7 +44,7 @@ describe("", () => { hourStyle = "auto", }: { searchFilter?: string | undefined; hourStyle?: "auto" | "24" | "12" } = { hourStyle: "auto", - } + }, ) { settings.value.hourStyle = hourStyle; search.searchFilter.value = searchFilter; diff --git a/assets/components/LogViewer/LogViewer.vue b/assets/components/LogViewer/LogViewer.vue index 52384204..8dc85257 100644 --- a/assets/components/LogViewer/LogViewer.vue +++ b/assets/components/LogViewer/LogViewer.vue @@ -58,17 +58,25 @@ const routeHash = useRouteHash(); watch( routeHash, (hash) => { - if(hash){ + if (hash) { document.querySelector(`[data-key="${hash.substring(1)}"]`)?.scrollIntoView({ block: "center" }); } }, - { immediate: true, flush: "post" } + { immediate: true, flush: "post" }, );