mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-20 08:01:35 +00:00
UI nits
This commit is contained in:
@@ -595,7 +595,8 @@
|
||||
|
||||
<div
|
||||
bind:this={divEl}
|
||||
class="{$$props.class} template rounded-lg mx-0.5"
|
||||
style="height: 18px;"
|
||||
class="{$$props.class} template rounded-lg min-h-4 mx-0.5"
|
||||
bind:clientWidth={width}
|
||||
/>
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
import { fly } from 'svelte/transition'
|
||||
import type { Policy } from '$lib/gen'
|
||||
import UnsavedConfirmationModal from '$lib/components/common/confirmationModal/UnsavedConfirmationModal.svelte'
|
||||
import { page } from '$app/stores'
|
||||
|
||||
export let app: App
|
||||
export let path: string
|
||||
@@ -95,7 +96,11 @@
|
||||
mounted = true
|
||||
})
|
||||
|
||||
$: context = { email: $userStore?.email, username: $userStore?.username }
|
||||
$: context = {
|
||||
email: $userStore?.email,
|
||||
username: $userStore?.username,
|
||||
query: Object.fromEntries($page.url.searchParams.entries())
|
||||
}
|
||||
|
||||
$: mounted && ($worldStore = buildWorld($staticOutputs, $worldStore, context))
|
||||
$: previewing = $mode === 'preview'
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<script lang="ts">
|
||||
import { page } from '$app/stores'
|
||||
import { classNames } from '$lib/utils'
|
||||
import { getContext } from 'svelte'
|
||||
import { key } from 'svelte-awesome/icons'
|
||||
@@ -37,7 +38,7 @@
|
||||
return 'Table action'
|
||||
}
|
||||
}
|
||||
$: panels = [['ctx', ['email', 'username']] as [string, string[]]].concat(
|
||||
$: panels = [['ctx', ['email', 'username', 'query']] as [string, string[]]].concat(
|
||||
Object.entries($staticOutputs)
|
||||
)
|
||||
</script>
|
||||
|
||||
@@ -24,7 +24,11 @@
|
||||
{#if app}
|
||||
<div class="border rounded-md p-2 w-full">
|
||||
<AppPreview
|
||||
context={{ email: $userStore?.email, username: $userStore?.username }}
|
||||
context={{
|
||||
email: $userStore?.email,
|
||||
username: $userStore?.username,
|
||||
query: Object.fromEntries($page.url.searchParams.entries())
|
||||
}}
|
||||
workspace={$workspaceStore ?? ''}
|
||||
summary={app.summary}
|
||||
app={app.value}
|
||||
|
||||
@@ -69,7 +69,11 @@
|
||||
<div class="border rounded-md p-2 w-full">
|
||||
<AppPreview
|
||||
noBackend={false}
|
||||
context={{ email: $userStore?.email, username: $userStore?.username }}
|
||||
context={{
|
||||
email: $userStore?.email,
|
||||
username: $userStore?.username,
|
||||
query: Object.fromEntries($page.url.searchParams.entries())
|
||||
}}
|
||||
workspace={$page.params.workspace}
|
||||
summary={app.summary}
|
||||
app={app.value}
|
||||
|
||||
Reference in New Issue
Block a user