52 lines
2.0 KiB
TypeScript
52 lines
2.0 KiB
TypeScript
import { Component, Directive, ElementRef, Renderer, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';
|
|
import {Observable} from 'rxjs/Observable';
|
|
import { Properties} from './utils/properties';
|
|
@Component({
|
|
//changeDetection: ChangeDetectionStrategy.Default,
|
|
//encapsulation: ViewEncapsulation.Emulated,
|
|
selector: 'app-root',
|
|
styles: [`
|
|
`],
|
|
template: `
|
|
|
|
<navbar portal="connect" onlyTop=false [userMenuItems]=userMenuItems [menuItems]=menuItems logoPath="assets/logo/" [logInUrl]=logInUrl [logOutUrl]=logOutUrl></navbar>
|
|
<div class="custom-main-content" >
|
|
<main>
|
|
<router-outlet></router-outlet>
|
|
</main>
|
|
</div>
|
|
<feedback *ngIf= "isClient" portalName="Connect" [feedbackmail]=feedbackmail></feedback>
|
|
<cookie-law *ngIf= "isClient" position="bottom">
|
|
OpenAIRE uses cookies in order to function properly.<br>
|
|
Cookies are small pieces of data that websites store in your browser to allow us to give you the best browsing experience possible.
|
|
By using the OpenAIRE portal you accept our use of cookies. <a href="//ec.europa.eu/ipg/basics/legal/cookies/index_en.htm" target="_blank"> Read more <span class="uk-icon">
|
|
<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" icon="chevron-right" ratio="1"><polyline fill="none" stroke="#000" stroke-width="1.03" points="7 4 13 10 7 16"></polyline></svg>
|
|
</span></a>
|
|
</cookie-law>
|
|
<bottom *ngIf= "isClient"></bottom>
|
|
|
|
`
|
|
|
|
})
|
|
export class AppComponent {
|
|
isClient:boolean = false;
|
|
feedbackmail:string = Properties.getFeedbackMail();
|
|
|
|
userMenuItems = [
|
|
];
|
|
|
|
menuItems = [
|
|
];
|
|
loginUrl = Properties.getLoginURL();
|
|
logOutUrl = Properties.getLogoutURL();
|
|
ngOnInit() {
|
|
|
|
if (typeof document !== 'undefined') {
|
|
try{
|
|
this.isClient = true;
|
|
}catch (e) {
|
|
}
|
|
}
|
|
}
|
|
}
|