remove uunsed

This commit is contained in:
Peter Maquiran
2024-10-21 10:15:48 +01:00
parent 661b449fb4
commit ac1f01b15b
40 changed files with 21 additions and 744 deletions
-10
View File
@@ -7,13 +7,7 @@ import { BehaviorSubject, of } from 'rxjs';
import { AlertController, Platform } from '@ionic/angular';
import { SessionStore } from '../store/session.service';
import { AESEncrypt } from '../services/aesencrypt.service';
// import { RochetChatConnectorService } from 'src/app/services/chat/rochet-chat-connector.service';
import { Router } from '@angular/router';
// import { NfService } from 'src/app/services/chat/nf.service';
//import { MessageService } from 'src/app/services/chat/message.service';
import { ProcessesService } from 'src/app/services/processes.service';
import { AttachmentsService } from 'src/app/services/attachments.service';
//import { RoomService } from './chat/room.service';
import { Storage } from '@ionic/storage';
import { InitialsService } from './functions/initials.service';
import { PermissionService } from './permission.service';
@@ -36,15 +30,11 @@ export class AuthService {
constructor(
private http: HttpClient,
private storageService: StorageService,
public alertController: AlertController,
private aesencrypt: AESEncrypt,
// private RochetChatConnectorService: RochetChatConnectorService,
private router: Router,
// private NfService: NfService,
private processesService: ProcessesService,
private AttachmentsService: AttachmentsService,
private storage: Storage,
private initialsService: InitialsService,
public p: PermissionService,
// public ChatSystemService: ChatSystemService,
+1 -3
View File
@@ -5,7 +5,6 @@ import { Observable } from 'rxjs';
import { environment } from 'src/environments/environment';
import { AuthService } from '../services/auth.service';
import { ChangeProfileService } from './change-profile.service';
import { OfflineManagerService } from 'src/app/services/offline-manager.service';
import { SessionStore } from '../store/session.service';
import { calendarInterface } from '../models/user.model';
import { Subscribe } from './subcribe';
@@ -72,8 +71,7 @@ export class EventsService {
constructor(
private http: HttpClient,
public user: AuthService,
private changeProfileService: ChangeProfileService,
private offlinemanager: OfflineManagerService) {
private changeProfileService: ChangeProfileService) {
// try {
// //this.setHeader()
@@ -1,16 +0,0 @@
import { TestBed } from '@angular/core/testing';
import { HardwareGoBackService } from './hardware-go-back.service';
describe('HardwareGoBackService', () => {
let service: HardwareGoBackService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(HardwareGoBackService);
});
it('should be created', () => {
expect(service).toBeTruthy();
});
});
@@ -1,9 +0,0 @@
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class HardwareGoBackService {
constructor() { }
}
+3 -4
View File
@@ -64,7 +64,6 @@ export class NotificationsService {
private platform: Platform,
private router: Router,
private zone: NgZone,
private eventtrigger: EventTrigger,
private afMessaging: AngularFireMessaging,
public NotificationHolderService: NotificationHolderService) {
@@ -244,9 +243,9 @@ export class NotificationsService {
console.log(notification)
this.storenotification(notification)
this.notificationReceived.emit();
this.eventtrigger.publishSomeData({
notification: "recive"
})
// this.eventtrigger.publishSomeData({
// notification: "recive"
// })
// Handle the received message, e.g., show a notification
});
}
@@ -1,16 +0,0 @@
import { TestBed } from '@angular/core/testing';
import { OfflineManagerService } from './offline-manager.service';
describe('OfflineManagerService', () => {
let service: OfflineManagerService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(OfflineManagerService);
});
it('should be created', () => {
expect(service).toBeTruthy();
});
});
@@ -1,43 +0,0 @@
import { Injectable } from '@angular/core';
import { Storage } from '@ionic/storage';
import { Observable, from, of, forkJoin } from 'rxjs';
import { switchMap, finalize } from 'rxjs/operators';
import { HttpClient } from '@angular/common/http';
import { ToastController } from '@ionic/angular';
import { BackgroundService } from 'src/app/services/background.service';
import { EventsService } from 'src/app/services/events.service';
@Injectable({
providedIn: 'root'
})
export class OfflineManagerService {
/* eventservice: EventsService */
constructor(
private storage: Storage,
/* private backgroundservice: BackgroundService */) { }
synchnize() {
/* this.backgroundservice.registerBackService('Online', () => {
this.storage.get('eventEdit').then((req) => {
JSON.parse(req).forEach(element => {
this.eventservice.editEvent(element, 2, 3).subscribe((res) => {
this.storage.remove('eventEdit')
})
});
})
}) */
}
storeRequestData(key, data) {
return this.storage.set(key, JSON.stringify(data));
}
sendRequestData(key) {
return this.storage.get(key)
}
}
-2
View File
@@ -1,6 +1,5 @@
import { Injectable } from '@angular/core';
import { AttachmentsService } from '../attachments.service';
import { EventsService } from '../events.service';
import { PermissionService } from '../permission.service';
@@ -11,7 +10,6 @@ import { PermissionService } from '../permission.service';
export class EventService {
constructor(
private eventService: EventsService,
public p: PermissionService,
private attachmentsService: AttachmentsService,
) { }
-2
View File
@@ -13,7 +13,6 @@ import { ExpedienteTaskPipe } from 'src/app/pipes/expediente-task.pipe';
import { DespachoService } from 'src/app/Rules/despacho.service';
import { CustomTaskPipe } from '../pipes/custom-task.pipe';
import { SessionStore } from 'src/app/store/session.service';
import { EventsService } from './events.service';
import { customTask } from '../models/dailyworktask.model';
import { Router } from '@angular/router';
import { v4 as uuidv4 } from 'uuid'
@@ -65,7 +64,6 @@ export class TaskService {
constructor(
private processesbackend: ProcessesService,
private despachoRule: DespachoService,
public eventService: EventsService,
private router: Router,
private changeProfileService: ChangeProfileService,
public p: PermissionService,