diff --git a/src/routes/settings/logs/+page.svelte b/src/routes/settings/logs/+page.svelte index 101b4ca..0d33c23 100644 --- a/src/routes/settings/logs/+page.svelte +++ b/src/routes/settings/logs/+page.svelte @@ -1,7 +1,10 @@ + + + + + + + + + + {#each logFiles as file} + onChangeFile(file.filename)} + class="flex w-full items-center justify-between gap-4 border-b border-neutral-200 px-4 py-2.5 text-left transition-colors first:rounded-t-lg last:rounded-b-lg last:border-b-0 dark:border-neutral-700 + {selectedFile === file.filename + ? 'bg-neutral-100 dark:bg-neutral-700' + : 'hover:bg-neutral-100 dark:hover:bg-neutral-700'}" + > + + + {file.filename} + + + {formatDate(file.modified)} + + + + {formatFileSize(file.size)} + + + {/each} + + + + + + + + + + {#each logLevels as level} + onChangeLevel(level)} + class="flex w-full items-center justify-between gap-3 border-b border-neutral-200 px-4 py-2 text-left transition-colors first:rounded-t-lg last:rounded-b-lg last:border-b-0 dark:border-neutral-700 + {selectedLevel === level + ? 'bg-neutral-100 dark:bg-neutral-700' + : 'hover:bg-neutral-100 dark:hover:bg-neutral-700'}" + > + {level} + + {/each} + + + + + + + + + + {#each uniqueSources as source} + onToggleSource(source)} + class="flex w-full items-center justify-between gap-3 border-b border-neutral-200 px-4 py-2 text-left text-sm transition-colors first:rounded-t-lg last:rounded-b-lg last:border-b-0 dark:border-neutral-700 + {selectedSources.has(source) + ? 'bg-neutral-100 dark:bg-neutral-700' + : 'hover:bg-neutral-100 dark:hover:bg-neutral-700'}" + > + {source} + {#if selectedSources.has(source)} + + {/if} + + {/each} + + + + + + + + + + + + Refresh logs + + + + + + + + + + + Download logs as JSON + + + + +