summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcyuamber <xuranyjy@chinamobile.com>2019-09-26 15:02:16 +0800
committerxu ran <xuranyjy@chinamobile.com>2019-09-26 07:07:44 +0000
commit2b307fe51a873c200c22469327e6947095516288 (patch)
treee6d02144ae290bc3d25c78e92ef0af9217eb85eb
parentb730229cbdc22fa309175f87ba1644d2be5923f8 (diff)
feat:modify service-list api file name
Change-Id: Ib10db97aa71d06a9d2be6de0b96af5a1f3c59b27 Issue-ID: USECASEUI-307 Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
-rw-r--r--usecaseui-portal/src/app/app.component.ts2
-rw-r--r--usecaseui-portal/src/app/app.module.ts4
-rw-r--r--usecaseui-portal/src/app/core/services/serviceList.service.ts (renamed from usecaseui-portal/src/app/core/services/myhttp.service.ts)2
-rw-r--r--usecaseui-portal/src/app/shared/components/e2e-creation/e2e-creation.component.ts4
-rw-r--r--usecaseui-portal/src/app/shared/components/e2e-detail/e2e-detail.component.ts4
-rw-r--r--usecaseui-portal/src/app/views/ccvpn-creation/ccvpn-creation.component.ts4
-rw-r--r--usecaseui-portal/src/app/views/ccvpn-detail/ccvpn-detail.component.spec.ts4
-rw-r--r--usecaseui-portal/src/app/views/ccvpn-detail/ccvpn-detail.component.ts4
-rw-r--r--usecaseui-portal/src/app/views/services/onboard-vnf-vm/onboard-vnf-vm.component.ts1
-rw-r--r--usecaseui-portal/src/app/views/services/services-list/services-list.component.ts4
10 files changed, 16 insertions, 17 deletions
diff --git a/usecaseui-portal/src/app/app.component.ts b/usecaseui-portal/src/app/app.component.ts
index 8e3b41e9..d8dad5f9 100644
--- a/usecaseui-portal/src/app/app.component.ts
+++ b/usecaseui-portal/src/app/app.component.ts
@@ -15,7 +15,7 @@
*/
import {Component} from '@angular/core';
import {TranslateService} from '@ngx-translate/core';
-import {MyhttpService} from "./core/services/myhttp.service";
+import {ServiceListService} from "./core/services/serviceList.service";
import {HomesService} from "./core/services/homes.service";
import {NavigationEnd, Router} from '@angular/router';
import 'rxjs/add/operator/map';
diff --git a/usecaseui-portal/src/app/app.module.ts b/usecaseui-portal/src/app/app.module.ts
index 3f750bfb..885bba67 100644
--- a/usecaseui-portal/src/app/app.module.ts
+++ b/usecaseui-portal/src/app/app.module.ts
@@ -63,7 +63,7 @@ import { PathLocationStrategy, LocationStrategy, HashLocationStrategy } from '@a
// common function util
import { Util } from './shared/utils/utils';
// Custom service
-import { MyhttpService } from './core/services/myhttp.service';
+import { ServiceListService } from './core/services/serviceList.service';
import { HomesService } from './core/services/homes.service';
import { onboardService } from './core/services/onboard.service';
import { networkHttpservice } from './core/services/networkHttpservice.service';
@@ -80,7 +80,7 @@ import { TextService } from './core/services/text.service';
{ provide: LocationStrategy, useClass: HashLocationStrategy },
{ provide: NZ_I18N, useValue: en_US },
Util,
- MyhttpService,
+ ServiceListService,
HomesService,
onboardService,
networkHttpservice,
diff --git a/usecaseui-portal/src/app/core/services/myhttp.service.ts b/usecaseui-portal/src/app/core/services/serviceList.service.ts
index 26fb867c..7953bc61 100644
--- a/usecaseui-portal/src/app/core/services/myhttp.service.ts
+++ b/usecaseui-portal/src/app/core/services/serviceList.service.ts
@@ -19,7 +19,7 @@ import { Observable } from 'rxjs/Observable';
import { homeData, homeVmLineData, servicesSelectData, servicesTableData, creatensData, onboardTableData, onboardDataVNF, onboardDataPNF, baseUrl } from '../models/dataInterface';
@Injectable()
-export class MyhttpService {
+export class ServiceListService {
constructor(private http: HttpClient) { }
baseUrl = baseUrl.baseUrl;
diff --git a/usecaseui-portal/src/app/shared/components/e2e-creation/e2e-creation.component.ts b/usecaseui-portal/src/app/shared/components/e2e-creation/e2e-creation.component.ts
index 068fb039..accc6dbb 100644
--- a/usecaseui-portal/src/app/shared/components/e2e-creation/e2e-creation.component.ts
+++ b/usecaseui-portal/src/app/shared/components/e2e-creation/e2e-creation.component.ts
@@ -14,7 +14,7 @@
limitations under the License.
*/
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
-import { MyhttpService } from '../../../core/services/myhttp.service';
+import { ServiceListService } from '../../../core/services/serviceList.service';
import * as d3 from 'd3';
@Component({
@@ -24,7 +24,7 @@ import * as d3 from 'd3';
})
export class E2eCreationComponent implements OnInit {
- constructor(private myhttp: MyhttpService) { }
+ constructor(private myhttp: ServiceListService) { }
ngOnInit() {
this.gete2eTemParameters(this.e2e_ns_temParametersContent);
diff --git a/usecaseui-portal/src/app/shared/components/e2e-detail/e2e-detail.component.ts b/usecaseui-portal/src/app/shared/components/e2e-detail/e2e-detail.component.ts
index 7618c98c..9f38ffa5 100644
--- a/usecaseui-portal/src/app/shared/components/e2e-detail/e2e-detail.component.ts
+++ b/usecaseui-portal/src/app/shared/components/e2e-detail/e2e-detail.component.ts
@@ -15,7 +15,7 @@
*/
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
-import { MyhttpService } from '../../../core/services/myhttp.service';
+import { ServiceListService } from '../../../core/services/serviceList.service';
import * as d3 from 'd3';
@Component({
@@ -25,7 +25,7 @@ import * as d3 from 'd3';
})
export class E2eDetailComponent implements OnInit {
- constructor(private myhttp: MyhttpService) {
+ constructor(private myhttp: ServiceListService) {
}
ngOnInit() {
diff --git a/usecaseui-portal/src/app/views/ccvpn-creation/ccvpn-creation.component.ts b/usecaseui-portal/src/app/views/ccvpn-creation/ccvpn-creation.component.ts
index 8e194b28..b0d464f3 100644
--- a/usecaseui-portal/src/app/views/ccvpn-creation/ccvpn-creation.component.ts
+++ b/usecaseui-portal/src/app/views/ccvpn-creation/ccvpn-creation.component.ts
@@ -15,7 +15,7 @@
*/
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
import * as d3 from 'd3';
-import { MyhttpService } from '../../core/services/myhttp.service';
+import { ServiceListService } from '../../core/services/serviceList.service';
@Component({
selector: 'app-ccvpn-creation',
@@ -24,7 +24,7 @@ import { MyhttpService } from '../../core/services/myhttp.service';
})
export class CcvpnCreationComponent implements OnInit {
- constructor(private myhttp: MyhttpService) { }
+ constructor(private myhttp: ServiceListService) { }
@Input() createParams;
@Input() ccvpn_temParametersContent;
@Output() closeCreate = new EventEmitter();
diff --git a/usecaseui-portal/src/app/views/ccvpn-detail/ccvpn-detail.component.spec.ts b/usecaseui-portal/src/app/views/ccvpn-detail/ccvpn-detail.component.spec.ts
index 3d112bf8..b6f3171f 100644
--- a/usecaseui-portal/src/app/views/ccvpn-detail/ccvpn-detail.component.spec.ts
+++ b/usecaseui-portal/src/app/views/ccvpn-detail/ccvpn-detail.component.spec.ts
@@ -20,7 +20,7 @@ import { NZ_I18N, en_US } from 'ng-zorro-antd';
import { TranslateModule, TranslateLoader, TranslateService, TranslateFakeLoader } from '@ngx-translate/core';
import { CcvpnDetailComponent } from './ccvpn-detail.component';
-import { MyhttpService } from '../../core/services/myhttp.service';
+import { ServiceListService } from '../../core/services/serviceList.service';
describe('CcvpnDetailComponent', () => {
let component: CcvpnDetailComponent;
@@ -31,7 +31,7 @@ describe('CcvpnDetailComponent', () => {
declarations: [CcvpnDetailComponent],
imports: [TranslateModule.forRoot({ loader: { provide: TranslateLoader, useClass: TranslateFakeLoader } }),
NgZorroAntdModule.forRoot(), HttpClientModule],
- providers: [MyhttpService, { provide: NZ_I18N, useValue: en_US }]
+ providers: [ServiceListService, { provide: NZ_I18N, useValue: en_US }]
})
.compileComponents();
}));
diff --git a/usecaseui-portal/src/app/views/ccvpn-detail/ccvpn-detail.component.ts b/usecaseui-portal/src/app/views/ccvpn-detail/ccvpn-detail.component.ts
index 8e4d6f1d..e8110fda 100644
--- a/usecaseui-portal/src/app/views/ccvpn-detail/ccvpn-detail.component.ts
+++ b/usecaseui-portal/src/app/views/ccvpn-detail/ccvpn-detail.component.ts
@@ -14,7 +14,7 @@
limitations under the License.
*/
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
-import { MyhttpService } from '../../core/services/myhttp.service';
+import { ServiceListService } from '../../core/services/serviceList.service';
import * as d3 from 'd3';
@Component({
@@ -24,7 +24,7 @@ import * as d3 from 'd3';
})
export class CcvpnDetailComponent implements OnInit {
- constructor(private myhttp: MyhttpService) { }
+ constructor(private myhttp: ServiceListService) { }
ngOnInit() {
this.dataInit();
diff --git a/usecaseui-portal/src/app/views/services/onboard-vnf-vm/onboard-vnf-vm.component.ts b/usecaseui-portal/src/app/views/services/onboard-vnf-vm/onboard-vnf-vm.component.ts
index 71da39f5..d5c548fb 100644
--- a/usecaseui-portal/src/app/views/services/onboard-vnf-vm/onboard-vnf-vm.component.ts
+++ b/usecaseui-portal/src/app/views/services/onboard-vnf-vm/onboard-vnf-vm.component.ts
@@ -16,7 +16,6 @@
import { HttpClient, HttpRequest, HttpResponse } from '@angular/common/http';
import { Component, OnInit, HostBinding, TemplateRef } from '@angular/core';
import { NzNotificationService } from 'ng-zorro-antd';
-// import { MyhttpService } from '../../myhttp.service';
import { onboardService } from '../../../core/services/onboard.service';
import { slideToRight } from '../../../shared/utils/animates';
import { NzMessageService, UploadFile, NzModalRef, NzModalService } from 'ng-zorro-antd';
diff --git a/usecaseui-portal/src/app/views/services/services-list/services-list.component.ts b/usecaseui-portal/src/app/views/services/services-list/services-list.component.ts
index aed66631..8ce56ebf 100644
--- a/usecaseui-portal/src/app/views/services/services-list/services-list.component.ts
+++ b/usecaseui-portal/src/app/views/services/services-list/services-list.component.ts
@@ -14,7 +14,7 @@
limitations under the License.
*/
import { Component, OnInit, HostBinding, TemplateRef } from '@angular/core';
-import { MyhttpService } from '../../../core/services/myhttp.service';
+import { ServiceListService } from '../../../core/services/serviceList.service';
import { slideToRight } from '../../../shared/utils/animates';
import { NzModalService } from 'ng-zorro-antd';
import { NzNotificationService } from 'ng-zorro-antd';
@@ -31,7 +31,7 @@ export class ServicesListComponent implements OnInit {
public width:number = document.documentElement.clientWidth;
- constructor(private myhttp: MyhttpService, private modalService: NzModalService, private notification: NzNotificationService) {
+ constructor(private myhttp: ServiceListService, private modalService: NzModalService, private notification: NzNotificationService) {
}
ngOnInit() {