mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-04 14:29:45 +00:00
update FE types and unify sideload page with marketplace show
This commit is contained in:
committed by
Aiden McClelland
parent
6556fcc531
commit
cb7790ccba
@@ -1,4 +0,0 @@
|
||||
.all-notes {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
}
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
<div class="text">
|
||||
<h1 ticker class="title">{{ pkg.manifest.title }}</h1>
|
||||
<p class="version">{{ pkg.manifest.version | displayEmver }}</p>
|
||||
<p class="published">
|
||||
Released: {{ pkg['published-at'] | date: 'medium' }}
|
||||
<p *ngIf="pkg['published-at'] as published" class="published">
|
||||
Released: {{ published | date : 'medium' }}
|
||||
</p>
|
||||
<ng-content></ng-content>
|
||||
</div>
|
||||
|
||||
@@ -23,7 +23,7 @@ export interface MarketplacePkg {
|
||||
icon: Url
|
||||
license: Url
|
||||
instructions: Url
|
||||
manifest: MarketplaceManifest
|
||||
manifest: Manifest
|
||||
categories: string[]
|
||||
versions: string[]
|
||||
'dependency-metadata': {
|
||||
@@ -38,7 +38,7 @@ export interface DependencyMetadata {
|
||||
hidden: boolean
|
||||
}
|
||||
|
||||
export interface MarketplaceManifest<T = unknown> {
|
||||
export interface Manifest {
|
||||
id: string
|
||||
title: string
|
||||
version: string
|
||||
@@ -52,7 +52,7 @@ export interface MarketplaceManifest<T = unknown> {
|
||||
}
|
||||
replaces?: string[]
|
||||
'release-notes': string
|
||||
license: string // type of license
|
||||
license: string // name of license
|
||||
'wrapper-repo': Url
|
||||
'upstream-repo': Url
|
||||
'support-site': Url
|
||||
@@ -65,10 +65,11 @@ export interface MarketplaceManifest<T = unknown> {
|
||||
start: string | null
|
||||
stop: string | null
|
||||
}
|
||||
dependencies: Record<string, Dependency<T>>
|
||||
dependencies: Record<string, Dependency>
|
||||
'os-version': string
|
||||
}
|
||||
|
||||
export interface Dependency<T> {
|
||||
export interface Dependency {
|
||||
version: string
|
||||
requirement:
|
||||
| {
|
||||
@@ -83,5 +84,4 @@ export interface Dependency<T> {
|
||||
type: 'required'
|
||||
}
|
||||
description: string | null
|
||||
config: T
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user