Skip to content

Commit

Permalink
fix: Allow run git for Deno (#2789)
Browse files Browse the repository at this point in the history
  • Loading branch information
gbouv committed Dec 6, 2023
1 parent 0b13f2d commit 8ad8d20
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions backend/windmill-worker/src/deno_executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ pub async fn generate_deno_lock(
.args(vec![
"cache",
"--unstable",
"--allow-run='git'", // TODO: make this configurable from an env variable when needed
"--lock=lock.json",
"--lock-write",
"--import-map",
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/lib/components/DisplayResult.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import TableCustom from './TableCustom.svelte'
import { copyToClipboard, roughSizeOfObject, truncate } from '$lib/utils'
import { Button, Drawer, DrawerContent } from './common'
import { ClipboardCopy, Download, Expand } from 'lucide-svelte'
import { ClipboardCopy, Download, Expand, PanelRightOpen } from 'lucide-svelte'
import Portal from 'svelte-portal'
import ObjectViewer from './propertyPicker/ObjectViewer.svelte'
import S3FilePicker from './S3FilePicker.svelte'
Expand Down Expand Up @@ -312,19 +312,19 @@
on:click={() => {
s3FileViewer?.open?.(result)
}}
>s3 explorer
><span class="flex items-center gap-1"><PanelRightOpen size={12} />open preview</span>
</button>
</div>
{:else if !forceJson && resultKind == 's3object-list'}
<div class="absolute top-1 h-full w-full">
{#each result as s3object}
<Highlight class="" language={json} code={toJsonStr(s3object).replace(/\\n/g, '\n')} />
<button
class="text-secondary underline text-2xs whitespace-nowrap"
class="text-secondary text-2xs whitespace-nowrap"
on:click={() => {
s3FileViewer?.open?.(s3object)
}}
>s3 explorer
><span class="flex items-center gap-1"><PanelRightOpen size={12} />open preview</span>
</button>
{/each}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import WarningMessage from './WarningMessage.svelte'
import { NEVER_TESTED_THIS_FAR } from '../flows/models'
import Portal from 'svelte-portal'
import { PanelRightOpen } from 'lucide-svelte'
import S3FilePicker from '../S3FilePicker.svelte'
export let json: any
Expand Down Expand Up @@ -137,7 +138,7 @@
on:click={() => {
s3FileViewer?.open?.(json)
}}
>s3 explorer
><span class="flex items-center gap-1"><PanelRightOpen size={12} />open preview</span>
</button>
{/if}
{/if}
Expand Down

0 comments on commit 8ad8d20

Please sign in to comment.