refactor(lib): run prettier

This commit is contained in:
Daniel Sogl
2020-05-16 14:40:49 +02:00
parent f5133c691d
commit 511a02d50b
326 changed files with 3079 additions and 4092 deletions
+15 -15
View File
@@ -88,24 +88,24 @@ export interface CameraPopoverOptions {
export enum DestinationType {
DATA_URL = 0,
FILE_URL,
NATIVE_URI
NATIVE_URI,
}
export enum EncodingType {
JPEG = 0,
PNG
PNG,
}
export enum MediaType {
PICTURE = 0,
VIDEO,
ALLMEDIA
ALLMEDIA,
}
export enum PictureSourceType {
PHOTOLIBRARY = 0,
CAMERA,
SAVEDPHOTOALBUM
SAVEDPHOTOALBUM,
}
export enum PopoverArrowDirection {
@@ -113,12 +113,12 @@ export enum PopoverArrowDirection {
ARROW_DOWN,
ARROW_LEFT,
ARROW_RIGHT,
ARROW_ANY
ARROW_ANY,
}
export enum Direction {
BACK = 0,
FRONT
FRONT,
}
/**
@@ -169,7 +169,7 @@ export enum Direction {
plugin: 'cordova-plugin-camera',
pluginRef: 'navigator.camera',
repo: 'https://github.com/apache/cordova-plugin-camera',
platforms: ['Android', 'Browser', 'iOS', 'Windows']
platforms: ['Android', 'Browser', 'iOS', 'Windows'],
})
@Injectable()
export class Camera extends IonicNativePlugin {
@@ -182,7 +182,7 @@ export class Camera extends IonicNativePlugin {
/** Return file uri (content://media/external/images/media/2 for Android) */
FILE_URI: 1,
/** Return native uri (eg. asset-library://... for iOS) */
NATIVE_URI: 2
NATIVE_URI: 2,
};
/**
@@ -192,7 +192,7 @@ export class Camera extends IonicNativePlugin {
/** Return JPEG encoded image */
JPEG: 0,
/** Return PNG encoded image */
PNG: 1
PNG: 1,
};
/**
@@ -204,7 +204,7 @@ export class Camera extends IonicNativePlugin {
/** Allow selection of video only, ONLY RETURNS URL */
VIDEO: 1,
/** Allow selection from all media types */
ALLMEDIA: 2
ALLMEDIA: 2,
};
/**
@@ -216,7 +216,7 @@ export class Camera extends IonicNativePlugin {
/** Take picture from camera */
CAMERA: 1,
/** Choose image from picture library (same as SAVEDPHOTOALBUM for Android) */
SAVEDPHOTOALBUM: 2
SAVEDPHOTOALBUM: 2,
};
/**
@@ -227,7 +227,7 @@ export class Camera extends IonicNativePlugin {
ARROW_DOWN: 2,
ARROW_LEFT: 4,
ARROW_RIGHT: 8,
ARROW_ANY: 15
ARROW_ANY: 15,
};
/**
@@ -237,7 +237,7 @@ export class Camera extends IonicNativePlugin {
/** Use the back-facing camera */
BACK: 0,
/** Use the front-facing camera */
FRONT: 1
FRONT: 1,
};
/**
@@ -246,7 +246,7 @@ export class Camera extends IonicNativePlugin {
* @returns {Promise<any>} Returns a Promise that resolves with Base64 encoding of the image data, or the image file URI, depending on cameraOptions, otherwise rejects with an error.
*/
@Cordova({
callbackOrder: 'reverse'
callbackOrder: 'reverse',
})
getPicture(options?: CameraOptions): Promise<any> {
return;
@@ -258,7 +258,7 @@ export class Camera extends IonicNativePlugin {
* @returns {Promise<any>}
*/
@Cordova({
platforms: ['iOS']
platforms: ['iOS'],
})
cleanup(): Promise<any> {
return;