Peter solved bug

This commit is contained in:
Eudes Inácio
2023-06-12 08:24:20 +01:00
20 changed files with 67 additions and 68 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ export class InactivityGuard implements CanActivate {
route: ActivatedRouteSnapshot, route: ActivatedRouteSnapshot,
state: RouterStateSnapshot): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree { state: RouterStateSnapshot): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree {
console.log('hire inactinity!', state.url) // console.log('hire inactinity!', state.url)
if ( (this.platform.is('desktop') || this.platform.is('mobileweb')) ) { if ( (this.platform.is('desktop') || this.platform.is('mobileweb')) ) {
+1 -1
View File
@@ -133,7 +133,7 @@ export class ChatPage implements OnInit {
if(event.notification == "recive") { if(event.notification == "recive") {
this.onSegmentChange() this.onSegmentChange()
} }
console.log(event) // console.log(event)
}); });
} }
@@ -123,7 +123,7 @@ export class DespachoPrPage implements OnInit {
this.fulltask = res; this.fulltask = res;
// this.updateProcessOnDB(res); // this.updateProcessOnDB(res);
console.log('this.fulltask', this.fulltask) // console.log('this.fulltask', this.fulltask)
let thedate = new Date(this.task.CreateDate); let thedate = new Date(this.task.CreateDate);
this.customDate = this.days[thedate.getDay()] + ", " + thedate.getDate() + " de " + (this.months[thedate.getMonth()]); this.customDate = this.days[thedate.getDay()] + ", " + thedate.getDate() + " de " + (this.months[thedate.getMonth()]);
@@ -395,7 +395,7 @@ export class DespachoPrPage implements OnInit {
await this.generateDiploma(res.data.note, docs); await this.generateDiploma(res.data.note, docs);
} }
else if (actionName == 'Concluido') { else if (actionName == 'Concluido') {
console.log('actionName', actionName) // console.log('actionName', actionName)
await this.concluir(res.data.note, docs); await this.concluir(res.data.note, docs);
} }
else if (actionName == 'Reexecução') { else if (actionName == 'Reexecução') {
@@ -492,7 +492,7 @@ export class DespachoPage implements OnInit {
await popover.present(); await popover.present();
popover.onDidDismiss().then((res)=> { popover.onDidDismiss().then((res)=> {
console.log('res', res.data) // console.log('res', res.data)
if(res.data == 'back') { if(res.data == 'back') {
this.goBack(); this.goBack();
} }
@@ -59,18 +59,16 @@
</div> </div>
</ion-header> </ion-header>
<ion-content> <ion-content>
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
<ion-refresher-content
pullingIcon="chevron-down-circle-outline"
pullingText="deslize para actualizar"
refreshingSpinner="circles"
refreshingText="A actualizar...">
</ion-refresher-content>
</ion-refresher>
<div class="main-content width-100 overflow-y-auto height-100"> <div class="main-content width-100 overflow-y-auto height-100">
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
<ion-refresher-content
pullingIcon="chevron-down-circle-outline"
pullingText="deslize para actualizar"
refreshingSpinner="circles"
refreshingText="A actualizar...">
</ion-refresher-content>
</ion-refresher>
<div > <div >
<ion-progress-bar type="indeterminate" *ngIf="skeletonLoader"></ion-progress-bar> <ion-progress-bar type="indeterminate" *ngIf="skeletonLoader"></ion-progress-bar>
<div class="height-100"> <div class="height-100">
@@ -19,16 +19,17 @@
</ion-header> </ion-header>
<ion-content> <ion-content>
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
<ion-refresher-content
pullingIcon="chevron-down-circle-outline"
pullingText="deslize para actualizar"
refreshingSpinner="circles"
refreshingText="A actualizar...">
</ion-refresher-content>
</ion-refresher>
<div class="main-content width-100 overflow-y-auto height-100"> <div class="main-content width-100 overflow-y-auto height-100">
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
<ion-refresher-content
pullingIcon="chevron-down-circle-outline"
pullingText="deslize para actualizar"
refreshingSpinner="circles"
refreshingText="A actualizar...">
</ion-refresher-content>
</ion-refresher>
<ion-progress-bar type="indeterminate" *ngIf="skeletonLoader"></ion-progress-bar> <ion-progress-bar type="indeterminate" *ngIf="skeletonLoader"></ion-progress-bar>
<div class="d-flex ion-justify-content-between ion-align-items-center" style=" <div class="d-flex ion-justify-content-between ion-align-items-center" style="
@@ -136,14 +137,6 @@
<div class="main-content width-100 overflow-y-auto height-100"> <div class="main-content width-100 overflow-y-auto height-100">
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
<ion-refresher-content
pullingIcon="chevron-down-circle-outline"
pullingText="deslize para actualizar"
refreshingSpinner="circles"
refreshingText="A actualizar...">
</ion-refresher-content>
</ion-refresher>
<div > <div >
<ion-progress-bar type="indeterminate" *ngIf="skeletonLoader"></ion-progress-bar> <ion-progress-bar type="indeterminate" *ngIf="skeletonLoader"></ion-progress-bar>
@@ -384,7 +384,7 @@ export class DiplomaPage implements OnInit {
} }
tempMethod(actionname) { tempMethod(actionname) {
console.log(actionname) // console.log(actionname)
} }
@@ -112,7 +112,7 @@ export class ApproveEventPage implements OnInit {
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()]);
} catch(error) { } catch(error) {
console.log(this.loadedEvent) // console.log(this.loadedEvent)
throw(error) throw(error)
} }
@@ -136,7 +136,7 @@ export class ApproveEventPage implements OnInit {
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()]);
} catch(error) { } catch(error) {
console.log(this.loadedEvent) // console.log(this.loadedEvent)
throw(error) throw(error)
} }
@@ -147,7 +147,7 @@ export class BookMeetingModalPage implements OnInit {
if(!this.CalendarName) { if(!this.CalendarName) {
if(this.eventService.calendarNamesAry.includes('Meu calendario')) { if(this.eventService.calendarNamesAry.includes('Meu calendario')) {
this.CalendarName = 'Meu calendario'; this.CalendarName = 'Meu calendario';
console.log(this.eventService.calendarNamesAry) // console.log(this.eventService.calendarNamesAry)
} else { } else {
this.CalendarName = this.eventService.calendarNamesAry[0] this.CalendarName = this.eventService.calendarNamesAry[0]
} }
@@ -164,7 +164,7 @@ export class BookMeetingModalPage implements OnInit {
} }
ngOnInit() { ngOnInit() {
console.log('TEsTEROLE',this.eventService.calendarNamesAry) // console.log('TEsTEROLE',this.eventService.calendarNamesAry)
this.adding = "intervenient"; this.adding = "intervenient";
this.getAttachments(); this.getAttachments();
this.setDefaultTime() this.setDefaultTime()
@@ -95,7 +95,7 @@ export class ExpedienteDetailPage implements OnInit {
public TaskService: TaskService public TaskService: TaskService
) { ) {
this.loggeduser = SessionStore.user this.loggeduser = SessionStore.user
console.log('SessionStore', SessionStore) // console.log('SessionStore', SessionStore)
this.activatedRoute.paramMap.subscribe(params => { this.activatedRoute.paramMap.subscribe(params => {
if (params["params"].SerialNumber) { if (params["params"].SerialNumber) {
@@ -59,7 +59,7 @@ export class ExpedientePage implements OnInit {
if(event.notification == "recive") { if(event.notification == "recive") {
this.refreshing(); this.refreshing();
} }
console.log(event) // console.log(event)
}) })
} }
@@ -460,11 +460,11 @@ export class GabineteDigitalPage implements OnInit {
doRefreshAside() { doRefreshAside() {
try { try {
window['gabinete-aside-refresh']() window['gabinete-aside-refresh']()
} catch (error) { } catch(error) {}
}
setTimeout(() => { setTimeout(() => {
this.loadAllProcesses(); this.loadAllProcesses();
}, 1000) }, 1000)
@@ -76,16 +76,17 @@
</ion-header> </ion-header>
<ion-content> <ion-content>
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
<ion-refresher-content
pullingIcon="chevron-down-circle-outline"
pullingText="deslize para actualizar"
refreshingSpinner="circles"
refreshingText="A actualizar...">
</ion-refresher-content>
</ion-refresher>
<div class="main-content width-100 overflow-y-auto height-100"> <div class="main-content width-100 overflow-y-auto height-100">
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
<ion-refresher-content
pullingIcon="chevron-down-circle-outline"
pullingText="deslize para actualizar"
refreshingSpinner="circles"
refreshingText="A actualizar...">
</ion-refresher-content>
</ion-refresher>
<div class="width-100" [ngSwitch]="segment"> <div class="width-100" [ngSwitch]="segment">
<ion-progress-bar type="indeterminate" *ngIf="skeletonLoader"></ion-progress-bar> <ion-progress-bar type="indeterminate" *ngIf="skeletonLoader"></ion-progress-bar>
@@ -1,6 +1,12 @@
<ion-content> <ion-content>
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
<ion-progress-bar type="indeterminate" *ngIf="showLoader"></ion-progress-bar>
<ion-refresher-content>
</ion-refresher-content>
</ion-refresher>
<div class="content-container"> <div class="content-container">
<div *ngIf="publication.Title != ''"> <div *ngIf="publication.Title != ''">
<div class="title-content"> <div class="title-content">
@@ -14,11 +20,7 @@
<p class="post-data">{{publication.DatePublication | date: 'dd-MM-yy | h:mm'}}</p> <p class="post-data">{{publication.DatePublication | date: 'dd-MM-yy | h:mm'}}</p>
</div> </div>
</div> </div>
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
<ion-progress-bar type="indeterminate" *ngIf="showLoader"></ion-progress-bar>
<ion-refresher-content>
</ion-refresher-content>
</ion-refresher>
<div class="post-item"> <div class="post-item">
<div *ngIf="publication.FileBase64.length > 30" class="post-img"> <div *ngIf="publication.FileBase64.length > 30" class="post-img">
<img src="{{publication.FileBase64}}" alt="image" tappable (click)="openPreview(publication.FileBase64)"> <img src="{{publication.FileBase64}}" alt="image" tappable (click)="openPreview(publication.FileBase64)">
@@ -35,7 +35,7 @@ export class PublicationDetailPage implements OnInit {
) { ) {
this.activatedRoute.paramMap.subscribe(params => { this.activatedRoute.paramMap.subscribe(params => {
console.log(params["params"]) // console.log(params["params"])
if(params["params"]) { if(params["params"]) {
this.folderId = params["params"].folderId; this.folderId = params["params"].folderId;
this.publicationId = params["params"].publicationId; this.publicationId = params["params"].publicationId;
+2 -2
View File
@@ -236,7 +236,7 @@ export class SearchPage implements OnInit {
gridSize: 15 gridSize: 15
}, },
); );
console.log('set visualy') // console.log('set visualy')
}, 300) }, 300)
}); });
@@ -364,7 +364,7 @@ export class SearchPage implements OnInit {
this.showLoader = false; this.showLoader = false;
// this.searchResult = "Registo não encontrado" // this.searchResult = "Registo não encontrado"
this.httpErrorhandle.httpStatusHandle(error) this.httpErrorhandle.httpStatusHandle(error)
console.log(error) // console.log(error)
}); });
} }
else if ( this.type == "AccoesPresidenciais & ArquivoDespachoElect") { else if ( this.type == "AccoesPresidenciais & ArquivoDespachoElect") {
+5
View File
@@ -109,6 +109,9 @@ export class TaskService {
} }
overdueTask(isoDateString:string) { overdueTask(isoDateString:string) {
if(!isoDateString) {
return false
}
return (new Date()).getTime() > (new Date(isoDateString)).getTime() return (new Date()).getTime() > (new Date(isoDateString)).getTime()
} }
@@ -132,7 +135,9 @@ export class TaskService {
} else if (attribute == 'Não lidos') { } else if (attribute == 'Não lidos') {
return !(item.TaskStatus == 'Open' || item.taskStatus == 'Open') return !(item.TaskStatus == 'Open' || item.taskStatus == 'Open')
} else if (attribute == 'OverdueTasks') { } else if (attribute == 'OverdueTasks') {
return this.overdueTask(item.Deadline || item.deadline) return this.overdueTask(item.Deadline || item.deadline)
} }
return true return true
} }
@@ -106,7 +106,7 @@ export class EventListPage implements OnInit {
this.eventoaprovacaostore.save(segment, this.eventsList) this.eventoaprovacaostore.save(segment, this.eventsList)
} else if(segment) { } else if(segment) {
console.log('segment', segment) // console.log('segment', segment)
this.color = 'pr' this.color = 'pr'
let allEvents = await this.processes.eventsToApprove(segment,'agenda desktop').toPromise() let allEvents = await this.processes.eventsToApprove(segment,'agenda desktop').toPromise()
+2 -2
View File
@@ -32,7 +32,7 @@ export const oaprDev: Environment = {
apiWsChatUrl: 'wss://gd-chat.oapr.gov.ao/websocket', apiWsChatUrl: 'wss://gd-chat.oapr.gov.ao/websocket',
logoLabel: 'Presidente da República', logoLabel: 'Presidente da República',
despachoLabel: 'Presidencial', despachoLabel: 'Presidencial',
despachoLabel2: 'Despachos Presidenciais', despachoLabel2: 'Despachos Presidênciais',
production: false, production: false,
domain: 'oapr.gov.ao', domain: 'oapr.gov.ao',
defaultuser: 'gmanuel@oapr.gov.ao', defaultuser: 'gmanuel@oapr.gov.ao',
@@ -44,6 +44,6 @@ export const oaprDev: Environment = {
agendaVP: 'Agenda do MD', agendaVP: 'Agenda do MD',
PR: 'PR', PR: 'PR',
VP: '', VP: '',
dispatchPR: 'Despachos Presidenciais', dispatchPR: 'Despachos Presidênciais',
sentryUrl: 'https://9920cc36f1d740b987426ee8d80cf588@o4504340905525248.ingest.sentry.io/4504340946419712', sentryUrl: 'https://9920cc36f1d740b987426ee8d80cf588@o4504340905525248.ingest.sentry.io/4504340946419712',
}; };
+7 -7
View File
@@ -1,12 +1,12 @@
export let versionData = { export let versionData = {
"shortSHA": "4f90a6649", "shortSHA": "d011b2749",
"SHA": "4f90a66493b84e3b8d78ff48c1c305531a9a9db2", "SHA": "d011b274930a49e44e2694619e5f5383be61ad7b",
"branch": "feature/gabinete-search", "branch": "feature/gabinete-search",
"lastCommitAuthor": "'Peter Maquiran'", "lastCommitAuthor": "'Eudes Inácio'",
"lastCommitTime": "'Sun Jun 11 20:25:07 2023 +0100'", "lastCommitTime": "'Mon Jun 12 08:20:48 2023 +0100'",
"lastCommitMessage": "remove text", "lastCommitMessage": "Bug on refresh button solved",
"lastCommitNumber": "5001", "lastCommitNumber": "5002",
"change": "", "change": "",
"changeStatus": "On branch feature/gabinete-search\nYour branch is behind 'origin/feature/gabinete-search' by 4 commits, and can be fast-forwarded.\n (use \"git pull\" to update your local branch)\n\nChanges to be committed:\n (use \"git restore --staged <file>...\" to unstage)\n\tmodified: src/app/pages/gabinete-digital/gabinete-digital.page.html\n\tmodified: src/app/pages/gabinete-digital/gabinete-digital.page.ts\n\tmodified: src/environments/suport/oapr.ts", "changeStatus": "On branch feature/gabinete-search\nYour branch and 'origin/feature/gabinete-search' have diverged,\nand have 1 and 4 different commits each, respectively.\n (use \"git pull\" to merge the remote branch into yours)\n\nAll conflicts fixed but you are still merging.\n (use \"git commit\" to conclude merge)\n\nChanges to be committed:\n\tmodified: src/app/guards/inactivity.guard.ts\n\tmodified: src/app/pages/chat/chat.page.ts\n\tmodified: src/app/pages/gabinete-digital/despachos-pr/despacho-pr/despacho-pr.page.ts\n\tmodified: src/app/pages/gabinete-digital/despachos/despacho/despacho.page.ts\n\tmodified: src/app/pages/gabinete-digital/despachos/despachos.page.html\n\tmodified: src/app/pages/gabinete-digital/diplomas-gerar/diplomas-gerar.page.html\n\tmodified: src/app/pages/gabinete-digital/diplomas/diploma/diploma.page.ts\n\tmodified: src/app/pages/gabinete-digital/event-list/approve-event/approve-event.page.ts\n\tmodified: src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page.ts\n\tmodified: src/app/pages/gabinete-digital/expediente/expediente-detail/expediente-detail.page.ts\n\tmodified: src/app/pages/gabinete-digital/expediente/expediente.page.ts\n\tmodified: src/app/pages/gabinete-digital/gabinete-digital.page.ts\n\tmodified: src/app/pages/gabinete-digital/pedidos/pedidos.page.html\n\tmodified: src/app/pages/publications/publication-detail/publication-detail.page.html\n\tmodified: src/app/pages/publications/view-publications/publication-detail/publication-detail.page.ts\n\tmodified: src/app/pages/search/search.page.ts\n\tmodified: src/app/services/task.service.ts\n\tmodified: src/app/shared/agenda/event-list/event-list.page.ts\n\tmodified: src/environments/suport/oapr.ts",
"changeAuthor": "eudes.inacio" "changeAuthor": "eudes.inacio"
} }