clean code
This commit is contained in:
parent
b516f80175
commit
cd2e49fba0
6 changed files with 6 additions and 29 deletions
|
|
@ -7,7 +7,7 @@ import { FirebaseService } from '../../services/firebase.service';
|
|||
import { Task } from '../../interfaces/task.interface';
|
||||
import { OverlayService } from '../../services/overlay.service';
|
||||
import { FormBtnComponent } from '../../shared/components/buttons/form-btn/form-btn.component';
|
||||
import { ActivatedRoute, Route, Router } from '@angular/router';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { SharedService } from '../../services/shared.service';
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ import { FormBtnComponent } from '../../../shared/components/buttons/form-btn/fo
|
|||
import { FooterComponent } from '../footer/footer.component';
|
||||
import { HeaderComponent } from '../header/header.component';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { LoadingDialogComponent } from '../loading-dialog/loading-dialog.component';
|
||||
import { FirebaseService } from '../../../services/firebase.service';
|
||||
import { LoginService } from '../../../services/login.service';
|
||||
import { SharedService } from '../../../services/shared.service';
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ import { FormBtnComponent } from '../../../../shared/components/buttons/form-btn
|
|||
import { FooterComponent } from '../../footer/footer.component';
|
||||
import { HeaderComponent } from '../../header/header.component';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { LoadingDialogComponent } from '../../loading-dialog/loading-dialog.component';
|
||||
import { FirebaseService } from '../../../../services/firebase.service';
|
||||
import { LoginService } from '../../../../services/login.service';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
|
|
|
|||
|
|
@ -1,9 +1,7 @@
|
|||
import { Injectable, OnDestroy, inject } from '@angular/core';
|
||||
import {
|
||||
DocumentReference,
|
||||
Firestore,
|
||||
addDoc,
|
||||
arrayUnion,
|
||||
collection,
|
||||
deleteDoc,
|
||||
doc,
|
||||
|
|
|
|||
|
|
@ -1,22 +1,11 @@
|
|||
import {
|
||||
AfterViewInit,
|
||||
Component,
|
||||
EventEmitter,
|
||||
HostBinding,
|
||||
HostListener,
|
||||
OnDestroy,
|
||||
OnInit,
|
||||
Output,
|
||||
} from '@angular/core';
|
||||
import { Component, HostListener, OnInit } from '@angular/core';
|
||||
import { OverlayService } from '../../../services/overlay.service';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TaskOverlayComponent } from './task-overlay/task-overlay.component';
|
||||
import { FirebaseService } from '../../../services/firebase.service';
|
||||
import { TaskEditOverlayComponent } from './task-edit-overlay/task-edit-overlay.component';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { Router } from '@angular/router';
|
||||
import { AddTaskComponent } from '../../../components/add-task/add-task.component';
|
||||
import { DialogOverlayComponent } from './dialog-overlay/dialog-overlay.component';
|
||||
import { SharedService } from '../../../services/shared.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-overlay',
|
||||
|
|
@ -35,12 +24,7 @@ export class OverlayComponent implements OnInit {
|
|||
overlayType: any;
|
||||
overlayData: any;
|
||||
|
||||
constructor(
|
||||
private overlayService: OverlayService,
|
||||
private sharedService: SharedService,
|
||||
private route: ActivatedRoute,
|
||||
private router: Router
|
||||
) {}
|
||||
constructor(private overlayService: OverlayService, private router: Router) {}
|
||||
|
||||
ngOnInit(): void {
|
||||
this.checkOverlayData();
|
||||
|
|
|
|||
|
|
@ -1,11 +1,9 @@
|
|||
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
||||
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
||||
import { FirebaseService } from '../../../../services/firebase.service';
|
||||
import { OverlayService } from '../../../../services/overlay.service';
|
||||
import { BtnCloseComponent } from '../../buttons/btn-close/btn-close.component';
|
||||
import { FormsModule, NgForm } from '@angular/forms';
|
||||
import { Task } from '../../../../interfaces/task.interface';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { User } from '../../../../interfaces/user.interface';
|
||||
import { AssignedComponent } from '../../../../components/add-task/assigned/assigned.component';
|
||||
import { AddTaskComponent } from '../../../../components/add-task/add-task.component';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
|
|
@ -34,7 +32,6 @@ export class TaskEditOverlayComponent {
|
|||
|
||||
constructor(
|
||||
public firebaseService: FirebaseService,
|
||||
private overlayService: OverlayService,
|
||||
private route: ActivatedRoute,
|
||||
private router: Router
|
||||
) {}
|
||||
|
|
|
|||
Loading…
Reference in a new issue