Remove relevant console log,

This commit is contained in:
Eudes Inácio
2022-04-28 09:32:27 +01:00
parent 3021e8b0e1
commit 2826cea9df
153 changed files with 1001 additions and 1132 deletions
-3
View File
@@ -26,9 +26,6 @@ export class AddNotePage implements OnInit {
}
ngOnInit() {
console.log( this.navParams);
console.log(this.hideThisFeature);
}
@@ -37,7 +37,6 @@ export class ChatOptionsFeaturesPage implements OnInit {
) {
this.members = this.navParams.get('members');
console.log(this.members);
this.attendees = this.members.map((val)=>{
return {
Name: val.name,
@@ -48,7 +47,6 @@ export class ChatOptionsFeaturesPage implements OnInit {
}
ngOnInit() {
console.log(this.attendees);
}
@@ -66,7 +64,6 @@ export class ChatOptionsFeaturesPage implements OnInit {
}
attachDocument(){
console.log('Anexar Documento');
}
@@ -99,7 +96,6 @@ export class ChatOptionsFeaturesPage implements OnInit {
input.onchange = async () => {
const file = this.fileLoaderService.getFirstFile(input)
console.log(file);
const imageData = await this.fileToBase64Service.convert(file)
this.capturedImage = imageData;
@@ -120,11 +116,11 @@ export class ChatOptionsFeaturesPage implements OnInit {
}
this.chatService.sendMessage(body).subscribe(res=> {
// console.log(res);
//
},(error) => {
});
//console.log(this.capturedImage)
//
};
}
@@ -146,7 +142,6 @@ export class ChatOptionsFeaturesPage implements OnInit {
}
this.chatService.sendMessage(body).subscribe(res=> {
console.log(res);
},(error) => {
@@ -159,7 +154,7 @@ export class ChatOptionsFeaturesPage implements OnInit {
//If group is private call getGroupMembers
if(this.room.t === 'p'){
this.chatService.getGroupMembers(this.roomId).subscribe(res=>{
console.log(res);
this.members = res['members'];
this.showLoader = false;
});
@@ -167,7 +162,7 @@ export class ChatOptionsFeaturesPage implements OnInit {
//Otherwise call getChannelMembers for públic groups
else{
this.chatService.getChannelMembers(this.roomId).subscribe(res=>{
console.log(res);
this.members = res['members'];
this.showLoader = false;
});
@@ -189,13 +184,11 @@ export class ChatOptionsFeaturesPage implements OnInit {
if(res){
const data = res.data;
this.documents.push(data.selected);
console.log(res.data);
}
});
}
async bookMeeting() {
console.log(this.attendees);
if( window.innerWidth <= 800){
this.popoverController.dismiss();
@@ -175,9 +175,7 @@ export class CreateProcessPage implements OnInit {
}
onSelectedTypesChanged(ev:any){
console.log(ev);
if(ev.length > 1){
console.log(ev.filter(data => data != '99999850'));
this.selectedTypes = ev.filter(data => data != '99999850');
}
if(ev.length == 0){
@@ -282,8 +280,6 @@ export class CreateProcessPage implements OnInit {
UsersSelected: attendees,
DispatchFolder: this.dispatchFolder,
}
console.log('this.postData', this.postData, this.taskType);
console.log(this.task.activityInstanceName);
try {
await this.processes.postDespatcho(this.postData).toPromise();
@@ -308,7 +304,6 @@ export class CreateProcessPage implements OnInit {
UsersSelected: attendees,
DispatchFolder: this.dispatchFolder,
}
console.log(this.postData);
try {
if(this.task.activityInstanceName == 'Tarefa de Despacho' || this.task.activityInstanceName == 'Reexecutar Despacho') {
@@ -338,7 +333,6 @@ export class CreateProcessPage implements OnInit {
UsersSelected: attendees,
DispatchFolder: this.dispatchFolder,
}
console.log(this.postData);
try {
await this.pedidoService.createDeferimento(this.postData).toPromise();
@@ -369,7 +363,6 @@ export class CreateProcessPage implements OnInit {
UsersSelected: attendees,
DispatchFolder: this.dispatchFolder,
}
console.log('this.postData', this.postData, this.taskType);
if(this.postData.DispatchFolder.Message){
try {
@@ -399,7 +392,6 @@ export class CreateProcessPage implements OnInit {
UsersSelected: attendees,
DispatchFolder: this.dispatchFolder,
}
console.log(this.postData);
try {
@@ -430,7 +422,6 @@ export class CreateProcessPage implements OnInit {
UsersSelected: attendees,
DispatchFolder: this.dispatchFolder,
}
console.log(this.postData);
try {
await this.pedidoService.createDeferimento(this.postData).toPromise();
@@ -488,10 +479,9 @@ export class CreateProcessPage implements OnInit {
}
} else {
console.log('unexpected activityInstanceName', this.task)
console.log('unexpected error')
}
console.log(body);
try {
await this.processes.CompleteTask(body).toPromise();
@@ -598,7 +588,6 @@ export class CreateProcessPage implements OnInit {
await modal.present();
modal.onDidDismiss().then(res=>{
if(res['data']=='close'){
console.log('Expedient Discard closed');
this.modalController.dismiss(res['data'])
}
@@ -634,7 +623,6 @@ export class CreateProcessPage implements OnInit {
}
async viewExpedientDetail() {
console.log(this.profile);
let classs;
if( window.innerWidth <= 800){
@@ -30,8 +30,6 @@ export class DarParecerPage implements OnInit {
}
ngOnInit() {
console.log(this.serialNumber
);
}
@@ -62,7 +60,6 @@ export class DarParecerPage implements OnInit {
},
"AttachmentList": docs,
}
console.log(body);
const loader = this.toastService.loading()
-4
View File
@@ -72,7 +72,6 @@ export class DelegarPage implements OnInit {
ngOnInit() {
this.adding = "intervenient";
console.log(this.task);
}
@@ -100,13 +99,10 @@ export class DelegarPage implements OnInit {
"Comment": this.note,
"DelegatedUserEmail": this.taskParticipants[0].EmailAddress,
}
console.log(body);
const loader = this.toastService.loading()
this.processes.DelegateTask(body).subscribe(res=>{
console.log(res);
this.toastService._successMessage('Processo delegado')
this.close();
},
@@ -60,7 +60,6 @@ export class DocumentDetailPage implements OnInit {
async LoadDocumentDetails() {
this.processes.GetDocumentDetails(this.docId, this.applicationId).subscribe(res=>{
console.log(res);
this.LoadedDocument = res;
@@ -68,7 +67,6 @@ export class DocumentDetailPage implements OnInit {
let thedate = new Date(this.LoadedDocument.DateDispatch || this.LoadedDocument.DocDate);
console.log(res)
this.customDate = this.days[thedate.getDay()]+ ", " + thedate.getDate() +" de " + ( this.months[thedate.getMonth()]);
let task: ExpedientTaskModalPageNavParamsTask
@@ -80,7 +78,7 @@ export class DocumentDetailPage implements OnInit {
} else if (document.ApplicationID == 8 || document.ApplicationId == 8) {
} else {
console.log('unexpected ApplicationID')
console.log('unexpected id')
}
@@ -99,7 +97,6 @@ export class DocumentDetailPage implements OnInit {
}
this.DocumentTask = Object.assign(task, res)
console.log('this.DocumentTask = DocumentTask', this.DocumentTask)
});
@@ -207,7 +204,6 @@ export class DocumentDetailPage implements OnInit {
}
async openBookMeetingModal() {
console.log(this.LoadedDocument);
let classs;
if( window.innerWidth < 701) {
@@ -271,8 +267,7 @@ export class DocumentDetailPage implements OnInit {
} else if(res.data.component == 'openExpedientActionsModal') {
this.openExpedientActionsModal(res.data.taskAction)
} else {
console.log(res.data)
console.log('component not found')
console.log('not found')
}
});
}
@@ -186,7 +186,6 @@ export class DocumentSetUpMeetingPage implements OnInit {
})
}
else{
console.log(this.document);
this.docs.push({
ApplicationId: this.document.ApplicationId || this.document.ApplicationType,
Source: 1,
@@ -34,7 +34,7 @@ export class DocumentViewerPage implements OnInit {
this.processes.getFileBase64(this.DocId).subscribe((res: any) => {
console.log(res)
this.pdfSrc= 'data:application/pdf;base64,'+ res.file
this.fileName = res.name
-3
View File
@@ -68,7 +68,6 @@ export class ForwardPage implements OnInit {
ngOnInit() {
this.adding = "intervenient";
console.log(this.task);
}
@@ -147,9 +146,7 @@ export class ForwardPage implements OnInit {
"FolderId": this.task.FolderId,
"AttachmentList" :docs,
}
console.log(body);
this.processes.CompleteParecerPrTask(body).subscribe(res=>{
console.log(res);
this.toastService._successMessage('Processo delegado');
this.goBack();
},
@@ -101,7 +101,6 @@ async getIconGallery(){
document.querySelector('img').addEventListener('click',removeImage)
})
function removeImage(ev){
console.log(ev.target, ev.currentTarget)
let img = ev.currentTarget
let src = ev.target.closest('.img')
src?.parentElement.removeChild(src)
-12
View File
@@ -48,8 +48,6 @@ export class ProfilePage implements OnInit {
this.loggeduser = authService.ValidatedUser;
console.log(this.loggeduser.RoleDescription)
}
ngOnInit() {
@@ -82,13 +80,11 @@ export class ProfilePage implements OnInit {
async getNotificationData() {
this.storageservice.get("Notifications").then((value) => {
console.log("Init get store", value)
this.DataArray = []
value.forEach((element, i) => {
let notificationObject;
if (element.data) {
console.log("ARaaAA", element)
notificationObject = {
index: i,
title: element.title,
@@ -125,12 +121,9 @@ export class ProfilePage implements OnInit {
this.DataArray.push(notificationObject)
});
this.notificationdata = this.DataArray
console.log("Notificaaa", this.notificationdata)
})
console.log("Notificaaa", this.notificationdata)
/* await new Promise(resolve => setTimeout(resolve, 1000));
await this.getNotificationData(); */
console.log('Timer badge count')
}
@@ -140,14 +133,12 @@ export class ProfilePage implements OnInit {
var am_pm = date.getHours() >= 12 ? "pm" : "am";
var minutes = date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes();
let time = hours + ":" + minutes /* + " " + am_pm */;
console.log('Formate', time)
return time;
}
notificatinsRoutes = (index, Service, Object, IdObject, FolderId) => {
if (Service === "agenda" && IdObject.length > 10) {
console.log("Id Lenght", IdObject.length)
this.zone.run(() => this.router.navigate(['/home/agenda', IdObject, 'agenda']));
}
else if (Service === "gabinete-digital" && Object === "expediente") {
@@ -201,15 +192,12 @@ export class ProfilePage implements OnInit {
}
deleteNotification(index) {
console.log("Delete notification first stata", this.notificationdata)
this.notificationdata = this.notificationdata.filter(item => item.index != index);
this.storageservice.store("Notifications", JSON.stringify(this.notificationdata)).then(() => {
this.storageservice.get("Notifications").then((value) => {
console.log("notfication state", value,)
});
});
console.log("Delete notification last stata", this.notificationdata)
}
@@ -33,7 +33,6 @@ export class SetRoomOwnerPage implements OnInit {
}
ngOnInit() {
console.log(this.members);
}
@@ -63,7 +62,6 @@ export class SetRoomOwnerPage implements OnInit {
let res:any = await this.wsChatMethodsService.addRoomOwner(this.roomId, user._id);
console.log(res);
if(res.error){
if(res.error.error == 'error-user-already-owner'){
@@ -40,7 +40,6 @@ export class ViewDocumentPage implements OnInit {
this.file.title = 'Sem Título'
}
console.log(this.task)
}
@@ -79,7 +78,7 @@ export class ViewDocumentPage implements OnInit {
} else if(res.data.component == 'openExpedientActionsModal') {
this.openExpedientActionsModal(res.data.taskAction)
} else {
console.log('component not found')
console.log('not found')
}
}
@@ -89,7 +89,6 @@ export class ViewEventPage implements OnInit {
JSON.parse(req).forEach(element => {
this.eventsService.editEvent(element, 2, 3).subscribe((res) => {
this.storage.remove('eventEdit')
console.log('eventEdit synchnize', res)
})
});
})
@@ -97,7 +96,6 @@ export class ViewEventPage implements OnInit {
JSON.parse(req).forEach(element => {
this.eventsService.editEvent(element, 2, 3).subscribe((res) => {
this.storage.remove('eventDelete')
console.log('eventEdit synchnize', res)
})
});
})
@@ -132,14 +130,11 @@ export class ViewEventPage implements OnInit {
this.eventsService.getEvent(this.eventId).subscribe(res => {
this.loadedEvent = res;
this.addEventToDb(res);
console.log('Loaded one event', res)
/* this.today = new Date(res.StartDate);
this.customDate = this.days[this.today.getDay()]+ ", " + this.today.getDate() +" de " + ( this.months[this.today.getMonth()]); */
loader.remove()
}, (error) => {
console.log('errorstatus ss',error.status)
if (error.status === 0) {
this.getFromDb();
} else {
@@ -190,7 +185,6 @@ export class ViewEventPage implements OnInit {
});
await modal.present();
modal.onDidDismiss().then((res) => {
console.log(res);
if (res) {
setTimeout(() => {
@@ -217,7 +211,6 @@ export class ViewEventPage implements OnInit {
});
await modal.present();
modal.onDidDismiss().then((res) => {
console.log(res);
if (res) {
setTimeout(() => {
@@ -231,7 +224,6 @@ export class ViewEventPage implements OnInit {
}
async editEvent() {
console.log(this.loadedEvent);
let classs;
if (window.innerWidth <= 800) {
@@ -250,7 +242,6 @@ export class ViewEventPage implements OnInit {
});
await modal.present();
modal.onDidDismiss().then((res) => {
console.log(res);
if (res) {
setTimeout(() => {
@@ -272,7 +263,6 @@ export class ViewEventPage implements OnInit {
const applicationId: any = this.loadedEvent.Attachments[this.dicIndex].ApplicationId
const selectedDoc = this.loadedEvent.Attachments[this.dicIndex]
console.log('selectedDoc', selectedDoc)
this.task = {
serialNumber: '',
@@ -390,7 +380,6 @@ export class ViewEventPage implements OnInit {
const loader = this.toastService.loading();
this.sqliteservice.getEventById(this.eventId).then((event) => {
let arrayevent = [];
console.log('EVENT ATTENDEES',event[0].Attendees)
let elemet = {
Attendees: (typeof JSON.parse(event[0].Attendees) === 'undefined') ? "" : JSON.parse(event[0].Attendees),
Body: JSON.parse(event[0].Body) || "",
@@ -413,7 +402,6 @@ export class ViewEventPage implements OnInit {
}
arrayevent.push(elemet);
this.loadedEvent = arrayevent[0];
console.log("Event ditails local,", elemet)
})
loader.remove()
}
@@ -36,10 +36,8 @@ export class ViewMediaPage implements OnInit {
}
ngOnInit() {
console.log(this.image)
this.base64Sanitize = this.sanitizer.bypassSecurityTrustResourceUrl(this.image);
console.log(this.base64Sanitize)
}