mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
No in line view logs for verified
This commit is contained in:
-19
@@ -1,19 +0,0 @@
|
||||
<script lang="ts">
|
||||
import { onMount } from 'svelte';
|
||||
import { page } from '$app/state';
|
||||
import { realtime } from '$lib/stores/sdk';
|
||||
import { Dependencies } from '$lib/constants';
|
||||
import { invalidate } from '$app/navigation';
|
||||
|
||||
onMount(() => {
|
||||
return realtime
|
||||
.forProject(page.params.region, page.params.project)
|
||||
.subscribe('console', (response) => {
|
||||
if (response.events.includes('projects.*.proxy.*.update')) {
|
||||
invalidate(Dependencies.FUNCTION_DOMAINS);
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<slot />
|
||||
+24
-13
@@ -96,6 +96,18 @@
|
||||
variant="secondary"
|
||||
content="Generating certificate"
|
||||
size="xs" />
|
||||
{#if proxyRule.logs && proxyRule.logs.length > 0}
|
||||
<Link
|
||||
size="s"
|
||||
variant="muted"
|
||||
on:click={(e) => {
|
||||
e.preventDefault();
|
||||
selectedProxyRule = proxyRule;
|
||||
showLogs = true;
|
||||
}}>
|
||||
View logs
|
||||
</Link>
|
||||
{/if}
|
||||
</Layout.Stack>
|
||||
{:else if proxyRule.status === 'unverified'}
|
||||
<Layout.Stack direction="row" gap="s" alignItems="center">
|
||||
@@ -104,21 +116,20 @@
|
||||
type="error"
|
||||
content="Certificate generation failed"
|
||||
size="xs" />
|
||||
{#if proxyRule.logs && proxyRule.logs.length > 0}
|
||||
<Link
|
||||
size="s"
|
||||
variant="muted"
|
||||
on:click={(e) => {
|
||||
e.preventDefault();
|
||||
selectedProxyRule = proxyRule;
|
||||
showLogs = true;
|
||||
}}>
|
||||
View logs
|
||||
</Link>
|
||||
{/if}
|
||||
</Layout.Stack>
|
||||
{/if}
|
||||
|
||||
{#if proxyRule.logs && proxyRule.logs.length > 0}
|
||||
<Link
|
||||
size="s"
|
||||
variant="muted"
|
||||
on:click={(e) => {
|
||||
e.preventDefault();
|
||||
selectedProxyRule = proxyRule;
|
||||
showLogs = true;
|
||||
}}>
|
||||
View logs
|
||||
</Link>
|
||||
{/if}
|
||||
</Layout.Stack>
|
||||
{:else if column.id === 'target'}
|
||||
{proxyTarget(proxyRule)}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
<script lang="ts">
|
||||
import { onMount } from 'svelte';
|
||||
import { page } from '$app/state';
|
||||
import { realtime } from '$lib/stores/sdk';
|
||||
import { Dependencies } from '$lib/constants';
|
||||
import { invalidate } from '$app/navigation';
|
||||
|
||||
onMount(() => {
|
||||
return realtime
|
||||
.forProject(page.params.region, page.params.project)
|
||||
.subscribe('console', (response) => {
|
||||
if (response.events.includes('projects.*.proxy.*.update')) {
|
||||
invalidate(Dependencies.DOMAINS);
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<slot />
|
||||
@@ -103,6 +103,18 @@
|
||||
variant="secondary"
|
||||
content="Generating certificate"
|
||||
size="xs" />
|
||||
{#if domain.logs && domain.logs.length > 0}
|
||||
<Link
|
||||
size="s"
|
||||
variant="muted"
|
||||
on:click={(e) => {
|
||||
e.preventDefault();
|
||||
selectedDomain = domain;
|
||||
showLogs = true;
|
||||
}}>
|
||||
View logs
|
||||
</Link>
|
||||
{/if}
|
||||
</Layout.Stack>
|
||||
{:else if domain.status === 'unverified'}
|
||||
<Layout.Stack direction="row" gap="s" alignItems="center">
|
||||
@@ -111,21 +123,20 @@
|
||||
type="error"
|
||||
content="Certificate generation failed"
|
||||
size="xs" />
|
||||
{#if domain.logs && domain.logs.length > 0}
|
||||
<Link
|
||||
size="s"
|
||||
variant="muted"
|
||||
on:click={(e) => {
|
||||
e.preventDefault();
|
||||
selectedDomain = domain;
|
||||
showLogs = true;
|
||||
}}>
|
||||
View logs
|
||||
</Link>
|
||||
{/if}
|
||||
</Layout.Stack>
|
||||
{/if}
|
||||
|
||||
{#if domain.logs && domain.logs.length > 0}
|
||||
<Link
|
||||
size="s"
|
||||
variant="muted"
|
||||
on:click={(e) => {
|
||||
e.preventDefault();
|
||||
selectedDomain = domain;
|
||||
showLogs = true;
|
||||
}}>
|
||||
View logs
|
||||
</Link>
|
||||
{/if}
|
||||
</Layout.Stack>
|
||||
{:else if column.id === 'updated'}
|
||||
<Layout.Stack direction="row" justifyContent="flex-end">
|
||||
|
||||
-19
@@ -1,19 +0,0 @@
|
||||
<script lang="ts">
|
||||
import { onMount } from 'svelte';
|
||||
import { page } from '$app/state';
|
||||
import { realtime } from '$lib/stores/sdk';
|
||||
import { Dependencies } from '$lib/constants';
|
||||
import { invalidate } from '$app/navigation';
|
||||
|
||||
onMount(() => {
|
||||
return realtime
|
||||
.forProject(page.params.region, page.params.project)
|
||||
.subscribe('console', (response) => {
|
||||
if (response.events.includes('projects.*.proxy.*.update')) {
|
||||
invalidate(Dependencies.SITES_DOMAINS);
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<slot />
|
||||
+24
-13
@@ -97,6 +97,18 @@
|
||||
variant="secondary"
|
||||
content="Generating certificate"
|
||||
size="xs" />
|
||||
{#if rule.logs && rule.logs.length > 0}
|
||||
<Link
|
||||
size="s"
|
||||
variant="muted"
|
||||
on:click={(e) => {
|
||||
e.preventDefault();
|
||||
selectedProxyRule = rule;
|
||||
showLogs = true;
|
||||
}}>
|
||||
View logs
|
||||
</Link>
|
||||
{/if}
|
||||
</Layout.Stack>
|
||||
{:else if rule.status === 'unverified'}
|
||||
<Layout.Stack direction="row" gap="s" alignItems="center">
|
||||
@@ -105,21 +117,20 @@
|
||||
type="error"
|
||||
content="Certificate generation failed"
|
||||
size="xs" />
|
||||
{#if rule.logs && rule.logs.length > 0}
|
||||
<Link
|
||||
size="s"
|
||||
variant="muted"
|
||||
on:click={(e) => {
|
||||
e.preventDefault();
|
||||
selectedProxyRule = rule;
|
||||
showLogs = true;
|
||||
}}>
|
||||
View logs
|
||||
</Link>
|
||||
{/if}
|
||||
</Layout.Stack>
|
||||
{/if}
|
||||
|
||||
{#if rule.logs && rule.logs.length > 0}
|
||||
<Link
|
||||
size="s"
|
||||
variant="muted"
|
||||
on:click={(e) => {
|
||||
e.preventDefault();
|
||||
selectedProxyRule = rule;
|
||||
showLogs = true;
|
||||
}}>
|
||||
View logs
|
||||
</Link>
|
||||
{/if}
|
||||
</Layout.Stack>
|
||||
{:else if column.id === 'target'}
|
||||
{proxyTarget(rule)}
|
||||
|
||||
Reference in New Issue
Block a user