Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.
TypeScript albumsexif-extractiongeocodinglive-photomotion-photophoto-galleryphoto-sharingwebgl-viewer
fix(logs): remove log line cap to allow unbounded history loading
Timothy Yin17669ecede69
diff --git a/app/pages/dashboard/logs.vue b/app/pages/dashboard/logs.vueindex 6718727e..6a123f7e 100644--- a/app/pages/dashboard/logs.vue+++ b/app/pages/dashboard/logs.vue@@ -31,7 +31,6 @@ const normalizedSearchQuery = computed(() =>)const scrollTop = ref(0)const containerHeight = ref(0)-const MAX_LOG_LINES = 6000const historyCursor = ref(0)const isLoadingOlder = ref(false)let liveOffset = 0@@ -401,7 +400,7 @@ const appendLines = (lines: string[]) => {const entries = lines.map(parseLogLine).filter((entry): entry is LogEntry => entry !== null)- logs.value = [...logs.value, ...entries].slice(-MAX_LOG_LINES)+ logs.value = [...logs.value, ...entries]if (autoScroll.value) void scrollToBottom('smooth')}@@ -480,12 +479,7 @@ const connectLogStream = async () => {}const loadOlderLogs = async () => {- if (- isInitialLoading.value ||- isLoadingOlder.value ||- !historyCursor.value ||- logs.value.length >= MAX_LOG_LINES- )+ if (isInitialLoading.value || isLoadingOlder.value || !historyCursor.value)returnconst controller = requestControllerlet loaded = false@@ -502,9 +496,7 @@ const loadOlderLogs = async () => {const entries = page.lines.map(parseLogLine).filter((entry): entry is LogEntry => entry !== null)- const capacity = Math.max(0, MAX_LOG_LINES - logs.value.length)- const added = capacity > 0 ? entries.slice(-capacity) : []- logs.value = [...added, ...logs.value]+ logs.value = [...entries, ...logs.value]historyCursor.value = page.before// Update the virtual range in the same render as the prepend. Count only rows// that pass the current filters so the visible log retains its pixel position.