Skip to content

Commit

Permalink
cleanup debug page
Browse files Browse the repository at this point in the history
  • Loading branch information
birdpump committed Aug 12, 2024
1 parent 52e48b4 commit 5764648
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/routes/(admin)/admin/debug/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,16 @@
import {onMount} from 'svelte';
import AnsiToHtml from 'ansi-to-html';
let logHtml;
let logHtml = '';
onMount(async () => {
let test = await getDebugLogs()
console.log(test)
const convert = new AnsiToHtml();
logHtml = test.map(log => convert.toHtml(log)).join('')
console.log(logHtml)
});
</script>


<svelte:head>
<title>Locker - Debug</title>
</svelte:head>
Expand Down Expand Up @@ -52,4 +47,4 @@
<div class="log-entry">
{@html logHtml}
</div>
</div>
</div>

0 comments on commit 5764648

Please sign in to comment.