Skip to content
This repository has been archived by the owner on Jun 25, 2022. It is now read-only.

Commit

Permalink
refactor(front-end): Remove empty sources
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosPavajeau committed May 1, 2021
1 parent fbdd329 commit 33c576d
Show file tree
Hide file tree
Showing 120 changed files with 110 additions and 151 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { Activity } from '@modules/activity-schedule/models/activity';

@Component({
selector: 'app-activity-detail-card',
templateUrl: './activity-detail-card.component.html',
styleUrls: [ './activity-detail-card.component.scss' ]
templateUrl: './activity-detail-card.component.html'
})
export class ActivityDetailCardComponent implements OnInit {
@Input() activity: Activity;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import { Observable } from 'rxjs';

@Component({
selector: 'app-activity-detail',
templateUrl: './activity-detail.component.html',
styleUrls: [ './activity-detail.component.scss' ]
templateUrl: './activity-detail.component.html'
})
export class ActivityDetailComponent implements OnInit {
public ObsStatus: typeof ObservableStatus = ObservableStatus;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ import { Observable } from 'rxjs';

@Component({
selector: 'app-activity-register',
templateUrl: './activity-register.component.html',
styleUrls: [ './activity-register.component.scss' ]
templateUrl: './activity-register.component.html'
})
export class ActivityRegisterComponent implements OnInit, IForm {
public ObsStatus: typeof ObservableStatus = ObservableStatus;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import { delay } from 'rxjs/operators';

@Component({
selector: 'app-activity-schedule',
templateUrl: './activity-schedule.component.html',
styleUrls: [ './activity-schedule.component.scss' ]
templateUrl: './activity-schedule.component.html'
})
export class ActivityScheduleComponent implements OnInit {
public ObsStatus: typeof ObservableStatus = ObservableStatus;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import { Observable } from 'rxjs';

@Component({
selector: 'app-client-schedule',
templateUrl: './client-schedule.component.html',
styleUrls: [ './client-schedule.component.scss' ]
templateUrl: './client-schedule.component.html'
})
export class ClientScheduleComponent implements OnInit {
public ObsStatus: typeof ObservableStatus = ObservableStatus;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import { Observable } from 'rxjs';

@Component({
selector: 'app-work-schedule',
templateUrl: './work-schedule.component.html',
styleUrls: [ './work-schedule.component.scss' ]
templateUrl: './work-schedule.component.html'
})
export class WorkScheduleComponent implements OnInit {
public ObsStatus: typeof ObservableStatus = ObservableStatus;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import { Observable } from 'rxjs';

@Component({
selector: 'app-certificate-detail',
templateUrl: './certificate-detail.component.html',
styleUrls: [ './certificate-detail.component.scss' ]
templateUrl: './certificate-detail.component.html'
})
export class CertificateDetailComponent implements OnInit {
public ObsStatus: typeof ObservableStatus = ObservableStatus;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import { Observable } from 'rxjs';

@Component({
selector: 'app-certificates',
templateUrl: './certificates.component.html',
styleUrls: [ './certificates.component.scss' ]
templateUrl: './certificates.component.html'
})
export class CertificatesComponent implements OnInit {
public ObsStatus: typeof ObservableStatus = ObservableStatus;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ import { Observable } from 'rxjs';

@Component({
selector: 'app-client-detail',
templateUrl: './client-detail.component.html',
styleUrls: [ './client-detail.component.scss' ]
templateUrl: './client-detail.component.html'
})
export class ClientDetailComponent implements OnInit {
public ObsStatus: typeof ObservableStatus = ObservableStatus;

client$: Observable<Client>;

constructor(private clientService: ClientService, private activatedRoute: ActivatedRoute) {}
constructor(private clientService: ClientService, private activatedRoute: ActivatedRoute) {
}

ngOnInit(): void {
this.loadData();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ import { alphabeticCharacters, numericCharacters } from '@shared/validators/char

@Component({
selector: 'app-client-register',
templateUrl: './client-register.component.html',
styleUrls: [ './client-register.component.scss' ]
templateUrl: './client-register.component.html'
})
export class ClientRegisterComponent implements OnInit, IForm {
clientForm: FormGroup;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ import { Observable } from 'rxjs';

@Component({
selector: 'app-client-request-detail',
templateUrl: './client-request-detail.component.html',
styleUrls: [ './client-request-detail.component.scss' ]
templateUrl: './client-request-detail.component.html'
})
export class ClientRequestDetailComponent implements OnInit {
public ObsStatus: typeof ObservableStatus = ObservableStatus;

clientRequest$: Observable<Client>;
updatingClientRequest = false;

constructor(private clientService: ClientService, private activeRoute: ActivatedRoute, private router: Router) {}
constructor(private clientService: ClientService, private activeRoute: ActivatedRoute, private router: Router) {
}

ngOnInit(): void {
this.loadClientRequest();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import { Observable } from 'rxjs';

@Component({
selector: 'app-client-requests',
templateUrl: './client-requests.component.html',
styleUrls: [ './client-requests.component.scss' ]
templateUrl: './client-requests.component.html'
})
export class ClientRequestsComponent implements OnInit {
public ObsStatus: typeof ObservableStatus = ObservableStatus;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import { EmployeeCharge } from '@modules/employees/models/employee-charge';

@Component({
selector: 'app-employee-charge-register',
templateUrl: './employee-charge-register.component.html',
styleUrls: [ './employee-charge-register.component.scss' ]
templateUrl: './employee-charge-register.component.html'
})
export class EmployeeChargeRegisterComponent implements OnInit {
employeeChargeForm: FormGroup;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import { Observable } from 'rxjs';

@Component({
selector: 'app-employee-charges',
templateUrl: './employee-charges.component.html',
styleUrls: [ './employee-charges.component.scss' ]
templateUrl: './employee-charges.component.html'
})
export class EmployeeChargesComponent implements OnInit, AfterViewInit {
public ObsStatus: typeof ObservableStatus = ObservableStatus;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import { Observable } from 'rxjs';

@Component({
selector: 'app-employee-detail',
templateUrl: './employee-detail.component.html',
styleUrls: [ './employee-detail.component.scss' ]
templateUrl: './employee-detail.component.html'
})
export class EmployeeDetailComponent implements OnInit {
public ObsStatus: typeof ObservableStatus = ObservableStatus;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ import { Observable } from 'rxjs';

@Component({
selector: 'app-employee-edit',
templateUrl: './employee-edit.component.html',
styleUrls: [ './employee-edit.component.scss' ]
templateUrl: './employee-edit.component.html'
})
export class EmployeeEditComponent implements OnInit, IForm {
public ObsStatus: typeof ObservableStatus = ObservableStatus;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ import { Observable } from 'rxjs';

@Component({
selector: 'app-employee-register',
templateUrl: './employee-register.component.html',
styleUrls: [ './employee-register.component.scss' ]
templateUrl: './employee-register.component.html'
})
export class EmployeeRegisterComponent implements OnInit, IForm {
public ObsStatus: typeof ObservableStatus = ObservableStatus;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import { Observable } from 'rxjs';

@Component({
selector: 'app-employees',
templateUrl: './employees.component.html',
styleUrls: [ './employees.component.scss' ]
templateUrl: './employees.component.html'
})
export class EmployeesComponent implements OnInit, AfterViewInit {
public ObsStatus: typeof ObservableStatus = ObservableStatus;
Expand All @@ -26,7 +25,8 @@ export class EmployeesComponent implements OnInit, AfterViewInit {

@ViewChild(MatSort) sort: MatSort;

constructor(private employeeService: EmployeeService) {}
constructor(private employeeService: EmployeeService) {
}

ngOnInit(): void {
this.loadEmployees();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import { Observable } from 'rxjs';

@Component({
selector: 'app-equipment-detail',
templateUrl: './equipment-detail.component.html',
styleUrls: [ './equipment-detail.component.scss' ]
templateUrl: './equipment-detail.component.html'
})
export class EquipmentDetailComponent implements OnInit {
public ObsStatus: typeof ObservableStatus = ObservableStatus;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import { Observable } from 'rxjs';

@Component({
selector: 'app-equipment-edit',
templateUrl: './equipment-edit.component.html',
styleUrls: [ './equipment-edit.component.scss' ]
templateUrl: './equipment-edit.component.html'
})
export class EquipmentEditComponent implements OnInit, IForm {
public ObsStatus: typeof ObservableStatus = ObservableStatus;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import { EquipmentExistsValidator } from '@shared/validators/equipment-exists-va

@Component({
selector: 'app-equipment-register',
templateUrl: './equipment-register.component.html',
styleUrls: [ './equipment-register.component.scss' ]
templateUrl: './equipment-register.component.html'
})
export class EquipmentRegisterComponent implements OnInit, IForm {
equipmentForm: FormGroup;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import { Observable } from 'rxjs';

@Component({
selector: 'app-equipments',
templateUrl: './equipments.component.html',
styleUrls: [ './equipments.component.scss' ]
templateUrl: './equipments.component.html'
})
export class EquipmentsComponent implements OnInit, AfterViewInit {
public ObsStatus: typeof ObservableStatus = ObservableStatus;
Expand All @@ -28,7 +27,8 @@ export class EquipmentsComponent implements OnInit, AfterViewInit {

@ViewChild(MatSort) sort: MatSort;

constructor(private equipmentService: EquipmentService, private matDialog: MatDialog) {}
constructor(private equipmentService: EquipmentService, private matDialog: MatDialog) {
}

ngOnInit(): void {
this.loadEquipments();
Expand All @@ -50,7 +50,7 @@ export class EquipmentsComponent implements OnInit, AfterViewInit {
deleteEquipment(equipment: Equipment): void {
const dialogRef = this.matDialog.open(ConfirmDialogComponent, {
width: '500px',
data: `Está seguro de eliminar el equipo "${equipment.name}", una vez confirmada la acción no podra revertirla.`
data: `Está seguro de eliminar el equipo "${ equipment.name }", una vez confirmada la acción no podra revertirla.`
});

dialogRef.afterClosed().subscribe((result) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import { Observable } from 'rxjs';

@Component({
selector: 'app-product-detail',
templateUrl: './product-detail.component.html',
styleUrls: [ './product-detail.component.scss' ]
templateUrl: './product-detail.component.html'
})
export class ProductDetailComponent implements OnInit {
public ObsStatus: typeof ObservableStatus = ObservableStatus;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ import { Observable } from 'rxjs';

@Component({
selector: 'app-product-edit',
templateUrl: './product-edit.component.html',
styleUrls: [ './product-edit.component.scss' ]
templateUrl: './product-edit.component.html'
})
export class ProductEditComponent implements OnInit, IForm, AfterViewInit {
public ObsStatus: typeof ObservableStatus = ObservableStatus;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@ import { UploadDownloadService } from '@core/services/upload-download.service';
import { Product } from '@modules/inventory/products/models/product';
import { ProductService } from '@modules/inventory/products/services/product.service';
import { DialogsService } from '@shared/services/dialogs.service';
import { NotificationsService } from '@shared/services/notifications.service';

@Component({
selector: 'app-product-register',
templateUrl: './product-register.component.html',
styleUrls: [ './product-register.component.scss' ]
templateUrl: './product-register.component.html'
})
export class ProductRegisterComponent implements OnInit, IForm {
allMonths: MonthBit[];
Expand Down Expand Up @@ -43,7 +41,8 @@ export class ProductRegisterComponent implements OnInit, IForm {
private formBuilder: FormBuilder,
private dialogsService: DialogsService,
private router: Router
) {}
) {
}

ngOnInit(): void {
this.initForm();
Expand Down Expand Up @@ -102,7 +101,7 @@ export class ProductRegisterComponent implements OnInit, IForm {

this.productService.saveProduct(product).subscribe((productSave) => {
this.dialogsService.showSuccessDialog(
`El producto ${productSave.name} fue registrado con éxito`,
`El producto ${ productSave.name } fue registrado con éxito`,
() => {
this.router.navigateByUrl('/inventory/products');
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import { Observable } from 'rxjs';

@Component({
selector: 'app-products',
templateUrl: './products.component.html',
styleUrls: [ './products.component.scss' ]
templateUrl: './products.component.html'
})
export class ProductsComponent implements OnInit, AfterViewInit {
public ObsStatus: typeof ObservableStatus = ObservableStatus;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { Invoice } from "@modules/payments/models/invoice";

@Component({
selector: 'app-invoice-detail',
templateUrl: './invoice-detail.component.html',
styleUrls: [ './invoice-detail.component.scss' ]
templateUrl: './invoice-detail.component.html'
})
export class InvoiceDetailComponent implements OnInit {
@Input('invoice') invoice: Invoice;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export const DATE_FORMATS = {
@Component({
selector: 'app-pay-product-invoice',
templateUrl: './pay-product-invoice.component.html',
styleUrls: [ './pay-product-invoice.component.scss' ],
providers: [
{
provide: DateAdapter,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ export const DATE_FORMATS = {
@Component({
selector: 'app-pay-service-invoice',
templateUrl: './pay-service-invoice.component.html',
styleUrls: [ './pay-service-invoice.component.scss' ],
providers: [
{
provide: DateAdapter,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-payment-register',
templateUrl: './payment-register.component.html',
styleUrls: [ './payment-register.component.scss' ]
templateUrl: './payment-register.component.html'
})
export class PaymentRegisterComponent implements OnInit {
constructor() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ import { Observable } from 'rxjs';

@Component({
selector: 'app-product-invoice-detail',
templateUrl: './product-invoice-detail.component.html',
styleUrls: [ './product-invoice-detail.component.scss' ]
templateUrl: './product-invoice-detail.component.html'
})
export class ProductInvoiceDetailComponent implements OnInit {
public ObsStatus: typeof ObservableStatus = ObservableStatus;
Expand All @@ -34,7 +33,7 @@ export class ProductInvoiceDetailComponent implements OnInit {
private loadData(): void {
const id = +this.activatedRoute.snapshot.paramMap.get('id');
this.productInvoice$ = this.productInvoiceService.getProductInvoice(id);

const role = this.authService.getUserRole();
if (role === CLIENT_ROLE) {
this.isClient = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ import { Observable } from 'rxjs';

@Component({
selector: 'app-product-invoice-register',
templateUrl: './product-invoice-register.component.html',
styleUrls: [ './product-invoice-register.component.scss' ]
templateUrl: './product-invoice-register.component.html'
})
export class ProductInvoiceRegisterComponent implements OnInit, IForm {
public ObsStatus: typeof ObservableStatus = ObservableStatus;
Expand Down
Loading

0 comments on commit 33c576d

Please sign in to comment.