feat: add GOPROXY + fix on saved inputs

This commit is contained in:
Ruben Fiszel
2023-05-18 17:29:37 +02:00
parent 391d22048d
commit dc1bfbb5f5
9 changed files with 73 additions and 29 deletions
@@ -15,7 +15,7 @@
export let scriptPath: string | null = null
export let flowPath: string | null = null
let runnableId: string | undefined = scriptHash || scriptPath || flowPath || undefined
let runnableId: string | undefined = scriptPath || flowPath || undefined
let runnableType: RunnableType | undefined = scriptHash
? RunnableType.SCRIPT_HASH
: scriptPath
@@ -146,7 +146,7 @@
<div class="w-full flex justify-between items-center gap-4 flex-wrap">
<span class="text-sm font-extrabold flex-shrink-0"
>Saved Inputs <Tooltip
>Shared tooltips are available to anyone with access to the script</Tooltip
>Shared inputs are available to anyone with access to the script</Tooltip
></span
>
<Button
@@ -205,15 +205,17 @@
</div>
</Pane>
<Pane size={$savedInputPaneSize}>
<SavedInputs
flowPath={path}
{isValid}
{args}
on:selected_args={(e) => {
args = JSON.parse(JSON.stringify(e.detail))
reloadArgs += 1
}}
/>
{#if $savedInputPaneSize > 0}
<SavedInputs
flowPath={path}
{isValid}
{args}
on:selected_args={(e) => {
args = JSON.parse(JSON.stringify(e.detail))
reloadArgs += 1
}}
/>
{/if}
</Pane>
</Splitpanes>
</SplitPanesWrapper>
@@ -267,15 +267,18 @@
</Pane>
<Pane size={$savedInputPaneSize}>
<SavedInputs
scriptHash={hash}
{isValid}
{args}
on:selected_args={(e) => {
args = JSON.parse(JSON.stringify(e.detail))
reloadArgs += 1
}}
/>
{#if $savedInputPaneSize > 0}
<SavedInputs
scriptPath={script?.path}
scriptHash={topHash}
{isValid}
{args}
on:selected_args={(e) => {
args = JSON.parse(JSON.stringify(e.detail))
reloadArgs += 1
}}
/>
{/if}
</Pane>
</Splitpanes>
</SplitPanesWrapper>