From 1733d15cf49f4dd155e6fdf8f188ca18c9509d86 Mon Sep 17 00:00:00 2001 From: shprink Date: Tue, 6 Oct 2015 10:18:55 -0500 Subject: [PATCH] cordova project --- .gitignore | 2 ++ README.md | 37 ++++--------------------------------- config.xml | 31 +++++++++++++++++++++++++++++++ package.json | 1 + www/.gitignore | 2 ++ 5 files changed, 40 insertions(+), 33 deletions(-) create mode 100644 config.xml create mode 100644 www/.gitignore diff --git a/.gitignore b/.gitignore index 123ae94..38d42ee 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,5 @@ build/Release # Dependency directory # https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git node_modules +platforms +plugins diff --git a/README.md b/README.md index 45de8e5..836e1a9 100644 --- a/README.md +++ b/README.md @@ -1,41 +1,12 @@ -wp-api-angularjs -================ +## Installation -AngularJS services to consume [WP-API v2](http://v2.wp-api.org/) +### npm -## Documentation +`npm install ionic-native-transitions --save` - +## Configuration -## Authentication -This library only supports basic auth. OAuth1 not being suitable for JS clients (it would mean exposing key and password out of the open) - -### Basic auth - -Basic auth is only secured to use if used during the app run time and used with a secured connection to your Blog (via SSL). - -#### During run time - -Make sure your WP-API runs with an SSL certificate (https) otherwise this will expose your credentials at every request. - -Display a form for users to connect and use the following code to register credentials: - -``` -.controller(function(WpApi){ - WpApi.setBasicCredentials(, ); -}); -``` - -#### During configuration - -You can also set basic credentials during the configuration but use this should only be used for testing as it embed credentials in the application code. - -``` -.config(function(WpApiProvider){ - WpApiProvider.setBasicCredentials(, ); -}); -``` ## Contribute diff --git a/config.xml b/config.xml new file mode 100644 index 0000000..e334a15 --- /dev/null +++ b/config.xml @@ -0,0 +1,31 @@ + + + ionic-native-transitions + + Your description. + + + YourName + + + + + + + + + + + + + + + + + + + + + 4323000 + + diff --git a/package.json b/package.json index b35a2d6..7235975 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "runIosDevice": "npm run dumpTestDev && cordova run ios --device", "platformAddAndroid": "cordova platform add android", "platformAddIOS": "cordova platform add ios", + "platformAddAll": "npm run platformAddAndroid && npm run platformAddIOS", "pluginAddAll": "cordova plugin add cordova-plugin-crosswalk-webview@1.2.0 https://github.com/Telerik-Verified-Plugins/NativePageTransitions" }, "repository": { diff --git a/www/.gitignore b/www/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/www/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore