2017-09-02 23:27:15 +02:00
|
|
|
import {RouterModule, Routes} from "@angular/router";
|
2017-08-06 10:42:37 +02:00
|
|
|
import {StatisticComponent} from "./stats.component";
|
|
|
|
import {WarDetailComponent} from "./war-detail/war-detail.component";
|
|
|
|
import {WarSubmitComponent} from "./war-submit/war-submit.component";
|
|
|
|
import {WarListComponent} from "./war-list/war-list.component";
|
|
|
|
import {StatisticOverviewComponent} from "./overview/stats-overview.component";
|
|
|
|
import {WarItemComponent} from "./war-list/war-item.component";
|
2017-09-02 23:27:15 +02:00
|
|
|
import {ModuleWithProviders} from "@angular/core";
|
2017-09-14 11:47:41 +02:00
|
|
|
import {CampaignSubmitComponent} from "./campaign-submit/campaign-submit.component";
|
2017-10-01 20:24:35 +02:00
|
|
|
import {CampaignPlayerDetailComponent} from "./campaign-player-detail/campaign-player-detail.component";
|
2017-11-12 19:27:26 +01:00
|
|
|
import {WarDetailHeaderComponent} from "./war-detail-header/war-detail-header.component";
|
2017-11-12 23:32:31 +01:00
|
|
|
import {WarDetailFractionComponent} from "./war-detail-fraction/war-detail-fraction.component";
|
2017-08-06 10:42:37 +02:00
|
|
|
|
|
|
|
|
|
|
|
export const statsRoutes: Routes = [{
|
|
|
|
path: '', component: StatisticComponent,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
component: WarListComponent
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2017-08-12 21:37:31 +02:00
|
|
|
path: 'overview/:id',
|
2017-08-06 10:42:37 +02:00
|
|
|
component: StatisticOverviewComponent,
|
|
|
|
outlet: 'right'
|
|
|
|
},
|
2017-09-14 11:47:41 +02:00
|
|
|
{
|
|
|
|
path: 'new-campaign',
|
|
|
|
component: CampaignSubmitComponent,
|
|
|
|
outlet: 'right'
|
|
|
|
},
|
2017-08-06 10:42:37 +02:00
|
|
|
{
|
|
|
|
path: 'new',
|
|
|
|
component: WarSubmitComponent,
|
|
|
|
outlet: 'right'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'war/:id',
|
2017-11-12 19:27:26 +01:00
|
|
|
component: WarDetailHeaderComponent,
|
2017-08-06 10:42:37 +02:00
|
|
|
outlet: 'right'
|
2017-10-01 20:24:35 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'campaign-player/:id/:playerName',
|
|
|
|
component: CampaignPlayerDetailComponent,
|
|
|
|
outlet: 'right'
|
|
|
|
},];
|
2017-08-06 10:42:37 +02:00
|
|
|
|
2017-09-02 23:27:15 +02:00
|
|
|
export const statsRouterModule: ModuleWithProviders = RouterModule.forChild(statsRoutes);
|
|
|
|
|
2017-09-14 11:47:41 +02:00
|
|
|
export const statsRoutingComponents = [StatisticComponent, StatisticOverviewComponent, CampaignSubmitComponent,
|
2017-11-12 23:32:31 +01:00
|
|
|
WarListComponent, WarSubmitComponent, WarDetailHeaderComponent, WarDetailComponent, WarDetailFractionComponent,
|
|
|
|
CampaignPlayerDetailComponent, WarItemComponent];
|
2017-08-06 10:42:37 +02:00
|
|
|
|