-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add delegates and node scope policies to Sidebar
- Loading branch information
1 parent
3d13bc0
commit 275a73d
Showing
15 changed files
with
356 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,41 @@ | ||
<script lang="ts"> | ||
import type { Scope, Policy } from "@httpd-client"; | ||
import { capitalize } from "lodash"; | ||
export let scope: Scope; | ||
export let policy: Policy; | ||
</script> | ||
|
||
{#if policy === "allow"} | ||
All discovered repositories will get seeded, | ||
{:else if policy === "block"} | ||
Only repositories marked as such will get seeded, | ||
{/if} | ||
{#if scope === "all"} | ||
and all changes in those repositories, made by any peer, will be synced. | ||
{:else if scope === "followed"} | ||
and only changes made by explicitly followed peers will be synced. | ||
{/if} | ||
<style> | ||
.section { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
padding: 0.5rem 0; | ||
} | ||
</style> | ||
|
||
<div class="section"> | ||
Scope: | ||
<span class="txt-bold">{capitalize(scope)}</span> | ||
</div> | ||
<div class="txt-missing"> | ||
{#if scope === "all"} | ||
All changes in seeded repositories, made by any peer, will be synced. | ||
{:else if scope === "followed"} | ||
Only changes made by explicitly followed peers will be synced. | ||
{/if} | ||
</div> | ||
|
||
<div class="section"> | ||
Policy: | ||
<span class="txt-bold">{capitalize(policy)}</span> | ||
</div> | ||
<div class="txt-missing"> | ||
{#if policy === "allow"} | ||
All discovered repositories will get seeded. | ||
{:else if policy === "block"} | ||
Only repositories marked as such will get seeded. | ||
{/if} | ||
</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
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
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
Oops, something went wrong.