ing
This commit is contained in:
parent
b69539d368
commit
d59d9379f9
|
@ -1,73 +0,0 @@
|
||||||
{
|
|
||||||
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
||||||
"project": {
|
|
||||||
"name": "overflow-member-webapp"
|
|
||||||
},
|
|
||||||
"apps": [
|
|
||||||
{
|
|
||||||
"root": "src",
|
|
||||||
"outDir": "dist",
|
|
||||||
"assets": [
|
|
||||||
"assets",
|
|
||||||
"upload.php"
|
|
||||||
],
|
|
||||||
"index": "index.html",
|
|
||||||
"main": "main.ts",
|
|
||||||
"polyfills": "polyfills.ts",
|
|
||||||
"test": "test.ts",
|
|
||||||
"tsconfig": "tsconfig.app.json",
|
|
||||||
"testTsconfig": "tsconfig.spec.json",
|
|
||||||
"prefix": "of",
|
|
||||||
"styles": [
|
|
||||||
"../node_modules/primeng/resources/primeng.min.css",
|
|
||||||
"../node_modules/fullcalendar/dist/fullcalendar.min.css",
|
|
||||||
"../node_modules/quill/dist/quill.snow.css",
|
|
||||||
"styles.scss"
|
|
||||||
],
|
|
||||||
"scripts": [
|
|
||||||
"../node_modules/jquery/dist/jquery.js",
|
|
||||||
"../node_modules/moment/moment.js",
|
|
||||||
"../node_modules/chart.js/dist/Chart.js",
|
|
||||||
"../node_modules/fullcalendar/dist/fullcalendar.js",
|
|
||||||
"../node_modules/quill/dist/quill.js"
|
|
||||||
],
|
|
||||||
"environmentSource": "environments/environment.ts",
|
|
||||||
"environments": {
|
|
||||||
"dev": "environments/environment.ts",
|
|
||||||
"prod": "environments/environment.prod.ts"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"e2e": {
|
|
||||||
"protractor": {
|
|
||||||
"config": "./protractor.conf.js"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"lint": [
|
|
||||||
{
|
|
||||||
"project": "src/tsconfig.app.json",
|
|
||||||
"exclude": "**/node_modules/**"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"project": "src/tsconfig.spec.json",
|
|
||||||
"exclude": "**/node_modules/**"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"project": "e2e/tsconfig.e2e.json",
|
|
||||||
"exclude": "**/node_modules/**"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"test": {
|
|
||||||
"karma": {
|
|
||||||
"config": "./karma.conf.js"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"defaults": {
|
|
||||||
"styleExt": "css",
|
|
||||||
"component": {},
|
|
||||||
"serve": {
|
|
||||||
"host": "0.0.0.0",
|
|
||||||
"port": 4200
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -3,7 +3,7 @@ import { CommonModule } from '@angular/common';
|
||||||
import { FormsModule } from '@angular/forms';
|
import { FormsModule } from '@angular/forms';
|
||||||
|
|
||||||
|
|
||||||
// import { InputChipModule } from 'packages/commons/component/input-chip/input-chip.module';
|
// import { InputChipModule } from '@overflow/commons/component/input-chip/input-chip.module';
|
||||||
|
|
||||||
// import { DiscoveryStoreModule } from './discovery-store.module';
|
// import { DiscoveryStoreModule } from './discovery-store.module';
|
||||||
// import { DiscoveryRPCModule } from './discovery-rpc.module';
|
// import { DiscoveryRPCModule } from './discovery-rpc.module';
|
||||||
|
@ -11,7 +11,7 @@ import { AlertLoggerModule } from './alert-logger.module';
|
||||||
|
|
||||||
import { COMPONENTS } from './component';
|
import { COMPONENTS } from './component';
|
||||||
// import { SERVICES } from './service';
|
// import { SERVICES } from './service';
|
||||||
import { PrimeNGModules } from 'packages/commons/prime-ng/prime-ng.module';
|
import { PrimeNGModules } from '@overflow/commons/prime-ng/prime-ng.module';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
|
@ -1,8 +1,8 @@
|
||||||
import { Component, OnInit, Input, AfterContentInit, Output, EventEmitter, OnDestroy } from '@angular/core';
|
import { Component, OnInit, Input, AfterContentInit, Output, EventEmitter, OnDestroy } from '@angular/core';
|
||||||
import { Store, select, StateObservable } from '@ngrx/store';
|
import { Store, select, StateObservable } from '@ngrx/store';
|
||||||
import { RPCClientError } from '@loafer/ng-rpc/protocol';
|
import { RPCClientError } from '@loafer/ng-rpc';
|
||||||
import * as ListStore from 'packages/meta/crawler/store/list';
|
import * as ListStore from '@overflow/meta/crawler/store/list';
|
||||||
import { ReadAllCrawlerSelector } from 'packages/meta/crawler/store';
|
import { ReadAllCrawlerSelector } from '@overflow/meta/crawler/store';
|
||||||
import { MetaCrawler } from '@overflow/commons-typescript/model/meta';
|
import { MetaCrawler } from '@overflow/commons-typescript/model/meta';
|
||||||
import { Subscription } from 'rxjs/Subscription';
|
import { Subscription } from 'rxjs/Subscription';
|
||||||
|
|
|
@ -3,12 +3,12 @@ import {
|
||||||
EventEmitter, OnDestroy, OnChanges, SimpleChanges, ViewChild
|
EventEmitter, OnDestroy, OnChanges, SimpleChanges, ViewChild
|
||||||
} from '@angular/core';
|
} from '@angular/core';
|
||||||
import { Store, select, StateObservable } from '@ngrx/store';
|
import { Store, select, StateObservable } from '@ngrx/store';
|
||||||
import { RPCClientError } from '@loafer/ng-rpc/protocol';
|
import { RPCClientError } from '@loafer/ng-rpc';
|
||||||
import * as ListStore from 'packages/probe/store/list';
|
import * as ListStore from '@overflow/probe/store/list';
|
||||||
import { ListSelector } from 'packages/probe/store';
|
import { ListSelector } from '@overflow/probe/store';
|
||||||
import { Subscription } from 'rxjs/Subscription';
|
import { Subscription } from 'rxjs/Subscription';
|
||||||
import { Probe } from '@overflow/commons-typescript/model/probe';
|
import { Probe } from '@overflow/commons-typescript/model/probe';
|
||||||
import { AuthSelector } from 'packages/member/store';
|
import { AuthSelector } from '@overflow/member/store';
|
||||||
import { Domain } from '@overflow/commons-typescript/model/domain';
|
import { Domain } from '@overflow/commons-typescript/model/domain';
|
||||||
import { Dropdown } from 'primeng/primeng';
|
import { Dropdown } from 'primeng/primeng';
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
import { Component, OnInit, Input, AfterContentInit, Output, EventEmitter, OnDestroy } from '@angular/core';
|
import { Component, OnInit, Input, AfterContentInit, Output, EventEmitter, OnDestroy } from '@angular/core';
|
||||||
import { Store, select, StateObservable } from '@ngrx/store';
|
import { Store, select, StateObservable } from '@ngrx/store';
|
||||||
import { RPCClientError } from '@loafer/ng-rpc/protocol';
|
import { RPCClientError } from '@loafer/ng-rpc';
|
||||||
import { Subscription } from 'rxjs/Subscription';
|
import { Subscription } from 'rxjs/Subscription';
|
||||||
import { TreeNode } from 'primeng/primeng';
|
import { TreeNode } from 'primeng/primeng';
|
||||||
|
|
||||||
import * as DiscoveredStore from 'packages/discovery/store/setting';
|
import * as DiscoveredStore from '@overflow/discovery/store/setting';
|
||||||
import { SettingSelector, DiscoverSelector } from 'packages/discovery/store';
|
import { SettingSelector, DiscoverSelector } from '@overflow/discovery/store';
|
||||||
import * as DiscoverStore from 'packages/discovery/store/discover';
|
import * as DiscoverStore from '@overflow/discovery/store/discover';
|
||||||
import * as RegistStore from 'packages/discovery/store/regist';
|
import * as RegistStore from '@overflow/discovery/store/regist';
|
||||||
|
|
||||||
import { Zone } from '@overflow/commons-typescript/model/discovery';
|
import { Zone } from '@overflow/commons-typescript/model/discovery';
|
||||||
import { Host } from '@overflow/commons-typescript/model/discovery';
|
import { Host } from '@overflow/commons-typescript/model/discovery';
|
|
@ -1,7 +1,7 @@
|
||||||
import { Component, OnInit, AfterContentInit, Output, EventEmitter,
|
import { Component, OnInit, AfterContentInit, Output, EventEmitter,
|
||||||
Input, OnDestroy, OnChanges, SimpleChanges, ViewChild } from '@angular/core';
|
Input, OnDestroy, OnChanges, SimpleChanges, ViewChild } from '@angular/core';
|
||||||
import { Store, select, StateObservable } from '@ngrx/store';
|
import { Store, select, StateObservable } from '@ngrx/store';
|
||||||
import { RPCClientError } from '@loafer/ng-rpc/protocol';
|
import { RPCClientError } from '@loafer/ng-rpc';
|
||||||
import {
|
import {
|
||||||
DiscoveryStartInfo,
|
DiscoveryStartInfo,
|
||||||
DiscoverZone,
|
DiscoverZone,
|
||||||
|
@ -17,12 +17,12 @@ import * as RegistStore from '../../store/regist';
|
||||||
import { Host } from '@overflow/commons-typescript/model/discovery';
|
import { Host } from '@overflow/commons-typescript/model/discovery';
|
||||||
import { Port } from '@overflow/commons-typescript/model/discovery';
|
import { Port } from '@overflow/commons-typescript/model/discovery';
|
||||||
import { Service } from '@overflow/commons-typescript/model/discovery';
|
import { Service } from '@overflow/commons-typescript/model/discovery';
|
||||||
import * as ProbeDetailStore from 'packages/probe/store';
|
import * as ProbeDetailStore from '@overflow/probe/store';
|
||||||
import { Probe } from '@overflow/commons-typescript/model/probe';
|
import { Probe } from '@overflow/commons-typescript/model/probe';
|
||||||
import { TreeNode } from 'primeng/primeng';
|
import { TreeNode } from 'primeng/primeng';
|
||||||
import { ListSelector as ProbeListSelector } from 'packages/probe/store';
|
import { ListSelector as ProbeListSelector } from '@overflow/probe/store';
|
||||||
import * as ProbeListStore from 'packages/probe/store/list';
|
import * as ProbeListStore from '@overflow/probe/store/list';
|
||||||
import { AuthSelector } from 'packages/member/store';
|
import { AuthSelector } from '@overflow/member/store';
|
||||||
import { Domain } from '@overflow/commons-typescript/model/domain';
|
import { Domain } from '@overflow/commons-typescript/model/domain';
|
||||||
import { Subscription } from 'rxjs/Subscription';
|
import { Subscription } from 'rxjs/Subscription';
|
||||||
import { ResultComponent } from './result/result.component';
|
import { ResultComponent } from './result/result.component';
|
|
@ -1,8 +1,8 @@
|
||||||
import { Component, OnInit, Input, AfterContentInit, Output, EventEmitter, OnDestroy } from '@angular/core';
|
import { Component, OnInit, Input, AfterContentInit, Output, EventEmitter, OnDestroy } from '@angular/core';
|
||||||
import { Store, select, StateObservable } from '@ngrx/store';
|
import { Store, select, StateObservable } from '@ngrx/store';
|
||||||
import { RPCClientError } from '@loafer/ng-rpc/protocol';
|
import { RPCClientError } from '@loafer/ng-rpc';
|
||||||
import * as ListStore from 'packages/meta/crawler/store/list';
|
import * as ListStore from '@overflow/meta/crawler/store/list';
|
||||||
import { ReadAllCrawlerSelector } from 'packages/meta/crawler/store';
|
import { ReadAllCrawlerSelector } from '@overflow/meta/crawler/store';
|
||||||
import { MetaCrawler } from '@overflow/commons-typescript/model/meta';
|
import { MetaCrawler } from '@overflow/commons-typescript/model/meta';
|
||||||
import { Subscription } from 'rxjs/Subscription';
|
import { Subscription } from 'rxjs/Subscription';
|
||||||
|
|
|
@ -3,12 +3,12 @@ import {
|
||||||
EventEmitter, OnDestroy, ViewChild
|
EventEmitter, OnDestroy, ViewChild
|
||||||
} from '@angular/core';
|
} from '@angular/core';
|
||||||
import { Store, select, StateObservable } from '@ngrx/store';
|
import { Store, select, StateObservable } from '@ngrx/store';
|
||||||
import { RPCClientError } from '@loafer/ng-rpc/protocol';
|
import { RPCClientError } from '@loafer/ng-rpc';
|
||||||
import * as ListStore from 'packages/probe/store/list';
|
import * as ListStore from '@overflow/probe/store/list';
|
||||||
import { ListSelector } from 'packages/probe/store';
|
import { ListSelector } from '@overflow/probe/store';
|
||||||
import { Subscription } from 'rxjs/Subscription';
|
import { Subscription } from 'rxjs/Subscription';
|
||||||
import { Probe } from '@overflow/commons-typescript/model/probe';
|
import { Probe } from '@overflow/commons-typescript/model/probe';
|
||||||
import { AuthSelector } from 'packages/member/store';
|
import { AuthSelector } from '@overflow/member/store';
|
||||||
import { Domain } from '@overflow/commons-typescript/model/domain';
|
import { Domain } from '@overflow/commons-typescript/model/domain';
|
||||||
import { Dropdown } from 'primeng/primeng';
|
import { Dropdown } from 'primeng/primeng';
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
import { Component, OnInit, Input, AfterContentInit, Output, EventEmitter, OnDestroy } from '@angular/core';
|
import { Component, OnInit, Input, AfterContentInit, Output, EventEmitter, OnDestroy } from '@angular/core';
|
||||||
import { Store, select, StateObservable } from '@ngrx/store';
|
import { Store, select, StateObservable } from '@ngrx/store';
|
||||||
import { RPCClientError } from '@loafer/ng-rpc/protocol';
|
import { RPCClientError } from '@loafer/ng-rpc';
|
||||||
import { Subscription } from 'rxjs/Subscription';
|
import { Subscription } from 'rxjs/Subscription';
|
||||||
import { TreeNode } from 'primeng/primeng';
|
import { TreeNode } from 'primeng/primeng';
|
||||||
|
|
||||||
import * as DiscoveredStore from 'packages/discovery/store/setting';
|
import * as DiscoveredStore from '@overflow/discovery/store/setting';
|
||||||
import { SettingSelector, DiscoverSelector } from 'packages/discovery/store';
|
import { SettingSelector, DiscoverSelector } from '@overflow/discovery/store';
|
||||||
import * as DiscoverStore from 'packages/discovery/store/discover';
|
import * as DiscoverStore from '@overflow/discovery/store/discover';
|
||||||
import * as RegistStore from 'packages/discovery/store/regist';
|
import * as RegistStore from '@overflow/discovery/store/regist';
|
||||||
|
|
||||||
import { Zone } from '@overflow/commons-typescript/model/discovery';
|
import { Zone } from '@overflow/commons-typescript/model/discovery';
|
||||||
import { Host } from '@overflow/commons-typescript/model/discovery';
|
import { Host } from '@overflow/commons-typescript/model/discovery';
|
|
@ -1,13 +1,13 @@
|
||||||
import { Component, OnInit, Input, AfterContentInit, Output, EventEmitter, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
|
import { Component, OnInit, Input, AfterContentInit, Output, EventEmitter, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
|
||||||
import { Store, select, StateObservable } from '@ngrx/store';
|
import { Store, select, StateObservable } from '@ngrx/store';
|
||||||
import { RPCClientError } from '@loafer/ng-rpc/protocol';
|
import { RPCClientError } from '@loafer/ng-rpc';
|
||||||
import { Subscription } from 'rxjs/Subscription';
|
import { Subscription } from 'rxjs/Subscription';
|
||||||
import { TreeNode } from 'primeng/primeng';
|
import { TreeNode } from 'primeng/primeng';
|
||||||
|
|
||||||
import * as DiscoveredStore from 'packages/discovery/store/setting';
|
import * as DiscoveredStore from '@overflow/discovery/store/setting';
|
||||||
import { SettingSelector, DiscoverSelector } from 'packages/discovery/store';
|
import { SettingSelector, DiscoverSelector } from '@overflow/discovery/store';
|
||||||
import * as DiscoverStore from 'packages/discovery/store/discover';
|
import * as DiscoverStore from '@overflow/discovery/store/discover';
|
||||||
import * as RegistStore from 'packages/discovery/store/regist';
|
import * as RegistStore from '@overflow/discovery/store/regist';
|
||||||
|
|
||||||
import { Zone } from '@overflow/commons-typescript/model/discovery';
|
import { Zone } from '@overflow/commons-typescript/model/discovery';
|
||||||
import { Host } from '@overflow/commons-typescript/model/discovery';
|
import { Host } from '@overflow/commons-typescript/model/discovery';
|
|
@ -13,7 +13,7 @@ import { ResultComponent } from './result/result.component';
|
||||||
import { ProbeSelectorComponent } from './probe-selector/probe-selector.component';
|
import { ProbeSelectorComponent } from './probe-selector/probe-selector.component';
|
||||||
import { FilterComponent } from './filter/filter.component';
|
import { FilterComponent } from './filter/filter.component';
|
||||||
|
|
||||||
import { trigger, state, transition, style, animate } from '@angular/core';
|
import { trigger, state, transition, style, animate } from '@angular/animations';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'of-discovery-setting',
|
selector: 'of-discovery-setting',
|
|
@ -1,6 +1,6 @@
|
||||||
import { Component, OnInit, AfterContentInit, Output, EventEmitter, Input, OnDestroy } from '@angular/core';
|
import { Component, OnInit, AfterContentInit, Output, EventEmitter, Input, OnDestroy } from '@angular/core';
|
||||||
import { Store, select, StateObservable } from '@ngrx/store';
|
import { Store, select, StateObservable } from '@ngrx/store';
|
||||||
import { RPCClientError } from '@loafer/ng-rpc/protocol';
|
import { RPCClientError } from '@loafer/ng-rpc';
|
||||||
import {
|
import {
|
||||||
DiscoveryStartInfo,
|
DiscoveryStartInfo,
|
||||||
DiscoverZone,
|
DiscoverZone,
|
||||||
|
@ -16,12 +16,12 @@ import * as RegistStore from '../../store/regist';
|
||||||
import { Host } from '@overflow/commons-typescript/model/discovery';
|
import { Host } from '@overflow/commons-typescript/model/discovery';
|
||||||
import { Port } from '@overflow/commons-typescript/model/discovery';
|
import { Port } from '@overflow/commons-typescript/model/discovery';
|
||||||
import { Service } from '@overflow/commons-typescript/model/discovery';
|
import { Service } from '@overflow/commons-typescript/model/discovery';
|
||||||
import * as ProbeDetailStore from 'packages/probe/store';
|
import * as ProbeDetailStore from '@overflow/probe/store';
|
||||||
import { Probe } from '@overflow/commons-typescript/model/probe';
|
import { Probe } from '@overflow/commons-typescript/model/probe';
|
||||||
import { TreeNode } from 'primeng/primeng';
|
import { TreeNode } from 'primeng/primeng';
|
||||||
import { ListSelector as ProbeListSelector } from 'packages/probe/store';
|
import { ListSelector as ProbeListSelector } from '@overflow/probe/store';
|
||||||
import * as ProbeListStore from 'packages/probe/store/list';
|
import * as ProbeListStore from '@overflow/probe/store/list';
|
||||||
import { AuthSelector } from 'packages/member/store';
|
import { AuthSelector } from '@overflow/member/store';
|
||||||
import { Domain } from '@overflow/commons-typescript/model/domain';
|
import { Domain } from '@overflow/commons-typescript/model/domain';
|
||||||
import { Subscription } from 'rxjs/Subscription';
|
import { Subscription } from 'rxjs/Subscription';
|
||||||
|
|
|
@ -7,7 +7,7 @@ import {
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
RPCModule.forFeature({subscribers: SUBSCRIBERS}),
|
RPCModule.forFeature(SUBSCRIBERS),
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
export class DiscoveryRPCModule { }
|
export class DiscoveryRPCModule { }
|
|
@ -8,8 +8,7 @@ import { DiscoveryLoggerModule } from './discovery-logger.module';
|
||||||
|
|
||||||
import { COMPONENTS } from './component';
|
import { COMPONENTS } from './component';
|
||||||
import { SERVICES } from './service';
|
import { SERVICES } from './service';
|
||||||
import { PrimeNGModules } from 'packages/commons/prime-ng/prime-ng.module';
|
import { PrimeNGModules } from '@overflow/commons/prime-ng/prime-ng.module';
|
||||||
import { KeyValueModule } from 'app/commons/component/key-value/key-value.module';
|
|
||||||
import { BrowserModule } from '@angular/platform-browser';
|
import { BrowserModule } from '@angular/platform-browser';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
|
@ -21,7 +20,6 @@ import { BrowserModule } from '@angular/platform-browser';
|
||||||
DiscoveryStoreModule,
|
DiscoveryStoreModule,
|
||||||
DiscoveryRPCModule,
|
DiscoveryRPCModule,
|
||||||
DiscoveryLoggerModule,
|
DiscoveryLoggerModule,
|
||||||
KeyValueModule,
|
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
COMPONENTS
|
COMPONENTS
|
|
@ -1,6 +1,6 @@
|
||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { Observable } from 'rxjs/Observable';
|
import { Observable } from 'rxjs/Observable';
|
||||||
import { RPCService } from '@loafer/ng-rpc/service';
|
import { RPCService } from '@loafer/ng-rpc';
|
||||||
import {
|
import {
|
||||||
DiscoveryStartInfo,
|
DiscoveryStartInfo,
|
||||||
DiscoverZone as MDDiscoverZone,
|
DiscoverZone as MDDiscoverZone,
|
|
@ -1,6 +1,6 @@
|
||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { Observable } from 'rxjs/Observable';
|
import { Observable } from 'rxjs/Observable';
|
||||||
import { RPCService } from '@loafer/ng-rpc/service';
|
import { RPCService } from '@loafer/ng-rpc';
|
||||||
import {
|
import {
|
||||||
DiscoveryStartInfo,
|
DiscoveryStartInfo,
|
||||||
DiscoverZone as MDDiscoverZone,
|
DiscoverZone as MDDiscoverZone,
|
|
@ -1,4 +1,4 @@
|
||||||
import { RPCClientError } from '@loafer/ng-rpc/protocol';
|
import { RPCClientError } from '@loafer/ng-rpc';
|
||||||
|
|
||||||
import { Zone } from '@overflow/commons-typescript/model/discovery';
|
import { Zone } from '@overflow/commons-typescript/model/discovery';
|
||||||
|
|
|
@ -5,7 +5,7 @@ import {
|
||||||
Selector,
|
Selector,
|
||||||
} from '@ngrx/store';
|
} from '@ngrx/store';
|
||||||
|
|
||||||
import { StateSelector } from 'packages/core/ngrx/store';
|
import { StateSelector } from '@overflow/core/ngrx/store';
|
||||||
|
|
||||||
import { MODULE } from '../discovery.constant';
|
import { MODULE } from '../discovery.constant';
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { Action } from '@ngrx/store';
|
import { Action } from '@ngrx/store';
|
||||||
|
|
||||||
import { RPCClientError } from '@loafer/ng-rpc/protocol';
|
import { RPCClientError } from '@loafer/ng-rpc';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
Zone,
|
Zone,
|
|
@ -14,7 +14,7 @@ import 'rxjs/add/operator/switchMap';
|
||||||
import 'rxjs/add/operator/map';
|
import 'rxjs/add/operator/map';
|
||||||
import 'rxjs/add/operator/take';
|
import 'rxjs/add/operator/take';
|
||||||
|
|
||||||
import { RPCClientError } from '@loafer/ng-rpc/protocol';
|
import { RPCClientError } from '@loafer/ng-rpc';
|
||||||
|
|
||||||
import { DiscoveryStartInfo } from '@overflow/commons-typescript/model/discovery';
|
import { DiscoveryStartInfo } from '@overflow/commons-typescript/model/discovery';
|
||||||
import { TargetDiscoveryService } from '../../service/target-discovery.service';
|
import { TargetDiscoveryService } from '../../service/target-discovery.service';
|
|
@ -1,4 +1,4 @@
|
||||||
import { RPCClientError } from '@loafer/ng-rpc/protocol';
|
import { RPCClientError } from '@loafer/ng-rpc';
|
||||||
|
|
||||||
import { DiscoveryStartInfo } from '@overflow/commons-typescript/model/discovery';
|
import { DiscoveryStartInfo } from '@overflow/commons-typescript/model/discovery';
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { Action } from '@ngrx/store';
|
import { Action } from '@ngrx/store';
|
||||||
|
|
||||||
import { RPCClientError } from '@loafer/ng-rpc/protocol';
|
import { RPCClientError } from '@loafer/ng-rpc';
|
||||||
|
|
||||||
import { DiscoveryStartInfo } from '@overflow/commons-typescript/model/discovery';
|
import { DiscoveryStartInfo } from '@overflow/commons-typescript/model/discovery';
|
||||||
|
|
|
@ -14,7 +14,7 @@ import 'rxjs/add/operator/switchMap';
|
||||||
import 'rxjs/add/operator/map';
|
import 'rxjs/add/operator/map';
|
||||||
import 'rxjs/add/operator/take';
|
import 'rxjs/add/operator/take';
|
||||||
|
|
||||||
import { RPCClientError } from '@loafer/ng-rpc/protocol';
|
import { RPCClientError } from '@loafer/ng-rpc';
|
||||||
|
|
||||||
import { DiscoveryStartInfo } from '@overflow/commons-typescript/model/discovery';
|
import { DiscoveryStartInfo } from '@overflow/commons-typescript/model/discovery';
|
||||||
import { DiscoveryService } from '../../service/discovery.service';
|
import { DiscoveryService } from '../../service/discovery.service';
|
|
@ -1,4 +1,4 @@
|
||||||
import { RPCClientError } from '@loafer/ng-rpc/protocol';
|
import { RPCClientError } from '@loafer/ng-rpc';
|
||||||
|
|
||||||
import { DiscoveryStartInfo } from '@overflow/commons-typescript/model/discovery';
|
import { DiscoveryStartInfo } from '@overflow/commons-typescript/model/discovery';
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { Store, select } from '@ngrx/store';
|
import { Store, select } from '@ngrx/store';
|
||||||
|
|
||||||
import { RPCSubscriber } from '@loafer/ng-rpc/decorator';
|
import { RPCSubscriber } from '@loafer/ng-rpc';
|
||||||
import { LoggerService } from '@loafer/ng-logger/service';
|
import { LoggerService } from '@loafer/ng-logger';
|
||||||
|
|
||||||
import * as DiscoverStore from '../store/discover';
|
import * as DiscoverStore from '../store/discover';
|
||||||
|
|
|
@ -10,16 +10,16 @@ import { TreeNode, MenuItem, ContextMenu } from 'primeng/primeng';
|
||||||
import { Store, select } from '@ngrx/store';
|
import { Store, select } from '@ngrx/store';
|
||||||
import * as ListStore from '../../store/list';
|
import * as ListStore from '../../store/list';
|
||||||
import { ListSelector } from '../../store';
|
import { ListSelector } from '../../store';
|
||||||
import { Page, PageParams } from 'app/commons/model';
|
// import { Page, PageParams } from 'app/commons/model';
|
||||||
import { RPCClientError } from '@loafer/ng-rpc/protocol';
|
import { RPCClientError } from '@loafer/ng-rpc';
|
||||||
import { Target } from '@overflow/commons-typescript/model/target';
|
import { Target } from '@overflow/commons-typescript/model/target';
|
||||||
import { Infra, InfraHost, InfraOSApplication, InfraService } from '@overflow/commons-typescript/model/infra';
|
import { Infra, InfraHost, InfraOSApplication, InfraService } from '@overflow/commons-typescript/model/infra';
|
||||||
import { Domain } from '@overflow/commons-typescript/model/domain';
|
import { Domain } from '@overflow/commons-typescript/model/domain';
|
||||||
import { AuthSelector } from 'packages/member/store';
|
import { AuthSelector } from '@overflow/member/store';
|
||||||
|
|
||||||
import { sensorListSelector } from 'packages/sensor/store';
|
import { sensorListSelector } from '@overflow/sensor/store';
|
||||||
|
|
||||||
import * as SensorListStore from 'packages/sensor/store/list';
|
import * as SensorListStore from '@overflow/sensor/store/list';
|
||||||
import { Sensor } from '@overflow/commons-typescript/model/sensor';
|
import { Sensor } from '@overflow/commons-typescript/model/sensor';
|
||||||
|
|
||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
|
@ -75,14 +75,14 @@ export class MapComponent implements OnInit, AfterContentInit {
|
||||||
this.listStore.select(AuthSelector.select('domain')).subscribe(
|
this.listStore.select(AuthSelector.select('domain')).subscribe(
|
||||||
(domain: Domain) => {
|
(domain: Domain) => {
|
||||||
|
|
||||||
const pageParams: PageParams = {
|
// const pageParams: PageParams = {
|
||||||
pageNo: '0',
|
// pageNo: '0',
|
||||||
countPerPage: '99999',
|
// countPerPage: '99999',
|
||||||
sortCol: 'id',
|
// sortCol: 'id',
|
||||||
sortDirection: 'descending'
|
// sortDirection: 'descending'
|
||||||
};
|
// };
|
||||||
|
|
||||||
this.listStore.dispatch(new ListStore.ReadAllByDomain({ domain: domain, pageParams: pageParams }));
|
// this.listStore.dispatch(new ListStore.ReadAllByDomain({ domain: domain, pageParams: pageParams }));
|
||||||
},
|
},
|
||||||
(error) => {
|
(error) => {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
|
@ -91,28 +91,28 @@ export class MapComponent implements OnInit, AfterContentInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.infras$.subscribe(
|
// this.infras$.subscribe(
|
||||||
(page: Page) => {
|
// (page: Page) => {
|
||||||
if (page !== null) {
|
// if (page !== null) {
|
||||||
this.totalList = page.content;
|
// this.totalList = page.content;
|
||||||
this.infraTree = this.generateInfraHostData();
|
// this.infraTree = this.generateInfraHostData();
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
(error: RPCClientError) => {
|
// (error: RPCClientError) => {
|
||||||
console.log(error.response.message);
|
// console.log(error.response.message);
|
||||||
});
|
// });
|
||||||
|
|
||||||
this.sensors$.subscribe(
|
// this.sensors$.subscribe(
|
||||||
(page: Page) => {
|
// (page: Page) => {
|
||||||
if (page !== null) {
|
// if (page !== null) {
|
||||||
const sensorList = page.content;
|
// const sensorList = page.content;
|
||||||
this.addTreeForSensor(sensorList);
|
// this.addTreeForSensor(sensorList);
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
(error: RPCClientError) => {
|
// (error: RPCClientError) => {
|
||||||
console.log(error.response.message);
|
// console.log(error.response.message);
|
||||||
}
|
// }
|
||||||
);
|
// );
|
||||||
this.initContextMenu();
|
this.initContextMenu();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -357,14 +357,14 @@ export class MapComponent implements OnInit, AfterContentInit {
|
||||||
|
|
||||||
getSensorByInfra(infra: Infra) {
|
getSensorByInfra(infra: Infra) {
|
||||||
|
|
||||||
const pageParams: PageParams = {
|
// const pageParams: PageParams = {
|
||||||
pageNo: '0',
|
// pageNo: '0',
|
||||||
countPerPage: '10',
|
// countPerPage: '10',
|
||||||
sortCol: 'id',
|
// sortCol: 'id',
|
||||||
sortDirection: 'descending'
|
// sortDirection: 'descending'
|
||||||
};
|
// };
|
||||||
|
|
||||||
this.sensorListStore.dispatch(new SensorListStore.ReadAllByInfra({ id: String(infra.id), pageParams: pageParams }));
|
// this.sensorListStore.dispatch(new SensorListStore.ReadAllByInfra({ id: String(infra.id), pageParams: pageParams }));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import { Component, OnInit, AfterContentInit, Input, OnChanges } from '@angular/core';
|
import { Component, OnInit, AfterContentInit, Input, OnChanges } from '@angular/core';
|
||||||
import { Store, select } from '@ngrx/store';
|
import { Store, select } from '@ngrx/store';
|
||||||
import { RPCClientError } from '@loafer/ng-rpc/protocol';
|
import { RPCClientError } from '@loafer/ng-rpc';
|
||||||
|
|
||||||
import * as DetailStore from 'packages/probe/store/probe-host';
|
import * as DetailStore from '@overflow/probe/store/probe-host';
|
||||||
import { ProbeHostSelector } from 'packages/probe/store';
|
import { ProbeHostSelector } from '@overflow/probe/store';
|
||||||
import { Probe, ProbeHost } from '@overflow/commons-typescript/model/probe';
|
import { Probe, ProbeHost } from '@overflow/commons-typescript/model/probe';
|
||||||
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user