fix bugs with config and clean up dev options (#1558)

* fix bugs with config and clean up dev options

* dont down down arrow in logs prematurely

* change config error border to match error text red color

* change restart button color

* fix error when sideloading and update copy

* adds back in param cloning as this bug creeped up again

* make restarting text match button color

* fix version comparision for updates category

Co-authored-by: Matt Hill <matthill@Matt-M1.local>
Co-authored-by: Lucy Cifferello <12953208+elvece@users.noreply.github.com>
This commit is contained in:
Matt Hill
2022-06-22 18:26:10 -06:00
committed by GitHub
parent 53ca9b0420
commit d431fac7de
19 changed files with 128 additions and 80 deletions

View File

@@ -3,6 +3,7 @@ import Fuse from 'fuse.js'
import { MarketplacePkg } from '../types/marketplace-pkg'
import { MarketplaceManifest } from '../types/marketplace-manifest'
import { Emver } from '@start9labs/shared'
const defaultOps = {
isCaseSensitive: false,
@@ -29,6 +30,8 @@ const defaultOps = {
name: 'filterPackages',
})
export class FilterPackagesPipe implements PipeTransform {
constructor(private readonly emver: Emver) {}
transform(
packages: MarketplacePkg[] | null,
query: string,
@@ -49,7 +52,10 @@ export class FilterPackagesPipe implements PipeTransform {
return packages.filter(
({ manifest }) =>
local[manifest.id] &&
manifest.version !== local[manifest.id].manifest.version,
this.emver.compare(
manifest.version,
local[manifest.id].manifest.version,
) === 1,
)
}