refactor package structure for statistics

pull/34/head
HardiReady 2018-04-29 10:07:20 +02:00
parent 20f92ce1e9
commit 5f1686c64e
28 changed files with 42 additions and 42 deletions

View File

@ -1,14 +1,14 @@
import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core'; import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
import {CampaignPlayer} from '../../models/model-interfaces'; import {CampaignPlayer} from '../../../models/model-interfaces';
import {PlayerService} from '../../services/logs/player.service'; import {PlayerService} from '../../../services/logs/player.service';
import {ChartUtils} from '../../utils/chart-utils'; import {ChartUtils} from '../../../utils/chart-utils';
@Component({ @Component({
selector: 'campaign-player-detail', selector: 'campaign-player-detail',
templateUrl: './campaign-player-detail.component.html', templateUrl: './campaign-player-detail.component.html',
styleUrls: ['./campaign-player-detail.component.css', '../../style/list-entry.css', styleUrls: ['./campaign-player-detail.component.css', '../../../style/list-entry.css',
'../../style/hide-scrollbar.css', '../../style/overview.css'] '../../../style/hide-scrollbar.css', '../../../style/overview.css']
}) })
export class CampaignPlayerDetailComponent implements OnInit { export class CampaignPlayerDetailComponent implements OnInit {

View File

@ -2,14 +2,14 @@ import {Component, ViewChild} from '@angular/core';
import {ActivatedRoute, Router} from '@angular/router'; import {ActivatedRoute, Router} from '@angular/router';
import {NgForm} from '@angular/forms'; import {NgForm} from '@angular/forms';
import {Subscription} from 'rxjs/Subscription'; import {Subscription} from 'rxjs/Subscription';
import {Campaign} from '../../models/model-interfaces'; import {Campaign} from '../../../models/model-interfaces';
import {CampaignService} from '../../services/logs/campaign.service'; import {CampaignService} from '../../../services/logs/campaign.service';
@Component({ @Component({
selector: 'campaign-submit', selector: 'campaign-submit',
templateUrl: './campaign-submit.component.html', 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 { export class CampaignSubmitComponent {

View File

@ -1,17 +1,17 @@
import {Component, Input, OnInit} from '@angular/core'; import {Component, Input, OnInit} from '@angular/core';
import {ActivatedRoute} from '@angular/router'; import {ActivatedRoute} from '@angular/router';
import {PlayerService} from '../../services/logs/player.service'; import {PlayerService} from '../../../services/logs/player.service';
import {CampaignService} from '../../services/logs/campaign.service'; import {CampaignService} from '../../../services/logs/campaign.service';
import {Fraction} from '../../utils/fraction.enum'; import {Fraction} from '../../../utils/fraction.enum';
import {FormControl} from '@angular/forms'; import {FormControl} from '@angular/forms';
import {Observable} from 'rxjs/Observable'; import {Observable} from 'rxjs/Observable';
import {Player} from '../../models/model-interfaces'; import {Player} from '../../../models/model-interfaces';
@Component({ @Component({
selector: 'stats-highscore', selector: 'stats-highscore',
templateUrl: './highscore.component.html', 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 { export class StatisticHighScoreComponent implements OnInit {

View File

@ -1,14 +1,14 @@
import {Component, Input, OnInit} from '@angular/core'; import {Component, Input, OnInit} from '@angular/core';
import {ActivatedRoute} from '@angular/router'; import {ActivatedRoute} from '@angular/router';
import {CampaignService} from '../../services/logs/campaign.service'; import {CampaignService} from '../../../services/logs/campaign.service';
import {ChartUtils} from '../../utils/chart-utils'; import {ChartUtils} from '../../../utils/chart-utils';
import {Fraction} from '../../utils/fraction.enum'; import {Fraction} from '../../../utils/fraction.enum';
@Component({ @Component({
selector: 'stats-overview', selector: 'stats-overview',
templateUrl: './stats-overview.component.html', 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 { export class StatisticOverviewComponent implements OnInit {

View File

@ -1,16 +1,16 @@
import {RouterModule, Routes} from '@angular/router'; import {RouterModule, Routes} from '@angular/router';
import {StatisticComponent} from './stats.component'; import {StatisticComponent} from './stats.component';
import {WarListComponent} from './war-list/war-list.component'; import {WarListComponent} from './war/war-list/war-list.component';
import {StatisticOverviewComponent} from './overview/stats-overview.component'; import {StatisticOverviewComponent} from './campaign/overview/stats-overview.component';
import {WarItemComponent} from './war-list/war-item.component'; import {WarItemComponent} from './war/war-list/war-item.component';
import {ModuleWithProviders} from '@angular/core'; import {ModuleWithProviders} from '@angular/core';
import {CampaignSubmitComponent} from './campaign-submit/campaign-submit.component'; import {CampaignSubmitComponent} from './campaign/campaign-submit/campaign-submit.component';
import {CampaignPlayerDetailComponent} from './campaign-player-detail/campaign-player-detail.component'; import {CampaignPlayerDetailComponent} from './campaign/campaign-player-detail/campaign-player-detail.component';
import {WarDetailComponent} from './war-detail/war-detail.component'; import {WarDetailComponent} from './war/war-detail/war-detail.component';
import {ScoreboardComponent} from './war-detail/scoreboard/scoreboard.component'; import {ScoreboardComponent} from './war/scoreboard/scoreboard.component';
import {WarSubmitComponent} from './war-submit/war-submit.component'; import {WarSubmitComponent} from './war-submit/war-submit.component';
import {FractionStatsComponent} from './war-detail/fraction-stats/fraction-stats.component'; import {FractionStatsComponent} from './war/fraction-stats/fraction-stats.component';
import {StatisticHighScoreComponent} from './highscore/highscore.component'; import {StatisticHighScoreComponent} from './campaign/highscore/highscore.component';
export const statsRoutes: Routes = [{ export const statsRoutes: Routes = [{

View File

@ -1,17 +1,17 @@
import {Component, OnInit, ViewChild} from '@angular/core'; import {Component, OnInit, ViewChild} from '@angular/core';
import {ActivatedRoute} from '@angular/router'; import {ActivatedRoute} from '@angular/router';
import {WarService} from '../../services/logs/war.service'; import {WarService} from '../../../services/logs/war.service';
import {War} from '../../models/model-interfaces'; import {War} from '../../../models/model-interfaces';
import {ChartUtils} from '../../utils/chart-utils'; import {ChartUtils} from '../../../utils/chart-utils';
import {Fraction} from '../../utils/fraction.enum'; import {Fraction} from '../../../utils/fraction.enum';
import {LogsService} from '../../services/logs/logs.service'; import {LogsService} from '../../../services/logs/logs.service';
import {ScoreboardComponent} from './scoreboard/scoreboard.component'; import {ScoreboardComponent} from '../scoreboard/scoreboard.component';
@Component({ @Component({
selector: 'war-detail', selector: 'war-detail',
templateUrl: './war-detail.component.html', 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 { export class WarDetailComponent implements OnInit {

View File

@ -1,11 +1,11 @@
import {ChangeDetectionStrategy, Component, EventEmitter, Input, OnInit, Output} from '@angular/core'; import {ChangeDetectionStrategy, Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
import {War} from '../../models/model-interfaces'; import {War} from '../../../models/model-interfaces';
import {LoginService} from '../../services/app-user-service/login-service'; import {LoginService} from '../../../services/app-user-service/login-service';
@Component({ @Component({
selector: 'pjm-war-item', selector: 'pjm-war-item',
templateUrl: './war-item.component.html', 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 changeDetection: ChangeDetectionStrategy.OnPush
}) })
export class WarItemComponent implements OnInit { export class WarItemComponent implements OnInit {

View File

@ -1,15 +1,15 @@
import {Component, OnInit} from '@angular/core'; import {Component, OnInit} from '@angular/core';
import {ActivatedRoute, Router} from '@angular/router'; import {ActivatedRoute, Router} from '@angular/router';
import {Campaign, War} from '../../models/model-interfaces'; import {Campaign, War} from '../../../models/model-interfaces';
import {WarService} from '../../services/logs/war.service'; import {WarService} from '../../../services/logs/war.service';
import {LoginService} from '../../services/app-user-service/login-service'; import {LoginService} from '../../../services/app-user-service/login-service';
import {CampaignService} from '../../services/logs/campaign.service'; import {CampaignService} from '../../../services/logs/campaign.service';
import {RouteConfig} from '../../app.config'; import {RouteConfig} from '../../../app.config';
@Component({ @Component({
selector: 'war-list', selector: 'war-list',
templateUrl: './war-list.component.html', 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 { export class WarListComponent implements OnInit {