forked from danielsogl/awesome-cordova-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
150 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export * from './plugins/actionsheet'; | ||
export * from './plugins/camera'; | ||
export * from './plugins/statusbar'; | ||
export * from './plugins/toast'; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,17 @@ | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var DEVICE_READY_TIMEOUT = 2000; | ||
__export(require('./plugins/actionsheet')); | ||
__export(require('./plugins/camera')); | ||
__export(require('./plugins/statusbar')); | ||
__export(require('./plugins/toast')); | ||
var didFireReady = false; | ||
window.addEventListener('deviceready', function () { | ||
didFireReady = true; | ||
}); | ||
setTimeout(function () { | ||
if (!didFireReady) { | ||
console.warn('Native: deviceready did not fire within ' + DEVICE_READY_TIMEOUT + 'ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.'); | ||
} | ||
}, DEVICE_READY_TIMEOUT); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export declare class ActionSheet { | ||
static show: any; | ||
static hide: any; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
if (typeof __decorate !== "function") __decorate = function (decorators, target, key, desc) { | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc); | ||
switch (arguments.length) { | ||
case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target); | ||
case 3: return decorators.reduceRight(function(o, d) { return (d && d(target, key)), void 0; }, void 0); | ||
case 4: return decorators.reduceRight(function(o, d) { return (d && d(target, key, o)) || o; }, desc); | ||
} | ||
}; | ||
var plugin_1 = require('./plugin'); | ||
var ActionSheet = (function () { | ||
function ActionSheet() { | ||
} | ||
__decorate([ | ||
plugin_1.Cordova({ | ||
successIndex: 1, | ||
errIndex: 2 | ||
}) | ||
], ActionSheet, "show"); | ||
__decorate([ | ||
plugin_1.Cordova({ | ||
successIndex: 1, | ||
errIndex: 2 | ||
}) | ||
], ActionSheet, "hide"); | ||
ActionSheet = __decorate([ | ||
plugin_1.Plugin({ | ||
name: 'ActionSheet', | ||
plugin: 'cordova-plugin-actionsheet', | ||
pluginRef: 'plugins.actionsheet', | ||
repo: 'https://github.com/EddyVerbruggen/cordova-plugin-actionsheet' | ||
}) | ||
], ActionSheet); | ||
return ActionSheet; | ||
})(); | ||
exports.ActionSheet = ActionSheet; |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export * from './plugins/actionsheet'; | ||
export * from './plugins/camera'; | ||
export * from './plugins/statusbar'; | ||
export * from './plugins/toast'; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,17 @@ | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var DEVICE_READY_TIMEOUT = 2000; | ||
__export(require('./plugins/actionsheet')); | ||
__export(require('./plugins/camera')); | ||
__export(require('./plugins/statusbar')); | ||
__export(require('./plugins/toast')); | ||
var didFireReady = false; | ||
window.addEventListener('deviceready', function () { | ||
didFireReady = true; | ||
}); | ||
setTimeout(function () { | ||
if (!didFireReady && window.cordova) { | ||
console.warn('Native: deviceready did not fire within ' + DEVICE_READY_TIMEOUT + 'ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.'); | ||
} | ||
}, DEVICE_READY_TIMEOUT); |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,20 @@ | ||
const DEVICE_READY_TIMEOUT = 2000; | ||
|
||
export * from './plugins/actionsheet'; | ||
export * from './plugins/camera'; | ||
export * from './plugins/statusbar'; | ||
export * from './plugins/toast'; | ||
|
||
declare var window; | ||
|
||
|
||
let didFireReady = false; | ||
window.addEventListener('deviceready', function() { | ||
didFireReady = true; | ||
}) | ||
|
||
setTimeout(function() { | ||
if(!didFireReady && window.cordova) { | ||
console.warn('Native: deviceready did not fire within ' + DEVICE_READY_TIMEOUT + 'ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.'); | ||
} | ||
}, DEVICE_READY_TIMEOUT); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import {Plugin, Cordova} from './plugin'; | ||
|
||
@Plugin({ | ||
name: 'ActionSheet', | ||
plugin: 'cordova-plugin-actionsheet', | ||
pluginRef: 'plugins.actionsheet', | ||
repo: 'https://github.com/EddyVerbruggen/cordova-plugin-actionsheet' | ||
}) | ||
export class ActionSheet { | ||
@Cordova({ | ||
successIndex: 1, | ||
errIndex: 2 | ||
}) | ||
static show; | ||
|
||
@Cordova({ | ||
successIndex: 1, | ||
errIndex: 2 | ||
}) | ||
static hide; | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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