mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
teste new formate date
This commit is contained in:
@@ -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
+5
-1
@@ -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;
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+5
-1
@@ -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) {
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -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']);
|
||||
}
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+9
-9
@@ -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();
|
||||
}
|
||||
|
||||
+1
-1
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
Reference in New Issue
Block a user