mirror of
https://github.com/fabioformosa/quartz-manager.git
synced 2026-05-15 06:10:29 +09:00
renamed some folders
This commit is contained in:
@@ -1,14 +1,14 @@
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { Routes, RouterModule } from '@angular/router';
|
import { Routes, RouterModule } from '@angular/router';
|
||||||
import { AppComponent } from './app.component';
|
import { AppComponent } from './app.component';
|
||||||
import { LoginComponent } from './login';
|
import { LoginComponent } from './views/login';
|
||||||
import { LoginGuard } from './guard';
|
import { LoginGuard } from './guards';
|
||||||
import { GuestGuard, AdminGuard } from './guard';
|
import { GuestGuard, AdminGuard } from './guards';
|
||||||
import { NotFoundComponent } from './not-found';
|
import { NotFoundComponent } from './views/not-found';
|
||||||
import { ChangePasswordComponent } from './change-password';
|
import { ChangePasswordComponent } from './views/change-password';
|
||||||
import { ForbiddenComponent } from './forbidden';
|
import { ForbiddenComponent } from './views/forbidden';
|
||||||
|
|
||||||
import { ManagerComponent } from './manager';
|
import { ManagerComponent } from './views/manager';
|
||||||
|
|
||||||
export const routes: Routes = [
|
export const routes: Routes = [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,16 +2,16 @@ import { TestBed, async } from '@angular/core/testing';
|
|||||||
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||||
import { RouterTestingModule } from '@angular/router/testing';
|
import { RouterTestingModule } from '@angular/router/testing';
|
||||||
import { AppComponent } from './app.component';
|
import { AppComponent } from './app.component';
|
||||||
import { ManagerComponent } from './manager';
|
import { ManagerComponent } from './views/manager';
|
||||||
import { LoginComponent } from './login';
|
import { LoginComponent } from './views/login';
|
||||||
import { MockApiService } from './service/mocks/api.service.mock';
|
import { MockApiService } from './services/mocks/api.service.mock';
|
||||||
|
|
||||||
import { LoginGuard } from './guard';
|
import { LoginGuard } from './guards';
|
||||||
import { NotFoundComponent } from './not-found';
|
import { NotFoundComponent } from './views/not-found';
|
||||||
import {
|
import {
|
||||||
FooterComponent,
|
FooterComponent,
|
||||||
GithubComponent,
|
GithubComponent,
|
||||||
} from './component';
|
} from './components';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
MatToolbarModule,
|
MatToolbarModule,
|
||||||
@@ -24,7 +24,7 @@ import {
|
|||||||
AuthService,
|
AuthService,
|
||||||
UserService,
|
UserService,
|
||||||
ConfigService
|
ConfigService
|
||||||
} from './service';
|
} from './services';
|
||||||
|
|
||||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||||
|
|
||||||
|
|||||||
@@ -21,11 +21,11 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|||||||
import { FlexLayoutModule } from '@angular/flex-layout';
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||||
import { AppComponent } from './app.component';
|
import { AppComponent } from './app.component';
|
||||||
import { AppRoutingModule } from './app-routing.module';
|
import { AppRoutingModule } from './app-routing.module';
|
||||||
import { ManagerComponent } from './manager';
|
import { ManagerComponent } from './views/manager';
|
||||||
import { LoginComponent } from './login';
|
import { LoginComponent } from './views/login';
|
||||||
import { LoginGuard, GuestGuard, AdminGuard } from './guard';
|
import { LoginGuard, GuestGuard, AdminGuard } from './guards';
|
||||||
import { NotFoundComponent } from './not-found';
|
import { NotFoundComponent } from './views/not-found';
|
||||||
import { AccountMenuComponent } from './component/header/account-menu/account-menu.component';
|
import { AccountMenuComponent } from './components/header/account-menu/account-menu.component';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
HeaderComponent,
|
HeaderComponent,
|
||||||
@@ -35,7 +35,7 @@ import {
|
|||||||
SchedulerControlComponent,
|
SchedulerControlComponent,
|
||||||
LogsPanelComponent,
|
LogsPanelComponent,
|
||||||
ProgressPanelComponent
|
ProgressPanelComponent
|
||||||
} from './component';
|
} from './components';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
ApiService,
|
ApiService,
|
||||||
@@ -45,9 +45,9 @@ import {
|
|||||||
ConfigService,
|
ConfigService,
|
||||||
ProgressWebsocketService,
|
ProgressWebsocketService,
|
||||||
LogsWebsocketService
|
LogsWebsocketService
|
||||||
} from './service';
|
} from './services';
|
||||||
import { ChangePasswordComponent } from './change-password/change-password.component';
|
import { ChangePasswordComponent } from './views/change-password/change-password.component';
|
||||||
import { ForbiddenComponent } from './forbidden/forbidden.component';
|
import { ForbiddenComponent } from './views/forbidden/forbidden.component';
|
||||||
|
|
||||||
export function initUserFactory(userService: UserService) {
|
export function initUserFactory(userService: UserService) {
|
||||||
return () => userService.jsessionInitUser();
|
return () => userService.jsessionInitUser();
|
||||||
|
|||||||
@@ -7,11 +7,11 @@ import {
|
|||||||
ConfigService,
|
ConfigService,
|
||||||
ApiService,
|
ApiService,
|
||||||
UserService
|
UserService
|
||||||
} from '../../../service';
|
} from '../../../services';
|
||||||
import {
|
import {
|
||||||
MockUserService,
|
MockUserService,
|
||||||
MockApiService
|
MockApiService
|
||||||
} from '../../../service/mocks';
|
} from '../../../services/mocks';
|
||||||
import { AccountMenuComponent } from './account-menu.component';
|
import { AccountMenuComponent } from './account-menu.component';
|
||||||
|
|
||||||
describe('AccountMenuComponent', () => {
|
describe('AccountMenuComponent', () => {
|
||||||
@@ -3,7 +3,7 @@ import {
|
|||||||
ConfigService,
|
ConfigService,
|
||||||
AuthService,
|
AuthService,
|
||||||
UserService
|
UserService
|
||||||
} from '../../../service';
|
} from '../../../services';
|
||||||
import { Router } from '@angular/router';
|
import { Router } from '@angular/router';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@@ -2,7 +2,7 @@ import { Component, OnInit } from '@angular/core';
|
|||||||
import {
|
import {
|
||||||
UserService,
|
UserService,
|
||||||
AuthService
|
AuthService
|
||||||
} from '../../service';
|
} from '../../services';
|
||||||
import { Router } from '@angular/router';
|
import { Router } from '@angular/router';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
|
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
|
||||||
|
|
||||||
import { LogsWebsocketService, ApiService } from '../../service';
|
import { LogsWebsocketService, ApiService } from '../../services';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core'
|
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core'
|
||||||
import { ProgressWebsocketService } from '../../service';
|
import { ProgressWebsocketService } from '../../services';
|
||||||
|
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
// import {Message} from '@stomp/stompjs';
|
// import {Message} from '@stomp/stompjs';
|
||||||
@@ -10,7 +10,7 @@ import { Observable } from 'rxjs';
|
|||||||
// import { QueueingSubject } from 'queueing-subject'
|
// import { QueueingSubject } from 'queueing-subject'
|
||||||
// import websocketConnect from 'rxjs-websockets'
|
// import websocketConnect from 'rxjs-websockets'
|
||||||
// import 'rxjs/add/operator/share'
|
// import 'rxjs/add/operator/share'
|
||||||
// import {ServerSocket} from '../../service/qz.socket.service'
|
// import {ServerSocket} from '../../services/qz.socket.service'
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'progress-panel',
|
selector: 'progress-panel',
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
|
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
|
||||||
import { SchedulerService } from '../../service';
|
import { SchedulerService } from '../../services';
|
||||||
import { SchedulerConfig } from '../../model/schedulerConfig.model'
|
import { SchedulerConfig } from '../../model/schedulerConfig.model'
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
|
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
|
||||||
import { UserService, SchedulerService } from '../../service';
|
import { UserService, SchedulerService } from '../../services';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'scheduler-control',
|
selector: 'scheduler-control',
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
import { TestBed, async, inject } from '@angular/core/testing';
|
import { TestBed, async, inject } from '@angular/core/testing';
|
||||||
import { Router } from '@angular/router';
|
import { Router } from '@angular/router';
|
||||||
import { UserService } from '../service';
|
import { UserService } from '../services';
|
||||||
import { AdminGuard } from './admin.guard';
|
import { AdminGuard } from './admin.guard';
|
||||||
import { MockUserService } from '../service/mocks';
|
import { MockUserService } from '../services/mocks';
|
||||||
|
|
||||||
export class RouterStub {
|
export class RouterStub {
|
||||||
navigate(commands?: any[], extras?: any) {}
|
navigate(commands?: any[], extras?: any) {}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { Router, CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
|
import { Router, CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
|
||||||
import { UserService } from '../service';
|
import { UserService } from '../services';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { Router, CanActivate } from '@angular/router';
|
import { Router, CanActivate } from '@angular/router';
|
||||||
import { UserService } from '../service';
|
import { UserService } from '../services';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { Router, CanActivate } from '@angular/router';
|
import { Router, CanActivate } from '@angular/router';
|
||||||
import { UserService } from '../service';
|
import { UserService } from '../services';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
@@ -7,8 +7,8 @@ import {
|
|||||||
AuthService,
|
AuthService,
|
||||||
UserService,
|
UserService,
|
||||||
ConfigService
|
ConfigService
|
||||||
} from '../service';
|
} from '../services';
|
||||||
import { MockApiService } from '../service/mocks';
|
import { MockApiService } from '../services/mocks';
|
||||||
|
|
||||||
import { ChangePasswordComponent } from './change-password.component';
|
import { ChangePasswordComponent } from './change-password.component';
|
||||||
|
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
||||||
import { AuthService } from 'app/service';
|
import { AuthService } from 'app/services';
|
||||||
import { Router } from '@angular/router';
|
import { Router } from '@angular/router';
|
||||||
import { DisplayMessage } from '../shared/models/display-message';
|
import { DisplayMessage } from '../../shared/models/display-message';
|
||||||
import { delay, mergeMap } from 'rxjs/operators';
|
import { delay, mergeMap } from 'rxjs/operators';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@@ -2,7 +2,7 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|||||||
import { LoginComponent } from './login.component';
|
import { LoginComponent } from './login.component';
|
||||||
import { RouterTestingModule } from '@angular/router/testing';
|
import { RouterTestingModule } from '@angular/router/testing';
|
||||||
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||||
import { MockApiService } from '../service/mocks/api.service.mock';
|
import { MockApiService } from '../services/mocks/api.service.mock';
|
||||||
import { ReactiveFormsModule } from '@angular/forms';
|
import { ReactiveFormsModule } from '@angular/forms';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
@@ -10,7 +10,7 @@ import {
|
|||||||
AuthService,
|
AuthService,
|
||||||
UserService,
|
UserService,
|
||||||
ConfigService
|
ConfigService
|
||||||
} from '../service';
|
} from '../services';
|
||||||
|
|
||||||
describe('LoginComponent', () => {
|
describe('LoginComponent', () => {
|
||||||
let component: LoginComponent;
|
let component: LoginComponent;
|
||||||
@@ -2,14 +2,14 @@ import { Inject } from '@angular/core';
|
|||||||
import { Component, OnInit, OnDestroy } from '@angular/core';
|
import { Component, OnInit, OnDestroy } from '@angular/core';
|
||||||
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
||||||
import { Router, ActivatedRoute } from '@angular/router';
|
import { Router, ActivatedRoute } from '@angular/router';
|
||||||
import { DisplayMessage } from '../shared/models/display-message';
|
import { DisplayMessage } from '../../shared/models/display-message';
|
||||||
import { Subscription } from 'rxjs';
|
import { Subscription } from 'rxjs';
|
||||||
import { takeUntil, delay } from 'rxjs/operators'
|
import { takeUntil, delay } from 'rxjs/operators'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
UserService,
|
UserService,
|
||||||
AuthService
|
AuthService
|
||||||
} from '../service';
|
} from '../../services';
|
||||||
|
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { Subject } from 'rxjs';
|
import { Subject } from 'rxjs';
|
||||||
@@ -2,7 +2,7 @@ import { Component, OnInit } from '@angular/core';
|
|||||||
import {
|
import {
|
||||||
ConfigService,
|
ConfigService,
|
||||||
UserService
|
UserService
|
||||||
} from '../service';
|
} from '../../services';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'manager',
|
selector: 'manager',
|
||||||
@@ -9,13 +9,13 @@ import { RouterTestingModule } from '@angular/router/testing';
|
|||||||
import {
|
import {
|
||||||
MockUserService,
|
MockUserService,
|
||||||
MockApiService
|
MockApiService
|
||||||
} from 'app/service/mocks';
|
} from 'app/services/mocks';
|
||||||
import {
|
import {
|
||||||
UserService,
|
UserService,
|
||||||
AuthService,
|
AuthService,
|
||||||
ApiService,
|
ApiService,
|
||||||
ConfigService
|
ConfigService
|
||||||
} from 'app/service';
|
} from 'app/services';
|
||||||
|
|
||||||
describe('SignupComponent', () => {
|
describe('SignupComponent', () => {
|
||||||
let component: SignupComponent;
|
let component: SignupComponent;
|
||||||
@@ -2,13 +2,13 @@ import { Inject } from '@angular/core';
|
|||||||
import { Component, OnInit, OnDestroy } from '@angular/core';
|
import { Component, OnInit, OnDestroy } from '@angular/core';
|
||||||
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
||||||
import { Router, ActivatedRoute } from '@angular/router';
|
import { Router, ActivatedRoute } from '@angular/router';
|
||||||
import { DisplayMessage } from '../shared/models/display-message';
|
import { DisplayMessage } from '../../shared/models/display-message';
|
||||||
import { Subscription } from 'rxjs';
|
import { Subscription } from 'rxjs';
|
||||||
import { takeUntil, delay } from 'rxjs/operators'
|
import { takeUntil, delay } from 'rxjs/operators'
|
||||||
import {
|
import {
|
||||||
UserService,
|
UserService,
|
||||||
AuthService
|
AuthService
|
||||||
} from '../service';
|
} from '../../services';
|
||||||
|
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { Subject } from 'rxjs';
|
import { Subject } from 'rxjs';
|
||||||
Reference in New Issue
Block a user