mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
Direct Update working
This commit is contained in:
+3
-3
@@ -101,14 +101,14 @@
|
|||||||
<plugin name="cordova-plugin-ionic-keyboard" spec="^2.0.5" />
|
<plugin name="cordova-plugin-ionic-keyboard" spec="^2.0.5" />
|
||||||
<mfp:android>
|
<mfp:android>
|
||||||
<mfp:sdkChecksum>1109370933</mfp:sdkChecksum>
|
<mfp:sdkChecksum>1109370933</mfp:sdkChecksum>
|
||||||
<mfp:appChecksum>2995684404</mfp:appChecksum>
|
<mfp:appChecksum>2677140979</mfp:appChecksum>
|
||||||
<mfp:security>
|
<mfp:security>
|
||||||
<mfp:testWebResourcesChecksum enabled="false" ignoreFileExtensions="png, jpg, jpeg, gif, mp4, mp3" />
|
<mfp:testWebResourcesChecksum enabled="false" ignoreFileExtensions="png, jpg, jpeg, gif, mp4, mp3" />
|
||||||
</mfp:security>
|
</mfp:security>
|
||||||
</mfp:android>
|
</mfp:android>
|
||||||
<mfp:ios>
|
<mfp:ios>
|
||||||
<mfp:sdkChecksum>246097737</mfp:sdkChecksum>
|
<mfp:sdkChecksum>246097737</mfp:sdkChecksum>
|
||||||
<mfp:appChecksum>2366819154</mfp:appChecksum>
|
<mfp:appChecksum>624868211</mfp:appChecksum>
|
||||||
<mfp:security>
|
<mfp:security>
|
||||||
<mfp:testWebResourcesChecksum enabled="false" ignoreFileExtensions="png, jpg, jpeg, gif, mp4, mp3" />
|
<mfp:testWebResourcesChecksum enabled="false" ignoreFileExtensions="png, jpg, jpeg, gif, mp4, mp3" />
|
||||||
</mfp:security>
|
</mfp:security>
|
||||||
@@ -136,7 +136,7 @@
|
|||||||
</mfp:windows>
|
</mfp:windows>
|
||||||
<mfp:platformVersion>8.0.0.00-20210308-063916</mfp:platformVersion>
|
<mfp:platformVersion>8.0.0.00-20210308-063916</mfp:platformVersion>
|
||||||
<mfp:clientCustomInit enabled="false" />
|
<mfp:clientCustomInit enabled="false" />
|
||||||
<mfp:server runtime="mfp" url="https://530cf7dc863f.ngrok.io" />
|
<mfp:server runtime="mfp" url="http://gpr-dev-10.gabinetedigital.local:9080" />
|
||||||
<mfp:serverUri url="" />
|
<mfp:serverUri url="" />
|
||||||
<mfp:directUpdateAuthenticityPublicKey />
|
<mfp:directUpdateAuthenticityPublicKey />
|
||||||
<mfp:languagePreferences>en</mfp:languagePreferences>
|
<mfp:languagePreferences>en</mfp:languagePreferences>
|
||||||
|
|||||||
@@ -0,0 +1,40 @@
|
|||||||
|
{
|
||||||
|
"project_info": {
|
||||||
|
"project_number": "800733765231",
|
||||||
|
"firebase_url": "https://gabinete-digital-2020.firebaseio.com",
|
||||||
|
"project_id": "gabinete-digital-2020",
|
||||||
|
"storage_bucket": "gabinete-digital-2020.appspot.com"
|
||||||
|
},
|
||||||
|
"client": [
|
||||||
|
{
|
||||||
|
"client_info": {
|
||||||
|
"mobilesdk_app_id": "1:800733765231:android:e7ffc0b310037d9f13779a",
|
||||||
|
"android_client_info": {
|
||||||
|
"package_name": "com.gpr.gabinetedigital"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"oauth_client": [
|
||||||
|
{
|
||||||
|
"client_id": "800733765231-92oa7ib62ob0pkouphb5i5sp01vkalid.apps.googleusercontent.com",
|
||||||
|
"client_type": 3
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"api_key": [
|
||||||
|
{
|
||||||
|
"current_key": "AIzaSyD0pfW45DLoW6mqvZRklJdbfSTskW22Fok"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"services": {
|
||||||
|
"appinvite_service": {
|
||||||
|
"other_platform_oauth_client": [
|
||||||
|
{
|
||||||
|
"client_id": "800733765231-92oa7ib62ob0pkouphb5i5sp01vkalid.apps.googleusercontent.com",
|
||||||
|
"client_type": 3
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"configuration_version": "1"
|
||||||
|
}
|
||||||
+3
-3
@@ -123,8 +123,8 @@
|
|||||||
},
|
},
|
||||||
"platforms": [
|
"platforms": [
|
||||||
"browser",
|
"browser",
|
||||||
"android",
|
"ios",
|
||||||
"ios"
|
"android"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"main": "karma.conf.js",
|
"main": "karma.conf.js",
|
||||||
@@ -133,4 +133,4 @@
|
|||||||
"url": "git+https://Kayaya@bitbucket.org/equilibriumito/gabinete-digital.git"
|
"url": "git+https://Kayaya@bitbucket.org/equilibriumito/gabinete-digital.git"
|
||||||
},
|
},
|
||||||
"license": "ISC"
|
"license": "ISC"
|
||||||
}
|
}
|
||||||
+13
-17
@@ -4,7 +4,7 @@ import { Component, OnInit, NgZone } from '@angular/core';
|
|||||||
import { EventsService } from '../services/events.service';
|
import { EventsService } from '../services/events.service';
|
||||||
import { Event } from '../models/event.model';
|
import { Event } from '../models/event.model';
|
||||||
import { ProcessesService } from '../services/processes.service';
|
import { ProcessesService } from '../services/processes.service';
|
||||||
import { ModalController } from '@ionic/angular';
|
import { ModalController, AlertController } from '@ionic/angular';
|
||||||
//import { AlertController } from 'ionic-angular';
|
//import { AlertController } from 'ionic-angular';
|
||||||
/* import { Plugins, PushNotification, PushNotificationToken, PushNotificationActionPerformed, Modals } from '@capacitor/core'; */
|
/* import { Plugins, PushNotification, PushNotificationToken, PushNotificationActionPerformed, Modals } from '@capacitor/core'; */
|
||||||
import { Router } from '@angular/router';
|
import { Router } from '@angular/router';
|
||||||
@@ -25,7 +25,7 @@ export class HomePage implements OnInit {
|
|||||||
totalExpediente = 0;
|
totalExpediente = 0;
|
||||||
profile: string;
|
profile: string;
|
||||||
|
|
||||||
constructor(private zone: NgZone,private eventService: EventsService, private processesbackend: ProcessesService, private router: Router, private modalController: ModalController) {
|
constructor(private zone: NgZone,private eventService: EventsService, private processesbackend: ProcessesService, private router: Router, private modalController: ModalController, public alertCtrl: AlertController) {
|
||||||
|
|
||||||
router.events.subscribe((val) => {
|
router.events.subscribe((val) => {
|
||||||
document.querySelectorAll('ion-modal').forEach((e)=>e.remove())
|
document.querySelectorAll('ion-modal').forEach((e)=>e.remove())
|
||||||
@@ -135,6 +135,7 @@ export class HomePage implements OnInit {
|
|||||||
(response) => {
|
(response) => {
|
||||||
// Will display "Hello world" in an alert dialog.
|
// Will display "Hello world" in an alert dialog.
|
||||||
alert("Success: " + response.responseText);
|
alert("Success: " + response.responseText);
|
||||||
|
|
||||||
this.MFPushNotification()
|
this.MFPushNotification()
|
||||||
},
|
},
|
||||||
(error) => {
|
(error) => {
|
||||||
@@ -188,35 +189,30 @@ export class HomePage implements OnInit {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* securityCheck() {
|
securityCheck() {
|
||||||
|
|
||||||
var PincodeChallengeHandler = WL.Client.createSecurityCheckChallengeHandler("UserLogin");
|
this.registerChallengeHandler();
|
||||||
this.registerChallengeHandler(PincodeChallengeHandler);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
registerChallengeHandler(PincodeChallengeHandler) {
|
registerChallengeHandler() {
|
||||||
PincodeChallengeHandler = WL.Client.createSecurityCheckChallengeHandler("PinCodeAttempts");
|
alert('--> Pi called');
|
||||||
|
let PincodeChallengeHandler = WL.Client.createSecurityCheckChallengeHandler("PinCodeAttempts");
|
||||||
PincodeChallengeHandler.handleChallenge = ((challenge: any) => {
|
PincodeChallengeHandler.handleChallenge = ((challenge: any) => {
|
||||||
console.log('--> PincodeChallengeHandler.handleChallenge called');
|
alert('--> PincodeChallengeHandler.handleChallenge called');
|
||||||
this.displayLoginChallenge(challenge, PincodeChallengeHandler);
|
this.displayLoginChallenge(challenge, PincodeChallengeHandler);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
displayLoginChallenge(response, PincodeChallengeHandler) {
|
async displayLoginChallenge(response, PincodeChallengeHandler) {
|
||||||
if (response.errorMsg) {
|
if (response.errorMsg) {
|
||||||
var msg = response.errorMsg + ' <br> Remaining attempts: ' + response.remainingAttempts;
|
var msg = response.errorMsg + ' <br> Remaining attempts: ' + response.remainingAttempts;
|
||||||
console.log('--> displayLoginChallenge ERROR: ' + msg);
|
console.log('--> displayLoginChallenge ERROR: ' + msg);
|
||||||
}
|
}
|
||||||
let prompt = this.alertCtrl.create({
|
const prompt = await this.alertCtrl.create({
|
||||||
title: 'MFP Gateway',
|
header: 'MFP Gateway',
|
||||||
message: msg,
|
message: msg,
|
||||||
inputs: [
|
inputs: [
|
||||||
{
|
|
||||||
name: 'username',
|
|
||||||
placeholder: 'please enter the name',
|
|
||||||
type: 'clientid'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: 'pin',
|
name: 'pin',
|
||||||
placeholder: 'please enter the pincode',
|
placeholder: 'please enter the pincode',
|
||||||
@@ -245,7 +241,7 @@ export class HomePage implements OnInit {
|
|||||||
]
|
]
|
||||||
});
|
});
|
||||||
prompt.present();
|
prompt.present();
|
||||||
} */
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
function wlCommonInit() {
|
||||||
|
|
||||||
|
WLAuthorizationManager.obtainAccessToken()
|
||||||
|
|
||||||
|
.then(
|
||||||
|
|
||||||
|
function (accessToken) {
|
||||||
|
alert('Index sucsse: ', accessToken)
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
function (error) {
|
||||||
|
alert('Index error: ', error)
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -5,7 +5,7 @@ function wlCommonInit(){
|
|||||||
wl_directUpdateChallengeHandler.handleDirectUpdate = function(directUpdateData, directUpdateContext) {
|
wl_directUpdateChallengeHandler.handleDirectUpdate = function(directUpdateData, directUpdateContext) {
|
||||||
// Create a dialog.
|
// Create a dialog.
|
||||||
navigator.notification.confirm(
|
navigator.notification.confirm(
|
||||||
'Custom dialog body text',
|
'Actualização Disponivel',
|
||||||
// Handle dialog buttons.
|
// Handle dialog buttons.
|
||||||
function(buttonIndex) {
|
function(buttonIndex) {
|
||||||
if (buttonIndex == 1) {
|
if (buttonIndex == 1) {
|
||||||
@@ -14,8 +14,8 @@ function wlCommonInit(){
|
|||||||
wl_directUpdateChallengeHandler.submitFailure();
|
wl_directUpdateChallengeHandler.submitFailure();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'Custom dialog title text',
|
'ctualização Disponivel',
|
||||||
['Update']
|
['Actualizar']
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,9 @@
|
|||||||
|
|
||||||
<base href="/" />
|
<base href="/" />
|
||||||
|
|
||||||
|
<script src="assets/js/index.js"></script>
|
||||||
|
<script src="assets/js/wldirectudpate.js"></script>
|
||||||
|
|
||||||
<meta name="color-scheme" content="light dark" />
|
<meta name="color-scheme" content="light dark" />
|
||||||
<meta name="viewport" content="viewport-fit=cover, width=device-width, height=device-hight, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
<meta name="viewport" content="viewport-fit=cover, width=device-width, height=device-hight, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||||
<meta name="format-detection" content="telephone=no" />
|
<meta name="format-detection" content="telephone=no" />
|
||||||
|
|||||||
Reference in New Issue
Block a user