diff --git a/.gitignore b/.gitignore index 95509123..9ca9313f 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ static dozzle coverage .pnpm-debug.log +.vscode diff --git a/assets/App.vue b/assets/App.vue index 89135025..df84c6d4 100644 --- a/assets/App.vue +++ b/assets/App.vue @@ -107,7 +107,7 @@ function showFuzzySearch() { active: true, }); } -function onResized(e) { +function onResized(e: any) { if (e.length == 2) { menuWidth.value = e[0].size; } diff --git a/assets/components.d.ts b/assets/components.d.ts index 7882658b..323db965 100644 --- a/assets/components.d.ts +++ b/assets/components.d.ts @@ -13,8 +13,10 @@ declare module '@vue/runtime-core' { ContainerStat: typeof import('./components/ContainerStat.vue')['default'] ContainerTitle: typeof import('./components/ContainerTitle.vue')['default'] DropdownMenu: typeof import('./components/DropdownMenu.vue')['default'] + FieldList: typeof import('./components/FieldList.vue')['default'] FuzzySearchModal: typeof import('./components/FuzzySearchModal.vue')['default'] InfiniteLoader: typeof import('./components/InfiniteLoader.vue')['default'] + JSONPayload: typeof import('./components/JSONPayload.vue')['default'] LogActionsToolbar: typeof import('./components/LogActionsToolbar.vue')['default'] LogContainer: typeof import('./components/LogContainer.vue')['default'] LogEventSource: typeof import('./components/LogEventSource.vue')['default'] diff --git a/assets/components/ContainerStat.vue b/assets/components/ContainerStat.vue index 934083a8..0abc1aff 100644 --- a/assets/components/ContainerStat.vue +++ b/assets/components/ContainerStat.vue @@ -1,34 +1,28 @@ diff --git a/assets/components/FieldList.vue b/assets/components/FieldList.vue new file mode 100644 index 00000000..1c6ceb1b --- /dev/null +++ b/assets/components/FieldList.vue @@ -0,0 +1,84 @@ + + + + diff --git a/assets/components/InfiniteLoader.vue b/assets/components/InfiniteLoader.vue index c2c42a67..db2deab5 100644 --- a/assets/components/InfiniteLoader.vue +++ b/assets/components/InfiniteLoader.vue @@ -22,7 +22,7 @@ const root = ref(); const observer = new IntersectionObserver(async (entries) => { if (entries[0].intersectionRatio <= 0) return; if (props.onLoadMore && props.enabled) { - const scrollingParent = root.value.closest("[data-scrolling]") || document.documentElement; + const scrollingParent = root.value?.closest("[data-scrolling]") || document.documentElement; const previousHeight = scrollingParent.scrollHeight; isLoading.value = true; await props.onLoadMore(); @@ -32,7 +32,7 @@ const observer = new IntersectionObserver(async (entries) => { } }); -onMounted(() => observer.observe(root.value)); +onMounted(() => observer.observe(root.value!)); onUnmounted(() => observer.disconnect()); diff --git a/assets/components/JSONPayload.vue b/assets/components/JSONPayload.vue new file mode 100644 index 00000000..3bfc137a --- /dev/null +++ b/assets/components/JSONPayload.vue @@ -0,0 +1,55 @@ + + + + diff --git a/assets/components/LogActionsToolbar.vue b/assets/components/LogActionsToolbar.vue index 42e82b50..0ab3d526 100644 --- a/assets/components/LogActionsToolbar.vue +++ b/assets/components/LogActionsToolbar.vue @@ -41,11 +41,11 @@ diff --git a/assets/components/LogContainer.vue b/assets/components/LogContainer.vue index 32481d5d..d8cbcbef 100644 --- a/assets/components/LogContainer.vue +++ b/assets/components/LogContainer.vue @@ -3,14 +3,14 @@ diff --git a/assets/components/LogViewer.vue b/assets/components/LogViewer.vue index 04e2a0ed..68c8c23c 100644 --- a/assets/components/LogViewer.vue +++ b/assets/components/LogViewer.vue @@ -2,14 +2,14 @@