{meta.name}
+ {project.meta.name}
{urn}
- {meta.description}
- {/if}
-
- commit {commit}
-
-
-
+ {:else}
+
+ {/if}
diff --git a/src/project.ts b/src/project.ts
index 003e3c1a3..df5bc1cea 100644
--- a/src/project.ts
+++ b/src/project.ts
@@ -10,6 +10,11 @@ export interface Project {
};
}
+export interface Info {
+ head: string;
+ meta: Meta;
+}
+
export interface Meta {
name: string;
description: string;
@@ -61,7 +66,7 @@ export interface Tree {
path: string;
}
-export async function getMetadata(urn: string, config: Config): Promise {
+export async function getInfo(urn: string, config: Config): Promise {
return api.get(`projects/${urn}`, config);
}
-
+
+
- {#await proj.getTree(urn, commit, "/", config)}
- Loading..
- {:then tree}
-
- {:catch err}
- {err}
- {/await}
+
- {project.meta.description}
+
+ commit {commit || project.head}
-
- {#await blob}
-
- {:then blob}
- {#if blob}
-
- {:else}
-
- {/if}
- {:catch}
-
- {/await}
-
-