marketplace published at for service (#1689)

* at published timestamp to marketplace package show

* add todo
This commit is contained in:
Matt Hill
2022-07-25 12:47:50 -06:00
committed by GitHub
parent bdb906bf26
commit 0dd6d3a500
4 changed files with 19 additions and 1 deletions

View File

@@ -7,6 +7,10 @@
<div class="text">
<h1 class="title">{{ pkg.manifest.title }}</h1>
<p class="version">{{ pkg.manifest.version | displayEmver }}</p>
<!-- @TODO remove conditional when registry code deployed. published-at will be required -->
<p *ngIf="pkg['published-at']" class="published">
Released: {{ pkg['published-at'] | date: 'medium' }}
</p>
<ng-content></ng-content>
</div>
</div>

View File

@@ -18,11 +18,16 @@
}
.version {
padding: 4px 0 12px 0;
margin: 0;
font-size: 18px;
}
.published {
margin: 0;
padding: 4px 0 12px 0;
font-style: italic;
}
@media (min-width: 1000px) {
.logo {
width: 140px;

View File

@@ -14,4 +14,5 @@ export interface MarketplacePkg {
icon: Url
}
}
'published-at': string
}