├── .cfignore ├── .eslintrc.js ├── .gitignore ├── .travis.yml ├── LICENSE ├── README.md ├── README_en.md ├── app.js ├── bin └── www ├── config.js ├── db ├── models.js └── schema.js ├── docs ├── 503.png ├── System Architecture.png ├── animation.gif ├── faq.md ├── mongodb_elasticsearch_setup.md ├── pikachu.md └── preview.jpg ├── ionic ├── bower.json ├── config.xml ├── gulpfile.js ├── hooks │ ├── README.md │ └── after_prepare │ │ └── 010_add_platform_class.js ├── ionic.project ├── package.json ├── platforms │ ├── ios │ │ ├── .gitignore │ │ ├── CordovaLib │ │ │ ├── Classes │ │ │ │ ├── CDV.h │ │ │ │ ├── CDVAvailability.h │ │ │ │ ├── CDVAvailabilityDeprecated.h │ │ │ │ ├── CDVCommandDelegate.h │ │ │ │ ├── CDVCommandDelegateImpl.h │ │ │ │ ├── CDVCommandDelegateImpl.m │ │ │ │ ├── CDVCommandQueue.h │ │ │ │ ├── CDVCommandQueue.m │ │ │ │ ├── CDVConfigParser.h │ │ │ │ ├── CDVConfigParser.m │ │ │ │ ├── CDVDebug.h │ │ │ │ ├── CDVHandleOpenURL.h │ │ │ │ ├── CDVHandleOpenURL.m │ │ │ │ ├── CDVInvokedUrlCommand.h │ │ │ │ ├── CDVInvokedUrlCommand.m │ │ │ │ ├── CDVJSON.h │ │ │ │ ├── CDVJSON.m │ │ │ │ ├── CDVJSON_private.h │ │ │ │ ├── CDVJSON_private.m │ │ │ │ ├── CDVLocalStorage.h │ │ │ │ ├── CDVLocalStorage.m │ │ │ │ ├── CDVPlugin.h │ │ │ │ ├── CDVPlugin.m │ │ │ │ ├── CDVPluginResult.h │ │ │ │ ├── CDVPluginResult.m │ │ │ │ ├── CDVScreenOrientationDelegate.h │ │ │ │ ├── CDVShared.h │ │ │ │ ├── CDVTimer.h │ │ │ │ ├── CDVTimer.m │ │ │ │ ├── CDVURLProtocol.h │ │ │ │ ├── CDVURLProtocol.m │ │ │ │ ├── CDVUserAgentUtil.h │ │ │ │ ├── CDVUserAgentUtil.m │ │ │ │ ├── CDVViewController.h │ │ │ │ ├── CDVViewController.m │ │ │ │ ├── CDVWebViewDelegate.h │ │ │ │ ├── CDVWebViewDelegate.m │ │ │ │ ├── CDVWhitelist.h │ │ │ │ ├── CDVWhitelist.m │ │ │ │ ├── NSArray+Comparisons.h │ │ │ │ ├── NSArray+Comparisons.m │ │ │ │ ├── NSData+Base64.h │ │ │ │ ├── NSData+Base64.m │ │ │ │ ├── NSDictionary+Extensions.h │ │ │ │ ├── NSDictionary+Extensions.m │ │ │ │ ├── NSMutableArray+QueueAdditions.h │ │ │ │ ├── NSMutableArray+QueueAdditions.m │ │ │ │ ├── UIDevice+Extensions.h │ │ │ │ └── UIDevice+Extensions.m │ │ │ ├── CordovaLib.xcodeproj │ │ │ │ └── project.pbxproj │ │ │ ├── CordovaLib_Prefix.pch │ │ │ ├── VERSION │ │ │ └── cordova.js │ │ ├── HelloCordova.xcodeproj │ │ │ └── project.pbxproj │ │ ├── HelloCordova │ │ │ ├── .gitignore │ │ │ ├── Classes │ │ │ │ ├── AppDelegate.h │ │ │ │ ├── AppDelegate.m │ │ │ │ ├── MainViewController.h │ │ │ │ ├── MainViewController.m │ │ │ │ └── MainViewController.xib │ │ │ ├── HelloCordova-Info.plist │ │ │ ├── HelloCordova-Prefix.pch │ │ │ ├── Plugins │ │ │ │ ├── README │ │ │ │ ├── cordova-plugin-console │ │ │ │ │ ├── CDVLogger.h │ │ │ │ │ └── CDVLogger.m │ │ │ │ ├── cordova-plugin-device │ │ │ │ │ ├── CDVDevice.h │ │ │ │ │ └── CDVDevice.m │ │ │ │ ├── cordova-plugin-splashscreen │ │ │ │ │ ├── CDVSplashScreen.h │ │ │ │ │ ├── CDVSplashScreen.m │ │ │ │ │ ├── CDVViewController+SplashScreen.h │ │ │ │ │ └── CDVViewController+SplashScreen.m │ │ │ │ ├── cordova-plugin-statusbar │ │ │ │ │ ├── CDVStatusBar.h │ │ │ │ │ └── CDVStatusBar.m │ │ │ │ └── ionic-plugin-keyboard │ │ │ │ │ ├── IonicKeyboard.h │ │ │ │ │ ├── IonicKeyboard.m │ │ │ │ │ ├── UIWebViewExtension.h │ │ │ │ │ └── UIWebViewExtension.m │ │ │ ├── Resources │ │ │ │ ├── icons │ │ │ │ │ ├── icon-40.png │ │ │ │ │ ├── icon-40@2x.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-small.png │ │ │ │ │ ├── icon-small@2x.png │ │ │ │ │ ├── icon.png │ │ │ │ │ └── icon@2x.png │ │ │ │ └── splash │ │ │ │ │ ├── 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 │ │ │ ├── config.xml │ │ │ └── main.m │ │ ├── cordova │ │ │ ├── apple_ios_version │ │ │ ├── apple_osx_version │ │ │ ├── apple_xcode_version │ │ │ ├── build │ │ │ ├── build-debug.xcconfig │ │ │ ├── build-release.xcconfig │ │ │ ├── build.xcconfig │ │ │ ├── check_reqs │ │ │ ├── clean │ │ │ ├── clean.bat │ │ │ ├── defaults.xml │ │ │ ├── lib │ │ │ │ ├── build.js │ │ │ │ ├── check_reqs.js │ │ │ │ ├── clean.js │ │ │ │ ├── copy-www-build-step.sh │ │ │ │ ├── list-devices │ │ │ │ ├── list-emulator-images │ │ │ │ ├── list-started-emulators │ │ │ │ ├── run.js │ │ │ │ ├── spawn.js │ │ │ │ ├── start-emulator │ │ │ │ └── versions.js │ │ │ ├── log │ │ │ ├── run │ │ │ ├── run.bat │ │ │ ├── version │ │ │ └── version.bat │ │ ├── platform_www │ │ │ ├── cordova-js-src │ │ │ │ ├── exec.js │ │ │ │ └── platform.js │ │ │ └── cordova.js │ │ └── www │ │ │ ├── README.md │ │ │ ├── cordova-js-src │ │ │ ├── exec.js │ │ │ └── platform.js │ │ │ ├── cordova.js │ │ │ ├── cordova_plugins.js │ │ │ ├── css │ │ │ └── style.css │ │ │ ├── img │ │ │ └── ionic.png │ │ │ ├── index.html │ │ │ ├── js │ │ │ ├── app.js │ │ │ └── controllers.js │ │ │ ├── lib │ │ │ └── ionic │ │ │ │ ├── css │ │ │ │ ├── ionic.css │ │ │ │ └── ionic.min.css │ │ │ │ ├── fonts │ │ │ │ ├── ionicons.eot │ │ │ │ ├── ionicons.svg │ │ │ │ ├── ionicons.ttf │ │ │ │ └── ionicons.woff │ │ │ │ ├── js │ │ │ │ ├── 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 │ │ │ │ ├── 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 │ │ │ ├── plugins │ │ │ ├── cordova-plugin-console │ │ │ │ └── www │ │ │ │ │ ├── console-via-logger.js │ │ │ │ │ └── logger.js │ │ │ ├── cordova-plugin-device │ │ │ │ └── www │ │ │ │ │ └── device.js │ │ │ ├── cordova-plugin-splashscreen │ │ │ │ └── www │ │ │ │ │ └── splashscreen.js │ │ │ ├── cordova-plugin-statusbar │ │ │ │ └── www │ │ │ │ │ └── statusbar.js │ │ │ └── ionic-plugin-keyboard │ │ │ │ └── www │ │ │ │ └── ios │ │ │ │ └── keyboard.js │ │ │ └── templates │ │ │ ├── browse.html │ │ │ ├── login.html │ │ │ ├── menu.html │ │ │ ├── playlist.html │ │ │ ├── playlists.html │ │ │ └── search.html │ └── platforms.json ├── plugins │ ├── 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 │ │ └── whitelist.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 │ │ │ │ ├── UIWebViewExtension.h │ │ │ │ └── UIWebViewExtension.m │ │ │ └── windows │ │ │ │ └── KeyboardProxy.js │ │ └── www │ │ │ ├── android │ │ │ └── keyboard.js │ │ │ └── ios │ │ │ └── keyboard.js │ └── ios.json ├── scss │ └── ionic.app.scss └── www │ ├── css │ └── style.css │ ├── img │ └── ionic.png │ ├── index.html │ ├── js │ ├── app.js │ ├── controllers.js │ └── services.js │ ├── lib │ └── ionic │ │ ├── css │ │ ├── ionic.css │ │ └── ionic.min.css │ │ ├── fonts │ │ ├── ionicons.eot │ │ ├── ionicons.svg │ │ ├── ionicons.ttf │ │ └── ionicons.woff │ │ ├── js │ │ ├── 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 │ │ ├── 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 │ ├── favorites.html │ ├── home.html │ ├── login.html │ ├── menu.html │ └── search.html ├── manifest.yml ├── package.json ├── parsers └── xcfParser.js ├── public ├── favicon.ico ├── images │ └── pikachu.png └── stylesheets │ └── style.css ├── resources ├── ip_list.txt ├── user-agent_list.txt └── xcfQueue.js ├── routes ├── api.js ├── crawler.js └── index.js ├── services ├── DataStorage.js ├── MongoDBClient.js ├── QueryService.js ├── SearchService.js └── elasticsearch.md └── views ├── error.ejs └── index.ejs /.cfignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | data/*.txt 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | data/*.txt 3 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "5" 4 | - "4" 5 | - "0.12" 6 | - "0.10" 7 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 BitTiger 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 all 13 | 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 THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /config.js: -------------------------------------------------------------------------------- 1 | /** 2 | * App configuration 3 | */ 4 | 5 | var config = {}; 6 | 7 | config.targetUrl = "www.xiachufang.com"; 8 | config.initialPort = 80; 9 | config.initialPath = "/"; 10 | 11 | config.mongodb = {}; 12 | config.elasticsearch = {}; 13 | 14 | // VCAP_SERVICES 15 | if (process.env.VCAP_SERVICES) { 16 | var vcapServices = JSON.parse(process.env.VCAP_SERVICES); 17 | 18 | if (vcapServices['user-provided'] != null) { 19 | var userProvidedServices = vcapServices['user-provided']; 20 | 21 | for (var i = 0; i < userProvidedServices.length; i++) { 22 | if (userProvidedServices[i].name == 'mLab') { 23 | config.mongodb.dburl = userProvidedServices[i].credentials.mongodburi; 24 | console.log("Using mLab MongoDB"); 25 | } 26 | } 27 | } 28 | } 29 | 30 | if (!config.mongodb.dburl) { 31 | config.mongodb.dburl = 'mongodb://localhost:27018/pikachu'; 32 | } 33 | 34 | config.elasticsearch.url = 'localhost:9200'; 35 | 36 | module.exports = config; 37 | -------------------------------------------------------------------------------- /db/models.js: -------------------------------------------------------------------------------- 1 | var mongoose = require('mongoose'); 2 | var MongoDBClient = require("../services/MongoDBClient"); 3 | var schema = require('./schema'); 4 | 5 | var models = {}; 6 | 7 | MongoDBClient.getInstance(function(err, client) { 8 | if (err) { 9 | console.log("failed to connect to MongoDB, model initialization failed"); 10 | } else { 11 | console.log("connected to MongoDB, model initialization succeeded"); 12 | } 13 | }); 14 | 15 | var Category = mongoose.model('Category', schema.categorySchema); 16 | var Recipe = mongoose.model('Recipe', schema.recipeSchema); 17 | 18 | models.Category = Category; 19 | models.Recipe = Recipe; 20 | 21 | module.exports = models; 22 | -------------------------------------------------------------------------------- /db/schema.js: -------------------------------------------------------------------------------- 1 | var mongoose = require('mongoose'); 2 | 3 | var categorySchema = new mongoose.Schema({ 4 | _id: { 5 | type: String 6 | }, 7 | name: { 8 | type: String, 9 | reqired: true 10 | }, 11 | recipes: [{ 12 | type: String 13 | }] 14 | }); 15 | 16 | // http://schema.org/Recipe 17 | var recipeSchema = new mongoose.Schema({ 18 | _id: { 19 | type: String 20 | }, 21 | name: { 22 | type: String, 23 | reqired: true 24 | }, 25 | image: { 26 | type: String 27 | }, 28 | rating: { 29 | type: Number 30 | }, 31 | cooked: { 32 | type: Number 33 | }, 34 | dishes: { 35 | type: Number 36 | }, 37 | likes: { 38 | type: Number 39 | }, 40 | comments: { 41 | type: Number 42 | }, 43 | dateCreated: { 44 | type: String 45 | }, 46 | ingredients: [{ 47 | type: String 48 | }], 49 | categories: [{ 50 | type: String 51 | }] 52 | }); 53 | 54 | module.exports.categorySchema = categorySchema; 55 | module.exports.recipeSchema = recipeSchema; 56 | -------------------------------------------------------------------------------- /docs/503.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/docs/503.png -------------------------------------------------------------------------------- /docs/System Architecture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/docs/System Architecture.png -------------------------------------------------------------------------------- /docs/animation.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/docs/animation.gif -------------------------------------------------------------------------------- /docs/faq.md: -------------------------------------------------------------------------------- 1 | #### 提问0:能讲讲elastic search怎么实现的吗? 2 | 3 | 答:ES+MongoDB具体实现过程: 4 | https://github.com/BitTigerInst/Pikachu/blob/master/docs/mongodb_elasticsearch_setup.md 5 | 6 | #### 提问1:为什么没用mysql? 7 | 答:MEAN stack选型,主要考虑了数据读取存储的 8 | 1. 便利性:MongoDB可以方便地存储类似JSON的BSON文件,而在前端的API请求中,返回的JSON与存储的BSON结构内容类似 9 | 2. 灵活性:MongoDB是schemaless,在开发过程可以灵活地增加field 10 | 11 | #### 提问2:能不能请教一下,你们用的什么样的服务器?还是目前还是全部host在local的? 12 | 答:最开始部署到了IBM Bluemix上,因为是开源Cloud Foundry的PaaS,能够很快的得到Node.js runtime; MongoDB 采用了mLab host的MongoB; 目前后端services host均在本地,未来会考虑部署到服务器上,比如Heroku, Bluemix,都是备选项 13 | 14 | #### 提问3:这个是一台机器抓,还是多台多个ip呢? 15 | 答:一台机器,使用多个IP proxy进行抓取 16 | 17 | #### 提问4:如果用amazon云会不会被封呢? 18 | 答:如果不使用IP Address Rotation的话,还是很可能被封的;也有很多网站对于来自AWS、阿里云等IP段的爬虫进行封禁 19 | -------------------------------------------------------------------------------- /docs/preview.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/docs/preview.jpg -------------------------------------------------------------------------------- /ionic/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "HelloIonic", 3 | "private": "true", 4 | "devDependencies": { 5 | "ionic": "driftyco/ionic-bower#1.2.4" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /ionic/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Pickachu 4 | 5 | An Ionic Framework and Cordova project. 6 | 7 | 8 | Your Name Here 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /ionic/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/ionic.project: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Pickachu", 3 | "app_id": "" 4 | } 5 | -------------------------------------------------------------------------------- /ionic/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "pickachu", 3 | "version": "1.1.1", 4 | "description": "Pickachu: 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 | "cordovaPlatforms": [ 26 | "ios" 27 | ] 28 | } -------------------------------------------------------------------------------- /ionic/platforms/ios/.gitignore: -------------------------------------------------------------------------------- 1 | *.mode1v3 2 | *.perspectivev3 3 | *.pbxuser 4 | .DS_Store 5 | build/ 6 | -------------------------------------------------------------------------------- /ionic/platforms/ios/CordovaLib/Classes/CDV.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 "CDVAvailability.h" 21 | 22 | #import "CDVPlugin.h" 23 | #import "CDVViewController.h" 24 | #import "CDVCommandDelegate.h" 25 | #import "CDVURLProtocol.h" 26 | #import "CDVInvokedUrlCommand.h" 27 | 28 | #import "CDVDebug.h" 29 | #import "CDVPluginResult.h" 30 | #import "CDVWhitelist.h" 31 | #import "CDVLocalStorage.h" 32 | #import "CDVScreenOrientationDelegate.h" 33 | #import "CDVTimer.h" 34 | 35 | #import "NSArray+Comparisons.h" 36 | #import "NSData+Base64.h" 37 | #import "NSDictionary+Extensions.h" 38 | #import "NSMutableArray+QueueAdditions.h" 39 | #import "UIDevice+Extensions.h" 40 | 41 | #import "CDVJSON.h" 42 | -------------------------------------------------------------------------------- /ionic/platforms/ios/CordovaLib/Classes/CDVCommandDelegateImpl.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 "CDVCommandDelegate.h" 22 | 23 | @class CDVViewController; 24 | @class CDVCommandQueue; 25 | 26 | @interface CDVCommandDelegateImpl : NSObject { 27 | @private 28 | __weak CDVViewController* _viewController; 29 | NSRegularExpression* _callbackIdPattern; 30 | @protected 31 | __weak CDVCommandQueue* _commandQueue; 32 | BOOL _delayResponses; 33 | } 34 | - (id)initWithViewController:(CDVViewController*)viewController; 35 | - (void)flushCommandQueueWithDelayedJs; 36 | @end 37 | -------------------------------------------------------------------------------- /ionic/platforms/ios/CordovaLib/Classes/CDVCommandQueue.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 | @class CDVInvokedUrlCommand; 23 | @class CDVViewController; 24 | 25 | @interface CDVCommandQueue : NSObject 26 | 27 | @property (nonatomic, readonly) BOOL currentlyExecuting; 28 | 29 | - (id)initWithViewController:(CDVViewController*)viewController; 30 | - (void)dispose; 31 | 32 | - (void)resetRequestId; 33 | - (void)enqueueCommandBatch:(NSString*)batchJSON; 34 | 35 | - (void)processXhrExecBridgePoke:(NSNumber*)requestId; 36 | - (void)fetchCommandsFromJs; 37 | - (void)executePending; 38 | - (BOOL)execute:(CDVInvokedUrlCommand*)command; 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /ionic/platforms/ios/CordovaLib/Classes/CDVConfigParser.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 | @interface CDVConfigParser : NSObject 21 | { 22 | NSString* featureName; 23 | } 24 | 25 | @property (nonatomic, readonly, strong) NSMutableDictionary* pluginsDict; 26 | @property (nonatomic, readonly, strong) NSMutableDictionary* settings; 27 | @property (nonatomic, readonly, strong) NSMutableArray* whitelistHosts; 28 | @property (nonatomic, readonly, strong) NSMutableArray* startupPluginNames; 29 | @property (nonatomic, readonly, strong) NSString* startPage; 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /ionic/platforms/ios/CordovaLib/Classes/CDVDebug.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 | #ifdef DEBUG 21 | #define DLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__) 22 | #else 23 | #define DLog(...) 24 | #endif 25 | #define ALog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__) 26 | -------------------------------------------------------------------------------- /ionic/platforms/ios/CordovaLib/Classes/CDVHandleOpenURL.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 "CDVPlugin.h" 21 | 22 | @interface CDVHandleOpenURL : CDVPlugin 23 | 24 | @property (nonatomic, strong) NSURL* url; 25 | @property (nonatomic, assign) BOOL pageLoaded; 26 | 27 | @end 28 | 29 | -------------------------------------------------------------------------------- /ionic/platforms/ios/CordovaLib/Classes/CDVJSON.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 "CDVAvailabilityDeprecated.h" 21 | 22 | @interface NSArray (CDVJSONSerializing) 23 | - (NSString*)JSONString CDV_DEPRECATED(3.8 .0, "Use NSJSONSerialization instead."); 24 | 25 | @end 26 | 27 | @interface NSDictionary (CDVJSONSerializing) 28 | - (NSString*)JSONString CDV_DEPRECATED(3.8 .0, "Use NSJSONSerialization instead."); 29 | 30 | @end 31 | 32 | @interface NSString (CDVJSONSerializing) 33 | - (id)JSONObject CDV_DEPRECATED(3.8 .0, "Use NSJSONSerialization instead."); 34 | 35 | - (id)JSONFragment CDV_DEPRECATED(3.8 .0, "Use NSJSONSerialization instead."); 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /ionic/platforms/ios/CordovaLib/Classes/CDVJSON.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 "CDVJSON_private.h" 21 | 22 | @implementation NSArray (CDVJSONSerializing) 23 | 24 | - (NSString*)JSONString 25 | { 26 | return [self cdv_JSONString]; 27 | } 28 | 29 | @end 30 | 31 | @implementation NSDictionary (CDVJSONSerializing) 32 | 33 | - (NSString*)JSONString 34 | { 35 | return [self cdv_JSONString]; 36 | } 37 | 38 | @end 39 | 40 | @implementation NSString (CDVJSONSerializing) 41 | 42 | - (id)JSONObject 43 | { 44 | return [self cdv_JSONObject]; 45 | } 46 | 47 | - (id)JSONFragment 48 | { 49 | return [self cdv_JSONFragment]; 50 | } 51 | 52 | @end 53 | -------------------------------------------------------------------------------- /ionic/platforms/ios/CordovaLib/Classes/CDVJSON_private.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 | @interface NSArray (CDVJSONSerializingPrivate) 21 | - (NSString*)cdv_JSONString; 22 | @end 23 | 24 | @interface NSDictionary (CDVJSONSerializingPrivate) 25 | - (NSString*)cdv_JSONString; 26 | @end 27 | 28 | @interface NSString (CDVJSONSerializingPrivate) 29 | - (id)cdv_JSONObject; 30 | - (id)cdv_JSONFragment; 31 | @end 32 | -------------------------------------------------------------------------------- /ionic/platforms/ios/CordovaLib/Classes/CDVScreenOrientationDelegate.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 | @protocol CDVScreenOrientationDelegate 23 | 24 | - (NSUInteger)supportedInterfaceOrientations; 25 | - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation; 26 | - (BOOL)shouldAutorotate; 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /ionic/platforms/ios/CordovaLib/Classes/CDVShared.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 | // This file was emptied out in 3.6.0 release (July 2014). 21 | // It will be deleted in a future release. 22 | #import 23 | -------------------------------------------------------------------------------- /ionic/platforms/ios/CordovaLib/Classes/CDVTimer.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 CDVTimer : NSObject 23 | 24 | + (void)start:(NSString*)name; 25 | + (void)stop:(NSString*)name; 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /ionic/platforms/ios/CordovaLib/Classes/CDVURLProtocol.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 "CDVAvailability.h" 22 | 23 | @class CDVViewController; 24 | 25 | @interface CDVURLProtocol : NSURLProtocol {} 26 | 27 | + (void)registerViewController:(CDVViewController*)viewController; 28 | + (void)unregisterViewController:(CDVViewController*)viewController; 29 | @end 30 | -------------------------------------------------------------------------------- /ionic/platforms/ios/CordovaLib/Classes/CDVUserAgentUtil.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 CDVUserAgentUtil : NSObject 23 | + (NSString*)originalUserAgent; 24 | + (void)acquireLock:(void (^)(NSInteger lockToken))block; 25 | + (void)releaseLock:(NSInteger*)lockToken; 26 | + (void)setUserAgent:(NSString*)value lockToken:(NSInteger)lockToken; 27 | @end 28 | -------------------------------------------------------------------------------- /ionic/platforms/ios/CordovaLib/Classes/CDVWhitelist.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 | extern NSString* const kCDVDefaultWhitelistRejectionString; 23 | 24 | @interface CDVWhitelist : NSObject 25 | 26 | @property (nonatomic, copy) NSString* whitelistRejectionFormatString; 27 | 28 | - (id)initWithArray:(NSArray*)array; 29 | - (BOOL)schemeIsAllowed:(NSString*)scheme; 30 | - (BOOL)URLIsAllowed:(NSURL*)url; 31 | - (BOOL)URLIsAllowed:(NSURL*)url logFailure:(BOOL)logFailure; 32 | - (NSString*)errorStringForURL:(NSURL*)url; 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /ionic/platforms/ios/CordovaLib/Classes/NSArray+Comparisons.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 "CDVAvailabilityDeprecated.h" 22 | 23 | @interface NSArray (Comparisons) 24 | 25 | - (id)objectAtIndex:(NSUInteger)index withDefault:(id)aDefault CDV_DEPRECATED(3.8 .0, "Use [command argumentAtIndex] instead."); 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /ionic/platforms/ios/CordovaLib/Classes/NSArray+Comparisons.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 "NSArray+Comparisons.h" 21 | 22 | @implementation NSArray (Comparisons) 23 | 24 | - (id)objectAtIndex:(NSUInteger)index withDefault:(id)aDefault 25 | { 26 | id obj = nil; 27 | 28 | @try { 29 | if (index < [self count]) { 30 | obj = [self objectAtIndex:index]; 31 | } 32 | if ((obj == [NSNull null]) || (obj == nil)) { 33 | return aDefault; 34 | } 35 | } 36 | @catch(NSException* exception) { 37 | NSLog(@"Exception - Name: %@ Reason: %@", [exception name], [exception reason]); 38 | } 39 | 40 | return obj; 41 | } 42 | 43 | @end 44 | -------------------------------------------------------------------------------- /ionic/platforms/ios/CordovaLib/Classes/NSMutableArray+QueueAdditions.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 NSMutableArray (QueueAdditions) 23 | 24 | - (id)pop; 25 | - (id)queueHead; 26 | - (id)dequeue; 27 | - (void)enqueue:(id)obj; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /ionic/platforms/ios/CordovaLib/Classes/UIDevice+Extensions.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 "CDVAvailabilityDeprecated.h" 22 | 23 | @interface UIDevice (org_apache_cordova_UIDevice_Extension) 24 | 25 | /* 26 | Get the unique identifier from the app bundle's folder, which is already a GUID 27 | Upgrading and/or deleting the app and re-installing will get you a new GUID, so 28 | this is only unique per install per device. 29 | */ 30 | - (NSString*)uniqueAppInstanceIdentifier CDV_DEPRECATED(3.8 .0, "API is slated for removal in 4.0.0"); 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /ionic/platforms/ios/CordovaLib/CordovaLib_Prefix.pch: -------------------------------------------------------------------------------- 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 | #ifdef __OBJC__ 21 | #import 22 | #endif 23 | -------------------------------------------------------------------------------- /ionic/platforms/ios/CordovaLib/VERSION: -------------------------------------------------------------------------------- 1 | 3.8.0 2 | -------------------------------------------------------------------------------- /ionic/platforms/ios/HelloCordova/.gitignore: -------------------------------------------------------------------------------- 1 | *.mode1v3 2 | *.perspectivev3 3 | *.pbxuser 4 | .DS_Store 5 | build/ 6 | -------------------------------------------------------------------------------- /ionic/platforms/ios/HelloCordova/Classes/MainViewController.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 | // 21 | // MainViewController.h 22 | // HelloCordova 23 | // 24 | // Created by ___FULLUSERNAME___ on ___DATE___. 25 | // Copyright ___ORGANIZATIONNAME___ ___YEAR___. All rights reserved. 26 | // 27 | 28 | #import 29 | #import 30 | #import 31 | 32 | @interface MainViewController : CDVViewController 33 | 34 | @end 35 | 36 | @interface MainCommandDelegate : CDVCommandDelegateImpl 37 | @end 38 | 39 | @interface MainCommandQueue : CDVCommandQueue 40 | @end 41 | -------------------------------------------------------------------------------- /ionic/platforms/ios/HelloCordova/HelloCordova-Prefix.pch: -------------------------------------------------------------------------------- 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 | // Prefix header for all source files of the 'HelloCordova' target in the 'HelloCordova' project 21 | // 22 | 23 | #ifdef __OBJC__ 24 | #import 25 | #import 26 | #endif 27 | -------------------------------------------------------------------------------- /ionic/platforms/ios/HelloCordova/Plugins/README: -------------------------------------------------------------------------------- 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 | Put the .h and .m files of your plugin here. The .js files of your plugin belong in the www folder. 21 | -------------------------------------------------------------------------------- /ionic/platforms/ios/HelloCordova/Plugins/cordova-plugin-console/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 | -------------------------------------------------------------------------------- /ionic/platforms/ios/HelloCordova/Plugins/cordova-plugin-console/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 | -------------------------------------------------------------------------------- /ionic/platforms/ios/HelloCordova/Plugins/cordova-plugin-device/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 | -------------------------------------------------------------------------------- /ionic/platforms/ios/HelloCordova/Plugins/cordova-plugin-splashscreen/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 | } 40 | 41 | - (void)show:(CDVInvokedUrlCommand*)command; 42 | - (void)hide:(CDVInvokedUrlCommand*)command; 43 | 44 | @end 45 | -------------------------------------------------------------------------------- /ionic/platforms/ios/HelloCordova/Plugins/cordova-plugin-splashscreen/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 | -------------------------------------------------------------------------------- /ionic/platforms/ios/HelloCordova/Plugins/ionic-plugin-keyboard/IonicKeyboard.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface IonicKeyboard : CDVPlugin { 4 | @protected 5 | id _keyboardShowObserver, _keyboardHideObserver; 6 | } 7 | 8 | @property (readwrite, assign) BOOL hideKeyboardAccessoryBar; 9 | @property (readwrite, assign) BOOL disableScroll; 10 | //@property (readwrite, assign) BOOL styleDark; 11 | 12 | @end 13 | 14 | -------------------------------------------------------------------------------- /ionic/platforms/ios/HelloCordova/Plugins/ionic-plugin-keyboard/UIWebViewExtension.h: -------------------------------------------------------------------------------- 1 | @interface UIWebView (HackishAccessoryHiding) 2 | @property (nonatomic, assign) BOOL hackishlyHidesInputAccessoryView; 3 | //@property (nonatomic, assign) BOOL styleDark; 4 | @end 5 | -------------------------------------------------------------------------------- /ionic/platforms/ios/HelloCordova/Resources/icons/icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/platforms/ios/HelloCordova/Resources/icons/icon-40.png -------------------------------------------------------------------------------- /ionic/platforms/ios/HelloCordova/Resources/icons/icon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/platforms/ios/HelloCordova/Resources/icons/icon-40@2x.png -------------------------------------------------------------------------------- /ionic/platforms/ios/HelloCordova/Resources/icons/icon-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/platforms/ios/HelloCordova/Resources/icons/icon-50.png -------------------------------------------------------------------------------- /ionic/platforms/ios/HelloCordova/Resources/icons/icon-50@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/platforms/ios/HelloCordova/Resources/icons/icon-50@2x.png -------------------------------------------------------------------------------- /ionic/platforms/ios/HelloCordova/Resources/icons/icon-60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/platforms/ios/HelloCordova/Resources/icons/icon-60.png -------------------------------------------------------------------------------- /ionic/platforms/ios/HelloCordova/Resources/icons/icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/platforms/ios/HelloCordova/Resources/icons/icon-60@2x.png -------------------------------------------------------------------------------- /ionic/platforms/ios/HelloCordova/Resources/icons/icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/platforms/ios/HelloCordova/Resources/icons/icon-60@3x.png -------------------------------------------------------------------------------- /ionic/platforms/ios/HelloCordova/Resources/icons/icon-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/platforms/ios/HelloCordova/Resources/icons/icon-72.png -------------------------------------------------------------------------------- /ionic/platforms/ios/HelloCordova/Resources/icons/icon-72@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/platforms/ios/HelloCordova/Resources/icons/icon-72@2x.png -------------------------------------------------------------------------------- /ionic/platforms/ios/HelloCordova/Resources/icons/icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/platforms/ios/HelloCordova/Resources/icons/icon-76.png -------------------------------------------------------------------------------- /ionic/platforms/ios/HelloCordova/Resources/icons/icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/platforms/ios/HelloCordova/Resources/icons/icon-76@2x.png -------------------------------------------------------------------------------- /ionic/platforms/ios/HelloCordova/Resources/icons/icon-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/platforms/ios/HelloCordova/Resources/icons/icon-small.png -------------------------------------------------------------------------------- /ionic/platforms/ios/HelloCordova/Resources/icons/icon-small@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/platforms/ios/HelloCordova/Resources/icons/icon-small@2x.png -------------------------------------------------------------------------------- /ionic/platforms/ios/HelloCordova/Resources/icons/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/platforms/ios/HelloCordova/Resources/icons/icon.png -------------------------------------------------------------------------------- /ionic/platforms/ios/HelloCordova/Resources/icons/icon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/platforms/ios/HelloCordova/Resources/icons/icon@2x.png -------------------------------------------------------------------------------- /ionic/platforms/ios/HelloCordova/Resources/splash/Default-568h@2x~iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/platforms/ios/HelloCordova/Resources/splash/Default-568h@2x~iphone.png -------------------------------------------------------------------------------- /ionic/platforms/ios/HelloCordova/Resources/splash/Default-667h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/platforms/ios/HelloCordova/Resources/splash/Default-667h.png -------------------------------------------------------------------------------- /ionic/platforms/ios/HelloCordova/Resources/splash/Default-736h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/platforms/ios/HelloCordova/Resources/splash/Default-736h.png -------------------------------------------------------------------------------- /ionic/platforms/ios/HelloCordova/Resources/splash/Default-Landscape-736h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/platforms/ios/HelloCordova/Resources/splash/Default-Landscape-736h.png -------------------------------------------------------------------------------- /ionic/platforms/ios/HelloCordova/Resources/splash/Default-Landscape@2x~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/platforms/ios/HelloCordova/Resources/splash/Default-Landscape@2x~ipad.png -------------------------------------------------------------------------------- /ionic/platforms/ios/HelloCordova/Resources/splash/Default-Landscape~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/platforms/ios/HelloCordova/Resources/splash/Default-Landscape~ipad.png -------------------------------------------------------------------------------- /ionic/platforms/ios/HelloCordova/Resources/splash/Default-Portrait@2x~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/platforms/ios/HelloCordova/Resources/splash/Default-Portrait@2x~ipad.png -------------------------------------------------------------------------------- /ionic/platforms/ios/HelloCordova/Resources/splash/Default-Portrait~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/platforms/ios/HelloCordova/Resources/splash/Default-Portrait~ipad.png -------------------------------------------------------------------------------- /ionic/platforms/ios/HelloCordova/Resources/splash/Default@2x~iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/platforms/ios/HelloCordova/Resources/splash/Default@2x~iphone.png -------------------------------------------------------------------------------- /ionic/platforms/ios/HelloCordova/Resources/splash/Default~iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/platforms/ios/HelloCordova/Resources/splash/Default~iphone.png -------------------------------------------------------------------------------- /ionic/platforms/ios/HelloCordova/main.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 | // main.m 21 | // HelloCordova 22 | // 23 | // Created by ___FULLUSERNAME___ on ___DATE___. 24 | // Copyright ___ORGANIZATIONNAME___ ___YEAR___. All rights reserved. 25 | // 26 | 27 | #import 28 | 29 | int main(int argc, char* argv[]) 30 | { 31 | @autoreleasepool { 32 | int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate"); 33 | return retVal; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /ionic/platforms/ios/cordova/apple_ios_version: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /* 4 | Licensed to the Apache Software Foundation (ASF) under one 5 | or more contributor license agreements. See the NOTICE file 6 | distributed with this work for additional information 7 | regarding copyright ownership. The ASF licenses this file 8 | to you under the Apache License, Version 2.0 (the 9 | "License"); you may not use this file except in compliance 10 | with the License. You may obtain a copy of the License at 11 | 12 | http://www.apache.org/licenses/LICENSE-2.0 13 | 14 | Unless required by applicable law or agreed to in writing, 15 | software distributed under the License is distributed on an 16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | KIND, either express or implied. See the License for the 18 | specific language governing permissions and limitations 19 | under the License. 20 | */ 21 | 22 | var versions = require('./lib/versions.js'); 23 | 24 | versions.get_apple_ios_version().done(null, function(err) { 25 | console.log(err); 26 | process.exit(2); 27 | }); 28 | -------------------------------------------------------------------------------- /ionic/platforms/ios/cordova/apple_osx_version: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /* 4 | Licensed to the Apache Software Foundation (ASF) under one 5 | or more contributor license agreements. See the NOTICE file 6 | distributed with this work for additional information 7 | regarding copyright ownership. The ASF licenses this file 8 | to you under the Apache License, Version 2.0 (the 9 | "License"); you may not use this file except in compliance 10 | with the License. You may obtain a copy of the License at 11 | 12 | http://www.apache.org/licenses/LICENSE-2.0 13 | 14 | Unless required by applicable law or agreed to in writing, 15 | software distributed under the License is distributed on an 16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | KIND, either express or implied. See the License for the 18 | specific language governing permissions and limitations 19 | under the License. 20 | */ 21 | 22 | var versions = require('./lib/versions.js'); 23 | 24 | versions.get_apple_osx_version().done(null, function(err) { 25 | console.log(err); 26 | process.exit(2); 27 | }); 28 | -------------------------------------------------------------------------------- /ionic/platforms/ios/cordova/apple_xcode_version: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /* 4 | Licensed to the Apache Software Foundation (ASF) under one 5 | or more contributor license agreements. See the NOTICE file 6 | distributed with this work for additional information 7 | regarding copyright ownership. The ASF licenses this file 8 | to you under the Apache License, Version 2.0 (the 9 | "License"); you may not use this file except in compliance 10 | with the License. You may obtain a copy of the License at 11 | 12 | http://www.apache.org/licenses/LICENSE-2.0 13 | 14 | Unless required by applicable law or agreed to in writing, 15 | software distributed under the License is distributed on an 16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | KIND, either express or implied. See the License for the 18 | specific language governing permissions and limitations 19 | under the License. 20 | */ 21 | 22 | var versions = require('./lib/versions.js'); 23 | 24 | versions.get_apple_xcode_version().done(function (version) { 25 | console.log(version); 26 | }, function(err) { 27 | console.error(err); 28 | process.exit(2); 29 | }); 30 | -------------------------------------------------------------------------------- /ionic/platforms/ios/cordova/build: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /* 4 | Licensed to the Apache Software Foundation (ASF) under one 5 | or more contributor license agreements. See the NOTICE file 6 | distributed with this work for additional information 7 | regarding copyright ownership. The ASF licenses this file 8 | to you under the Apache License, Version 2.0 (the 9 | "License"); you may not use this file except in compliance 10 | with the License. You may obtain a copy of the License at 11 | 12 | http://www.apache.org/licenses/LICENSE-2.0 13 | 14 | Unless required by applicable law or agreed to in writing, 15 | software distributed under the License is distributed on an 16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | KIND, either express or implied. See the License for the 18 | specific language governing permissions and limitations 19 | under the License. 20 | */ 21 | 22 | var build = require('./lib/build'), 23 | args = process.argv; 24 | 25 | // Handle help flag 26 | if (['--help', '/?', '-h', 'help', '-help', '/help'].indexOf(args[2]) > -1) { 27 | build.help(); 28 | } else { 29 | build.run(args).done(function() { 30 | console.log('** BUILD SUCCEEDED **'); 31 | }, function(err) { 32 | var errorMessage = (err && err.stack) ? err.stack : err; 33 | console.error(errorMessage); 34 | process.exit(2); 35 | }); 36 | } -------------------------------------------------------------------------------- /ionic/platforms/ios/cordova/build-debug.xcconfig: -------------------------------------------------------------------------------- 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 | // XCode Build settings for "Debug" Build Configuration. 22 | // 23 | 24 | #include "build.xcconfig" -------------------------------------------------------------------------------- /ionic/platforms/ios/cordova/build-release.xcconfig: -------------------------------------------------------------------------------- 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 | // XCode Build settings for "Release" Build Configuration. 22 | // 23 | 24 | #include "build.xcconfig" 25 | 26 | CODE_SIGN_IDENTITY = iPhone Distribution 27 | CODE_SIGN_IDENTITY[sdk=iphoneos*] = iPhone Distribution -------------------------------------------------------------------------------- /ionic/platforms/ios/cordova/build.xcconfig: -------------------------------------------------------------------------------- 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 | // XCode build settings shared by all Build Configurations. 22 | // Settings are overridden by configuration-level .xcconfig file (build-release/build-debug). 23 | // 24 | 25 | 26 | // Type of signing identity used for codesigning, resolves to first match of given type. 27 | // "iPhone Developer": Development builds (default, local only; iOS Development certificate) or "iPhone Distribution": Distribution builds (Adhoc/In-House/AppStore; iOS Distribution certificate) 28 | CODE_SIGN_IDENTITY = iPhone Developer 29 | CODE_SIGN_IDENTITY[sdk=iphoneos*] = iPhone Developer 30 | 31 | // (CB-7872) Solution for XCode 6.1 signing errors related to resource envelope format deprecation 32 | CODE_SIGN_RESOURCE_RULES_PATH = $(SDKROOT)/ResourceRules.plist -------------------------------------------------------------------------------- /ionic/platforms/ios/cordova/check_reqs: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /* 4 | Licensed to the Apache Software Foundation (ASF) under one 5 | or more contributor license agreements. See the NOTICE file 6 | distributed with this work for additional information 7 | regarding copyright ownership. The ASF licenses this file 8 | to you under the Apache License, Version 2.0 (the 9 | "License"); you may not use this file except in compliance 10 | with the License. You may obtain a copy of the License at 11 | 12 | http://www.apache.org/licenses/LICENSE-2.0 13 | 14 | Unless required by applicable law or agreed to in writing, 15 | software distributed under the License is distributed on an 16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | KIND, either express or implied. See the License for the 18 | specific language governing permissions and limitations 19 | under the License. 20 | */ 21 | 22 | var check_reqs = require('./lib/check_reqs'); 23 | 24 | // check for help flag 25 | if (['--help', '/?', '-h', 'help', '-help', '/help'].indexOf(process.argv[2]) > -1) { 26 | check_reqs.help(); 27 | } else { 28 | check_reqs.run().done(null, function (err) { 29 | console.error('Failed to check requirements due to ' + err); 30 | process.exit(2); 31 | }); 32 | } -------------------------------------------------------------------------------- /ionic/platforms/ios/cordova/clean: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /* 4 | Licensed to the Apache Software Foundation (ASF) under one 5 | or more contributor license agreements. See the NOTICE file 6 | distributed with this work for additional information 7 | regarding copyright ownership. The ASF licenses this file 8 | to you under the Apache License, Version 2.0 (the 9 | "License"); you may not use this file except in compliance 10 | with the License. You may obtain a copy of the License at 11 | 12 | http://www.apache.org/licenses/LICENSE-2.0 13 | 14 | Unless required by applicable law or agreed to in writing, 15 | software distributed under the License is distributed on an 16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | KIND, either express or implied. See the License for the 18 | specific language governing permissions and limitations 19 | under the License. 20 | */ 21 | 22 | var clean = require('./lib/clean'); 23 | 24 | clean.run(process.argv).done(function () { 25 | console.log('** CLEAN SUCCEEDED **'); 26 | }, function(err) { 27 | console.error(err); 28 | process.exit(2); 29 | }); -------------------------------------------------------------------------------- /ionic/platforms/ios/cordova/clean.bat: -------------------------------------------------------------------------------- 1 | :: Licensed to the Apache Software Foundation (ASF) under one 2 | :: or more contributor license agreements. See the NOTICE file 3 | :: distributed with this work for additional information 4 | :: regarding copyright ownership. The ASF licenses this file 5 | :: to you under the Apache License, Version 2.0 (the 6 | :: "License"); you may not use this file except in compliance 7 | :: with the License. You may obtain a copy of the License at 8 | :: 9 | :: http://www.apache.org/licenses/LICENSE-2.0 10 | :: 11 | :: Unless required by applicable law or agreed to in writing, 12 | :: software distributed under the License is distributed on an 13 | :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | :: KIND, either express or implied. See the License for the 15 | :: specific language governing permissions and limitations 16 | :: under the License 17 | @ECHO OFF 18 | SET script_path="%~dp0clean" 19 | IF EXIST %script_path% ( 20 | node %script_path% %* 21 | ) ELSE ( 22 | ECHO. 23 | ECHO ERROR: Could not find 'clean' script in 'cordova' folder, aborting...>&2 24 | EXIT /B 1 25 | ) -------------------------------------------------------------------------------- /ionic/platforms/ios/cordova/lib/start-emulator: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 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 | # Run the below to get the device targets: 21 | # xcrun instruments -s 22 | 23 | set -e 24 | 25 | 26 | DEFAULT_TARGET="iPhone 5s" 27 | TARGET=${1:-$DEFAULT_TARGET} 28 | LIB_PATH=$( cd "$( dirname "$0" )" && pwd -P) 29 | 30 | xcrun instruments -w "$TARGET" &> /dev/null -------------------------------------------------------------------------------- /ionic/platforms/ios/cordova/log: -------------------------------------------------------------------------------- 1 | #! /bin/sh 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 | CORDOVA_PATH=$( cd "$( dirname "$0" )" && pwd -P) 22 | 23 | tail -f "$CORDOVA_PATH/console.log" 24 | -------------------------------------------------------------------------------- /ionic/platforms/ios/cordova/run: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /* 4 | Licensed to the Apache Software Foundation (ASF) under one 5 | or more contributor license agreements. See the NOTICE file 6 | distributed with this work for additional information 7 | regarding copyright ownership. The ASF licenses this file 8 | to you under the Apache License, Version 2.0 (the 9 | "License"); you may not use this file except in compliance 10 | with the License. You may obtain a copy of the License at 11 | 12 | http://www.apache.org/licenses/LICENSE-2.0 13 | 14 | Unless required by applicable law or agreed to in writing, 15 | software distributed under the License is distributed on an 16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | KIND, either express or implied. See the License for the 18 | specific language governing permissions and limitations 19 | under the License. 20 | */ 21 | 22 | var args = process.argv, 23 | run = require('./lib/run'); 24 | 25 | // Handle help flag 26 | if (['--help', '/?', '-h', 'help', '-help', '/help'].indexOf(args[2]) > -1) { 27 | run.help(); 28 | } else { 29 | run.run(args).done(function() { 30 | console.log('** RUN SUCCEEDED **'); 31 | }, function (err) { 32 | var errorMessage = (err && err.stack) ? err.stack : err; 33 | console.error(errorMessage); 34 | process.exit(2); 35 | }); 36 | } -------------------------------------------------------------------------------- /ionic/platforms/ios/cordova/run.bat: -------------------------------------------------------------------------------- 1 | :: Licensed to the Apache Software Foundation (ASF) under one 2 | :: or more contributor license agreements. See the NOTICE file 3 | :: distributed with this work for additional information 4 | :: regarding copyright ownership. The ASF licenses this file 5 | :: to you under the Apache License, Version 2.0 (the 6 | :: "License"); you may not use this file except in compliance 7 | :: with the License. You may obtain a copy of the License at 8 | :: 9 | :: http://www.apache.org/licenses/LICENSE-2.0 10 | :: 11 | :: Unless required by applicable law or agreed to in writing, 12 | :: software distributed under the License is distributed on an 13 | :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | :: KIND, either express or implied. See the License for the 15 | :: specific language governing permissions and limitations 16 | :: under the License 17 | @ECHO OFF 18 | SET script_path="%~dp0run" 19 | IF EXIST %script_path% ( 20 | node %script_path% %* 21 | ) ELSE ( 22 | ECHO. 23 | ECHO ERROR: Could not find 'run' script in 'cordova' folder, aborting...>&2 24 | EXIT /B 1 25 | ) 26 | -------------------------------------------------------------------------------- /ionic/platforms/ios/cordova/version: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /* 4 | Licensed to the Apache Software Foundation (ASF) under one 5 | or more contributor license agreements. See the NOTICE file 6 | distributed with this work for additional information 7 | regarding copyright ownership. The ASF licenses this file 8 | to you under the Apache License, Version 2.0 (the 9 | "License"); you may not use this file except in compliance 10 | with the License. You may obtain a copy of the License at 11 | 12 | http://www.apache.org/licenses/LICENSE-2.0 13 | 14 | Unless required by applicable law or agreed to in writing, 15 | software distributed under the License is distributed on an 16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | KIND, either express or implied. See the License for the 18 | specific language governing permissions and limitations 19 | under the License. 20 | */ 21 | 22 | /* 23 | 24 | Returns the VERSION of CordovaLib used. 25 | Note: it does not work if the --shared option was used to create the project. 26 | */ 27 | 28 | var VERSION="3.8.0" 29 | 30 | console.log(VERSION); 31 | -------------------------------------------------------------------------------- /ionic/platforms/ios/cordova/version.bat: -------------------------------------------------------------------------------- 1 | :: Licensed to the Apache Software Foundation (ASF) under one 2 | :: or more contributor license agreements. See the NOTICE file 3 | :: distributed with this work for additional information 4 | :: regarding copyright ownership. The ASF licenses this file 5 | :: to you under the Apache License, Version 2.0 (the 6 | :: "License"); you may not use this file except in compliance 7 | :: with the License. You may obtain a copy of the License at 8 | :: 9 | :: http://www.apache.org/licenses/LICENSE-2.0 10 | :: 11 | :: Unless required by applicable law or agreed to in writing, 12 | :: software distributed under the License is distributed on an 13 | :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | :: KIND, either express or implied. See the License for the 15 | :: specific language governing permissions and limitations 16 | :: under the License. 17 | 18 | @ECHO OFF 19 | SET script="%~dp0version" 20 | IF EXIST %script% ( 21 | node %script% %* 22 | ) ELSE ( 23 | ECHO. 24 | ECHO ERROR: Could not find 'version' script in 'cordova' folder, aborting...>&2 25 | EXIT /B 1 26 | ) 27 | -------------------------------------------------------------------------------- /ionic/platforms/ios/platform_www/cordova-js-src/platform.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 | module.exports = { 23 | id: 'ios', 24 | bootstrap: function() { 25 | require('cordova/channel').onNativeReady.fire(); 26 | } 27 | }; 28 | 29 | -------------------------------------------------------------------------------- /ionic/platforms/ios/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 sidemenu 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/0RXSDB?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 | -------------------------------------------------------------------------------- /ionic/platforms/ios/www/cordova-js-src/platform.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 | module.exports = { 23 | id: 'ios', 24 | bootstrap: function() { 25 | require('cordova/channel').onNativeReady.fire(); 26 | } 27 | }; 28 | 29 | -------------------------------------------------------------------------------- /ionic/platforms/ios/www/css/style.css: -------------------------------------------------------------------------------- 1 | /* Empty. Add your own CSS if you like */ 2 | -------------------------------------------------------------------------------- /ionic/platforms/ios/www/img/ionic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/platforms/ios/www/img/ionic.png -------------------------------------------------------------------------------- /ionic/platforms/ios/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 | 29 | 30 | -------------------------------------------------------------------------------- /ionic/platforms/ios/www/lib/ionic/fonts/ionicons.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/platforms/ios/www/lib/ionic/fonts/ionicons.eot -------------------------------------------------------------------------------- /ionic/platforms/ios/www/lib/ionic/fonts/ionicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/platforms/ios/www/lib/ionic/fonts/ionicons.ttf -------------------------------------------------------------------------------- /ionic/platforms/ios/www/lib/ionic/fonts/ionicons.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/platforms/ios/www/lib/ionic/fonts/ionicons.woff -------------------------------------------------------------------------------- /ionic/platforms/ios/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 | -------------------------------------------------------------------------------- /ionic/platforms/ios/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 | -------------------------------------------------------------------------------- /ionic/platforms/ios/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 | 26 | .button-bar > .button { 27 | @include flex(1); 28 | display: block; 29 | 30 | overflow: hidden; 31 | 32 | padding: 0 16px; 33 | 34 | width: 0; 35 | 36 | border-width: 1px 0px 1px 1px; 37 | border-radius: 0; 38 | text-align: center; 39 | text-overflow: ellipsis; 40 | white-space: nowrap; 41 | 42 | &:before, 43 | .icon:before { 44 | line-height: 44px; 45 | } 46 | 47 | &:first-child { 48 | border-radius: $button-border-radius 0px 0px $button-border-radius; 49 | } 50 | &:last-child { 51 | border-right-width: 1px; 52 | border-radius: 0px $button-border-radius $button-border-radius 0px; 53 | } 54 | &:only-child { 55 | border-radius: $button-border-radius; 56 | } 57 | } 58 | 59 | .button-bar > .button-small { 60 | &:before, 61 | .icon:before { 62 | line-height: 28px; 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /ionic/platforms/ios/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 | -------------------------------------------------------------------------------- /ionic/platforms/ios/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 | -------------------------------------------------------------------------------- /ionic/platforms/ios/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 | -------------------------------------------------------------------------------- /ionic/platforms/ios/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 | -------------------------------------------------------------------------------- /ionic/platforms/ios/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 | -------------------------------------------------------------------------------- /ionic/platforms/ios/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 | -------------------------------------------------------------------------------- /ionic/platforms/ios/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 | -------------------------------------------------------------------------------- /ionic/platforms/ios/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 | -------------------------------------------------------------------------------- /ionic/platforms/ios/www/lib/ionic/version.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.2.4", 3 | "codename": "", 4 | "date": "2016-01-03", 5 | "time": "19:55:51" 6 | } 7 | -------------------------------------------------------------------------------- /ionic/platforms/ios/www/plugins/cordova-plugin-splashscreen/www/splashscreen.js: -------------------------------------------------------------------------------- 1 | cordova.define("cordova-plugin-splashscreen.SplashScreen", function(require, exports, module) { /* 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 | 35 | }); 36 | -------------------------------------------------------------------------------- /ionic/platforms/ios/www/plugins/ionic-plugin-keyboard/www/ios/keyboard.js: -------------------------------------------------------------------------------- 1 | cordova.define("ionic-plugin-keyboard.keyboard", function(require, exports, module) { 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 | exec(null, null, "Keyboard", "show", []); 20 | }; 21 | 22 | Keyboard.disableScroll = function(disable) { 23 | exec(null, null, "Keyboard", "disableScroll", [disable]); 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 | 36 | 37 | 38 | 39 | }); 40 | -------------------------------------------------------------------------------- /ionic/platforms/ios/www/templates/browse.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |

