+
+
Container has no logs yet
@@ -29,6 +30,8 @@ const color = computed(() => {
});
const noLogs = computed(() => messages.value.length === 0);
+const waitingForMoreLog = refAutoReset(false, 3000);
+watchImmediate(loading, () => (waitingForMoreLog.value = true));
defineExpose({
clear: () => (messages.value = []),
@@ -41,4 +44,8 @@ const fetchMore = async () => {
loadingMore.value = false;
}
};
+
+const shuffle = (items: any[]) => {
+ return items.sort(() => Math.random() - 0.5);
+};
diff --git a/assets/components/LogViewer/__snapshots__/EventSource.spec.ts.snap b/assets/components/LogViewer/__snapshots__/EventSource.spec.ts.snap
index 9d65c971..4afebbac 100644
--- a/assets/components/LogViewer/__snapshots__/EventSource.spec.ts.snap
+++ b/assets/components/LogViewer/__snapshots__/EventSource.spec.ts.snap
@@ -60,29 +60,6 @@ exports[`
> render html correctly > should render messag
"
`;
-exports[`
> renders loading correctly 1`] = `
-"
-
-
"
-`;
-
exports[`
> should parse messages 1`] = `
SimpleLogEntry {
"_message": "This is a message.",