From 032929d287cbafefe8367e0fcee18dec4b1bf9f7 Mon Sep 17 00:00:00 2001 From: vempo Date: Mon, 22 Oct 2018 11:33:19 +0300 Subject: Deleted deprecated workflow project Change-Id: I2ad75adab7d47d8df5b3996a315a9b173fa4bbfe Issue-ID: SDC-1855 Signed-off-by: vempo --- .../src/app/components/menus/menus.component.css | 26 ------- .../src/app/components/menus/menus.component.html | 54 -------------- .../app/components/menus/menus.component.spec.ts | 36 ---------- .../src/app/components/menus/menus.component.ts | 78 -------------------- .../rest-config-detail.component.html | 48 ------------- .../rest-config-detail.component.ts | 83 ---------------------- .../rest-config-list.component.css | 15 ---- .../rest-config-list.component.html | 32 --------- .../rest-config-list/rest-config-list.component.ts | 57 --------------- .../menus/rest-config/rest-config.component.html | 39 ---------- .../menus/rest-config/rest-config.component.ts | 43 ----------- 11 files changed, 511 deletions(-) delete mode 100644 deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/menus.component.css delete mode 100644 deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/menus.component.html delete mode 100644 deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/menus.component.spec.ts delete mode 100644 deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/menus.component.ts delete mode 100644 deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-detail/rest-config-detail.component.html delete mode 100644 deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-detail/rest-config-detail.component.ts delete mode 100644 deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-list/rest-config-list.component.css delete mode 100644 deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-list/rest-config-list.component.html delete mode 100644 deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-list/rest-config-list.component.ts delete mode 100644 deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config.component.html delete mode 100644 deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config.component.ts (limited to 'deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus') diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/menus.component.css b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/menus.component.css deleted file mode 100644 index ac50221e..00000000 --- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/menus.component.css +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Copyright (c) 2017 ZTE Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * and the Apache License 2.0 which both accompany this distribution, - * and are available at http://www.eclipse.org/legal/epl-v10.html - * and http://www.apache.org/licenses/LICENSE-2.0 - * - * Contributors: - * ZTE - initial API and implementation and/or initial documentation - */ - -.wf-name{ - float: left; - font-size: 20px; - font-weight: bold; -} - -.btn-right{ - float: right; - margin-right: 5px; -} - -button i{ - padding-right: 3px; -} \ No newline at end of file diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/menus.component.html b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/menus.component.html deleted file mode 100644 index 9537bfd7..00000000 --- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/menus.component.html +++ /dev/null @@ -1,54 +0,0 @@ - - -
- - - - -
- - - - diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/menus.component.spec.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/menus.component.spec.ts deleted file mode 100644 index 6ac02fde..00000000 --- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/menus.component.spec.ts +++ /dev/null @@ -1,36 +0,0 @@ -/** - * Copyright (c) 2017 ZTE Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * and the Apache License 2.0 which both accompany this distribution, - * and are available at http://www.eclipse.org/legal/epl-v10.html - * and http://www.apache.org/licenses/LICENSE-2.0 - * - * Contributors: - * ZTE - initial API and implementation and/or initial documentation - */ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { MenusComponent } from './menus.component'; - -describe('MenusComponent', () => { - let component: MenusComponent; - let fixture: ComponentFixture; - - beforeEach(async(() => { - TestBed.configureTestingModule({ - declarations: [ MenusComponent ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(MenusComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should be created', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/menus.component.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/menus.component.ts deleted file mode 100644 index 1c064f2c..00000000 --- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/menus.component.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * Copyright (c) 2017 ZTE Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * and the Apache License 2.0 which both accompany this distribution, - * and are available at http://www.eclipse.org/legal/epl-v10.html - * and http://www.apache.org/licenses/LICENSE-2.0 - * - * Contributors: - * ZTE - initial API and implementation and/or initial documentation - */ -import { Component, OnInit, ViewChild } from '@angular/core'; - -import { BroadcastService } from '../../services/broadcast.service'; -import { ModelService } from '../../services/model.service'; -import { RestConfigComponent } from './rest-config/rest-config.component'; -import { AuthService } from '../../services/auth.service'; -import { InterfaceService } from '../../services/interface.service'; -import { ActivatedRoute } from '@angular/router/'; -import { PlxModal } from "../../paletx/plx-modal/modal"; - -@Component({ - selector: 'menus', - templateUrl: './menus.component.html', - styleUrls: ['./menus.component.css'] -}) -export class MenusComponent implements OnInit { - @ViewChild(RestConfigComponent) public restConfigComponent: RestConfigComponent; - - public name = ''; - public canSave = true; - public hasRight = false; - - constructor(private activatedRoute: ActivatedRoute, private modelService: ModelService, - private broadcastService: BroadcastService, private authService: AuthService, - private plxModal: PlxModal) { } - - ngOnInit() { - this.activatedRoute.queryParams.subscribe(queryParams => { - let operation: string = queryParams.operation; - // default value is 'modify', which means save button is enabled. - this.canSave = null == operation || 'view' != operation.toLowerCase(); - }); - this.broadcastService.initModel.subscribe(planModel => { - this.name = planModel.name; - }); - this.broadcastService.saveRight$.subscribe(saveRight => { - this.hasRight = saveRight; - }); - // checkRights - this.authService.checkRights(); - } - - public save(): void { - this.modelService.save(); - } - - public back(): void { - history.back(); - } - - public checkBack(component: any): void { - if (this.modelService.isModify()) { - this.plxModal.open(component, { size: 'sm' }); - } else { - this.back(); - } - } - - public saveBack(): void { - this.modelService.save(this.back); - } - - public showRestConfigModal(): void { - this.restConfigComponent.show(); - } - -} diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-detail/rest-config-detail.component.html b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-detail/rest-config-detail.component.html deleted file mode 100644 index 9550ed33..00000000 --- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-detail/rest-config-detail.component.html +++ /dev/null @@ -1,48 +0,0 @@ - -
- -
- -
-
- - diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-detail/rest-config-detail.component.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-detail/rest-config-detail.component.ts deleted file mode 100644 index e4d43d8c..00000000 --- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-detail/rest-config-detail.component.ts +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Copyright (c) 2017 ZTE Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * and the Apache License 2.0 which both accompany this distribution, - * and are available at http://www.eclipse.org/legal/epl-v10.html - * and http://www.apache.org/licenses/LICENSE-2.0 - * - * Contributors: - * ZTE - initial API and implementation and/or initial documentation - */ - -import { Component, Input, OnChanges } from '@angular/core'; -import { ModalDirective } from 'ngx-bootstrap/modal'; - -import { Swagger } from '../../../../model/swagger'; -import { RestConfig } from '../../../../model/rest-config'; -import { RestService } from '../../../../services/rest.service'; - -/** - * toolbar component contains some basic operations(save) and all of the supported workflow nodes. - * The supported nodes can be dragged to container component. which will add a new node to the workflow. - */ -@Component({ - selector: 'wfm-rest-config-detail', - templateUrl: 'rest-config-detail.component.html', -}) -export class RestConfigDetailComponent implements OnChanges { - @Input() restConfig: RestConfig; - - public detail: string; - - constructor(private restService: RestService) { - } - - public ngOnChanges() { - if (this.restConfig == null) { - this.restConfig = new RestConfig('', '', '', ''); - } - this.parseSwagger2String(); - } - - private parseSwagger2String() { - if (this.restConfig.swagger) { - this.detail = JSON.stringify(this.restConfig.swagger); - } else { - this.detail = ''; - } - } - - public onDetailChanged(detail: string) { - this.detail = detail; - - let swagger: Swagger = null; - try { - swagger = new Swagger(JSON.parse(detail)); - console.log(swagger); - } catch (e) { - console.log('detail transfer error'); - console.error(e); - } - this.restConfig.swagger = swagger; - } - - public toggleDynamic(dynamic: boolean) { - // this.restConfig.dynamic = dynamic; - - // if (this.restConfig.dynamic && this.restConfig.definition) { - // this.restService.getDynamicSwaggerInfo(this.restConfig.definition) - // .subscribe(response => { - // try { - // this.restConfig.swagger = new Swagger(response); - // this.parseSwagger2String(); - // } catch (e) { - // console.log('detail transfer error'); - // console.error(e); - // } - - // }); - // } - } - -} diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-list/rest-config-list.component.css b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-list/rest-config-list.component.css deleted file mode 100644 index f403890e..00000000 --- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-list/rest-config-list.component.css +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2017 ZTE Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * and the Apache License 2.0 which both accompany this distribution, - * and are available at http://www.eclipse.org/legal/epl-v10.html - * and http://www.apache.org/licenses/LICENSE-2.0 - * - * Contributors: - * ZTE - initial API and implementation and/or initial documentation - */ - - .swagger-list{ - overflow: auto; - } \ No newline at end of file diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-list/rest-config-list.component.html b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-list/rest-config-list.component.html deleted file mode 100644 index f8d745c1..00000000 --- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-list/rest-config-list.component.html +++ /dev/null @@ -1,32 +0,0 @@ - -
-
-
- Config List - -
- -
    - -
-
-
- diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-list/rest-config-list.component.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-list/rest-config-list.component.ts deleted file mode 100644 index 8a84c476..00000000 --- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config-list/rest-config-list.component.ts +++ /dev/null @@ -1,57 +0,0 @@ -/** - * Copyright (c) 2017 ZTE Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * and the Apache License 2.0 which both accompany this distribution, - * and are available at http://www.eclipse.org/legal/epl-v10.html - * and http://www.apache.org/licenses/LICENSE-2.0 - * - * Contributors: - * ZTE - initial API and implementation and/or initial documentation - */ - -import { Component, EventEmitter, Input, Output } from '@angular/core'; -import { ModalDirective } from 'ngx-bootstrap/modal'; - -import { Swagger } from '../../../../model/swagger'; -import { RestConfig } from '../../../../model/rest-config'; -import { RestService } from '../../../../services/rest.service'; - -/** - * toolbar component contains some basic operations(save) and all of the supported workflow nodes. - * The supported nodes can be dragged to container component. which will add a new node to the workflow. - */ -@Component({ - selector: 'wfm-rest-config-list', - templateUrl: 'rest-config-list.component.html', -}) -export class RestConfigListComponent { - @Output() configSelected = new EventEmitter(); - - constructor(public restService: RestService) { - } - - public onConfigSelected(restConfig: RestConfig) { - this.configSelected.emit(restConfig); - } - - public addRestConfig() { - // const restConfig = this.restService.addRestConfig(); - - // this.onConfigSelected(restConfig); - } - - public deleteRestConfig(index: number) { - // this.restService.getRestConfigs().splice(index, 1); - - // let restConfig; - // if (this.restService.getRestConfigs().length > 0) { - // if (this.restService.getRestConfigs()[index]) { - // restConfig = this.restService.getRestConfigs()[index]; - // } else { - // restConfig = this.restService.getRestConfigs()[index - 1]; - // } - // } - // this.onConfigSelected(restConfig); - } -} diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config.component.html b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config.component.html deleted file mode 100644 index a858b0fe..00000000 --- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config.component.html +++ /dev/null @@ -1,39 +0,0 @@ - - diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config.component.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config.component.ts deleted file mode 100644 index 46ac3f90..00000000 --- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/menus/rest-config/rest-config.component.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * Copyright (c) 2017 ZTE Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * and the Apache License 2.0 which both accompany this distribution, - * and are available at http://www.eclipse.org/legal/epl-v10.html - * and http://www.apache.org/licenses/LICENSE-2.0 - * - * Contributors: - * ZTE - initial API and implementation and/or initial documentation - */ - -import { AfterViewInit, Component, ViewChild } from '@angular/core'; -import { ModalDirective } from 'ngx-bootstrap/modal'; - -import { RestService } from '../../../services/rest.service'; -import { RestConfigListComponent } from './rest-config-list/rest-config-list.component'; - -/** - * toolbar component contains some basic operations(save) and all of the supported workflow nodes. - * The supported nodes can be dragged to container component. which will add a new node to the workflow. - */ -@Component({ - selector: 'wfm-rest-config', - templateUrl: 'rest-config.component.html', -}) -export class RestConfigComponent { - @ViewChild('restConfigModal') public restConfigModal: ModalDirective; - - public currentRestConfig: any = {}; - - constructor() { - } - - public configSelected(restConfig: any) { - this.currentRestConfig = restConfig; - } - - public show() { - this.restConfigModal.show(); - } - -} -- cgit 1.2.3-korg