This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, Input, Injector } from '@angular/core'; | |
import { DocumentUploadServiceProxy, OriginalBlobDto } from '@shared/service-proxies/service-proxies'; | |
import { AppComponentBase } from '@shared/common/app-component-base'; | |
@Component({ | |
selector: 'gallery', | |
templateUrl: './gallery.component.html', | |
styleUrls: ['./gallery.component.css'], | |
}) | |
export class GalleryComponent extends AppComponentBase { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="modal fade" id="selectedImageModal"> | |
<div class="modal-dialog" role="document"> | |
<div class="modal-content"> | |
<div class="modal-body"> | |
<div class="selectedImage" *ngIf="selectedImage"> | |
<img src="{{selectedImage.blobFileUrl}}" class="thumbnailImage" onerror="this.src='https://cpcpdev.blob.core.windows.net/other-documents/docx.png'"> | |
</div> | |
</div> | |
</div> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.tn { | |
margin: 2px 0px; | |
box-shadow: #999 1px 1px 3px 1px; | |
cursor: pointer; | |
width: 100%; | |
height: 200px; | |
} | |
.selectedImage { | |
width: 100%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//take Photo | |
takePhoto(sourceType: number) { | |
const options: CameraOptions = { | |
quality: 50, | |
destinationType: this.camera.DestinationType.DATA_URL, | |
encodingType: this.camera.EncodingType.JPEG, | |
mediaType: this.camera.MediaType.PICTURE, | |
correctOrientation: true, | |
sourceType: sourceType, | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//schedule Notification | |
async scheduleNotification(data: Transaction) { | |
let notifications: Notification[] = []; | |
notifications = await this.storage.get(LocalStorage.NOTIFICATIONS); | |
let firstNotificationTime = new Date(data.dueOn); | |
firstNotificationTime.setDate(firstNotificationTime.getDate()); | |
firstNotificationTime.setHours(21); | |
firstNotificationTime.setMinutes(23); | |
firstNotificationTime.setSeconds(0); | |
const id = random(1, 1000); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async scheduleNotification(data: Transaction) { | |
let notifications: any[] = []; | |
notifications = await this.storage.get(LocalStorage.NOTIFICATIONS); | |
let firstNotificationTime = new Date(data.dueOn); | |
firstNotificationTime.setDate(firstNotificationTime.getDate()); | |
firstNotificationTime.setHours(20); | |
firstNotificationTime.setMinutes(23); | |
firstNotificationTime.setSeconds(0); | |
const id = random(1, 1000); | |
let notification = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
patch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Token |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Photo |