[Monitor Dashboard | Trunk]: Add footer on front page

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-monitor-portal/trunk/monitor_dashboard@59762 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
Konstantinos Triantafyllou 2020-11-04 09:10:54 +00:00
parent 8416ffd7a0
commit bd7925772f
6 changed files with 30 additions and 22 deletions

View File

@ -17,13 +17,13 @@ const routes: Routes = [
path: 'user-info', path: 'user-info',
loadChildren: './login/libUser.module#LibUserModule', loadChildren: './login/libUser.module#LibUserModule',
resolve: {envSpecific: EnvironmentSpecificResolver}, resolve: {envSpecific: EnvironmentSpecificResolver},
data: {hasSidebar: false} data: {hasSidebar: false, isFrontPage: true}
}, },
{ {
path: 'error', path: 'error',
component: OpenaireErrorPageComponent, component: OpenaireErrorPageComponent,
resolve: {envSpecific: EnvironmentSpecificResolver}, resolve: {envSpecific: EnvironmentSpecificResolver},
data: {hasSidebar: false} data: {hasSidebar: false, isFrontPage: true}
}, },
{ {
path: 'admin', path: 'admin',
@ -156,7 +156,7 @@ const routes: Routes = [
pathMatch: 'full', pathMatch: 'full',
component: OpenaireErrorPageComponent, component: OpenaireErrorPageComponent,
resolve: {envSpecific: EnvironmentSpecificResolver}, resolve: {envSpecific: EnvironmentSpecificResolver},
data: {hasSidebar: false, hasAdminMenu: false} data: {hasSidebar: false, hasAdminMenu: false, isFrontPage: true}
} }
]; ];

View File

@ -16,9 +16,12 @@
[headerUrl]="properties.domain + properties.baseLink" queryParamsHandling="preserve" [headerUrl]="properties.domain + properties.baseLink" queryParamsHandling="preserve"
></dashboard-sidebar> ></dashboard-sidebar>
<dashboard-sidebar *ngIf="hasAdminMenu" [items]="adminMenuItems" headerName="Admin" <dashboard-sidebar *ngIf="hasAdminMenu" [items]="adminMenuItems" headerName="Admin"
headerDashboard="Administration Panel" [headerUrl]="properties.domain + properties.baseLink" [specialMenuItem]="specialSideBarMenuItem" headerDashboard="Administration Panel" [headerUrl]="properties.domain + properties.baseLink"
[specialMenuItem]="specialSideBarMenuItem"
></dashboard-sidebar> ></dashboard-sidebar>
<router-outlet></router-outlet> <router-outlet></router-outlet>
<bottom *ngIf="isFrontPage" [darkBackground]="false"
[centered]="true" [properties]="properties" [showMenuItems]="true"></bottom>
<role-verification *ngIf="stakeholder && properties.environment === 'development'" <role-verification *ngIf="stakeholder && properties.environment === 'development'"
[id]="stakeholder.alias" [name]="stakeholder.name" [type]="stakeholder.type"></role-verification> [id]="stakeholder.alias" [name]="stakeholder.name" [type]="stakeholder.type"></role-verification>
</div> </div>

View File

@ -204,11 +204,6 @@
</div> </div>
</div> </div>
</div> </div>
<div *ngIf="stakeholder" class="uk-margin-xlarge-top">
<bottom *ngIf="properties" [darkBackground]="false"
[centered]="true" [properties]="properties" [showMenuItems]="true"></bottom>
</div>
</div> </div>
<!--(click)="filterToggle= !filterToggle" <!--(click)="filterToggle= !filterToggle"
[style.display]="(filterToggle?'none':'inherit')"--> [style.display]="(filterToggle?'none':'inherit')"-->

View File

