summaryrefslogtreecommitdiffstats
path: root/portal-FE-common/src/app/pages/dashboard
diff options
context:
space:
mode:
Diffstat (limited to 'portal-FE-common/src/app/pages/dashboard')
-rw-r--r--portal-FE-common/src/app/pages/dashboard/dashboard.component.html62
-rw-r--r--portal-FE-common/src/app/pages/dashboard/dashboard.component.scss0
-rw-r--r--portal-FE-common/src/app/pages/dashboard/dashboard.component.spec.ts25
-rw-r--r--portal-FE-common/src/app/pages/dashboard/dashboard.component.ts22
4 files changed, 109 insertions, 0 deletions
diff --git a/portal-FE-common/src/app/pages/dashboard/dashboard.component.html b/portal-FE-common/src/app/pages/dashboard/dashboard.component.html
new file mode 100644
index 00000000..c5c21efb
--- /dev/null
+++ b/portal-FE-common/src/app/pages/dashboard/dashboard.component.html
@@ -0,0 +1,62 @@
+<!--
+ ============LICENSE_START==========================================
+ ONAP Portal
+ ===================================================================
+ Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
+ ===================================================================
+
+ Unless otherwise specified, all software contained herein is licensed
+ under the Apache License, Version 2.0 (the "License");
+ you may not use this software 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.
+
+ Unless otherwise specified, all documentation contained herein is licensed
+ under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+ you may not use this documentation except in compliance with the License.
+ You may obtain a copy of the License at
+
+ https://creativecommons.org/licenses/by/4.0/
+
+ Unless required by applicable law or agreed to in writing, documentation
+ 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============================================
+
+
+ -->
+<div>
+
+ <div style="height:calc(50vh );">
+ <app-dashboard-application-catalog></app-dashboard-application-catalog>
+ </div>
+ <div style="height: calc(50vh );">
+ <app-dashboard-widget-catalog></app-dashboard-widget-catalog>
+ </div>
+
+
+ <!--
+ <div class="gridster-container override_background" style="height: calc(30vh - 20px );">
+
+ <div id="dashboardAddWidgetPreference" [ngStyle]="{'cursor':'pointer'}"
+ (click)="dashboard.goToWidgetCatLog()">
+ <i class="icon-controls-add-maximize"></i>{{'Add Widget'}}
+ </div>
+ &nbsp;
+ <div id="dashboardDefaultPreference" [ngStyle]="{'cursor':'pointer'}" (click)="restoreSortSelected()">
+ <i class="icon-arrows-replay-restart"></i> {{'Reset Widget Layout'}}
+ </div>
+ </div>
+ -->
+
+</div>
diff --git a/portal-FE-common/src/app/pages/dashboard/dashboard.component.scss b/portal-FE-common/src/app/pages/dashboard/dashboard.component.scss
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/portal-FE-common/src/app/pages/dashboard/dashboard.component.scss
diff --git a/portal-FE-common/src/app/pages/dashboard/dashboard.component.spec.ts b/portal-FE-common/src/app/pages/dashboard/dashboard.component.spec.ts
new file mode 100644
index 00000000..9c996c37
--- /dev/null
+++ b/portal-FE-common/src/app/pages/dashboard/dashboard.component.spec.ts
@@ -0,0 +1,25 @@
+import { async, ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { DashboardComponent } from './dashboard.component';
+
+describe('DashboardComponent', () => {
+ let component: DashboardComponent;
+ let fixture: ComponentFixture<DashboardComponent>;
+
+ beforeEach(async(() => {
+ TestBed.configureTestingModule({
+ declarations: [ DashboardComponent ]
+ })
+ .compileComponents();
+ }));
+
+ beforeEach(() => {
+ fixture = TestBed.createComponent(DashboardComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/portal-FE-common/src/app/pages/dashboard/dashboard.component.ts b/portal-FE-common/src/app/pages/dashboard/dashboard.component.ts
new file mode 100644
index 00000000..6f25e745
--- /dev/null
+++ b/portal-FE-common/src/app/pages/dashboard/dashboard.component.ts
@@ -0,0 +1,22 @@
+import { Component, OnInit } from '@angular/core';
+import { UserProfileService } from 'src/app/shared/services';
+import { PluginComponent} from 'src/app/shared/plugin/plugin.component';
+
+@Component({
+ selector: 'app-dashboard',
+ templateUrl: './dashboard.component.html',
+ styleUrls: ['./dashboard.component.scss']
+})
+export class DashboardComponent implements OnInit {
+
+
+ constructor(private userProfile: UserProfileService) { }
+
+ ngOnInit() {
+ // remove this after portal upgrade is done
+ this.userProfile.getFunctionalMenuStaticInfo();
+ }
+
+
+
+}