Commit 1dae1b73 authored by ibuler's avatar ibuler

[Update] 移除不用Module

parent e3328ead
...@@ -388,11 +388,6 @@ ...@@ -388,11 +388,6 @@
"requires": { "requires": {
"tslib": "^1.7.1" "tslib": "^1.7.1"
} }
},
"moment": {
"version": "2.22.2",
"resolved": "https://registry.npmjs.org/moment/-/moment-2.22.2.tgz",
"integrity": "sha1-PCV/mDn8DpP/UxSWMiOeuQeD/2Y="
} }
} }
}, },
...@@ -602,13 +597,6 @@ ...@@ -602,13 +597,6 @@
"integrity": "sha512-ybPjYizpKVWAI2Z4AqxAS6s3FMkF3+zRpfvxX1wIdSJUFjl83XxQ5f2yn7retX68NSYZZ/JTK9KGnvOzZfrIZw==", "integrity": "sha512-ybPjYizpKVWAI2Z4AqxAS6s3FMkF3+zRpfvxX1wIdSJUFjl83XxQ5f2yn7retX68NSYZZ/JTK9KGnvOzZfrIZw==",
"requires": { "requires": {
"moment": "^2.19.3" "moment": "^2.19.3"
},
"dependencies": {
"moment": {
"version": "2.22.2",
"resolved": "https://registry.npmjs.org/moment/-/moment-2.22.2.tgz",
"integrity": "sha1-PCV/mDn8DpP/UxSWMiOeuQeD/2Y="
}
} }
}, },
"animate.css": { "animate.css": {
...@@ -2035,9 +2023,9 @@ ...@@ -2035,9 +2023,9 @@
} }
}, },
"codemirror": { "codemirror": {
"version": "5.40.0", "version": "5.48.4",
"resolved": "https://registry.npmjs.org/codemirror/-/codemirror-5.40.0.tgz", "resolved": "https://registry.npmjs.org/codemirror/-/codemirror-5.48.4.tgz",
"integrity": "sha512-plTYonQ8SwbtS4m9n88mPDR+G7JwFrAL6774VjvoNH8wQJNSJOx5JdWmgRe3pCyuDI4s+vvi4CIuQnoduUTVug==" "integrity": "sha512-pUhZXDQ6qXSpWdwlgAwHEkd4imA0kf83hINmUEzJpmG80T/XLtDDEzZo8f6PQLuRCcUQhmzqqIo3ZPTRaWByRA=="
}, },
"collection-visit": { "collection-visit": {
"version": "1.0.0", "version": "1.0.0",
...@@ -7385,10 +7373,15 @@ ...@@ -7385,10 +7373,15 @@
} }
} }
}, },
"moment": {
"version": "2.24.0",
"resolved": "https://registry.npmjs.org/moment/-/moment-2.24.0.tgz",
"integrity": "sha512-bV7f+6l2QigeBBZSM/6yTNq4P2fNpSWj/0e7jQcy87A8e7o2nAfP/34/2ky5Vw4B9S446EtIhodAzkFCcR4dQg=="
},
"mousetrap": { "mousetrap": {
"version": "1.6.2", "version": "1.6.3",
"resolved": "https://registry.npmjs.org/mousetrap/-/mousetrap-1.6.2.tgz", "resolved": "https://registry.npmjs.org/mousetrap/-/mousetrap-1.6.3.tgz",
"integrity": "sha512-jDjhi7wlHwdO6q6DS7YRmSHcuI+RVxadBkLt3KHrhd3C2b+w5pKefg3oj5beTcHZyVFA9Aksf+yEE1y5jxUjVA==" "integrity": "sha512-bd+nzwhhs9ifsUrC2tWaSgm24/oo2c83zaRyZQF06hYA6sANfsXHtnZ19AbbbDXCDzeH5nZBSQ4NvCjgD62tJA=="
}, },
"move-concurrently": { "move-concurrently": {
"version": "1.0.1", "version": "1.0.1",
...@@ -8145,11 +8138,6 @@ ...@@ -8145,11 +8138,6 @@
"resolved": "https://registry.npmjs.org/normalize.css/-/normalize.css-5.0.0.tgz", "resolved": "https://registry.npmjs.org/normalize.css/-/normalize.css-5.0.0.tgz",
"integrity": "sha1-fOyHXOgXilMzxN6Ato6pwYudfDc=" "integrity": "sha1-fOyHXOgXilMzxN6Ato6pwYudfDc="
}, },
"npm-font-open-sans": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/npm-font-open-sans/-/npm-font-open-sans-1.1.0.tgz",
"integrity": "sha512-t1y5ShWm6a8FSLwBdINT47XYMcuKY2rkTBsTdz/76YB2MtX0YD89RUkY2eSS2/XOmlZfBe1HFBAwD+b9+/UfmQ=="
},
"npm-run-path": { "npm-run-path": {
"version": "2.0.2", "version": "2.0.2",
"resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz",
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
"roboto-fontface": "^0.8.0", "roboto-fontface": "^0.8.0",
"sass-math": "^1.0.0", "sass-math": "^1.0.0",
"tether": "^1.4.4", "tether": "^1.4.4",
"npm-font-open-sans": "^1.1.0",
"utf-8-validate": "^5.0.2" "utf-8-validate": "^5.0.2"
}, },
"dependencies": { "dependencies": {
...@@ -72,7 +73,6 @@ ...@@ -72,7 +73,6 @@
"tslib": "^1.9.0", "tslib": "^1.9.0",
"requirejs": "^2.3.5", "requirejs": "^2.3.5",
"ngx-progressbar": "^2.1.1", "ngx-progressbar": "^2.1.1",
"npm-font-open-sans": "^1.1.0",
"font-awesome": "4.7.0" "font-awesome": "4.7.0"
}, },
"devDependencies": { "devDependencies": {
......
...@@ -6,7 +6,6 @@ import {HttpClientModule} from '@angular/common/http'; ...@@ -6,7 +6,6 @@ import {HttpClientModule} from '@angular/common/http';
import {CookieService} from 'ngx-cookie-service'; import {CookieService} from 'ngx-cookie-service';
import {MAT_LABEL_GLOBAL_OPTIONS} from '@angular/material'; import {MAT_LABEL_GLOBAL_OPTIONS} from '@angular/material';
// service // service
import {AppService, HttpService, LocalStorageService, NavService, LogService, UUIDService, TreeFilterService} from './app.service'; import {AppService, HttpService, LocalStorageService, NavService, LogService, UUIDService, TreeFilterService} from './app.service';
...@@ -15,12 +14,10 @@ import {Pipes} from './pipes/pipes'; ...@@ -15,12 +14,10 @@ import {Pipes} from './pipes/pipes';
import {AppComponent} from './pages/app.component'; import {AppComponent} from './pages/app.component';
import {PagesComponents} from './pages/pages.component'; import {PagesComponents} from './pages/pages.component';
import {ElementComponents} from './elements/elements.component'; import {ElementComponents} from './elements/elements.component';
import {ChangLanWarningDialogComponent, RDPSolutionDialogComponent, FontDialogComponent} from './elements/nav/nav.component'; import {PageMainComponent} from '@app/pages/main/main.component';
import {DialogService, ElementDialogAlertComponent} from './elements/dialog/dialog.service';
import {PluginModules} from './plugins/plugins'; import {PluginModules} from './plugins/plugins';
import {TestPageComponent} from './test-page/test-page.component'; import {ChangLanWarningDialogComponent, RDPSolutionDialogComponent, FontDialogComponent} from './elements/nav/nav.component';
import {AssetTreeDialogComponent, ManualPasswordDialogComponent} from './elements/connect/connect.component'; import {AssetTreeDialogComponent, ManualPasswordDialogComponent} from './elements/connect/connect.component';
import {SftpComponent} from './elements/sftp/sftp.component';
@NgModule({ @NgModule({
...@@ -34,19 +31,17 @@ import {SftpComponent} from './elements/sftp/sftp.component'; ...@@ -34,19 +31,17 @@ import {SftpComponent} from './elements/sftp/sftp.component';
], ],
declarations: [ declarations: [
AppComponent, AppComponent,
TestPageComponent,
...Pipes, ...Pipes,
...ElementComponents, ...ElementComponents,
...PagesComponents, ...PagesComponents,
SftpComponent, ],
],
entryComponents: [ entryComponents: [
AssetTreeDialogComponent, AssetTreeDialogComponent,
ManualPasswordDialogComponent, ManualPasswordDialogComponent,
ElementDialogAlertComponent,
ChangLanWarningDialogComponent, ChangLanWarningDialogComponent,
RDPSolutionDialogComponent, RDPSolutionDialogComponent,
FontDialogComponent FontDialogComponent,
PageMainComponent,
], ],
bootstrap: [AppComponent], bootstrap: [AppComponent],
providers: [ providers: [
...@@ -58,7 +53,6 @@ import {SftpComponent} from './elements/sftp/sftp.component'; ...@@ -58,7 +53,6 @@ import {SftpComponent} from './elements/sftp/sftp.component';
NavService, NavService,
UUIDService, UUIDService,
LocalStorageService, LocalStorageService,
DialogService,
CookieService, CookieService,
TreeFilterService, TreeFilterService,
NGXLogger, NGXLogger,
......
...@@ -5,17 +5,16 @@ import {ElementContentViewComponent} from './content-window/content-window.compo ...@@ -5,17 +5,16 @@ import {ElementContentViewComponent} from './content-window/content-window.compo
import {ElementContentTabComponent} from './content-tab/content-tab.component'; import {ElementContentTabComponent} from './content-tab/content-tab.component';
import {ElementAssetTreeComponent} from './asset-tree/asset-tree.component'; import {ElementAssetTreeComponent} from './asset-tree/asset-tree.component';
import {ElementTreeFilterComponent} from './tree-filter/tree-filter.component'; import {ElementTreeFilterComponent} from './tree-filter/tree-filter.component';
import {ElementFooterComponent} from './footer/footer.component';
import {ElementTermComponent} from './term/term.component'; import {ElementTermComponent} from './term/term.component';
import {ChangLanWarningDialogComponent, ElementNavComponent} from './nav/nav.component'; import {ChangLanWarningDialogComponent, ElementNavComponent} from './nav/nav.component';
import {ElementRdpComponent} from './rdp/rdp.component'; import {ElementRdpComponent} from './rdp/rdp.component';
import {ElementServerMenuComponent} from './server-menu/server-menu.component';
import {ElementIframeComponent} from './iframe/iframe.component'; import {ElementIframeComponent} from './iframe/iframe.component';
import {ElementDialogAlertComponent} from './dialog/dialog.service'; import {ElementDialogAlertComponent} from './dialog/dialog.service';
import {ElementGuacamoleComponent} from './guacamole/guacamole.component'; import {ElementGuacamoleComponent} from './guacamole/guacamole.component';
import {ElementSshTermComponent} from './ssh-term/ssh-term.component'; import {ElementSshTermComponent} from './ssh-term/ssh-term.component';
import {ElementConnectComponent, AssetTreeDialogComponent, ManualPasswordDialogComponent} from './connect/connect.component'; import {ElementConnectComponent, AssetTreeDialogComponent, ManualPasswordDialogComponent} from './connect/connect.component';
import {RDPSolutionDialogComponent, FontDialogComponent} from './nav/nav.component'; import {RDPSolutionDialogComponent, FontDialogComponent} from './nav/nav.component';
import {ElementSftpComponent} from '@app/elements/sftp/sftp.component';
export const ElementComponents = [ export const ElementComponents = [
ElementLeftBarComponent, ElementLeftBarComponent,
...@@ -24,19 +23,18 @@ export const ElementComponents = [ ...@@ -24,19 +23,18 @@ export const ElementComponents = [
ElementContentViewComponent, ElementContentViewComponent,
ElementConnectComponent, ElementConnectComponent,
ElementTreeFilterComponent, ElementTreeFilterComponent,
ElementFooterComponent,
ElementTermComponent, ElementTermComponent,
ElementNavComponent, ElementNavComponent,
ChangLanWarningDialogComponent,
ElementRdpComponent, ElementRdpComponent,
ElementServerMenuComponent,
ElementIframeComponent, ElementIframeComponent,
ElementDialogAlertComponent, ElementDialogAlertComponent,
ElementGuacamoleComponent, ElementGuacamoleComponent,
ElementAssetTreeComponent, ElementAssetTreeComponent,
ElementSshTermComponent, ElementSshTermComponent,
ElementConnectComponent, ElementConnectComponent,
ElementSftpComponent,
AssetTreeDialogComponent, AssetTreeDialogComponent,
ChangLanWarningDialogComponent,
ManualPasswordDialogComponent, ManualPasswordDialogComponent,
RDPSolutionDialogComponent, RDPSolutionDialogComponent,
FontDialogComponent FontDialogComponent
......
<div class="footer fixed">
<div class="pull-right">
Version <strong>{{version}}</strong> GPL.
</div>
<div>
<strong>Copyright</strong> Jumpserver.org Team &copy; 2014-2018
</div>
</div>
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ElementFooterComponent } from './footer.component';
describe('FooterComponent', () => {
let component: ElementFooterComponent;
let fixture: ComponentFixture<ElementFooterComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ElementFooterComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ElementFooterComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
/**
* footer
*
* @date 2017-11-07
* @author liuzheng <liuzheng712@gmail.com>
*/
import {Component, OnInit} from '@angular/core';
import {AppService, LogService} from '@app/app.service';
import {DataStore, User} from '@app/globals';
import {version} from '@src/environments/environment';
@Component({
selector: 'elements-footer',
templateUrl: './footer.component.html',
styleUrls: ['./footer.component.css']
})
export class ElementFooterComponent implements OnInit {
DataStore = DataStore;
User = User;
version = version;
constructor(private _appService: AppService,
private _logger: LogService) {
this._logger.log('nav.ts:NavComponent');
// this._appService.getnav()
}
ngOnInit() {
}
}
<div class="ES-menu" [ngStyle]="{'top':top,'left':left}">
<ul class="dropdown-content">
<li [ngClass]="m.type" *ngFor="let m of MenuList">
<a (click)="m.action" *ngIf="m.type!='line'">{{m.name}}</a>
</li>
</ul>
</div>
.ES-menu {
display: block;
width: 120px;
background-color: #2f2a2a;
position: absolute;
}
.ES-menu ul {
list-style-type: none;
line-height: 24px;
}
.ES-menu li {
display: inline-block;
}
.dropdown {
position: relative;
display: inline-block;
}
.dropdown:hover {
background-color: #2d2828;
}
.dropdown-content {
position: absolute;
background-color: black;
color: #c6bcbc;
padding: 4px 0;
z-index: 999;
float: none;
list-style: none;
line-height: normal;
direction: ltr;
width: auto;
top: auto;
left: 0px;
margin-left: 0px;
margin-top: 0px;
min-width: 150px;
}
.ES-menu:hover .dropdown-content {
display: block;
}
.ES-menu .dropdown-content li {
float: left;
display: flex;
}
.ES-menu .dropdown-content li a {
padding: 6px 14px 6px 14px;
white-space: nowrap;
font-family: 'Roboto', sans-serif;
font-size: 13px;
font-weight: 300;
position: relative;
text-decoration: none;
min-width: 150px;
line-height: normal;
}
.ES-menu .dropdown-content li a span {
float: right;
}
.dropdown-content li:hover {
background-color: #3a3333;
color: black;
width: 100%;
}
.dropdown-content li.disabled:hover {
background-color: black;
}
.dropdown-content li.disabled a {
color: #c5babc;
}
.dropdown-content li.disabled a:hover {
cursor: default;
color: #c5babc;
}
.ES-menu a {
color: #f0f0f1;
text-align: center;
text-decoration: none;
padding: 6px 15px 6px 15px;
}
.ES-menu a:hover {
color: #fff;
cursor: pointer
}
.ES-menu .line {
height: 1px;
width: 100%;
background-color: white;
}
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ElementServerMenuComponent } from './server-menu.component';
describe('ElementServerMenuComponent', () => {
let component: ElementServerMenuComponent;
let fixture: ComponentFixture<ElementServerMenuComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ElementServerMenuComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ElementServerMenuComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import {Component, OnInit} from '@angular/core';
import {DialogService} from '../dialog/dialog.service';
export class Menu {
name: string;
type: string;
action: any;
}
@Component({
selector: 'elements-server-menu',
templateUrl: './server-menu.component.html',
styleUrls: ['./server-menu.component.scss'],
})
export class ElementServerMenuComponent implements OnInit {
MenuList: Array<any>;
top: number;
left: number;
constructor(private _dialog: DialogService) {
}
ngOnInit() {
const m = new Menu();
const line = new Menu();
m.action = '';
m.name = 'test';
m.type = 'lll';
line.type = 'line';
this.MenuList = [m, m, line, m, m];
this._dialog.alert('sss');
}
public contextmenu(top: number, left: number) {
this.top = top;
this.left = left;
}
}
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { SftpComponent } from './sftp.component'; import { ElementSftpComponent } from './sftp.component';
describe('SftpComponent', () => { describe('ElementSftpComponent', () => {
let component: SftpComponent; let component: ElementSftpComponent;
let fixture: ComponentFixture<SftpComponent>; let fixture: ComponentFixture<ElementSftpComponent>;
beforeEach(async(() => { beforeEach(async(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [ SftpComponent ] declarations: [ ElementSftpComponent ]
}) })
.compileComponents(); .compileComponents();
})); }));
beforeEach(() => { beforeEach(() => {
fixture = TestBed.createComponent(SftpComponent); fixture = TestBed.createComponent(ElementSftpComponent);
component = fixture.componentInstance; component = fixture.componentInstance;
fixture.detectChanges(); fixture.detectChanges();
}); });
......
...@@ -7,7 +7,7 @@ import {DomSanitizer} from '@angular/platform-browser'; ...@@ -7,7 +7,7 @@ import {DomSanitizer} from '@angular/platform-browser';
templateUrl: './sftp.component.html', templateUrl: './sftp.component.html',
styleUrls: ['./sftp.component.scss'] styleUrls: ['./sftp.component.scss']
}) })
export class SftpComponent implements OnInit { export class ElementSftpComponent implements OnInit {
@Input() host: any; @Input() host: any;
target: any; target: any;
@ViewChild('sftp') el: ElementRef; @ViewChild('sftp') el: ElementRef;
......
<elements-nav></elements-nav> <elements-nav></elements-nav>
<div fxLayout="row" id="container" class="container-fluid row" ngxSplit="row"> <div fxLayout="row wrap" id="container" class="container-fluid row" ngxSplit="row">
<div fxFlex="1 1 20%" minBasis="100px" maxBasis="800px" fxFlexFill ngxSplitArea *ngIf="DataStore.showLeftBar"> <div fxFlex="1 1 20%" minBasis="100px" maxBasis="800px" fxFlexFill ngxSplitArea *ngIf="DataStore.showLeftBar">
<elements-left-bar></elements-left-bar> <elements-left-bar></elements-left-bar>
</div> </div>
......
import {NgModule} from '@angular/core'; import {NgModule} from '@angular/core';
import { import {
MatAutocompleteModule, // MatAutocompleteModule,
MatButtonModule, MatButtonModule,
MatButtonToggleModule, // MatButtonToggleModule,
MatCardModule, // MatCardModule,
MatCheckboxModule, // MatCheckboxModule,
MatChipsModule, MatChipsModule,
MatDatepickerModule, // MatDatepickerModule,
MatDialogModule, MatDialogModule,
MatExpansionModule, // MatExpansionModule,
MatGridListModule, // MatGridListModule,
MatIconModule, // MatIconModule,
MatInputModule, MatInputModule,
MatListModule, // MatListModule,
MatMenuModule, // MatMenuModule,
MatNativeDateModule, // MatNativeDateModule,
MatPaginatorModule, // MatPaginatorModule,
MatProgressBarModule, // MatProgressBarModule,
MatProgressSpinnerModule, // MatProgressSpinnerModule,
MatRadioModule, MatRadioModule,
MatRippleModule, // MatRippleModule,
MatSelectModule, MatSelectModule,
MatSidenavModule, // MatSidenavModule,
MatSliderModule, // MatSliderModule,
MatSlideToggleModule, // MatSlideToggleModule,
MatSnackBarModule, // MatSnackBarModule,
MatSortModule, // MatSortModule,
MatTableModule, // MatTableModule,
MatTabsModule, // MatTabsModule,
MatToolbarModule, // MatToolbarModule,
MatTooltipModule, // MatTooltipModule,
MatStepperModule, // MatStepperModule,
} from '@angular/material'; } from '@angular/material';
import {CdkTableModule} from '@angular/cdk/table'; import {CdkTableModule} from '@angular/cdk/table';
@NgModule({ @NgModule({
exports: [ exports: [
CdkTableModule, CdkTableModule,
MatAutocompleteModule, // MatAutocompleteModule,
MatButtonModule, MatButtonModule,
MatButtonToggleModule, // MatButtonToggleModule,
MatCardModule, // MatCardModule,
MatCheckboxModule, // MatCheckboxModule,
MatChipsModule, MatChipsModule,
MatStepperModule, // MatStepperModule,
MatDatepickerModule, // MatDatepickerModule,
MatDialogModule, MatDialogModule,
MatExpansionModule, // MatExpansionModule,
MatGridListModule, // MatGridListModule,
MatIconModule, // MatIconModule,
MatInputModule, MatInputModule,
MatListModule, // MatListModule,
MatMenuModule, // MatMenuModule,
MatNativeDateModule, // MatNativeDateModule,
MatPaginatorModule, // MatPaginatorModule,
MatProgressBarModule, // MatProgressBarModule,
MatProgressSpinnerModule, // MatProgressSpinnerModule,
MatRadioModule, MatRadioModule,
MatRippleModule, // MatRippleModule,
MatSelectModule, MatSelectModule,
MatSidenavModule, // MatSidenavModule,
MatSliderModule, // MatSliderModule,
MatSlideToggleModule, // MatSlideToggleModule,
MatSnackBarModule, // MatSnackBarModule,
MatSortModule, // MatSortModule,
MatTableModule, // MatTableModule,
MatTabsModule, // MatTabsModule,
MatToolbarModule, // MatToolbarModule,
MatTooltipModule, // MatTooltipModule,
] ]
}) })
export class MaterialModule { export class MaterialModule {
......
...@@ -3,17 +3,16 @@ import {NgxUIModule, SplitModule} from '@swimlane/ngx-ui'; ...@@ -3,17 +3,16 @@ import {NgxUIModule, SplitModule} from '@swimlane/ngx-ui';
import {LoggerModule, NgxLoggerLevel} from 'ngx-logger'; import {LoggerModule, NgxLoggerLevel} from 'ngx-logger';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import {NgProgressModule} from 'ngx-progressbar'; import {NgProgressModule} from 'ngx-progressbar';
import {FlexLayoutModule} from '@angular/flex-layout'; // import {FlexLayoutModule} from '@angular/flex-layout';
export const PluginModules = [ export const PluginModules = [
BrowserAnimationsModule, BrowserAnimationsModule,
NgProgressModule, NgProgressModule,
MaterialModule, MaterialModule,
FlexLayoutModule, // FlexLayoutModule,
LoggerModule.forRoot({level: NgxLoggerLevel.DEBUG, serverLogLevel: NgxLoggerLevel.ERROR}), LoggerModule.forRoot({level: NgxLoggerLevel.DEBUG, serverLogLevel: NgxLoggerLevel.ERROR}),
NgxUIModule, NgxUIModule, SplitModule
SplitModule
]; ];
...@@ -2,20 +2,18 @@ import {NgModule} from '@angular/core'; ...@@ -2,20 +2,18 @@ import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router'; import {RouterModule, Routes} from '@angular/router';
import {PagesBlankComponent} from '../pages/blank/blank.component'; import {PagesBlankComponent} from '../pages/blank/blank.component';
import {TestPageComponent} from '../test-page/test-page.component';
import {PagesConnectComponent} from '../pages/connect/connect.component'; import {PagesConnectComponent} from '../pages/connect/connect.component';
import {PagesReplayComponent} from '../pages/replay/replay.component'; import {PagesReplayComponent} from '../pages/replay/replay.component';
import {PageMainComponent} from '../pages/main/main.component'; import {PageMainComponent} from '../pages/main/main.component';
import {PagesMonitorComponent} from '../pages/monitor/monitor.component'; import {PagesMonitorComponent} from '../pages/monitor/monitor.component';
import {SftpComponent} from '../elements/sftp/sftp.component'; import {ElementSftpComponent} from '../elements/sftp/sftp.component';
const appRoutes: Routes = [ const appRoutes: Routes = [
{path: 'replay/:token', component: PagesReplayComponent}, {path: 'replay/:token', component: PagesReplayComponent},
{path: 'monitor/:token', component: PagesMonitorComponent}, {path: 'monitor/:token', component: PagesMonitorComponent},
{path: 'test', component: TestPageComponent},
{path: 'connect', component: PagesConnectComponent}, {path: 'connect', component: PagesConnectComponent},
{path: 'sftp', component: SftpComponent}, {path: 'sftp', component: ElementSftpComponent},
{path: 'undefined', component: PagesBlankComponent}, {path: 'undefined', component: PagesBlankComponent},
{path: '', component: PageMainComponent}, {path: '', component: PageMainComponent},
// {path: '**', component: PagesNotFoundComponent} // {path: '**', component: PagesNotFoundComponent}
......
<!--<tree-root [nodes]="nodes" [options]="options"></tree-root>-->
<!--<app-replay-mp4></app-replay-mp4>-->
<!--<elements-tree [TreeData]="nodes1"></elements-tree>-->
<elements-asset-tree></elements-asset-tree>
:host {
display: block;
width: 100%;
margin: 50px 0;
}
.btns {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
}
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { TestPageComponent } from './test-page.component';
describe('TestPageComponent', () => {
let component: TestPageComponent;
let fixture: ComponentFixture<TestPageComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ TestPageComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(TestPageComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment