diff --git a/angular.json b/angular.json index 042364a39..28356ab3f 100644 --- a/angular.json +++ b/angular.json @@ -198,4 +198,4 @@ "styleext": "scss" } } -} \ No newline at end of file +} diff --git a/package.json b/package.json index 070074b23..01324bc68 100644 --- a/package.json +++ b/package.json @@ -186,13 +186,7 @@ "cordova-plugin-ionic-webview": {}, "cordova-plugin-screen-orientation": {}, "cordova-plugin-network-information": {}, - "cordova-plugin-camera": { - "ANDROID_SUPPORT_V4_VERSION": "27.+" - }, - "cordova-plugin-media": { - "KEEP_AVAUDIOSESSION_ALWAYS_ACTIVE": "NO" - }, - "uk.co.workingedge.cordova.plugin.sqliteporter": {} + "cordova-plugin-camera": {} }, "platforms": [ "browser", diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 530cfa87b..ca634fade 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -195,6 +195,10 @@ const routes = [ path: 'document-viewer', loadChildren: () => import('./modals/document-viewer/document-viewer.module').then( m => m.DocumentViewerPageModule) }, + { + path: 'view-document', + loadChildren: () => import('./modals/view-document/view-document.module').then( m => m.ViewDocumentPageModule) + }, diff --git a/src/app/home/home.page.ts b/src/app/home/home.page.ts index fd5e91998..484ff71f8 100644 --- a/src/app/home/home.page.ts +++ b/src/app/home/home.page.ts @@ -193,8 +193,8 @@ export class HomePage implements OnInit { }) - synchro.registerCallback('Offline', () => { - console.log('Offlineee') + synchro.registerCallback('Offline',()=>{ + }) synchro.conected @@ -203,7 +203,7 @@ export class HomePage implements OnInit { this.webNotificationPopupService.sendNotification(DataArray) - this.storageService.get('Notifications').then((data: any) => { + this.storageService.get('Notifications').then((data:any)=>{ data.push(DataArray) this.storageService.store("Notifications", data) }).catch(() => { diff --git a/src/app/modals/chat-options-features/chat-options-features.page.html b/src/app/modals/chat-options-features/chat-options-features.page.html index 40c40b512..75ac2594a 100644 --- a/src/app/modals/chat-options-features/chat-options-features.page.html +++ b/src/app/modals/chat-options-features/chat-options-features.page.html @@ -7,7 +7,7 @@
- +
diff --git a/src/app/modals/document-viewer/document-viewer.page.html b/src/app/modals/document-viewer/document-viewer.page.html index b4664b350..78dd8f681 100644 --- a/src/app/modals/document-viewer/document-viewer.page.html +++ b/src/app/modals/document-viewer/document-viewer.page.html @@ -14,9 +14,8 @@ - +
- +
-
diff --git a/src/app/modals/document-viewer/document-viewer.page.scss b/src/app/modals/document-viewer/document-viewer.page.scss index 1ee30f51c..381a88abe 100644 --- a/src/app/modals/document-viewer/document-viewer.page.scss +++ b/src/app/modals/document-viewer/document-viewer.page.scss @@ -1,14 +1,3 @@ ion-content { background-color: #ececec; -} - -.ng2-pdf-viewer-container { - padding-top: 10px; -} - -#pdf-container { - canvas { - width: 100%; - height: 100%; - } } \ No newline at end of file diff --git a/src/app/modals/document-viewer/document-viewer.page.ts b/src/app/modals/document-viewer/document-viewer.page.ts index c03b9b3f3..c8711fe32 100644 --- a/src/app/modals/document-viewer/document-viewer.page.ts +++ b/src/app/modals/document-viewer/document-viewer.page.ts @@ -10,7 +10,7 @@ import { ProcessesService } from 'src/app/services/processes.service'; }) export class DocumentViewerPage implements OnInit { - pdfSrc = 'http://laptop-46/FileShare/Test_25MB.pdf'; + pdfSrc = null; task = null DocId = null fileName = '' @@ -24,10 +24,7 @@ export class DocumentViewerPage implements OnInit { this.task = this.navParams.get('task') || null; this.DocId = this.navParams.get('DocId'); - if(this.navParams.get('pdfSrc')) { - this.pdfSrc = this.navParams.get('pdfSrc') || null; - } - + this.pdfSrc = 'https://equilibrium.dyndns.info/FileShare/pdfjs/web/viewer.html?file=' } @@ -41,169 +38,6 @@ export class DocumentViewerPage implements OnInit { }) - // this.setPdfViewer() - - - // setTimeout(() => { - - // document.getElementById('iframe')['contentWindow'].postMessage( - // { - // sender: "get_page_button1", - // message: 'url' - // }, "*") - - // }, 3000) - - } - - - setPdfViewer() { - setTimeout( async () => { - - // If absolute URL from the remote server is provided, configure the CORS - // header on that server. - var url = 'http://192.168.0.87:3000/000634977.pdf'; - - const pdfjsWorker = await import('pdfjs-dist/build/pdf.worker.entry'); - // Loaded via - - -->