Browse

4 |
5 |
6 | -------------------------------------------------------------------------------- /ionic/platforms/ios/www/templates/login.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |

Login

4 |
5 | 6 |
7 |
8 | 9 |
10 |
11 | 15 | 19 | 22 |
23 |
24 |
25 |
26 | -------------------------------------------------------------------------------- /ionic/platforms/ios/www/templates/menu.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |

Left

18 |
19 | 20 | 21 | 22 | Login 23 | 24 | 25 | Search 26 | 27 | 28 | Browse 29 | 30 | 31 | Playlists 32 | 33 | 34 | 35 |
36 |
37 | -------------------------------------------------------------------------------- /ionic/platforms/ios/www/templates/playlist.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |

Playlist

4 |
5 |
6 | -------------------------------------------------------------------------------- /ionic/platforms/ios/www/templates/playlists.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {{playlist.title}} 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /ionic/platforms/ios/www/templates/search.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |

Search

4 |
5 |
6 | -------------------------------------------------------------------------------- /ionic/platforms/platforms.json: -------------------------------------------------------------------------------- 1 | { 2 | "ios": "3.8.0" 3 | } -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/plugins/cordova-plugin-console/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cordova-plugin-console", 3 | "version": "1.0.2", 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 | "author": "Apache Software Foundation", 32 | "license": "Apache 2.0" 33 | } 34 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/plugins/cordova-plugin-device/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cordova-plugin-device", 3 | "version": "1.1.1", 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 | "author": "Apache Software Foundation", 46 | "license": "Apache 2.0" 47 | } 48 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | var cordova = require('cordova'); 24 | 25 | module.exports = { 26 | getDeviceInfo: function(success, error) { 27 | setTimeout(function () { 28 | success({ 29 | cordova: tizen.cordovaVersion, 30 | platform: 'tizen', 31 | model: null, 32 | version: null, 33 | uuid: null 34 | }); 35 | }, 0); 36 | } 37 | }; 38 | 39 | require("cordova/tizen/commandProxy").add("Device", module.exports); 40 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | var cordova = require('cordova'); 23 | var exec = require('cordova/exec'); 24 | 25 | module.exports = { 26 | getInfo:function(win,fail,args) { 27 | Cordova.exec(function (model, cordova, platform, uuid, version) { 28 | win({name: name, model: model, cordova: cordova, 29 | platform: platform, uuid: uuid, version: version}); 30 | }, null, "com.cordova.Device", "getInfo", []); 31 | } 32 | }; 33 | 34 | require("cordova/exec/proxy").add("Device", module.exports); 35 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/plugins/cordova-plugin-splashscreen/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cordova-plugin-splashscreen", 3 | "version": "3.1.0", 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 | "engines": [ 38 | { 39 | "name": "cordova-android", 40 | "version": ">=3.6.0" 41 | } 42 | ], 43 | "author": "Apache Software Foundation", 44 | "license": "Apache 2.0" 45 | } 46 | -------------------------------------------------------------------------------- /ionic/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 | module.exports = { 18 | show: function (success, fail, args, env) { 19 | var result = new PluginResult(args, env); 20 | result.error("Not supported on platform", false); 21 | }, 22 | 23 | hide: function (success, fail, args, env) { 24 | var result = new PluginResult(args, env); 25 | window.qnx.webplatform.getApplication().windowVisible = true; 26 | result.ok(undefined, false); 27 | } 28 | }; 29 | -------------------------------------------------------------------------------- /ionic/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 | } 40 | 41 | - (void)show:(CDVInvokedUrlCommand*)command; 42 | - (void)hide:(CDVInvokedUrlCommand*)command; 43 | 44 | @end 45 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | 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 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | } -------------------------------------------------------------------------------- /ionic/plugins/cordova-plugin-splashscreen/tests/ios/CDVSplashScreenTest.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ionic/plugins/cordova-plugin-splashscreen/tests/ios/CDVSplashScreenTest/.npmignore: -------------------------------------------------------------------------------- 1 | build -------------------------------------------------------------------------------- /ionic/plugins/cordova-plugin-splashscreen/tests/ios/CDVSplashScreenTest/CDVSplashScreenTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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": "^3.6.0" 9 | }, 10 | "scripts": { 11 | "test": "xcodebuild test -workspace CDVSplashScreenTest.xcworkspace -scheme CDVSplashScreenLibTests -destination 'platform=iOS Simulator,name=iPhone 5' CONFIGURATION_BUILD_DIR='/tmp'" 12 | } 13 | } -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/plugins/cordova-plugin-statusbar/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cordova-plugin-statusbar", 3 | "version": "2.1.1", 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 | "engines": [ 30 | { 31 | "name": "cordova", 32 | "version": ">=3.0.0" 33 | } 34 | ], 35 | "author": "Apache Software Foundation", 36 | "license": "Apache 2.0" 37 | } 38 | -------------------------------------------------------------------------------- /ionic/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 | var cordova = require('cordova'); 22 | 23 | function notSupported() { 24 | console.log('StatusBar is not supported'); 25 | return false; 26 | } 27 | 28 | module.exports = { 29 | isVisible: false, 30 | styleBlackTranslucent:notSupported, 31 | styleDefault:notSupported, 32 | styleLightContent:notSupported, 33 | styleBlackOpaque:notSupported, 34 | overlaysWebView:notSupported, 35 | styleLightContect: notSupported, 36 | backgroundColorByName: notSupported, 37 | backgroundColorByHexString: notSupported, 38 | hide: notSupported, 39 | show: notSupported 40 | }; 41 | 42 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/plugins/cordova-plugin-whitelist/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cordova-plugin-whitelist", 3 | "version": "1.2.1", 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 | -------------------------------------------------------------------------------- /ionic/plugins/cordova-plugin-whitelist/whitelist.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 | if (!document.querySelector('meta[http-equiv=Content-Security-Policy]')) { 22 | var msg = 'No Content-Security-Policy meta tag found. Please add one when using the cordova-plugin-whitelist plugin.'; 23 | console.error(msg); 24 | setInterval(function() { 25 | console.warn(msg); 26 | }, 10000); 27 | } 28 | -------------------------------------------------------------------------------- /ionic/plugins/fetch.json: -------------------------------------------------------------------------------- 1 | { 2 | "cordova-plugin-device": { 3 | "source": { 4 | "type": "registry", 5 | "id": "cordova-plugin-device@~1.1.1" 6 | }, 7 | "is_top_level": true, 8 | "variables": {} 9 | }, 10 | "cordova-plugin-console": { 11 | "source": { 12 | "type": "registry", 13 | "id": "cordova-plugin-console@~1.0.2" 14 | }, 15 | "is_top_level": true, 16 | "variables": {} 17 | }, 18 | "cordova-plugin-whitelist": { 19 | "source": { 20 | "type": "registry", 21 | "id": "cordova-plugin-whitelist@~1.2.1" 22 | }, 23 | "is_top_level": true, 24 | "variables": {} 25 | }, 26 | "cordova-plugin-splashscreen": { 27 | "source": { 28 | "type": "registry", 29 | "id": "cordova-plugin-splashscreen@~3.1.0" 30 | }, 31 | "is_top_level": true, 32 | "variables": {} 33 | }, 34 | "cordova-plugin-statusbar": { 35 | "source": { 36 | "type": "registry", 37 | "id": "cordova-plugin-statusbar@~2.1.0" 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 | } -------------------------------------------------------------------------------- /ionic/plugins/ionic-plugin-keyboard/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ionic-plugin-keyboard", 3 | "version": "1.0.8", 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 | -------------------------------------------------------------------------------- /ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/libKeyboard.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/libKeyboard.so -------------------------------------------------------------------------------- /ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/public/json_reader.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/public/json_reader.o -------------------------------------------------------------------------------- /ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/public/json_value.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/public/json_value.o -------------------------------------------------------------------------------- /ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/public/json_writer.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/public/json_writer.o -------------------------------------------------------------------------------- /ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/public/plugin.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/public/plugin.o -------------------------------------------------------------------------------- /ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/public/tokenizer.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/public/tokenizer.o -------------------------------------------------------------------------------- /ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/src/CallKeyboard.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/src/CallKeyboard.o -------------------------------------------------------------------------------- /ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/src/Logger.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/src/Logger.o -------------------------------------------------------------------------------- /ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/src/keyboard_js.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/src/keyboard_js.o -------------------------------------------------------------------------------- /ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/src/keyboard_ndk.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/device/src/keyboard_ndk.o -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/public/tokenizer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/public/tokenizer.cpp -------------------------------------------------------------------------------- /ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/public/tokenizer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/public/tokenizer.h -------------------------------------------------------------------------------- /ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/libKeyboard.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/libKeyboard.so -------------------------------------------------------------------------------- /ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/public/json_reader.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/public/json_reader.o -------------------------------------------------------------------------------- /ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/public/json_value.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/public/json_value.o -------------------------------------------------------------------------------- /ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/public/json_writer.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/public/json_writer.o -------------------------------------------------------------------------------- /ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/public/plugin.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/public/plugin.o -------------------------------------------------------------------------------- /ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/public/tokenizer.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/public/tokenizer.o -------------------------------------------------------------------------------- /ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/src/CallKeyboard.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/src/CallKeyboard.o -------------------------------------------------------------------------------- /ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/src/Logger.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/src/Logger.o -------------------------------------------------------------------------------- /ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/src/keyboard_js.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/src/keyboard_js.o -------------------------------------------------------------------------------- /ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/src/keyboard_ndk.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/plugins/ionic-plugin-keyboard/src/blackberry10/native/simulator/src/keyboard_ndk.o -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/plugins/ionic-plugin-keyboard/src/ios/IonicKeyboard.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface IonicKeyboard : CDVPlugin { 4 | @protected 5 | id _keyboardShowObserver, _keyboardHideObserver; 6 | } 7 | 8 | @property (readwrite, assign) BOOL hideKeyboardAccessoryBar; 9 | @property (readwrite, assign) BOOL disableScroll; 10 | //@property (readwrite, assign) BOOL styleDark; 11 | 12 | @end 13 | 14 | -------------------------------------------------------------------------------- /ionic/plugins/ionic-plugin-keyboard/src/ios/UIWebViewExtension.h: -------------------------------------------------------------------------------- 1 | @interface UIWebView (HackishAccessoryHiding) 2 | @property (nonatomic, assign) BOOL hackishlyHidesInputAccessoryView; 3 | //@property (nonatomic, assign) BOOL styleDark; 4 | @end 5 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | exec(null, null, "Keyboard", "show", []); 20 | }; 21 | 22 | Keyboard.disableScroll = function(disable) { 23 | exec(null, null, "Keyboard", "disableScroll", [disable]); 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 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/www/css/style.css: -------------------------------------------------------------------------------- 1 | .platform-ios.platform-cordova:not(.fullscreen) { 2 | .search-bar.bar-header { 3 | height: 44px; 4 | top: 64px; 5 | 6 | &.search-bar-focused { 7 | height: 64px; 8 | top: 0; 9 | } 10 | } 11 | 12 | .search-bar.bar-header.item-input-inset { 13 | .item-input-wrapper { 14 | transition: all ease-in-out 250ms; 15 | margin-top: 0 !important; 16 | } 17 | } 18 | 19 | .search-bar.search-bar-focused.bar-header.item-input-inset { 20 | .item-input-wrapper { 21 | margin-top: 19px !important; 22 | } 23 | } 24 | 25 | .has-search-bar { 26 | top: 108px; 27 | 28 | &.search-bar-focused { 29 | top: 64px; 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /ionic/www/img/ionic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/www/img/ionic.png -------------------------------------------------------------------------------- /ionic/www/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /ionic/www/lib/ionic/fonts/ionicons.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/www/lib/ionic/fonts/ionicons.eot -------------------------------------------------------------------------------- /ionic/www/lib/ionic/fonts/ionicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/www/lib/ionic/fonts/ionicons.ttf -------------------------------------------------------------------------------- /ionic/www/lib/ionic/fonts/ionicons.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/ionic/www/lib/ionic/fonts/ionicons.woff -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | 26 | .button-bar > .button { 27 | @include flex(1); 28 | display: block; 29 | 30 | overflow: hidden; 31 | 32 | padding: 0 16px; 33 | 34 | width: 0; 35 | 36 | border-width: 1px 0px 1px 1px; 37 | border-radius: 0; 38 | text-align: center; 39 | text-overflow: ellipsis; 40 | white-space: nowrap; 41 | 42 | &:before, 43 | .icon:before { 44 | line-height: 44px; 45 | } 46 | 47 | &:first-child { 48 | border-radius: $button-border-radius 0px 0px $button-border-radius; 49 | } 50 | &:last-child { 51 | border-right-width: 1px; 52 | border-radius: 0px $button-border-radius $button-border-radius 0px; 53 | } 54 | &:only-child { 55 | border-radius: $button-border-radius; 56 | } 57 | } 58 | 59 | .button-bar > .button-small { 60 | &:before, 61 | .icon:before { 62 | line-height: 28px; 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/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 | -------------------------------------------------------------------------------- /ionic/www/lib/ionic/version.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.2.4", 3 | "codename": "", 4 | "date": "2016-01-03", 5 | "time": "19:55:51" 6 | } 7 | -------------------------------------------------------------------------------- /ionic/www/templates/favorites.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 7 |
8 |
9 | 10 | 11 | 12 | 13 | 14 |

{{recipe.name}}

15 |
16 | 17 | {{ing}} 
18 | 综评 {{recipe.rating}} 19 |  做过 {{recipe.cooked}} 20 |  收藏 {{recipe.likes}} 21 |
22 |
23 | 25 | 26 |
27 |
28 |
29 |
30 | -------------------------------------------------------------------------------- /ionic/www/templates/home.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |
6 |
7 | 8 | 9 | 10 | 11 | 12 |

{{recipe.name}}

13 |
14 | 15 | {{ing}} 
16 | 综评 {{recipe.rating}} 17 |  做过 {{recipe.cooked}} 18 |  收藏 {{recipe.likes}} 19 |
20 |
21 | 23 | 24 |
25 |
26 |
27 |
28 | -------------------------------------------------------------------------------- /ionic/www/templates/login.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |

我的厨房

4 |
5 | 6 |
7 |
8 | 9 |
10 |
11 | 15 | 19 | 22 |
23 |
24 |
25 |
26 | -------------------------------------------------------------------------------- /ionic/www/templates/menu.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 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 | -------------------------------------------------------------------------------- /ionic/www/templates/search.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 8 |
9 | 10 | 11 | 12 | 13 |

{{recipe.name}}

14 |
{{ing}} 
15 |
16 | 17 | 综评 {{recipe.rating}} 18 |  做过 {{recipe.cooked}} 19 |  收藏 {{recipe.likes}} 20 | 21 |
22 | 24 | 25 |
26 |
27 |
28 |
29 | -------------------------------------------------------------------------------- /manifest.yml: -------------------------------------------------------------------------------- 1 | --- 2 | applications: 3 | - name: Pikachu 4 | memory: 256M 5 | domain: mybluemix.net 6 | instances: 1 7 | command: npm start 8 | host: pikachu-dev 9 | env: 10 | MONGOLAB_URI: "" 11 | services: 12 | - mLab 13 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Pikachu", 3 | "version": "0.0.1", 4 | "description": "A simple Node.js based web crawler and search", 5 | "main": "app.js", 6 | "scripts": { 7 | "start": "node ./bin/www" 8 | }, 9 | "engines": { 10 | "node": "4.2.x", 11 | "npm": "2.14.x" 12 | }, 13 | "repository": { 14 | "type": "git", 15 | "url": "git+https://github.com/BitTigerInst/Pikachu.git" 16 | }, 17 | "keywords": [ 18 | "node.js", 19 | "web", 20 | "mongodb", 21 | "search", 22 | "crawler" 23 | ], 24 | "author": "aaronice", 25 | "license": "MIT", 26 | "bugs": { 27 | "url": "https://github.com/BitTigerInst/Pikachu/issues" 28 | }, 29 | "homepage": "https://github.com/BitTigerInst/Pikachu#readme", 30 | "dependencies": { 31 | "body-parser": "~1.13.2", 32 | "cheerio": "^0.20.0", 33 | "compression": "^1.6.1", 34 | "cookie-parser": "~1.3.5", 35 | "cors": "^2.7.1", 36 | "debug": "~2.2.0", 37 | "ejs": "^2.4.1", 38 | "elasticsearch": "^10.1.3", 39 | "express": "^4.13.4", 40 | "helmet": "^1.2.0", 41 | "mongoose": "^4.4.5", 42 | "morgan": "~1.6.1", 43 | "random-ua": "0.0.6", 44 | "request": "^2.69.0", 45 | "serve-favicon": "~2.3.0", 46 | "simplecrawler": "^0.6.2" 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/public/favicon.ico -------------------------------------------------------------------------------- /public/images/pikachu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BitTigerInst/Pikachu/2cf54fafd4d3814af2f022b51837a697cca3c789/public/images/pikachu.png -------------------------------------------------------------------------------- /public/stylesheets/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding: 50px; 3 | font: 14px "Lucida Grande", Helvetica, Arial, sans-serif; 4 | } 5 | 6 | a { 7 | color: #00B7FF; 8 | } 9 | -------------------------------------------------------------------------------- /resources/ip_list.txt: -------------------------------------------------------------------------------- 1 | 178.22.148.122:3129 2 | 94.23.200.49:3128 3 | 5.45.75.191:80 4 | 5.45.73.218:80 5 | 5.45.73.218:85 6 | 195.154.231.43:3128 7 | 52.18.181.5:80 8 | 213.136.79.122:80 9 | 185.28.193.95:8080 10 | 109.196.127.35:8888 11 | 213.85.92.10:80 12 | 85.143.164.100:81 13 | 109.236.122.243:8080 14 | 176.36.10.245:3128 15 | 107.170.237.191:8080 16 | 107.170.237.191:80 17 | 62.109.5.47:3128 18 | 213.33.146.38:80 19 | 213.128.81.82:80 20 | 192.99.54.41:8080 21 | 185.128.36.39:80 22 | 192.99.71.135:3128 23 | 212.12.75.2:8080 24 | 212.33.246.38:3128 25 | 185.128.36.34:80 26 | 185.128.36.31:80 27 | 185.128.36.37:80 28 | 185.128.36.38:80 29 | 185.128.36.35:80 30 | 185.128.36.32:80 31 | 185.128.36.33:80 32 | 192.99.54.110:8080 33 | 192.99.54.41:3128 34 | 104.236.220.104:80 35 | 85.143.24.70:80 36 | 193.194.69.36:3128 37 | 120.198.231.22:85 38 | 120.198.231.21:80 39 | 120.198.231.23:84 40 | 120.198.231.22:83 41 | 120.198.231.23:80 42 | 120.198.231.24:80 43 | 120.198.231.22:8081 44 | 120.198.231.22:80 45 | 120.198.231.24:86 46 | 120.198.231.21:84 47 | 120.198.231.22:82 48 | 58.220.10.7:80 49 | 120.198.231.21:81 50 | 120.198.231.21:8081 51 | 120.198.231.23:8081 52 | 120.198.231.23:83 53 | 120.198.231.22:81 54 | 120.198.231.21:8080 55 | 120.198.231.24:84 56 | 211.143.146.230:81 57 | 112.25.41.111:80 58 | 121.69.23.134:8118 59 | 120.198.231.22:84 60 | 61.235.125.26:81 61 | 124.200.181.50:8118 62 | 121.69.22.250:8118 63 | 120.198.231.23:85 64 | 124.202.200.98:8118 65 | 115.29.202.148:8888 66 | 124.200.100.50:8080 67 | 120.198.231.24:83 68 | 119.97.137.144:80 69 | 120.198.231.24:8081 70 | 124.193.138.37:80 71 | 182.254.153.54:8080 72 | -------------------------------------------------------------------------------- /resources/xcfQueue.js: -------------------------------------------------------------------------------- 1 | var queue = [ 2 | "http://www.xiachufang.com/category/40076/", 3 | "http://www.xiachufang.com/category/40077/", 4 | "http://www.xiachufang.com/category/40078/", 5 | "http://www.xiachufang.com/category/51848/", 6 | "http://www.xiachufang.com/category/51761/", 7 | "http://www.xiachufang.com/category/20135/" 8 | ]; 9 | 10 | // "http://www.xiachufang.com/category/" 11 | 12 | module.exports = queue; 13 | -------------------------------------------------------------------------------- /routes/index.js: -------------------------------------------------------------------------------- 1 | var express = require('express'); 2 | var router = express.Router(); 3 | 4 | /* GET home page. */ 5 | router.get('/', function(req, res, next) { 6 | res.render('index', { title: 'Express' }); 7 | }); 8 | 9 | module.exports = router; 10 | -------------------------------------------------------------------------------- /services/MongoDBClient.js: -------------------------------------------------------------------------------- 1 | /* A singleton client to Cloudant database */ 2 | var mongoose = require('mongoose'); 3 | var config = require('../config'); 4 | 5 | var client = false; 6 | var dbURI = 7 | config.mongodb.dburl || 8 | process.env.MONGOLAB_URI || 9 | 'mongodb://localhost:27017/pikachu'; 10 | 11 | var MongoDBClient = function() {}; 12 | 13 | MongoDBClient.init = function(callback) { 14 | 15 | mongoose.connect(dbURI, function(err, res) { 16 | if (err) { 17 | console.log('Error connecting to MongoDB' + 18 | ' account %s: %s', config.mongodb.username, err.message); 19 | callback(err); 20 | return; 21 | } else { 22 | console.log("connected to MongoDB"); 23 | client = true; 24 | callback(null, mongoose); 25 | } 26 | 27 | }) 28 | } 29 | 30 | MongoDBClient.getInstance = function(callback) { 31 | if (client) { 32 | callback(null, mongoose); 33 | } else { 34 | MongoDBClient.init(callback) 35 | } 36 | }; 37 | 38 | exports.getInstance = MongoDBClient.getInstance; 39 | -------------------------------------------------------------------------------- /services/elasticsearch.md: -------------------------------------------------------------------------------- 1 | # Elastic Search 2 | For each recipe, we have numerical values like rating, dishes, comments, cooked. 3 | 4 | In addition to filtering according to the query sting the user provided, we also multiply the numerical value to be the ultimate score. We use the [function 5 | score](https://www.elastic.co/guide/en/elasticsearch/guide/current/function-score-query.html) function provided by elastic search. 6 | 7 | Some numerical values will be huge, like the likes, cooked, so we use the log function to smooth it out. For rating, we can simply 8 | use the original value since it it on 0-10 scale. -------------------------------------------------------------------------------- /views/error.ejs: -------------------------------------------------------------------------------- 1 |

<%= message %>

2 |

<%= error.status %>

3 |
<%= error.stack %>
4 | -------------------------------------------------------------------------------- /views/index.ejs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | <%= title %> 5 | 6 | 7 | 8 |

<%= title %>

9 |

Welcome to <%= title %>

10 | 11 | 12 | --------------------------------------------------------------------------------