Skip to content

Commit

Permalink
[fix] remove jsontree
Browse files Browse the repository at this point in the history
  • Loading branch information
braebo committed Jan 13, 2022
1 parent c9c79c8 commit 7106514
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lib/utils/Debugger/Debugger.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@

<template lang="pug">

+if('$showDebugger && $debug')
+if('$showDebugger && !!$debug')
FloatingPanel({bounds} {position} {grabZone} {panelWidth} {panelHeight})
.debug-panel.scroller.vertical(transition:fade='{{ duration: 100 }}' bind:this='{debugPanel}')
.debuggable.one.scroller
Expand All @@ -125,7 +125,6 @@
h4 {name}
pre(use:highlight)
code.language-JSON.language-json {name}: {JSON.stringify(value, null, 2)}
// <JSONTree {value} />
.copy(on:click!='{() => handleCopy(value, i)}') {!copied[i] ? 'Copy' : 'Copied!'}
+else
pre.disabled
Expand All @@ -137,7 +136,7 @@

+if('hovering || !!$debug')
// svelte-ignore a11y-mouse-events-have-key-events
button(on:click='{toggle}' on:mouseover='{mouseover}' transition:fly='{{ y: 50 }}')
button(on:click='{toggle}' on:mouseover='{mouseover}' transition:fly='{{ y: 50 }}')
.bug 🐞

</template>
Expand Down

0 comments on commit 7106514

Please sign in to comment.