closeDrawer()}> {#if drawerContent?.content == undefined}
{:else if drawerContent?.mode === 'json'} {:else if drawerContent?.mode === 'plain'}
{drawerContent?.content}
			
{:else if drawerContent?.mode === 'deno' || drawerContent?.mode === 'python3' || drawerContent?.mode === 'go' || drawerContent?.mode === 'bash' || drawerContent?.mode === 'nativets'} {/if}
Logs & Result History {#if selectedTab === 'logs'} {#if previewJob != undefined && 'result' in previewJob}
{#if lang && editor && diffEditor && args && previewJob?.result?.error} {/if}
{:else}
{#if previewIsLoading} {:else} Test to see the result here {/if}
{/if}
{/if} Id Created at Success Result Code Logs {#each pastPreviews as { id, created_at, success }} {id.substring(30)} {displayDate(created_at)} {#if success} {:else} {/if} { openDrawer({ mode: 'json', content: undefined, title: 'Result' }) JobService.getCompletedJobResult({ workspace: $workspaceStore ?? 'NO_W', id }).then((res) => { drawerContent && (drawerContent.content = res) }) }} > See Result { const code = ( await JobService.getCompletedJob({ workspace: $workspaceStore ?? 'NO_W', id }) ).raw_code openDrawer({ mode: lang ?? 'plain', content: String(code), title: `Code ${lang}` }) }} > View code { const logs = ( await JobService.getCompletedJob({ workspace: $workspaceStore ?? 'NO_W', id }) ).logs openDrawer({ mode: 'plain', content: String(logs), title: `Logs for ${id}` }) }} > View logs {/each}