├── .DS_Store ├── .bowerrc ├── .editorconfig ├── .gitignore ├── .idea ├── .name ├── compiler.xml ├── copyright │ └── profiles_settings.xml ├── encodings.xml ├── ionicPayDemo.iml ├── misc.xml ├── modules.xml ├── vcs.xml └── workspace.xml ├── LICENSE ├── README.md ├── app.jks ├── bower.json ├── config.xml ├── gulpfile.js ├── hooks ├── README.md └── after_prepare │ └── 010_add_platform_class.js ├── ionic.config.json ├── package.json ├── plugins ├── .DS_Store ├── android.json ├── com.yoopoon.cordova.plugin.alipay.zip ├── com.yoopoon.cordova.plugin.alipay │ ├── .DS_Store │ ├── plugin.xml │ ├── src │ │ ├── .DS_Store │ │ ├── android │ │ │ ├── .DS_Store │ │ │ ├── alipaySdk-20160223.jar │ │ │ └── com │ │ │ │ ├── .DS_Store │ │ │ │ └── yoopoon │ │ │ │ ├── .DS_Store │ │ │ │ └── cordova │ │ │ │ ├── .DS_Store │ │ │ │ └── plugin │ │ │ │ ├── .DS_Store │ │ │ │ └── alipay │ │ │ │ ├── Alipay.java │ │ │ │ ├── Base64.java │ │ │ │ ├── Result.java │ │ │ │ └── SignUtils.java │ │ └── ios │ │ │ ├── .DS_Store │ │ │ ├── AlipayOrder.h │ │ │ ├── AlipayOrder.m │ │ │ ├── AlipaySDK.bundle │ │ │ ├── bar@2x.png │ │ │ ├── refresh@2x.png │ │ │ ├── refresh_click@2x.png │ │ │ ├── shutdown@2x.png │ │ │ └── shutdown_click@2x.png │ │ │ ├── AlipaySDK.framework │ │ │ ├── .DS_Store │ │ │ ├── AlipaySDK │ │ │ ├── Headers │ │ │ │ ├── APayAuthInfo.h │ │ │ │ └── AlipaySDK.h │ │ │ ├── Info.plist │ │ │ └── en.lproj │ │ │ │ └── InfoPlist.strings │ │ │ ├── CDVAlipay.h │ │ │ ├── CDVAlipay.m │ │ │ ├── Order.h │ │ │ ├── Order.m │ │ │ ├── Util │ │ │ ├── .DS_Store │ │ │ ├── DataSigner.h │ │ │ ├── DataSigner.m │ │ │ ├── DataVerifier.h │ │ │ ├── DataVerifier.m │ │ │ ├── MD5DataSigner.h │ │ │ ├── MD5DataSigner.m │ │ │ ├── NSDataEx.h │ │ │ ├── NSDataEx.m │ │ │ ├── RSADataSigner.h │ │ │ ├── RSADataSigner.m │ │ │ ├── RSADataVerifier.h │ │ │ ├── RSADataVerifier.m │ │ │ ├── base64.h │ │ │ ├── base64.m │ │ │ ├── config.h │ │ │ ├── openssl_wrapper.h │ │ │ └── openssl_wrapper.m │ │ │ ├── libcrypto.a │ │ │ ├── libssl.a │ │ │ └── openssl │ │ │ ├── aes.h │ │ │ ├── asn1.h │ │ │ ├── asn1_mac.h │ │ │ ├── asn1t.h │ │ │ ├── bio.h │ │ │ ├── blowfish.h │ │ │ ├── bn.h │ │ │ ├── buffer.h │ │ │ ├── camellia.h │ │ │ ├── cast.h │ │ │ ├── cmac.h │ │ │ ├── cms.h │ │ │ ├── comp.h │ │ │ ├── conf.h │ │ │ ├── conf_api.h │ │ │ ├── crypto.h │ │ │ ├── des.h │ │ │ ├── des_old.h │ │ │ ├── dh.h │ │ │ ├── dsa.h │ │ │ ├── dso.h │ │ │ ├── dtls1.h │ │ │ ├── e_os2.h │ │ │ ├── ebcdic.h │ │ │ ├── ec.h │ │ │ ├── ecdh.h │ │ │ ├── ecdsa.h │ │ │ ├── engine.h │ │ │ ├── err.h │ │ │ ├── evp.h │ │ │ ├── hmac.h │ │ │ ├── idea.h │ │ │ ├── krb5_asn.h │ │ │ ├── kssl.h │ │ │ ├── lhash.h │ │ │ ├── md4.h │ │ │ ├── md5.h │ │ │ ├── mdc2.h │ │ │ ├── modes.h │ │ │ ├── obj_mac.h │ │ │ ├── objects.h │ │ │ ├── ocsp.h │ │ │ ├── opensslconf.h │ │ │ ├── opensslv.h │ │ │ ├── ossl_typ.h │ │ │ ├── pem.h │ │ │ ├── pem2.h │ │ │ ├── pkcs12.h │ │ │ ├── pkcs7.h │ │ │ ├── pqueue.h │ │ │ ├── rand.h │ │ │ ├── rc2.h │ │ │ ├── rc4.h │ │ │ ├── ripemd.h │ │ │ ├── rsa.h │ │ │ ├── safestack.h │ │ │ ├── seed.h │ │ │ ├── sha.h │ │ │ ├── srp.h │ │ │ ├── srtp.h │ │ │ ├── ssl.h │ │ │ ├── ssl2.h │ │ │ ├── ssl23.h │ │ │ ├── ssl3.h │ │ │ ├── stack.h │ │ │ ├── symhacks.h │ │ │ ├── tls1.h │ │ │ ├── ts.h │ │ │ ├── txt_db.h │ │ │ ├── ui.h │ │ │ ├── ui_compat.h │ │ │ ├── whrlpool.h │ │ │ ├── x509.h │ │ │ ├── x509_vfy.h │ │ │ └── x509v3.h │ └── www │ │ └── alipay.js ├── cordova-plugin-console │ ├── CONTRIBUTING.md │ ├── LICENSE │ ├── NOTICE │ ├── README.md │ ├── RELEASENOTES.md │ ├── doc │ │ ├── de │ │ │ ├── README.md │ │ │ └── index.md │ │ ├── es │ │ │ ├── README.md │ │ │ └── index.md │ │ ├── fr │ │ │ ├── README.md │ │ │ └── index.md │ │ ├── it │ │ │ ├── README.md │ │ │ └── index.md │ │ ├── ja │ │ │ ├── README.md │ │ │ └── index.md │ │ ├── ko │ │ │ ├── README.md │ │ │ └── index.md │ │ ├── pl │ │ │ ├── README.md │ │ │ └── index.md │ │ ├── ru │ │ │ └── index.md │ │ └── zh │ │ │ ├── README.md │ │ │ └── index.md │ ├── package.json │ ├── plugin.xml │ ├── src │ │ ├── ios │ │ │ ├── CDVLogger.h │ │ │ └── CDVLogger.m │ │ ├── ubuntu │ │ │ ├── console.cpp │ │ │ └── console.h │ │ └── wp │ │ │ └── DebugConsole.cs │ ├── tests │ │ ├── plugin.xml │ │ └── tests.js │ └── www │ │ ├── console-via-logger.js │ │ └── logger.js ├── cordova-plugin-device │ ├── CONTRIBUTING.md │ ├── LICENSE │ ├── NOTICE │ ├── README.md │ ├── RELEASENOTES.md │ ├── doc │ │ ├── de │ │ │ ├── README.md │ │ │ └── index.md │ │ ├── es │ │ │ ├── README.md │ │ │ └── index.md │ │ ├── fr │ │ │ ├── README.md │ │ │ └── index.md │ │ ├── it │ │ │ ├── README.md │ │ │ └── index.md │ │ ├── ja │ │ │ ├── README.md │ │ │ └── index.md │ │ ├── ko │ │ │ ├── README.md │ │ │ └── index.md │ │ ├── pl │ │ │ ├── README.md │ │ │ └── index.md │ │ ├── ru │ │ │ └── index.md │ │ └── zh │ │ │ ├── README.md │ │ │ └── index.md │ ├── package.json │ ├── plugin.xml │ ├── src │ │ ├── android │ │ │ └── Device.java │ │ ├── blackberry10 │ │ │ └── index.js │ │ ├── browser │ │ │ └── DeviceProxy.js │ │ ├── firefoxos │ │ │ └── DeviceProxy.js │ │ ├── ios │ │ │ ├── CDVDevice.h │ │ │ └── CDVDevice.m │ │ ├── osx │ │ │ ├── CDVDevice.h │ │ │ └── CDVDevice.m │ │ ├── tizen │ │ │ └── DeviceProxy.js │ │ ├── ubuntu │ │ │ ├── device.cpp │ │ │ ├── device.h │ │ │ └── device.js │ │ ├── windows │ │ │ └── DeviceProxy.js │ │ └── wp │ │ │ └── Device.cs │ ├── tests │ │ ├── plugin.xml │ │ └── tests.js │ └── www │ │ └── device.js ├── cordova-plugin-splashscreen │ ├── CONTRIBUTING.md │ ├── LICENSE │ ├── NOTICE │ ├── README.md │ ├── RELEASENOTES.md │ ├── doc │ │ ├── de │ │ │ ├── README.md │ │ │ └── index.md │ │ ├── es │ │ │ ├── README.md │ │ │ └── index.md │ │ ├── fr │ │ │ ├── README.md │ │ │ └── index.md │ │ ├── it │ │ │ ├── README.md │ │ │ └── index.md │ │ ├── ja │ │ │ ├── README.md │ │ │ └── index.md │ │ ├── ko │ │ │ ├── README.md │ │ │ └── index.md │ │ ├── pl │ │ │ ├── README.md │ │ │ └── index.md │ │ ├── ru │ │ │ └── index.md │ │ └── zh │ │ │ ├── README.md │ │ │ └── index.md │ ├── package.json │ ├── plugin.xml │ ├── src │ │ ├── android │ │ │ └── SplashScreen.java │ │ ├── blackberry10 │ │ │ └── index.js │ │ ├── browser │ │ │ └── SplashScreenProxy.js │ │ ├── ios │ │ │ ├── CDVSplashScreen.h │ │ │ ├── CDVSplashScreen.m │ │ │ ├── CDVViewController+SplashScreen.h │ │ │ └── CDVViewController+SplashScreen.m │ │ ├── tizen │ │ │ └── SplashScreenProxy.js │ │ ├── ubuntu │ │ │ ├── splashscreen.cpp │ │ │ └── splashscreen.h │ │ └── wp │ │ │ ├── ResolutionHelper.cs │ │ │ └── SplashScreen.cs │ ├── tests │ │ ├── ios │ │ │ ├── CDVSplashScreenTest.xcworkspace │ │ │ │ ├── contents.xcworkspacedata │ │ │ │ └── xcshareddata │ │ │ │ │ ├── CDVSplashScreenTest.xccheckout │ │ │ │ │ └── xcschemes │ │ │ │ │ └── CordovaLib.xcscheme │ │ │ ├── CDVSplashScreenTest │ │ │ │ ├── .npmignore │ │ │ │ ├── CDVSplashScreenLibTests │ │ │ │ │ ├── ImageNameTest.m │ │ │ │ │ ├── ImageNameTestDelegates.h │ │ │ │ │ ├── ImageNameTestDelegates.m │ │ │ │ │ └── Info.plist │ │ │ │ └── CDVSplashScreenTest.xcodeproj │ │ │ │ │ ├── project.pbxproj │ │ │ │ │ ├── project.xcworkspace │ │ │ │ │ ├── contents.xcworkspacedata │ │ │ │ │ └── xcshareddata │ │ │ │ │ │ └── CDVSplashScreenTest.xccheckout │ │ │ │ │ └── xcshareddata │ │ │ │ │ └── xcschemes │ │ │ │ │ ├── CDVSplashScreenLib.xcscheme │ │ │ │ │ └── CDVSplashScreenLibTests.xcscheme │ │ │ ├── README.md │ │ │ ├── doc │ │ │ │ ├── de │ │ │ │ │ └── README.md │ │ │ │ ├── es │ │ │ │ │ └── README.md │ │ │ │ ├── fr │ │ │ │ │ └── README.md │ │ │ │ ├── it │ │ │ │ │ └── README.md │ │ │ │ ├── ja │ │ │ │ │ └── README.md │ │ │ │ ├── ko │ │ │ │ │ └── README.md │ │ │ │ ├── pl │ │ │ │ │ └── README.md │ │ │ │ └── zh │ │ │ │ │ └── README.md │ │ │ └── package.json │ │ ├── plugin.xml │ │ └── tests.js │ └── www │ │ ├── splashscreen.js │ │ └── windows │ │ └── SplashScreenProxy.js ├── cordova-plugin-statusbar │ ├── CONTRIBUTING.md │ ├── LICENSE │ ├── NOTICE │ ├── README.md │ ├── RELEASENOTES.md │ ├── doc │ │ ├── de │ │ │ ├── README.md │ │ │ └── index.md │ │ ├── es │ │ │ ├── README.md │ │ │ └── index.md │ │ ├── fr │ │ │ ├── README.md │ │ │ └── index.md │ │ ├── it │ │ │ ├── README.md │ │ │ └── index.md │ │ ├── ja │ │ │ ├── README.md │ │ │ └── index.md │ │ ├── ko │ │ │ ├── README.md │ │ │ └── index.md │ │ ├── pl │ │ │ ├── README.md │ │ │ └── index.md │ │ ├── ru │ │ │ └── index.md │ │ └── zh │ │ │ ├── README.md │ │ │ └── index.md │ ├── package.json │ ├── plugin.xml │ ├── src │ │ ├── android │ │ │ └── StatusBar.java │ │ ├── browser │ │ │ └── statusbar.js │ │ ├── ios │ │ │ ├── CDVStatusBar.h │ │ │ └── CDVStatusBar.m │ │ ├── windows │ │ │ └── StatusBarProxy.js │ │ └── wp │ │ │ └── StatusBar.cs │ ├── tests │ │ ├── plugin.xml │ │ └── tests.js │ └── www │ │ └── statusbar.js ├── cordova-plugin-whitelist │ ├── CONTRIBUTING.md │ ├── LICENSE │ ├── NOTICE │ ├── README.md │ ├── RELEASENOTES.md │ ├── doc │ │ ├── de │ │ │ └── README.md │ │ ├── es │ │ │ └── README.md │ │ ├── fr │ │ │ └── README.md │ │ ├── it │ │ │ └── README.md │ │ ├── ja │ │ │ └── README.md │ │ ├── ko │ │ │ └── README.md │ │ ├── pl │ │ │ └── README.md │ │ └── zh │ │ │ └── README.md │ ├── package.json │ ├── plugin.xml │ └── src │ │ └── android │ │ └── WhitelistPlugin.java ├── cordova.weixin.pay │ ├── .DS_Store │ ├── plugin.xml │ ├── src │ │ ├── .DS_Store │ │ ├── android │ │ │ ├── .DS_Store │ │ │ ├── com │ │ │ │ ├── atide │ │ │ │ │ └── cordova │ │ │ │ │ │ └── plugin │ │ │ │ │ │ └── weixin │ │ │ │ │ │ ├── AppRegister.java │ │ │ │ │ │ ├── Util.java │ │ │ │ │ │ └── Weixin.java │ │ │ │ └── ionicframework │ │ │ │ │ └── starter │ │ │ │ │ └── wxapi │ │ │ │ │ └── WXPayEntryActivity.java │ │ │ ├── libammsdk.jar │ │ │ └── org.apache.http.legacy.jar │ │ └── ios │ │ │ ├── .DS_Store │ │ │ ├── AFNetworking │ │ │ ├── AFHTTPClient.h │ │ │ ├── AFHTTPClient.m │ │ │ ├── AFHTTPRequestOperation.h │ │ │ ├── AFHTTPRequestOperation.m │ │ │ ├── AFImageRequestOperation.h │ │ │ ├── AFImageRequestOperation.m │ │ │ ├── AFJSONRequestOperation.h │ │ │ ├── AFJSONRequestOperation.m │ │ │ ├── AFNetworkActivityIndicatorManager.h │ │ │ ├── AFNetworkActivityIndicatorManager.m │ │ │ ├── AFNetworking.h │ │ │ ├── AFPropertyListRequestOperation.h │ │ │ ├── AFPropertyListRequestOperation.m │ │ │ ├── AFURLConnectionOperation.h │ │ │ ├── AFURLConnectionOperation.m │ │ │ ├── AFXMLRequestOperation.h │ │ │ ├── AFXMLRequestOperation.m │ │ │ ├── UIImageView+AFNetworking.h │ │ │ └── UIImageView+AFNetworking.m │ │ │ ├── CDVWeixin.h │ │ │ ├── CDVWeixin.m │ │ │ ├── JSONKit │ │ │ ├── JSONKit.h │ │ │ └── JSONKit.m │ │ │ ├── PayOrder.h │ │ │ ├── WXHttpUtil.h │ │ │ ├── WXHttpUtil.m │ │ │ └── weixin │ │ │ ├── .DS_Store │ │ │ ├── WXApi.h │ │ │ ├── WXApiObject.h │ │ │ └── libWeChatSDK.a │ └── www │ │ ├── .DS_Store │ │ └── weixin.js ├── fetch.json ├── ionic-plugin-keyboard │ ├── LICENSE │ ├── README.md │ ├── package.json │ ├── plugin.xml │ ├── src │ │ ├── android │ │ │ └── IonicKeyboard.java │ │ ├── blackberry10 │ │ │ ├── index.js │ │ │ └── native │ │ │ │ ├── .cproject │ │ │ │ ├── .project │ │ │ │ ├── device │ │ │ │ ├── libKeyboard.so │ │ │ │ ├── public │ │ │ │ │ ├── json_reader.o │ │ │ │ │ ├── json_value.o │ │ │ │ │ ├── json_writer.o │ │ │ │ │ ├── plugin.o │ │ │ │ │ └── tokenizer.o │ │ │ │ └── src │ │ │ │ │ ├── CallKeyboard.o │ │ │ │ │ ├── Logger.o │ │ │ │ │ ├── keyboard_js.o │ │ │ │ │ └── keyboard_ndk.o │ │ │ │ ├── public │ │ │ │ ├── json │ │ │ │ │ ├── autolink.h │ │ │ │ │ ├── config.h │ │ │ │ │ ├── features.h │ │ │ │ │ ├── forwards.h │ │ │ │ │ ├── json.h │ │ │ │ │ ├── reader.h │ │ │ │ │ ├── value.h │ │ │ │ │ └── writer.h │ │ │ │ ├── json_batchallocator.h │ │ │ │ ├── json_internalarray.inl │ │ │ │ ├── json_internalmap.inl │ │ │ │ ├── json_reader.cpp │ │ │ │ ├── json_value.cpp │ │ │ │ ├── json_valueiterator.inl │ │ │ │ ├── json_writer.cpp │ │ │ │ ├── plugin.cpp │ │ │ │ ├── plugin.h │ │ │ │ ├── tokenizer.cpp │ │ │ │ └── tokenizer.h │ │ │ │ ├── simulator │ │ │ │ ├── libKeyboard.so │ │ │ │ ├── public │ │ │ │ │ ├── json_reader.o │ │ │ │ │ ├── json_value.o │ │ │ │ │ ├── json_writer.o │ │ │ │ │ ├── plugin.o │ │ │ │ │ └── tokenizer.o │ │ │ │ └── src │ │ │ │ │ ├── CallKeyboard.o │ │ │ │ │ ├── Logger.o │ │ │ │ │ ├── keyboard_js.o │ │ │ │ │ └── keyboard_ndk.o │ │ │ │ └── src │ │ │ │ ├── Logger.cpp │ │ │ │ ├── Logger.hpp │ │ │ │ ├── keyboard_js.cpp │ │ │ │ ├── keyboard_js.hpp │ │ │ │ ├── keyboard_ndk.cpp │ │ │ │ └── keyboard_ndk.hpp │ │ ├── ios │ │ │ ├── IonicKeyboard.h │ │ │ └── IonicKeyboard.m │ │ └── windows │ │ │ └── KeyboardProxy.js │ └── www │ │ ├── android │ │ └── keyboard.js │ │ ├── browser │ │ └── keyboard.js │ │ └── ios │ │ └── keyboard.js └── ios.json ├── resources ├── .DS_Store ├── android │ ├── .DS_Store │ ├── icon │ │ ├── .DS_Store │ │ ├── drawable-hdpi-icon.png │ │ ├── drawable-ldpi-icon.png │ │ ├── drawable-mdpi-icon.png │ │ ├── drawable-xhdpi-icon.png │ │ ├── drawable-xxhdpi-icon.png │ │ └── drawable-xxxhdpi-icon.png │ └── splash │ │ ├── drawable-land-hdpi-screen.png │ │ ├── drawable-land-ldpi-screen.png │ │ ├── drawable-land-mdpi-screen.png │ │ ├── drawable-land-xhdpi-screen.png │ │ ├── drawable-land-xxhdpi-screen.png │ │ ├── drawable-land-xxxhdpi-screen.png │ │ ├── drawable-port-hdpi-screen.png │ │ ├── drawable-port-ldpi-screen.png │ │ ├── drawable-port-mdpi-screen.png │ │ ├── drawable-port-xhdpi-screen.png │ │ ├── drawable-port-xxhdpi-screen.png │ │ └── drawable-port-xxxhdpi-screen.png ├── icon.png ├── ios │ ├── .DS_Store │ ├── icon │ │ ├── .DS_Store │ │ ├── icon-40.png │ │ ├── icon-40@2x.png │ │ ├── icon-40@3x.png │ │ ├── icon-50.png │ │ ├── icon-50@2x.png │ │ ├── icon-60.png │ │ ├── icon-60@2x.png │ │ ├── icon-60@3x.png │ │ ├── icon-72.png │ │ ├── icon-72@2x.png │ │ ├── icon-76.png │ │ ├── icon-76@2x.png │ │ ├── icon-83.5@2x.png │ │ ├── icon-small.png │ │ ├── icon-small@2x.png │ │ ├── icon-small@3x.png │ │ ├── icon.png │ │ └── icon@2x.png │ └── splash │ │ ├── .DS_Store │ │ ├── Default-568h@2x~iphone.png │ │ ├── Default-667h.png │ │ ├── Default-736h.png │ │ ├── Default-Landscape-736h.png │ │ ├── Default-Landscape@2x~ipad.png │ │ ├── Default-Landscape~ipad.png │ │ ├── Default-Portrait@2x~ipad.png │ │ ├── Default-Portrait~ipad.png │ │ ├── Default@2x~iphone.png │ │ └── Default~iphone.png └── splash.png ├── scss └── ionic.app.scss └── www ├── .DS_Store ├── README.md ├── css └── style.css ├── img ├── adam.jpg ├── ben.png ├── ionic.png ├── max.png ├── mike.png └── perry.png ├── index.html ├── js ├── .DS_Store ├── app.js ├── controllers.js ├── controllers99.js └── services.js ├── lib ├── .DS_Store └── ionic │ ├── .DS_Store │ ├── css │ ├── ionic.css │ └── ionic.min.css │ ├── fonts │ ├── ionicons.eot │ ├── ionicons.svg │ ├── ionicons.ttf │ └── ionicons.woff │ ├── js │ ├── .DS_Store │ ├── angular-ui │ │ ├── angular-ui-router.js │ │ └── angular-ui-router.min.js │ ├── angular │ │ ├── angular-animate.js │ │ ├── angular-animate.min.js │ │ ├── angular-resource.js │ │ ├── angular-resource.min.js │ │ ├── angular-sanitize.js │ │ ├── angular-sanitize.min.js │ │ ├── angular.js │ │ └── angular.min.js │ ├── ionic-angular.js │ ├── ionic-angular.min.js │ ├── ionic.bundle.js │ ├── ionic.bundle.min.js │ ├── ionic.js │ ├── ionic.min.js │ └── ng-cordova │ │ ├── .DS_Store │ │ └── dist │ │ ├── .DS_Store │ │ ├── ng-cordova-mocks.js │ │ ├── ng-cordova-mocks.min.js │ │ ├── ng-cordova.js │ │ └── ng-cordova.min.js │ ├── scss │ ├── _action-sheet.scss │ ├── _animations.scss │ ├── _backdrop.scss │ ├── _badge.scss │ ├── _bar.scss │ ├── _button-bar.scss │ ├── _button.scss │ ├── _checkbox.scss │ ├── _form.scss │ ├── _grid.scss │ ├── _items.scss │ ├── _list.scss │ ├── _loading.scss │ ├── _menu.scss │ ├── _mixins.scss │ ├── _modal.scss │ ├── _platform.scss │ ├── _popover.scss │ ├── _popup.scss │ ├── _progress.scss │ ├── _radio.scss │ ├── _range.scss │ ├── _refresher.scss │ ├── _reset.scss │ ├── _scaffolding.scss │ ├── _select.scss │ ├── _slide-box.scss │ ├── _slides.scss │ ├── _spinner.scss │ ├── _tabs.scss │ ├── _toggle.scss │ ├── _transitions.scss │ ├── _type.scss │ ├── _util.scss │ ├── _variables.scss │ ├── ionic.scss │ └── ionicons │ │ ├── _ionicons-font.scss │ │ ├── _ionicons-icons.scss │ │ ├── _ionicons-variables.scss │ │ └── ionicons.scss │ └── version.json └── templates ├── chat-detail.html ├── tab-account.html ├── tab-chats.html ├── tab-dash.html └── tabs.html /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/.DS_Store -------------------------------------------------------------------------------- /.bowerrc: -------------------------------------------------------------------------------- 1 | { 2 | "directory": "www/lib" 3 | } 4 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # http://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | indent_style = space 7 | indent_size = 2 8 | end_of_line = lf 9 | insert_final_newline = true 10 | trim_trailing_whitespace = true 11 | 12 | [*.md] 13 | insert_final_newline = false 14 | trim_trailing_whitespace = false -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Specifies intentionally untracked files to ignore when using Git 2 | # http://git-scm.com/docs/gitignore 3 | 4 | node_modules/ 5 | platforms/ 6 | -------------------------------------------------------------------------------- /.idea/.name: -------------------------------------------------------------------------------- 1 | ionicPayDemo -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.idea/ionicPayDemo.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | #ionicPayDemo 2 | ##cordova 支付插件,支付宝与微信支付 3 | 目前支持支付宝支付的安卓端与ios端,微信的ios端 4 | 5 | 使用方法: 6 | 支付宝:在调用时传入必要参数就可调起支付,无需修改其他配置文件,传参参考:controllers.js文件 7 | 常见问题:报String.length()调用空指针问题,检查rsa_private是否正确,是否是pkcs8格式 8 | 9 | 微信: 10 | 传参参考:controllers.js,另外修改plugin.xml里微信app_id,schema修改为app_id 11 | 安卓版:修改工程目录下config.xml中id为android项目实际包名,修改plugin.xml中的 12 | target-dir="src/com/sharedParking/mz/wxapi", 13 | 把其中com/sharedParking/zm改为自己的 包名。 14 | 再有 修改插件下WxPayEntryActivity.java中的包名,同上面两处一 致 15 | 16 | -------------------------------------------------------------------------------- /app.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/app.jks -------------------------------------------------------------------------------- /bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "HelloIonic", 3 | "private": "true", 4 | "devDependencies": { 5 | "ionic": "driftyco/ionic-bower#1.3.1" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /gulpfile.js: -------------------------------------------------------------------------------- 1 | var gulp = require('gulp'); 2 | var gutil = require('gulp-util'); 3 | var bower = require('bower'); 4 | var concat = require('gulp-concat'); 5 | var sass = require('gulp-sass'); 6 | var minifyCss = require('gulp-minify-css'); 7 | var rename = require('gulp-rename'); 8 | var sh = require('shelljs'); 9 | 10 | var paths = { 11 | sass: ['./scss/**/*.scss'] 12 | }; 13 | 14 | gulp.task('default', ['sass']); 15 | 16 | gulp.task('sass', function(done) { 17 | gulp.src('./scss/ionic.app.scss') 18 | .pipe(sass()) 19 | .on('error', sass.logError) 20 | .pipe(gulp.dest('./www/css/')) 21 | .pipe(minifyCss({ 22 | keepSpecialComments: 0 23 | })) 24 | .pipe(rename({ extname: '.min.css' })) 25 | .pipe(gulp.dest('./www/css/')) 26 | .on('end', done); 27 | }); 28 | 29 | gulp.task('watch', function() { 30 | gulp.watch(paths.sass, ['sass']); 31 | }); 32 | 33 | gulp.task('install', ['git-check'], function() { 34 | return bower.commands.install() 35 | .on('log', function(data) { 36 | gutil.log('bower', gutil.colors.cyan(data.id), data.message); 37 | }); 38 | }); 39 | 40 | gulp.task('git-check', function(done) { 41 | if (!sh.which('git')) { 42 | console.log( 43 | ' ' + gutil.colors.red('Git is not installed.'), 44 | '\n Git, the version control system, is required to download Ionic.', 45 | '\n Download git here:', gutil.colors.cyan('http://git-scm.com/downloads') + '.', 46 | '\n Once git is installed, run \'' + gutil.colors.cyan('gulp install') + '\' again.' 47 | ); 48 | process.exit(1); 49 | } 50 | done(); 51 | }); 52 | -------------------------------------------------------------------------------- /ionic.config.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "app", 3 | "app_id": "" 4 | } 5 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ionic-project", 3 | "version": "1.1.1", 4 | "description": "An Ionic project", 5 | "dependencies": { 6 | "gulp": "^3.5.6", 7 | "gulp-sass": "^2.0.4", 8 | "gulp-concat": "^2.2.0", 9 | "gulp-minify-css": "^0.3.0", 10 | "gulp-rename": "^1.2.0" 11 | }, 12 | "devDependencies": { 13 | "bower": "^1.3.3", 14 | "gulp-util": "^2.2.14", 15 | "shelljs": "^0.3.0" 16 | }, 17 | "cordovaPlugins": [ 18 | "cordova-plugin-device", 19 | "cordova-plugin-console", 20 | "cordova-plugin-whitelist", 21 | "cordova-plugin-splashscreen", 22 | "cordova-plugin-statusbar", 23 | "ionic-plugin-keyboard", 24 | { 25 | "locator": "../cordova-weixin", 26 | "id": "cordova.weixin.pay" 27 | } 28 | ], 29 | "cordovaPlatforms": [ 30 | "android", 31 | "ios" 32 | ] 33 | } 34 | -------------------------------------------------------------------------------- /plugins/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/.DS_Store -------------------------------------------------------------------------------- /plugins/android.json: -------------------------------------------------------------------------------- 1 | { 2 | "prepare_queue": { 3 | "installed": [], 4 | "uninstalled": [] 5 | }, 6 | "config_munge": { 7 | "files": {} 8 | }, 9 | "installed_plugins": { 10 | "com.yoopoon.cordova.plugin.alipay": { 11 | "PACKAGE_NAME": "com.sharedParking.mz" 12 | }, 13 | "cordova-plugin-console": { 14 | "PACKAGE_NAME": "com.sharedParking.mz" 15 | }, 16 | "cordova-plugin-device": { 17 | "PACKAGE_NAME": "com.sharedParking.mz" 18 | }, 19 | "cordova-plugin-splashscreen": { 20 | "PACKAGE_NAME": "com.sharedParking.mz" 21 | }, 22 | "cordova-plugin-statusbar": { 23 | "PACKAGE_NAME": "com.sharedParking.mz" 24 | }, 25 | "cordova-plugin-whitelist": { 26 | "PACKAGE_NAME": "com.sharedParking.mz" 27 | }, 28 | "cordova.weixin.pay": { 29 | "PACKAGE_NAME": "com.sharedParking.mz" 30 | }, 31 | "ionic-plugin-keyboard": { 32 | "PACKAGE_NAME": "com.sharedParking.mz" 33 | } 34 | }, 35 | "dependent_plugins": {} 36 | } -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/com.yoopoon.cordova.plugin.alipay.zip -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/com.yoopoon.cordova.plugin.alipay/.DS_Store -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/src/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/com.yoopoon.cordova.plugin.alipay/src/.DS_Store -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/src/android/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/com.yoopoon.cordova.plugin.alipay/src/android/.DS_Store -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/src/android/alipaySdk-20160223.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/com.yoopoon.cordova.plugin.alipay/src/android/alipaySdk-20160223.jar -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/src/android/com/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/com.yoopoon.cordova.plugin.alipay/src/android/com/.DS_Store -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/src/android/com/yoopoon/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/com.yoopoon.cordova.plugin.alipay/src/android/com/yoopoon/.DS_Store -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/src/android/com/yoopoon/cordova/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/com.yoopoon.cordova.plugin.alipay/src/android/com/yoopoon/cordova/.DS_Store -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/src/android/com/yoopoon/cordova/plugin/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/com.yoopoon.cordova.plugin.alipay/src/android/com/yoopoon/cordova/plugin/.DS_Store -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/src/android/com/yoopoon/cordova/plugin/alipay/Result.java: -------------------------------------------------------------------------------- 1 | package com.yoopoon.cordova.plugin.alipay; public class Result { String resultStatus; String result; String memo; public Result(String rawResult) { try { String[] resultParams = rawResult.split(";"); for (String resultParam : resultParams) { if (resultParam.startsWith("resultStatus")) { resultStatus = gatValue(resultParam, "resultStatus"); } if (resultParam.startsWith("result")) { result = gatValue(resultParam, "result"); } if (resultParam.startsWith("memo")) { memo = gatValue(resultParam, "memo"); } } } catch (Exception e) { e.printStackTrace(); } } @Override public String toString() { return "resultStatus={" + resultStatus + "};memo={" + memo + "};result={" + result + "}"; } private String gatValue(String content, String key) { String prefix = key + "={"; return content.substring(content.indexOf(prefix) + prefix.length(), content.lastIndexOf("}")); } } -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/src/android/com/yoopoon/cordova/plugin/alipay/SignUtils.java: -------------------------------------------------------------------------------- 1 | package com.yoopoon.cordova.plugin.alipay; 2 | 3 | import java.security.KeyFactory; 4 | import java.security.PrivateKey; 5 | import java.security.spec.PKCS8EncodedKeySpec; 6 | 7 | public class SignUtils { 8 | 9 | private static final String ALGORITHM = "RSA"; 10 | 11 | private static final String SIGN_ALGORITHMS = "SHA1WithRSA"; 12 | 13 | private static final String DEFAULT_CHARSET = "UTF-8"; 14 | 15 | public static String sign(String content, String privateKey) { 16 | try { 17 | PKCS8EncodedKeySpec priPKCS8 = new PKCS8EncodedKeySpec( 18 | Base64.decode(privateKey)); 19 | KeyFactory keyf = KeyFactory.getInstance(ALGORITHM); 20 | PrivateKey priKey = keyf.generatePrivate(priPKCS8); 21 | 22 | java.security.Signature signature = java.security.Signature 23 | .getInstance(SIGN_ALGORITHMS); 24 | 25 | signature.initSign(priKey); 26 | signature.update(content.getBytes(DEFAULT_CHARSET)); 27 | 28 | byte[] signed = signature.sign(); 29 | 30 | return Base64.encode(signed); 31 | } catch (Exception e) { 32 | e.printStackTrace(); 33 | } 34 | 35 | return null; 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/src/ios/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/com.yoopoon.cordova.plugin.alipay/src/ios/.DS_Store -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/src/ios/AlipayOrder.h: -------------------------------------------------------------------------------- 1 | // 2 | // Order.h 3 | // AlixPayDemo 4 | // 5 | // Created by 方彬 on 11/2/13. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @interface AlipayOrder : NSObject 12 | 13 | @property(nonatomic, copy) NSString * partner; 14 | @property(nonatomic, copy) NSString * seller; 15 | @property(nonatomic, copy) NSString * tradeNO; 16 | @property(nonatomic, copy) NSString * productName; 17 | @property(nonatomic, copy) NSString * productDescription; 18 | @property(nonatomic, copy) NSString * amount; 19 | @property(nonatomic, copy) NSString * notifyURL; 20 | 21 | @property(nonatomic, copy) NSString * service; 22 | @property(nonatomic, copy) NSString * paymentType; 23 | @property(nonatomic, copy) NSString * inputCharset; 24 | @property(nonatomic, copy) NSString * itBPay; 25 | @property(nonatomic, copy) NSString * showUrl; 26 | 27 | 28 | @property(nonatomic, copy) NSString * rsaDate;//可选 29 | @property(nonatomic, copy) NSString * appID;//可选 30 | 31 | @property(nonatomic, readonly) NSMutableDictionary * extraParams; 32 | 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/src/ios/AlipayOrder.m: -------------------------------------------------------------------------------- 1 | // 2 | // Order.m 3 | // AlixPayDemo 4 | // 5 | // Created by 方彬 on 11/2/13. 6 | // 7 | // 8 | 9 | #import "AlipayOrder.h" 10 | 11 | @implementation AlipayOrder 12 | 13 | - (NSString *)description { 14 | NSMutableString * discription = [NSMutableString string]; 15 | if (self.partner) { 16 | [discription appendFormat:@"partner=\"%@\"", self.partner]; 17 | } 18 | 19 | if (self.seller) { 20 | [discription appendFormat:@"&seller_id=\"%@\"", self.seller]; 21 | } 22 | if (self.tradeNO) { 23 | [discription appendFormat:@"&out_trade_no=\"%@\"", self.tradeNO]; 24 | } 25 | if (self.productName) { 26 | [discription appendFormat:@"&subject=\"%@\"", self.productName]; 27 | } 28 | 29 | if (self.productDescription) { 30 | [discription appendFormat:@"&body=\"%@\"", self.productDescription]; 31 | } 32 | if (self.amount) { 33 | [discription appendFormat:@"&total_fee=\"%@\"", self.amount]; 34 | } 35 | if (self.notifyURL) { 36 | [discription appendFormat:@"¬ify_url=\"%@\"", self.notifyURL]; 37 | } 38 | 39 | if (self.service) { 40 | [discription appendFormat:@"&service=\"%@\"",self.service];//mobile.securitypay.pay 41 | } 42 | if (self.paymentType) { 43 | [discription appendFormat:@"&payment_type=\"%@\"",self.paymentType];//1 44 | } 45 | 46 | if (self.inputCharset) { 47 | [discription appendFormat:@"&_input_charset=\"%@\"",self.inputCharset];//utf-8 48 | } 49 | if (self.itBPay) { 50 | [discription appendFormat:@"&it_b_pay=\"%@\"",self.itBPay];//30m 51 | } 52 | if (self.showUrl) { 53 | [discription appendFormat:@"&show_url=\"%@\"",self.showUrl];//m.alipay.com 54 | } 55 | if (self.rsaDate) { 56 | [discription appendFormat:@"&sign_date=\"%@\"",self.rsaDate]; 57 | } 58 | if (self.appID) { 59 | [discription appendFormat:@"&app_id=\"%@\"",self.appID]; 60 | } 61 | for (NSString * key in [self.extraParams allKeys]) { 62 | [discription appendFormat:@"&%@=\"%@\"", key, [self.extraParams objectForKey:key]]; 63 | } 64 | return discription; 65 | } 66 | 67 | 68 | @end 69 | -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/src/ios/AlipaySDK.bundle/bar@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/com.yoopoon.cordova.plugin.alipay/src/ios/AlipaySDK.bundle/bar@2x.png -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/src/ios/AlipaySDK.bundle/refresh@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/com.yoopoon.cordova.plugin.alipay/src/ios/AlipaySDK.bundle/refresh@2x.png -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/src/ios/AlipaySDK.bundle/refresh_click@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/com.yoopoon.cordova.plugin.alipay/src/ios/AlipaySDK.bundle/refresh_click@2x.png -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/src/ios/AlipaySDK.bundle/shutdown@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/com.yoopoon.cordova.plugin.alipay/src/ios/AlipaySDK.bundle/shutdown@2x.png -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/src/ios/AlipaySDK.bundle/shutdown_click@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/com.yoopoon.cordova.plugin.alipay/src/ios/AlipaySDK.bundle/shutdown_click@2x.png -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/src/ios/AlipaySDK.framework/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/com.yoopoon.cordova.plugin.alipay/src/ios/AlipaySDK.framework/.DS_Store -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/src/ios/AlipaySDK.framework/AlipaySDK: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/com.yoopoon.cordova.plugin.alipay/src/ios/AlipaySDK.framework/AlipaySDK -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/src/ios/AlipaySDK.framework/Headers/APayAuthInfo.h: -------------------------------------------------------------------------------- 1 | // 2 | // APAuthInfo.h 3 | // AliSDKDemo 4 | // 5 | // Created by 方彬 on 14-7-18. 6 | // Copyright (c) 2014年 Alipay.com. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface APayAuthInfo : NSObject 12 | 13 | @property(nonatomic, copy)NSString *appID; 14 | @property(nonatomic, copy)NSString *pid; 15 | @property(nonatomic, copy)NSString *redirectUri; 16 | 17 | /** 18 | * 初始化AuthInfo 19 | * 20 | * @param appIDStr 应用ID 21 | * @param productIDStr 产品码 该商户在aboss签约的产品,用户获取pid获取的参数 22 | * @param pidStr 商户ID 可不填 23 | * @param uriStr 授权的应用回调地址 比如:alidemo://auth 24 | * 25 | * @return authinfo实例 26 | */ 27 | - (id)initWithAppID:(NSString *)appIDStr 28 | pid:(NSString *)pidStr 29 | redirectUri:(NSString *)uriStr; 30 | 31 | - (NSString *)description; 32 | - (NSString *)wapDescription; 33 | @end 34 | -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/src/ios/AlipaySDK.framework/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/com.yoopoon.cordova.plugin.alipay/src/ios/AlipaySDK.framework/Info.plist -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/src/ios/AlipaySDK.framework/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/com.yoopoon.cordova.plugin.alipay/src/ios/AlipaySDK.framework/en.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/src/ios/CDVAlipay.h: -------------------------------------------------------------------------------- 1 | // 2 | // CDVAlipay.h 3 | // X5 4 | // 5 | // Created by 007slm on 12/8/14. 6 | // 7 | // 8 | 9 | #import 10 | 11 | #import 12 | #import 13 | 14 | @interface CDVAlipay : CDVPlugin 15 | 16 | 17 | @property(nonatomic,strong)NSString *partner; 18 | @property(nonatomic,strong)NSString *rsa_private; 19 | @property(nonatomic,strong)NSString *rsa_public; 20 | @property(nonatomic,strong)NSString *currentCallbackId; 21 | 22 | - (void)pay:(CDVInvokedUrlCommand*)command; 23 | @end 24 | -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/src/ios/Order.m: -------------------------------------------------------------------------------- 1 | // 2 | // Order.m 3 | // AlixPayDemo 4 | // 5 | // Created by 方彬 on 11/2/13. 6 | // 7 | // 8 | 9 | #import "Order.h" 10 | 11 | @implementation Order 12 | 13 | - (NSString *)description { 14 | NSMutableString * discription = [NSMutableString string]; 15 | if (self.partner) { 16 | [discription appendFormat:@"partner=\"%@\"", self.partner]; 17 | } 18 | 19 | if (self.sellerID) { 20 | [discription appendFormat:@"&seller_id=\"%@\"", self.sellerID]; 21 | } 22 | if (self.outTradeNO) { 23 | [discription appendFormat:@"&out_trade_no=\"%@\"", self.outTradeNO]; 24 | } 25 | if (self.subject) { 26 | [discription appendFormat:@"&subject=\"%@\"", self.subject]; 27 | } 28 | 29 | if (self.body) { 30 | [discription appendFormat:@"&body=\"%@\"", self.body]; 31 | } 32 | if (self.totalFee) { 33 | [discription appendFormat:@"&total_fee=\"%@\"", self.totalFee]; 34 | } 35 | if (self.notifyURL) { 36 | [discription appendFormat:@"¬ify_url=\"%@\"", self.notifyURL]; 37 | } 38 | 39 | if (self.service) { 40 | [discription appendFormat:@"&service=\"%@\"",self.service];//mobile.securitypay.pay 41 | } 42 | if (self.paymentType) { 43 | [discription appendFormat:@"&payment_type=\"%@\"",self.paymentType];//1 44 | } 45 | 46 | if (self.inputCharset) { 47 | [discription appendFormat:@"&_input_charset=\"%@\"",self.inputCharset];//utf-8 48 | } 49 | if (self.itBPay) { 50 | [discription appendFormat:@"&it_b_pay=\"%@\"",self.itBPay];//30m 51 | } 52 | if (self.showURL) { 53 | [discription appendFormat:@"&show_url=\"%@\"",self.showURL];//m.alipay.com 54 | } 55 | if (self.appID) { 56 | [discription appendFormat:@"&app_id=\"%@\"",self.appID]; 57 | } 58 | for (NSString * key in [self.outContext allKeys]) { 59 | [discription appendFormat:@"&%@=\"%@\"", key, [self.outContext objectForKey:key]]; 60 | } 61 | return discription; 62 | } 63 | 64 | 65 | @end 66 | -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/src/ios/Util/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/com.yoopoon.cordova.plugin.alipay/src/ios/Util/.DS_Store -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/src/ios/Util/DataSigner.h: -------------------------------------------------------------------------------- 1 | // 2 | // DataSigner.h 3 | // AlixPayDemo 4 | // 5 | // Created by Jing Wen on 8/2/11. 6 | // Copyright 2011 alipay.com. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | typedef enum DataSignAlgorithm { 13 | DataSignAlgorithmRSA, 14 | DataSignAlgorithmMD5, 15 | } DataSignAlgorithm; 16 | 17 | @protocol DataSigner 18 | 19 | - (NSString *)algorithmName; 20 | - (NSString *)signString:(NSString *)string; 21 | 22 | @end 23 | 24 | id CreateRSADataSigner(NSString *privateKey); 25 | 26 | -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/src/ios/Util/DataSigner.m: -------------------------------------------------------------------------------- 1 | // 2 | // DataSigner.m 3 | // AlixPayDemo 4 | // 5 | // Created by Jing Wen on 8/2/11. 6 | // Copyright 2011 alipay.com. All rights reserved. 7 | // 8 | 9 | #import "DataSigner.h" 10 | #import "RSADataSigner.h" 11 | #import "MD5DataSigner.h" 12 | 13 | id CreateRSADataSigner(NSString *privateKey) { 14 | 15 | return [[RSADataSigner alloc] initWithPrivateKey:privateKey]; 16 | 17 | } 18 | -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/src/ios/Util/DataVerifier.h: -------------------------------------------------------------------------------- 1 | // 2 | // DataVerifier.h 3 | // AlixPayDemo 4 | // 5 | // Created by Jing Wen on 8/2/11. 6 | // Copyright 2011 alipay.com. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @protocol DataVerifier 13 | 14 | - (NSString *)algorithmName; 15 | - (BOOL)verifyString:(NSString *)string withSign:(NSString *)signString; 16 | 17 | @end 18 | 19 | id CreateRSADataVerifier(NSString *publicKey); 20 | 21 | -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/src/ios/Util/DataVerifier.m: -------------------------------------------------------------------------------- 1 | // 2 | // DataVerifier.m 3 | // AlixPayDemo 4 | // 5 | // Created by Jing Wen on 8/2/11. 6 | // Copyright 2011 alipay.com. All rights reserved. 7 | // 8 | 9 | #import "DataVerifier.h" 10 | 11 | 12 | #import "RSADataVerifier.h" 13 | 14 | id CreateRSADataVerifier(NSString *publicKey) { 15 | 16 | return [[RSADataVerifier alloc] initWithPublicKey:publicKey]; 17 | 18 | } -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/src/ios/Util/MD5DataSigner.h: -------------------------------------------------------------------------------- 1 | // 2 | // MD5DataSigner.h 3 | // SafepayService 4 | // 5 | // Created by wenbi on 11-4-11. 6 | // Copyright 2011 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "DataSigner.h" 11 | 12 | @interface MD5DataSigner : NSObject { 13 | } 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/src/ios/Util/MD5DataSigner.m: -------------------------------------------------------------------------------- 1 | // 2 | // MD5DataSigner.m 3 | // SafepayService 4 | // 5 | // Created by wenbi on 11-4-11. 6 | // Copyright 2011 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import "MD5DataSigner.h" 10 | 11 | 12 | @implementation MD5DataSigner 13 | 14 | - (NSString *)algorithmName { 15 | return @"MD5"; 16 | } 17 | 18 | - (NSString *)signString:(NSString *)string { 19 | return @""; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/src/ios/Util/NSDataEx.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSDataEx.h 3 | // iX3.0 4 | // 5 | // Created by Feng Huajun on 09-4-16. 6 | // Copyright 2009 Infothinker. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface NSData (NSDataBase64Additions) 13 | + (NSData *) dataWithBase64EncodedString:(NSString *) string; 14 | - (id) initWithBase64EncodedString:(NSString *) string; 15 | 16 | - (NSString *) base64Encoding; 17 | - (NSString *) base64EncodingWithLineLength:(unsigned int) lineLength; 18 | //- (NSString*) urlEncodedString; 19 | 20 | @end -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/src/ios/Util/RSADataSigner.h: -------------------------------------------------------------------------------- 1 | // 2 | // RSADataSigner.h 3 | // SafepayService 4 | // 5 | // Created by wenbi on 11-4-11. 6 | // Copyright 2011 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "DataSigner.h" 11 | 12 | @interface RSADataSigner : NSObject { 13 | NSString * _privateKey; 14 | } 15 | 16 | - (id)initWithPrivateKey:(NSString *)privateKey; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/src/ios/Util/RSADataVerifier.h: -------------------------------------------------------------------------------- 1 | // 2 | // RSADataVerifier.h 3 | // SafepayService 4 | // 5 | // Created by wenbi on 11-4-11. 6 | // Copyright 2011 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "DataVerifier.h" 11 | 12 | @interface RSADataVerifier : NSObject { 13 | NSString *_publicKey; 14 | } 15 | 16 | - (id)initWithPublicKey:(NSString *)publicKey; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/src/ios/Util/openssl_wrapper.h: -------------------------------------------------------------------------------- 1 | // 2 | // openssl_wrapper.h 3 | // ThirdDemoApp 4 | // 5 | // Created by Xu Hanjie on 11-1-20. 6 | // Copyright 2011 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | int rsa_sign_with_private_key_pem(char *message, int message_length 10 | , unsigned char *signature, unsigned int *signature_length 11 | , char *private_key_file_path); 12 | int rsa_verify_with_public_key_pem(char *message, int message_length 13 | , unsigned char *signature, unsigned int signature_length 14 | , char *public_key_file_path); 15 | 16 | NSString *base64StringFromData(NSData *signature); 17 | NSData *dataFromBase64String(NSString *base64String); 18 | NSString *rsaSignString(NSString *stringToSign, NSString *privateKeyFilePath, BOOL *signSuccess); 19 | void rsaVerifyString(NSString *stringToVerify, NSString *signature, NSString *publicKeyFilePath, BOOL *verifySuccess); 20 | NSString *formattedPEMString(NSString *originalString); 21 | -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/src/ios/libcrypto.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/com.yoopoon.cordova.plugin.alipay/src/ios/libcrypto.a -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/src/ios/libssl.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/com.yoopoon.cordova.plugin.alipay/src/ios/libssl.a -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/src/ios/openssl/ebcdic.h: -------------------------------------------------------------------------------- 1 | /* crypto/ebcdic.h */ 2 | 3 | #ifndef HEADER_EBCDIC_H 4 | #define HEADER_EBCDIC_H 5 | 6 | #include 7 | 8 | /* Avoid name clashes with other applications */ 9 | #define os_toascii _openssl_os_toascii 10 | #define os_toebcdic _openssl_os_toebcdic 11 | #define ebcdic2ascii _openssl_ebcdic2ascii 12 | #define ascii2ebcdic _openssl_ascii2ebcdic 13 | 14 | extern const unsigned char os_toascii[256]; 15 | extern const unsigned char os_toebcdic[256]; 16 | void *ebcdic2ascii(void *dest, const void *srce, size_t count); 17 | void *ascii2ebcdic(void *dest, const void *srce, size_t count); 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/src/ios/openssl/whrlpool.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_WHRLPOOL_H 2 | #define HEADER_WHRLPOOL_H 3 | 4 | #include 5 | #include 6 | 7 | #ifdef __cplusplus 8 | extern "C" { 9 | #endif 10 | 11 | #define WHIRLPOOL_DIGEST_LENGTH (512/8) 12 | #define WHIRLPOOL_BBLOCK 512 13 | #define WHIRLPOOL_COUNTER (256/8) 14 | 15 | typedef struct { 16 | union { 17 | unsigned char c[WHIRLPOOL_DIGEST_LENGTH]; 18 | /* double q is here to ensure 64-bit alignment */ 19 | double q[WHIRLPOOL_DIGEST_LENGTH/sizeof(double)]; 20 | } H; 21 | unsigned char data[WHIRLPOOL_BBLOCK/8]; 22 | unsigned int bitoff; 23 | size_t bitlen[WHIRLPOOL_COUNTER/sizeof(size_t)]; 24 | } WHIRLPOOL_CTX; 25 | 26 | #ifndef OPENSSL_NO_WHIRLPOOL 27 | #ifdef OPENSSL_FIPS 28 | int private_WHIRLPOOL_Init(WHIRLPOOL_CTX *c); 29 | #endif 30 | int WHIRLPOOL_Init (WHIRLPOOL_CTX *c); 31 | int WHIRLPOOL_Update (WHIRLPOOL_CTX *c,const void *inp,size_t bytes); 32 | void WHIRLPOOL_BitUpdate(WHIRLPOOL_CTX *c,const void *inp,size_t bits); 33 | int WHIRLPOOL_Final (unsigned char *md,WHIRLPOOL_CTX *c); 34 | unsigned char *WHIRLPOOL(const void *inp,size_t bytes,unsigned char *md); 35 | #endif 36 | 37 | #ifdef __cplusplus 38 | } 39 | #endif 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /plugins/com.yoopoon.cordova.plugin.alipay/www/alipay.js: -------------------------------------------------------------------------------- 1 | var exec = require('cordova/exec'); 2 | 3 | /** 4 | 5 | navigator.weixin.pay({"seller":"007slm@163.com",subject":"x51","body":"x5企业版","price":"0.01","tradeNo":"123456","timeout":"30m","notifyUrl":"wwww.justep.com"},function(msgCode){alert(msgCode)},function(msg){alert(msg)}) 6 | **/ 7 | 8 | module.exports = { 9 | pay: function(orderInfo,onSuccess,onError){ 10 | exec(onSuccess, onError, "Alipay", "pay", [orderInfo]); 11 | } 12 | }; 13 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-console/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | 21 | 22 | # Contributing to Apache Cordova 23 | 24 | Anyone can contribute to Cordova. And we need your contributions. 25 | 26 | There are multiple ways to contribute: report bugs, improve the docs, and 27 | contribute code. 28 | 29 | For instructions on this, start with the 30 | [contribution overview](http://cordova.apache.org/contribute/). 31 | 32 | The details are explained there, but the important items are: 33 | - Sign and submit an Apache ICLA (Contributor License Agreement). 34 | - Have a Jira issue open that corresponds to your contribution. 35 | - Run the tests so your patch doesn't break existing functionality. 36 | 37 | We look forward to your contributions! 38 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-console/NOTICE: -------------------------------------------------------------------------------- 1 | Apache Cordova 2 | Copyright 2012 The Apache Software Foundation 3 | 4 | This product includes software developed at 5 | The Apache Software Foundation (http://www.apache.org/). 6 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-console/doc/es/index.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # cordova-plugin-console 21 | 22 | Este plugin es para asegurarse de que console.log() es tan útil como puede ser. Añade función adicional para iOS, Windows Phone 8, Ubuntu y Windows 8. Si estás contento con cómo funciona console.log() para ti, entonces probablemente no necesitas este plugin. 23 | 24 | Este plugin define un global `console` objeto. 25 | 26 | Aunque el objeto está en el ámbito global, características proporcionadas por este plugin no están disponibles hasta después de la `deviceready` evento. 27 | 28 | document.addEventListener ("deviceready", onDeviceReady, false); 29 | function onDeviceReady() {console.log ("console.log funciona bien");} 30 | 31 | 32 | ## Instalación 33 | 34 | Cordova plugin agregar cordova-plugin-console 35 | 36 | 37 | ### Rarezas Android 38 | 39 | En algunas plataformas que no sean Android, console.log() actuará en varios argumentos, como console.log ("1", "2", "3"). Sin embargo, Android actuará sólo en el primer argumento. Se omitirá posteriores argumentos para console.log(). Este plugin no es la causa de eso, es una limitación propia de Android. 40 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-console/doc/fr/index.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # cordova-plugin-console 21 | 22 | Ce plugin est destiné à faire en sorte que console.log() est aussi utile que possible. Il ajoute une fonction supplémentaire pour iOS, Ubuntu, Windows Phone 8 et Windows 8. Si vous êtes satisfait du fonctionnement de console.log() pour vous, alors vous avez probablement pas besoin ce plugin. 23 | 24 | Ce plugin définit un global `console` objet. 25 | 26 | Bien que l'objet est dans la portée globale, les fonctions offertes par ce plugin ne sont pas disponibles jusqu'après la `deviceready` événement. 27 | 28 | document.addEventListener (« deviceready », onDeviceReady, false) ; 29 | function onDeviceReady() {console.log ("console.log fonctionne bien");} 30 | 31 | 32 | ## Installation 33 | 34 | Cordova plugin ajouter cordova-plugin-console 35 | 36 | 37 | ### Quirks Android 38 | 39 | Sur certaines plateformes autres que Android, console.log() va agir sur plusieurs arguments, tels que console.log ("1", "2", "3"). Toutefois, Android doit agir uniquement sur le premier argument. Les arguments suivants à console.log() seront ignorées. Ce plugin n'est pas la cause de cela, il s'agit d'une limitation d'Android lui-même. 40 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-console/doc/it/index.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # cordova-plugin-console 21 | 22 | Questo plugin è intesa a garantire che console.log() è tanto utile quanto può essere. Aggiunge una funzione aggiuntiva per iOS, Ubuntu, Windows 8 e Windows Phone 8. Se sei soddisfatto di come console.log() funziona per voi, quindi probabilmente non è necessario questo plugin. 23 | 24 | Questo plugin definisce un oggetto globale `console`. 25 | 26 | Sebbene l'oggetto sia in ambito globale, funzionalità fornite da questo plugin non sono disponibili fino a dopo l'evento `deviceready`. 27 | 28 | document.addEventListener("deviceready", onDeviceReady, false); 29 | function onDeviceReady() { 30 | console.log("console.log works well"); 31 | } 32 | 33 | 34 | ## Installazione 35 | 36 | cordova plugin add cordova-plugin-console 37 | 38 | 39 | ### Stranezze Android 40 | 41 | Su alcune piattaforme diverse da Android, console.log() agirà su più argomenti, come ad esempio console ("1", "2", "3"). Tuttavia, Android agirà solo sul primo argomento. Argomenti successivi a console.log() verranno ignorati. Questo plugin non è la causa di ciò, è una limitazione di Android stesso. 42 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-console/doc/ja/README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # cordova-plugin-console 21 | 22 | [](https://travis-ci.org/apache/cordova-plugin-console) 23 | 24 | このプラグインは、その console.log() がすることができます便利なことを確認するものです。 それは iOS、Ubuntu、Windows Phone 8 は、Windows に追加の関数を追加します。 場合はあなたのための console.log() の作品に満足しているし、おそらく必要はありませんこのプラグイン。 25 | 26 | このプラグインでは、グローバル ・ `console` オブジェクトを定義します。 27 | 28 | オブジェクトは、グローバル スコープでですが、このプラグインによって提供される機能は、`deviceready` イベントの後まで使用できません。 29 | 30 | document.addEventListener("deviceready", onDeviceReady, false); 31 | function onDeviceReady() { 32 | console.log("console.log works well"); 33 | } 34 | 35 | 36 | ## インストール 37 | 38 | cordova plugin add cordova-plugin-console 39 | 40 | 41 | ### Android の癖 42 | 43 | アンドロイド以外のいくつかのプラットフォームで console.log() は console.log (「1」、「2」、「3」) など、複数の引数に動作します。 しかし、アンドロイドは、最初の引数でのみ動作します。 console.log() に後続の引数は無視されます。 このプラグインが原因ではない、それは Android の自体の制限です。 -------------------------------------------------------------------------------- /plugins/cordova-plugin-console/doc/ja/index.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # cordova-plugin-console 21 | 22 | このプラグインは、その console.log() がすることができます便利なことを確認するものです。 それは、iOS、Ubuntu、Windows Phone 8 および Windows 8 の追加関数を追加します。 場合はあなたのための console.log() の作品に満足しているし、おそらく必要はありませんこのプラグイン。 23 | 24 | このプラグインでは、グローバル ・ `console` オブジェクトを定義します。 25 | 26 | オブジェクトは、グローバル スコープでですが、このプラグインによって提供される機能は、`deviceready` イベントの後まで使用できません。 27 | 28 | document.addEventListener("deviceready", onDeviceReady, false); 29 | function onDeviceReady() { 30 | console.log("console.log works well"); 31 | } 32 | 33 | 34 | ## インストール 35 | 36 | cordova plugin add cordova-plugin-console 37 | 38 | 39 | ### Android の癖 40 | 41 | アンドロイド以外のいくつかのプラットフォームで console.log() は console.log (「1」、「2」、「3」) など、複数の引数に動作します。 しかし、アンドロイドは、最初の引数でのみ動作します。 console.log() に後続の引数は無視されます。 このプラグインが原因ではない、それは Android の自体の制限です。 42 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-console/doc/ko/README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # cordova-plugin-console 21 | 22 | [](https://travis-ci.org/apache/cordova-plugin-console) 23 | 24 | 이 플러그인을 console.log()로 수 유용 되도록 의미입니다. 그것은 iOS, 우분투, Windows Phone 8, 및 창에 대 한 추가 기능을 추가합니다. Console.log() 당신을 위해 작동 하는 어떻게 행복 한 경우에, 그때 당신은 아마 필요 하지 않습니다이 플러그인. 25 | 26 | 이 플러그인 글로벌 `console` 개체를 정의합니다. 27 | 28 | 개체가 전역 범위에 있지만,이 플러그인에 의해 제공 되는 기능 하지 사용할 수 있습니다까지 `deviceready` 이벤트 후. 29 | 30 | document.addEventListener("deviceready", onDeviceReady, false); 31 | function onDeviceReady() { 32 | console.log("console.log works well"); 33 | } 34 | 35 | 36 | ## 설치 37 | 38 | cordova plugin add cordova-plugin-console 39 | 40 | 41 | ### 안 드 로이드 단점 42 | 43 | 안 드 로이드 이외의 일부 플랫폼에서 console.log() console.log ("1", "2", "3")와 같이 여러 인수에 작동할 것 이다. 그러나, 안 드 로이드는 첫 번째 인수에만 작동할 것 이다. Console.log() 후속 인수는 무시 됩니다. 이 플러그인의 원인이 되지 않습니다, 그리고 그것은 안 드 로이드 자체의 한계입니다. -------------------------------------------------------------------------------- /plugins/cordova-plugin-console/doc/ko/index.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # cordova-plugin-console 21 | 22 | 이 플러그인을 console.log()로 수 유용 되도록 의미입니다. IOS, 우분투, Windows Phone 8 및 윈도우 8에 대 한 추가 기능을 추가 하 고 합니다. Console.log() 당신을 위해 작동 하는 어떻게 행복 한 경우에, 그때 당신은 아마 필요 하지 않습니다이 플러그인. 23 | 24 | 이 플러그인 글로벌 `console` 개체를 정의합니다. 25 | 26 | 개체가 전역 범위에 있지만,이 플러그인에 의해 제공 되는 기능 하지 사용할 수 있습니다까지 `deviceready` 이벤트 후. 27 | 28 | document.addEventListener("deviceready", onDeviceReady, false); 29 | function onDeviceReady() { 30 | console.log("console.log works well"); 31 | } 32 | 33 | 34 | ## 설치 35 | 36 | cordova plugin add cordova-plugin-console 37 | 38 | 39 | ### 안 드 로이드 단점 40 | 41 | 안 드 로이드 이외의 일부 플랫폼에서 console.log() console.log ("1", "2", "3")와 같이 여러 인수에 작동할 것 이다. 그러나, 안 드 로이드는 첫 번째 인수에만 작동할 것 이다. Console.log() 후속 인수는 무시 됩니다. 이 플러그인의 원인이 되지 않습니다, 그리고 그것은 안 드 로이드 자체의 한계입니다. 42 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-console/doc/pl/index.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # cordova-plugin-console 21 | 22 | Ten plugin jest przeznaczona do zapewnienia, że console.log() jest tak przydatne, jak to może być. To dodaje dodatkową funkcję dla iOS, Ubuntu, Windows Phone 8 i Windows 8. Jeśli jesteś zadowolony z jak console.log() pracuje dla Ciebie, wtedy prawdopodobnie nie potrzebują tej wtyczki. 23 | 24 | Ten plugin definiuje obiekt globalny `console`. 25 | 26 | Mimo, że obiekt jest w globalnym zasięgu, funkcji oferowanych przez ten plugin nie są dostępne dopiero po turnieju `deviceready`. 27 | 28 | document.addEventListener("deviceready", onDeviceReady, false); 29 | function onDeviceReady() { 30 | console.log("console.log works well"); 31 | } 32 | 33 | 34 | ## Instalacja 35 | 36 | cordova plugin add cordova-plugin-console 37 | 38 | 39 | ### Dziwactwa Androida 40 | 41 | Na niektórych platformach innych niż Android console.log() będzie działać na wielu argumentów, takich jak console.log ("1", "2", "3"). Jednak Android będzie działać tylko na pierwszy argument. Kolejne argumenty do console.log() będą ignorowane. Ten plugin nie jest przyczyną, że, jest to ograniczenie Androida, sam. 42 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-console/doc/ru/index.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # cordova-plugin-console 21 | 22 | Этот плагин предназначен для обеспечения как полезным, поскольку это может быть что console.log(). Он добавляет дополнительные функции для iOS, Ubuntu, Windows Phone 8 и Windows 8. Если вы не довольны как console.log() работает для вас, то вы вероятно не нужен этот плагин. 23 | 24 | ## Установка 25 | 26 | cordova plugin add cordova-plugin-console 27 | 28 | 29 | ### Особенности Android 30 | 31 | На некоторых платформах, отличных от Android console.log() будет действовать на нескольких аргументов, например console.log («1», «2», «3»). Тем не менее Android будет действовать только на первого аргумента. Последующие аргументы для console.log() будет игнорироваться. Этот плагин не является причиной этого, это ограничение Android сам. 32 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-console/doc/zh/README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # cordova-plugin-console 21 | 22 | [](https://travis-ci.org/apache/cordova-plugin-console) 23 | 24 | 這個外掛程式是為了確保該 console.log() 是一樣有用,它可以是。 它將添加附加功能的 iOS,Ubuntu,Windows Phone 8 和視窗。 如果你是快樂與 console.log() 是如何為你工作,那麼可能不需要這個外掛程式。 25 | 26 | 這個外掛程式定義了一個全域 `console` 物件。 27 | 28 | 儘管物件是在全球範圍內,提供這個外掛程式的功能不可用直到 `deviceready` 事件之後。 29 | 30 | document.addEventListener("deviceready", onDeviceReady, false); 31 | function onDeviceReady() { 32 | console.log("console.log works well"); 33 | } 34 | 35 | 36 | ## 安裝 37 | 38 | cordova plugin add cordova-plugin-console 39 | 40 | 41 | ### Android 的怪癖 42 | 43 | 在一些平臺上除了 Android,console.log() 亦會根據多個參數,如 console.log ("1"、"2"、"3")。 然而,安卓系統只亦會根據第一個參數。 對 console.log() 的後續參數將被忽略。 這個外掛程式不是的原因,它是一個 android 作業系統本身的限制。 -------------------------------------------------------------------------------- /plugins/cordova-plugin-console/doc/zh/index.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # cordova-plugin-console 21 | 22 | 這個外掛程式是為了確保該 console.log() 是一樣有用,它可以是。 它將添加附加功能的 iOS、 Ubuntu,Windows Phone 8 和 Windows 8。 如果你是快樂與 console.log() 是如何為你工作,那麼可能不需要這個外掛程式。 23 | 24 | 這個外掛程式定義了一個全域 `console` 物件。 25 | 26 | 儘管物件是在全球範圍內,提供這個外掛程式的功能不可用直到 `deviceready` 事件之後。 27 | 28 | document.addEventListener("deviceready", onDeviceReady, false); 29 | function onDeviceReady() { 30 | console.log("console.log works well"); 31 | } 32 | 33 | 34 | ## 安裝 35 | 36 | cordova plugin add cordova-plugin-console 37 | 38 | 39 | ### Android 的怪癖 40 | 41 | 在一些平臺上除了 Android,console.log() 亦會根據多個參數,如 console.log ("1"、"2"、"3")。 然而,安卓系統只亦會根據第一個參數。 對 console.log() 的後續參數將被忽略。 這個外掛程式不是的原因,它是一個 android 作業系統本身的限制。 42 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-console/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cordova-plugin-console", 3 | "version": "1.0.3", 4 | "description": "Cordova Console Plugin", 5 | "cordova": { 6 | "id": "cordova-plugin-console", 7 | "platforms": [ 8 | "ios", 9 | "ubuntu", 10 | "wp7", 11 | "wp8", 12 | "windows8", 13 | "windows" 14 | ] 15 | }, 16 | "repository": { 17 | "type": "git", 18 | "url": "https://github.com/apache/cordova-plugin-console" 19 | }, 20 | "keywords": [ 21 | "cordova", 22 | "console", 23 | "ecosystem:cordova", 24 | "cordova-ios", 25 | "cordova-ubuntu", 26 | "cordova-wp7", 27 | "cordova-wp8", 28 | "cordova-windows8", 29 | "cordova-windows" 30 | ], 31 | "scripts": { 32 | "test": "npm run jshint", 33 | "jshint": "node node_modules/jshint/bin/jshint www && node node_modules/jshint/bin/jshint src && node node_modules/jshint/bin/jshint tests" 34 | }, 35 | "author": "Apache Software Foundation", 36 | "license": "Apache-2.0", 37 | "devDependencies": { 38 | "jshint": "^2.6.0" 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-console/src/ios/CDVLogger.h: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | #import 21 | 22 | @interface CDVLogger : CDVPlugin 23 | 24 | - (void)logLevel:(CDVInvokedUrlCommand*)command; 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-console/src/ios/CDVLogger.m: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | #import "CDVLogger.h" 21 | #import 22 | 23 | @implementation CDVLogger 24 | 25 | /* log a message */ 26 | - (void)logLevel:(CDVInvokedUrlCommand*)command 27 | { 28 | id level = [command argumentAtIndex:0]; 29 | id message = [command argumentAtIndex:1]; 30 | 31 | if ([level isEqualToString:@"LOG"]) { 32 | NSLog(@"%@", message); 33 | } else { 34 | NSLog(@"%@: %@", level, message); 35 | } 36 | } 37 | 38 | @end 39 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-console/src/ubuntu/console.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed under the Apache License, Version 2.0 (the "License"); 3 | * you may not use this file except in compliance with the License. 4 | * You may obtain a copy of the License at 5 | * 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | * Unless required by applicable law or agreed to in writing, software 9 | * distributed under the License is distributed on an "AS IS" BASIS, 10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | * See the License for the specific language governing permissions and 12 | * limitations under the License. 13 | */ 14 | 15 | #include "console.h" 16 | 17 | #include 18 | 19 | Console::Console(Cordova *cordova) : CPlugin(cordova) { 20 | } 21 | 22 | void Console::logLevel(int scId, int ecId, QString level, QString message) { 23 | Q_UNUSED(scId) 24 | Q_UNUSED(ecId) 25 | 26 | if (level != "LOG") 27 | std::cout << "[" << level.toStdString() << "] "; 28 | std::cout << message.toStdString() << std::endl; 29 | } 30 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-console/src/ubuntu/console.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed under the Apache License, Version 2.0 (the "License"); 3 | * you may not use this file except in compliance with the License. 4 | * You may obtain a copy of the License at 5 | * 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | * Unless required by applicable law or agreed to in writing, software 9 | * distributed under the License is distributed on an "AS IS" BASIS, 10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | * See the License for the specific language governing permissions and 12 | * limitations under the License. 13 | */ 14 | 15 | #ifndef CONSOLE_H_FDSVCXGFRS 16 | #define CONSOLE_H_FDSVCXGFRS 17 | 18 | #include 19 | 20 | #include 21 | 22 | class Console : public CPlugin { 23 | Q_OBJECT 24 | public: 25 | explicit Console(Cordova *cordova); 26 | 27 | virtual const QString fullName() override { 28 | return Console::fullID(); 29 | } 30 | 31 | virtual const QString shortName() override { 32 | return "Console"; 33 | } 34 | 35 | static const QString fullID() { 36 | return "Console"; 37 | } 38 | 39 | public slots: 40 | void logLevel(int scId, int ecId, QString level, QString message); 41 | }; 42 | 43 | #endif 44 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-console/src/wp/DebugConsole.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed under the Apache License, Version 2.0 (the "License"); 3 | you may not use this file except in compliance with the License. 4 | You may obtain a copy of the License at 5 | 6 | http://www.apache.org/licenses/LICENSE-2.0 7 | 8 | Unless required by applicable law or agreed to in writing, software 9 | distributed under the License is distributed on an "AS IS" BASIS, 10 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | See the License for the specific language governing permissions and 12 | limitations under the License. 13 | */ 14 | 15 | using System; 16 | using System.Net; 17 | using System.Windows; 18 | using System.Windows.Controls; 19 | using System.Windows.Documents; 20 | using System.Windows.Ink; 21 | using System.Windows.Input; 22 | using System.Windows.Media; 23 | using System.Windows.Media.Animation; 24 | using System.Windows.Shapes; 25 | using System.Diagnostics; 26 | 27 | namespace WPCordovaClassLib.Cordova.Commands 28 | { 29 | public class DebugConsole : BaseCommand 30 | { 31 | public void logLevel(string options) 32 | { 33 | string[] args = JSON.JsonHelper.Deserialize(options); 34 | string level = args[0]; 35 | string msg = args[1]; 36 | 37 | if (level.Equals("LOG")) 38 | { 39 | Debug.WriteLine(msg); 40 | } 41 | else 42 | { 43 | Debug.WriteLine(level + ": " + msg); 44 | } 45 | } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-console/tests/plugin.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 26 | Cordova Console Plugin Tests 27 | Apache 2.0 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-console/tests/tests.js: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | 22 | /* jshint jasmine: true */ 23 | 24 | exports.defineAutoTests = function () { 25 | describe("Console", function () { 26 | it("console.spec.1 should exist", function() { 27 | expect(window.console).toBeDefined(); 28 | }); 29 | 30 | it("console.spec.2 has required methods log|warn|error", function(){ 31 | expect(window.console.log).toBeDefined(); 32 | expect(typeof window.console.log).toBe('function'); 33 | 34 | expect(window.console.warn).toBeDefined(); 35 | expect(typeof window.console.warn).toBe('function'); 36 | 37 | expect(window.console.error).toBeDefined(); 38 | expect(typeof window.console.error).toBe('function'); 39 | }); 40 | }); 41 | }; 42 | 43 | exports.defineManualTests = function (contentEl, createActionButton) {}; 44 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-device/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | 21 | 22 | # Contributing to Apache Cordova 23 | 24 | Anyone can contribute to Cordova. And we need your contributions. 25 | 26 | There are multiple ways to contribute: report bugs, improve the docs, and 27 | contribute code. 28 | 29 | For instructions on this, start with the 30 | [contribution overview](http://cordova.apache.org/contribute/). 31 | 32 | The details are explained there, but the important items are: 33 | - Sign and submit an Apache ICLA (Contributor License Agreement). 34 | - Have a Jira issue open that corresponds to your contribution. 35 | - Run the tests so your patch doesn't break existing functionality. 36 | 37 | We look forward to your contributions! 38 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-device/NOTICE: -------------------------------------------------------------------------------- 1 | Apache Cordova 2 | Copyright 2012 The Apache Software Foundation 3 | 4 | This product includes software developed at 5 | The Apache Software Foundation (http://www.apache.org/). 6 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-device/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cordova-plugin-device", 3 | "version": "1.1.2", 4 | "description": "Cordova Device Plugin", 5 | "cordova": { 6 | "id": "cordova-plugin-device", 7 | "platforms": [ 8 | "firefoxos", 9 | "tizen", 10 | "android", 11 | "amazon-fireos", 12 | "ubuntu", 13 | "ios", 14 | "blackberry10", 15 | "wp7", 16 | "wp8", 17 | "windows8", 18 | "windows", 19 | "browser", 20 | "osx" 21 | ] 22 | }, 23 | "repository": { 24 | "type": "git", 25 | "url": "https://github.com/apache/cordova-plugin-device" 26 | }, 27 | "keywords": [ 28 | "cordova", 29 | "device", 30 | "ecosystem:cordova", 31 | "cordova-firefoxos", 32 | "cordova-tizen", 33 | "cordova-android", 34 | "cordova-amazon-fireos", 35 | "cordova-ubuntu", 36 | "cordova-ios", 37 | "cordova-blackberry10", 38 | "cordova-wp7", 39 | "cordova-wp8", 40 | "cordova-windows8", 41 | "cordova-windows", 42 | "cordova-browser", 43 | "cordova-osx" 44 | ], 45 | "scripts": { 46 | "test": "npm run jshint", 47 | "jshint": "node node_modules/jshint/bin/jshint www && node node_modules/jshint/bin/jshint src && node node_modules/jshint/bin/jshint tests" 48 | }, 49 | "author": "Apache Software Foundation", 50 | "license": "Apache-2.0", 51 | "devDependencies": { 52 | "jshint": "^2.6.0" 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-device/src/ios/CDVDevice.h: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | #import 21 | #import 22 | 23 | @interface CDVDevice : CDVPlugin 24 | {} 25 | 26 | + (NSString*)cordovaVersion; 27 | 28 | - (void)getDeviceInfo:(CDVInvokedUrlCommand*)command; 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-device/src/osx/CDVDevice.h: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | #import 21 | 22 | @interface CDVDevice : CDVPlugin 23 | 24 | + (NSString*) cordovaVersion; 25 | 26 | - (void) getDeviceInfo:(CDVInvokedUrlCommand*)command; 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-device/src/tizen/DeviceProxy.js: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | 22 | var tizen = require('cordova/platform'); 23 | 24 | module.exports = { 25 | getDeviceInfo: function(success, error) { 26 | setTimeout(function () { 27 | success({ 28 | cordova: tizen.cordovaVersion, 29 | platform: 'tizen', 30 | model: null, 31 | version: null, 32 | uuid: null 33 | }); 34 | }, 0); 35 | } 36 | }; 37 | 38 | require("cordova/tizen/commandProxy").add("Device", module.exports); 39 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-device/src/ubuntu/device.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Wolfgang Koller - http://www.gofg.at/ 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef DEVICE_H_FDSAFAS 18 | #define DEVICE_H_FDSAFAS 19 | 20 | #include 21 | 22 | #include 23 | 24 | class Device: public CPlugin { 25 | Q_OBJECT 26 | public: 27 | explicit Device(Cordova *cordova); 28 | 29 | virtual const QString fullName() override { 30 | return Device::fullID(); 31 | } 32 | 33 | virtual const QString shortName() override { 34 | return "Device"; 35 | } 36 | 37 | static const QString fullID() { 38 | return "com.cordova.Device"; 39 | } 40 | 41 | signals: 42 | 43 | public slots: 44 | void getInfo(int scId, int ecId); 45 | }; 46 | 47 | #endif 48 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-device/src/ubuntu/device.js: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | 22 | /* global Cordova */ 23 | 24 | module.exports = { 25 | getInfo:function(win,fail,args) { 26 | Cordova.exec(function (model, cordova, platform, uuid, version) { 27 | win({name: name, model: model, cordova: cordova, 28 | platform: platform, uuid: uuid, version: version}); 29 | }, null, "com.cordova.Device", "getInfo", []); 30 | } 31 | }; 32 | 33 | require("cordova/exec/proxy").add("Device", module.exports); 34 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-device/tests/plugin.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 26 | Cordova Device Plugin Tests 27 | Apache 2.0 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-splashscreen/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | 21 | 22 | # Contributing to Apache Cordova 23 | 24 | Anyone can contribute to Cordova. And we need your contributions. 25 | 26 | There are multiple ways to contribute: report bugs, improve the docs, and 27 | contribute code. 28 | 29 | For instructions on this, start with the 30 | [contribution overview](http://cordova.apache.org/contribute/). 31 | 32 | The details are explained there, but the important items are: 33 | - Sign and submit an Apache ICLA (Contributor License Agreement). 34 | - Have a Jira issue open that corresponds to your contribution. 35 | - Run the tests so your patch doesn't break existing functionality. 36 | 37 | We look forward to your contributions! 38 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-splashscreen/NOTICE: -------------------------------------------------------------------------------- 1 | Apache Cordova 2 | Copyright 2012 The Apache Software Foundation 3 | 4 | This product includes software developed at 5 | The Apache Software Foundation (http://www.apache.org/). 6 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-splashscreen/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cordova-plugin-splashscreen", 3 | "version": "3.2.2", 4 | "description": "Cordova Splashscreen Plugin", 5 | "cordova": { 6 | "id": "cordova-plugin-splashscreen", 7 | "platforms": [ 8 | "android", 9 | "amazon-fireos", 10 | "ubuntu", 11 | "ios", 12 | "blackberry10", 13 | "wp8", 14 | "windows8", 15 | "windows", 16 | "tizen" 17 | ] 18 | }, 19 | "repository": { 20 | "type": "git", 21 | "url": "https://github.com/apache/cordova-plugin-splashscreen" 22 | }, 23 | "keywords": [ 24 | "cordova", 25 | "splashscreen", 26 | "ecosystem:cordova", 27 | "cordova-android", 28 | "cordova-amazon-fireos", 29 | "cordova-ubuntu", 30 | "cordova-ios", 31 | "cordova-blackberry10", 32 | "cordova-wp8", 33 | "cordova-windows8", 34 | "cordova-windows", 35 | "cordova-tizen" 36 | ], 37 | "scripts": { 38 | "test": "npm run jshint", 39 | "jshint": "node node_modules/jshint/bin/jshint www && node node_modules/jshint/bin/jshint src && node node_modules/jshint/bin/jshint tests" 40 | }, 41 | "engines": [ 42 | { 43 | "name": "cordova-android", 44 | "version": ">=3.6.0" 45 | } 46 | ], 47 | "author": "Apache Software Foundation", 48 | "license": "Apache-2.0", 49 | "devDependencies": { 50 | "jshint": "^2.6.0" 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-splashscreen/src/blackberry10/index.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2013 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | /* global PluginResult */ 18 | 19 | module.exports = { 20 | show: function (success, fail, args, env) { 21 | var result = new PluginResult(args, env); 22 | result.error("Not supported on platform", false); 23 | }, 24 | 25 | hide: function (success, fail, args, env) { 26 | var result = new PluginResult(args, env); 27 | window.qnx.webplatform.getApplication().windowVisible = true; 28 | result.ok(undefined, false); 29 | } 30 | }; 31 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-splashscreen/src/ios/CDVSplashScreen.h: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | #import 21 | #import 22 | 23 | typedef struct { 24 | BOOL iPhone; 25 | BOOL iPad; 26 | BOOL iPhone4; 27 | BOOL iPhone5; 28 | BOOL iPhone6; 29 | BOOL iPhone6Plus; 30 | BOOL retina; 31 | 32 | } CDV_iOSDevice; 33 | 34 | @interface CDVSplashScreen : CDVPlugin { 35 | UIActivityIndicatorView* _activityView; 36 | UIImageView* _imageView; 37 | NSString* _curImageName; 38 | BOOL _visible; 39 | BOOL _destroyed; 40 | } 41 | 42 | - (void)show:(CDVInvokedUrlCommand*)command; 43 | - (void)hide:(CDVInvokedUrlCommand*)command; 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-splashscreen/src/ios/CDVViewController+SplashScreen.h: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | #import 21 | 22 | @interface CDVViewController (SplashScreen) 23 | 24 | @property (nonatomic, assign) BOOL enabledAutorotation; 25 | @property (nonatomic, readonly) BOOL shouldAutorotateDefaultValue; 26 | 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-splashscreen/src/tizen/SplashScreenProxy.js: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | 22 | ( function() { 23 | 24 | var win = null; 25 | 26 | module.exports = { 27 | show: function() { 28 | if ( win === null ) { 29 | win = window.open('splashscreen.html'); 30 | } 31 | }, 32 | 33 | hide: function() { 34 | if ( win !== null ) { 35 | win.close(); 36 | win = null; 37 | } 38 | } 39 | }; 40 | 41 | require("cordova/tizen/commandProxy").add("SplashScreen", module.exports); 42 | 43 | })(); 44 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-splashscreen/src/ubuntu/splashscreen.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright 2013 Canonical Ltd. 4 | * 5 | * Licensed to the Apache Software Foundation (ASF) under one 6 | * or more contributor license agreements. See the NOTICE file 7 | * distributed with this work for additional information 8 | * regarding copyright ownership. The ASF licenses this file 9 | * to you under the Apache License, Version 2.0 (the 10 | * "License"); you may not use this file except in compliance 11 | * with the License. You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, 16 | * software distributed under the License is distributed on an 17 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 18 | * KIND, either express or implied. See the License for the 19 | * specific language governing permissions and limitations 20 | * under the License. 21 | * 22 | */ 23 | 24 | #include 25 | 26 | #include "splashscreen.h" 27 | #include 28 | 29 | #define SPLASHSCREEN_STATE_NAME "splashscreen" 30 | 31 | Splashscreen::Splashscreen(Cordova *cordova): CPlugin(cordova) { 32 | } 33 | 34 | void Splashscreen::show(int, int) { 35 | m_cordova->rootObject()->setProperty("splashscreenPath", m_cordova->getSplashscreenPath()); 36 | 37 | m_cordova->pushViewState(SPLASHSCREEN_STATE_NAME); 38 | } 39 | 40 | void Splashscreen::hide(int, int) { 41 | m_cordova->popViewState(SPLASHSCREEN_STATE_NAME); 42 | } 43 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-splashscreen/src/ubuntu/splashscreen.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright 2013 Canonical Ltd. 4 | * 5 | * Licensed to the Apache Software Foundation (ASF) under one 6 | * or more contributor license agreements. See the NOTICE file 7 | * distributed with this work for additional information 8 | * regarding copyright ownership. The ASF licenses this file 9 | * to you under the Apache License, Version 2.0 (the 10 | * "License"); you may not use this file except in compliance 11 | * with the License. You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, 16 | * software distributed under the License is distributed on an 17 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 18 | * KIND, either express or implied. See the License for the 19 | * specific language governing permissions and limitations 20 | * under the License. 21 | * 22 | */ 23 | 24 | #ifndef SPLASHSCREEN_H 25 | #define SPLASHSCREEN_H 26 | 27 | #include 28 | #include 29 | 30 | class Splashscreen: public CPlugin { 31 | Q_OBJECT 32 | public: 33 | explicit Splashscreen(Cordova *cordova); 34 | 35 | virtual const QString fullName() override { 36 | return Splashscreen::fullID(); 37 | } 38 | 39 | virtual const QString shortName() override { 40 | return "SplashScreen"; 41 | } 42 | 43 | static const QString fullID() { 44 | return "SplashScreen"; 45 | } 46 | 47 | public slots: 48 | void show(int, int); 49 | void hide(int, int); 50 | }; 51 | 52 | #endif // SPLASHSCREEN_H 53 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-splashscreen/src/wp/ResolutionHelper.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed under the Apache License, Version 2.0 (the "License"); 3 | you may not use this file except in compliance with the License. 4 | You may obtain a copy of the License at 5 | 6 | http://www.apache.org/licenses/LICENSE-2.0 7 | 8 | Unless required by applicable law or agreed to in writing, software 9 | distributed under the License is distributed on an "AS IS" BASIS, 10 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | See the License for the specific language governing permissions and 12 | limitations under the License. 13 | */ 14 | 15 | using Microsoft.Phone.Info; 16 | using System; 17 | using System.Windows; 18 | 19 | namespace WPCordovaClassLib.Cordova.Commands 20 | { 21 | public enum Resolutions { WVGA, WXGA, HD }; 22 | 23 | public static class ResolutionHelper 24 | { 25 | public static Resolutions CurrentResolution 26 | { 27 | get 28 | { 29 | switch (Application.Current.Host.Content.ScaleFactor) 30 | { 31 | case 100: return Resolutions.WVGA; 32 | case 160: return Resolutions.WXGA; 33 | case 150: return Resolutions.HD; 34 | } 35 | throw new InvalidOperationException("Unknown resolution"); 36 | } 37 | } 38 | } 39 | } -------------------------------------------------------------------------------- /plugins/cordova-plugin-splashscreen/tests/ios/CDVSplashScreenTest.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-splashscreen/tests/ios/CDVSplashScreenTest.xcworkspace/xcshareddata/CDVSplashScreenTest.xccheckout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDESourceControlProjectFavoriteDictionaryKey 6 | 7 | IDESourceControlProjectIdentifier 8 | 6BE9AD73-1B9F-4362-98D7-DC631BEC6185 9 | IDESourceControlProjectName 10 | CDVSplashScreenTest 11 | IDESourceControlProjectOriginsDictionary 12 | 13 | BEF5A5D0FF64801E558286389440357A9233D7DB 14 | https://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen.git 15 | 16 | IDESourceControlProjectPath 17 | tests/ios/CDVSplashScreenTest/CDVSplashScreenTest.xcodeproj 18 | IDESourceControlProjectRelativeInstallPathDictionary 19 | 20 | BEF5A5D0FF64801E558286389440357A9233D7DB 21 | ../../../../.. 22 | 23 | IDESourceControlProjectURL 24 | https://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen.git 25 | IDESourceControlProjectVersion 26 | 111 27 | IDESourceControlProjectWCCIdentifier 28 | BEF5A5D0FF64801E558286389440357A9233D7DB 29 | IDESourceControlProjectWCConfigurations 30 | 31 | 32 | IDESourceControlRepositoryExtensionIdentifierKey 33 | public.vcs.git 34 | IDESourceControlWCCIdentifierKey 35 | BEF5A5D0FF64801E558286389440357A9233D7DB 36 | IDESourceControlWCCName 37 | cordova-plugin-splashscreen 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-splashscreen/tests/ios/CDVSplashScreenTest/.npmignore: -------------------------------------------------------------------------------- 1 | build -------------------------------------------------------------------------------- /plugins/cordova-plugin-splashscreen/tests/ios/CDVSplashScreenTest/CDVSplashScreenLibTests/ImageNameTestDelegates.h: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | #import 21 | #import 22 | 23 | @interface PortraitOnly : NSObject 24 | @end 25 | 26 | @interface PortraitUpsideDownOnly : NSObject 27 | @end 28 | 29 | @interface AllPortraitOnly : NSObject 30 | @end 31 | 32 | 33 | @interface LandscapeLeftOnly : NSObject 34 | @end 35 | 36 | @interface LandscapeRightOnly : NSObject 37 | @end 38 | 39 | @interface AllLandscapeOnly : NSObject 40 | @end 41 | 42 | 43 | @interface AllOrientations : NSObject 44 | @end 45 | 46 | @interface PortraitAndLandscapeLeftOnly : NSObject 47 | @end 48 | 49 | @interface PortraitAndLandscapeRightOnly : NSObject 50 | @end 51 | 52 | @interface PortraitUpsideDownAndLandscapeLeftOnly : NSObject 53 | @end 54 | 55 | @interface PortraitUpsideDownAndLandscapeRightOnly : NSObject 56 | @end 57 | 58 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-splashscreen/tests/ios/CDVSplashScreenTest/CDVSplashScreenLibTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 23 | 24 | 25 | CFBundleDevelopmentRegion 26 | en 27 | CFBundleExecutable 28 | $(EXECUTABLE_NAME) 29 | CFBundleIdentifier 30 | org.apache.cordova.$(PRODUCT_NAME:rfc1034identifier) 31 | CFBundleInfoDictionaryVersion 32 | 6.0 33 | CFBundleName 34 | $(PRODUCT_NAME) 35 | CFBundlePackageType 36 | BNDL 37 | CFBundleShortVersionString 38 | 1.0 39 | CFBundleSignature 40 | ???? 41 | CFBundleVersion 42 | 1 43 | 44 | 45 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-splashscreen/tests/ios/CDVSplashScreenTest/CDVSplashScreenTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-splashscreen/tests/ios/CDVSplashScreenTest/CDVSplashScreenTest.xcodeproj/project.xcworkspace/xcshareddata/CDVSplashScreenTest.xccheckout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDESourceControlProjectFavoriteDictionaryKey 6 | 7 | IDESourceControlProjectIdentifier 8 | 6BE9AD73-1B9F-4362-98D7-DC631BEC6185 9 | IDESourceControlProjectName 10 | CDVSplashScreenTest 11 | IDESourceControlProjectOriginsDictionary 12 | 13 | BEF5A5D0FF64801E558286389440357A9233D7DB 14 | https://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen.git 15 | 16 | IDESourceControlProjectPath 17 | tests/ios/CDVSplashScreenTest/CDVSplashScreenTest.xcodeproj 18 | IDESourceControlProjectRelativeInstallPathDictionary 19 | 20 | BEF5A5D0FF64801E558286389440357A9233D7DB 21 | ../../../../.. 22 | 23 | IDESourceControlProjectURL 24 | https://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen.git 25 | IDESourceControlProjectVersion 26 | 111 27 | IDESourceControlProjectWCCIdentifier 28 | BEF5A5D0FF64801E558286389440357A9233D7DB 29 | IDESourceControlProjectWCConfigurations 30 | 31 | 32 | IDESourceControlRepositoryExtensionIdentifierKey 33 | public.vcs.git 34 | IDESourceControlWCCIdentifierKey 35 | BEF5A5D0FF64801E558286389440357A9233D7DB 36 | IDESourceControlWCCName 37 | cordova-plugin-splashscreen 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-splashscreen/tests/ios/README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # iOS Tests for CDVSplashScreen 21 | 22 | You need to install `node.js` to pull in `cordova-ios`. 23 | 24 | First install cordova-ios: 25 | 26 | npm install 27 | 28 | ... in the current folder. 29 | 30 | 31 | # Testing from Xcode 32 | 33 | 1. Launch the `CDVSplashScreenTest.xcworkspace` file. 34 | 2. Choose "CDVSplashScreenLibTests" from the scheme drop-down menu 35 | 3. Click and hold on the `Play` button, and choose the `Wrench` icon to run the tests 36 | 37 | 38 | # Testing from the command line 39 | 40 | npm test 41 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-splashscreen/tests/ios/doc/de/README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # iOS-Tests für CDVSplashScreen 21 | 22 | Sie müssen installieren `node.js` in `Cordova-Ios` zu ziehen. 23 | 24 | Installieren Sie Cordova-Ios zum ersten Mal: 25 | 26 | npm install 27 | 28 | 29 | ... im aktuellen Ordner. 30 | 31 | # Testen von Xcode 32 | 33 | 1. Starten Sie die Datei `CDVSplashScreenTest.xcworkspace` . 34 | 2. Wählen Sie im Dropdown-Schema "CDVSplashScreenLibTests" 35 | 3. Klicken Sie und halten Sie auf den `Play` -Button und wählen Sie das `Schraubenschlüssel` -Symbol zum Ausführen der tests 36 | 37 | # Tests von der Befehlszeile aus 38 | 39 | npm test 40 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-splashscreen/tests/ios/doc/es/README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # Pruebas de iOS para CDVSplashScreen 21 | 22 | Necesita instalar `node.js` en `Córdoba-ios`. 23 | 24 | Primero instalar cordova-ios: 25 | 26 | npm install 27 | 28 | 29 | ... en la carpeta actual. 30 | 31 | # Prueba de Xcode 32 | 33 | 1. Iniciar el archivo `CDVSplashScreenTest.xcworkspace` . 34 | 2. Elija "CDVSplashScreenLibTests" en el menú de lista desplegable esquema 35 | 3. Haga clic y mantenga el botón de `Play` y elegir el icono de `llave inglesa` para ejecutar las pruebas 36 | 37 | # Pruebas desde la línea de comandos 38 | 39 | npm test 40 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-splashscreen/tests/ios/doc/fr/README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # Tests d'iOS pour CDVSplashScreen 21 | 22 | Vous devez installer `node.js` à `cordova-ios`. 23 | 24 | Commencez par installer cordova-ios : 25 | 26 | npm install 27 | 28 | 29 | ... dans le dossier actuel. 30 | 31 | # Tests de Xcode 32 | 33 | 1. Lancez le fichier `CDVSplashScreenTest.xcworkspace` . 34 | 2. Choisissez « CDVSplashScreenLibTests » dans le menu déroulant de régime 35 | 3. Cliquez et maintenez sur la touche `Play` et cliquez sur l'icône de `clé` pour exécuter les tests 36 | 37 | # Test de la ligne de commande 38 | 39 | npm test 40 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-splashscreen/tests/ios/doc/it/README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # Test di iOS per CDVSplashScreen 21 | 22 | È necessario installare `node. js` per tirare in `cordova-ios`. 23 | 24 | In primo luogo installare cordova-ios: 25 | 26 | npm install 27 | 28 | 29 | ... nella cartella corrente. 30 | 31 | # Test da Xcode 32 | 33 | 1. Lanciare il file `CDVSplashScreenTest.xcworkspace` . 34 | 2. Scegli "CDVSplashScreenLibTests" dal menu a discesa Schema 35 | 3. Fare clic e tenere premuto il pulsante `Play` e scegliere l'icona della `chiave inglese` per eseguire i test 36 | 37 | # Test dalla riga di comando 38 | 39 | npm test 40 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-splashscreen/tests/ios/doc/ja/README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # CDVSplashScreen の iOS のテスト 21 | 22 | `Node.js` `コルドバ`ios をプルするをインストールする必要があります。. 23 | 24 | コルドバ ios をインストールします。 25 | 26 | npm install 27 | 28 | 29 | 現在のフォルダーに. 30 | 31 | # Xcode からテスト 32 | 33 | 1. `CDVSplashScreenTest.xcworkspace`ファイルを起動します。 34 | 2. スキーム] ドロップダウン メニューから"CDVSplashScreenLibTests"を選択します。 35 | 3. クリックし、`再生`ボタンを押し、テストを実行する`レンチ`のアイコンを選択 36 | 37 | # コマンドラインからテスト 38 | 39 | npm test 40 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-splashscreen/tests/ios/doc/ko/README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # CDVSplashScreen에 대 한 iOS 테스트 21 | 22 | `Node.js` `코르도바` ios에서를 설치 해야. 23 | 24 | 코르도바-ios를 설치 하는 첫번째는: 25 | 26 | npm install 27 | 28 | 29 | 현재 폴더에.... 30 | 31 | # Xcode에서 테스트 32 | 33 | 1. `CDVSplashScreenTest.xcworkspace` 파일을 시작 합니다. 34 | 2. 구성표 드롭 다운 메뉴에서 "CDVSplashScreenLibTests"를 선택 35 | 3. 클릭 하 고 `재생` 버튼에는 테스트를 실행 하려면 `공구 모양` 아이콘을 선택 36 | 37 | # 명령줄에서 테스트 38 | 39 | npm test 40 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-splashscreen/tests/ios/doc/pl/README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # iOS testy dla CDVSplashScreen 21 | 22 | Musisz zainstalować `node.js` ciągnąć w `cordova-ios`. 23 | 24 | Najpierw zainstalować cordova-ios: 25 | 26 | npm install 27 | 28 | 29 | ... w folderze bieżącym. 30 | 31 | # Badania z Xcode 32 | 33 | 1. Uruchom plik `CDVSplashScreenTest.xcworkspace` . 34 | 2. Wybierz z menu rozwijanego systemu "CDVSplashScreenLibTests" 35 | 3. Kliknij i przytrzymaj przycisk `Play` i wybrać ikonę `klucz` do testów 36 | 37 | # Badania z wiersza polecenia 38 | 39 | npm test 40 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-splashscreen/tests/ios/doc/zh/README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # CDVSplashScreen 的 iOS 測試 21 | 22 | 您需要安裝`node.js`拉`科爾多瓦 ios`中. 23 | 24 | 第一次安裝科爾多瓦 ios: 25 | 26 | npm install 27 | 28 | 29 | 在當前資料夾中。 30 | 31 | # 從 Xcode 測試 32 | 33 | 1. 啟動`CDVSplashScreenTest.xcworkspace`檔。 34 | 2. 從方案下拉式功能表中選擇"CDVSplashScreenLibTests" 35 | 3. 按一下並堅持`播放`按鈕,然後選擇要運行的測試的`扳手`圖示 36 | 37 | # 從命令列測試 38 | 39 | npm test 40 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-splashscreen/tests/ios/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cordova-plugin-splashscreen-test-ios", 3 | "version": "1.0.0", 4 | "description": "iOS Unit Tests for Splashscreen Plugin", 5 | "author": "Apache Software Foundation", 6 | "license": "Apache Version 2.0", 7 | "dependencies": { 8 | "cordova-ios": "*" 9 | }, 10 | "scripts": { 11 | "test": "xcodebuild test -workspace CDVSplashScreenTest.xcworkspace -scheme CDVSplashScreenLibTests -destination 'platform=iOS Simulator,name=iPhone 5' CONFIGURATION_BUILD_DIR='/tmp' HEADER_SEARCH_PATHS='$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include'" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-splashscreen/tests/plugin.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 24 | Cordova Splashscreen Plugin Tests 25 | Apache 2.0 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-splashscreen/www/splashscreen.js: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | 22 | var exec = require('cordova/exec'); 23 | 24 | var splashscreen = { 25 | show:function() { 26 | exec(null, null, "SplashScreen", "show", []); 27 | }, 28 | hide:function() { 29 | exec(null, null, "SplashScreen", "hide", []); 30 | } 31 | }; 32 | 33 | module.exports = splashscreen; 34 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-statusbar/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | 21 | 22 | # Contributing to Apache Cordova 23 | 24 | Anyone can contribute to Cordova. And we need your contributions. 25 | 26 | There are multiple ways to contribute: report bugs, improve the docs, and 27 | contribute code. 28 | 29 | For instructions on this, start with the 30 | [contribution overview](http://cordova.apache.org/contribute/). 31 | 32 | The details are explained there, but the important items are: 33 | - Sign and submit an Apache ICLA (Contributor License Agreement). 34 | - Have a Jira issue open that corresponds to your contribution. 35 | - Run the tests so your patch doesn't break existing functionality. 36 | 37 | We look forward to your contributions! 38 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-statusbar/NOTICE: -------------------------------------------------------------------------------- 1 | Apache Cordova 2 | Copyright 2012 The Apache Software Foundation 3 | 4 | This product includes software developed at 5 | The Apache Software Foundation (http://www.apache.org/). 6 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-statusbar/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cordova-plugin-statusbar", 3 | "version": "2.1.3", 4 | "description": "Cordova StatusBar Plugin", 5 | "cordova": { 6 | "id": "cordova-plugin-statusbar", 7 | "platforms": [ 8 | "android", 9 | "ios", 10 | "wp7", 11 | "wp8", 12 | "windows" 13 | ] 14 | }, 15 | "repository": { 16 | "type": "git", 17 | "url": "https://github.com/apache/cordova-plugin-statusbar" 18 | }, 19 | "keywords": [ 20 | "cordova", 21 | "statusbar", 22 | "ecosystem:cordova", 23 | "cordova-android", 24 | "cordova-ios", 25 | "cordova-wp7", 26 | "cordova-wp8", 27 | "cordova-windows" 28 | ], 29 | "scripts": { 30 | "test": "npm run jshint", 31 | "jshint": "node node_modules/jshint/bin/jshint www && node node_modules/jshint/bin/jshint src && node node_modules/jshint/bin/jshint tests" 32 | }, 33 | "engines": [ 34 | { 35 | "name": "cordova", 36 | "version": ">=3.0.0" 37 | } 38 | ], 39 | "author": "Apache Software Foundation", 40 | "license": "Apache 2.0", 41 | "devDependencies": { 42 | "jshint": "^2.6.0" 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-statusbar/src/browser/statusbar.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | * 19 | */ 20 | 21 | function notSupported() { 22 | console.log('StatusBar is not supported'); 23 | return false; 24 | } 25 | 26 | module.exports = { 27 | isVisible: false, 28 | styleBlackTranslucent:notSupported, 29 | styleDefault:notSupported, 30 | styleLightContent:notSupported, 31 | styleBlackOpaque:notSupported, 32 | overlaysWebView:notSupported, 33 | styleLightContect: notSupported, 34 | backgroundColorByName: notSupported, 35 | backgroundColorByHexString: notSupported, 36 | hide: notSupported, 37 | show: notSupported 38 | }; 39 | 40 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-statusbar/src/ios/CDVStatusBar.h: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | #import 21 | #import 22 | 23 | @interface CDVStatusBar : CDVPlugin { 24 | @protected 25 | BOOL _statusBarOverlaysWebView; 26 | UIView* _statusBarBackgroundView; 27 | BOOL _uiviewControllerBasedStatusBarAppearance; 28 | UIColor* _statusBarBackgroundColor; 29 | NSString* _eventsCallbackId; 30 | } 31 | 32 | @property (atomic, assign) BOOL statusBarOverlaysWebView; 33 | 34 | - (void) overlaysWebView:(CDVInvokedUrlCommand*)command; 35 | 36 | - (void) styleDefault:(CDVInvokedUrlCommand*)command; 37 | - (void) styleLightContent:(CDVInvokedUrlCommand*)command; 38 | - (void) styleBlackTranslucent:(CDVInvokedUrlCommand*)command; 39 | - (void) styleBlackOpaque:(CDVInvokedUrlCommand*)command; 40 | 41 | - (void) backgroundColorByName:(CDVInvokedUrlCommand*)command; 42 | - (void) backgroundColorByHexString:(CDVInvokedUrlCommand*)command; 43 | 44 | - (void) hide:(CDVInvokedUrlCommand*)command; 45 | - (void) show:(CDVInvokedUrlCommand*)command; 46 | 47 | - (void) _ready:(CDVInvokedUrlCommand*)command; 48 | 49 | @end 50 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-statusbar/tests/plugin.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 26 | Cordova StatusBar Plugin Tests 27 | Apache 2.0 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-whitelist/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | 21 | 22 | # Contributing to Apache Cordova 23 | 24 | Anyone can contribute to Cordova. And we need your contributions. 25 | 26 | There are multiple ways to contribute: report bugs, improve the docs, and 27 | contribute code. 28 | 29 | For instructions on this, start with the 30 | [contribution overview](http://cordova.apache.org/contribute/). 31 | 32 | The details are explained there, but the important items are: 33 | - Sign and submit an Apache ICLA (Contributor License Agreement). 34 | - Have a Jira issue open that corresponds to your contribution. 35 | - Run the tests so your patch doesn't break existing functionality. 36 | 37 | We look forward to your contributions! 38 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-whitelist/NOTICE: -------------------------------------------------------------------------------- 1 | Apache Cordova 2 | Copyright 2012 The Apache Software Foundation 3 | 4 | This product includes software developed at 5 | The Apache Software Foundation (http://www.apache.org/). 6 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-whitelist/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cordova-plugin-whitelist", 3 | "version": "1.2.2", 4 | "description": "Cordova Whitelist Plugin", 5 | "cordova": { 6 | "platforms": [ 7 | "android" 8 | ] 9 | }, 10 | "repository": { 11 | "type": "git", 12 | "url": "https://github.com/apache/cordova-plugin-whitelist" 13 | }, 14 | "keywords": [ 15 | "cordova", 16 | "whitelist", 17 | "ecosystem:cordova", 18 | "cordova-android" 19 | ], 20 | "engines": [ 21 | { 22 | "name": "cordova-android", 23 | "version": ">=4.0.0" 24 | } 25 | ], 26 | "author": "Apache Software Foundation", 27 | "license": "Apache 2.0" 28 | } 29 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-whitelist/plugin.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 24 | Whitelist 25 | Cordova Network Whitelist Plugin 26 | Apache 2.0 27 | cordova,whitelist,policy 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in. 45 | 46 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /plugins/cordova.weixin.pay/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/cordova.weixin.pay/.DS_Store -------------------------------------------------------------------------------- /plugins/cordova.weixin.pay/src/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/cordova.weixin.pay/src/.DS_Store -------------------------------------------------------------------------------- /plugins/cordova.weixin.pay/src/android/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/cordova.weixin.pay/src/android/.DS_Store -------------------------------------------------------------------------------- /plugins/cordova.weixin.pay/src/android/com/atide/cordova/plugin/weixin/AppRegister.java: -------------------------------------------------------------------------------- 1 | package com.atide.cordova.plugin.weixin; 2 | 3 | import android.content.BroadcastReceiver; 4 | import android.content.Context; 5 | import android.content.Intent; 6 | 7 | import com.tencent.mm.sdk.openapi.IWXAPI; 8 | import com.tencent.mm.sdk.openapi.WXAPIFactory; 9 | 10 | public class AppRegister extends BroadcastReceiver { 11 | 12 | @Override 13 | public void onReceive(Context context, Intent intent) { 14 | final IWXAPI api = WXAPIFactory.createWXAPI(context, null); 15 | 16 | api.registerApp("wxb4ba3c02aa476ea1"); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /plugins/cordova.weixin.pay/src/android/com/ionicframework/starter/wxapi/WXPayEntryActivity.java: -------------------------------------------------------------------------------- 1 | package com.sharedParking.mz.wxapi; 2 | 3 | import com.tencent.mm.sdk.constants.ConstantsAPI; 4 | import com.tencent.mm.sdk.modelbase.BaseReq; 5 | import com.tencent.mm.sdk.modelbase.BaseResp; 6 | import com.tencent.mm.sdk.openapi.IWXAPI; 7 | import com.tencent.mm.sdk.openapi.IWXAPIEventHandler; 8 | import com.tencent.mm.sdk.openapi.WXAPIFactory; 9 | 10 | import android.app.Activity; 11 | import android.app.AlertDialog; 12 | import android.content.Intent; 13 | import android.os.Bundle; 14 | import android.util.Log; 15 | import android.view.View; 16 | import com.atide.cordova.plugin.weixin.Weixin; 17 | 18 | public class WXPayEntryActivity extends Activity implements IWXAPIEventHandler{ 19 | 20 | private static final String TAG = "WXPayEntryActivity"; 21 | 22 | private IWXAPI api; 23 | 24 | @Override 25 | public void onCreate(Bundle savedInstanceState) { 26 | super.onCreate(savedInstanceState); 27 | View view = new View(this); 28 | setContentView(view); 29 | api = WXAPIFactory.createWXAPI(this, Weixin.app_id); 30 | api.handleIntent(getIntent(), this); 31 | } 32 | 33 | @Override 34 | protected void onNewIntent(Intent intent) { 35 | super.onNewIntent(intent); 36 | setIntent(intent); 37 | api.handleIntent(intent, this); 38 | } 39 | 40 | @Override 41 | public void onReq(BaseReq req) { 42 | } 43 | 44 | @Override 45 | public void onResp(BaseResp resp) { 46 | if (resp.getType() == ConstantsAPI.COMMAND_PAY_BY_WX) { 47 | try { 48 | Class mClass = WXPayEntryActivity.class.getClassLoader().loadClass(getPackageName() + ".MainActivity"); 49 | Intent intent = new Intent(this, mClass); 50 | Bundle bundle = new Bundle(); 51 | bundle.putInt("weixinPayRespCode", resp.errCode); 52 | bundle.putString("intentType", "weixin"); 53 | intent.putExtras(bundle); 54 | intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); 55 | Log.i(TAG, "startActivity"); 56 | startActivity(intent); 57 | }catch (Exception e){ 58 | e.printStackTrace(); 59 | 60 | } 61 | } 62 | finish(); 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /plugins/cordova.weixin.pay/src/android/libammsdk.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/cordova.weixin.pay/src/android/libammsdk.jar -------------------------------------------------------------------------------- /plugins/cordova.weixin.pay/src/android/org.apache.http.legacy.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/cordova.weixin.pay/src/android/org.apache.http.legacy.jar -------------------------------------------------------------------------------- /plugins/cordova.weixin.pay/src/ios/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/cordova.weixin.pay/src/ios/.DS_Store -------------------------------------------------------------------------------- /plugins/cordova.weixin.pay/src/ios/AFNetworking/AFNetworking.h: -------------------------------------------------------------------------------- 1 | // AFNetworking.h 2 | // 3 | // Copyright (c) 2011 Gowalla (http://gowalla.com/) 4 | // 5 | // Permission is hereby granted, free of charge, to any person obtaining a copy 6 | // of this software and associated documentation files (the "Software"), to deal 7 | // in the Software without restriction, including without limitation the rights 8 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | // copies of the Software, and to permit persons to whom the Software is 10 | // furnished to do so, subject to the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be included in 13 | // all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | // THE SOFTWARE. 22 | 23 | #import 24 | #import 25 | 26 | #ifndef _AFNETWORKING_ 27 | #define _AFNETWORKING_ 28 | 29 | #import "AFURLConnectionOperation.h" 30 | 31 | #import "AFHTTPRequestOperation.h" 32 | #import "AFJSONRequestOperation.h" 33 | #import "AFXMLRequestOperation.h" 34 | #import "AFPropertyListRequestOperation.h" 35 | #import "AFHTTPClient.h" 36 | 37 | #import "AFImageRequestOperation.h" 38 | 39 | #if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) 40 | #import "AFNetworkActivityIndicatorManager.h" 41 | #import "UIImageView+AFNetworking.h" 42 | #endif 43 | #endif /* _AFNETWORKING_ */ 44 | -------------------------------------------------------------------------------- /plugins/cordova.weixin.pay/src/ios/CDVWeixin.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import "WXApi.h" 3 | 4 | 5 | @interface CDVWeixin:CDVPlugin 6 | 7 | @property (nonatomic, strong) NSString *currentCallbackId; 8 | @property (nonatomic, strong) NSString *app_id; 9 | 10 | - (void)sendPayReq:(CDVInvokedUrlCommand *)command; 11 | 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /plugins/cordova.weixin.pay/src/ios/PayOrder.h: -------------------------------------------------------------------------------- 1 | / 2 | // PayOrder.h 3 | // X5 4 | // 5 | // Created by 007slm on 12/4/14. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @interface PayOrder : NSObject 12 | 13 | @property (nonatomic,strong)NSString *accessToken; 14 | @property NSString *nonceStr; 15 | @property NSString *packageValue; 16 | @property NSString *timeStamp; 17 | @property NSString *productArgs; 18 | @property NSString *prepayId; 19 | @end 20 | -------------------------------------------------------------------------------- /plugins/cordova.weixin.pay/src/ios/WXHttpUtil.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | typedef void (^WXHttpCallback)(BOOL isSuccessed, NSDictionary *result); 4 | 5 | @interface WXHttpUtil : NSObject 6 | 7 | /** 8 | * GET方法请求数据 9 | * 10 | * @param url 请求的URL 11 | * @param params 请求参数 12 | * @param (BOOL isSuccessed, Result *result))callback 回调方法 13 | */ 14 | + (void)doGetWithUrl:(NSString *)url path:(NSString *)path params:(NSDictionary *)params callback:(WXHttpCallback) callback; 15 | 16 | /** 17 | * 请求WebService数据 18 | * 19 | * @param baseUrl 请求的基础URL 20 | * @param params 请求参数 21 | * @param (BOOL isSuccessed, Result *result))callback 回调方法 22 | */ 23 | + (void)doPostWithUrl:(NSString *)url path:(NSString *)path params:(NSDictionary *)params callback:(WXHttpCallback)callback; 24 | 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /plugins/cordova.weixin.pay/src/ios/weixin/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/cordova.weixin.pay/src/ios/weixin/.DS_Store -------------------------------------------------------------------------------- /plugins/cordova.weixin.pay/src/ios/weixin/libWeChatSDK.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/cordova.weixin.pay/src/ios/weixin/libWeChatSDK.a -------------------------------------------------------------------------------- /plugins/cordova.weixin.pay/www/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/cordova.weixin.pay/www/.DS_Store -------------------------------------------------------------------------------- /plugins/cordova.weixin.pay/www/weixin.js: -------------------------------------------------------------------------------- 1 | /** 2 | 3 | 4 | **/ 5 | var exec = require('cordova/exec'); 6 | 7 | module.exports = { 8 | sendPayReq: function(param,onSuccess,onError){ 9 | exec(onSuccess, onError,"Weixin","sendPayReq",[param]); 10 | } 11 | }; -------------------------------------------------------------------------------- /plugins/fetch.json: -------------------------------------------------------------------------------- 1 | { 2 | "cordova-plugin-device": { 3 | "source": { 4 | "type": "registry", 5 | "id": "cordova-plugin-device" 6 | }, 7 | "is_top_level": true, 8 | "variables": {} 9 | }, 10 | "cordova-plugin-console": { 11 | "source": { 12 | "type": "registry", 13 | "id": "cordova-plugin-console" 14 | }, 15 | "is_top_level": true, 16 | "variables": {} 17 | }, 18 | "cordova-plugin-whitelist": { 19 | "source": { 20 | "type": "registry", 21 | "id": "cordova-plugin-whitelist" 22 | }, 23 | "is_top_level": true, 24 | "variables": {} 25 | }, 26 | "cordova-plugin-splashscreen": { 27 | "source": { 28 | "type": "registry", 29 | "id": "cordova-plugin-splashscreen" 30 | }, 31 | "is_top_level": true, 32 | "variables": {} 33 | }, 34 | "cordova-plugin-statusbar": { 35 | "source": { 36 | "type": "registry", 37 | "id": "cordova-plugin-statusbar" 38 | }, 39 | "is_top_level": true, 40 | "variables": {} 41 | }, 42 | "ionic-plugin-keyboard": { 43 | "source": { 44 | "type": "registry", 45 | "id": "ionic-plugin-keyboard" 46 | }, 47 | "is_top_level": true, 48 | "variables": {} 49 | }, 50 | "com.yoopoon.cordova.plugin.alipay": { 51 | "source": { 52 | "type": "local", 53 | "path": "../cordova-alipay/com.yoopoon.cordova.plugin.alipay" 54 | }, 55 | "is_top_level": true, 56 | "variables": {} 57 | }, 58 | "cordova.weixin.pay": { 59 | "source": { 60 | "type": "local", 61 | "path": "../cordova-weixin" 62 | }, 63 | "is_top_level": true, 64 | "variables": {} 65 | } 66 | } -------------------------------------------------------------------------------- /plugins/ionic-plugin-keyboard/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ionic-plugin-keyboard", 3 | "version": "2.2.1", 4 | "cordova": { 5 | "id": "ionic-plugin-keyboard", 6 | "platforms": [ 7 | "android", 8 | "ios", 9 | "blackberry10", 10 | "wp8", 11 | "windows" 12 | ] 13 | }, 14 | "description": "Ionic Keyboard Plugin", 15 | "repository": "https://github.com/driftyco/ionic-plugin-keyboard.git", 16 | "issue": "https://github.com/driftyco/ionic-plugin-keyboard/issues", 17 | "keywords": [ 18 | "ionic", 19 | "cordova", 20 | "keyboard", 21 | "ecosystem:cordova", 22 | "cordova-android", 23 | "cordova-ios", 24 | "cordova-blackberry10", 25 | "cordova-wp8", 26 | "cordova-windows" 27 | ], 28 | "author": "Ionic", 29 | "license": "Apache 2.0" 30 | } 31 | -------------------------------------------------------------------------------- /plugins/ionic-plugin-keyboard/src/blackberry10/native/device/libKeyboard.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/libKeyboard.so -------------------------------------------------------------------------------- /plugins/ionic-plugin-keyboard/src/blackberry10/native/device/public/json_reader.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/public/json_reader.o -------------------------------------------------------------------------------- /plugins/ionic-plugin-keyboard/src/blackberry10/native/device/public/json_value.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/public/json_value.o -------------------------------------------------------------------------------- /plugins/ionic-plugin-keyboard/src/blackberry10/native/device/public/json_writer.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/public/json_writer.o -------------------------------------------------------------------------------- /plugins/ionic-plugin-keyboard/src/blackberry10/native/device/public/plugin.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/public/plugin.o -------------------------------------------------------------------------------- /plugins/ionic-plugin-keyboard/src/blackberry10/native/device/public/tokenizer.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/public/tokenizer.o -------------------------------------------------------------------------------- /plugins/ionic-plugin-keyboard/src/blackberry10/native/device/src/CallKeyboard.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/src/CallKeyboard.o -------------------------------------------------------------------------------- /plugins/ionic-plugin-keyboard/src/blackberry10/native/device/src/Logger.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/src/Logger.o -------------------------------------------------------------------------------- /plugins/ionic-plugin-keyboard/src/blackberry10/native/device/src/keyboard_js.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/src/keyboard_js.o -------------------------------------------------------------------------------- /plugins/ionic-plugin-keyboard/src/blackberry10/native/device/src/keyboard_ndk.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/src/keyboard_ndk.o -------------------------------------------------------------------------------- /plugins/ionic-plugin-keyboard/src/blackberry10/native/public/json/autolink.h: -------------------------------------------------------------------------------- 1 | #ifndef JSON_AUTOLINK_H_INCLUDED 2 | # define JSON_AUTOLINK_H_INCLUDED 3 | 4 | # include "config.h" 5 | 6 | # ifdef JSON_IN_CPPTL 7 | # include 8 | # endif 9 | 10 | # if !defined(JSON_NO_AUTOLINK) && !defined(JSON_DLL_BUILD) && !defined(JSON_IN_CPPTL) 11 | # define CPPTL_AUTOLINK_NAME "json" 12 | # undef CPPTL_AUTOLINK_DLL 13 | # ifdef JSON_DLL 14 | # define CPPTL_AUTOLINK_DLL 15 | # endif 16 | # include "autolink.h" 17 | # endif 18 | 19 | #endif // JSON_AUTOLINK_H_INCLUDED 20 | -------------------------------------------------------------------------------- /plugins/ionic-plugin-keyboard/src/blackberry10/native/public/json/config.h: -------------------------------------------------------------------------------- 1 | #ifndef JSON_CONFIG_H_INCLUDED 2 | # define JSON_CONFIG_H_INCLUDED 3 | 4 | /// If defined, indicates that json library is embedded in CppTL library. 5 | //# define JSON_IN_CPPTL 1 6 | 7 | /// If defined, indicates that json may leverage CppTL library 8 | //# define JSON_USE_CPPTL 1 9 | /// If defined, indicates that cpptl vector based map should be used instead of std::map 10 | /// as Value container. 11 | //# define JSON_USE_CPPTL_SMALLMAP 1 12 | /// If defined, indicates that Json specific container should be used 13 | /// (hash table & simple deque container with customizable allocator). 14 | /// THIS FEATURE IS STILL EXPERIMENTAL! 15 | //# define JSON_VALUE_USE_INTERNAL_MAP 1 16 | /// Force usage of standard new/malloc based allocator instead of memory pool based allocator. 17 | /// The memory pools allocator used optimization (initializing Value and ValueInternalLink 18 | /// as if it was a POD) that may cause some validation tool to report errors. 19 | /// Only has effects if JSON_VALUE_USE_INTERNAL_MAP is defined. 20 | //# define JSON_USE_SIMPLE_INTERNAL_ALLOCATOR 1 21 | 22 | /// If defined, indicates that Json use exception to report invalid type manipulation 23 | /// instead of C assert macro. 24 | # define JSON_USE_EXCEPTION 1 25 | 26 | # ifdef JSON_IN_CPPTL 27 | # include 28 | # ifndef JSON_USE_CPPTL 29 | # define JSON_USE_CPPTL 1 30 | # endif 31 | # endif 32 | 33 | # ifdef JSON_IN_CPPTL 34 | # define JSON_API CPPTL_API 35 | # elif defined(JSON_DLL_BUILD) 36 | # define JSON_API __declspec(dllexport) 37 | # elif defined(JSON_DLL) 38 | # define JSON_API __declspec(dllimport) 39 | # else 40 | # define JSON_API 41 | # endif 42 | 43 | #endif // JSON_CONFIG_H_INCLUDED 44 | -------------------------------------------------------------------------------- /plugins/ionic-plugin-keyboard/src/blackberry10/native/public/json/features.h: -------------------------------------------------------------------------------- 1 | #ifndef CPPTL_JSON_FEATURES_H_INCLUDED 2 | # define CPPTL_JSON_FEATURES_H_INCLUDED 3 | 4 | # include "forwards.h" 5 | 6 | namespace Json { 7 | 8 | /** \brief Configuration passed to reader and writer. 9 | * This configuration object can be used to force the Reader or Writer 10 | * to behave in a standard conforming way. 11 | */ 12 | class JSON_API Features 13 | { 14 | public: 15 | /** \brief A configuration that allows all features and assumes all strings are UTF-8. 16 | * - C & C++ comments are allowed 17 | * - Root object can be any JSON value 18 | * - Assumes Value strings are encoded in UTF-8 19 | */ 20 | static Features all(); 21 | 22 | /** \brief A configuration that is strictly compatible with the JSON specification. 23 | * - Comments are forbidden. 24 | * - Root object must be either an array or an object value. 25 | * - Assumes Value strings are encoded in UTF-8 26 | */ 27 | static Features strictMode(); 28 | 29 | /** \brief Initialize the configuration like JsonConfig::allFeatures; 30 | */ 31 | Features(); 32 | 33 | /// \c true if comments are allowed. Default: \c true. 34 | bool allowComments_; 35 | 36 | /// \c true if root must be either an array or an object value. Default: \c false. 37 | bool strictRoot_; 38 | }; 39 | 40 | } // namespace Json 41 | 42 | #endif // CPPTL_JSON_FEATURES_H_INCLUDED 43 | -------------------------------------------------------------------------------- /plugins/ionic-plugin-keyboard/src/blackberry10/native/public/json/forwards.h: -------------------------------------------------------------------------------- 1 | #ifndef JSON_FORWARDS_H_INCLUDED 2 | # define JSON_FORWARDS_H_INCLUDED 3 | 4 | # include "config.h" 5 | 6 | namespace Json { 7 | 8 | // writer.h 9 | class FastWriter; 10 | class StyledWriter; 11 | 12 | // reader.h 13 | class Reader; 14 | 15 | // features.h 16 | class Features; 17 | 18 | // value.h 19 | typedef int Int; 20 | typedef unsigned int UInt; 21 | class StaticString; 22 | class Path; 23 | class PathArgument; 24 | class Value; 25 | class ValueIteratorBase; 26 | class ValueIterator; 27 | class ValueConstIterator; 28 | #ifdef JSON_VALUE_USE_INTERNAL_MAP 29 | class ValueAllocator; 30 | class ValueMapAllocator; 31 | class ValueInternalLink; 32 | class ValueInternalArray; 33 | class ValueInternalMap; 34 | #endif // #ifdef JSON_VALUE_USE_INTERNAL_MAP 35 | 36 | } // namespace Json 37 | 38 | 39 | #endif // JSON_FORWARDS_H_INCLUDED 40 | -------------------------------------------------------------------------------- /plugins/ionic-plugin-keyboard/src/blackberry10/native/public/json/json.h: -------------------------------------------------------------------------------- 1 | #ifndef JSON_JSON_H_INCLUDED 2 | # define JSON_JSON_H_INCLUDED 3 | 4 | # include "autolink.h" 5 | # include "value.h" 6 | # include "reader.h" 7 | # include "writer.h" 8 | # include "features.h" 9 | 10 | #endif // JSON_JSON_H_INCLUDED 11 | -------------------------------------------------------------------------------- /plugins/ionic-plugin-keyboard/src/blackberry10/native/public/tokenizer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/ionic-plugin-keyboard/src/blackberry10/native/public/tokenizer.cpp -------------------------------------------------------------------------------- /plugins/ionic-plugin-keyboard/src/blackberry10/native/public/tokenizer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/ionic-plugin-keyboard/src/blackberry10/native/public/tokenizer.h -------------------------------------------------------------------------------- /plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/libKeyboard.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/libKeyboard.so -------------------------------------------------------------------------------- /plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/public/json_reader.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/public/json_reader.o -------------------------------------------------------------------------------- /plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/public/json_value.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/public/json_value.o -------------------------------------------------------------------------------- /plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/public/json_writer.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/public/json_writer.o -------------------------------------------------------------------------------- /plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/public/plugin.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/public/plugin.o -------------------------------------------------------------------------------- /plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/public/tokenizer.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/public/tokenizer.o -------------------------------------------------------------------------------- /plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/src/CallKeyboard.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/src/CallKeyboard.o -------------------------------------------------------------------------------- /plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/src/Logger.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/src/Logger.o -------------------------------------------------------------------------------- /plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/src/keyboard_js.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/src/keyboard_js.o -------------------------------------------------------------------------------- /plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/src/keyboard_ndk.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/src/keyboard_ndk.o -------------------------------------------------------------------------------- /plugins/ionic-plugin-keyboard/src/blackberry10/native/src/Logger.hpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013 BlackBerry Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef LOGGER_HPP_ 18 | #define LOGGER_HPP_ 19 | 20 | #include 21 | #include 22 | 23 | class Keyboard_JS; 24 | 25 | namespace webworks { 26 | 27 | class Logger { 28 | public: 29 | explicit Logger(const char* name, Keyboard_JS *parent = NULL); 30 | virtual ~Logger(); 31 | int debug(const char* message); 32 | int info(const char* message); 33 | int notice(const char* message); 34 | int warn(const char* message); 35 | int error(const char* message); 36 | int critical(const char* message); 37 | int setVerbosity(_Uint8t verbosity); 38 | _Uint8t getVerbosity(); 39 | slog2_buffer_t hiPriorityBuffer(); 40 | slog2_buffer_t lowPriorityBuffer(); 41 | private: 42 | Keyboard_JS *m_pParent; 43 | slog2_buffer_set_config_t buffer_config; 44 | slog2_buffer_t buffer_handle[2]; 45 | int log(slog2_buffer_t buffer, _Uint8t severity, const char* message); 46 | }; 47 | 48 | } /* namespace webworks */ 49 | #endif /* LOGGER_HPP_ */ 50 | -------------------------------------------------------------------------------- /plugins/ionic-plugin-keyboard/src/blackberry10/native/src/keyboard_js.hpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013 BlackBerry Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef Keyboard_JS_HPP_ 18 | #define Keyboard_JS_HPP_ 19 | 20 | #include 21 | #include "../public/plugin.h" 22 | #include "keyboard_ndk.hpp" 23 | #include "Logger.hpp" 24 | 25 | 26 | class Keyboard_JS: public JSExt { 27 | 28 | public: 29 | explicit Keyboard_JS(const std::string& id); 30 | virtual ~Keyboard_JS(); 31 | virtual bool CanDelete(); 32 | virtual std::string InvokeMethod(const std::string& command); 33 | void NotifyEvent(const std::string& event); 34 | webworks::Logger* getLog(); 35 | private: 36 | std::string m_id; 37 | webworks::Keyboard_NDK *m_pKeyboardController; 38 | webworks::Logger *m_pLogger; 39 | 40 | }; 41 | 42 | #endif /* Keyboard_JS_HPP_ */ 43 | -------------------------------------------------------------------------------- /plugins/ionic-plugin-keyboard/src/blackberry10/native/src/keyboard_ndk.hpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013 BlackBerry Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef Keyboard_NDK_HPP_ 18 | #define Keyboard_NDK_HPP_ 19 | 20 | #include 21 | #include 22 | #include 23 | #include 24 | #include 25 | #include 26 | #include 27 | #include 28 | #include 29 | #include 30 | #include 31 | 32 | class Keyboard_JS; 33 | 34 | namespace webworks { 35 | 36 | class Keyboard_NDK { 37 | public: 38 | explicit Keyboard_NDK(Keyboard_JS *parent = NULL); 39 | virtual ~Keyboard_NDK(); 40 | virtual void event(bps_event_t *event); 41 | 42 | void callKeyboardEmail(); // Method Calls the Keyboard style Email (default) 43 | 44 | void callKeyboardNumber(); // Method Calls the Keyboard style number 45 | 46 | void cancelKeyboard(); // Method cancel the keyboard 47 | 48 | std::string keyboardStartThread(); 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | private: 57 | 58 | Keyboard_JS *m_pParent; 59 | int keyboardProperty; 60 | int keyboardThreadCount; 61 | bool threadHalt; 62 | std::string threadCallbackId; 63 | pthread_t m_thread; 64 | pthread_cond_t cond; 65 | pthread_mutex_t mutex; 66 | 67 | }; 68 | 69 | } // namespace webworks 70 | 71 | #endif /* Keyboard_NDK_HPP_ */ 72 | -------------------------------------------------------------------------------- /plugins/ionic-plugin-keyboard/src/ios/IonicKeyboard.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface IonicKeyboard : CDVPlugin { 5 | @protected 6 | id _keyboardShowObserver, _keyboardHideObserver; 7 | IMP wkOriginalImp, uiOriginalImp, nilImp; 8 | Method wkMethod, uiMethod; 9 | } 10 | 11 | @property (readwrite, assign) BOOL hideKeyboardAccessoryBar; 12 | @property (readwrite, assign) BOOL disableScroll; 13 | //@property (readwrite, assign) BOOL styleDark; 14 | 15 | @end 16 | 17 | -------------------------------------------------------------------------------- /plugins/ionic-plugin-keyboard/src/windows/KeyboardProxy.js: -------------------------------------------------------------------------------- 1 | 2 | /*global Windows, WinJS, cordova, module, require*/ 3 | 4 | var inputPane = Windows.UI.ViewManagement.InputPane.getForCurrentView(); 5 | var keyboardScrollDisabled = false; 6 | 7 | inputPane.addEventListener('hiding', function() { 8 | cordova.fireWindowEvent('native.keyboardhide'); 9 | cordova.plugins.Keyboard.isVisible = false; 10 | }); 11 | 12 | inputPane.addEventListener('showing', function(e) { 13 | if (keyboardScrollDisabled) { 14 | // this disables automatic scrolling of view contents to show focused control 15 | e.ensuredFocusedElementInView = true; 16 | } 17 | cordova.fireWindowEvent('native.keyboardshow', { keyboardHeight: e.occludedRect.height }); 18 | cordova.plugins.Keyboard.isVisible = true; 19 | }); 20 | 21 | module.exports.disableScroll = function (disable) { 22 | keyboardScrollDisabled = disable; 23 | }; 24 | 25 | module.exports.show = function () { 26 | if (typeof inputPane.tryShow === 'function') { 27 | inputPane.tryShow(); 28 | } 29 | }; 30 | 31 | module.exports.close = function () { 32 | if (typeof inputPane.tryShow === 'function') { 33 | inputPane.tryHide(); 34 | } 35 | }; 36 | 37 | require("cordova/exec/proxy").add("Keyboard", module.exports); 38 | -------------------------------------------------------------------------------- /plugins/ionic-plugin-keyboard/www/android/keyboard.js: -------------------------------------------------------------------------------- 1 | 2 | var argscheck = require('cordova/argscheck'), 3 | utils = require('cordova/utils'), 4 | exec = require('cordova/exec'), 5 | channel = require('cordova/channel'); 6 | 7 | 8 | var Keyboard = function() { 9 | }; 10 | 11 | Keyboard.hideKeyboardAccessoryBar = function(hide) { 12 | exec(null, null, "Keyboard", "hideKeyboardAccessoryBar", [hide]); 13 | }; 14 | 15 | Keyboard.close = function() { 16 | exec(null, null, "Keyboard", "close", []); 17 | }; 18 | 19 | Keyboard.show = function() { 20 | exec(null, null, "Keyboard", "show", []); 21 | }; 22 | 23 | Keyboard.disableScroll = function(disable) { 24 | exec(null, null, "Keyboard", "disableScroll", [disable]); 25 | }; 26 | 27 | /* 28 | Keyboard.styleDark = function(dark) { 29 | exec(null, null, "Keyboard", "styleDark", [dark]); 30 | }; 31 | */ 32 | 33 | Keyboard.isVisible = false; 34 | 35 | channel.onCordovaReady.subscribe(function() { 36 | exec(success, null, 'Keyboard', 'init', []); 37 | 38 | function success(msg) { 39 | var action = msg.charAt(0); 40 | if ( action === 'S' ) { 41 | var keyboardHeight = msg.substr(1); 42 | cordova.plugins.Keyboard.isVisible = true; 43 | cordova.fireWindowEvent('native.keyboardshow', { 'keyboardHeight': + keyboardHeight }); 44 | 45 | //deprecated 46 | cordova.fireWindowEvent('native.showkeyboard', { 'keyboardHeight': + keyboardHeight }); 47 | } else if ( action === 'H' ) { 48 | cordova.plugins.Keyboard.isVisible = false; 49 | cordova.fireWindowEvent('native.keyboardhide'); 50 | 51 | //deprecated 52 | cordova.fireWindowEvent('native.hidekeyboard'); 53 | } 54 | } 55 | }); 56 | 57 | module.exports = Keyboard; 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /plugins/ionic-plugin-keyboard/www/browser/keyboard.js: -------------------------------------------------------------------------------- 1 | 2 | var argscheck = require('cordova/argscheck'), 3 | utils = require('cordova/utils'), 4 | exec = require('cordova/exec'); 5 | 6 | 7 | var Keyboard = function() { 8 | }; 9 | 10 | Keyboard.hideKeyboardAccessoryBar = function(hide) { 11 | return null; 12 | }; 13 | 14 | Keyboard.close = function() { 15 | return null; 16 | }; 17 | 18 | Keyboard.show = function() { 19 | return null; 20 | }; 21 | 22 | Keyboard.disableScroll = function(disable) { 23 | return null; 24 | }; 25 | 26 | /* 27 | Keyboard.styleDark = function(dark) { 28 | exec(null, null, "Keyboard", "styleDark", [dark]); 29 | }; 30 | */ 31 | 32 | Keyboard.isVisible = false; 33 | 34 | module.exports = Keyboard; 35 | -------------------------------------------------------------------------------- /plugins/ionic-plugin-keyboard/www/ios/keyboard.js: -------------------------------------------------------------------------------- 1 | 2 | var argscheck = require('cordova/argscheck'), 3 | utils = require('cordova/utils'), 4 | exec = require('cordova/exec'); 5 | 6 | 7 | var Keyboard = function() { 8 | }; 9 | 10 | Keyboard.hideKeyboardAccessoryBar = function(hide) { 11 | exec(null, null, "Keyboard", "hideKeyboardAccessoryBar", [hide]); 12 | }; 13 | 14 | Keyboard.close = function() { 15 | exec(null, null, "Keyboard", "close", []); 16 | }; 17 | 18 | Keyboard.show = function() { 19 | console.warn('Showing keyboard not supported in iOS due to platform limitations.') 20 | console.warn('Instead, use input.focus(), and ensure that you have the following setting in your config.xml: \n'); 21 | console.warn(' \n'); 22 | // exec(null, null, "Keyboard", "show", []); 23 | }; 24 | 25 | Keyboard.disableScroll = function(disable) { 26 | exec(null, null, "Keyboard", "disableScroll", [disable]); 27 | }; 28 | 29 | /* 30 | Keyboard.styleDark = function(dark) { 31 | exec(null, null, "Keyboard", "styleDark", [dark]); 32 | }; 33 | */ 34 | 35 | Keyboard.isVisible = false; 36 | 37 | module.exports = Keyboard; 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /plugins/ios.json: -------------------------------------------------------------------------------- 1 | { 2 | "prepare_queue": { 3 | "installed": [], 4 | "uninstalled": [] 5 | }, 6 | "config_munge": { 7 | "files": {} 8 | }, 9 | "installed_plugins": { 10 | "com.yoopoon.cordova.plugin.alipay": { 11 | "PACKAGE_NAME": "com.ionicframework.starter" 12 | }, 13 | "cordova-plugin-console": { 14 | "PACKAGE_NAME": "com.ionicframework.starter" 15 | }, 16 | "cordova-plugin-device": { 17 | "PACKAGE_NAME": "com.ionicframework.starter" 18 | }, 19 | "cordova-plugin-splashscreen": { 20 | "PACKAGE_NAME": "com.ionicframework.starter" 21 | }, 22 | "cordova-plugin-statusbar": { 23 | "PACKAGE_NAME": "com.ionicframework.starter" 24 | }, 25 | "cordova-plugin-whitelist": { 26 | "PACKAGE_NAME": "com.ionicframework.starter" 27 | }, 28 | "cordova.weixin.pay": { 29 | "PACKAGE_NAME": "com.ionicframework.starter" 30 | }, 31 | "ionic-plugin-keyboard": { 32 | "PACKAGE_NAME": "com.ionicframework.starter" 33 | } 34 | }, 35 | "dependent_plugins": {} 36 | } -------------------------------------------------------------------------------- /resources/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/.DS_Store -------------------------------------------------------------------------------- /resources/android/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/android/.DS_Store -------------------------------------------------------------------------------- /resources/android/icon/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/android/icon/.DS_Store -------------------------------------------------------------------------------- /resources/android/icon/drawable-hdpi-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/android/icon/drawable-hdpi-icon.png -------------------------------------------------------------------------------- /resources/android/icon/drawable-ldpi-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/android/icon/drawable-ldpi-icon.png -------------------------------------------------------------------------------- /resources/android/icon/drawable-mdpi-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/android/icon/drawable-mdpi-icon.png -------------------------------------------------------------------------------- /resources/android/icon/drawable-xhdpi-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/android/icon/drawable-xhdpi-icon.png -------------------------------------------------------------------------------- /resources/android/icon/drawable-xxhdpi-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/android/icon/drawable-xxhdpi-icon.png -------------------------------------------------------------------------------- /resources/android/icon/drawable-xxxhdpi-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/android/icon/drawable-xxxhdpi-icon.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-land-hdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/android/splash/drawable-land-hdpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-land-ldpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/android/splash/drawable-land-ldpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-land-mdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/android/splash/drawable-land-mdpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-land-xhdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/android/splash/drawable-land-xhdpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-land-xxhdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/android/splash/drawable-land-xxhdpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-land-xxxhdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/android/splash/drawable-land-xxxhdpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-port-hdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/android/splash/drawable-port-hdpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-port-ldpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/android/splash/drawable-port-ldpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-port-mdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/android/splash/drawable-port-mdpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-port-xhdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/android/splash/drawable-port-xhdpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-port-xxhdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/android/splash/drawable-port-xxhdpi-screen.png -------------------------------------------------------------------------------- /resources/android/splash/drawable-port-xxxhdpi-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/android/splash/drawable-port-xxxhdpi-screen.png -------------------------------------------------------------------------------- /resources/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/icon.png -------------------------------------------------------------------------------- /resources/ios/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/ios/.DS_Store -------------------------------------------------------------------------------- /resources/ios/icon/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/ios/icon/.DS_Store -------------------------------------------------------------------------------- /resources/ios/icon/icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/ios/icon/icon-40.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/ios/icon/icon-40@2x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/ios/icon/icon-40@3x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/ios/icon/icon-50.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-50@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/ios/icon/icon-50@2x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/ios/icon/icon-60.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/ios/icon/icon-60@2x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/ios/icon/icon-60@3x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/ios/icon/icon-72.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-72@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/ios/icon/icon-72@2x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/ios/icon/icon-76.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/ios/icon/icon-76@2x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/ios/icon/icon-83.5@2x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/ios/icon/icon-small.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-small@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/ios/icon/icon-small@2x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon-small@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/ios/icon/icon-small@3x.png -------------------------------------------------------------------------------- /resources/ios/icon/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/ios/icon/icon.png -------------------------------------------------------------------------------- /resources/ios/icon/icon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/ios/icon/icon@2x.png -------------------------------------------------------------------------------- /resources/ios/splash/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/ios/splash/.DS_Store -------------------------------------------------------------------------------- /resources/ios/splash/Default-568h@2x~iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/ios/splash/Default-568h@2x~iphone.png -------------------------------------------------------------------------------- /resources/ios/splash/Default-667h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/ios/splash/Default-667h.png -------------------------------------------------------------------------------- /resources/ios/splash/Default-736h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/ios/splash/Default-736h.png -------------------------------------------------------------------------------- /resources/ios/splash/Default-Landscape-736h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/ios/splash/Default-Landscape-736h.png -------------------------------------------------------------------------------- /resources/ios/splash/Default-Landscape@2x~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/ios/splash/Default-Landscape@2x~ipad.png -------------------------------------------------------------------------------- /resources/ios/splash/Default-Landscape~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/ios/splash/Default-Landscape~ipad.png -------------------------------------------------------------------------------- /resources/ios/splash/Default-Portrait@2x~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/ios/splash/Default-Portrait@2x~ipad.png -------------------------------------------------------------------------------- /resources/ios/splash/Default-Portrait~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/ios/splash/Default-Portrait~ipad.png -------------------------------------------------------------------------------- /resources/ios/splash/Default@2x~iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/ios/splash/Default@2x~iphone.png -------------------------------------------------------------------------------- /resources/ios/splash/Default~iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/ios/splash/Default~iphone.png -------------------------------------------------------------------------------- /resources/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/resources/splash.png -------------------------------------------------------------------------------- /scss/ionic.app.scss: -------------------------------------------------------------------------------- 1 | /* 2 | To customize the look and feel of Ionic, you can override the variables 3 | in ionic's _variables.scss file. 4 | 5 | For example, you might change some of the default colors: 6 | 7 | $light: #fff !default; 8 | $stable: #f8f8f8 !default; 9 | $positive: #387ef5 !default; 10 | $calm: #11c1f3 !default; 11 | $balanced: #33cd5f !default; 12 | $energized: #ffc900 !default; 13 | $assertive: #ef473a !default; 14 | $royal: #886aea !default; 15 | $dark: #444 !default; 16 | */ 17 | 18 | // The path for our ionicons font files, relative to the built CSS in www/css 19 | $ionicons-font-path: "../lib/ionic/fonts" !default; 20 | 21 | // Include all of Ionic 22 | @import "www/lib/ionic/scss/ionic"; 23 | 24 | -------------------------------------------------------------------------------- /www/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/www/.DS_Store -------------------------------------------------------------------------------- /www/README.md: -------------------------------------------------------------------------------- 1 | This is an addon starter template for the [Ionic Framework](http://ionicframework.com/). 2 | 3 | ## How to use this template 4 | 5 | *This template does not work on its own*. It is missing the Ionic library, and AngularJS. 6 | 7 | To use this, either create a new ionic project using the ionic node.js utility, or copy and paste this into an existing Cordova project and download a release of Ionic separately. 8 | 9 | ### With the Ionic tool: 10 | 11 | Take the name after `ionic-starter-`, and that is the name of the template to be used when using the `ionic start` command below: 12 | 13 | ```bash 14 | $ sudo npm install -g ionic cordova 15 | $ ionic start myApp tabs 16 | ``` 17 | 18 | Then, to run it, cd into `myApp` and run: 19 | 20 | ```bash 21 | $ ionic platform add ios 22 | $ ionic build ios 23 | $ ionic emulate ios 24 | ``` 25 | 26 | Substitute ios for android if not on a Mac, but if you can, the ios development toolchain is a lot easier to work with until you need to do anything custom to Android. 27 | 28 | ## Demo 29 | http://plnkr.co/edit/qYMCrt?p=preview 30 | 31 | ## Issues 32 | Issues have been disabled on this repo, if you do find an issue or have a question consider posting it on the [Ionic Forum](http://forum.ionicframework.com/). Or else if there is truly an error, follow our guidelines for [submitting an issue](http://ionicframework.com/contribute/#issues) to the main Ionic repository. On the other hand, pull requests are welcome here! 33 | -------------------------------------------------------------------------------- /www/css/style.css: -------------------------------------------------------------------------------- 1 | /* Empty. Add your own CSS if you like */ 2 | -------------------------------------------------------------------------------- /www/img/adam.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/www/img/adam.jpg -------------------------------------------------------------------------------- /www/img/ben.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/www/img/ben.png -------------------------------------------------------------------------------- /www/img/ionic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/www/img/ionic.png -------------------------------------------------------------------------------- /www/img/max.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/www/img/max.png -------------------------------------------------------------------------------- /www/img/mike.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/www/img/mike.png -------------------------------------------------------------------------------- /www/img/perry.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/www/img/perry.png -------------------------------------------------------------------------------- /www/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 31 | 32 | 33 | 34 | 35 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /www/js/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/www/js/.DS_Store -------------------------------------------------------------------------------- /www/js/services.js: -------------------------------------------------------------------------------- 1 | angular.module('starter.services', []) 2 | 3 | .factory('Chats', function() { 4 | // Might use a resource here that returns a JSON array 5 | 6 | // Some fake testing data 7 | var chats = [{ 8 | id: 0, 9 | name: 'Ben Sparrow', 10 | lastText: 'You on your way?', 11 | face: 'img/ben.png' 12 | }, { 13 | id: 1, 14 | name: 'Max Lynx', 15 | lastText: 'Hey, it\'s me', 16 | face: 'img/max.png' 17 | }, { 18 | id: 2, 19 | name: 'Adam Bradleyson', 20 | lastText: 'I should buy a boat', 21 | face: 'img/adam.jpg' 22 | }, { 23 | id: 3, 24 | name: 'Perry Governor', 25 | lastText: 'Look at my mukluks!', 26 | face: 'img/perry.png' 27 | }, { 28 | id: 4, 29 | name: 'Mike Harrington', 30 | lastText: 'This is wicked good ice cream.', 31 | face: 'img/mike.png' 32 | }]; 33 | 34 | return { 35 | all: function() { 36 | return chats; 37 | }, 38 | remove: function(chat) { 39 | chats.splice(chats.indexOf(chat), 1); 40 | }, 41 | get: function(chatId) { 42 | for (var i = 0; i < chats.length; i++) { 43 | if (chats[i].id === parseInt(chatId)) { 44 | return chats[i]; 45 | } 46 | } 47 | return null; 48 | } 49 | }; 50 | }); 51 | -------------------------------------------------------------------------------- /www/lib/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/www/lib/.DS_Store -------------------------------------------------------------------------------- /www/lib/ionic/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/www/lib/ionic/.DS_Store -------------------------------------------------------------------------------- /www/lib/ionic/fonts/ionicons.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/www/lib/ionic/fonts/ionicons.eot -------------------------------------------------------------------------------- /www/lib/ionic/fonts/ionicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/www/lib/ionic/fonts/ionicons.ttf -------------------------------------------------------------------------------- /www/lib/ionic/fonts/ionicons.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/www/lib/ionic/fonts/ionicons.woff -------------------------------------------------------------------------------- /www/lib/ionic/js/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/www/lib/ionic/js/.DS_Store -------------------------------------------------------------------------------- /www/lib/ionic/js/ng-cordova/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/www/lib/ionic/js/ng-cordova/.DS_Store -------------------------------------------------------------------------------- /www/lib/ionic/js/ng-cordova/dist/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/glustful/ionicPayDemo/5fe36cf4b02a2ba3060b03900d27f9d343a20ad8/www/lib/ionic/js/ng-cordova/dist/.DS_Store -------------------------------------------------------------------------------- /www/lib/ionic/scss/_animations.scss: -------------------------------------------------------------------------------- 1 | 2 | // Slide up from the bottom, used for modals 3 | // ------------------------------- 4 | 5 | .slide-in-up { 6 | @include translate3d(0, 100%, 0); 7 | } 8 | .slide-in-up.ng-enter, 9 | .slide-in-up > .ng-enter { 10 | @include transition(all cubic-bezier(.1, .7, .1, 1) 400ms); 11 | } 12 | .slide-in-up.ng-enter-active, 13 | .slide-in-up > .ng-enter-active { 14 | @include translate3d(0, 0, 0); 15 | } 16 | 17 | .slide-in-up.ng-leave, 18 | .slide-in-up > .ng-leave { 19 | @include transition(all ease-in-out 250ms); 20 | } 21 | 22 | 23 | // Scale Out 24 | // Scale from hero (1 in this case) to zero 25 | // ------------------------------- 26 | 27 | @-webkit-keyframes scaleOut { 28 | from { -webkit-transform: scale(1); opacity: 1; } 29 | to { -webkit-transform: scale(0.8); opacity: 0; } 30 | } 31 | @keyframes scaleOut { 32 | from { transform: scale(1); opacity: 1; } 33 | to { transform: scale(0.8); opacity: 0; } 34 | } 35 | 36 | 37 | // Super Scale In 38 | // Scale from super (1.x) to duper (1 in this case) 39 | // ------------------------------- 40 | 41 | @-webkit-keyframes superScaleIn { 42 | from { -webkit-transform: scale(1.2); opacity: 0; } 43 | to { -webkit-transform: scale(1); opacity: 1 } 44 | } 45 | @keyframes superScaleIn { 46 | from { transform: scale(1.2); opacity: 0; } 47 | to { transform: scale(1); opacity: 1; } 48 | } 49 | -------------------------------------------------------------------------------- /www/lib/ionic/scss/_backdrop.scss: -------------------------------------------------------------------------------- 1 | 2 | .backdrop { 3 | position: fixed; 4 | top: 0; 5 | left: 0; 6 | z-index: $z-index-backdrop; 7 | 8 | width: 100%; 9 | height: 100%; 10 | 11 | background-color: $loading-backdrop-bg-color; 12 | 13 | visibility: hidden; 14 | opacity: 0; 15 | 16 | &.visible { 17 | visibility: visible; 18 | } 19 | &.active { 20 | opacity: 1; 21 | } 22 | 23 | @include transition($loading-backdrop-fadein-duration opacity linear); 24 | } 25 | -------------------------------------------------------------------------------- /www/lib/ionic/scss/_badge.scss: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Badges 4 | * -------------------------------------------------- 5 | */ 6 | 7 | .badge { 8 | @include badge-style($badge-default-bg, $badge-default-text); 9 | z-index: $z-index-badge; 10 | display: inline-block; 11 | padding: 3px 8px; 12 | min-width: 10px; 13 | border-radius: $badge-border-radius; 14 | vertical-align: baseline; 15 | text-align: center; 16 | white-space: nowrap; 17 | font-weight: $badge-font-weight; 18 | font-size: $badge-font-size; 19 | line-height: $badge-line-height; 20 | 21 | &:empty { 22 | display: none; 23 | } 24 | } 25 | 26 | //Be sure to override specificity of rule that 'badge color matches tab color by default' 27 | .tabs .tab-item .badge, 28 | .badge { 29 | &.badge-light { 30 | @include badge-style($badge-light-bg, $badge-light-text); 31 | } 32 | &.badge-stable { 33 | @include badge-style($badge-stable-bg, $badge-stable-text); 34 | } 35 | &.badge-positive { 36 | @include badge-style($badge-positive-bg, $badge-positive-text); 37 | } 38 | &.badge-calm { 39 | @include badge-style($badge-calm-bg, $badge-calm-text); 40 | } 41 | &.badge-assertive { 42 | @include badge-style($badge-assertive-bg, $badge-assertive-text); 43 | } 44 | &.badge-balanced { 45 | @include badge-style($badge-balanced-bg, $badge-balanced-text); 46 | } 47 | &.badge-energized { 48 | @include badge-style($badge-energized-bg, $badge-energized-text); 49 | } 50 | &.badge-royal { 51 | @include badge-style($badge-royal-bg, $badge-royal-text); 52 | } 53 | &.badge-dark { 54 | @include badge-style($badge-dark-bg, $badge-dark-text); 55 | } 56 | } 57 | 58 | // Quick fix for labels/badges in buttons 59 | .button .badge { 60 | position: relative; 61 | top: -1px; 62 | } 63 | -------------------------------------------------------------------------------- /www/lib/ionic/scss/_button-bar.scss: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Button Bar 4 | * -------------------------------------------------- 5 | */ 6 | 7 | .button-bar { 8 | @include display-flex(); 9 | @include flex(1); 10 | width: 100%; 11 | 12 | &.button-bar-inline { 13 | display: block; 14 | width: auto; 15 | 16 | @include clearfix(); 17 | 18 | > .button { 19 | width: auto; 20 | display: inline-block; 21 | float: left; 22 | } 23 | } 24 | 25 | &.bar-light > .button { 26 | border-color: $button-light-border; 27 | } 28 | &.bar-stable > .button { 29 | border-color: $button-stable-border; 30 | } 31 | &.bar-positive > .button { 32 | border-color: $button-positive-border; 33 | } 34 | &.bar-calm > .button { 35 | border-color: $button-calm-border; 36 | } 37 | &.bar-assertive > .button { 38 | border-color: $button-assertive-border; 39 | } 40 | &.bar-balanced > .button { 41 | border-color: $button-balanced-border; 42 | } 43 | &.bar-energized > .button { 44 | border-color: $button-energized-border; 45 | } 46 | &.bar-royal > .button { 47 | border-color: $button-royal-border; 48 | } 49 | &.bar-dark > .button { 50 | border-color: $button-dark-border; 51 | } 52 | } 53 | 54 | .button-bar > .button { 55 | @include flex(1); 56 | display: block; 57 | 58 | overflow: hidden; 59 | 60 | padding: 0 16px; 61 | 62 | width: 0; 63 | 64 | border-width: 1px 0px 1px 1px; 65 | border-radius: 0; 66 | text-align: center; 67 | text-overflow: ellipsis; 68 | white-space: nowrap; 69 | 70 | &:before, 71 | .icon:before { 72 | line-height: 44px; 73 | } 74 | 75 | &:first-child { 76 | border-radius: $button-border-radius 0px 0px $button-border-radius; 77 | } 78 | &:last-child { 79 | border-right-width: 1px; 80 | border-radius: 0px $button-border-radius $button-border-radius 0px; 81 | } 82 | &:only-child { 83 | border-radius: $button-border-radius; 84 | } 85 | } 86 | 87 | .button-bar > .button-small { 88 | &:before, 89 | .icon:before { 90 | line-height: 28px; 91 | } 92 | } 93 | -------------------------------------------------------------------------------- /www/lib/ionic/scss/_loading.scss: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Loading 4 | * -------------------------------------------------- 5 | */ 6 | 7 | .loading-container { 8 | position: absolute; 9 | left: 0; 10 | top: 0; 11 | right: 0; 12 | bottom: 0; 13 | 14 | z-index: $z-index-loading; 15 | 16 | @include display-flex(); 17 | @include justify-content(center); 18 | @include align-items(center); 19 | 20 | @include transition(0.2s opacity linear); 21 | visibility: hidden; 22 | opacity: 0; 23 | 24 | &:not(.visible) .icon, 25 | &:not(.visible) .spinner{ 26 | display: none; 27 | } 28 | &.visible { 29 | visibility: visible; 30 | } 31 | &.active { 32 | opacity: 1; 33 | } 34 | 35 | .loading { 36 | padding: $loading-padding; 37 | 38 | border-radius: $loading-border-radius; 39 | background-color: $loading-bg-color; 40 | 41 | color: $loading-text-color; 42 | 43 | text-align: center; 44 | text-overflow: ellipsis; 45 | font-size: $loading-font-size; 46 | 47 | h1, h2, h3, h4, h5, h6 { 48 | color: $loading-text-color; 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /www/lib/ionic/scss/_menu.scss: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Menus 4 | * -------------------------------------------------- 5 | * Side panel structure 6 | */ 7 | 8 | .menu { 9 | position: absolute; 10 | top: 0; 11 | bottom: 0; 12 | z-index: $z-index-menu; 13 | overflow: hidden; 14 | 15 | min-height: 100%; 16 | max-height: 100%; 17 | width: $menu-width; 18 | 19 | background-color: $menu-bg; 20 | 21 | .scroll-content { 22 | z-index: $z-index-menu-scroll-content; 23 | } 24 | 25 | .bar-header { 26 | z-index: $z-index-menu-bar-header; 27 | } 28 | } 29 | 30 | .menu-content { 31 | @include transform(none); 32 | box-shadow: $menu-side-shadow; 33 | } 34 | 35 | .menu-open .menu-content .pane, 36 | .menu-open .menu-content .scroll-content { 37 | pointer-events: none; 38 | } 39 | .menu-open .menu-content .scroll-content .scroll { 40 | pointer-events: none; 41 | } 42 | .menu-open .menu-content .scroll-content:not(.overflow-scroll) { 43 | overflow: hidden; 44 | } 45 | 46 | .grade-b .menu-content, 47 | .grade-c .menu-content { 48 | @include box-sizing(content-box); 49 | right: -1px; 50 | left: -1px; 51 | border-right: 1px solid #ccc; 52 | border-left: 1px solid #ccc; 53 | box-shadow: none; 54 | } 55 | 56 | .menu-left { 57 | left: 0; 58 | } 59 | 60 | .menu-right { 61 | right: 0; 62 | } 63 | 64 | .aside-open.aside-resizing .menu-right { 65 | display: none; 66 | } 67 | 68 | .menu-animated { 69 | @include transition-transform($menu-animation-speed ease); 70 | } 71 | -------------------------------------------------------------------------------- /www/lib/ionic/scss/_progress.scss: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Progress 4 | * -------------------------------------------------- 5 | */ 6 | 7 | progress { 8 | display: block; 9 | margin: $progress-margin; 10 | width: $progress-width; 11 | } 12 | -------------------------------------------------------------------------------- /www/lib/ionic/scss/_radio.scss: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Radio Button Inputs 4 | * -------------------------------------------------- 5 | */ 6 | 7 | .item-radio { 8 | padding: 0; 9 | 10 | &:hover { 11 | cursor: pointer; 12 | } 13 | } 14 | 15 | .item-radio .item-content { 16 | /* give some room to the right for the checkmark icon */ 17 | padding-right: $item-padding * 4; 18 | } 19 | 20 | .item-radio .radio-icon { 21 | /* checkmark icon will be hidden by default */ 22 | position: absolute; 23 | top: 0; 24 | right: 0; 25 | z-index: $z-index-item-radio; 26 | visibility: hidden; 27 | padding: $item-padding - 2; 28 | height: 100%; 29 | font-size: 24px; 30 | } 31 | 32 | .item-radio input { 33 | /* hide any radio button inputs elements (the ugly circles) */ 34 | position: absolute; 35 | left: -9999px; 36 | 37 | &:checked + .radio-content .item-content { 38 | /* style the item content when its checked */ 39 | background: #f7f7f7; 40 | } 41 | 42 | &:checked + .radio-content .radio-icon { 43 | /* show the checkmark icon when its checked */ 44 | visibility: visible; 45 | } 46 | } 47 | 48 | -------------------------------------------------------------------------------- /www/lib/ionic/scss/_slide-box.scss: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Slide Box 4 | * -------------------------------------------------- 5 | */ 6 | 7 | .slider { 8 | position: relative; 9 | visibility: hidden; 10 | // Make sure items don't scroll over ever 11 | overflow: hidden; 12 | } 13 | 14 | .slider-slides { 15 | position: relative; 16 | height: 100%; 17 | } 18 | 19 | .slider-slide { 20 | position: relative; 21 | display: block; 22 | float: left; 23 | width: 100%; 24 | height: 100%; 25 | vertical-align: top; 26 | } 27 | 28 | .slider-slide-image { 29 | > img { 30 | width: 100%; 31 | } 32 | } 33 | 34 | .slider-pager { 35 | position: absolute; 36 | bottom: 20px; 37 | z-index: $z-index-slider-pager; 38 | width: 100%; 39 | height: 15px; 40 | text-align: center; 41 | 42 | .slider-pager-page { 43 | display: inline-block; 44 | margin: 0px 3px; 45 | width: 15px; 46 | color: #000; 47 | text-decoration: none; 48 | 49 | opacity: 0.3; 50 | 51 | &.active { 52 | @include transition(opacity 0.4s ease-in); 53 | opacity: 1; 54 | } 55 | } 56 | } 57 | 58 | //Disable animate service animations 59 | .slider-slide, 60 | .slider-pager-page { 61 | &.ng-enter, 62 | &.ng-leave, 63 | &.ng-animate { 64 | -webkit-transition: none !important; 65 | transition: none !important; 66 | } 67 | &.ng-animate { 68 | -webkit-animation: none 0s; 69 | animation: none 0s; 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /www/lib/ionic/scss/ionic.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | @import 4 | // Ionicons 5 | "ionicons/ionicons.scss", 6 | 7 | // Variables 8 | "mixins", 9 | "variables", 10 | 11 | // Base 12 | "reset", 13 | "scaffolding", 14 | "type", 15 | 16 | // Components 17 | "action-sheet", 18 | "backdrop", 19 | "bar", 20 | "tabs", 21 | "menu", 22 | "modal", 23 | "popover", 24 | "popup", 25 | "loading", 26 | "items", 27 | "list", 28 | "badge", 29 | "slide-box", 30 | "slides", 31 | "refresher", 32 | "spinner", 33 | 34 | // Forms 35 | "form", 36 | "checkbox", 37 | "toggle", 38 | "radio", 39 | "range", 40 | "select", 41 | "progress", 42 | 43 | // Buttons 44 | "button", 45 | "button-bar", 46 | 47 | // Util 48 | "grid", 49 | "util", 50 | "platform", 51 | 52 | // Animations 53 | "animations", 54 | "transitions"; 55 | -------------------------------------------------------------------------------- /www/lib/ionic/scss/ionicons/_ionicons-font.scss: -------------------------------------------------------------------------------- 1 | // Ionicons Font Path 2 | // -------------------------- 3 | 4 | @font-face { 5 | font-family: $ionicons-font-family; 6 | src:url("#{$ionicons-font-path}/ionicons.eot?v=#{$ionicons-version}"); 7 | src:url("#{$ionicons-font-path}/ionicons.eot?v=#{$ionicons-version}#iefix") format("embedded-opentype"), 8 | url("#{$ionicons-font-path}/ionicons.ttf?v=#{$ionicons-version}") format("truetype"), 9 | url("#{$ionicons-font-path}/ionicons.woff?v=#{$ionicons-version}") format("woff"), 10 | url("#{$ionicons-font-path}/ionicons.woff") format("woff"), /* for WP8 */ 11 | url("#{$ionicons-font-path}/ionicons.svg?v=#{$ionicons-version}#Ionicons") format("svg"); 12 | font-weight: normal; 13 | font-style: normal; 14 | } 15 | 16 | .ion { 17 | display: inline-block; 18 | font-family: $ionicons-font-family; 19 | speak: none; 20 | font-style: normal; 21 | font-weight: normal; 22 | font-variant: normal; 23 | text-transform: none; 24 | text-rendering: auto; 25 | line-height: 1; 26 | -webkit-font-smoothing: antialiased; 27 | -moz-osx-font-smoothing: grayscale; 28 | } 29 | -------------------------------------------------------------------------------- /www/lib/ionic/scss/ionicons/ionicons.scss: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | @import "ionicons-variables"; 3 | /*! 4 | Ionicons, v2.0.1 5 | Created by Ben Sperry for the Ionic Framework, http://ionicons.com/ 6 | https://twitter.com/benjsperry https://twitter.com/ionicframework 7 | MIT License: https://github.com/driftyco/ionicons 8 | 9 | Android-style icons originally built by Google’s 10 | Material Design Icons: https://github.com/google/material-design-icons 11 | used under CC BY http://creativecommons.org/licenses/by/4.0/ 12 | Modified icons to fit ionicon’s grid from original. 13 | */ 14 | 15 | @import "ionicons-font"; 16 | @import "ionicons-icons"; 17 | -------------------------------------------------------------------------------- /www/lib/ionic/version.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.3.1", 3 | "codename": "el salvador", 4 | "date": "2016-05-12", 5 | "time": "18:21:10" 6 | } 7 | -------------------------------------------------------------------------------- /www/templates/chat-detail.html: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | {{chat.lastText}} 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /www/templates/tab-account.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Enable Friends 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /www/templates/tab-chats.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | {{chat.name}} 7 | {{chat.lastText}} 8 | 9 | 10 | 11 | Delete 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /www/templates/tab-dash.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 支付宝支付测试 5 | 6 | 7 | 8 | 9 | 10 | 11 | 微信支付测试 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /www/templates/tabs.html: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | --------------------------------------------------------------------------------
11 | {{chat.lastText}} 12 |
{{chat.lastText}}