opt-cc/static/src/app/statistic/stats.routing.ts

67 lines
2.2 KiB
TypeScript
Raw Normal View History

2018-03-07 11:56:50 +01:00
import {RouterModule, Routes} from '@angular/router';
import {StatisticComponent} from './stats.component';
import {WarListComponent} from './war/war-list/war-list.component';
import {StatisticOverviewComponent} from './campaign/overview/stats-overview.component';
import {WarItemComponent} from './war/war-list/war-item.component';
2018-03-07 11:56:50 +01:00
import {ModuleWithProviders} from '@angular/core';
import {CampaignSubmitComponent} from './campaign/campaign-submit/campaign-submit.component';
import {CampaignPlayerDetailComponent} from './campaign/campaign-player-detail/campaign-player-detail.component';
import {ScoreboardComponent} from './war/scoreboard/scoreboard.component';
import {WarSubmitComponent} from './war/war-submit/war-submit.component';
import {FractionStatsComponent} from './war/fraction-stats/fraction-stats.component';
import {StatisticHighScoreComponent} from './campaign/highscore/highscore.component';
import {WarHeaderComponent} from "./war/war-header/war-header.component";
export const statsRoutes: Routes = [{
path: '', component: StatisticComponent,
children: [
{
path: '',
component: WarListComponent
}
]
},
{
2017-08-12 21:37:31 +02:00
path: 'overview/:id',
component: StatisticOverviewComponent,
outlet: 'right'
},
2017-12-23 10:59:27 +01:00
{
path: 'highscore/:id',
component: StatisticHighScoreComponent,
outlet: 'right'
},
2017-09-14 11:47:41 +02:00
{
2018-04-28 10:44:52 +02:00
path: 'campaign',
component: CampaignSubmitComponent,
outlet: 'right'
},
{
path: 'campaign/:id',
2017-09-14 11:47:41 +02:00
component: CampaignSubmitComponent,
outlet: 'right'
},
{
path: 'new',
component: WarSubmitComponent,
outlet: 'right'
},
{
path: 'war/:id',
component: WarHeaderComponent,
outlet: 'right'
},
{
path: 'campaign-player/:id/:playerName',
component: CampaignPlayerDetailComponent,
outlet: 'right'
2018-03-08 09:44:35 +01:00
}];
2017-09-02 23:27:15 +02:00
export const statsRouterModule: ModuleWithProviders = RouterModule.forChild(statsRoutes);
2017-12-23 10:59:27 +01:00
export const statsRoutingComponents = [StatisticComponent, StatisticOverviewComponent, StatisticHighScoreComponent,
CampaignSubmitComponent, WarListComponent, WarSubmitComponent, WarHeaderComponent, ScoreboardComponent,
2017-12-23 10:59:27 +01:00
FractionStatsComponent, CampaignPlayerDetailComponent, WarItemComponent];