mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Merge branch 'bugfix/zoom' into develop
This commit is contained in:
@@ -14,28 +14,32 @@
|
|||||||
</div>
|
</div>
|
||||||
</ion-header>
|
</ion-header>
|
||||||
<ion-content fullscreen>
|
<ion-content fullscreen>
|
||||||
<div class="media d-flex align-items-center justify-center">
|
<div *ngIf="view" class="media d-flex align-items-center justify-center">
|
||||||
<div class="media-content w-100 d-flex align-items-center justify-center">
|
<div class="media-content w-100 d-flex align-items-center justify-center">
|
||||||
|
|
||||||
<ion-slides style="width: 100%; height: 100%;" [options]="sliderOpts">
|
<ion-slides style="width: 100%; height: 100%;" [options]="sliderOpts">
|
||||||
<ion-slide>
|
<ion-slide>
|
||||||
<div class="swiper-zoom-container">
|
<div class="swiper-zoom-container" >
|
||||||
<div>
|
<div style="overflow: scroll; width: 100%; height:100%;">
|
||||||
<img src="{{image}}">
|
<img src="{{image}}">
|
||||||
</div>
|
</div>
|
||||||
<!-- <div *ngIf="type == 'application/pdf'">
|
</div>
|
||||||
<iframe width="100%" height="100%" [src]="base64Sanitize" type="application/vnd.openxmlformats-officedocument.wordprocessingml.document"></iframe> -->
|
|
||||||
|
|
||||||
<!-- <pdf-viewer [src]="image"
|
<div *ngIf="!view" class="swiper-zoom-container" >
|
||||||
[render-text]="true"
|
<img src="{{image}}">
|
||||||
[original-size]="false"
|
|
||||||
style="width: 400px; height: 500px"
|
|
||||||
></pdf-viewer> -->
|
|
||||||
<!-- </div> -->
|
|
||||||
</div>
|
</div>
|
||||||
</ion-slide>
|
</ion-slide>
|
||||||
</ion-slides>
|
</ion-slides>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<ion-slides *ngIf="!view" style="width: 100%; height: 100%;" [options]="sliderOpts">
|
||||||
|
<ion-slide>
|
||||||
|
<div class="swiper-zoom-container" >
|
||||||
|
<img src="{{image}}">
|
||||||
|
</div>
|
||||||
|
</ion-slide>
|
||||||
|
</ion-slides>
|
||||||
|
|
||||||
|
|
||||||
</ion-content>
|
</ion-content>
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { ModalController, NavParams } from '@ionic/angular';
|
import { ModalController, NavParams, Platform } from '@ionic/angular';
|
||||||
import { DomSanitizer} from '@angular/platform-browser';
|
import { DomSanitizer} from '@angular/platform-browser';
|
||||||
import { pdfDefaultOptions } from 'ngx-extended-pdf-viewer';
|
import { pdfDefaultOptions } from 'ngx-extended-pdf-viewer';
|
||||||
|
|
||||||
@@ -14,10 +14,10 @@ export class ViewMediaPage implements OnInit {
|
|||||||
type: any;
|
type: any;
|
||||||
name: string
|
name: string
|
||||||
_updatedAt: string
|
_updatedAt: string
|
||||||
|
view: boolean
|
||||||
|
|
||||||
sliderOpts = {
|
sliderOpts = {
|
||||||
zoom: true,
|
zoom: true
|
||||||
maxRation: 2
|
|
||||||
};
|
};
|
||||||
|
|
||||||
base64Sanitize:any = "";
|
base64Sanitize:any = "";
|
||||||
@@ -26,6 +26,7 @@ export class ViewMediaPage implements OnInit {
|
|||||||
private modalController: ModalController,
|
private modalController: ModalController,
|
||||||
private navParams:NavParams,
|
private navParams:NavParams,
|
||||||
public sanitizer: DomSanitizer,
|
public sanitizer: DomSanitizer,
|
||||||
|
private platform: Platform,
|
||||||
|
|
||||||
) {
|
) {
|
||||||
this.image = this.navParams.get('image')
|
this.image = this.navParams.get('image')
|
||||||
@@ -39,6 +40,12 @@ export class ViewMediaPage implements OnInit {
|
|||||||
|
|
||||||
this.base64Sanitize = this.sanitizer.bypassSecurityTrustResourceUrl(this.image);
|
this.base64Sanitize = this.sanitizer.bypassSecurityTrustResourceUrl(this.image);
|
||||||
|
|
||||||
|
if (this.platform.is('desktop')) {
|
||||||
|
this.view = true;
|
||||||
|
} else {
|
||||||
|
this.view = false;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
b64toBlob = (b64Data, contentType = '', sliceSize = 512) => {
|
b64toBlob = (b64Data, contentType = '', sliceSize = 512) => {
|
||||||
@@ -61,10 +68,6 @@ export class ViewMediaPage implements OnInit {
|
|||||||
return blob;
|
return blob;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
close(){
|
close(){
|
||||||
this.modalController.dismiss()
|
this.modalController.dismiss()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
export const environment = {
|
export const environment = {
|
||||||
|
|
||||||
//apiURL: 'https://gabinetedigital.dyndns.info/GabineteDigital.Services/V5/api/',
|
//apiURL: 'https://gabinetedigital.dyndns.info/GabineteDigital.Services/V5/api/',
|
||||||
apiURL: 'https://gdapi-dev.dyndns.info/GabineteDigital.Services/V5/api/',
|
//apiURL: 'https://gdapi-dev.dyndns.info/GabineteDigital.Services/V5/api/',
|
||||||
//apiURL: 'http://gpr-dev-01.gabinetedigital.local/GabineteDigital.Services/V5/api/',
|
apiURL: 'http://gpr-dev-01.gabinetedigital.local/GabineteDigital.Services/V5/api/',
|
||||||
//apiChatUrl: 'https://gabinetedigitalchat.dyndns.info/api/v1/',
|
apiChatUrl: 'http://192.168.0.29:3000/api/v1/',
|
||||||
//apiWsChatUrl: 'wss://gabinetedigitalchat.dyndns.info/websocket',
|
apiWsChatUrl: 'wss://192.168.0.29:3000/websocket',
|
||||||
apiChatUrl: 'https://gdchat-dev.dyndns.info/api/v1/',
|
//apiChatUrl: 'https://gdchat-dev.dyndns.info/api/v1/',
|
||||||
apiWsChatUrl: 'wss://gdchat-dev.dyndns.info/websocket',
|
//apiWsChatUrl: 'wss://gdchat-dev.dyndns.info/websocket',
|
||||||
/* apiChatUrl: 'https://www.tabularium.pt/api/v1/',
|
/* apiChatUrl: 'https://www.tabularium.pt/api/v1/',
|
||||||
apiWsChatUrl: 'wss://www.tabularium.pt/websocket', */
|
apiWsChatUrl: 'wss://www.tabularium.pt/websocket', */
|
||||||
//apiChatUrl: 'https://www.tabularium.pt/api/v1/',
|
//apiChatUrl: 'https://www.tabularium.pt/api/v1/',
|
||||||
|
|||||||
@@ -22,12 +22,12 @@
|
|||||||
export const environment = {
|
export const environment = {
|
||||||
production: false,
|
production: false,
|
||||||
//apiURL: 'https://gabinetedigital.dyndns.info/GabineteDigital.Services/V5/api/',
|
//apiURL: 'https://gabinetedigital.dyndns.info/GabineteDigital.Services/V5/api/',
|
||||||
//apiURL: 'http://gpr-dev-01.gabinetedigital.local/GabineteDigital.Services/V5/api/',
|
apiURL: 'http://gpr-dev-01.gabinetedigital.local/GabineteDigital.Services/V5/api/',
|
||||||
apiURL: 'https://gdapi-dev.dyndns.info/GabineteDigital.Services/V5/api/',
|
//apiURL: 'https://gdapi-dev.dyndns.info/GabineteDigital.Services/V5/api/',
|
||||||
//apiChatUrl: 'https://gabinetedigitalchat.dyndns.info/api/v1/',
|
apiChatUrl: 'http://192.168.0.29:3000/api/v1/',
|
||||||
//apiWsChatUrl: 'wss://gabinetedigitalchat.dyndns.info/websocket',
|
apiWsChatUrl: 'wss://192.168.0.29:3000/websocket',
|
||||||
apiChatUrl: 'https://gdchat-dev.dyndns.info/api/v1/',
|
//apiChatUrl: 'https://gdchat-dev.dyndns.info/api/v1/',
|
||||||
apiWsChatUrl: 'wss://gdchat-dev.dyndns.info/websocket',
|
//apiWsChatUrl: 'wss://gdchat-dev.dyndns.info/websocket',
|
||||||
/* apiChatUrl: 'https://www.tabularium.pt/api/v1/',
|
/* apiChatUrl: 'https://www.tabularium.pt/api/v1/',
|
||||||
apiWsChatUrl: 'wss://www.tabularium.pt/websocket', */
|
apiWsChatUrl: 'wss://www.tabularium.pt/websocket', */
|
||||||
domain: 'gabinetedigital.local', //gabinetedigital.local
|
domain: 'gabinetedigital.local', //gabinetedigital.local
|
||||||
|
|||||||
Reference in New Issue
Block a user