mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-04-13 00:00:10 +08:00
refactor(lib): run prettier
This commit is contained in:
@@ -4,17 +4,16 @@ import { Observable } from 'rxjs';
|
||||
|
||||
export enum KeyboardStyle {
|
||||
Light = 'light',
|
||||
Dark = 'dark'
|
||||
Dark = 'dark',
|
||||
}
|
||||
|
||||
export enum KeyboardResizeMode {
|
||||
Native = 'native',
|
||||
Ionic = 'ionic',
|
||||
Body = 'body',
|
||||
None = 'none'
|
||||
None = 'none',
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @name Keyboard
|
||||
* @description
|
||||
@@ -41,7 +40,7 @@ export enum KeyboardResizeMode {
|
||||
plugin: 'cordova-plugin-ionic-keyboard',
|
||||
pluginRef: 'window.Keyboard',
|
||||
repo: 'https://github.com/ionic-team/cordova-plugin-ionic-keyboard',
|
||||
platforms: ['Android', 'iOS']
|
||||
platforms: ['Android', 'iOS'],
|
||||
})
|
||||
@Injectable()
|
||||
export class Keyboard extends IonicNativePlugin {
|
||||
@@ -58,7 +57,7 @@ export class Keyboard extends IonicNativePlugin {
|
||||
*/
|
||||
@Cordova({
|
||||
sync: true,
|
||||
platforms: ['iOS']
|
||||
platforms: ['iOS'],
|
||||
})
|
||||
hideFormAccessoryBar(hide: boolean): void {}
|
||||
|
||||
@@ -67,7 +66,7 @@ export class Keyboard extends IonicNativePlugin {
|
||||
*/
|
||||
@Cordova({
|
||||
sync: true,
|
||||
platforms: ['iOS', 'Android']
|
||||
platforms: ['iOS', 'Android'],
|
||||
})
|
||||
hide(): void {}
|
||||
|
||||
@@ -76,7 +75,7 @@ export class Keyboard extends IonicNativePlugin {
|
||||
*/
|
||||
@Cordova({
|
||||
sync: true,
|
||||
platforms: ['Android']
|
||||
platforms: ['Android'],
|
||||
})
|
||||
show(): void {}
|
||||
|
||||
@@ -86,7 +85,7 @@ export class Keyboard extends IonicNativePlugin {
|
||||
*/
|
||||
@Cordova({
|
||||
sync: true,
|
||||
platforms: ['iOS']
|
||||
platforms: ['iOS'],
|
||||
})
|
||||
setResizeMode(mode: KeyboardResizeMode): void {}
|
||||
|
||||
@@ -96,7 +95,7 @@ export class Keyboard extends IonicNativePlugin {
|
||||
*/
|
||||
@Cordova({
|
||||
sync: true,
|
||||
platforms: ['iOS']
|
||||
platforms: ['iOS'],
|
||||
})
|
||||
setKeyboardStyle(style: KeyboardStyle): void {}
|
||||
|
||||
@@ -106,7 +105,7 @@ export class Keyboard extends IonicNativePlugin {
|
||||
*/
|
||||
@Cordova({
|
||||
sync: true,
|
||||
platforms: ['iOS']
|
||||
platforms: ['iOS'],
|
||||
})
|
||||
disableScroll(disable: boolean): void {}
|
||||
|
||||
@@ -117,7 +116,7 @@ export class Keyboard extends IonicNativePlugin {
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'native.keyboardshow',
|
||||
platforms: ['iOS', 'Android']
|
||||
platforms: ['iOS', 'Android'],
|
||||
})
|
||||
onKeyboardShow(): Observable<any> {
|
||||
return;
|
||||
@@ -130,7 +129,7 @@ export class Keyboard extends IonicNativePlugin {
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'keyboardWillShow',
|
||||
platforms: ['iOS', 'Android']
|
||||
platforms: ['iOS', 'Android'],
|
||||
})
|
||||
onKeyboardWillShow(): Observable<any> {
|
||||
return;
|
||||
@@ -143,7 +142,7 @@ export class Keyboard extends IonicNativePlugin {
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'keyboardDidShow',
|
||||
platforms: ['iOS', 'Android']
|
||||
platforms: ['iOS', 'Android'],
|
||||
})
|
||||
onKeyboardDidShow(): Observable<any> {
|
||||
return;
|
||||
@@ -156,7 +155,7 @@ export class Keyboard extends IonicNativePlugin {
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'native.keyboardhide',
|
||||
platforms: ['iOS', 'Android']
|
||||
platforms: ['iOS', 'Android'],
|
||||
})
|
||||
onKeyboardHide(): Observable<any> {
|
||||
return;
|
||||
@@ -169,7 +168,7 @@ export class Keyboard extends IonicNativePlugin {
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'keyboardWillHide',
|
||||
platforms: ['iOS', 'Android']
|
||||
platforms: ['iOS', 'Android'],
|
||||
})
|
||||
onKeyboardWillHide(): Observable<any> {
|
||||
return;
|
||||
@@ -182,7 +181,7 @@ export class Keyboard extends IonicNativePlugin {
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'keyboardDidHide',
|
||||
platforms: ['iOS', 'Android']
|
||||
platforms: ['iOS', 'Android'],
|
||||
})
|
||||
onKeyboardDidHide(): Observable<any> {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user