mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
34 lines
863 B
TypeScript
34 lines
863 B
TypeScript
import { Route } from '@angular/router';
|
|
|
|
import { LinkMenuItemModel } from '../shared/menu/menu-item/models/link.model';
|
|
import { MenuItemType } from '../shared/menu/menu-item-type.model';
|
|
import { homePageResolver } from './home-page.resolver';
|
|
import { ThemedHomePageComponent } from './themed-home-page.component';
|
|
|
|
export const ROUTES: Route[] = [
|
|
{
|
|
path: '',
|
|
component: ThemedHomePageComponent,
|
|
pathMatch: 'full',
|
|
data: {
|
|
title: 'home.title',
|
|
menu: {
|
|
public: [{
|
|
id: 'statistics_site',
|
|
active: true,
|
|
visible: true,
|
|
index: 2,
|
|
model: {
|
|
type: MenuItemType.LINK,
|
|
text: 'menu.section.statistics',
|
|
link: 'statistics',
|
|
} as LinkMenuItemModel,
|
|
}],
|
|
},
|
|
},
|
|
resolve: {
|
|
site: homePageResolver,
|
|
},
|
|
},
|
|
];
|