mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-21 21:33:18 +01:00
* WIP for using json all the time * Updates to render * adds a new component for json * Updates styles * Adds nesting * Adds field list * Adds expanding * Adds new composable for event source * Creates an add button * Removes unused code * Adds and removes fields with defaults * Fixes jumping when adding new fields * Returns JSON correctly * Fixes little bugs * Fixes js tests * Adds vscode * Fixes json buffer error * Fixes extra line * Fixes tests * Fixes tests and adds support for search * Refactors visible payload keys to a composable * Fixes typescript errors and refactors * Fixes visible keys by ComputedRef<Ref> * Fixes search bugs * Updates tests * Fixes go tests * Fixes scroll view * Fixes vue tsc errors * Fixes EOF error * Fixes build error * Uses application/ld+json * Fixes arrays and records * Marks for json too
21 lines
477 B
Vue
21 lines
477 B
Vue
<template>
|
|
<log-event-source ref="source" #default="{ messages }" @loading-more="emit('loading-more', $event)">
|
|
<log-viewer :messages="messages"></log-viewer>
|
|
</log-event-source>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import LogViewer from "./LogViewer.vue";
|
|
import { ref } from "vue";
|
|
|
|
const emit = defineEmits(["loading-more"]);
|
|
|
|
const source = ref<InstanceType<typeof LogViewer>>();
|
|
function clear() {
|
|
source.value?.clear();
|
|
}
|
|
defineExpose({
|
|
clear,
|
|
});
|
|
</script>
|