diff --git a/src/lib/client/SuperDebug.svelte b/src/lib/client/SuperDebug.svelte index 12350ca0..ea6df25b 100644 --- a/src/lib/client/SuperDebug.svelte +++ b/src/lib/client/SuperDebug.svelte @@ -1,697 +1,18 @@ - -{#if !styleInit} - - - {@const init = styleInit = true} -{/if} - - -{#if display} -
-
-
{label}
-
- - {#if status} -
= 200 && $page.status < 300} - class:super-debug--redirect={$page.status >= 300 && $page.status < 400} - class:super-debug--error={$page.status >= 400} - > - {$page.status} -
- {/if} -
-
-
{#if assertPromise($debugData, raw, promise)}{#await $debugData}
Loading data...
{:then result}{@html syntaxHighlight( - assertStore(result, raw) ? get(result) : result - )}{:catch error}Rejected: {@html syntaxHighlight(error)}{/await}{:else}{@html syntaxHighlight( - $debugData - )}{/if}
- {#if collapsible} - - {/if} -
+{#if VERSION.startsWith('3') || VERSION.startsWith('4')} + +{:else} + {/if} + {@const init = styleInit = true} +{/if} + + +{#if display} +
+
+
{label}
+
+ + {#if status} +
= 200 && $page.status < 300} + class:super-debug--redirect={$page.status >= 300 && $page.status < 400} + class:super-debug--error={$page.status >= 400} + > + {$page.status} +
+ {/if} +
+
+
{#if assertPromise($debugData, raw, promise)}{#await $debugData}
Loading data...
{:then result}{@html syntaxHighlight( + assertStore(result, raw) ? get(result) : result + )}{:catch error}Rejected: {@html syntaxHighlight(error)}{/await}{:else}{@html syntaxHighlight( + $debugData + )}{/if}
+ {#if collapsible} + + {/if} +
+{/if} + + diff --git a/src/lib/client/SuperDebugRuned.svelte b/src/lib/client/SuperDebugRuned.svelte new file mode 100644 index 00000000..6acd1806 --- /dev/null +++ b/src/lib/client/SuperDebugRuned.svelte @@ -0,0 +1,743 @@ + + +{#if !styleInit} + +{/if} + + +{#if display} +
+
+
{label}
+
+ + {#if status} +
= 200 && page.status < 300} + class:super-debug--redirect={page.status >= 300 && page.status < 400} + class:super-debug--error={page.status >= 400} + > + {page.status} +
+ {/if} +
+
+
{#if children}{@render children()}{:else if assertPromise(debugData, raw, promise)}{#await debugData}
Loading data...
{:then result}{@html syntaxHighlight( + assertStore(result, raw) ? fromStore(result) : result + )}{:catch error}Rejected: {@html syntaxHighlight(error)}{/await}{:else}{@html syntaxHighlight( + debugData + )}{/if}
+ {#if collapsible} + + {/if} +
+{/if} + +