fix reported bugs 02/03/2024

This commit is contained in:
Peter Maquiran
2024-03-03 10:27:18 +01:00
parent 8585962629
commit e3d08c27b8
15 changed files with 86 additions and 28 deletions
+16
View File
@@ -82,6 +82,22 @@
}
]
},
"oapr": {
"fileReplacements": [
{
"replace": "src/environments/suport/oapr.ts",
"with": "src/environments/suport/oapr.ts"
}
]
},
"div": {
"fileReplacements": [
{
"replace": "src/environments/suport/dev.ts",
"with": "src/environments/suport/dev.ts"
}
]
},
"ci": {
"progress": false
}
+3 -1
View File
@@ -19,7 +19,9 @@
"cypress:open": "cypress open",
"cypress:run": "cypress run",
"docker:build": "docker build -t gabinetedigital:0.0.0.1 .",
"docker:publish": "docker run -p gabinetedigital:0.0.0.1"
"docker:publish": "docker run -p gabinetedigital:0.0.0.1",
"build:oapr": "ionic cap build android --configuration oapr",
"build:dev": "ionic cap build android --configuration dev"
},
"private": true,
"dependencies": {
+3 -2
View File
@@ -230,9 +230,10 @@
<!-- {{ month.monthInfo.monthName | json }} -->
<!-- <hr> -->
<div *ngFor="let day of month.days " class="EventListBox-container" >
<div *ngFor="let day of month.days; let i = index " class="EventListBox-container" >
<div class="day" *ngIf="!(i == 0 && isSelectedDayHasEvent)" >
<div class="day " [class.dayShow]="isSelectedDayHasEvent && hasEventToday" >
{{ day.daysInfo.dayName }} <div style="text-transform: capitalize; display: inline;">{{month.monthInfo.monthName}}</div>
</div>
+6
View File
@@ -1200,6 +1200,12 @@ export class AgendaPage implements OnInit {
return this.eventService.calendarRole.includes(str);
}
validateEvent(year, month, day) {
console.log(year, month, day)
return true
}
}
function endOfMonth(myDate) {
+6 -3
View File
@@ -123,8 +123,11 @@
<ion-list *ngSwitchCase="'Grupos'">
<ion-item-sliding >
<div *ngFor="let group of ChatSystemService._group"
[class.item-active]="group.id ==idSelected"
class="item item-hover d-flex">
<div class="item-icon">
<!-- <ion-icon class="icon" slot="start" src="assets/images/icons-chat-group-chat-40.svg"></ion-icon> -->
@@ -139,11 +142,11 @@
<div class="item-title add-ellipsis" [class.item-title-active]="group.id ==idSelected">
<p class="font-15-em add-ellipsis mb-0 white-space-nowrap" [class.bold-message]="group.messageUnread == true">{{group.name.split('-').join(' ')}}</p>
</div>
<div class="item-date font-13-em" [class.item-date-active]="group.id ==idSelected" *ngIf="group.lastMessage && !group.customFields.countDownDate">{{group.duration}}</div>
<div class="item-date font-13-em" [class.item-date-active]="group.id ==idSelected" *ngIf="group.customFields.countDownDate">{{group.countDownTime}}</div>
<div class="item-date font-13-em" [class.item-date-active]="group.id ==idSelected" *ngIf="group.lastMessage && !group.customFields.countDownDate">{{group.duration }}</div>
<div class="item-date font-13-em" [class.item-date-active]="group.id ==idSelected" *ngIf="group.customFields.countDownDate">{{group.countDownTime }}</div>
</div>
<div *ngIf="group.lastMessage" class="item-description d-flex align-items-center" [class.item-description-active]="group.id ==idSelected">
<div class="item-message font-13-em add-ellipsis white-space-nowrap" *ngIf="group.otherUserType == false">{{group.lastMessage.u.name}}: {{group.lastMessage.msg}} </div>
<div class="item-message font-13-em add-ellipsis white-space-nowrap" *ngIf="group.otherUserType == false">{{group.lastMessage.u.name}} <span *ngIf="group.lastMessage.u.name">:</span> {{group.lastMessage.msg}} </div>
<div class="font-13-em" *ngIf="group.otherUserType == true">{{group.userThatIsTyping}} está escrever ...</div>
<div class="item-files add-ellipsis" *ngIf="group.lastMessage.file">
@@ -31,14 +31,14 @@
</div>
<div class="header-bottom-contacts" *ngIf="ChatSystemService.getGroupRoom(roomId)">
<ion-label class="contacts-list"
*ngFor="let member of ChatSystemService.getGroupRoom(roomId).membersExcludeMe">
{{member.name}},
*ngFor="let member of ChatSystemService.getGroupRoom(roomId).membersExcludeMe; let last = last">
{{member.name}}<span *ngIf="!last">, </span>
</ion-label>
</div>
</div>
<div *ngIf="roomCountDownDate" class="d-flex align-items-center yellow-orange pl-10">
<i class="far fa-clock font-15"></i>
<ion-label class="font-15 pl-10" color="warning">{{roomCountDownDate}}</ion-label>
<ion-label class="font-15 pl-10" color="warning">{{ChatSystemService.getGroupRoom(roomId).countDownTime}}</ion-label>
</div>
</div>
</ion-toolbar>
+26 -8
View File
@@ -131,6 +131,10 @@ export class ListBoxService {
if (this.dateService.notSameDate(startDate, endDate)) {
const cloneSelectedDate = new Date(selectedDate)
cloneSelectedDate.setHours(0)
cloneSelectedDate.setMinutes(0)
cloneSelectedDate.setSeconds(0)
if (diffDays <= 150 ) {
@@ -138,7 +142,9 @@ export class ListBoxService {
const StartEvent = this.transForm(event, {startMany: true, endMany: false, middle: false})
if(this.CanPush(event, selectedDate)) {days[day].push(StartEvent); this.push(StartEvent, year)}
if(this.CanPush(event, selectedDate) && (new Date(event.start)).getTime() >= cloneSelectedDate.getTime()) {
days[day].push(StartEvent); this.push(StartEvent, year)
}
let i = 1;
@@ -150,11 +156,12 @@ export class ListBoxService {
const newDate = startDate.setDate(startDate.getDate()+ i)
let otherDays = this.dateService.getDay(newDate)
event['other'] = true
const cloneEvent = {...event}
cloneEvent['other'] = true
cloneEvent.start = new Date(startDate)
event.start = newDate
if(!days.hasOwnProperty(otherDays)) {
days[otherDays] = []
}
@@ -162,13 +169,18 @@ export class ListBoxService {
startDate.getMonth() != endDate.getMonth() ||
startDate.getDate() != endDate.getDate())) {
// last push
const EndEvent = this.transForm(event, {startMany: false, endMany: true, middle: false})
if(this.CanPush(event, selectedDate)) {days[otherDays].push(EndEvent) ; this.push(event, year)}
const EndEvent = this.transForm(cloneEvent, {startMany: false, endMany: true, middle: false})
if(this.CanPush(cloneEvent, selectedDate) && cloneEvent.start.getTime() >= cloneSelectedDate.getTime()) {
days[otherDays].push(EndEvent) ; this.push(cloneEvent, year)
}
} else {
const EndEvent = this.transForm(event, {startMany: false,endMany: true, middle: true})
if(this.CanPush(event, selectedDate)) {days[otherDays].push(EndEvent) ; this.push(event, year)}
const EndEvent = this.transForm(cloneEvent, {startMany: false,endMany: true, middle: true})
if(this.CanPush(cloneEvent, selectedDate) && cloneEvent.start.getTime() >= cloneSelectedDate.getTime()) {
days[otherDays].push(EndEvent) ; this.push(cloneEvent, year)
}
}
days[otherDays] = days[otherDays].reverse()
@@ -256,6 +268,12 @@ export class ListBoxService {
CanPush(event: any, selectedDate: Date) {
const cloneSelectedDate = new Date(selectedDate);
cloneSelectedDate.setHours(0)
cloneSelectedDate.setMinutes(0)
cloneSelectedDate.setSeconds(0)
const limite = this.endOfMonth(selectedDate)
limite.setDate(limite.getDate() + 10)
limite.setHours(0)
+12
View File
@@ -245,6 +245,12 @@ export class RoomService {
this.ChatSystemService.deleteRoom(this.id);
this.ChatSystemService.getAllRooms();
this.chatServiceDeleteRoom(this.id);
}, (error)=> {
if(error.status != 0) {
this.ChatSystemService.deleteRoom(this.id);
this.ChatSystemService.getAllRooms();
this.chatServiceDeleteRoom(this.id);
}
});
}
else {
@@ -252,6 +258,12 @@ export class RoomService {
this.ChatSystemService.deleteRoom(this.id);
this.ChatSystemService.getAllRooms();
this.chatServiceDeleteRoom(this.id);
}, (error)=> {
if(error.status != 0) {
this.ChatSystemService.deleteRoom(this.id);
this.ChatSystemService.getAllRooms();
this.chatServiceDeleteRoom(this.id);
}
});
}
}
@@ -19,8 +19,8 @@
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " src="assets/icon/theme/gov/icons-user.svg"></ion-icon>
</div>
<div class="header-bottom-contacts" *ngIf="ChatSystemService.getGroupRoom(roomId)">
<ion-label class="contacts-list" *ngFor="let member of ChatSystemService.getGroupRoom(roomId).membersExcludeMe" >
{{member.name}},
<ion-label class="contacts-list" *ngFor="let member of ChatSystemService.getGroupRoom(roomId).membersExcludeMe; let last = last" >
{{member.name}}<span *ngIf="!last">, </span>
</ion-label>
</div>
</div>
+2 -2
View File
@@ -1,6 +1,6 @@
import { Environment } from './../app/models/envarioment'
import { oaprProd } from './suport/oapr'
import { doneITProd } from './suport/doneIt'
import { environment as oaprProd } from './suport/oapr'
import { environment as doneITProd } from './suport/doneIt'
import { DevDev } from './suport/dev'
+2 -2
View File
@@ -1,7 +1,7 @@
import { Environment } from './../app/models/envarioment'
import { oaprDev } from './suport/oapr'
import { environment as oaprDev } from './suport/oapr'
import { doneITDev } from './suport/doneIt'
import { DevDev } from './suport/dev'
export const environment: Environment = DevDev
export const environment: Environment = oaprDev
+1 -1
View File
@@ -1,7 +1,7 @@
import { versionData } from '../../../version/git-version'
import { Environment } from './../../app/models/envarioment'
export const DevProd: Environment = {
export const environment: Environment = {
id:'3',
apiURL: 'http://gpr-dev-01:83/jwt/api/',
/* apiURL: 'https://gdapi-dev-0.dyndns.info/jwt/api/', */
+2 -2
View File
@@ -1,7 +1,7 @@
import { versionData } from '../../../version/git-version';
import { Environment } from './../../app/models/envarioment';
export const doneITProd: Environment = {
export const environment: Environment = {
id:'1',
apiURL: 'https://gdapi-dev.dyndns.info/api/',
apiChatUrl: 'https://gdchat-dev.dyndns.info/api/v1/',
@@ -59,4 +59,4 @@ export const doneITDev: Environment = {
dispatchPR: 'Despachos Titular',
storageProduction: false,
rejectUnauthorized: "true"
};
};
+1 -1
View File
@@ -2,7 +2,7 @@ import { versionData } from '../../../version/git-version'
import { Environment } from './../../app/models/envarioment'
export const oaprProd: Environment = {
export const environment: Environment = {
id: '0',
/* apiURL: 'http://gpr-dev-01:83/jwt/api/', */
apiURL: 'https://gdqas-api.oapr.gov.ao/api/',
+1 -1
View File
@@ -10,4 +10,4 @@
],
"nuxt.isNuxtApp": false
}
}
}