teste new formate date

This commit is contained in:
tiago.kayaya
2021-02-09 15:39:39 +01:00
parent 021368a04f
commit 174bca6c0e
223 changed files with 3387 additions and 1906 deletions
@@ -302,7 +302,7 @@ const CameraPWA = class {
}
async initPhotoCapabilities(imageCapture) {
const c = await imageCapture.getPhotoCapabilities();
if (c.fillLightMode && c.fillLightMode.length > 1) {
if (c.fillLightMode.length > 1) {
this.flashModes = c.fillLightMode.map(m => m);
// Try to recall the current flash mode
if (this.flashMode) {
File diff suppressed because one or more lines are too long
@@ -542,7 +542,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
case 2:
c = _context6.sent;
if (c.fillLightMode && c.fillLightMode.length > 1) {
if (c.fillLightMode.length > 1) {
this.flashModes = c.fillLightMode.map(function (m) {
return m;
}); // Try to recall the current flash mode
File diff suppressed because one or more lines are too long
@@ -497,10 +497,14 @@ let EventsPage = class EventsPage {
}
RefreshEvents() {
this.showLoader = true;
let date = new Date();
date.setMonth(date.getMonth() + 1);
let start = date.getFullYear() + "-" + date.getMonth() + "-" + date.getDate() + " " + date.getHours() + ":" + date.getMinutes() + ":" + date.getSeconds();
let end = date.getFullYear() + "-" + date.getMonth() + "-" + date.getDate() + " 23:59:59";
switch (this.segment) {
case "Combinada":
if (this.profile == "mdgpr") {
this.eventService.getAllMdEvents(this.today.toLocaleString(), this.todayEnd.toLocaleString()).subscribe(res => {
this.eventService.getAllMdEvents(start, end).subscribe(res => {
this.eventsList = res;
if (res.length > 0) {
this.currentEvent = res[0].Subject;
File diff suppressed because one or more lines are too long
@@ -936,11 +936,15 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
var _this9 = this;
this.showLoader = true;
var date = new Date();
date.setMonth(date.getMonth() + 1);
var start = date.getFullYear() + "-" + date.getMonth() + "-" + date.getDate() + " " + date.getHours() + ":" + date.getMinutes() + ":" + date.getSeconds();
var end = date.getFullYear() + "-" + date.getMonth() + "-" + date.getDate() + " 23:59:59";
switch (this.segment) {
case "Combinada":
if (this.profile == "mdgpr") {
this.eventService.getAllMdEvents(this.today.toLocaleString(), this.todayEnd.toLocaleString()).subscribe(function (res) {
this.eventService.getAllMdEvents(start, end).subscribe(function (res) {
_this9.eventsList = res;
if (res.length > 0) {
File diff suppressed because one or more lines are too long
@@ -236,7 +236,7 @@ let LoginPage = class LoginPage {
BasicAuthKey: ""
};
if (yield this.authService.login(this.userattempt)) {
/* this.loginRocketChat(); */
this.loginRocketChat(this.userattempt);
this.storeUserIdANdToken();
this.router.navigate(['/home/events']);
}
File diff suppressed because one or more lines are too long
@@ -396,7 +396,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
switch (_context2.prev = _context2.next) {
case 0:
if (!this.validateInput()) {
_context2.next = 12;
_context2.next = 13;
break;
}
@@ -411,29 +411,29 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
case 4:
if (!_context2.sent) {
_context2.next = 9;
_context2.next = 10;
break;
}
/* this.loginRocketChat(); */
this.loginRocketChat(this.userattempt);
this.storeUserIdANdToken();
this.router.navigate(['/home/events']);
_context2.next = 10;
_context2.next = 11;
break;
case 9:
case 10:
//this.toastService.presentToast('Não foi possível fazer login"');
this.presentAlert('O nome de utilizador e palavra-passe estão incorretas ou verifique a sua conexão com a internet e volte a tentar.');
case 10:
_context2.next = 13;
case 11:
_context2.next = 14;
break;
case 12:
case 13:
//this.toastService.presentToast('Preencha todos campos');
this.presentAlert('Por favor, insira o seu nome de utilizador e palavra-passe.');
case 13:
case 14:
case "end":
return _context2.stop();
}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long