From 8e43dce763031fe3ecb16ad099cb180f379d08c9 Mon Sep 17 00:00:00 2001 From: soumendu Date: Fri, 18 Jan 2019 16:37:44 +0530 Subject: CDS UI Data Dictionary Creation and Management Directory Structure of CDS UI Data Dictionary Change-Id: I21db0719ec625141b236dca5237a8be20a71e4d1 Issue-ID: CCSDK-804 Signed-off-by: soumendu --- .../save-resource/save-resource-routing.module.ts | 36 +++++++++++++++++ .../save-resource/save-resource.component.html | 25 ++++++++++++ .../save-resource/save-resource.component.scss | 19 +++++++++ .../save-resource/save-resource.component.spec.ts | 45 ++++++++++++++++++++++ .../save-resource/save-resource.component.ts | 35 +++++++++++++++++ .../save-resource/save-resource.module.ts | 34 ++++++++++++++++ 6 files changed, 194 insertions(+) create mode 100644 cds-ui/client/src/app/feature-modules/resource-definition/save-resource/save-resource-routing.module.ts create mode 100644 cds-ui/client/src/app/feature-modules/resource-definition/save-resource/save-resource.component.html create mode 100644 cds-ui/client/src/app/feature-modules/resource-definition/save-resource/save-resource.component.scss create mode 100644 cds-ui/client/src/app/feature-modules/resource-definition/save-resource/save-resource.component.spec.ts create mode 100644 cds-ui/client/src/app/feature-modules/resource-definition/save-resource/save-resource.component.ts create mode 100644 cds-ui/client/src/app/feature-modules/resource-definition/save-resource/save-resource.module.ts (limited to 'cds-ui/client/src/app/feature-modules/resource-definition/save-resource') diff --git a/cds-ui/client/src/app/feature-modules/resource-definition/save-resource/save-resource-routing.module.ts b/cds-ui/client/src/app/feature-modules/resource-definition/save-resource/save-resource-routing.module.ts new file mode 100644 index 000000000..c0346ca7e --- /dev/null +++ b/cds-ui/client/src/app/feature-modules/resource-definition/save-resource/save-resource-routing.module.ts @@ -0,0 +1,36 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : CDS +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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. +* ============LICENSE_END========================================================= +*/ + +import { NgModule } from '@angular/core'; +import { Routes, RouterModule } from '@angular/router'; +import { SaveResourceComponent } from './save-resource.component'; + +const routes: Routes = [ + { + path: '', + component: SaveResourceComponent + } +]; + +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule] +}) +export class SaveResourceRoutingModule { } diff --git a/cds-ui/client/src/app/feature-modules/resource-definition/save-resource/save-resource.component.html b/cds-ui/client/src/app/feature-modules/resource-definition/save-resource/save-resource.component.html new file mode 100644 index 000000000..2ecb4a041 --- /dev/null +++ b/cds-ui/client/src/app/feature-modules/resource-definition/save-resource/save-resource.component.html @@ -0,0 +1,25 @@ + + + +

+ save-resource works! +

+ \ No newline at end of file diff --git a/cds-ui/client/src/app/feature-modules/resource-definition/save-resource/save-resource.component.scss b/cds-ui/client/src/app/feature-modules/resource-definition/save-resource/save-resource.component.scss new file mode 100644 index 000000000..cafd2bf8f --- /dev/null +++ b/cds-ui/client/src/app/feature-modules/resource-definition/save-resource/save-resource.component.scss @@ -0,0 +1,19 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : CDS +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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. +* ============LICENSE_END========================================================= +*/ \ No newline at end of file diff --git a/cds-ui/client/src/app/feature-modules/resource-definition/save-resource/save-resource.component.spec.ts b/cds-ui/client/src/app/feature-modules/resource-definition/save-resource/save-resource.component.spec.ts new file mode 100644 index 000000000..6a3299940 --- /dev/null +++ b/cds-ui/client/src/app/feature-modules/resource-definition/save-resource/save-resource.component.spec.ts @@ -0,0 +1,45 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : CDS +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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. +* ============LICENSE_END========================================================= +*/ + +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { SaveResourceComponent } from './save-resource.component'; + +describe('SaveResourceComponent', () => { + let component: SaveResourceComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ SaveResourceComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(SaveResourceComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/cds-ui/client/src/app/feature-modules/resource-definition/save-resource/save-resource.component.ts b/cds-ui/client/src/app/feature-modules/resource-definition/save-resource/save-resource.component.ts new file mode 100644 index 000000000..f4a046b55 --- /dev/null +++ b/cds-ui/client/src/app/feature-modules/resource-definition/save-resource/save-resource.component.ts @@ -0,0 +1,35 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : CDS +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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. +* ============LICENSE_END========================================================= +*/ + +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-save-resource', + templateUrl: './save-resource.component.html', + styleUrls: ['./save-resource.component.scss'] +}) +export class SaveResourceComponent implements OnInit { + + constructor() { } + + ngOnInit() { + } + +} diff --git a/cds-ui/client/src/app/feature-modules/resource-definition/save-resource/save-resource.module.ts b/cds-ui/client/src/app/feature-modules/resource-definition/save-resource/save-resource.module.ts new file mode 100644 index 000000000..cd343755b --- /dev/null +++ b/cds-ui/client/src/app/feature-modules/resource-definition/save-resource/save-resource.module.ts @@ -0,0 +1,34 @@ +/* +* ============LICENSE_START======================================================= +* ONAP : CDS +* ================================================================================ +* Copyright 2019 TechMahindra +*================================================================================= +* 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. +* ============LICENSE_END========================================================= +*/ + +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; + +import { SaveResourceComponent } from './save-resource.component'; +import { SaveResourceRoutingModule } from './save-resource-routing.module'; + +@NgModule({ + declarations: [SaveResourceComponent], + imports: [ + CommonModule, + SaveResourceRoutingModule + ] +}) +export class SaveResourceModule { } -- cgit 1.2.3-korg