1.0.11
This commit is contained in:
1 parent
fe48d63164
commit
a3cc26d958
35 files changed
+2045
-273
No files matched your search
@@ -4,7 +4,7 @@
|
||||
import CronEditor from '$lib/components/cron-editor.svelte';
|
||||
import VulnerabilityCriteriaSelector, { type VulnerabilityCriteria } from '$lib/components/VulnerabilityCriteriaSelector.svelte';
|
||||
import { currentEnvironment } from '$lib/stores/environment';
|
||||
import { Ship, Cable, ExternalLink, AlertTriangle } from 'lucide-svelte';
|
||||
import { Ship, Cable, ExternalLink, AlertTriangle, Info, Layers } from 'lucide-svelte';
|
||||
import type { SystemContainerType } from '$lib/types';
|
||||
|
||||
interface Props {
|
||||
@@ -12,6 +12,8 @@
|
||||
cronExpression: string;
|
||||
vulnerabilityCriteria: VulnerabilityCriteria;
|
||||
systemContainer?: SystemContainerType | null;
|
||||
isComposeContainer?: boolean;
|
||||
composeStackName?: string;
|
||||
onenablechange?: (enabled: boolean) => void;
|
||||
oncronchange?: (cron: string) => void;
|
||||
oncriteriachange?: (criteria: VulnerabilityCriteria) => void;
|
||||
@@ -22,6 +24,8 @@
|
||||
cronExpression = $bindable(),
|
||||
vulnerabilityCriteria = $bindable(),
|
||||
systemContainer = null,
|
||||
isComposeContainer = false,
|
||||
composeStackName = '',
|
||||
onenablechange,
|
||||
oncronchange,
|
||||
oncriteriachange
|
||||
@@ -93,6 +97,20 @@
|
||||
/>
|
||||
</div>
|
||||
|
||||
{#if isComposeContainer && enabled}
|
||||
<div class="flex items-start gap-2 rounded-md border border-blue-200 bg-blue-50 p-3 dark:border-blue-800 dark:bg-blue-950">
|
||||
<Layers class="mt-0.5 h-4 w-4 text-blue-600 dark:text-blue-400 shrink-0" />
|
||||
<div class="text-xs text-blue-800 dark:text-blue-200">
|
||||
<p class="font-medium">Stack container update behavior</p>
|
||||
<p class="mt-1 text-blue-700 dark:text-blue-300">
|
||||
This container is part of the <strong>{composeStackName}</strong> stack.
|
||||
Updates will use <code class="rounded bg-blue-100 px-1 dark:bg-blue-900">docker compose up -d</code>
|
||||
to preserve all configuration from the compose file.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{#if enabled}
|
||||
<CronEditor
|
||||
value={cronExpression}
|
||||
|
||||
@@ -114,6 +114,9 @@
|
||||
autoUpdateEnabled: boolean;
|
||||
autoUpdateCronExpression: string;
|
||||
vulnerabilityCriteria: VulnerabilityCriteria;
|
||||
// Compose stack info
|
||||
isComposeContainer?: boolean;
|
||||
composeStackName?: string;
|
||||
// Config sets
|
||||
configSets: ConfigSet[];
|
||||
selectedConfigSetId: string;
|
||||
@@ -170,6 +173,8 @@
|
||||
autoUpdateEnabled = $bindable(),
|
||||
autoUpdateCronExpression = $bindable(),
|
||||
vulnerabilityCriteria = $bindable(),
|
||||
isComposeContainer = false,
|
||||
composeStackName = '',
|
||||
configSets,
|
||||
selectedConfigSetId = $bindable(),
|
||||
errors = $bindable(),
|
||||
@@ -1273,6 +1278,8 @@
|
||||
bind:cronExpression={autoUpdateCronExpression}
|
||||
bind:vulnerabilityCriteria={vulnerabilityCriteria}
|
||||
systemContainer={detectSystemContainer(image)}
|
||||
{isComposeContainer}
|
||||
{composeStackName}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1004,6 +1004,8 @@
|
||||
bind:autoUpdateEnabled
|
||||
bind:autoUpdateCronExpression
|
||||
bind:vulnerabilityCriteria
|
||||
{isComposeContainer}
|
||||
{composeStackName}
|
||||
{configSets}
|
||||
bind:selectedConfigSetId
|
||||
bind:errors
|
||||
|
||||
Reference in new issue
Block a user