mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-12 16:02:56 +00:00
style: prettier the four remaining files this branch left unformatted
All four fail `prettier --check` on the branch and pass at the merge base. `raw_apps/utils.ts` also fails but already did at the base, so it is left alone. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
7208ffc10f
commit
ccff8da84b
@@ -123,9 +123,9 @@
|
||||
{/if}
|
||||
<div class="flex items-center gap-3 max-w-full">
|
||||
<span
|
||||
class="{compact ? 'text-xs font-medium' : 'text-sm font-semibold'} truncate {emptyString(
|
||||
summary
|
||||
)
|
||||
class="{compact
|
||||
? 'text-xs font-medium'
|
||||
: 'text-sm font-semibold'} truncate {emptyString(summary)
|
||||
? 'text-tertiary italic font-normal'
|
||||
: 'text-emphasis'}"
|
||||
>
|
||||
|
||||
@@ -77,7 +77,6 @@
|
||||
aiChatManager.cancel('aiChatLayout destroyed')
|
||||
historyManager.close()
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
{#if !disableAi}
|
||||
|
||||
@@ -193,34 +193,36 @@
|
||||
)
|
||||
// Labels, paths and icons come from the shared page table, so the nav and the page header's
|
||||
// breadcrumb always call a page the same thing. Everything else here is nav-only.
|
||||
const MAIN_MENU_EXTRAS: Record<string, { aiId: string; aiDescription: string; onclick?: () => void }> =
|
||||
{
|
||||
Home: {
|
||||
aiId: 'sidebar-menu-link-home',
|
||||
aiDescription:
|
||||
"Button to navigate to home which contains all the user's scripts, flows and apps"
|
||||
},
|
||||
Runs: {
|
||||
aiId: 'sidebar-menu-link-runs',
|
||||
aiDescription: 'Button to navigate to runs',
|
||||
onclick: () => {
|
||||
setTimeout(() => {
|
||||
window.dispatchEvent(new Event('popstate'))
|
||||
}, 100)
|
||||
}
|
||||
},
|
||||
Variables: {
|
||||
aiId: 'sidebar-menu-link-variables',
|
||||
aiDescription: 'Button to navigate to variables'
|
||||
},
|
||||
Resources: {
|
||||
aiId: 'sidebar-menu-link-resources',
|
||||
aiDescription: 'Button to navigate to resources'
|
||||
},
|
||||
Assets: { aiId: 'sidebar-menu-link-assets', aiDescription: 'Button to navigate to assets' },
|
||||
Folders: { aiId: 'sidebar-menu-link-folders', aiDescription: 'Button to navigate to folders' },
|
||||
Groups: { aiId: 'sidebar-menu-link-groups', aiDescription: 'Button to navigate to groups' }
|
||||
}
|
||||
const MAIN_MENU_EXTRAS: Record<
|
||||
string,
|
||||
{ aiId: string; aiDescription: string; onclick?: () => void }
|
||||
> = {
|
||||
Home: {
|
||||
aiId: 'sidebar-menu-link-home',
|
||||
aiDescription:
|
||||
"Button to navigate to home which contains all the user's scripts, flows and apps"
|
||||
},
|
||||
Runs: {
|
||||
aiId: 'sidebar-menu-link-runs',
|
||||
aiDescription: 'Button to navigate to runs',
|
||||
onclick: () => {
|
||||
setTimeout(() => {
|
||||
window.dispatchEvent(new Event('popstate'))
|
||||
}, 100)
|
||||
}
|
||||
},
|
||||
Variables: {
|
||||
aiId: 'sidebar-menu-link-variables',
|
||||
aiDescription: 'Button to navigate to variables'
|
||||
},
|
||||
Resources: {
|
||||
aiId: 'sidebar-menu-link-resources',
|
||||
aiDescription: 'Button to navigate to resources'
|
||||
},
|
||||
Assets: { aiId: 'sidebar-menu-link-assets', aiDescription: 'Button to navigate to assets' },
|
||||
Folders: { aiId: 'sidebar-menu-link-folders', aiDescription: 'Button to navigate to folders' },
|
||||
Groups: { aiId: 'sidebar-menu-link-groups', aiDescription: 'Button to navigate to groups' }
|
||||
}
|
||||
let mainMenuLinks = $derived(
|
||||
NAV_PAGES.filter((p) => p.label in MAIN_MENU_EXTRAS)
|
||||
.map((p) => ({
|
||||
|
||||
@@ -122,40 +122,40 @@
|
||||
{/snippet}
|
||||
|
||||
{#snippet auditActions()}
|
||||
<div class="hidden 2xl:block">
|
||||
<AuditLogsFilters
|
||||
{logs}
|
||||
bind:username
|
||||
bind:before
|
||||
bind:after
|
||||
bind:actionKind
|
||||
bind:operation
|
||||
bind:resource
|
||||
bind:pageIndex
|
||||
bind:perPage
|
||||
bind:scope
|
||||
loading={auditLogsLoader.loading}
|
||||
onRefresh={() => auditLogsLoader.reload()}
|
||||
/>
|
||||
</div>
|
||||
<div class="2xl:hidden">
|
||||
<AuditLogMobileFilters>
|
||||
{#snippet filters()}
|
||||
<AuditLogsFilters
|
||||
{logs}
|
||||
bind:username
|
||||
bind:before
|
||||
bind:after
|
||||
bind:actionKind
|
||||
bind:operation
|
||||
bind:resource
|
||||
bind:scope
|
||||
loading={auditLogsLoader.loading}
|
||||
onRefresh={() => auditLogsLoader.reload()}
|
||||
/>
|
||||
{/snippet}
|
||||
</AuditLogMobileFilters>
|
||||
</div>
|
||||
<div class="hidden 2xl:block">
|
||||
<AuditLogsFilters
|
||||
{logs}
|
||||
bind:username
|
||||
bind:before
|
||||
bind:after
|
||||
bind:actionKind
|
||||
bind:operation
|
||||
bind:resource
|
||||
bind:pageIndex
|
||||
bind:perPage
|
||||
bind:scope
|
||||
loading={auditLogsLoader.loading}
|
||||
onRefresh={() => auditLogsLoader.reload()}
|
||||
/>
|
||||
</div>
|
||||
<div class="2xl:hidden">
|
||||
<AuditLogMobileFilters>
|
||||
{#snippet filters()}
|
||||
<AuditLogsFilters
|
||||
{logs}
|
||||
bind:username
|
||||
bind:before
|
||||
bind:after
|
||||
bind:actionKind
|
||||
bind:operation
|
||||
bind:resource
|
||||
bind:scope
|
||||
loading={auditLogsLoader.loading}
|
||||
onRefresh={() => auditLogsLoader.reload()}
|
||||
/>
|
||||
{/snippet}
|
||||
</AuditLogMobileFilters>
|
||||
</div>
|
||||
{/snippet}
|
||||
<!-- The band draws no edge of its own, so the timeline keeps a little air under it. -->
|
||||
<div class="h-2/6 pt-2">
|
||||
|
||||
Reference in New Issue
Block a user