mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
description for service menu
This commit is contained in:
committed by
Aiden McClelland
parent
bae96cde55
commit
a92e34433e
@@ -104,8 +104,11 @@
|
|||||||
<!-- ** menu ** -->
|
<!-- ** menu ** -->
|
||||||
<ion-item-divider>Menu</ion-item-divider>
|
<ion-item-divider>Menu</ion-item-divider>
|
||||||
<ion-item button detail *ngFor="let button of buttons" (click)="button.action()">
|
<ion-item button detail *ngFor="let button of buttons" (click)="button.action()">
|
||||||
<ion-icon slot="start" [name]="button.icon"></ion-icon>
|
<ion-icon slot="start" [name]="button.icon" color="dark"></ion-icon>
|
||||||
<ion-label>{{ button.title }}</ion-label>
|
<ion-label>
|
||||||
|
<h2><b>{{ button.title }}</b></h2>
|
||||||
|
<p *ngIf="button.description">{{ button.description }}</p>
|
||||||
|
</ion-label>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<!-- @TODO better maintenance messaging -->
|
<!-- @TODO better maintenance messaging -->
|
||||||
|
|||||||
@@ -338,11 +338,14 @@ export class AppShowPage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private setButtons (): void {
|
private setButtons (): void {
|
||||||
|
const pkgTitle = this.pkg.manifest.title
|
||||||
|
|
||||||
this.buttons = [
|
this.buttons = [
|
||||||
// instructions
|
// instructions
|
||||||
{
|
{
|
||||||
action: () => this.navCtrl.navigateForward(['instructions'], { relativeTo: this.route }),
|
action: () => this.navCtrl.navigateForward(['instructions'], { relativeTo: this.route }),
|
||||||
title: 'Instructions',
|
title: 'Instructions',
|
||||||
|
description: '',
|
||||||
icon: 'list-outline',
|
icon: 'list-outline',
|
||||||
color: 'danger',
|
color: 'danger',
|
||||||
},
|
},
|
||||||
@@ -350,6 +353,7 @@ export class AppShowPage {
|
|||||||
{
|
{
|
||||||
action: async () => this.presentModalConfig({ pkgId: this.pkgId }),
|
action: async () => this.presentModalConfig({ pkgId: this.pkgId }),
|
||||||
title: 'Config',
|
title: 'Config',
|
||||||
|
description: `Customize ${pkgTitle}`,
|
||||||
icon: 'construct-outline',
|
icon: 'construct-outline',
|
||||||
color: 'danger',
|
color: 'danger',
|
||||||
},
|
},
|
||||||
@@ -357,27 +361,31 @@ export class AppShowPage {
|
|||||||
{
|
{
|
||||||
action: () => this.navCtrl.navigateForward(['properties'], { relativeTo: this.route }),
|
action: () => this.navCtrl.navigateForward(['properties'], { relativeTo: this.route }),
|
||||||
title: 'Properties',
|
title: 'Properties',
|
||||||
|
description: 'Runtime information, credentials, and other values of interest',
|
||||||
icon: 'briefcase-outline',
|
icon: 'briefcase-outline',
|
||||||
color: 'danger',
|
color: 'danger',
|
||||||
},
|
},
|
||||||
// interfaces
|
|
||||||
{
|
|
||||||
action: () => this.navCtrl.navigateForward(['interfaces'], { relativeTo: this.route }),
|
|
||||||
title: 'Interfaces',
|
|
||||||
icon: 'desktop-outline',
|
|
||||||
color: 'danger',
|
|
||||||
},
|
|
||||||
// actions
|
// actions
|
||||||
{
|
{
|
||||||
action: () => this.navCtrl.navigateForward(['actions'], { relativeTo: this.route }),
|
action: () => this.navCtrl.navigateForward(['actions'], { relativeTo: this.route }),
|
||||||
title: 'Actions',
|
title: 'Actions',
|
||||||
|
description: `Uninstall, recover from backup, and other commands specific to ${pkgTitle}`,
|
||||||
icon: 'flash-outline',
|
icon: 'flash-outline',
|
||||||
color: 'danger',
|
color: 'danger',
|
||||||
},
|
},
|
||||||
|
// interfaces
|
||||||
|
{
|
||||||
|
action: () => this.navCtrl.navigateForward(['interfaces'], { relativeTo: this.route }),
|
||||||
|
title: 'Interfaces',
|
||||||
|
description: 'User and machine access points',
|
||||||
|
icon: 'desktop-outline',
|
||||||
|
color: 'danger',
|
||||||
|
},
|
||||||
// metrics
|
// metrics
|
||||||
// {
|
// {
|
||||||
// action: () => this.navCtrl.navigateForward(['metrics'], { relativeTo: this.route }),
|
// action: () => this.navCtrl.navigateForward(['metrics'], { relativeTo: this.route }),
|
||||||
// title: 'Monitor',
|
// title: 'Monitor',
|
||||||
|
// description: 'View system usage',
|
||||||
// icon: 'pulse-outline',
|
// icon: 'pulse-outline',
|
||||||
// color: 'danger',
|
// color: 'danger',
|
||||||
// },
|
// },
|
||||||
@@ -385,12 +393,14 @@ export class AppShowPage {
|
|||||||
{
|
{
|
||||||
action: () => this.navCtrl.navigateForward(['logs'], { relativeTo: this.route }),
|
action: () => this.navCtrl.navigateForward(['logs'], { relativeTo: this.route }),
|
||||||
title: 'Logs',
|
title: 'Logs',
|
||||||
|
description: '',
|
||||||
icon: 'receipt-outline',
|
icon: 'receipt-outline',
|
||||||
color: 'danger',
|
color: 'danger',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
action: () => this.donate(),
|
action: () => this.donate(),
|
||||||
title: 'Donate',
|
title: 'Donate',
|
||||||
|
description: `Support ${pkgTitle}`,
|
||||||
icon: 'logo-bitcoin',
|
icon: 'logo-bitcoin',
|
||||||
color: 'danger',
|
color: 'danger',
|
||||||
},
|
},
|
||||||
@@ -415,6 +425,7 @@ interface DependencyInfo {
|
|||||||
|
|
||||||
interface Button {
|
interface Button {
|
||||||
title: string
|
title: string
|
||||||
|
description: string
|
||||||
icon: string
|
icon: string
|
||||||
color: string
|
color: string
|
||||||
action: Function
|
action: Function
|
||||||
|
|||||||
Reference in New Issue
Block a user