Update seed fixture to latest heartwood commit

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
Sebastian Martinez
2023-03-14 11:13:15 +01:00
parent dace61caae
commit 3ea6a07dc4
15 changed files with 61 additions and 36 deletions
+2 -2
View File
@@ -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
View File
@@ -77,7 +77,7 @@ export interface Person {
export interface Peer {
id: string;
person?: Person;
heads: Branches;
delegate: boolean;
}
+1 -1
View File
@@ -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 {
+4 -1
View File
@@ -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>