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

62 lines
2.0 KiB
TypeScript
Raw Normal View History

2017-09-02 23:27:15 +02:00
import {RouterModule, Routes} from "@angular/router";
import {StatisticComponent} from "./stats.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";
import {CampaignPlayerDetailComponent} from "./campaign-player-detail/campaign-player-detail.component";
import {WarDetailComponent} from "./war-detail/war-detail.component";
import {ScoreboardComponent} from "./war-detail/scoreboard/scoreboard.component";
import {WarSubmitComponent} from "./war-submit/war-submit.component";
import {FractionStatsComponent} from "./war-detail/fraction-stats/fraction-stats.component";
2017-12-23 10:59:27 +01:00
import {StatisticHighScoreComponent} from "./highscore/highscore.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
{
path: 'new-campaign',
component: CampaignSubmitComponent,
outlet: 'right'
},
{
path: 'new',
component: WarSubmitComponent,
outlet: 'right'
},
{
path: 'war/:id',
component: WarDetailComponent,
outlet: 'right'
},
{
path: 'campaign-player/:id/:playerName',
component: CampaignPlayerDetailComponent,
outlet: 'right'
},];
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, WarDetailComponent, ScoreboardComponent,
FractionStatsComponent, CampaignPlayerDetailComponent, WarItemComponent];