refactor package structure for statistics
parent
20f92ce1e9
commit
5f1686c64e
|
@ -1,14 +1,14 @@
|
|||
import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
|
||||
import {CampaignPlayer} from '../../models/model-interfaces';
|
||||
import {PlayerService} from '../../services/logs/player.service';
|
||||
import {ChartUtils} from '../../utils/chart-utils';
|
||||
import {CampaignPlayer} from '../../../models/model-interfaces';
|
||||
import {PlayerService} from '../../../services/logs/player.service';
|
||||
import {ChartUtils} from '../../../utils/chart-utils';
|
||||
|
||||
|
||||
@Component({
|
||||
selector: 'campaign-player-detail',
|
||||
templateUrl: './campaign-player-detail.component.html',
|
||||
styleUrls: ['./campaign-player-detail.component.css', '../../style/list-entry.css',
|
||||
'../../style/hide-scrollbar.css', '../../style/overview.css']
|
||||
styleUrls: ['./campaign-player-detail.component.css', '../../../style/list-entry.css',
|
||||
'../../../style/hide-scrollbar.css', '../../../style/overview.css']
|
||||
})
|
||||
export class CampaignPlayerDetailComponent implements OnInit {
|
||||
|
|
@ -2,14 +2,14 @@ import {Component, ViewChild} from '@angular/core';
|
|||
import {ActivatedRoute, Router} from '@angular/router';
|
||||
import {NgForm} from '@angular/forms';
|
||||
import {Subscription} from 'rxjs/Subscription';
|
||||
import {Campaign} from '../../models/model-interfaces';
|
||||
import {CampaignService} from '../../services/logs/campaign.service';
|
||||
import {Campaign} from '../../../models/model-interfaces';
|
||||
import {CampaignService} from '../../../services/logs/campaign.service';
|
||||
|
||||
|
||||
@Component({
|
||||
selector: 'campaign-submit',
|
||||
templateUrl: './campaign-submit.component.html',
|
||||
styleUrls: ['./campaign-submit.component.css', '../../style/entry-form.css', '../../style/overview.css']
|
||||
styleUrls: ['./campaign-submit.component.css', '../../../style/entry-form.css', '../../../style/overview.css']
|
||||
})
|
||||
export class CampaignSubmitComponent {
|
||||
|
|
@ -1,17 +1,17 @@
|
|||
import {Component, Input, OnInit} from '@angular/core';
|
||||
import {ActivatedRoute} from '@angular/router';
|
||||
import {PlayerService} from '../../services/logs/player.service';
|
||||
import {CampaignService} from '../../services/logs/campaign.service';
|
||||
import {Fraction} from '../../utils/fraction.enum';
|
||||
import {PlayerService} from '../../../services/logs/player.service';
|
||||
import {CampaignService} from '../../../services/logs/campaign.service';
|
||||
import {Fraction} from '../../../utils/fraction.enum';
|
||||
import {FormControl} from '@angular/forms';
|
||||
import {Observable} from 'rxjs/Observable';
|
||||
import {Player} from '../../models/model-interfaces';
|
||||
import {Player} from '../../../models/model-interfaces';
|
||||
|
||||
|
||||
@Component({
|
||||
selector: 'stats-highscore',
|
||||
templateUrl: './highscore.component.html',
|
||||
styleUrls: ['./highscore.component.css', '../../style/list-entry.css', '../../style/overview.css']
|
||||
styleUrls: ['./highscore.component.css', '../../../style/list-entry.css', '../../../style/overview.css']
|
||||
})
|
||||
export class StatisticHighScoreComponent implements OnInit {
|
||||
|
|
@ -1,14 +1,14 @@
|
|||
import {Component, Input, OnInit} from '@angular/core';
|
||||
import {ActivatedRoute} from '@angular/router';
|
||||
import {CampaignService} from '../../services/logs/campaign.service';
|
||||
import {ChartUtils} from '../../utils/chart-utils';
|
||||
import {Fraction} from '../../utils/fraction.enum';
|
||||
import {CampaignService} from '../../../services/logs/campaign.service';
|
||||
import {ChartUtils} from '../../../utils/chart-utils';
|
||||
import {Fraction} from '../../../utils/fraction.enum';
|
||||
|
||||
|
||||
@Component({
|
||||
selector: 'stats-overview',
|
||||
templateUrl: './stats-overview.component.html',
|
||||
styleUrls: ['./stats-overview.component.css', '../../style/list-entry.css', '../../style/overview.css']
|
||||
styleUrls: ['./stats-overview.component.css', '../../../style/list-entry.css', '../../../style/overview.css']
|
||||
})
|
||||
export class StatisticOverviewComponent implements OnInit {
|
||||
|
|
@ -1,16 +1,16 @@
|
|||
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';
|
||||
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';
|
||||
import {ModuleWithProviders} from '@angular/core';
|
||||
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 {CampaignSubmitComponent} from './campaign/campaign-submit/campaign-submit.component';
|
||||
import {CampaignPlayerDetailComponent} from './campaign/campaign-player-detail/campaign-player-detail.component';
|
||||
import {WarDetailComponent} from './war/war-detail/war-detail.component';
|
||||
import {ScoreboardComponent} from './war/scoreboard/scoreboard.component';
|
||||
import {WarSubmitComponent} from './war-submit/war-submit.component';
|
||||
import {FractionStatsComponent} from './war-detail/fraction-stats/fraction-stats.component';
|
||||
import {StatisticHighScoreComponent} from './highscore/highscore.component';
|
||||
import {FractionStatsComponent} from './war/fraction-stats/fraction-stats.component';
|
||||
import {StatisticHighScoreComponent} from './campaign/highscore/highscore.component';
|
||||
|
||||
|
||||
export const statsRoutes: Routes = [{
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
import {Component, OnInit, ViewChild} from '@angular/core';
|
||||
import {ActivatedRoute} from '@angular/router';
|
||||
import {WarService} from '../../services/logs/war.service';
|
||||
import {War} from '../../models/model-interfaces';
|
||||
import {ChartUtils} from '../../utils/chart-utils';
|
||||
import {Fraction} from '../../utils/fraction.enum';
|
||||
import {LogsService} from '../../services/logs/logs.service';
|
||||
import {ScoreboardComponent} from './scoreboard/scoreboard.component';
|
||||
import {WarService} from '../../../services/logs/war.service';
|
||||
import {War} from '../../../models/model-interfaces';
|
||||
import {ChartUtils} from '../../../utils/chart-utils';
|
||||
import {Fraction} from '../../../utils/fraction.enum';
|
||||
import {LogsService} from '../../../services/logs/logs.service';
|
||||
import {ScoreboardComponent} from '../scoreboard/scoreboard.component';
|
||||
|
||||
|
||||
@Component({
|
||||
selector: 'war-detail',
|
||||
templateUrl: './war-detail.component.html',
|
||||
styleUrls: ['./war-detail.component.css', '../../style/list-entry.css', '../../style/hide-scrollbar.css']
|
||||
styleUrls: ['./war-detail.component.css', '../../../style/list-entry.css', '../../../style/hide-scrollbar.css']
|
||||
})
|
||||
export class WarDetailComponent implements OnInit {
|
||||
|
|
@ -1,11 +1,11 @@
|
|||
import {ChangeDetectionStrategy, Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
|
||||
import {War} from '../../models/model-interfaces';
|
||||
import {LoginService} from '../../services/app-user-service/login-service';
|
||||
import {War} from '../../../models/model-interfaces';
|
||||
import {LoginService} from '../../../services/app-user-service/login-service';
|
||||
|
||||
@Component({
|
||||
selector: 'pjm-war-item',
|
||||
templateUrl: './war-item.component.html',
|
||||
styleUrls: ['./war-item.component.css', '../../style/list-entry.css'],
|
||||
styleUrls: ['./war-item.component.css', '../../../style/list-entry.css'],
|
||||
changeDetection: ChangeDetectionStrategy.OnPush
|
||||
})
|
||||
export class WarItemComponent implements OnInit {
|
|
@ -1,15 +1,15 @@
|
|||
import {Component, OnInit} from '@angular/core';
|
||||
import {ActivatedRoute, Router} from '@angular/router';
|
||||
import {Campaign, War} from '../../models/model-interfaces';
|
||||
import {WarService} from '../../services/logs/war.service';
|
||||
import {LoginService} from '../../services/app-user-service/login-service';
|
||||
import {CampaignService} from '../../services/logs/campaign.service';
|
||||
import {RouteConfig} from '../../app.config';
|
||||
import {Campaign, War} from '../../../models/model-interfaces';
|
||||
import {WarService} from '../../../services/logs/war.service';
|
||||
import {LoginService} from '../../../services/app-user-service/login-service';
|
||||
import {CampaignService} from '../../../services/logs/campaign.service';
|
||||
import {RouteConfig} from '../../../app.config';
|
||||
|
||||
@Component({
|
||||
selector: 'war-list',
|
||||
templateUrl: './war-list.component.html',
|
||||
styleUrls: ['./war-list.component.css', '../../style/list-entry.css', '../../style/select-list.css']
|
||||
styleUrls: ['./war-list.component.css', '../../../style/list-entry.css', '../../../style/select-list.css']
|
||||
})
|
||||
export class WarListComponent implements OnInit {
|
||||
|
Loading…
Reference in New Issue