Newer
Older
import { ChangeDetectionStrategy, Component } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { NbMenuItem, NbSidebarService } from '@nebular/theme';
changeDetection: ChangeDetectionStrategy.OnPush,
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
items: NbMenuItem[] = [
{
title: 'Home',
icon: 'home-outline',
link: '',
pathMatch:'full'
},
{
title: 'Register',
icon: 'file-text-outline',
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
pathMatch:'full'
},
{
title: 'Login',
icon: 'person-outline',
link: '/login',
pathMatch:'full'
},
{
title: 'Search',
icon: 'search-outline',
link: '/simplesearch',
pathMatch:'full'
},
{
title: 'Describe your repository',
icon: 'cube-outline',
children: [
{
title: 'SDT information',
link: '/repositoryinfo',
pathMatch:'full',
icon: 'flash-outline',
},
{
title: 'Technical information',
link: '/repository',
pathMatch:'full',
icon: 'text-outline',
},
],
},
{
title: 'Describe access to datasets',
icon: 'clipboard-outline',
link: '/publishapi',
pathMatch:'full'
},
{
title: 'Settings',
icon: 'options-2-outline',
children: [
{
title: 'FDP settings',
link: '/settingfdp',
pathMatch:'full'
},
{
title: 'SmartHarvester settings',
link: '/settingsmartharvester',
pathMatch:'full'
},
{
title: 'Elasticsearch settings',
link: '/elasticsearch',
pathMatch:'full'
}
],
},
];
constructor(private readonly sidebarService: NbSidebarService) {
}
toggleSidebar(): boolean {
this.sidebarService.toggle(true);
return false;
}