From 8c37b7509eabcd6b2a1a5fa96eb553bd28e19aea Mon Sep 17 00:00:00 2001 From: "fabio.formosa" Date: Sat, 4 May 2019 16:31:23 +0200 Subject: [PATCH] removed unused components --- .../src/app/app.component.spec.ts | 2 -- quartz-manager-frontend/src/app/app.module.ts | 2 -- .../src/app/login/login.component.spec.ts | 1 - .../src/app/manager/manager.component.html | 8 ++++---- .../src/app/manager/manager.component.ts | 3 --- .../src/app/service/config.service.ts | 6 ------ .../src/app/service/foo.service.ts | 18 ------------------ .../src/app/service/index.ts | 1 - .../src/app/service/scheduler.service.ts | 5 ----- 9 files changed, 4 insertions(+), 42 deletions(-) delete mode 100644 quartz-manager-frontend/src/app/service/foo.service.ts diff --git a/quartz-manager-frontend/src/app/app.component.spec.ts b/quartz-manager-frontend/src/app/app.component.spec.ts index 9957006..ccf3e66 100644 --- a/quartz-manager-frontend/src/app/app.component.spec.ts +++ b/quartz-manager-frontend/src/app/app.component.spec.ts @@ -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] diff --git a/quartz-manager-frontend/src/app/app.module.ts b/quartz-manager-frontend/src/app/app.module.ts index 0ac3ae6..d60c593 100644 --- a/quartz-manager-frontend/src/app/app.module.ts +++ b/quartz-manager-frontend/src/app/app.module.ts @@ -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, diff --git a/quartz-manager-frontend/src/app/login/login.component.spec.ts b/quartz-manager-frontend/src/app/login/login.component.spec.ts index c8e8502..60e4baf 100644 --- a/quartz-manager-frontend/src/app/login/login.component.spec.ts +++ b/quartz-manager-frontend/src/app/login/login.component.spec.ts @@ -9,7 +9,6 @@ import { ApiService, AuthService, UserService, - FooService, ConfigService } from '../service'; diff --git a/quartz-manager-frontend/src/app/manager/manager.component.html b/quartz-manager-frontend/src/app/manager/manager.component.html index 282f345..4375ae4 100644 --- a/quartz-manager-frontend/src/app/manager/manager.component.html +++ b/quartz-manager-frontend/src/app/manager/manager.component.html @@ -9,10 +9,10 @@
-
-
-
-
+
+
+
+
diff --git a/quartz-manager-frontend/src/app/manager/manager.component.ts b/quartz-manager-frontend/src/app/manager/manager.component.ts index 8cea7f1..c56b0ea 100644 --- a/quartz-manager-frontend/src/app/manager/manager.component.ts +++ b/quartz-manager-frontend/src/app/manager/manager.component.ts @@ -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 ) { } diff --git a/quartz-manager-frontend/src/app/service/config.service.ts b/quartz-manager-frontend/src/app/service/config.service.ts index 7de5c30..cced1e4 100644 --- a/quartz-manager-frontend/src/app/service/config.service.ts +++ b/quartz-manager-frontend/src/app/service/config.service.ts @@ -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; } diff --git a/quartz-manager-frontend/src/app/service/foo.service.ts b/quartz-manager-frontend/src/app/service/foo.service.ts deleted file mode 100644 index fc926f8..0000000 --- a/quartz-manager-frontend/src/app/service/foo.service.ts +++ /dev/null @@ -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); - } - -} diff --git a/quartz-manager-frontend/src/app/service/index.ts b/quartz-manager-frontend/src/app/service/index.ts index 9003780..db5951e 100644 --- a/quartz-manager-frontend/src/app/service/index.ts +++ b/quartz-manager-frontend/src/app/service/index.ts @@ -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'; diff --git a/quartz-manager-frontend/src/app/service/scheduler.service.ts b/quartz-manager-frontend/src/app/service/scheduler.service.ts index 0269833..2da0a1f 100644 --- a/quartz-manager-frontend/src/app/service/scheduler.service.ts +++ b/quartz-manager-frontend/src/app/service/scheduler.service.ts @@ -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); - // } - }