remove console.logs

This commit is contained in:
Peter Maquiran
2022-06-29 15:51:28 +01:00
parent 2fad8c305a
commit 7fd256905d
22 changed files with 33 additions and 41 deletions
+4 -4
View File
@@ -67,7 +67,7 @@ export class AppComponent {
window.screen.orientation.unlock(); window.screen.orientation.unlock();
} else if( this.platform.is("mobile")) { } else if( this.platform.is("mobile")) {
window.screen.orientation.lock('portrait'); window.screen.orientation.lock('portrait');
console.log('Orientation locked') // console.log('Orientation locked')
} }
if (this.platform.is('desktop') || this.platform.is('mobileweb')) { if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
@@ -76,16 +76,16 @@ export class AppComponent {
try { try {
this.sqliteservice.databaseConn(); this.sqliteservice.databaseConn();
} catch (error) { } catch (error) {
console.log("Error creating local database: ", error) // console.log("Error creating local database: ", error)
} }
} }
this.storageservice.get('networkCheckStore').then((network) => { this.storageservice.get('networkCheckStore').then((network) => {
if(network === 'online') { if(network === 'online') {
console.log('Network app componente check', network) // console.log('Network app componente check', network)
this.backgroundservice.online() this.backgroundservice.online()
} else { } else {
console.log('Network app componente check', network) // console.log('Network app componente check', network)
this.backgroundservice.offline(); this.backgroundservice.offline();
} }
}) })
+2 -2
View File
@@ -142,7 +142,7 @@ export class HomePage implements OnInit {
this.notificationsService.onReciveBackground(); this.notificationsService.onReciveBackground();
window.addEventListener('online', () => { window.addEventListener('online', () => {
console.log('Became online') // console.log('Became online')
this.backgroundservice.online() this.backgroundservice.online()
if (this.platform.is('desktop') || this.platform.is('mobileweb')) { if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
} else { } else {
@@ -151,7 +151,7 @@ export class HomePage implements OnInit {
}); });
window.addEventListener('offline', () => { window.addEventListener('offline', () => {
console.log('Became offline') // console.log('Became offline')
this.backgroundservice.offline() this.backgroundservice.offline()
}); });
@@ -77,7 +77,7 @@ export class DocumentDetailPage implements OnInit {
} else if (document.ApplicationID == 8 || document.ApplicationId == 8) { } else if (document.ApplicationID == 8 || document.ApplicationId == 8) {
} else { } else {
console.log('unexpected id') // console.log('unexpected id')
} }
@@ -42,7 +42,7 @@ ngOnInit() {
this.image = this.navParams.get('image') this.image = this.navParams.get('image')
this.name = this.navParams.get('username') this.name = this.navParams.get('username')
this._updatedAt = this.navParams.get('_updatedAt') this._updatedAt = this.navParams.get('_updatedAt')
console.log(this.image) // console.log(this.image)
// this.image = this.myimage // this.image = this.myimage
} }
+2 -2
View File
@@ -52,7 +52,7 @@ export class ProfilePage implements OnInit {
ngOnInit() { ngOnInit() {
if (this.platform.is('desktop') || this.platform.is('mobileweb')) { if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
console.log('Notifications not supported') // console.log('Notifications not supported')
this.getNotificationData(); this.getNotificationData();
} else { } else {
this.getNotificationData(); this.getNotificationData();
@@ -138,7 +138,7 @@ export class ProfilePage implements OnInit {
notificatinsRoutes = (index, Service, Object, IdObject, FolderId) => { notificatinsRoutes = (index, Service, Object, IdObject, FolderId) => {
console.log(index, Service, Object, IdObject, FolderId) // console.log(index, Service, Object, IdObject, FolderId)
if (Service === "agenda" && IdObject.length > 10) { if (Service === "agenda" && IdObject.length > 10) {
this.zone.run(() => this.router.navigate(['/home/agenda', IdObject, 'agenda'])); this.zone.run(() => this.router.navigate(['/home/agenda', IdObject, 'agenda']));
@@ -77,7 +77,7 @@ export class ViewDocumentPage implements OnInit {
} else if(res.data.component == 'openExpedientActionsModal') { } else if(res.data.component == 'openExpedientActionsModal') {
this.openExpedientActionsModal(res.data.taskAction) this.openExpedientActionsModal(res.data.taskAction)
} else { } else {
console.log('not found') // console.log('not found')
} }
} }
@@ -99,7 +99,7 @@ export class EditEventPage implements OnInit {
this.isEventEdited = false; this.isEventEdited = false;
/* this.postEvent.EventRecurrence = { Type:'-1', LastOccurrence:''}; */ /* this.postEvent.EventRecurrence = { Type:'-1', LastOccurrence:''}; */
this.postEvent = this.navParams.get('event'); this.postEvent = this.navParams.get('event');
console.log(this.postEvent); // console.log(this.postEvent);
this.caller = this.navParams.get('caller'); this.caller = this.navParams.get('caller');
this.initCalendarName = this.postEvent.CalendarName; this.initCalendarName = this.postEvent.CalendarName;
@@ -185,7 +185,7 @@ export class EditEventPage implements OnInit {
} }
calculetedLastOccurrence(type:number){ calculetedLastOccurrence(type:number){
console.log(type); // console.log(type);
var valor; var valor;
var opcao: boolean; var opcao: boolean;
if (type == 0) { if (type == 0) {
@@ -211,7 +211,7 @@ export class NewEventPage implements OnInit {
} }
calculetedLastOccurrence(type:number){ calculetedLastOccurrence(type:number){
console.log(type); // console.log(type);
var valor; var valor;
var opcao: boolean; var opcao: boolean;
if (type == 0) { if (type == 0) {
+1 -1
View File
@@ -138,7 +138,7 @@ export class ChatPage implements OnInit {
} }
SessionStore.user.ChatData = data SessionStore.user.ChatData = data
SessionStore.save() */ SessionStore.save() */
console.log(SessionStore.user.ChatData.data.authToken) // console.log(SessionStore.user.ChatData.data.authToken)
this.chatService.refreshtoken(); this.chatService.refreshtoken();
this.segment = "Contactos"; this.segment = "Contactos";
@@ -44,7 +44,7 @@ export class NewGroupPage implements OnInit {
ngOnInit() { ngOnInit() {
this.chatService.refreshtoken(); this.chatService.refreshtoken();
console.log(this.documents) // console.log(this.documents)
} }
@@ -421,14 +421,6 @@ export class GabineteDigitalPage implements OnInit {
checkUser() { checkUser() {
this.selectedElement = 'allProcessesTag'; this.selectedElement = 'allProcessesTag';
this.showAllProcesses = true; this.showAllProcesses = true;
/* switch(this.loggeduser.Profile){
case 'MDGPR':
this.showExpedients = true;
break;
case 'PR':
this.showExpedientesPr = true;
break;
} */
} }
hideRefreshButton() { hideRefreshButton() {
+3 -3
View File
@@ -88,7 +88,7 @@ export class ChatService {
} }
getAllUsers() { getAllUsers() {
console.log(this.options) // console.log(this.options)
return this.http.get(environment.apiChatUrl + 'users.list', this.options); return this.http.get(environment.apiChatUrl + 'users.list', this.options);
} }
getAllConnectedUsers() { getAllConnectedUsers() {
@@ -375,8 +375,8 @@ export class ChatService {
SessionStore.user.ChatData = data SessionStore.user.ChatData = data
SessionStore.save() SessionStore.save()
this.setheader() this.setheader()
console.log(res) // console.log(res)
console.log(SessionStore.user.ChatData) // console.log(SessionStore.user.ChatData)
}); });
} }
@@ -337,7 +337,7 @@ export class WsChatMethodsService {
this.dm[roomId] = room this.dm[roomId] = room
this._dm.push(room) this._dm.push(room)
console.log(this._dm) // console.log(this._dm)
this.dmCount++ this.dmCount++
} else { } else {
+1 -1
View File
@@ -10,7 +10,7 @@ self.addEventListener('activate', function(event) {
self.addEventListener('notificationclick', function(event) { self.addEventListener('notificationclick', function(event) {
// Close the notification when it is clicked // Close the notification when it is clicked
event.notification.close(); event.notification.close();
console.log(event) // console.log(event)
}); });
@@ -71,7 +71,7 @@ export class ApproveEventPage implements OnInit {
this.processes.GetTask(this.serialNumber).subscribe(res => { this.processes.GetTask(this.serialNumber).subscribe(res => {
this.loadedEvent = res; this.loadedEvent = res;
console.log(this.loadedEvent); // console.log(this.loadedEvent);
this.today = new Date(res.workflowInstanceDataFields.StartDate); this.today = new Date(res.workflowInstanceDataFields.StartDate);
// //
this.customDate = this.days[this.today.getDay()]+ ", " + this.today.getDate() +" de " + ( this.months[this.today.getMonth()]); this.customDate = this.days[this.today.getDay()]+ ", " + this.today.getDate() +" de " + ( this.months[this.today.getMonth()]);
@@ -233,7 +233,7 @@ export class EditEventPage implements OnInit {
} }
calculetedLastOccurrence(type:number){ calculetedLastOccurrence(type:number){
console.log(type); // console.log(type);
var valor; var valor;
var opcao: boolean; var opcao: boolean;
if (type == 0) { if (type == 0) {
@@ -377,7 +377,7 @@ export class NewEventPage implements OnInit {
} }
calculetedLastOccurrence(type:number){ calculetedLastOccurrence(type:number){
console.log(type); // console.log(type);
var valor; var valor;
var opcao: boolean; var opcao: boolean;
if (type == 0) { if (type == 0) {
@@ -105,7 +105,7 @@ export class ViewEventPage implements OnInit {
this.eventsService.getEvent(this.eventId).subscribe(res => { this.eventsService.getEvent(this.eventId).subscribe(res => {
this.loadedEvent = res; this.loadedEvent = res;
console.log(this.loadedEvent); // console.log(this.loadedEvent);
this.today = new Date(res.StartDate); this.today = new Date(res.StartDate);
this.customDate = this.days[this.today.getDay()]+ ", " + this.today.getDate() +" de " + ( this.months[this.today.getMonth()]); this.customDate = this.days[this.today.getDay()]+ ", " + this.today.getDate() +" de " + ( this.months[this.today.getMonth()]);
}, (error)=> { }, (error)=> {
@@ -162,7 +162,7 @@ export class GroupMessagesPage implements OnInit, OnChanges, AfterViewInit, OnDe
ngOnInit() { ngOnInit() {
this.chatService.refreshtoken(); this.chatService.refreshtoken();
console.log(this.roomId) // console.log(this.roomId)
this.loggedUser = this.loggedUserChat; this.loggedUser = this.loggedUserChat;
//setTimeout(() => { //setTimeout(() => {
this.getRoomInfo() this.getRoomInfo()
@@ -402,7 +402,7 @@ export class GroupMessagesPage implements OnInit, OnChanges, AfterViewInit, OnDe
async getRoomInfo() { async getRoomInfo() {
this.wsChatMethodsService.getGroupRoom(this.roomId).loadHistory({}); this.wsChatMethodsService.getGroupRoom(this.roomId).loadHistory({});
let room = await this.chatService.getRoomInfo(this.roomId).toPromise(); let room = await this.chatService.getRoomInfo(this.roomId).toPromise();
console.log('ROOM',room) // console.log('ROOM',room)
this.room = room['room']; this.room = room['room'];
if (this.room.name) { if (this.room.name) {
this.roomName = this.room.name.split('-').join(' '); this.roomName = this.room.name.split('-').join(' ');
@@ -85,8 +85,8 @@ export class EventsToApprovePage implements OnInit {
else if(this.segment == 'PR') { else if(this.segment == 'PR') {
let prEventsOficial = await this.processes.GetTasksList('Agenda Oficial PR', false).toPromise(); let prEventsOficial = await this.processes.GetTasksList('Agenda Oficial PR', false).toPromise();
let prEventsPessoal = await this.processes.GetTasksList('Agenda Pessoal PR', false).toPromise(); let prEventsPessoal = await this.processes.GetTasksList('Agenda Pessoal PR', false).toPromise();
console.log(prEventsOficial) // console.log(prEventsOficial)
console.log(prEventsPessoal) // console.log(prEventsPessoal)
this.eventsPRList = prEventsOficial.concat(prEventsPessoal); this.eventsPRList = prEventsOficial.concat(prEventsPessoal);
this.eventsPRList = this.sortService.sortArrayByDate(this.eventsPRList) this.eventsPRList = this.sortService.sortArrayByDate(this.eventsPRList)
this.eventsPRList = (this.eventsPRList || []).filter(function(item) { this.eventsPRList = (this.eventsPRList || []).filter(function(item) {
@@ -105,12 +105,12 @@ export class EventsToApprovePage implements OnInit {
getFromDB() { getFromDB() {
this.storage.get('event-to-aproveMD').then((events = []) => { this.storage.get('event-to-aproveMD').then((events = []) => {
this.eventsMDGPRList = events this.eventsMDGPRList = events
console.log('DB',this.eventsMDGPRList) // console.log('DB',this.eventsMDGPRList)
}) })
this.storage.get('event-to-aprovePR').then((events) => { this.storage.get('event-to-aprovePR').then((events) => {
this.eventsPRList = events this.eventsPRList = events
console.log('DB',this.eventsPRList) // console.log('DB',this.eventsPRList)
}) })
} }
+1 -1
View File
@@ -125,7 +125,7 @@ var FontInspector = (function FontInspectorClosure() {
logIt.textContent = 'Log'; logIt.textContent = 'Log';
logIt.addEventListener('click', function(event) { logIt.addEventListener('click', function(event) {
event.preventDefault(); event.preventDefault();
console.log(fontObj); // console.log(fontObj);
}); });
var select = document.createElement('input'); var select = document.createElement('input');
select.setAttribute('type', 'checkbox'); select.setAttribute('type', 'checkbox');
+1 -1
View File
@@ -33,7 +33,7 @@
window.addEventListener("message", (event) => { window.addEventListener("message", (event) => {
console.log(event) // console.log(event)
if (event.data && event.data.sender == "cookies") { if (event.data && event.data.sender == "cookies") {
// setCookie() // setCookie()
} }