diff --git a/src/lib/components/trim.svelte b/src/lib/components/trim.svelte index a43bbb0aa..2d56222c3 100644 --- a/src/lib/components/trim.svelte +++ b/src/lib/components/trim.svelte @@ -3,6 +3,7 @@ import { throttle } from '$lib/helpers/functions'; import { onMount } from 'svelte'; + export let alternativeTrim = false; let showTooltip = false; let container: HTMLSpanElement | null; @@ -15,7 +16,7 @@ - + {#if showTooltip} - -
-

Domain

-
- - @@ -129,14 +117,20 @@

Build time: {calculateTime(activeDeployment.buildTime)}

- Created: + Updated:

Size: {fileSize.value + fileSize.unit}

-

+

Source:

+ {#if data.domain?.rules?.length} +

+ Domains: + +

+ {/if}
+ import { DropList, DropListLink, Trim } from '$lib/components'; + import { Pill } from '$lib/elements'; + import type { Models } from '@appwrite.io/console'; + + export let domain: Models.ProxyRuleList; + let showDropdown = false; + + +
+ + + + {domain.rules[0].domain} + + + {#if domain.rules.length > 1} + + (showDropdown = !showDropdown)}> + +{domain.rules.length - 1} + + + {#each domain.rules as rule, i} + {#if i !== 0} + + {rule.domain} + + {/if} + {/each} + + + {/if} +
diff --git a/src/routes/console/project-[project]/functions/function-[function]/deploymentSource.svelte b/src/routes/console/project-[project]/functions/function-[function]/deploymentSource.svelte index e4dca51fe..4bfe6bd6d 100644 --- a/src/routes/console/project-[project]/functions/function-[function]/deploymentSource.svelte +++ b/src/routes/console/project-[project]/functions/function-[function]/deploymentSource.svelte @@ -1,55 +1,32 @@ {#if deployment.type === 'vcs'} - + + + + + {deployment.providerRepositoryOwner}/{deployment.providerRepositoryName} + + + {deployment.providerBranch} + + + {deployment?.providerCommitHash?.substring(0, 7)} + {deployment.providerCommitMessage} + + + {:else if deployment.type === 'manual'}
-
    + {#if headers} {#each headers as [name, value], index} @@ -162,7 +162,7 @@ {/each} {/if} -
+