mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
fix 1 to 100%
This commit is contained in:
@@ -4,6 +4,27 @@ export const Cy = {
|
||||
b: {
|
||||
enter: 'loginbutton'
|
||||
}
|
||||
},
|
||||
gabinete: {
|
||||
aside: {
|
||||
despacho: 'cypress-despacho-item'
|
||||
},
|
||||
},
|
||||
search: {
|
||||
input: {
|
||||
subject: 'cy-subject-input'
|
||||
},
|
||||
b: {
|
||||
search:'cy-search-button'
|
||||
}
|
||||
}
|
||||
},
|
||||
header: {
|
||||
b: {
|
||||
search: 'cy-search-button'
|
||||
}
|
||||
},
|
||||
footer: {
|
||||
gabinete: 'cypress-gabinete-tab',
|
||||
}
|
||||
}
|
||||
|
||||
@@ -291,7 +291,7 @@ export class AgendaPage implements OnInit {
|
||||
try {
|
||||
this.myCal.update();
|
||||
this.myCal.loadEvents();
|
||||
this.onDropDownScrollWeal()
|
||||
// this.onDropDownScrollWeal()
|
||||
} catch (e) { }
|
||||
|
||||
//this.reloadCalendar();
|
||||
@@ -438,19 +438,19 @@ export class AgendaPage implements OnInit {
|
||||
|
||||
};
|
||||
|
||||
onDropDownScrollWeal() {
|
||||
// onDropDownScrollWeal() {
|
||||
|
||||
try {
|
||||
setTimeout(() => {
|
||||
document.querySelector('.dropdown-scroll-weel').querySelectorAll('.active')[0].scrollIntoView({ behavior: 'smooth', block: 'center' });
|
||||
setTimeout(() => {
|
||||
document.querySelector('.dropdown-scroll-weel').querySelectorAll('.active')[1].scrollIntoView({ behavior: 'smooth', block: 'center' });
|
||||
}, 300)
|
||||
}, 10)
|
||||
} catch (error) {
|
||||
// console.log(error)
|
||||
}
|
||||
}
|
||||
// try {
|
||||
// setTimeout(() => {
|
||||
// document.querySelector('.dropdown-scroll-weel').querySelectorAll('.active')[0].scrollIntoView({ behavior: 'smooth', block: 'center' });
|
||||
// setTimeout(() => {
|
||||
// document.querySelector('.dropdown-scroll-weel').querySelectorAll('.active')[1].scrollIntoView({ behavior: 'smooth', block: 'center' });
|
||||
// }, 300)
|
||||
// }, 10)
|
||||
// } catch (error) {
|
||||
// // console.log(error)
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
currentMoth = {
|
||||
@@ -795,7 +795,7 @@ export class AgendaPage implements OnInit {
|
||||
try {
|
||||
this.myCal.update();
|
||||
this.myCal.loadEvents();
|
||||
this.onDropDownScrollWeal()
|
||||
// this.onDropDownScrollWeal()
|
||||
} catch (e) { }
|
||||
|
||||
this.updateEventListBox()
|
||||
@@ -817,7 +817,7 @@ export class AgendaPage implements OnInit {
|
||||
try {
|
||||
this.myCal.update();
|
||||
this.myCal.loadEvents();
|
||||
this.onDropDownScrollWeal()
|
||||
// this.onDropDownScrollWeal()
|
||||
} catch (e) { }
|
||||
|
||||
this.updateEventListBox()
|
||||
|
||||
@@ -713,13 +713,10 @@ export class NewPublicationPage implements OnInit {
|
||||
.then(async (content) => {
|
||||
this.filecontent = true;
|
||||
|
||||
const file = new File([element.blob], element.name);
|
||||
|
||||
const newAttachment = new PublicationAttachmentEntity(
|
||||
{
|
||||
base64: 'data:video/mp4;base64,' + content.data,
|
||||
base64: content.data,
|
||||
extension: 'mp4',
|
||||
blobFile: file,
|
||||
FileType: this.checkFileType.checkFileType('mp4') as any,
|
||||
OriginalFileName: 'load video'
|
||||
}
|
||||
@@ -763,13 +760,10 @@ export class NewPublicationPage implements OnInit {
|
||||
|
||||
this.filecontent = true;
|
||||
|
||||
const file = new File([element.blob], element.name);
|
||||
window['a'] = element
|
||||
const newAttachment = new PublicationAttachmentEntity(
|
||||
{
|
||||
base64: 'data:video/mp4;base64,' + content.data,
|
||||
base64: content.data,
|
||||
extension: 'mp4',
|
||||
blobFile: file,
|
||||
FileType: this.checkFileType.checkFileType('mp4') as any,
|
||||
OriginalFileName: 'load video'
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
</button>
|
||||
</div> -->
|
||||
<div class="input-text d-flex ion-align-items-center pm-10 pl-10">
|
||||
<ion-input (keyup.enter)="basicSearch()" [(ngModel)]='searchSubject' class="search-input" type="search"
|
||||
<ion-input (keyup.enter)="basicSearch()" [(ngModel)]='searchSubject' class="search-input {{Cy.p.search.input.subject}}" type="search"
|
||||
placeholder="Assunto"></ion-input>
|
||||
</div>
|
||||
<!-- <div (click)="clearSearchInput()" class="d-flex align-center icon">
|
||||
@@ -65,7 +65,7 @@
|
||||
</div> -->
|
||||
|
||||
</div>
|
||||
<div (click)="basicSearch()" class="d-flex align-center searchChild pl-10">
|
||||
<div (click)="basicSearch()" class="d-flex align-center searchChild pl-10 {{Cy.p.search.b.search}}">
|
||||
|
||||
<ion-icon class="icon-z" slot="end" src="assets/images/theme/gov/icons-search.svg"></ion-icon>
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@ import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
|
||||
import { NGX_MAT_DATE_FORMATS } from '@angular-material-components/datetime-picker';
|
||||
import { NgxMatDateFormats } from '@angular-material-components/datetime-picker';
|
||||
import { momentG } from 'src/plugin/momentG';
|
||||
import { Cy } from 'cypress/enum'
|
||||
|
||||
const CUSTOM_DATE_FORMATS: NgxMatDateFormats = {
|
||||
parse: {
|
||||
@@ -98,6 +99,8 @@ export class SearchPage implements OnInit {
|
||||
@ViewChild('picker1') picker1: any;
|
||||
checkAgenda: boolean;
|
||||
|
||||
Cy = Cy
|
||||
|
||||
constructor(private modalController: ModalController,
|
||||
private search: SearchService,
|
||||
private modalCtrl: ModalController,
|
||||
@@ -270,7 +273,7 @@ export class SearchPage implements OnInit {
|
||||
},
|
||||
);
|
||||
// console.log('set visualy')
|
||||
}, 300)
|
||||
}, 1000)
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<div class="mobile pt-20 d-flex div-top-header justify-space-between">
|
||||
|
||||
<div title="Pesquisa" *ngIf="!hideSearchBtn" class="div-search viewport-font-size">
|
||||
<div (click)="openSearch()">
|
||||
<div (click)="openSearch()" class="{{Cy.header.b.search}}">
|
||||
<ion-icon *ngIf="ThemeService.currentTheme == 'doneIt' " class="font-45-em"
|
||||
src="assets/images/theme/doneIt/icons-search.svg"></ion-icon>
|
||||
<ion-icon *ngIf=" ThemeService.currentTheme == 'default' " class="font-45-em"
|
||||
|
||||
@@ -18,6 +18,7 @@ import { AttachmentsService } from 'src/app/services/attachments.service';
|
||||
import { NotificationHolderService } from 'src/app/store/notification-holder.service';
|
||||
import { HeaderSettingsService } from "src/app/services/header-settings.service"
|
||||
import { PublicationHolderService } from 'src/app/services/publication/publication-holder.service'
|
||||
import { Cy } from 'cypress/enum'
|
||||
@Component({
|
||||
selector: 'app-header',
|
||||
templateUrl: './header.page.html',
|
||||
@@ -53,6 +54,8 @@ export class HeaderPage implements OnInit {
|
||||
}
|
||||
}
|
||||
|
||||
Cy = Cy
|
||||
|
||||
constructor(
|
||||
private router: Router,
|
||||
private modalController: ModalController,
|
||||
|
||||
@@ -101,6 +101,11 @@ export class PublicationFromMvService {
|
||||
return e
|
||||
})
|
||||
|
||||
} else {
|
||||
window['upload-header-set-retry'](this.id)
|
||||
this.toastService._badRequest("ocorreu um erro ao enviar o ficheiro")
|
||||
return true
|
||||
// loader.remove()
|
||||
}
|
||||
|
||||
const publication: any = Object.assign({}, this.form)
|
||||
|
||||
Reference in New Issue
Block a user