Fix project metadata rendering

This commit is contained in:
Alexis Sellier
2021-06-10 13:27:00 +02:00
parent 6cc9a6c882
commit 26be487ae5
2 changed files with 5 additions and 8 deletions
+2 -2
View File
@@ -82,9 +82,9 @@
<div class="anchor">
<span>commit {project.anchor.stateHash}</span>
<span>
{#each meta.maintainers as user}
{#each meta.maintainers as urn}
<span class="avatar">
<Blockies address={user.urn} />
<Blockies address={urn} />
</span>
{/each}
</span>
+3 -6
View File
@@ -1,6 +1,8 @@
import type { Config } from '@app/config';
import * as api from '@app/api';
export type Urn = string;
export interface Project {
id: string;
anchor: {
@@ -8,15 +10,10 @@ export interface Project {
};
}
export interface Person {
urn: string;
avatar: { emoji: string; background: { r: number; g: number; b: number } };
}
export interface Meta {
name: string;
description: string;
maintainers: Person[];
maintainers: Urn[];
}
export interface Author {