mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-16 11:50:42 +08:00
Update seed fixture to latest heartwood commit
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
+2
-2
@@ -11,7 +11,7 @@ export class Request {
|
||||
|
||||
constructor(path: string, api: Host) {
|
||||
this.port = api.port;
|
||||
this.base = `${api.scheme}://${api.host}/api`;
|
||||
this.base = `${api.scheme}://${api.host}/api/v1`;
|
||||
this.path = path.startsWith("/") ? path.slice(1) : path;
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@ export class Request {
|
||||
|
||||
// Creates a URL with an eventual query string and port.
|
||||
private createUrl(search?: string): string {
|
||||
const baseUrl = this.path ? `${this.base}/v1/${this.path}` : this.base;
|
||||
const baseUrl = this.path ? `${this.base}/${this.path}` : this.base;
|
||||
|
||||
const url = new URL(search ? `${baseUrl}?${search}` : baseUrl);
|
||||
url.port = String(this.port);
|
||||
|
||||
+1
-1
@@ -77,7 +77,7 @@ export interface Person {
|
||||
|
||||
export interface Peer {
|
||||
id: string;
|
||||
person?: Person;
|
||||
heads: Branches;
|
||||
delegate: boolean;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -107,7 +107,7 @@ export function formatRepositoryId(id: string): string {
|
||||
}
|
||||
|
||||
export function truncateId(pubkey: string): string {
|
||||
return `${pubkey.substring(0, 6) + "…" + pubkey.slice(-6)}`;
|
||||
return `${pubkey.substring(0, 6)}…${pubkey.slice(-6)}`;
|
||||
}
|
||||
|
||||
export function formatCommit(oid: string): string {
|
||||
|
||||
@@ -94,7 +94,10 @@
|
||||
{/if}
|
||||
{:else if peer}
|
||||
<span class="peer-id">
|
||||
{formatNodeId(peer)}
|
||||
<span style="display: flex;">
|
||||
<span style="color: var(--color-secondary-5);">did:key:</span>
|
||||
{truncateId(peer)}
|
||||
</span>
|
||||
</span>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user