diff --git a/web/projects/marketplace/src/pages/show/about.component.ts b/web/projects/marketplace/src/pages/show/about.component.ts index 16f680a59..edbe5c5a5 100644 --- a/web/projects/marketplace/src/pages/show/about.component.ts +++ b/web/projects/marketplace/src/pages/show/about.component.ts @@ -24,7 +24,7 @@ import { MarketplaceItemComponent } from './item.component' icon="" /> - @if (pkg().s9pk?.publishedAt; as published) { + @if (pkg().s9pks[0]?.[1]?.publishedAt; as published) { category === 'all' || p.categories.includes(category!)) .sort((a, b) => { return ( - new Date(b.s9pk.publishedAt).valueOf() - - new Date(a.s9pk.publishedAt).valueOf() + new Date(b.s9pks[0]?.[1].publishedAt!).valueOf() - + new Date(a.s9pks[0]?.[1].publishedAt!).valueOf() ) }) .map(a => ({ ...a })) diff --git a/web/projects/marketplace/src/types.ts b/web/projects/marketplace/src/types.ts index 032d8f546..b8bd85e29 100644 --- a/web/projects/marketplace/src/types.ts +++ b/web/projects/marketplace/src/types.ts @@ -32,10 +32,7 @@ export type StoreData = { packages: MarketplacePkg[] } -export type MarketplacePkgBase = OptionalProperty< - T.PackageVersionInfo, - 's9pk' -> & { +export type MarketplacePkgBase = T.PackageVersionInfo & { id: T.PackageId version: string flavor: string | null diff --git a/web/projects/shared/src/i18n/dictionaries/en.ts b/web/projects/shared/src/i18n/dictionaries/en.ts index e744471c9..fd3abdeae 100644 --- a/web/projects/shared/src/i18n/dictionaries/en.ts +++ b/web/projects/shared/src/i18n/dictionaries/en.ts @@ -595,4 +595,4 @@ export const ENGLISH = { 'Upload': 626, // as in, upload a file 'Open UI': 627, // as in, upload a file 'Copied to clipboard': 628, -} as const +} as Record diff --git a/web/projects/ui/src/app/routes/portal/routes/services/routes/about.component.ts b/web/projects/ui/src/app/routes/portal/routes/services/routes/about.component.ts index 6f59bcc14..27cf78394 100644 --- a/web/projects/ui/src/app/routes/portal/routes/services/routes/about.component.ts +++ b/web/projects/ui/src/app/routes/portal/routes/services/routes/about.component.ts @@ -60,7 +60,8 @@ export default class ServiceAboutRoute { size: 'l', data: from( inject(ApiService).getStatic( - `/s9pk/installed/${this.pkgId}.s9pk/LICENSE.md`, + [`/s9pk/installed/${this.pkgId}.s9pk/LICENSE.md`], + {}, ), ), }) diff --git a/web/projects/ui/src/app/routes/portal/routes/sideload/sideload.utils.ts b/web/projects/ui/src/app/routes/portal/routes/sideload/sideload.utils.ts index 34895e55a..d960c4d0d 100644 --- a/web/projects/ui/src/app/routes/portal/routes/sideload/sideload.utils.ts +++ b/web/projects/ui/src/app/routes/portal/routes/sideload/sideload.utils.ts @@ -41,6 +41,7 @@ async function parseS9pk(file: File): Promise { sourceVersion: s9pk.manifest.canMigrateFrom, flavor: ExtendedVersion.parse(s9pk.manifest.version).flavor, fullLicense: await s9pk.license(), + s9pks: [], } } diff --git a/web/projects/ui/src/app/routes/portal/routes/updates/item.component.ts b/web/projects/ui/src/app/routes/portal/routes/updates/item.component.ts index 42d28e88f..c8348945a 100644 --- a/web/projects/ui/src/app/routes/portal/routes/updates/item.component.ts +++ b/web/projects/ui/src/app/routes/portal/routes/updates/item.component.ts @@ -70,7 +70,7 @@ import UpdatesComponent from './updates.component' {{ item().gitHash }} - {{ item().s9pk.publishedAt | date }} + {{ item().s9pks[0]?.[1]?.publishedAt | date }}