ing
This commit is contained in:
@@ -2,21 +2,21 @@ import { NgModule, APP_INITIALIZER } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
|
||||
import { CommonsUIModule } from '@overflow/commons/ui/commons-ui.module';
|
||||
// import { PerfectScrollbarModule } from 'ngx-perfect-scrollbar';
|
||||
// import { PERFECT_SCROLLBAR_CONFIG } from 'ngx-perfect-scrollbar';
|
||||
// import { PerfectScrollbarConfigInterface } from 'ngx-perfect-scrollbar';
|
||||
import { PerfectScrollbarModule } from 'ngx-perfect-scrollbar';
|
||||
import { PERFECT_SCROLLBAR_CONFIG } from 'ngx-perfect-scrollbar';
|
||||
import { PerfectScrollbarConfigInterface } from 'ngx-perfect-scrollbar';
|
||||
|
||||
import { COMPONENTS } from './component';
|
||||
|
||||
// const DEFAULT_PERFECT_SCROLLBAR_CONFIG: PerfectScrollbarConfigInterface = {
|
||||
// suppressScrollX: true
|
||||
// };
|
||||
const DEFAULT_PERFECT_SCROLLBAR_CONFIG: PerfectScrollbarConfigInterface = {
|
||||
suppressScrollX: true
|
||||
};
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
CommonsUIModule,
|
||||
// PerfectScrollbarModule
|
||||
PerfectScrollbarModule
|
||||
],
|
||||
exports: [
|
||||
...COMPONENTS,
|
||||
@@ -24,11 +24,11 @@ import { COMPONENTS } from './component';
|
||||
declarations: [
|
||||
...COMPONENTS,
|
||||
],
|
||||
// providers: [
|
||||
// {
|
||||
// provide: PERFECT_SCROLLBAR_CONFIG,
|
||||
// useValue: DEFAULT_PERFECT_SCROLLBAR_CONFIG
|
||||
// }
|
||||
// ]
|
||||
providers: [
|
||||
{
|
||||
provide: PERFECT_SCROLLBAR_CONFIG,
|
||||
useValue: DEFAULT_PERFECT_SCROLLBAR_CONFIG
|
||||
}
|
||||
]
|
||||
})
|
||||
export class CommonsModule { }
|
||||
|
||||
@@ -52,20 +52,6 @@
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
<p-scrollPanel [style]="{width: '100%', height: '100px'}">
|
||||
The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding.
|
||||
His
|
||||
beloved
|
||||
son Michael has just come home from the war, but does not intend to become part of his father's business.
|
||||
Through Michael's life the nature of the family business becomes clear. The business of the family is just
|
||||
like the head of the family, kind and benevolent to those who give respect, but given to ruthless violence
|
||||
whenever anything stands against the good of the family. The story begins as Don Vito Corleone, the head
|
||||
of a New York Mafia family, oversees his daughter's wedding. His beloved son Michael has just come home from
|
||||
the war, but does not intend to become part of his father's business. Through Michael's life the nature of
|
||||
the family business becomes clear. The business of the family is just like the head of the family, kind and
|
||||
benevolent to those who give respect, but given to ruthless violence whenever anything stands against the
|
||||
good of the family.
|
||||
</p-scrollPanel>
|
||||
</p-tabPanel>
|
||||
|
||||
<p-tabPanel header="Metadata" *ngIf="host.meta">
|
||||
|
||||
@@ -17,124 +17,124 @@
|
||||
<p-tabView class="detail-content">
|
||||
|
||||
<p-tabPanel header="General">
|
||||
<!-- <perfect-scrollbar> -->
|
||||
<ul class="key-value">
|
||||
<li *ngIf="zone.iface">
|
||||
Interface
|
||||
<span class="meta-value">{{zone.iface}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.mac">
|
||||
Mac Address
|
||||
<span class="meta-value">{{zone.mac}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.metaIPType">
|
||||
IP Version
|
||||
<span class="meta-value">{{zone.metaIPType.key}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.network">
|
||||
Network
|
||||
<span class="meta-value">{{zone.network}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.network">
|
||||
IP Range
|
||||
<span class="meta-value">{{ipRange}}</span>
|
||||
</li>
|
||||
<!-- -->
|
||||
<li *ngIf="zone.iface">
|
||||
Interface
|
||||
<span class="meta-value">{{zone.iface}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.mac">
|
||||
Mac Address
|
||||
<span class="meta-value">{{zone.mac}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.metaIPType">
|
||||
IP Version
|
||||
<span class="meta-value">{{zone.metaIPType.key}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.network">
|
||||
Network
|
||||
<span class="meta-value">{{zone.network}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.network">
|
||||
IP Range
|
||||
<span class="meta-value">{{ipRange}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.iface">
|
||||
Interface
|
||||
<span class="meta-value">{{zone.iface}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.mac">
|
||||
Mac Address
|
||||
<span class="meta-value">{{zone.mac}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.metaIPType">
|
||||
IP Version
|
||||
<span class="meta-value">{{zone.metaIPType.key}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.network">
|
||||
Network
|
||||
<span class="meta-value">{{zone.network}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.network">
|
||||
IP Range
|
||||
<span class="meta-value">{{ipRange}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.iface">
|
||||
Interface
|
||||
<span class="meta-value">{{zone.iface}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.mac">
|
||||
Mac Address
|
||||
<span class="meta-value">{{zone.mac}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.metaIPType">
|
||||
IP Version
|
||||
<span class="meta-value">{{zone.metaIPType.key}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.network">
|
||||
Network
|
||||
<span class="meta-value">{{zone.network}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.network">
|
||||
IP Range
|
||||
<span class="meta-value">{{ipRange}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.iface">
|
||||
Interface
|
||||
<span class="meta-value">{{zone.iface}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.mac">
|
||||
Mac Address
|
||||
<span class="meta-value">{{zone.mac}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.metaIPType">
|
||||
IP Version
|
||||
<span class="meta-value">{{zone.metaIPType.key}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.network">
|
||||
Network
|
||||
<span class="meta-value">{{zone.network}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.network">
|
||||
IP Range
|
||||
<span class="meta-value">{{ipRange}}</span>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- </perfect-scrollbar> -->
|
||||
<perfect-scrollbar>
|
||||
<ul class="key-value">
|
||||
<li *ngIf="zone.iface">
|
||||
Interface
|
||||
<span class="meta-value">{{zone.iface}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.mac">
|
||||
Mac Address
|
||||
<span class="meta-value">{{zone.mac}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.metaIPType">
|
||||
IP Version
|
||||
<span class="meta-value">{{zone.metaIPType.key}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.network">
|
||||
Network
|
||||
<span class="meta-value">{{zone.network}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.network">
|
||||
IP Range
|
||||
<span class="meta-value">{{ipRange}}</span>
|
||||
</li>
|
||||
<!-- -->
|
||||
<li *ngIf="zone.iface">
|
||||
Interface
|
||||
<span class="meta-value">{{zone.iface}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.mac">
|
||||
Mac Address
|
||||
<span class="meta-value">{{zone.mac}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.metaIPType">
|
||||
IP Version
|
||||
<span class="meta-value">{{zone.metaIPType.key}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.network">
|
||||
Network
|
||||
<span class="meta-value">{{zone.network}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.network">
|
||||
IP Range
|
||||
<span class="meta-value">{{ipRange}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.iface">
|
||||
Interface
|
||||
<span class="meta-value">{{zone.iface}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.mac">
|
||||
Mac Address
|
||||
<span class="meta-value">{{zone.mac}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.metaIPType">
|
||||
IP Version
|
||||
<span class="meta-value">{{zone.metaIPType.key}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.network">
|
||||
Network
|
||||
<span class="meta-value">{{zone.network}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.network">
|
||||
IP Range
|
||||
<span class="meta-value">{{ipRange}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.iface">
|
||||
Interface
|
||||
<span class="meta-value">{{zone.iface}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.mac">
|
||||
Mac Address
|
||||
<span class="meta-value">{{zone.mac}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.metaIPType">
|
||||
IP Version
|
||||
<span class="meta-value">{{zone.metaIPType.key}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.network">
|
||||
Network
|
||||
<span class="meta-value">{{zone.network}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.network">
|
||||
IP Range
|
||||
<span class="meta-value">{{ipRange}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.iface">
|
||||
Interface
|
||||
<span class="meta-value">{{zone.iface}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.mac">
|
||||
Mac Address
|
||||
<span class="meta-value">{{zone.mac}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.metaIPType">
|
||||
IP Version
|
||||
<span class="meta-value">{{zone.metaIPType.key}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.network">
|
||||
Network
|
||||
<span class="meta-value">{{zone.network}}</span>
|
||||
</li>
|
||||
<li *ngIf="zone.network">
|
||||
IP Range
|
||||
<span class="meta-value">{{ipRange}}</span>
|
||||
</li>
|
||||
</ul>
|
||||
</perfect-scrollbar>
|
||||
</p-tabPanel>
|
||||
|
||||
<p-tabPanel header="Hosts">
|
||||
<!-- <perfect-scrollbar> -->
|
||||
<ul class="key-value">
|
||||
<li *ngFor="let host of zone.hostList | ipSort: 'address'">
|
||||
<a href="javascript:void(0)" (click)="hostSelected(host)" style="text-decoration:none">
|
||||
<span class="meta-value">{{host.address}}</span> <span *ngIf="host.name" class="meta-value">
|
||||
({{host.name}})</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- </perfect-scrollbar> -->
|
||||
<perfect-scrollbar>
|
||||
<ul class="key-value">
|
||||
<li *ngFor="let host of zone.hostList | ipSort: 'address'">
|
||||
<a href="javascript:void(0)" (click)="hostSelected(host)" style="text-decoration:none">
|
||||
<span class="meta-value">{{host.address}}</span> <span *ngIf="host.name" class="meta-value">
|
||||
({{host.name}})</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</perfect-scrollbar>
|
||||
</p-tabPanel>
|
||||
|
||||
</p-tabView>
|
||||
|
||||
@@ -64,7 +64,7 @@ export class AppWindow {
|
||||
if (__DARWIN__) {
|
||||
windowOptions.titleBarStyle = 'hidden';
|
||||
} else if (__WIN32__) {
|
||||
windowOptions.frame = false;
|
||||
// windowOptions.frame = false;
|
||||
} else if (__LINUX__) {
|
||||
windowOptions.icon = path.join(__dirname, 'static', 'icon-logo.png');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user