-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip: add entrypoints to services and targets
- Loading branch information
Showing
70 changed files
with
3,513 additions
and
1,933 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
examples | ||
Makefile | ||
Dockerfile | ||
compose.yml | ||
docs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,15 @@ | ||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--mdi" width="32" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path fill="currentColor" d="M2.6 10.59L8.38 4.8l1.69 1.7c-.24.85.15 1.78.93 2.23v5.54c-.6.34-1 .99-1 1.73a2 2 0 0 0 2 2a2 2 0 0 0 2-2c0-.74-.4-1.39-1-1.73V9.41l2.07 2.09c-.07.15-.07.32-.07.5a2 2 0 0 0 2 2a2 2 0 0 0 2-2a2 2 0 0 0-2-2c-.18 0-.35 0-.5.07L13.93 7.5a1.98 1.98 0 0 0-1.15-2.34c-.43-.16-.88-.2-1.28-.09L9.8 3.38l.79-.78c.78-.79 2.04-.79 2.82 0l7.99 7.99c.79.78.79 2.04 0 2.82l-7.99 7.99c-.78.79-2.04.79-2.82 0L2.6 13.41c-.79-.78-.79-2.04 0-2.82Z"></path></svg> | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
xmlns:xlink="http://www.w3.org/1999/xlink" | ||
aria-hidden="true" | ||
role="img" | ||
class="iconify iconify--mdi" | ||
width="32" | ||
height="32" | ||
preserveAspectRatio="xMidYMid meet" | ||
viewBox="0 0 24 24" | ||
><path | ||
fill="currentColor" | ||
d="M2.6 10.59L8.38 4.8l1.69 1.7c-.24.85.15 1.78.93 2.23v5.54c-.6.34-1 .99-1 1.73a2 2 0 0 0 2 2a2 2 0 0 0 2-2c0-.74-.4-1.39-1-1.73V9.41l2.07 2.09c-.07.15-.07.32-.07.5a2 2 0 0 0 2 2a2 2 0 0 0 2-2a2 2 0 0 0-2-2c-.18 0-.35 0-.5.07L13.93 7.5a1.98 1.98 0 0 0-1.15-2.34c-.43-.16-.88-.2-1.28-.09L9.8 3.38l.79-.78c.78-.79 2.04-.79 2.82 0l7.99 7.99c.79.78.79 2.04 0 2.82l-7.99 7.99c-.78.79-2.04.79-2.82 0L2.6 13.41c-.79-.78-.79-2.04 0-2.82Z" | ||
/></svg | ||
> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,6 +50,7 @@ | |
} | ||
.pill svg { | ||
display: block; | ||
height: 1rem; | ||
width: 1rem; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<script lang="ts"> | ||
import type { Entrypoint } from '$lib/resources/deployments'; | ||
export let data: Entrypoint; | ||
</script> | ||
|
||
{#if data.url} | ||
<a class="entry" href={data.url} rel="noopener noreferrer" target="_blank"> | ||
<span class="port">{data.port}</span> | ||
<span class="content">{data.url}</span> | ||
</a> | ||
{:else} | ||
<div class="entry"> | ||
<span class="port">{data.port}</span> | ||
<span class="content">-</span> | ||
</div> | ||
{/if} | ||
|
||
<style module> | ||
.entry { | ||
border: 1px solid var(--co-primary-4); | ||
background-color: var(--co-background-5); | ||
border-radius: var(--ra-4); | ||
border: 1px solid var(--co-divider-4); | ||
color: var(--co-text-4) !important; | ||
display: flex; | ||
align-items: center; | ||
font: var(--ty-caption); | ||
flex-shrink: 0; | ||
} | ||
a.entry:hover, | ||
a.entry:focus { | ||
border-color: var(--co-primary-4); | ||
color: var(--co-primary-4) !important; | ||
} | ||
a.entry:focus { | ||
outline: var(--ou-primary); | ||
} | ||
.port { | ||
background-color: var(--co-warning-1); | ||
border-inline-end: 1px solid var(--co-divider-4); | ||
border-start-start-radius: var(--ra-4); | ||
border-end-start-radius: var(--ra-4); | ||
color: var(--co-warning-4); | ||
padding: var(--sp-1); | ||
} | ||
a.entry .port { | ||
background-color: var(--co-primary-1); | ||
color: var(--co-primary-4); | ||
} | ||
.content { | ||
padding: var(--sp-1); | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<script lang="ts"> | ||
import type { Service } from '$lib/resources/deployments'; | ||
import Stack from '$components/stack.svelte'; | ||
import EntrypointPill from '$components/entrypoint-pill.svelte'; | ||
export let data: Service; | ||
</script> | ||
|
||
<Stack as="article" class="container" direction="column" gap={2}> | ||
<Stack justify="space-between"> | ||
<div>{data.name}</div> | ||
<div class="image-pill">{data.image}</div> | ||
</Stack> | ||
{#if data.entrypoints && data.entrypoints.length > 0} | ||
<Stack as="ul" wrap="wrap" gap={1}> | ||
{#each data.entrypoints as entrypoint (entrypoint.name)} | ||
<li> | ||
<EntrypointPill data={entrypoint} /> | ||
</li> | ||
{/each} | ||
</Stack> | ||
{/if} | ||
</Stack> | ||
|
||
<style module> | ||
.container { | ||
background-color: var(--co-background-6); | ||
border: 1px solid var(--co-divider-4); | ||
border-radius: var(--ra-4); | ||
padding: var(--sp-2); | ||
} | ||
.image-pill { | ||
background-color: var(--co-background-5); | ||
border-radius: var(--ra-4); | ||
border: 1px solid var(--co-divider-4); | ||
font: var(--ty-caption); | ||
color: var(--co-text-4); | ||
padding: 0.125rem var(--sp-2); | ||
white-space: nowrap; | ||
text-overflow: ellipsis; | ||
overflow: hidden; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.