-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This will be reused in the repo sidebar.
- Loading branch information
Showing
5 changed files
with
63 additions
and
35 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
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,54 @@ | ||
<script lang="ts"> | ||
import type { RepoInfo } from "@bindings/RepoInfo"; | ||
import Fill from "./Fill.svelte"; | ||
import Icon from "./Icon.svelte"; | ||
export let repo: RepoInfo; | ||
export let selfDid: string; | ||
export let emphasizedTitle: boolean = true; | ||
$: project = repo.payloads["xyz.radicle.project"]!; | ||
</script> | ||
|
||
<style> | ||
.header { | ||
justify-content: space-between; | ||
width: 100%; | ||
} | ||
</style> | ||
|
||
<div class="global-flex header txt-small"> | ||
<div class="global-flex"> | ||
<Fill styleWidth="1.5rem" styleHeight="24px" variant="ghost"> | ||
{project.data.name[0]} | ||
</Fill> | ||
{#if emphasizedTitle} | ||
<span class="txt-regular txt-semibold">{project.data.name}</span> | ||
{:else} | ||
<span class="txt-small txt-semibold">{project.data.name}</span> | ||
{/if} | ||
</div> | ||
<div class="global-flex"> | ||
{#if repo.visibility.type === "private"} | ||
<Fill variant="private" styleWidth="24px" styleHeight="24px"> | ||
<div style:color="var(--color-foreground-yellow)"> | ||
<Icon name="lock" /> | ||
</div> | ||
</Fill> | ||
{/if} | ||
{#if repo.delegates.find(x => x.did === selfDid)} | ||
<Fill variant="delegate" styleWidth="24px" styleHeight="24px"> | ||
<div style:color="var(--color-fill-primary)"> | ||
<Icon name="delegate" /> | ||
</div> | ||
</Fill> | ||
{/if} | ||
<div class="global-flex"> | ||
<Fill variant="ghost" styleHeight="24px" stylePadding="0 4px"> | ||
<Icon name="seedling" /> | ||
<span style:line-height="16px">{repo.seeding}</span> | ||
</Fill> | ||
</div> | ||
</div> | ||
</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