Clean up and add license headings 23/5723/1
authorelinuxhenrik <henrik.b.andersson@est.tech>
Fri, 5 Mar 2021 15:16:25 +0000 (16:16 +0100)
committerelinuxhenrik <henrik.b.andersson@est.tech>
Fri, 5 Mar 2021 15:16:30 +0000 (16:16 +0100)
Change-Id: Id2b4a202879119568b796f1d8100a4694961fba7
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
Issue-ID: NONRTRIC-457

19 files changed:
webapp-frontend/src/app/app.module.ts
webapp-frontend/src/app/node-modules/node-modules.component.html [deleted file]
webapp-frontend/src/app/node-modules/node-modules.component.scss [deleted file]
webapp-frontend/src/app/node-modules/node-modules.component.spec.ts [deleted file]
webapp-frontend/src/app/node-modules/node-modules.component.ts [deleted file]
webapp-frontend/src/app/policy/no-type-policy-editor/no-type-policy-editor.component.html
webapp-frontend/src/app/policy/no-type-policy-editor/no-type-policy-editor.component.scss
webapp-frontend/src/app/policy/no-type-policy-editor/no-type-policy-editor.component.spec.ts
webapp-frontend/src/app/policy/no-type-policy-editor/no-type-policy-editor.component.ts
webapp-frontend/src/app/policy/no-type-policy-instance-dialog/no-type-policy-instance-dialog.component.spec.ts
webapp-frontend/src/app/policy/policy-instance-dialog/policy-instance-dialog.component.ts
webapp-frontend/src/app/policy/policy-instance/policy-instance.component.ts
webapp-frontend/src/app/policy/policy-instance/policy-instance.datasource.ts
webapp-frontend/src/app/policy/ric-selector/ric-selector.component.html
webapp-frontend/src/app/policy/ric-selector/ric-selector.component.scss
webapp-frontend/src/app/policy/ric-selector/ric-selector.component.spec.ts
webapp-frontend/src/app/policy/ric-selector/ric-selector.component.ts
webapp-frontend/src/app/services/policy/policy.service.ts
webapp-frontend/src/styles.css

index ecb20bd..e84cf6b 100644 (file)
@@ -63,7 +63,6 @@ import { AppRoutingModule } from './app-routing.module';
 import { SidenavListComponent } from './navigation/sidenav-list/sidenav-list.component';
 import { UiService } from './services/ui/ui.service';
 import { CookieService } from 'ngx-cookie-service';
-import { NodeModulesComponent } from './node-modules/node-modules.component';
 import { HttpMockRequestInterceptor } from './interceptor.mock';
 import { environment } from 'src/environments/environment';
 import { HttpRequestInterceptor } from './interceptor';
@@ -77,7 +76,6 @@ export const isMock = environment.mock;
     ErrorDialogComponent,
     FooterComponent,
     MainComponent,