@ -55,7 +55,7 @@ export class MonitorComponent implements OnInit, OnDestroy {
public numberResults: Map<string, number> = new Map<string, number>(); public numberResults: Map<string, number> = new Map<string, number>();
public chartsActiveType: Map<string, IndicatorPath> = new Map<string, IndicatorPath>(); public chartsActiveType: Map<string, IndicatorPath> = new Map<string, IndicatorPath>();
private errorMessages: ErrorMessagesComponent; private errorMessages: ErrorMessagesComponent;
properties: EnvProperties; properties: EnvProperties = properties;
filterToggle = false; filterToggle = false;
public routerHelper: RouterHelper = new RouterHelper(); public routerHelper: RouterHelper = new RouterHelper();
filters:Filter[] = []; filters:Filter[] = [];
@ -102,7 +102,6 @@ export class MonitorComponent implements OnInit, OnDestroy {
if (subscription) { if (subscription) {
subscription.unsubscribe(); subscription.unsubscribe();
} }
this.properties = properties;
var url = properties.domain + properties.baseLink + this._router.url; var url = properties.domain + properties.baseLink + this._router.url;
this.route.queryParams.subscribe(params => { this.route.queryParams.subscribe(params => {
this.queryParams = Object.assign({}, params); this.queryParams = Object.assign({}, params);

View File

@ -85,7 +85,8 @@
transition-property: left; transition-property: left;
} }
.sidebar_main_swipe #page_content, openaire-user { .sidebar_main_swipe #page_content, .sidebar_main_swipe openaire-user > *,
.sidebar_main_swipe openaire-error > * {
padding-left: var(--sidebar-width); padding-left: var(--sidebar-width);
padding-top: var(--header-height); padding-top: var(--header-height);
transition: 0.5s; transition: 0.5s;
@ -95,8 +96,20 @@
-o-transition: 0.5s; -o-transition: 0.5s;
} }
.sidebar_main_swipe bottom > * {
padding-left: var(--sidebar-width);
transition: 0.5s;
-webkit-transition: 0.5s;
-moz-transition: 0.5s;
-ms-transition: 0.5s;
-o-transition: 0.5s;
}
/*Sidebar close*/ /*Sidebar close*/
.sidebar_main_swipe:not(.sidebar_main_active):not(.sidebar_mini) #page_content { .sidebar_main_swipe:not(.sidebar_main_active):not(.sidebar_mini) #page_content,
.sidebar_main_swipe:not(.sidebar_main_active):not(.sidebar_mini) openaire-user > *,
.sidebar_main_swipe:not(.sidebar_main_active):not(.sidebar_mini) openaire-error > *,
.sidebar_main_swipe:not(.sidebar_main_active):not(.sidebar_mini) bottom > *{
padding-left: 0; padding-left: 0;
} }
@ -110,7 +123,10 @@
} }
/*Sidebar mini*/ /*Sidebar mini*/
.sidebar_main_swipe.sidebar_mini #page_content { .sidebar_main_swipe.sidebar_mini #page_content,
.sidebar_main_swipe.sidebar_mini openaire-user > *,
.sidebar_main_swipe.sidebar_mini openaire-error > *,
.sidebar_main_swipe.sidebar_mini bottom > * {
padding-left: var(--sidebar-mini-width); padding-left: var(--sidebar-mini-width);
transition: 0.5s; transition: 0.5s;
-webkit-transition: 0.5s; -webkit-transition: 0.5s;
@ -147,7 +163,7 @@
-o-transition: 0.5s; -o-transition: 0.5s;
} }
.sidebar_mini #page_content_header{ .sidebar_mini #page_content_header {
width: calc(100vw - var(--sidebar-mini-width) - 200px); width: calc(100vw - var(--sidebar-mini-width) - 200px);
} }
@ -155,6 +171,6 @@
padding: 50px 90px 90px; padding: 50px 90px 90px;
} }
navbar > * { navbar > *, openaire-error > *, openaire-user > * {
background-color: var(--background-color); background-color: var(--background-color);
} }

View File

@ -5,7 +5,6 @@
.uk-subnav-pill > * > a, .uk-subnav-pill > * > span > a { .uk-subnav-pill > * > a, .uk-subnav-pill > * > span > a {
color: currentColor !important; color: currentColor !important;
font-size: 13px;
opacity: 0.5; opacity: 0.5;
border-radius: 40px !important; border-radius: 40px !important;
border: 1px solid currentColor !important; border: 1px solid currentColor !important;
@ -15,7 +14,7 @@
.uk-subnav-pill > * > :first-child { .uk-subnav-pill > * > :first-child {
text-transform: none; text-transform: none;
font-size: var(--font-size); font-size: 13px;
color: var(--text-color); color: var(--text-color);
} }
@ -54,10 +53,6 @@
border: 0 transparent !important; border: 0 transparent !important;
} }
.subCategoriesTabs > li > a{
font-size: 13px;
}
.uk-tab.customTabs::before { .uk-tab.customTabs::before {
border-bottom: none !important; border-bottom: none !important;
} }