Skip to content
Snippets Groups Projects
app.component.ts 2.06 KiB
import { ChangeDetectionStrategy, Component } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { NbMenuItem, NbSidebarService } from '@nebular/theme';


@Component({
  selector: 'app-root',
  changeDetection: ChangeDetectionStrategy.OnPush,
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.scss']
})
export class AppComponent  {
  title = 'register-front';
  
  items: NbMenuItem[] = [
    {
      title: 'Home',
      icon: 'home-outline',
      link: '',
      pathMatch:'full'
    },
    {
      title: 'Register',
      icon: 'file-text-outline',
      link: '/repository',
      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;
  }


}