diff --git a/config.xml b/config.xml index 2a552c44f..dd3ceb986 100644 --- a/config.xml +++ b/config.xml @@ -1,8 +1,8 @@ - Gabinete Digital - Aplicação do Gabinete Digital do Presidente da República de Angola - Equilibrium Team + MyApp + An awesome Ionic/Cordova app. + Ionic Framework Team @@ -44,9 +44,6 @@ - - You can take photos - @@ -94,11 +91,6 @@ - - - - - @@ -114,7 +106,7 @@ - 1338553290 + 0 0 @@ -143,7 +135,7 @@ 8.0.0.00-20210201-110557 - + en diff --git a/ionic.config.json b/ionic.config.json index a29eda82d..2bb709ac7 100644 --- a/ionic.config.json +++ b/ionic.config.json @@ -1,12 +1,6 @@ { "name": "gabinete-digital", "integrations": { -<<<<<<< HEAD - "capacitor": { - "enabled": false - }, -======= ->>>>>>> developer-c "cordova": {} }, "type": "angular" diff --git a/package.json b/package.json index f7428ee11..ba2b2fa9d 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,8 @@ "cordova-plugin-inappbrowser": {}, "cordova-plugin-camera": {}, "cordova-sqlite-storage": {}, - "cordova-plugin-compat": {} + "cordova-plugin-compat": {}, + "cordova-plugin-mfp": {} }, "platforms": [ "browser", diff --git a/resources/android/icon/drawable-hdpi-icon.png b/resources/android/icon/drawable-hdpi-icon.png index d36c1a33e..3f84fc1b2 100644 Binary files a/resources/android/icon/drawable-hdpi-icon.png and b/resources/android/icon/drawable-hdpi-icon.png differ diff --git a/resources/android/icon/drawable-ldpi-icon.png b/resources/android/icon/drawable-ldpi-icon.png index 23cb8318e..3de9b4f79 100644 Binary files a/resources/android/icon/drawable-ldpi-icon.png and b/resources/android/icon/drawable-ldpi-icon.png differ diff --git a/resources/android/icon/drawable-mdpi-icon.png b/resources/android/icon/drawable-mdpi-icon.png index 2797056eb..4b455d317 100644 Binary files a/resources/android/icon/drawable-mdpi-icon.png and b/resources/android/icon/drawable-mdpi-icon.png differ diff --git a/resources/android/icon/drawable-xhdpi-icon.png b/resources/android/icon/drawable-xhdpi-icon.png index a681d641b..fe47ccce8 100644 Binary files a/resources/android/icon/drawable-xhdpi-icon.png and b/resources/android/icon/drawable-xhdpi-icon.png differ diff --git a/resources/android/icon/drawable-xxhdpi-icon.png b/resources/android/icon/drawable-xxhdpi-icon.png index 75f41540d..391b4af13 100644 Binary files a/resources/android/icon/drawable-xxhdpi-icon.png and b/resources/android/icon/drawable-xxhdpi-icon.png differ diff --git a/resources/android/icon/drawable-xxxhdpi-icon.png b/resources/android/icon/drawable-xxxhdpi-icon.png index df3b5433c..09e50b7b3 100644 Binary files a/resources/android/icon/drawable-xxxhdpi-icon.png and b/resources/android/icon/drawable-xxxhdpi-icon.png differ diff --git a/resources/android/splash/drawable-land-hdpi-screen.png b/resources/android/splash/drawable-land-hdpi-screen.png index 444dc39ab..74abe28ea 100644 Binary files a/resources/android/splash/drawable-land-hdpi-screen.png and b/resources/android/splash/drawable-land-hdpi-screen.png differ diff --git a/resources/android/splash/drawable-land-ldpi-screen.png b/resources/android/splash/drawable-land-ldpi-screen.png index 80409d7bd..b224ba8c8 100644 Binary files a/resources/android/splash/drawable-land-ldpi-screen.png and b/resources/android/splash/drawable-land-ldpi-screen.png differ diff --git a/resources/android/splash/drawable-land-mdpi-screen.png b/resources/android/splash/drawable-land-mdpi-screen.png index f9342e83a..f18770eb1 100644 Binary files a/resources/android/splash/drawable-land-mdpi-screen.png and b/resources/android/splash/drawable-land-mdpi-screen.png differ diff --git a/resources/android/splash/drawable-land-xhdpi-screen.png b/resources/android/splash/drawable-land-xhdpi-screen.png index d7936aa71..76eab0d72 100644 Binary files a/resources/android/splash/drawable-land-xhdpi-screen.png and b/resources/android/splash/drawable-land-xhdpi-screen.png differ diff --git a/resources/android/splash/drawable-land-xxhdpi-screen.png b/resources/android/splash/drawable-land-xxhdpi-screen.png index 63a3b921a..b15925df5 100644 Binary files a/resources/android/splash/drawable-land-xxhdpi-screen.png and b/resources/android/splash/drawable-land-xxhdpi-screen.png differ diff --git a/resources/android/splash/drawable-land-xxxhdpi-screen.png b/resources/android/splash/drawable-land-xxxhdpi-screen.png index 22ec1444a..4b22b8b59 100644 Binary files a/resources/android/splash/drawable-land-xxxhdpi-screen.png and b/resources/android/splash/drawable-land-xxxhdpi-screen.png differ diff --git a/resources/android/splash/drawable-port-hdpi-screen.png b/resources/android/splash/drawable-port-hdpi-screen.png index a6b455ddf..c0c981b97 100644 Binary files a/resources/android/splash/drawable-port-hdpi-screen.png and b/resources/android/splash/drawable-port-hdpi-screen.png differ diff --git a/resources/android/splash/drawable-port-ldpi-screen.png b/resources/android/splash/drawable-port-ldpi-screen.png index e1f6c084c..dfba93219 100644 Binary files a/resources/android/splash/drawable-port-ldpi-screen.png and b/resources/android/splash/drawable-port-ldpi-screen.png differ diff --git a/resources/android/splash/drawable-port-mdpi-screen.png b/resources/android/splash/drawable-port-mdpi-screen.png index f65e1fb76..e5129fd04 100644 Binary files a/resources/android/splash/drawable-port-mdpi-screen.png and b/resources/android/splash/drawable-port-mdpi-screen.png differ diff --git a/resources/android/splash/drawable-port-xhdpi-screen.png b/resources/android/splash/drawable-port-xhdpi-screen.png index bee833117..14ec839e8 100644 Binary files a/resources/android/splash/drawable-port-xhdpi-screen.png and b/resources/android/splash/drawable-port-xhdpi-screen.png differ diff --git a/resources/android/splash/drawable-port-xxhdpi-screen.png b/resources/android/splash/drawable-port-xxhdpi-screen.png index 2f9421671..4df256fbf 100644 Binary files a/resources/android/splash/drawable-port-xxhdpi-screen.png and b/resources/android/splash/drawable-port-xxhdpi-screen.png differ diff --git a/resources/android/splash/drawable-port-xxxhdpi-screen.png b/resources/android/splash/drawable-port-xxxhdpi-screen.png index 0295c0138..53f97f9d9 100644 Binary files a/resources/android/splash/drawable-port-xxxhdpi-screen.png and b/resources/android/splash/drawable-port-xxxhdpi-screen.png differ diff --git a/resources/android/xml/network_security_config.xml b/resources/android/xml/network_security_config.xml index 4ca1a5de9..de61259aa 100644 --- a/resources/android/xml/network_security_config.xml +++ b/resources/android/xml/network_security_config.xml @@ -1,8 +1,6 @@ - + localhost - gabinetedigital.local - - + diff --git a/resources/icon.png b/resources/icon.png index 73421fb35..bee77667f 100644 Binary files a/resources/icon.png and b/resources/icon.png differ diff --git a/resources/ios/splash/Default-568h@2x~iphone.png b/resources/ios/splash/Default-568h@2x~iphone.png index 7535e8d3c..5e9edf63f 100644 Binary files a/resources/ios/splash/Default-568h@2x~iphone.png and b/resources/ios/splash/Default-568h@2x~iphone.png differ diff --git a/resources/ios/splash/Default-667h.png b/resources/ios/splash/Default-667h.png index 902a59f3b..2843fb37a 100644 Binary files a/resources/ios/splash/Default-667h.png and b/resources/ios/splash/Default-667h.png differ diff --git a/resources/ios/splash/Default-736h.png b/resources/ios/splash/Default-736h.png index af9e3591a..21f2d4239 100644 Binary files a/resources/ios/splash/Default-736h.png and b/resources/ios/splash/Default-736h.png differ diff --git a/resources/ios/splash/Default-Landscape-736h.png b/resources/ios/splash/Default-Landscape-736h.png index 5ba2141f8..9c069f7cc 100644 Binary files a/resources/ios/splash/Default-Landscape-736h.png and b/resources/ios/splash/Default-Landscape-736h.png differ diff --git a/resources/ios/splash/Default-Landscape@2x~ipad.png b/resources/ios/splash/Default-Landscape@2x~ipad.png index 0e00a9881..35407a901 100644 Binary files a/resources/ios/splash/Default-Landscape@2x~ipad.png and b/resources/ios/splash/Default-Landscape@2x~ipad.png differ diff --git a/resources/ios/splash/Default-Landscape@~ipadpro.png b/resources/ios/splash/Default-Landscape@~ipadpro.png index 861f736d8..75de9e0ed 100644 Binary files a/resources/ios/splash/Default-Landscape@~ipadpro.png and b/resources/ios/splash/Default-Landscape@~ipadpro.png differ diff --git a/resources/ios/splash/Default-Landscape~ipad.png b/resources/ios/splash/Default-Landscape~ipad.png index 97e3d0d30..b74bbf69b 100644 Binary files a/resources/ios/splash/Default-Landscape~ipad.png and b/resources/ios/splash/Default-Landscape~ipad.png differ diff --git a/resources/ios/splash/Default-Portrait@2x~ipad.png b/resources/ios/splash/Default-Portrait@2x~ipad.png index 8870036b6..d0c33f786 100644 Binary files a/resources/ios/splash/Default-Portrait@2x~ipad.png and b/resources/ios/splash/Default-Portrait@2x~ipad.png differ diff --git a/resources/ios/splash/Default-Portrait@~ipadpro.png b/resources/ios/splash/Default-Portrait@~ipadpro.png index fac60e98e..363dd1c82 100644 Binary files a/resources/ios/splash/Default-Portrait@~ipadpro.png and b/resources/ios/splash/Default-Portrait@~ipadpro.png differ diff --git a/resources/ios/splash/Default-Portrait~ipad.png b/resources/ios/splash/Default-Portrait~ipad.png index c009fd5fb..aad1debb1 100644 Binary files a/resources/ios/splash/Default-Portrait~ipad.png and b/resources/ios/splash/Default-Portrait~ipad.png differ diff --git a/resources/ios/splash/Default@2x~iphone.png b/resources/ios/splash/Default@2x~iphone.png index 7d69214b8..f0f16ef9b 100644 Binary files a/resources/ios/splash/Default@2x~iphone.png and b/resources/ios/splash/Default@2x~iphone.png differ diff --git a/resources/ios/splash/Default~iphone.png b/resources/ios/splash/Default~iphone.png index 03d0d2c7b..e5129fd04 100644 Binary files a/resources/ios/splash/Default~iphone.png and b/resources/ios/splash/Default~iphone.png differ diff --git a/src/app/home/home.page.ts b/src/app/home/home.page.ts index 4a029530c..28432bd98 100644 --- a/src/app/home/home.page.ts +++ b/src/app/home/home.page.ts @@ -31,7 +31,7 @@ export class HomePage implements OnInit { totalExpediente = 0; profile: string; - constructor(private ngZone: 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,) { } ngOnInit() { /* //Initialize profile as mdgpr @@ -111,6 +111,42 @@ export class HomePage implements OnInit { ); */ } + /* mobileFirstTest() { + this.zone.run(() => { + alert("Hello MobileFirst"); + alert("Connecting to Server..."); + }); + WLAuthorizationManager.obtainAccessToken("").then( + (token) => { + console.log('--> pingMFP(): Success ', token); + this.zone.run(() => { + alert("Yay!"); + alert("Connected to MobileFirst Server"); + }); + var resourceRequest = new WLResourceRequest("/adapters/javaAdapter/resource/greet/", + WLResourceRequest.GET + ); + + resourceRequest.setQueryParameter("name", "world"); + resourceRequest.send().then( + (response) => { + // Will display "Hello world" in an alert dialog. + alert("Success: " + response.responseText); + }, + (error) => { + alert("Failure: " + JSON.stringify(error)); + } + ); + }, (error) => { + console.log('--> pingMFP(): failure ', error.responseText); + this.zone.run(() => { + alert("Bummer..."); + alert("Failed to connect to MobileFirst Server"); + }); + } + ); + } */ + async openApproveModal(eventSerialNumber){ const modal = await this.modalController.create({ component: ApproveEventModalPage, diff --git a/src/app/pages/gabinete-digital/event-list/approve-event/approve-event.page.scss b/src/app/pages/gabinete-digital/event-list/approve-event/approve-event.page.scss index 01c642ce6..e2bd9995d 100644 --- a/src/app/pages/gabinete-digital/event-list/approve-event/approve-event.page.scss +++ b/src/app/pages/gabinete-digital/event-list/approve-event/approve-event.page.scss @@ -1,147 +1,4 @@ ion-content{ -<<<<<<< HEAD - --padding-top:0px; - --padding-start: 20px; - --padding-end: 20px; - font-size: 18px; - } - ion-menu{ - --height: 225px; - } - .header-content{ - width: 360px; - overflow: auto; - margin: 25px auto; - } - .header-icon-left{ - width: 36px; - font-size: 33px; - color: #42b9fe; - float: left; - } - .header-title{ - width: 264px; - font-family: Roboto; - font-size: 25px; - margin: 0 5px 0 5px; - padding: 0; - color:#000; - float: left; - } - .header-icon-right{ - width: 45px; - font-size: 45px; - float: left; - overflow: auto; - } - .upper-content{ - margin-left: 50px; - overflow: auto; - font-size: 18px; - - .content-location{ - width: 360px; - margin: 0 auto; - padding: 0; - overflow: auto; - } - - .location-detail{ - width: 210px; - font-weight: 700; - font-size: 18px; - float: left; - margin: 5px 5px 5px 0px; - } - .button-calendar-type{ - width: 91px; - --border-radius: 12.5px; - --background: #ffb703; - margin-left: 5px; - float: left; - } - .button-calendar-type ion-button{ - height: 25px; - } - .button-edit-event { - width: 140px; - height: 44px; - border-radius: 22.5px; - --background: #e0e9ee; - --color:#061b52; - } - .content-details p{ - font-size: 16px; - } - } - .middle-conten{ - .middle-content h3, .middle-content p{ - font-size: 16px; - } - } - - .bottom-content{ - width: 360px; - margin: 0 auto; - - .bottom-content h3{ - font-size: 16px; - margin: 0 0 0 10px; - } - .attach-document{ - font-size: 15px; - color: #0d89d1; - margin: 5px 5px 5px 10px; - padding: 5px; - float: left; - } - .attach-icon{ - width: 37px; - font-size: 35px; - float: left; - } - .attach-title-item{ - width: 100%; - font-size: 15px; - color:#0d89d1; - } - /* SPAN */ - .span-left{ - float: left; - font-size: 15x; - } - .span-right{ - text-align: right; - float: right; - font-size: 13px; - } - } - - .buttons{ - width: 360px; - margin: 0 auto; - } - - .button-options { - height: 44px; - --color: #42b9fe; - /* opacity: 0; */ - } - .button-approve { - width: 140px; - height: 44px; - border-radius: 22.5px; - --background: #42b9fe; - } - .button-reject { - width: 140px; - height: 44px; - --color: #d30a0a; - border-radius: 22.5px; - --background: #ffe0e0; - } - -======= --padding-top:0px; --padding-start: 20px; --padding-end: 20px; @@ -282,4 +139,3 @@ ion-menu{ border-radius: 22.5px; --background: #ffe0e0; } ->>>>>>> developer-c diff --git a/src/app/pages/gabinete-digital/expediente/expediente-detail/expediente-detail.page.ts b/src/app/pages/gabinete-digital/expediente/expediente-detail/expediente-detail.page.ts index b354440b1..0fbbb6da2 100644 --- a/src/app/pages/gabinete-digital/expediente/expediente-detail/expediente-detail.page.ts +++ b/src/app/pages/gabinete-digital/expediente/expediente-detail/expediente-detail.page.ts @@ -36,17 +36,10 @@ export class ExpedienteDetailPage implements OnInit { private router: Router, private modalController: ModalController, private navParams: NavParams, -<<<<<<< HEAD - private alertService: AlertService) { - this.serialnumber = this.navParams.get('serialNumber'); - this.profile = this.navParams.get('profile'); - } -======= private alertService: AlertService) { this.serialnumber = this.navParams.get('serialNumber'); this.profile = this.navParams.get('profile'); } ->>>>>>> developer-c ngOnInit() { this.profile = "mdgpr"; @@ -98,15 +91,9 @@ export class ExpedienteDetailPage implements OnInit { } } -<<<<<<< HEAD - viewDocument() { - const url: string = this.task.DocumentURL.replace("webTRIX.Viewer", "webTRIX.Viewer.Branch1"); - const browser = this.iab.create(url, "_blank"); -======= viewDocument(){ const url: string = this.task.DocumentURL.replace("webTRIX.Viewer","webTRIX.Viewer.Branch1"); const browser = this.iab.create(url,"_parent"); ->>>>>>> developer-c browser.show(); }