Skip to content

Commit

Permalink
remove recovered services and drop reordering feature (#1829)
Browse files Browse the repository at this point in the history
  • Loading branch information
MattDHill authored and dr-bonez committed Oct 31, 2022
1 parent 7d6f1b7 commit 6bd6a6f
Show file tree
Hide file tree
Showing 21 changed files with 35 additions and 440 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ export class FilterPackagesPipe implements PipeTransform {
return packages
.filter(p => category === 'all' || p.categories.includes(category))
.sort((a, b) => {
return a['published-at'] > b['published-at'] ? -1 : 1
return (
new Date(b['published-at']).valueOf() -
new Date(a['published-at']).valueOf()
)
})
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
<ion-note></ion-note>
<ion-progress-bar></ion-progress-bar>
<ion-radio></ion-radio>
<ion-reorder></ion-reorder>
<ion-row></ion-row>
<ion-searchbar></ion-searchbar>
<ion-segment></ion-segment>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ const ICONS = [
'remove',
'remove-circle-outline',
'remove-outline',
'reorder-three',
'rocket-outline',
'save-outline',
'shield-checkmark-outline',
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ import { UiPipeModule } from 'src/app/pipes/ui/ui.module'
import { AppListIconComponent } from './app-list-icon/app-list-icon.component'
import { AppListEmptyComponent } from './app-list-empty/app-list-empty.component'
import { AppListPkgComponent } from './app-list-pkg/app-list-pkg.component'
import { AppListRecComponent } from './app-list-rec/app-list-rec.component'
import { AppListReorderComponent } from './app-list-reorder/app-list-reorder.component'
import { PackageInfoPipe } from './package-info.pipe'

const routes: Routes = [
Expand All @@ -42,8 +40,6 @@ const routes: Routes = [
AppListIconComponent,
AppListEmptyComponent,
AppListPkgComponent,
AppListRecComponent,
AppListReorderComponent,
PackageInfoPipe,
],
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,20 @@
></app-list-empty>

<ng-template #list>
<app-list-reorder
*ngIf="pkgs.length"
[(pkgs)]="pkgs"
[reordering]="reordering"
(reorderingChange)="onReordering($event)"
></app-list-reorder>
<ion-item-divider class="ion-padding-bottom"
>Installed Services</ion-item-divider
>

<ng-container *ngIf="recoveredPkgs.length && !reordering">
<ion-item-group>
<ion-item-divider>Recovered Services</ion-item-divider>
<app-list-rec
*ngFor="let rec of recoveredPkgs"
[rec]="rec"
(deleted)="deleteRecovered(rec)"
></app-list-rec>
</ion-item-group>
</ng-container>
<ion-grid>
<ion-row>
<ion-col *ngFor="let pkg of pkgs" sizeSm="12" sizeLg="6">
<app-list-pkg
*ngIf="pkg | packageInfo | async as info"
[pkg]="info"
></app-list-pkg>
</ion-col>
</ion-row>
</ion-grid>
</ng-template>
</ng-template>
</ion-content>
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
ion-item-divider {
margin-bottom: 16px;
}
Loading

0 comments on commit 6bd6a6f

Please sign in to comment.