From 2b307fe51a873c200c22469327e6947095516288 Mon Sep 17 00:00:00 2001 From: cyuamber Date: Thu, 26 Sep 2019 15:02:16 +0800 Subject: feat:modify service-list api file name Change-Id: Ib10db97aa71d06a9d2be6de0b96af5a1f3c59b27 Issue-ID: USECASEUI-307 Signed-off-by: cyuamber --- usecaseui-portal/src/app/app.component.ts | 2 +- usecaseui-portal/src/app/app.module.ts | 4 +- .../src/app/core/services/myhttp.service.ts | 210 --------------------- .../src/app/core/services/serviceList.service.ts | 210 +++++++++++++++++++++ .../e2e-creation/e2e-creation.component.ts | 4 +- .../components/e2e-detail/e2e-detail.component.ts | 4 +- .../ccvpn-creation/ccvpn-creation.component.ts | 4 +- .../ccvpn-detail/ccvpn-detail.component.spec.ts | 4 +- .../views/ccvpn-detail/ccvpn-detail.component.ts | 4 +- .../onboard-vnf-vm/onboard-vnf-vm.component.ts | 1 - .../services-list/services-list.component.ts | 4 +- 11 files changed, 225 insertions(+), 226 deletions(-) delete mode 100644 usecaseui-portal/src/app/core/services/myhttp.service.ts create mode 100644 usecaseui-portal/src/app/core/services/serviceList.service.ts (limited to 'usecaseui-portal/src/app') 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/myhttp.service.ts deleted file mode 100644 index 26fb867c..00000000 --- a/usecaseui-portal/src/app/core/services/myhttp.service.ts +++ /dev/null @@ -1,210 +0,0 @@ -/* - Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ -import { Injectable } from '@angular/core'; -import { HttpClient, HttpHeaders, HttpParams, HttpResponse } from '@angular/common/http'; -import { Observable } from 'rxjs/Observable'; -import { homeData, homeVmLineData, servicesSelectData, servicesTableData, creatensData, onboardTableData, onboardDataVNF, onboardDataPNF, baseUrl } from '../models/dataInterface'; - -@Injectable() -export class MyhttpService { - - constructor(private http: HttpClient) { } - baseUrl = baseUrl.baseUrl; - url = { - customers: this.baseUrl + "/uui-lcm/customers", - serviceType: this.baseUrl + "/uui-lcm/customers/" + "*_*" + "/service-subscriptions", - orchestrators: this.baseUrl + "/uui-lcm/orchestrators", - servicesTableData: this.baseUrl + '/uui-lcm/service-instances', - serviceTemplates: this.baseUrl + "/uui-lcm/service-templates", - progress: this.baseUrl + "/uui-lcm/services/" + "*_*" + "/operations/", - templateParameters: this.baseUrl + "/uui-lcm/fetchCCVPNTemplateData/*_*", - e2etemplateParameters: this.baseUrl + "/uui-lcm/service-templates/*_*",//no mock Sample Data json - nstemplateParameters: this.baseUrl + "/uui-lcm/fetchNsTemplateData", - vimInfo: this.baseUrl + "/uui-lcm/locations", - sdnControllers: this.baseUrl + "/uui-lcm/sdnc-controllers", - createService: this.baseUrl + "/uui-lcm/services", - ns_createService: this.baseUrl + "/uui-lcm/createNetworkServiceInstance", - ns_createService2: this.baseUrl + "/uui-lcm/instantiateNetworkServiceInstance", - deleteService: this.baseUrl + "/uui-lcm/services/", - ns_stopService: this.baseUrl + "/uui-lcm/terminateNetworkServiceInstance", - ns_deleteService: this.baseUrl + "/uui-lcm/deleteNetworkServiceInstance", - ns_healService: this.baseUrl + "/uui-lcm/healNetworkServiceInstance", - vnfInfo: this.baseUrl + "/uui-lcm/VnfInfo/", - nsProgress: this.baseUrl + "/uui-lcm/jobs/getNsLcmJobStatus/*_*", - e2eScale: this.baseUrl + "/services/scaleServices/", - e2e_nsdata: this.baseUrl + "/getServiceInstanceById/customerId", - allottedResource: this.baseUrl + "/uui-sotn/getAllottedResources", - updateccvpn: this.baseUrl + "/uui-lcm/services/updateService/", - pnfDetail: this.baseUrl + "/uui-sotn/getPnfInfo/", - connectivity: this.baseUrl + "/uui-sotn/getConnectivityInfo/", - vpnBinding: this.baseUrl + "/uui-sotn/getPinterfaceByVpnId/", - }; - - - //The following APIs are optimizable - - // Get all customers - getAllCustomers() { - return this.http.get(this.url.customers); - } - // Get all Orchestrators - getAllOrchestrators() { - return this.http.get(this.url.orchestrators); - } - // serviceTable list - getServicesTableData(paramsObj): Observable> { - let params = new HttpParams({ fromObject: paramsObj }); - return this.http.get(this.url.servicesTableData, { observe: 'response', params }); - } - // Get all template types - getAllServiceTemplates(type) { - if (type == "Network Service") { - let nsUrl = this.url.serviceTemplates.replace("service-templates", "listNsTemplates").replace("serviceTemplates2", "serviceTemplates-ns"); - console.log(nsUrl); - return this.http.get(nsUrl); - } - return this.http.get(this.url.serviceTemplates); - } - // Get Vim Info - getVimInfo() { - return this.http.get(this.url.vimInfo); - }; - //Get SdnControllers - getSdnControllers() { - return this.http.get(this.url.sdnControllers); - } - // Create interface - createInstance(requestBody, createParams) { - return this.http.post(this.url.createService + createParams, requestBody); - } - // NS CreateInstance step one - nsCreateInstance(requestBody) { - return this.http.post(this.url.ns_createService, requestBody); - } - // NS CreateInstance step two - nsCreateInstance2(params, requestBody) { - return this.http.post(this.url.ns_createService2 + params, requestBody); - } - //Delete ns Service - nsDeleteInstance(paramsObj) { - let params = new HttpParams({ fromObject: paramsObj }); - return this.http.delete(this.url.ns_deleteService,{params}); - } - //stop ns Service - stopNsService(paramsObj, requestBody) { //You need to terminate before deleting - let params = new HttpParams({ fromObject: paramsObj }); - return this.http.post(this.url.ns_stopService, requestBody,{ params }); - } - //heal ns Service - healNsService(paramsObj, requestBody) { - let params = new HttpParams({ fromObject: paramsObj }); - return this.http.post(this.url.ns_healService, requestBody,{params}); - } - //Get allotted-resource to get tp and pnf values - getAllottedResource(obj) { - let params = new HttpParams({ fromObject: obj }); - let url = this.url.allottedResource; - return this.http.get(url, { params }); - } - - //The following APIs are not optimizable --------------------------------- - - // Get relevant serviceType - getServiceTypes(customer) { - let url = this.url.serviceType.replace("*_*", customer.id); - return this.http.get(url); - } - //Get template input parameters - getTemplateParameters(type, template) { - if (type == "ns") { - let body = { - csarId: template.id, - inputs: "" - }; - return this.http.post(this.url.nstemplateParameters, body); - } else if (type == "e2e") { - let params = new HttpParams({ fromObject: {"toscaModelPath":template.toscaModelURL} }); - let url = this.url.e2etemplateParameters.replace("*_*", template.uuid); - return this.http.get(url,{params}); - } else { - let body = { - csarId: template.uuid, - packageType: "Service", - inputs: "" - }; - let url = this.url.templateParameters.replace("*_*", template.uuid); - return this.http.post(url, body); - } - } - // ccvpn update - updateccvpn(id, requestBody) { - return this.http.put(this.url.updateccvpn + id, requestBody);// online - } - // Delete interface - deleteInstance(obj) { - let httpOptions = { - headers: new HttpHeaders({ - 'Content-Type': 'application/json', - 'Accept': 'application/json', - 'Authorization': 'Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==' - }), - body: { - 'globalSubscriberId': obj.globalSubscriberId, - 'serviceType': obj.serviceType.name - } - }; - return this.http.delete(this.url.deleteService + obj.serviceInstanceId, httpOptions); - } - // Get Vnf Info - getVnfInfo(id) { - return this.http.get(this.url.vnfInfo + id); - } - // scale - scaleE2eService(id, requestBody) { - return this.http.post(this.url.e2eScale + id, requestBody); - } - getE2e_nsData(paramsObj) { - let params = new HttpParams({ fromObject: paramsObj }); - return this.http.get(this.url.e2e_nsdata, { params }); - } - // Query progress interface - getProgress(obj,operationTypeObj) { - let params = new HttpParams({ fromObject: operationTypeObj }); - let url = this.url.progress.replace("*_*", obj.serviceId) + obj.operationId; - return this.http.get(url,{params}); - } - getNsProgress(jobid,paramsObj) { - let params = new HttpParams({ fromObject: paramsObj }); - let url = this.url.nsProgress.replace("*_*", jobid); - return this.http.get(url,{params}); - } - - //Get the corresponding domain (network-resource) by pnf value - getPnfDetail(name) { - let url = this.url.pnfDetail + name; - return this.http.get(url); - } - //Get connectivity by sotn, find vpn-id - getSotnConnectivity(id) { - let url = this.url.connectivity + id; - return this.http.get(url); - } - //Find tp and pnf by vpn-id - getVpnBinding(id) { - let url = this.url.vpnBinding + id; - return this.http.get(url); - } -} diff --git a/usecaseui-portal/src/app/core/services/serviceList.service.ts b/usecaseui-portal/src/app/core/services/serviceList.service.ts new file mode 100644 index 00000000..7953bc61 --- /dev/null +++ b/usecaseui-portal/src/app/core/services/serviceList.service.ts @@ -0,0 +1,210 @@ +/* + Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ +import { Injectable } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, HttpResponse } from '@angular/common/http'; +import { Observable } from 'rxjs/Observable'; +import { homeData, homeVmLineData, servicesSelectData, servicesTableData, creatensData, onboardTableData, onboardDataVNF, onboardDataPNF, baseUrl } from '../models/dataInterface'; + +@Injectable() +export class ServiceListService { + + constructor(private http: HttpClient) { } + baseUrl = baseUrl.baseUrl; + url = { + customers: this.baseUrl + "/uui-lcm/customers", + serviceType: this.baseUrl + "/uui-lcm/customers/" + "*_*" + "/service-subscriptions", + orchestrators: this.baseUrl + "/uui-lcm/orchestrators", + servicesTableData: this.baseUrl + '/uui-lcm/service-instances', + serviceTemplates: this.baseUrl + "/uui-lcm/service-templates", + progress: this.baseUrl + "/uui-lcm/services/" + "*_*" + "/operations/", + templateParameters: this.baseUrl + "/uui-lcm/fetchCCVPNTemplateData/*_*", + e2etemplateParameters: this.baseUrl + "/uui-lcm/service-templates/*_*",//no mock Sample Data json + nstemplateParameters: this.baseUrl + "/uui-lcm/fetchNsTemplateData", + vimInfo: this.baseUrl + "/uui-lcm/locations", + sdnControllers: this.baseUrl + "/uui-lcm/sdnc-controllers", + createService: this.baseUrl + "/uui-lcm/services", + ns_createService: this.baseUrl + "/uui-lcm/createNetworkServiceInstance", + ns_createService2: this.baseUrl + "/uui-lcm/instantiateNetworkServiceInstance", + deleteService: this.baseUrl + "/uui-lcm/services/", + ns_stopService: this.baseUrl + "/uui-lcm/terminateNetworkServiceInstance", + ns_deleteService: this.baseUrl + "/uui-lcm/deleteNetworkServiceInstance", + ns_healService: this.baseUrl + "/uui-lcm/healNetworkServiceInstance", + vnfInfo: this.baseUrl + "/uui-lcm/VnfInfo/", + nsProgress: this.baseUrl + "/uui-lcm/jobs/getNsLcmJobStatus/*_*", + e2eScale: this.baseUrl + "/services/scaleServices/", + e2e_nsdata: this.baseUrl + "/getServiceInstanceById/customerId", + allottedResource: this.baseUrl + "/uui-sotn/getAllottedResources", + updateccvpn: this.baseUrl + "/uui-lcm/services/updateService/", + pnfDetail: this.baseUrl + "/uui-sotn/getPnfInfo/", + connectivity: this.baseUrl + "/uui-sotn/getConnectivityInfo/", + vpnBinding: this.baseUrl + "/uui-sotn/getPinterfaceByVpnId/", + }; + + + //The following APIs are optimizable + + // Get all customers + getAllCustomers() { + return this.http.get(this.url.customers); + } + // Get all Orchestrators + getAllOrchestrators() { + return this.http.get(this.url.orchestrators); + } + // serviceTable list + getServicesTableData(paramsObj): Observable> { + let params = new HttpParams({ fromObject: paramsObj }); + return this.http.get(this.url.servicesTableData, { observe: 'response', params }); + } + // Get all template types + getAllServiceTemplates(type) { + if (type == "Network Service") { + let nsUrl = this.url.serviceTemplates.replace("service-templates", "listNsTemplates").replace("serviceTemplates2", "serviceTemplates-ns"); + console.log(nsUrl); + return this.http.get(nsUrl); + } + return this.http.get(this.url.serviceTemplates); + } + // Get Vim Info + getVimInfo() { + return this.http.get(this.url.vimInfo); + }; + //Get SdnControllers + getSdnControllers() { + return this.http.get(this.url.sdnControllers); + } + // Create interface + createInstance(requestBody, createParams) { + return this.http.post(this.url.createService + createParams, requestBody); + } + // NS CreateInstance step one + nsCreateInstance(requestBody) { + return this.http.post(this.url.ns_createService, requestBody); + } + // NS CreateInstance step two + nsCreateInstance2(params, requestBody) { + return this.http.post(this.url.ns_createService2 + params, requestBody); + } + //Delete ns Service + nsDeleteInstance(paramsObj) { + let params = new HttpParams({ fromObject: paramsObj }); + return this.http.delete(this.url.ns_deleteService,{params}); + } + //stop ns Service + stopNsService(paramsObj, requestBody) { //You need to terminate before deleting + let params = new HttpParams({ fromObject: paramsObj }); + return this.http.post(this.url.ns_stopService, requestBody,{ params }); + } + //heal ns Service + healNsService(paramsObj, requestBody) { + let params = new HttpParams({ fromObject: paramsObj }); + return this.http.post(this.url.ns_healService, requestBody,{params}); + } + //Get allotted-resource to get tp and pnf values + getAllottedResource(obj) { + let params = new HttpParams({ fromObject: obj }); + let url = this.url.allottedResource; + return this.http.get(url, { params }); + } + + //The following APIs are not optimizable --------------------------------- + + // Get relevant serviceType + getServiceTypes(customer) { + let url = this.url.serviceType.replace("*_*", customer.id); + return this.http.get(url); + } + //Get template input parameters + getTemplateParameters(type, template) { + if (type == "ns") { + let body = { + csarId: template.id, + inputs: "" + }; + return this.http.post(this.url.nstemplateParameters, body); + } else if (type == "e2e") { + let params = new HttpParams({ fromObject: {"toscaModelPath":template.toscaModelURL} }); + let url = this.url.e2etemplateParameters.replace("*_*", template.uuid); + return this.http.get(url,{params}); + } else { + let body = { + csarId: template.uuid, + packageType: "Service", + inputs: "" + }; + let url = this.url.templateParameters.replace("*_*", template.uuid); + return this.http.post(url, body); + } + } + // ccvpn update + updateccvpn(id, requestBody) { + return this.http.put(this.url.updateccvpn + id, requestBody);// online + } + // Delete interface + deleteInstance(obj) { + let httpOptions = { + headers: new HttpHeaders({ + 'Content-Type': 'application/json', + 'Accept': 'application/json', + 'Authorization': 'Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==' + }), + body: { + 'globalSubscriberId': obj.globalSubscriberId, + 'serviceType': obj.serviceType.name + } + }; + return this.http.delete(this.url.deleteService + obj.serviceInstanceId, httpOptions); + } + // Get Vnf Info + getVnfInfo(id) { + return this.http.get(this.url.vnfInfo + id); + } + // scale + scaleE2eService(id, requestBody) { + return this.http.post(this.url.e2eScale + id, requestBody); + } + getE2e_nsData(paramsObj) { + let params = new HttpParams({ fromObject: paramsObj }); + return this.http.get(this.url.e2e_nsdata, { params }); + } + // Query progress interface + getProgress(obj,operationTypeObj) { + let params = new HttpParams({ fromObject: operationTypeObj }); + let url = this.url.progress.replace("*_*", obj.serviceId) + obj.operationId; + return this.http.get(url,{params}); + } + getNsProgress(jobid,paramsObj) { + let params = new HttpParams({ fromObject: paramsObj }); + let url = this.url.nsProgress.replace("*_*", jobid); + return this.http.get(url,{params}); + } + + //Get the corresponding domain (network-resource) by pnf value + getPnfDetail(name) { + let url = this.url.pnfDetail + name; + return this.http.get(url); + } + //Get connectivity by sotn, find vpn-id + getSotnConnectivity(id) { + let url = this.url.connectivity + id; + return this.http.get(url); + } + //Find tp and pnf by vpn-id + getVpnBinding(id) { + let url = this.url.vpnBinding + id; + return this.http.get(url); + } +} 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() { -- cgit 1.2.3-korg