diff --git a/assets/components.d.ts b/assets/components.d.ts index f5b9999d..cfa3d402 100644 --- a/assets/components.d.ts +++ b/assets/components.d.ts @@ -26,6 +26,7 @@ declare module 'vue' { 'Cil:xCircle': typeof import('~icons/cil/x-circle')['default'] ComplexLogItem: typeof import('./components/LogViewer/ComplexLogItem.vue')['default'] ContainerHealth: typeof import('./components/LogViewer/ContainerHealth.vue')['default'] + ContainerLogViewer: typeof import('./components/LogViewer/ContainerLogViewer.vue')['default'] ContainerPopup: typeof import('./components/LogViewer/ContainerPopup.vue')['default'] ContainerStat: typeof import('./components/LogViewer/ContainerStat.vue')['default'] ContainerTable: typeof import('./components/ContainerTable.vue')['default'] @@ -40,6 +41,7 @@ declare module 'vue' { 'Ic:sharpKeyboardReturn': typeof import('~icons/ic/sharp-keyboard-return')['default'] InfiniteLoader: typeof import('./components/InfiniteLoader.vue')['default'] KeyShortcut: typeof import('./components/common/KeyShortcut.vue')['default'] + LabeledInput: typeof import('./components/common/LabeledInput.vue')['default'] Links: typeof import('./components/Links.vue')['default'] LogActionsToolbar: typeof import('./components/LogViewer/LogActionsToolbar.vue')['default'] LogContainer: typeof import('./components/LogViewer/LogContainer.vue')['default'] diff --git a/assets/components/LogViewer/ContainerLogViewer.vue b/assets/components/LogViewer/ContainerLogViewer.vue new file mode 100644 index 00000000..c9f2e48c --- /dev/null +++ b/assets/components/LogViewer/ContainerLogViewer.vue @@ -0,0 +1,39 @@ + + + + diff --git a/assets/components/LogViewer/LogEventSource.spec.ts b/assets/components/LogViewer/LogEventSource.spec.ts index e76d2820..28d3a0ec 100644 --- a/assets/components/LogViewer/LogEventSource.spec.ts +++ b/assets/components/LogViewer/LogEventSource.spec.ts @@ -10,7 +10,7 @@ import { computed, nextTick } from "vue"; import { createI18n } from "vue-i18n"; import { createRouter, createWebHistory } from "vue-router"; import LogEventSource from "./LogEventSource.vue"; -import LogViewer from "./LogViewer.vue"; +import ContainerLogViewer from "./ContainerLogViewer.vue"; vi.mock("@/stores/config", () => ({ __esModule: true, @@ -71,7 +71,7 @@ describe("", () => { global: { plugins: [router, createTestingPinia({ createSpy: vi.fn }), createI18n({})], components: { - LogViewer, + ContainerLogViewer, }, provide: { [containerContext as symbol]: { @@ -83,7 +83,7 @@ describe("", () => { }, slots: { default: ` - + `, }, props: {}, diff --git a/assets/components/LogViewer/LogViewer.vue b/assets/components/LogViewer/LogViewer.vue index 5304f959..c15356b1 100644 --- a/assets/components/LogViewer/LogViewer.vue +++ b/assets/components/LogViewer/LogViewer.vue @@ -1,7 +1,7 @@