From 16fa17a2d4829d9f29cd62a567469b6aea99096f Mon Sep 17 00:00:00 2001 From: HardiReady Date: Wed, 10 Oct 2018 00:05:32 +0200 Subject: [PATCH] Rename custom HttpClient to HttpGateway (CC-63) --- static/src/app/app.module.ts | 2 +- static/src/app/services/app-user-service/app-user.service.ts | 2 +- static/src/app/services/army-management/awarding.service.ts | 2 +- static/src/app/services/army-management/decoration.service.ts | 2 +- static/src/app/services/army-management/promotion.service.ts | 2 +- static/src/app/services/army-management/rank.service.ts | 2 +- static/src/app/services/army-management/squad.service.ts | 2 +- static/src/app/services/army-management/user.service.ts | 2 +- static/src/app/services/{http-client.ts => http-gateway.ts} | 0 static/src/app/services/logs/campaign.service.ts | 2 +- static/src/app/services/logs/logs.service.ts | 2 +- static/src/app/services/logs/player.service.ts | 2 +- static/src/app/services/logs/war.service.ts | 2 +- 13 files changed, 12 insertions(+), 12 deletions(-) rename static/src/app/services/{http-client.ts => http-gateway.ts} (100%) diff --git a/static/src/app/app.module.ts b/static/src/app/app.module.ts index e214cf7..d8a986e 100644 --- a/static/src/app/app.module.ts +++ b/static/src/app/app.module.ts @@ -22,7 +22,7 @@ import {HttpClientModule} from '@angular/common/http'; import {SpinnerService} from './services/user-interface/spinner/spinner.service'; import {MatSelectModule, MatSnackBarModule} from '@angular/material'; import {SettingsService} from './services/settings.service'; -import {HttpGateway} from './services/http-client'; +import {HttpGateway} from './services/http-gateway'; @NgModule({ imports: [ diff --git a/static/src/app/services/app-user-service/app-user.service.ts b/static/src/app/services/app-user-service/app-user.service.ts index a405d95..df173e2 100644 --- a/static/src/app/services/app-user-service/app-user.service.ts +++ b/static/src/app/services/app-user-service/app-user.service.ts @@ -3,7 +3,7 @@ import {AppUser} from '../../models/model-interfaces'; import {Observable} from 'rxjs/Observable'; import {EDIT, LOAD, REMOVE, Store} from '../stores/generic-store'; import {AppConfig} from '../../app.config'; -import {HttpGateway} from '../http-client'; +import {HttpGateway} from '../http-gateway'; @Injectable() export class AppUserService { diff --git a/static/src/app/services/army-management/awarding.service.ts b/static/src/app/services/army-management/awarding.service.ts index 9c4af22..ece3615 100644 --- a/static/src/app/services/army-management/awarding.service.ts +++ b/static/src/app/services/army-management/awarding.service.ts @@ -1,7 +1,7 @@ import {Injectable} from '@angular/core'; import {Award} from '../../models/model-interfaces'; import {AppConfig} from '../../app.config'; -import {HttpGateway} from '../http-client'; +import {HttpGateway} from '../http-gateway'; @Injectable() export class AwardingService { diff --git a/static/src/app/services/army-management/decoration.service.ts b/static/src/app/services/army-management/decoration.service.ts index 0856e04..39ee0bf 100644 --- a/static/src/app/services/army-management/decoration.service.ts +++ b/static/src/app/services/army-management/decoration.service.ts @@ -4,7 +4,7 @@ import {RequestMethod, RequestOptions, URLSearchParams} from '@angular/http'; import {Observable} from 'rxjs/Observable'; import {ADD, EDIT, LOAD, REMOVE, Store} from '../stores/generic-store'; import {AppConfig} from '../../app.config'; -import {HttpGateway} from '../http-client'; +import {HttpGateway} from '../http-gateway'; @Injectable() export class DecorationService { diff --git a/static/src/app/services/army-management/promotion.service.ts b/static/src/app/services/army-management/promotion.service.ts index bfb3ed5..aebbf14 100644 --- a/static/src/app/services/army-management/promotion.service.ts +++ b/static/src/app/services/army-management/promotion.service.ts @@ -1,7 +1,7 @@ import {Injectable} from '@angular/core'; import {AppConfig} from '../../app.config'; import {Promotion} from '../../models/model-interfaces'; -import {HttpGateway} from '../http-client'; +import {HttpGateway} from '../http-gateway'; @Injectable() export class PromotionService { diff --git a/static/src/app/services/army-management/rank.service.ts b/static/src/app/services/army-management/rank.service.ts index 7a3321f..8ff6b7d 100644 --- a/static/src/app/services/army-management/rank.service.ts +++ b/static/src/app/services/army-management/rank.service.ts @@ -4,7 +4,7 @@ import {RequestMethod, RequestOptions, URLSearchParams} from '@angular/http'; import {Observable} from 'rxjs/Observable'; import {ADD, EDIT, LOAD, REMOVE, Store} from '../stores/generic-store'; import {AppConfig} from '../../app.config'; -import {HttpGateway} from '../http-client'; +import {HttpGateway} from '../http-gateway'; @Injectable() export class RankService { diff --git a/static/src/app/services/army-management/squad.service.ts b/static/src/app/services/army-management/squad.service.ts index e40e0ca..b801295 100644 --- a/static/src/app/services/army-management/squad.service.ts +++ b/static/src/app/services/army-management/squad.service.ts @@ -4,7 +4,7 @@ import {RequestMethod, RequestOptions, URLSearchParams} from '@angular/http'; import {Observable} from 'rxjs/Observable'; import {ADD, EDIT, LOAD, REMOVE, Store} from '../stores/generic-store'; import {AppConfig} from '../../app.config'; -import {HttpGateway} from '../http-client'; +import {HttpGateway} from '../http-gateway'; @Injectable() export class SquadService { diff --git a/static/src/app/services/army-management/user.service.ts b/static/src/app/services/army-management/user.service.ts index a797854..34e88fb 100644 --- a/static/src/app/services/army-management/user.service.ts +++ b/static/src/app/services/army-management/user.service.ts @@ -4,7 +4,7 @@ import {URLSearchParams} from '@angular/http'; import {Observable} from 'rxjs/Observable'; import {ADD, EDIT, LOAD, REMOVE, Store} from '../stores/generic-store'; import {AppConfig} from '../../app.config'; -import {HttpGateway} from '../http-client'; +import {HttpGateway} from '../http-gateway'; @Injectable() export class UserService { diff --git a/static/src/app/services/http-client.ts b/static/src/app/services/http-gateway.ts similarity index 100% rename from static/src/app/services/http-client.ts rename to static/src/app/services/http-gateway.ts diff --git a/static/src/app/services/logs/campaign.service.ts b/static/src/app/services/logs/campaign.service.ts index 5b20a80..b7c1ea2 100644 --- a/static/src/app/services/logs/campaign.service.ts +++ b/static/src/app/services/logs/campaign.service.ts @@ -4,7 +4,7 @@ import {AppConfig} from '../../app.config'; import {ADD, EDIT, LOAD, REMOVE, Store} from '../stores/generic-store'; import {Observable} from 'rxjs'; import {RequestMethod, RequestOptions} from '@angular/http'; -import {HttpGateway} from '../http-client'; +import {HttpGateway} from '../http-gateway'; @Injectable() export class CampaignService { diff --git a/static/src/app/services/logs/logs.service.ts b/static/src/app/services/logs/logs.service.ts index 332c399..de2e356 100644 --- a/static/src/app/services/logs/logs.service.ts +++ b/static/src/app/services/logs/logs.service.ts @@ -1,7 +1,7 @@ import {Injectable} from '@angular/core'; import {AppConfig} from '../../app.config'; import {URLSearchParams} from '@angular/http'; -import {HttpGateway} from '../http-client'; +import {HttpGateway} from '../http-gateway'; @Injectable() export class LogsService { diff --git a/static/src/app/services/logs/player.service.ts b/static/src/app/services/logs/player.service.ts index 7013171..8a232fc 100644 --- a/static/src/app/services/logs/player.service.ts +++ b/static/src/app/services/logs/player.service.ts @@ -1,6 +1,6 @@ import {Injectable} from '@angular/core'; import {AppConfig} from '../../app.config'; -import {HttpGateway} from '../http-client'; +import {HttpGateway} from '../http-gateway'; @Injectable() export class PlayerService { diff --git a/static/src/app/services/logs/war.service.ts b/static/src/app/services/logs/war.service.ts index a0280d3..8fc307c 100644 --- a/static/src/app/services/logs/war.service.ts +++ b/static/src/app/services/logs/war.service.ts @@ -3,7 +3,7 @@ import {War} from '../../models/model-interfaces'; import {AppConfig} from '../../app.config'; import {ADD, EDIT, LOAD, REMOVE, Store} from '../stores/generic-store'; import {Observable} from 'rxjs'; -import {HttpGateway} from '../http-client'; +import {HttpGateway} from '../http-gateway'; @Injectable() export class WarService {