-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This also enables generic handling of status, names and descriptions, all of which are mutable etc etc.
- Loading branch information
Showing
66 changed files
with
3,500 additions
and
791 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
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,3 +1,19 @@ | ||
<script lang="ts"> | ||
import * as Identity from '$lib/openapi/identity'; | ||
import StatusIcon from '$lib/StatusIcon.svelte'; | ||
export let metadata: Identity.ResourceReadMetadata; | ||
export let href: string; | ||
</script> | ||
|
||
<div class="flex gap-4 items-center justify-between variant-glass rounded-lg p-4"> | ||
<header class="flex items-center gap-4"> | ||
<StatusIcon {metadata} /> | ||
<a class="font-bold" {href}>{metadata.name}</a> | ||
{#if metadata.description} | ||
<em>{metadata.description}</em> | ||
{/if} | ||
</header> | ||
|
||
<slot /> | ||
</div> |
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.