Fix build
Some checks reported errors
FarmMaps.Develop/FarmMapsLib/develop Something is wrong with the build of this commit
Some checks reported errors
FarmMaps.Develop/FarmMapsLib/develop Something is wrong with the build of this commit
This commit is contained in:
parent
bf0dc15a00
commit
6ad23d280d
@ -1,5 +1,5 @@
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { RouterModule } from '@angular/router';
|
import { RouterModule ,UrlSegment} from '@angular/router';
|
||||||
|
|
||||||
import { AuthGuard,FullScreenGuard } from '@farmmaps/common';
|
import { AuthGuard,FullScreenGuard } from '@farmmaps/common';
|
||||||
import { MapComponent } from '@farmmaps/common-map';
|
import { MapComponent } from '@farmmaps/common-map';
|
||||||
@ -7,12 +7,26 @@ import { LogoComponent } from './logo/logo.component';
|
|||||||
import { MenuComponent } from './menu/menu.component';
|
import { MenuComponent } from './menu/menu.component';
|
||||||
import {NotImplementedComponent} from '@farmmaps/common';
|
import {NotImplementedComponent} from '@farmmaps/common';
|
||||||
|
|
||||||
|
export function urlMatcher(url: UrlSegment[]) {
|
||||||
|
return {consumed:url};
|
||||||
|
}
|
||||||
|
|
||||||
const routes = [
|
const routes = [
|
||||||
|
{
|
||||||
|
path: '',
|
||||||
|
component: LogoComponent,
|
||||||
|
outlet: 'side-panel-logo'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '',
|
||||||
|
component: MenuComponent,
|
||||||
|
outlet: 'side-panel-menu'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
redirectTo: 'map',
|
redirectTo: 'map',
|
||||||
pathMatch: 'full'
|
pathMatch: 'full'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path:'editor/:type/item/:itemcode',
|
path:'editor/:type/item/:itemcode',
|
||||||
component: NotImplementedComponent
|
component: NotImplementedComponent
|
||||||
@ -28,21 +42,9 @@ const routes = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: ':xCenter/:yCenter/:zoom/:rotation/:baseLayer/:queryState',
|
path: ':xCenter/:yCenter/:zoom/:rotation/:baseLayer/:queryState',
|
||||||
component: MapComponent,
|
component: MapComponent
|
||||||
children:[
|
}
|
||||||
{
|
]}
|
||||||
path: '',
|
|
||||||
component: LogoComponent,
|
|
||||||
outlet: 'side-panel-logo'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '',
|
|
||||||
component: MenuComponent,
|
|
||||||
outlet: 'side-panel-menu'
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]},
|
|
||||||
];
|
];
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
|
Loading…
Reference in New Issue
Block a user