mirror of
https://github.com/fabioformosa/quartz-manager.git
synced 2026-01-04 08:33:17 +09:00
removed unused components
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -9,7 +9,6 @@ import {
|
||||
ApiService,
|
||||
AuthService,
|
||||
UserService,
|
||||
FooService,
|
||||
ConfigService
|
||||
} from '../service';
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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
|
||||
) { }
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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';
|
||||
|
||||
@@ -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);
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user