removed unused components

This commit is contained in:
fabio.formosa
2019-05-04 16:31:23 +02:00
parent f500844cbe
commit 8c37b7509e
9 changed files with 4 additions and 42 deletions

View File

@@ -23,7 +23,6 @@ import {
ApiService,
AuthService,
UserService,
FooService,
ConfigService
} from './service';
@@ -48,7 +47,6 @@ describe('AppComponent', () => {
},
AuthService,
UserService,
FooService,
ConfigService
],
schemas: [CUSTOM_ELEMENTS_SCHEMA]

View File

@@ -41,7 +41,6 @@ import {
ApiService,
AuthService,
UserService,
FooService,
SchedulerService,
ConfigService,
ProgressWebsocketService,
@@ -119,7 +118,6 @@ export function initUserFactory(userService: UserService) {
LoginGuard,
GuestGuard,
AdminGuard,
FooService,
SchedulerService,
ProgressWebsocketService,
LogsWebsocketService,

View File

@@ -9,7 +9,6 @@ import {
ApiService,
AuthService,
UserService,
FooService,
ConfigService
} from '../service';

View File

@@ -9,10 +9,10 @@
</div>
<div fxFlex="1 1 70%" style="margin-left: 20px">
<div fxLayout="column">
<div fxFlex="1 1 100%"><progress-panel></progress-panel></div>
<br/>
<div fxFlex="1 1 100%"><logs-panel></logs-panel></div>
<div fxLayout="column">
<div fxFlex="1 1 100%"><progress-panel></progress-panel></div>
<br/>
<div fxFlex="1 1 100%"><logs-panel></logs-panel></div>
</div>
</div>

View File

@@ -1,6 +1,5 @@
import { Component, OnInit } from '@angular/core';
import {
FooService,
ConfigService,
UserService
} from '../service';
@@ -12,12 +11,10 @@ import {
})
export class ManagerComponent implements OnInit {
fooResponse = {};
whoamIResponse = {};
allUserResponse = {};
constructor(
private config: ConfigService,
private fooService: FooService,
private userService: UserService
) { }

View File

@@ -22,8 +22,6 @@ export class ConfigService {
private _reset_credentials_url = this._user_url + '/reset-credentials';
private _foo_url = this._api_url + '/foo';
private _signup_url = this._api_url + '/signup';
get reset_credentials_url(): string {
@@ -54,10 +52,6 @@ export class ConfigService {
return this._change_password_url;
}
get foo_url(): string {
return this._foo_url;
}
get signup_url():string {
return this._signup_url;
}

View File

@@ -1,18 +0,0 @@
import { Injectable } from '@angular/core';
import { Headers } from '@angular/http';
import { ApiService } from './api.service';
import { ConfigService } from './config.service';
@Injectable()
export class FooService {
constructor(
private apiService: ApiService,
private config: ConfigService
) { }
getFoo() {
return this.apiService.get(this.config.foo_url);
}
}

View File

@@ -2,7 +2,6 @@ export * from './api.service';
export * from './user.service';
export * from './config.service';
export * from './auth.service';
export * from './foo.service';
export * from './scheduler.service';
export * from './websocket.service';
export * from './progress.websocket.service';

View File

@@ -36,9 +36,4 @@ export class SchedulerService {
updateConfig = (config: Object) => {
return this.apiService.post('/quartz-manager/scheduler/config', config)
}
// getFoo() {
// return this.apiService.get(this.config.foo_url);
// }
}