-    NodeModulesComponent,
     SidenavListComponent,
   ],
   imports: [
diff --git a/webapp-frontend/src/app/node-modules/node-modules.component.html b/webapp-frontend/src/app/node-modules/node-modules.component.html
deleted file mode 100644 (file)
index a1950bc..0000000
+++ /dev/null
@@ -1 +0,0 @@
-<p>node-modules works!</p>
diff --git a/webapp-frontend/src/app/node-modules/node-modules.component.scss b/webapp-frontend/src/app/node-modules/node-modules.component.scss
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/webapp-frontend/src/app/node-modules/node-modules.component.spec.ts b/webapp-frontend/src/app/node-modules/node-modules.component.spec.ts
deleted file mode 100644 (file)
index ea620d9..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-import { async, ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { NodeModulesComponent } from './node-modules.component';
-
-describe('NodeModulesComponent', () => {
-  let component: NodeModulesComponent;
-  let fixture: ComponentFixture<NodeModulesComponent>;
-
-  beforeEach(async(() => {
-    TestBed.configureTestingModule({
-      declarations: [ NodeModulesComponent ]
-    })
-    .compileComponents();
-  }));
-
-  beforeEach(() => {
-    fixture = TestBed.createComponent(NodeModulesComponent);
-    component = fixture.componentInstance;
-    fixture.detectChanges();
-  });
-
-  it('should create', () => {
-    expect(component).toBeTruthy();
-  });
-});
diff --git a/webapp-frontend/src/app/node-modules/node-modules.component.ts b/webapp-frontend/src/app/node-modules/node-modules.component.ts
deleted file mode 100644 (file)
index 5a3cfb4..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-import { Component, OnInit } from '@angular/core';
-
-@Component({
-  selector: 'nrcp-node-modules',
-  templateUrl: './node-modules.component.html',
-  styleUrls: ['./node-modules.component.scss']
-})
-export class NodeModulesComponent implements OnInit {
-
-  constructor() { }
-
-  ngOnInit() {
-  }
-
-}
index 0be8837..9a2112e 100644 (file)
@@ -1,3 +1,25 @@
+<!--
+ -
+   ========================LICENSE_START=================================
+   O-RAN-SC
+   %%
+   Copyright (C) 2021: Nordix Foundation
+   %%
+   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===================================
+  /
+-->
+
 <mat-form-field style="width: 800px;"  appearance="fill">
     <textarea id="policyJsonTextArea" formControlName="policyJsonTextArea" matInput cdkTextareaAutosize
         cdkAutosizeMinRows="10" required [value]="this.policyJson" placeholder="Policy properties"
index e69de29..0048316 100644 (file)
@@ -0,0 +1,20 @@
+// -
+//   ========================LICENSE_START=================================
+//   O-RAN-SC
+//   %%
+//   Copyright (C) 2021: Nordix Foundation
+//   %%
+//   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===================================
+//
+
index 77477ed..529caee 100644 (file)
@@ -16,7 +16,6 @@
 //   See the License for the specific language governing permissions and
 //   limitations under the License.
 //   ========================LICENSE_END===================================
-//  /
 //
 
 import { HarnessLoader } from '@angular/cdk/testing';
index f167ada..8d2294c 100644 (file)
@@ -17,7 +17,6 @@
 //   limitations under the License.
 //   ========================LICENSE_END===================================
 //  /
-//
 
 import { Component, Input, OnInit } from '@angular/core';
 import { AbstractControl, ControlContainer, FormBuilder, FormControl, FormGroup, FormGroupDirective, ValidatorFn, Validators } from '@angular/forms';
index 2e62f57..0c3853d 100644 (file)
@@ -25,11 +25,8 @@ import { MatButtonModule } from '@angular/material/button';
 import { MatButtonHarness } from '@angular/material/button/testing';
 import { MatDialogModule, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
 import { MatSelectModule } from '@angular/material/select';
-import { MatSelectHarness } from '@angular/material/select/testing';
 import { MatInputModule } from '@angular/material/input';
-import { MatInputHarness } from '@angular/material/input/testing';
-import { of } from "rxjs/observable/of";
-import { FormControl, ReactiveFormsModule } from "@angular/forms";
+import { ReactiveFormsModule } from "@angular/forms";
 import { TestbedHarnessEnvironment } from "@angular/cdk/testing/testbed";
 import { ToastrModule } from "ngx-toastr";
 
@@ -37,8 +34,6 @@ import { PolicyService } from "../../services/policy/policy.service";
 import { ErrorDialogService } from "../../services/ui/error-dialog.service";
 import { UiService } from "../../services/ui/ui.service";
 import { NoTypePolicyInstanceDialogComponent } from "./no-type-policy-instance-dialog.component";
-import { RicSelectorComponent } from "../ric-selector/ric-selector.component";
-import { NoTypePolicyEditorComponent } from "../no-type-policy-editor/no-type-policy-editor.component";
 
 describe('NoTypePolicyInstanceDialogComponent', () => {
   let component: NoTypePolicyInstanceDialogComponent;
index a703634..a2bd7a5 100644 (file)
@@ -20,7 +20,6 @@
 import { animate, state, style, transition, trigger } from '@angular/animations';
 import { AfterViewInit, Component, Inject, OnInit, ViewChild } from '@angular/core';
 import { MatDialogConfig, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
-import { MatMenuTrigger } from '@angular/material/menu';
 import { JsonPointer } from 'angular6-json-schema-form';
 import * as uuid from 'uuid';
 import { CreatePolicyInstance, PolicyInstance, PolicyTypeSchema } from '../../interfaces/policy.types';
@@ -80,8 +79,6 @@ export class PolicyInstanceDialogComponent implements OnInit, AfterViewInit {
     formValidationErrors: any;
     formIsValid = false;
 
-    @ViewChild(MatMenuTrigger, { static: true }) menuTrigger: MatMenuTrigger;
-
     policyInstanceId: string; // null if not yet created
     policyTypeName: string;
     darkMode: boolean;
index 540bfc8..95313d0 100644 (file)
@@ -59,7 +59,7 @@ export class PolicyInstanceComponent implements OnInit, AfterViewInit {
     }
 
     ngOnInit() {
-        this.instanceDataSource = new PolicyInstanceDataSource(this.policySvc, this.sort, this.notificationService, this.policyTypeSchema);
+        this.instanceDataSource = new PolicyInstanceDataSource(this.policySvc, this.sort, this.policyTypeSchema);
         this.expanded.subscribe((isExpanded: boolean) => this.onExpand(isExpanded));
         this.ui.darkModeState.subscribe((isDark) => {
             this.darkMode = isDark;
index 4b58e42..03a156d 100644 (file)
  */
 
 import { DataSource } from '@angular/cdk/collections';
-import { HttpErrorResponse } from '@angular/common/http';
 import { MatSort } from '@angular/material/sort';
 import { Observable } from 'rxjs/Observable';
 import { BehaviorSubject } from 'rxjs/BehaviorSubject';
 import { merge } from 'rxjs';
-import { of } from 'rxjs/observable/of';
-import { catchError, finalize, map } from 'rxjs/operators';
+import { map } from 'rxjs/operators';
 import { PolicyInstance, PolicyTypeSchema } from '../../interfaces/policy.types';
 import { PolicyService } from '../../services/policy/policy.service';
-import { NotificationService } from '../../services/ui/notification.service';
 
 export class PolicyInstanceDataSource extends DataSource<PolicyInstance> {
 
@@ -45,7 +42,6 @@ export class PolicyInstanceDataSource extends DataSource<PolicyInstance> {
     constructor(
         private policySvc: PolicyService,
         public sort: MatSort,
-        private notificationService: NotificationService,
         private policyTypeSchema: PolicyTypeSchema) {
         super();
     }
index 1299058..13d1ec0 100644 (file)
@@ -1,3 +1,25 @@
+<!--
+ -
+   ========================LICENSE_START=================================
+   O-RAN-SC
+   %%
+   Copyright (C) 2021: Nordix Foundation
+   %%
+   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===================================
+  /
+-->
+
 <mat-form-field appearance="fill">
     <mat-select id="ricSelector" formControlName="ricSelector" matInput required
         placeholder="Target" matTooltip="Element where the policy instance resides, e.g. a gNodeB or Near-RT RIC">
index e69de29..0048316 100644 (file)
@@ -0,0 +1,20 @@
+// -
+//   ========================LICENSE_START=================================
+//   O-RAN-SC
+//   %%
+//   Copyright (C) 2021: Nordix Foundation
+//   %%
+//   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===================================
+//
+
index ab75c5e..f452fb5 100644 (file)
@@ -16,7 +16,6 @@
 //   See the License for the specific language governing permissions and
 //   limitations under the License.
 //   ========================LICENSE_END===================================
-//  /
 //
 
 import { HarnessLoader } from '@angular/cdk/testing';
index d4b50c0..e0ba87e 100644 (file)
 //   limitations under the License.
 //   ========================LICENSE_END===================================
 //  /
-//
 
 import { Component, Input, OnInit } from '@angular/core';
 import { AbstractControl, ControlContainer, FormBuilder, FormControl, FormGroup, FormGroupDirective, Validators } from '@angular/forms';
-import { Ric, Rics } from 'src/app/interfaces/ric';
+import { Rics } from 'src/app/interfaces/ric';
 import { PolicyService } from 'src/app/services/policy/policy.service';
 
 @Component({
index 72375e8..2e7273f 100644 (file)
 import { Injectable } from '@angular/core';
 import { HttpClient } from '@angular/common/http';
 import { Observable } from 'rxjs';
-import { map } from 'rxjs/operators';
 import { CreatePolicyInstance, PolicyInstance, PolicyInstanceAck, PolicyInstances, PolicyStatus, PolicyType, PolicyTypes } from '../../interfaces/policy.types';
-import { ControlpanelSuccessTransport } from '../../interfaces/controlpanel.types';
-import { Ric, Rics } from 'src/app/interfaces/ric';
+import { Rics } from 'src/app/interfaces/ric';
 
 /**
  * Services for calling the policy endpoints.
index e69de29..8a26e00 100644 (file)
@@ -0,0 +1,22 @@
+/**
+ * -
+ *   ========================LICENSE_START=================================
+ *   O-RAN-SC
+ *   %%
+ *   Copyright (C) 2021: Nordix Foundation
+ *   %%
+ *   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===================================
+ *
+ */
+