├── --plugin ├── .bowerrc ├── .gitignore ├── README.md ├── bower.json ├── config.xml ├── gulpfile.js ├── hooks ├── .gitignore └── README.md ├── ionic.project ├── package.json ├── plugins ├── .gitignore ├── android.json ├── com.ionic.keyboard │ ├── .fetch.json │ ├── LICENSE │ ├── README.md │ ├── package.json │ ├── plugin.xml │ ├── src │ │ ├── android │ │ │ └── IonicKeyboard.java │ │ └── ios │ │ │ ├── IonicKeyboard.h │ │ │ ├── IonicKeyboard.m │ │ │ ├── UIWebViewExtension.h │ │ │ └── UIWebViewExtension.m │ └── www │ │ └── keyboard.js ├── org.apache.cordova.camera │ ├── .fetch.json │ ├── CONTRIBUTING.md │ ├── LICENSE │ ├── NOTICE │ ├── README.md │ ├── RELEASENOTES.md │ ├── doc │ │ ├── de │ │ │ └── index.md │ │ ├── es │ │ │ └── index.md │ │ ├── fr │ │ │ └── index.md │ │ ├── index.md │ │ ├── it │ │ │ └── index.md │ │ ├── ja │ │ │ └── index.md │ │ ├── ko │ │ │ └── index.md │ │ ├── pl │ │ │ └── index.md │ │ ├── ru │ │ │ └── index.md │ │ └── zh │ │ │ └── index.md │ ├── package.json │ ├── plugin.xml │ ├── src │ │ ├── android │ │ │ ├── CameraLauncher.java │ │ │ ├── ExifHelper.java │ │ │ └── FileHelper.java │ │ ├── blackberry10 │ │ │ └── index.js │ │ ├── firefoxos │ │ │ └── CameraProxy.js │ │ ├── ios │ │ │ ├── CDVCamera.h │ │ │ ├── CDVCamera.m │ │ │ ├── CDVExif.h │ │ │ ├── CDVJpegHeaderWriter.h │ │ │ └── CDVJpegHeaderWriter.m │ │ ├── ubuntu │ │ │ ├── CaptureWidget.qml │ │ │ ├── back.png │ │ │ ├── camera.cpp │ │ │ ├── camera.h │ │ │ ├── shoot.png │ │ │ ├── toolbar-left.png │ │ │ ├── toolbar-middle.png │ │ │ └── toolbar-right.png │ │ ├── windows8 │ │ │ └── CameraProxy.js │ │ └── wp │ │ │ └── Camera.cs │ └── www │ │ ├── Camera.js │ │ ├── CameraConstants.js │ │ ├── CameraPopoverHandle.js │ │ ├── CameraPopoverOptions.js │ │ └── ios │ │ └── CameraPopoverHandle.js ├── org.apache.cordova.console │ ├── .fetch.json │ ├── CONTRIBUTING.md │ ├── LICENSE │ ├── NOTICE │ ├── README.md │ ├── RELEASENOTES.md │ ├── doc │ │ └── index.md │ ├── package.json │ ├── plugin.xml │ ├── src │ │ ├── ios │ │ │ ├── CDVLogger.h │ │ │ └── CDVLogger.m │ │ ├── ubuntu │ │ │ ├── console.cpp │ │ │ └── console.h │ │ └── wp │ │ │ └── DebugConsole.cs │ └── www │ │ ├── console-via-logger.js │ │ └── logger.js ├── org.apache.cordova.device │ ├── .fetch.json │ ├── CONTRIBUTING.md │ ├── LICENSE │ ├── NOTICE │ ├── README.md │ ├── RELEASENOTES.md │ ├── doc │ │ ├── de │ │ │ └── index.md │ │ ├── es │ │ │ └── index.md │ │ ├── fr │ │ │ └── index.md │ │ ├── index.md │ │ ├── it │ │ │ └── index.md │ │ ├── ja │ │ │ └── index.md │ │ ├── ko │ │ │ └── index.md │ │ ├── pl │ │ │ └── index.md │ │ └── zh │ │ │ └── index.md │ ├── package.json │ ├── plugin.xml │ ├── src │ │ ├── android │ │ │ └── Device.java │ │ ├── blackberry10 │ │ │ └── index.js │ │ ├── firefoxos │ │ │ └── DeviceProxy.js │ │ ├── ios │ │ │ ├── CDVDevice.h │ │ │ └── CDVDevice.m │ │ ├── tizen │ │ │ └── DeviceProxy.js │ │ ├── ubuntu │ │ │ ├── device.cpp │ │ │ ├── device.h │ │ │ └── device.js │ │ ├── windows8 │ │ │ └── DeviceProxy.js │ │ └── wp │ │ │ └── Device.cs │ └── www │ │ └── device.js ├── org.apache.cordova.file-transfer │ ├── .fetch.json │ ├── CONTRIBUTING.md │ ├── LICENSE │ ├── NOTICE │ ├── README.md │ ├── RELEASENOTES.md │ ├── doc │ │ ├── de │ │ │ └── index.md │ │ ├── es │ │ │ └── index.md │ │ ├── fr │ │ │ └── index.md │ │ ├── index.md │ │ ├── it │ │ │ └── index.md │ │ ├── ja │ │ │ └── index.md │ │ ├── ko │ │ │ └── index.md │ │ ├── pl │ │ │ └── index.md │ │ ├── ru │ │ │ └── index.md │ │ └── zh │ │ │ └── index.md │ ├── package.json │ ├── plugin.xml │ ├── src │ │ ├── amazon │ │ │ └── FileTransfer.java │ │ ├── android │ │ │ ├── FileProgressResult.java │ │ │ ├── FileTransfer.java │ │ │ └── FileUploadResult.java │ │ ├── ios │ │ │ ├── CDVFileTransfer.h │ │ │ └── CDVFileTransfer.m │ │ ├── ubuntu │ │ │ ├── file-transfer.cpp │ │ │ └── file-transfer.h │ │ └── wp │ │ │ └── FileTransfer.cs │ └── www │ │ ├── FileTransfer.js │ │ ├── FileTransferError.js │ │ ├── blackberry10 │ │ ├── FileTransfer.js │ │ ├── FileTransferProxy.js │ │ └── xhrFileTransfer.js │ │ ├── firefoxos │ │ └── FileTransferProxy.js │ │ ├── windows8 │ │ └── FileTransferProxy.js │ │ └── wp7 │ │ └── base64.js ├── org.apache.cordova.file │ ├── .fetch.json │ ├── CONTRIBUTING.md │ ├── LICENSE │ ├── NOTICE │ ├── README.md │ ├── RELEASENOTES.md │ ├── doc │ │ ├── de │ │ │ ├── index.md │ │ │ └── plugins.md │ │ ├── es │ │ │ ├── index.md │ │ │ └── plugins.md │ │ ├── fr │ │ │ ├── index.md │ │ │ └── plugins.md │ │ ├── index.md │ │ ├── it │ │ │ ├── index.md │ │ │ └── plugins.md │ │ ├── ja │ │ │ ├── index.md │ │ │ └── plugins.md │ │ ├── ko │ │ │ ├── index.md │ │ │ └── plugins.md │ │ ├── pl │ │ │ ├── index.md │ │ │ └── plugins.md │ │ ├── plugins.md │ │ ├── ru │ │ │ ├── index.md │ │ │ └── plugins.md │ │ └── zh │ │ │ ├── index.md │ │ │ └── plugins.md │ ├── package.json │ ├── plugin.xml │ ├── src │ │ ├── android │ │ │ ├── ContentFilesystem.java │ │ │ ├── DirectoryManager.java │ │ │ ├── EncodingException.java │ │ │ ├── FileExistsException.java │ │ │ ├── FileHelper.java │ │ │ ├── FileUtils.java │ │ │ ├── Filesystem.java │ │ │ ├── InvalidModificationException.java │ │ │ ├── LocalFilesystem.java │ │ │ ├── LocalFilesystemURL.java │ │ │ ├── NoModificationAllowedException.java │ │ │ └── TypeMismatchException.java │ │ ├── blackberry10 │ │ │ └── index.js │ │ ├── firefoxos │ │ │ └── FileProxy.js │ │ ├── ios │ │ │ ├── CDVAssetLibraryFilesystem.h │ │ │ ├── CDVAssetLibraryFilesystem.m │ │ │ ├── CDVFile.h │ │ │ ├── CDVFile.m │ │ │ ├── CDVLocalFilesystem.h │ │ │ └── CDVLocalFilesystem.m │ │ ├── ubuntu │ │ │ ├── file.cpp │ │ │ └── file.h │ │ ├── windows8 │ │ │ └── FileProxy.js │ │ └── wp │ │ │ └── File.cs │ ├── tests │ │ ├── plugin.xml │ │ └── tests.js │ └── www │ │ ├── DirectoryEntry.js │ │ ├── DirectoryReader.js │ │ ├── Entry.js │ │ ├── File.js │ │ ├── FileEntry.js │ │ ├── FileError.js │ │ ├── FileReader.js │ │ ├── FileSystem.js │ │ ├── FileUploadOptions.js │ │ ├── FileUploadResult.js │ │ ├── FileWriter.js │ │ ├── Flags.js │ │ ├── LocalFileSystem.js │ │ ├── Metadata.js │ │ ├── ProgressEvent.js │ │ ├── android │ │ └── FileSystem.js │ │ ├── blackberry10 │ │ ├── FileProxy.js │ │ ├── FileSystem.js │ │ ├── copyTo.js │ │ ├── createEntryFromNative.js │ │ ├── getDirectory.js │ │ ├── getFile.js │ │ ├── getFileMetadata.js │ │ ├── getMetadata.js │ │ ├── getParent.js │ │ ├── info.js │ │ ├── moveTo.js │ │ ├── readAsArrayBuffer.js │ │ ├── readAsBinaryString.js │ │ ├── readAsDataURL.js │ │ ├── readAsText.js │ │ ├── readEntries.js │ │ ├── remove.js │ │ ├── removeRecursively.js │ │ ├── requestAllFileSystems.js │ │ ├── requestAnimationFrame.js │ │ ├── requestFileSystem.js │ │ ├── resolveLocalFileSystemURI.js │ │ ├── setMetadata.js │ │ ├── truncate.js │ │ └── write.js │ │ ├── fileSystemPaths.js │ │ ├── fileSystems-roots.js │ │ ├── fileSystems.js │ │ ├── firefoxos │ │ └── FileSystem.js │ │ ├── ios │ │ └── FileSystem.js │ │ ├── requestFileSystem.js │ │ ├── resolveLocalFileSystemURI.js │ │ ├── ubuntu │ │ ├── FileSystem.js │ │ ├── FileWriter.js │ │ └── fileSystems-roots.js │ │ └── wp │ │ └── FileUploadOptions.js ├── org.apache.cordova.inappbrowser │ ├── .fetch.json │ ├── CONTRIBUTING.md │ ├── LICENSE │ ├── NOTICE │ ├── README.md │ ├── RELEASENOTES.md │ ├── doc │ │ ├── de │ │ │ └── index.md │ │ ├── es │ │ │ └── index.md │ │ ├── fr │ │ │ └── index.md │ │ ├── index.md │ │ ├── it │ │ │ └── index.md │ │ ├── ja │ │ │ └── index.md │ │ ├── ko │ │ │ └── index.md │ │ ├── pl │ │ │ └── index.md │ │ ├── ru │ │ │ └── index.md │ │ └── zh │ │ │ └── index.md │ ├── package.json │ ├── plugin.xml │ ├── src │ │ ├── amazon │ │ │ ├── InAppBrowser.java │ │ │ └── InAppChromeClient.java │ │ ├── android │ │ │ ├── InAppBrowser.java │ │ │ ├── InAppBrowserDialog.java │ │ │ ├── InAppChromeClient.java │ │ │ └── res │ │ │ │ ├── drawable-hdpi │ │ │ │ ├── ic_action_next_item.png │ │ │ │ ├── ic_action_previous_item.png │ │ │ │ └── ic_action_remove.png │ │ │ │ ├── drawable-mdpi │ │ │ │ ├── ic_action_next_item.png │ │ │ │ ├── ic_action_previous_item.png │ │ │ │ └── ic_action_remove.png │ │ │ │ ├── drawable-xhdpi │ │ │ │ ├── ic_action_next_item.png │ │ │ │ ├── ic_action_previous_item.png │ │ │ │ └── ic_action_remove.png │ │ │ │ └── drawable-xxhdpi │ │ │ │ ├── ic_action_next_item.png │ │ │ │ ├── ic_action_previous_item.png │ │ │ │ └── ic_action_remove.png │ │ ├── blackberry10 │ │ │ └── README.md │ │ ├── firefoxos │ │ │ └── InAppBrowserProxy.js │ │ ├── ios │ │ │ ├── CDVInAppBrowser.h │ │ │ └── CDVInAppBrowser.m │ │ ├── ubuntu │ │ │ ├── InAppBrowser.qml │ │ │ ├── close.png │ │ │ ├── inappbrowser.cpp │ │ │ └── inappbrowser.h │ │ └── wp │ │ │ └── InAppBrowser.cs │ └── www │ │ ├── inappbrowser.js │ │ └── windows8 │ │ └── InAppBrowserProxy.js ├── org.apache.cordova.network-information │ ├── .fetch.json │ ├── CONTRIBUTING.md │ ├── LICENSE │ ├── NOTICE │ ├── README.md │ ├── RELEASENOTES.md │ ├── doc │ │ ├── de │ │ │ └── index.md │ │ ├── es │ │ │ └── index.md │ │ ├── fr │ │ │ └── index.md │ │ ├── index.md │ │ ├── it │ │ │ └── index.md │ │ ├── ja │ │ │ └── index.md │ │ ├── ko │ │ │ └── index.md │ │ ├── pl │ │ │ └── index.md │ │ ├── ru │ │ │ └── index.md │ │ └── zh │ │ │ └── index.md │ ├── package.json │ ├── plugin.xml │ ├── src │ │ ├── android │ │ │ └── NetworkManager.java │ │ ├── blackberry10 │ │ │ └── index.js │ │ ├── firefoxos │ │ │ └── NetworkProxy.js │ │ ├── ios │ │ │ ├── CDVConnection.h │ │ │ ├── CDVConnection.m │ │ │ ├── CDVReachability.h │ │ │ └── CDVReachability.m │ │ ├── tizen │ │ │ └── NetworkProxy.js │ │ ├── ubuntu │ │ │ ├── network_information.cpp │ │ │ └── network_information.h │ │ ├── windows8 │ │ │ └── NetworkInfoProxy.js │ │ └── wp │ │ │ └── NetworkStatus.cs │ └── www │ │ ├── Connection.js │ │ └── network.js └── org.apache.cordova.splashscreen │ ├── .fetch.json │ ├── CONTRIBUTING.md │ ├── LICENSE │ ├── NOTICE │ ├── README.md │ ├── RELEASENOTES.md │ ├── doc │ ├── de │ │ └── index.md │ ├── es │ │ └── index.md │ ├── fr │ │ └── index.md │ ├── index.md │ ├── it │ │ └── index.md │ ├── ja │ │ └── index.md │ ├── ko │ │ └── index.md │ ├── pl │ │ └── index.md │ ├── ru │ │ └── index.md │ └── zh │ │ └── index.md │ ├── package.json │ ├── plugin.xml │ ├── src │ ├── android │ │ └── SplashScreen.java │ ├── blackberry10 │ │ └── index.js │ ├── ios │ │ ├── CDVSplashScreen.h │ │ └── CDVSplashScreen.m │ ├── tizen │ │ └── SplashScreenProxy.js │ ├── ubuntu │ │ ├── splashscreen.cpp │ │ └── splashscreen.h │ └── wp │ │ └── SplashScreen.cs │ └── www │ ├── splashscreen.js │ └── windows8 │ └── SplashScreenProxy.js ├── scss ├── common │ ├── components.scss │ ├── index.scss │ └── mixins.scss ├── custom.app.scss ├── ionic.app.scss ├── pages │ ├── login.scss │ ├── main.scss │ ├── profile.scss │ ├── signup.scss │ ├── splash.scss │ └── users.scss └── variables.scss └── www ├── .gitignore ├── css ├── custom.app.css ├── custom.app.min.css ├── ionic.app.css ├── ionic.app.min.css └── style.css ├── img ├── Screenshot_2014-09-15-16-10-25.png ├── Screenshot_2014-09-15-16-10-30.png ├── Screenshot_2014-09-15-16-10-36.png ├── Screenshot_2014-09-15-16-12-26.png ├── Screenshot_2014-09-15-16-12-36.png ├── Screenshot_2014-09-15-16-12-49.png ├── Screenshot_2014-09-15-16-12-55.png ├── Screenshot_2014-09-15-16-13-01.png ├── Screenshot_2014-09-15-16-13-05.png ├── Screenshot_2014-09-15-16-13-11.png ├── a_logo.png ├── arrow-icon-2.png ├── arrow-icon.png ├── avatar.png ├── bg_new.png ├── button-transparent-bg.png ├── chatrooms.png ├── check-mark.png ├── email_darkui.png ├── explore-icon.png ├── feed-icon.png ├── follow-icon.png ├── gradient-black-to-transparent-top.png ├── gradients-profile-1.png ├── gradients-profile-2.png ├── gradients-profile-3.png ├── gradients-profile-4.png ├── gradients-profile-5.png ├── group.png ├── group_user-icon.png ├── iconmonstr-pencil-10-icon-256.png ├── instagram-icon.png ├── ionic.png ├── lock_darkui.png ├── logout-icon.png ├── messages-icon-2.png ├── messages-icon.png ├── settings-icon.png ├── twitter-icon.png ├── user-icon-2.png ├── user-icon-3.png ├── user-icon.png ├── user.png ├── user_darkui.png └── x-mark.png ├── index.html ├── js ├── app.js ├── components │ └── interceptor │ │ └── http-auth-interceptor.js ├── controllers │ ├── app │ │ └── main.js │ ├── auth │ │ └── main.js │ ├── profile │ │ └── main.js │ └── users │ │ ├── main.js │ │ └── profile.js └── services │ ├── common │ ├── auth.js │ └── constants.js │ └── models │ ├── collection.js │ └── user.js ├── lib ├── angular-animate │ ├── .bower.json │ ├── README.md │ ├── angular-animate.js │ ├── angular-animate.min.js │ ├── angular-animate.min.js.map │ └── bower.json ├── angular-sanitize │ ├── .bower.json │ ├── README.md │ ├── angular-sanitize.js │ ├── angular-sanitize.min.js │ ├── angular-sanitize.min.js.map │ └── bower.json ├── angular-ui-router │ ├── .bower.json │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── bower.json │ ├── release │ │ ├── angular-ui-router.js │ │ └── angular-ui-router.min.js │ └── src │ │ ├── common.js │ │ ├── compat.js │ │ ├── resolve.js │ │ ├── state.js │ │ ├── stateDirectives.js │ │ ├── stateFilters.js │ │ ├── templateFactory.js │ │ ├── urlMatcherFactory.js │ │ ├── urlRouter.js │ │ ├── view.js │ │ ├── viewDirective.js │ │ └── viewScroll.js ├── angular │ ├── .bower.json │ ├── README.md │ ├── angular-csp.css │ ├── angular.js │ ├── angular.min.js │ ├── angular.min.js.gzip │ ├── angular.min.js.map │ └── bower.json ├── collide │ ├── .bower.json │ ├── .gitignore │ ├── README.md │ ├── bower.json │ ├── collide.js │ ├── package.json │ ├── test.html │ └── test │ │ ├── animator.spec.js │ │ ├── core │ │ └── timeline.spec.js │ │ └── util │ │ └── simple-emitter.spec.js ├── ionic │ ├── .bower.json │ ├── README.md │ ├── bower.json │ ├── css │ │ ├── ionic.css │ │ └── ionic.min.css │ ├── fonts │ │ ├── ionicons.eot │ │ ├── ionicons.svg │ │ ├── ionicons.ttf │ │ └── ionicons.woff │ ├── 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 │ │ ├── _reset.scss │ │ ├── _scaffolding.scss │ │ ├── _select.scss │ │ ├── _slide-box.scss │ │ ├── _split-pane.scss │ │ ├── _tabs.scss │ │ ├── _toggle.scss │ │ ├── _type.scss │ │ ├── _util.scss │ │ ├── _variables.scss │ │ ├── ionic.scss │ │ └── ionicons │ │ ├── _ionicons-animation.scss │ │ ├── _ionicons-font.scss │ │ ├── _ionicons-icons.scss │ │ ├── _ionicons-variables.scss │ │ └── ionicons.scss └── ngCordova │ └── ng-cordova.js └── templates ├── app.html ├── auth ├── index.html └── signup.html ├── index.html ├── modal ├── error.html └── networkError.html ├── profile ├── edit.html └── index.html └── users ├── index.html └── profile.html /--plugin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/--plugin -------------------------------------------------------------------------------- /.bowerrc: -------------------------------------------------------------------------------- 1 | { 2 | "directory": "www/lib" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | platforms/ -------------------------------------------------------------------------------- /bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Authenticate.me", 3 | "private": "true", 4 | "devDependencies": { 5 | "ionic": "driftyco/ionic-bower#1.0.0-beta.11" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Authenticate.me 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /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 | 18 | // ionic sass compilation 19 | gulp.src(['./scss/ionic.app.scss','./scss/custom.app.scss']) 20 | .pipe(sass()) 21 | .pipe(gulp.dest('./www/css/')) 22 | .pipe(minifyCss({ 23 | keepSpecialComments: 0 24 | })) 25 | .pipe(rename({ extname: '.min.css' })) 26 | .pipe(gulp.dest('./www/css/')) 27 | .on('end', done); 28 | 29 | }); 30 | 31 | gulp.task('watch', function() { 32 | gulp.watch(paths.sass, ['sass']); 33 | }); 34 | 35 | gulp.task('install', ['git-check'], function() { 36 | return bower.commands.install() 37 | .on('log', function(data) { 38 | gutil.log('bower', gutil.colors.cyan(data.id), data.message); 39 | }); 40 | }); 41 | 42 | gulp.task('git-check', function(done) { 43 | if (!sh.which('git')) { 44 | console.log( 45 | ' ' + gutil.colors.red('Git is not installed.'), 46 | '\n Git, the version control system, is required to download Ionic.', 47 | '\n Download git here:', gutil.colors.cyan('http://git-scm.com/downloads') + '.', 48 | '\n Once git is installed, run \'' + gutil.colors.cyan('gulp install') + '\' again.' 49 | ); 50 | process.exit(1); 51 | } 52 | done(); 53 | }); 54 | -------------------------------------------------------------------------------- /hooks/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/hooks/.gitignore -------------------------------------------------------------------------------- /ionic.project: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Authenticate.me", 3 | "email": "vincent.maliko@frnchnrd.com", 4 | "app_id": "", 5 | "package_name": "" 6 | } -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Authenticate.me", 3 | "version": "1.0.0", 4 | "description": "hybrid app server side authentication app", 5 | "dependencies": { 6 | "gulp": "^3.5.6", 7 | "gulp-sass": "^0.7.1", 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 | } 18 | -------------------------------------------------------------------------------- /plugins/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/plugins/.gitignore -------------------------------------------------------------------------------- /plugins/com.ionic.keyboard/.fetch.json: -------------------------------------------------------------------------------- 1 | {"source":{"type":"git","url":"https://github.com/driftyco/ionic-plugins-keyboard","subdir":"."}} -------------------------------------------------------------------------------- /plugins/com.ionic.keyboard/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "0.0.1", 3 | "name": "com.ionic.keyboard", 4 | "cordova_name": "Keyboard", 5 | "description": "Ionic Keyboard Plugin", 6 | "license": "MIT", 7 | "keywords": [ 8 | "ionic", 9 | "keyboard" 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /plugins/com.ionic.keyboard/plugin.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | Keyboard 7 | Ionic Keyboard Plugin 8 | Apache 2.0 9 | Ionic,keyboard 10 | https://github.com/driftyco/ionic-plugins-keyboard.git 11 | https://github.com/driftyco/ionic-plugins-keyboard/issues 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /plugins/com.ionic.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 | -------------------------------------------------------------------------------- /plugins/com.ionic.keyboard/src/ios/UIWebViewExtension.h: -------------------------------------------------------------------------------- 1 | @interface UIWebView (HackishAccessoryHiding) 2 | @property (nonatomic, assign) BOOL hackishlyHidesInputAccessoryView; 3 | //@property (nonatomic, assign) BOOL styleDark; 4 | @end 5 | -------------------------------------------------------------------------------- /plugins/com.ionic.keyboard/www/keyboard.js: -------------------------------------------------------------------------------- 1 | 2 | var argscheck = require('cordova/argscheck'), 3 | utils = require('cordova/utils'), 4 | exec = require('cordova/exec'); 5 | 6 | var Keyboard = function() { 7 | }; 8 | 9 | Keyboard.hideKeyboardAccessoryBar = function(hide) { 10 | exec(null, null, "Keyboard", "hideKeyboardAccessoryBar", [hide]); 11 | }; 12 | 13 | Keyboard.close = function() { 14 | exec(null, null, "Keyboard", "close", []); 15 | }; 16 | 17 | Keyboard.disableScroll = function(disable) { 18 | exec(null, null, "Keyboard", "disableScroll", [disable]); 19 | }; 20 | 21 | /* 22 | Keyboard.styleDark = function(dark) { 23 | exec(null, null, "Keyboard", "styleDark", [dark]); 24 | }; 25 | */ 26 | 27 | Keyboard.isVisible = false; 28 | 29 | module.exports = Keyboard; 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.camera/.fetch.json: -------------------------------------------------------------------------------- 1 | {"source":{"type":"local","path":"C:\\Users\\vmaliko\\.plugman\\cache\\org.apache.cordova.camera\\0.3.1\\package"}} -------------------------------------------------------------------------------- /plugins/org.apache.cordova.camera/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | 21 | 22 | # Contributing to Apache Cordova 23 | 24 | Anyone can contribute to Cordova. And we need your contributions. 25 | 26 | There are multiple ways to contribute: report bugs, improve the docs, and 27 | contribute code. 28 | 29 | For instructions on this, start with the 30 | [contribution overview](http://cordova.apache.org/#contribute). 31 | 32 | The details are explained there, but the important items are: 33 | - Sign and submit an Apache ICLA (Contributor License Agreement). 34 | - Have a Jira issue open that corresponds to your contribution. 35 | - Run the tests so your patch doesn't break existing functionality. 36 | 37 | We look forward to your contributions! 38 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.camera/NOTICE: -------------------------------------------------------------------------------- 1 | Apache Cordova 2 | Copyright 2012 The Apache Software Foundation 3 | 4 | This product includes software developed at 5 | The Apache Software Foundation (http://www.apache.org/). 6 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.camera/README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # org.apache.cordova.camera 21 | 22 | Plugin documentation: [doc/index.md](doc/index.md) 23 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.camera/src/firefoxos/CameraProxy.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 takePicture(success, error, opts) { 23 | var pick = new MozActivity({ 24 | name: "pick", 25 | data: { 26 | type: ["image/*"] 27 | } 28 | }); 29 | 30 | pick.onerror = error || function() {}; 31 | 32 | pick.onsuccess = function() { 33 | // image is returned as Blob in this.result.blob 34 | // we need to call success with url or base64 encoded image 35 | if (opts && opts.destinationType == 0) { 36 | // TODO: base64 37 | return; 38 | } 39 | if (!opts || !opts.destinationType || opts.destinationType > 0) { 40 | // url 41 | return success(window.URL.createObjectURL(this.result.blob)); 42 | } 43 | }; 44 | } 45 | 46 | module.exports = { 47 | takePicture: takePicture, 48 | cleanup: function(){} 49 | }; 50 | 51 | require("cordova/exec/proxy").add("Camera", module.exports); 52 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.camera/src/ios/CDVExif.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 | #ifndef CordovaLib_ExifData_h 21 | #define CordovaLib_ExifData_h 22 | 23 | // exif data types 24 | typedef enum exifDataTypes { 25 | EDT_UBYTE = 1, // 8 bit unsigned integer 26 | EDT_ASCII_STRING, // 8 bits containing 7 bit ASCII code, null terminated 27 | EDT_USHORT, // 16 bit unsigned integer 28 | EDT_ULONG, // 32 bit unsigned integer 29 | EDT_URATIONAL, // 2 longs, first is numerator and second is denominator 30 | EDT_SBYTE, 31 | EDT_UNDEFINED, // 8 bits 32 | EDT_SSHORT, 33 | EDT_SLONG, // 32bit signed integer (2's complement) 34 | EDT_SRATIONAL, // 2 SLONGS, first long is numerator, second is denominator 35 | EDT_SINGLEFLOAT, 36 | EDT_DOUBLEFLOAT 37 | } ExifDataTypes; 38 | 39 | // maps integer code for exif data types to width in bytes 40 | static const int DataTypeToWidth[] = {1,1,2,4,8,1,1,2,4,8,4,8}; 41 | 42 | static const int RECURSE_HORIZON = 8; 43 | #endif 44 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.camera/src/ubuntu/back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/plugins/org.apache.cordova.camera/src/ubuntu/back.png -------------------------------------------------------------------------------- /plugins/org.apache.cordova.camera/src/ubuntu/shoot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/plugins/org.apache.cordova.camera/src/ubuntu/shoot.png -------------------------------------------------------------------------------- /plugins/org.apache.cordova.camera/src/ubuntu/toolbar-left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/plugins/org.apache.cordova.camera/src/ubuntu/toolbar-left.png -------------------------------------------------------------------------------- /plugins/org.apache.cordova.camera/src/ubuntu/toolbar-middle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/plugins/org.apache.cordova.camera/src/ubuntu/toolbar-middle.png -------------------------------------------------------------------------------- /plugins/org.apache.cordova.camera/src/ubuntu/toolbar-right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/plugins/org.apache.cordova.camera/src/ubuntu/toolbar-right.png -------------------------------------------------------------------------------- /plugins/org.apache.cordova.camera/www/CameraPopoverHandle.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 | /** 25 | * A handle to an image picker popover. 26 | */ 27 | var CameraPopoverHandle = function() { 28 | this.setPosition = function(popoverOptions) { 29 | console.log('CameraPopoverHandle.setPosition is only supported on iOS.'); 30 | }; 31 | }; 32 | 33 | module.exports = CameraPopoverHandle; 34 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.camera/www/CameraPopoverOptions.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 Camera = require('./Camera'); 23 | 24 | /** 25 | * Encapsulates options for iOS Popover image picker 26 | */ 27 | var CameraPopoverOptions = function(x,y,width,height,arrowDir){ 28 | // information of rectangle that popover should be anchored to 29 | this.x = x || 0; 30 | this.y = y || 32; 31 | this.width = width || 320; 32 | this.height = height || 480; 33 | // The direction of the popover arrow 34 | this.arrowDir = arrowDir || Camera.PopoverArrowDirection.ARROW_ANY; 35 | }; 36 | 37 | module.exports = CameraPopoverOptions; 38 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.camera/www/ios/CameraPopoverHandle.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 | /** 25 | * A handle to an image picker popover. 26 | */ 27 | var CameraPopoverHandle = function() { 28 | this.setPosition = function(popoverOptions) { 29 | var args = [ popoverOptions ]; 30 | exec(null, null, "Camera", "repositionPopover", args); 31 | }; 32 | }; 33 | 34 | module.exports = CameraPopoverHandle; 35 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.console/.fetch.json: -------------------------------------------------------------------------------- 1 | {"source":{"type":"local","path":"C:\\Users\\vmaliko\\.plugman\\cache\\org.apache.cordova.console\\0.2.9\\package"}} -------------------------------------------------------------------------------- /plugins/org.apache.cordova.console/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | 21 | 22 | # Contributing to Apache Cordova 23 | 24 | Anyone can contribute to Cordova. And we need your contributions. 25 | 26 | There are multiple ways to contribute: report bugs, improve the docs, and 27 | contribute code. 28 | 29 | For instructions on this, start with the 30 | [contribution overview](http://cordova.apache.org/#contribute). 31 | 32 | The details are explained there, but the important items are: 33 | - Sign and submit an Apache ICLA (Contributor License Agreement). 34 | - Have a Jira issue open that corresponds to your contribution. 35 | - Run the tests so your patch doesn't break existing functionality. 36 | 37 | We look forward to your contributions! 38 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.console/NOTICE: -------------------------------------------------------------------------------- 1 | Apache Cordova 2 | Copyright 2012 The Apache Software Foundation 3 | 4 | This product includes software developed at 5 | The Apache Software Foundation (http://www.apache.org/). 6 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.console/README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # org.apache.cordova.console 21 | 22 | Plugin documentation: [doc/index.md](doc/index.md) 23 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.console/RELEASENOTES.md: -------------------------------------------------------------------------------- 1 | 21 | # Release Notes 22 | 23 | ### 0.2.3 (Sept 25, 2013) 24 | * CB-4889 bumping&resetting version 25 | * CB-4889 renaming org.apache.cordova.core.console to org.apache.cordova.console 26 | * Rename CHANGELOG.md -> RELEASENOTES.md 27 | * [CB-4752] Incremented plugin version on dev branch. 28 | 29 | ### 0.2.4 (Oct 28, 2013) 30 | * CB-5154 log formatting incorrectly to native 31 | * CB-5128: added repo + issue tag to plugin.xml for console plugin 32 | * [CB-4915] Incremented plugin version on dev branch. 33 | 34 | ### 0.2.5 (Dec 4, 2013) 35 | * add ubuntu platform 36 | 37 | ### 0.2.6 (Jan 02, 2014) 38 | * CB-5658 Add doc/index.md for Console plugin 39 | 40 | ### 0.2.7 (Feb 05, 2014) 41 | * Native console needs to be called DebugConsole to avoid ambiguous reference. This commit requires the 3.4.0 version of the native class factory 42 | * CB-4718 fixed Console plugin not working on wp 43 | 44 | ### 0.2.8 (Apr 17, 2014) 45 | * CB-6460: Update license headers 46 | * Add NOTICE file 47 | 48 | ### 0.2.9 (Jun 05, 2014) 49 | * CB-6848 Add Android quirk, list applicable platforms 50 | * CB-6796 Add license 51 | * CB-6491 add CONTRIBUTING.md 52 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.console/doc/index.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # org.apache.cordova.console 21 | 22 | This plugin is meant to ensure that console.log() is as useful as it can be. 23 | It adds additional function for iOS, Ubuntu, Windows Phone 8, and Windows 8. If 24 | you are happy with how console.log() works for you, then you probably 25 | don't need this plugin. 26 | 27 | ## Installation 28 | 29 | cordova plugin add org.apache.cordova.console 30 | 31 | ### Android Quirks 32 | 33 | On some platforms other than Android, console.log() will act on multiple 34 | arguments, such as console.log("1", "2", "3"). However, Android will act only 35 | on the first argument. Subsequent arguments to console.log() will be ignored. 36 | This plugin is not the cause of that, it is a limitation of Android itself. 37 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.console/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "0.2.9", 3 | "name": "org.apache.cordova.console", 4 | "cordova_name": "Console", 5 | "description": "Cordova Console Plugin", 6 | "license": "Apache 2.0", 7 | "repo": "https://git-wip-us.apache.org/repos/asf/cordova-plugin-console.git", 8 | "issue": "https://issues.apache.org/jira/browse/CB/component/12320644", 9 | "keywords": [ 10 | "cordova", 11 | "console" 12 | ], 13 | "platforms": [ 14 | "ios", 15 | "ubuntu", 16 | "wp7", 17 | "wp8", 18 | "windows8" 19 | ], 20 | "engines": [], 21 | "englishdoc": "\n\n# org.apache.cordova.console\n\nThis plugin is meant to ensure that console.log() is as useful as it can be.\nIt adds additional function for iOS, Ubuntu, Windows Phone 8, and Windows 8. If\nyou are happy with how console.log() works for you, then you probably\ndon't need this plugin.\n\n## Installation\n\n cordova plugin add org.apache.cordova.console\n\n### Android Quirks\n\nOn some platforms other than Android, console.log() will act on multiple\narguments, such as console.log(\"1\", \"2\", \"3\"). However, Android will act only\non the first argument. Subsequent arguments to console.log() will be ignored.\nThis plugin is not the cause of that, it is a limitation of Android itself.\n" 22 | } -------------------------------------------------------------------------------- /plugins/org.apache.cordova.console/src/ios/CDVLogger.h: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | #import 21 | 22 | @interface CDVLogger : CDVPlugin 23 | 24 | - (void)logLevel:(CDVInvokedUrlCommand*)command; 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.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.arguments objectAtIndex:0]; 29 | id message = [command.arguments objectAtIndex:1]; 30 | 31 | if ([level isEqualToString:@"LOG"]) { 32 | NSLog(@"%@", message); 33 | } else { 34 | NSLog(@"%@: %@", level, message); 35 | } 36 | } 37 | 38 | @end 39 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.console/src/ubuntu/console.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed under the Apache License, Version 2.0 (the "License"); 3 | * you may not use this file except in compliance with the License. 4 | * You may obtain a copy of the License at 5 | * 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | * Unless required by applicable law or agreed to in writing, software 9 | * distributed under the License is distributed on an "AS IS" BASIS, 10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | * See the License for the specific language governing permissions and 12 | * limitations under the License. 13 | */ 14 | 15 | #include "console.h" 16 | 17 | #include 18 | 19 | Console::Console(Cordova *cordova) : CPlugin(cordova) { 20 | } 21 | 22 | void Console::logLevel(int scId, int ecId, QString level, QString message) { 23 | Q_UNUSED(scId) 24 | Q_UNUSED(ecId) 25 | 26 | if (level != "LOG") 27 | std::cout << "[" << level.toStdString() << "] "; 28 | std::cout << message.toStdString() << std::endl; 29 | } 30 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.console/src/ubuntu/console.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed under the Apache License, Version 2.0 (the "License"); 3 | * you may not use this file except in compliance with the License. 4 | * You may obtain a copy of the License at 5 | * 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | * Unless required by applicable law or agreed to in writing, software 9 | * distributed under the License is distributed on an "AS IS" BASIS, 10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | * See the License for the specific language governing permissions and 12 | * limitations under the License. 13 | */ 14 | 15 | #ifndef CONSOLE_H_FDSVCXGFRS 16 | #define CONSOLE_H_FDSVCXGFRS 17 | 18 | #include 19 | 20 | #include 21 | 22 | class Console : public CPlugin { 23 | Q_OBJECT 24 | public: 25 | explicit Console(Cordova *cordova); 26 | 27 | virtual const QString fullName() override { 28 | return Console::fullID(); 29 | } 30 | 31 | virtual const QString shortName() override { 32 | return "Console"; 33 | } 34 | 35 | static const QString fullID() { 36 | return "Console"; 37 | } 38 | 39 | public slots: 40 | void logLevel(int scId, int ecId, QString level, QString message); 41 | }; 42 | 43 | #endif 44 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.console/src/wp/DebugConsole.cs: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed under the Apache License, Version 2.0 (the "License"); 3 | you may not use this file except in compliance with the License. 4 | You may obtain a copy of the License at 5 | 6 | http://www.apache.org/licenses/LICENSE-2.0 7 | 8 | Unless required by applicable law or agreed to in writing, software 9 | distributed under the License is distributed on an "AS IS" BASIS, 10 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | See the License for the specific language governing permissions and 12 | limitations under the License. 13 | */ 14 | 15 | using System; 16 | using System.Net; 17 | using System.Windows; 18 | using System.Windows.Controls; 19 | using System.Windows.Documents; 20 | using System.Windows.Ink; 21 | using System.Windows.Input; 22 | using System.Windows.Media; 23 | using System.Windows.Media.Animation; 24 | using System.Windows.Shapes; 25 | using System.Diagnostics; 26 | 27 | namespace WPCordovaClassLib.Cordova.Commands 28 | { 29 | public class DebugConsole : BaseCommand 30 | { 31 | public void logLevel(string options) 32 | { 33 | string[] args = JSON.JsonHelper.Deserialize(options); 34 | string level = args[0]; 35 | string msg = args[1]; 36 | 37 | if (level.Equals("LOG")) 38 | { 39 | Debug.WriteLine(msg); 40 | } 41 | else 42 | { 43 | Debug.WriteLine(level + ": " + msg); 44 | } 45 | } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.device/.fetch.json: -------------------------------------------------------------------------------- 1 | {"source":{"type":"local","path":"C:\\Users\\vmaliko\\.plugman\\cache\\org.apache.cordova.device\\0.2.10\\package"}} -------------------------------------------------------------------------------- /plugins/org.apache.cordova.device/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | 21 | 22 | # Contributing to Apache Cordova 23 | 24 | Anyone can contribute to Cordova. And we need your contributions. 25 | 26 | There are multiple ways to contribute: report bugs, improve the docs, and 27 | contribute code. 28 | 29 | For instructions on this, start with the 30 | [contribution overview](http://cordova.apache.org/#contribute). 31 | 32 | The details are explained there, but the important items are: 33 | - Sign and submit an Apache ICLA (Contributor License Agreement). 34 | - Have a Jira issue open that corresponds to your contribution. 35 | - Run the tests so your patch doesn't break existing functionality. 36 | 37 | We look forward to your contributions! 38 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.device/NOTICE: -------------------------------------------------------------------------------- 1 | Apache Cordova 2 | Copyright 2012 The Apache Software Foundation 3 | 4 | This product includes software developed at 5 | The Apache Software Foundation (http://www.apache.org/). 6 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.device/README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # org.apache.cordova.device 21 | 22 | Plugin documentation: [doc/index.md](doc/index.md) 23 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.device/src/ios/CDVDevice.h: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | #import 21 | #import 22 | 23 | @interface CDVDevice : CDVPlugin 24 | {} 25 | 26 | + (NSString*)cordovaVersion; 27 | 28 | - (void)getDeviceInfo:(CDVInvokedUrlCommand*)command; 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.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 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.device/src/ubuntu/device.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Wolfgang Koller - http://www.gofg.at/ 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef DEVICE_H_FDSAFAS 18 | #define DEVICE_H_FDSAFAS 19 | 20 | #include 21 | 22 | #include 23 | 24 | class Device: public CPlugin { 25 | Q_OBJECT 26 | public: 27 | explicit Device(Cordova *cordova); 28 | 29 | virtual const QString fullName() override { 30 | return Device::fullID(); 31 | } 32 | 33 | virtual const QString shortName() override { 34 | return "Device"; 35 | } 36 | 37 | static const QString fullID() { 38 | return "com.cordova.Device"; 39 | } 40 | 41 | signals: 42 | 43 | public slots: 44 | void getInfo(int scId, int ecId); 45 | }; 46 | 47 | #endif 48 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.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 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.device/src/windows8/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 | 23 | var cordova = require('cordova'); 24 | var utils = require('cordova/utils'); 25 | 26 | module.exports = { 27 | 28 | getDeviceInfo:function(win,fail,args) { 29 | 30 | // deviceId aka uuid, stored in Windows.Storage.ApplicationData.current.localSettings.values.deviceId 31 | var deviceId; 32 | 33 | var localSettings = Windows.Storage.ApplicationData.current.localSettings; 34 | 35 | if (localSettings.values.deviceId) { 36 | deviceId = localSettings.values.deviceId; 37 | } 38 | else { 39 | deviceId = localSettings.values.deviceId = utils.createUUID(); 40 | } 41 | 42 | setTimeout(function () { 43 | win({ platform: "windows8", version: "8", uuid: deviceId, model: window.clientInformation.platform }); 44 | }, 0); 45 | } 46 | 47 | }; 48 | 49 | require("cordova/exec/proxy").add("Device", module.exports); 50 | 51 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file-transfer/.fetch.json: -------------------------------------------------------------------------------- 1 | {"source":{"type":"local","path":"C:\\Users\\vmaliko\\.plugman\\cache\\org.apache.cordova.file-transfer\\0.4.5\\package"}} -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file-transfer/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | 21 | 22 | # Contributing to Apache Cordova 23 | 24 | Anyone can contribute to Cordova. And we need your contributions. 25 | 26 | There are multiple ways to contribute: report bugs, improve the docs, and 27 | contribute code. 28 | 29 | For instructions on this, start with the 30 | [contribution overview](http://cordova.apache.org/#contribute). 31 | 32 | The details are explained there, but the important items are: 33 | - Sign and submit an Apache ICLA (Contributor License Agreement). 34 | - Have a Jira issue open that corresponds to your contribution. 35 | - Run the tests so your patch doesn't break existing functionality. 36 | 37 | We look forward to your contributions! 38 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file-transfer/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 | 7 | This product includes a copy of OkHttp from: 8 | https://github.com/square/okhttp 9 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file-transfer/README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # org.apache.cordova.file-transfer 21 | 22 | Plugin documentation: [doc/index.md](doc/index.md) 23 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file-transfer/www/FileTransferError.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 | /** 23 | * FileTransferError 24 | * @constructor 25 | */ 26 | var FileTransferError = function(code, source, target, status, body, exception) { 27 | this.code = code || null; 28 | this.source = source || null; 29 | this.target = target || null; 30 | this.http_status = status || null; 31 | this.body = body || null; 32 | this.exception = exception || null; 33 | }; 34 | 35 | FileTransferError.FILE_NOT_FOUND_ERR = 1; 36 | FileTransferError.INVALID_URL_ERR = 2; 37 | FileTransferError.CONNECTION_ERR = 3; 38 | FileTransferError.ABORT_ERR = 4; 39 | FileTransferError.NOT_MODIFIED_ERR = 5; 40 | 41 | module.exports = FileTransferError; 42 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file-transfer/www/blackberry10/FileTransferProxy.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 | /* 23 | * FileTransferProxy 24 | * 25 | * Register all FileTransfer exec calls to be handled by proxy 26 | */ 27 | 28 | var xhrFileTransfer = require('org.apache.cordova.file-transfer.xhrFileTransfer'); 29 | 30 | module.exports = { 31 | abort: xhrFileTransfer.abort, 32 | download: xhrFileTransfer.download, 33 | upload: xhrFileTransfer.upload 34 | }; 35 | 36 | require('cordova/exec/proxy').add('FileTransfer', module.exports); 37 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file/.fetch.json: -------------------------------------------------------------------------------- 1 | {"source":{"type":"local","path":"C:\\Users\\vmaliko\\.plugman\\cache\\org.apache.cordova.file\\1.3.0\\package"}} -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | 21 | 22 | # Contributing to Apache Cordova 23 | 24 | Anyone can contribute to Cordova. And we need your contributions. 25 | 26 | There are multiple ways to contribute: report bugs, improve the docs, and 27 | contribute code. 28 | 29 | For instructions on this, start with the 30 | [contribution overview](http://cordova.apache.org/#contribute). 31 | 32 | The details are explained there, but the important items are: 33 | - Sign and submit an Apache ICLA (Contributor License Agreement). 34 | - Have a Jira issue open that corresponds to your contribution. 35 | - Run the tests so your patch doesn't break existing functionality. 36 | 37 | We look forward to your contributions! 38 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file/NOTICE: -------------------------------------------------------------------------------- 1 | Apache Cordova 2 | Copyright 2012 The Apache Software Foundation 3 | 4 | This product includes software developed at 5 | The Apache Software Foundation (http://www.apache.org/). 6 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file/README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # org.apache.cordova.file 21 | 22 | Plugin documentation: [doc/index.md](doc/index.md) 23 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file/src/android/EncodingException.java: -------------------------------------------------------------------------------- 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 | package org.apache.cordova.file; 21 | 22 | @SuppressWarnings("serial") 23 | public class EncodingException extends Exception { 24 | 25 | public EncodingException(String message) { 26 | super(message); 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file/src/android/FileExistsException.java: -------------------------------------------------------------------------------- 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 | package org.apache.cordova.file; 21 | 22 | @SuppressWarnings("serial") 23 | public class FileExistsException extends Exception { 24 | 25 | public FileExistsException(String msg) { 26 | super(msg); 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file/src/android/InvalidModificationException.java: -------------------------------------------------------------------------------- 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 | package org.apache.cordova.file; 22 | 23 | @SuppressWarnings("serial") 24 | public class InvalidModificationException extends Exception { 25 | 26 | public InvalidModificationException(String message) { 27 | super(message); 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file/src/android/NoModificationAllowedException.java: -------------------------------------------------------------------------------- 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 | package org.apache.cordova.file; 21 | 22 | @SuppressWarnings("serial") 23 | public class NoModificationAllowedException extends Exception { 24 | 25 | public NoModificationAllowedException(String message) { 26 | super(message); 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file/src/android/TypeMismatchException.java: -------------------------------------------------------------------------------- 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 | package org.apache.cordova.file; 22 | 23 | @SuppressWarnings("serial") 24 | public class TypeMismatchException extends Exception { 25 | 26 | public TypeMismatchException(String message) { 27 | super(message); 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file/src/blackberry10/index.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 | module.exports = { 22 | setSandbox : function (success, fail, args, env) { 23 | require("lib/webview").setSandbox(JSON.parse(decodeURIComponent(args[0]))); 24 | new PluginResult(args, env).ok(); 25 | }, 26 | 27 | getHomePath: function (success, fail, args, env) { 28 | var homeDir = window.qnx.webplatform.getApplication().getEnv("HOME"); 29 | new PluginResult(args, env).ok(homeDir); 30 | }, 31 | 32 | requestAllPaths: function (success, fail, args, env) { 33 | var homeDir = 'file://' + window.qnx.webplatform.getApplication().getEnv("HOME").replace('/data', ''), 34 | paths = { 35 | applicationDirectory: homeDir + '/app/native/', 36 | applicationStorageDirectory: homeDir + '/', 37 | dataDirectory: homeDir + '/data/webviews/webfs/persistent/local__0/', 38 | cacheDirectory: homeDir + '/data/webviews/webfs/temporary/local__0/', 39 | externalRootDirectory: 'file:///accounts/1000/removable/sdcard/', 40 | sharedDirectory: homeDir + '/shared/' 41 | }; 42 | success(paths); 43 | } 44 | }; 45 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file/src/ios/CDVAssetLibraryFilesystem.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 "CDVFile.h" 21 | 22 | extern NSString* const kCDVAssetsLibraryPrefix; 23 | extern NSString* const kCDVAssetsLibraryScheme; 24 | 25 | @interface CDVAssetLibraryFilesystem : NSObject { 26 | } 27 | 28 | - (id) initWithName:(NSString *)name; 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file/src/ios/CDVLocalFilesystem.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 "CDVFile.h" 21 | 22 | @interface CDVLocalFilesystem : NSObject { 23 | NSString *_name; 24 | NSString *_fsRoot; 25 | } 26 | 27 | - (id) initWithName:(NSString *)name root:(NSString *)fsRoot; 28 | + (NSString*)getMimeTypeFromPath:(NSString*)fullPath; 29 | 30 | @property (nonatomic,strong) NSString *fsRoot; 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file/tests/plugin.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 26 | Cordova File Plugin Tests 27 | Apache 2.0 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file/www/FileError.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 | /** 23 | * FileError 24 | */ 25 | function FileError(error) { 26 | this.code = error || null; 27 | } 28 | 29 | // File error codes 30 | // Found in DOMException 31 | FileError.NOT_FOUND_ERR = 1; 32 | FileError.SECURITY_ERR = 2; 33 | FileError.ABORT_ERR = 3; 34 | 35 | // Added by File API specification 36 | FileError.NOT_READABLE_ERR = 4; 37 | FileError.ENCODING_ERR = 5; 38 | FileError.NO_MODIFICATION_ALLOWED_ERR = 6; 39 | FileError.INVALID_STATE_ERR = 7; 40 | FileError.SYNTAX_ERR = 8; 41 | FileError.INVALID_MODIFICATION_ERR = 9; 42 | FileError.QUOTA_EXCEEDED_ERR = 10; 43 | FileError.TYPE_MISMATCH_ERR = 11; 44 | FileError.PATH_EXISTS_ERR = 12; 45 | 46 | module.exports = FileError; 47 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file/www/FileSystem.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 DirectoryEntry = require('./DirectoryEntry'); 23 | 24 | /** 25 | * An interface representing a file system 26 | * 27 | * @constructor 28 | * {DOMString} name the unique name of the file system (readonly) 29 | * {DirectoryEntry} root directory of the file system (readonly) 30 | */ 31 | var FileSystem = function(name, root) { 32 | this.name = name; 33 | if (root) { 34 | this.root = new DirectoryEntry(root.name, root.fullPath, this, root.nativeURL); 35 | } else { 36 | this.root = new DirectoryEntry(this.name, '/', this); 37 | } 38 | }; 39 | 40 | FileSystem.prototype.__format__ = function(fullPath) { 41 | return fullPath; 42 | }; 43 | 44 | FileSystem.prototype.toJSON = function() { 45 | return ""; 46 | }; 47 | 48 | module.exports = FileSystem; 49 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file/www/FileUploadOptions.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 | /** 23 | * Options to customize the HTTP request used to upload files. 24 | * @constructor 25 | * @param fileKey {String} Name of file request parameter. 26 | * @param fileName {String} Filename to be used by the server. Defaults to image.jpg. 27 | * @param mimeType {String} Mimetype of the uploaded file. Defaults to image/jpeg. 28 | * @param params {Object} Object with key: value params to send to the server. 29 | * @param headers {Object} Keys are header names, values are header values. Multiple 30 | * headers of the same name are not supported. 31 | */ 32 | var FileUploadOptions = function(fileKey, fileName, mimeType, params, headers, httpMethod) { 33 | this.fileKey = fileKey || null; 34 | this.fileName = fileName || null; 35 | this.mimeType = mimeType || null; 36 | this.params = params || null; 37 | this.headers = headers || null; 38 | this.httpMethod = httpMethod || null; 39 | }; 40 | 41 | module.exports = FileUploadOptions; 42 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file/www/FileUploadResult.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 | /** 23 | * FileUploadResult 24 | * @constructor 25 | */ 26 | module.exports = function FileUploadResult(size, code, content) { 27 | this.bytesSent = size; 28 | this.responseCode = code; 29 | this.response = content; 30 | }; -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file/www/Flags.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 | /** 23 | * Supplies arguments to methods that lookup or create files and directories. 24 | * 25 | * @param create 26 | * {boolean} file or directory if it doesn't exist 27 | * @param exclusive 28 | * {boolean} used with create; if true the command will fail if 29 | * target path exists 30 | */ 31 | function Flags(create, exclusive) { 32 | this.create = create || false; 33 | this.exclusive = exclusive || false; 34 | } 35 | 36 | module.exports = Flags; 37 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file/www/LocalFileSystem.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 | exports.TEMPORARY = 0; 23 | exports.PERSISTENT = 1; 24 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file/www/Metadata.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 | /** 23 | * Information about the state of the file or directory 24 | * 25 | * {Date} modificationTime (readonly) 26 | */ 27 | var Metadata = function(metadata) { 28 | if (typeof metadata == "object") { 29 | this.modificationTime = new Date(metadata.modificationTime); 30 | this.size = metadata.size || 0; 31 | } else if (typeof metadata == "undefined") { 32 | this.modificationTime = null; 33 | this.size = 0; 34 | } else { 35 | /* Backwards compatiblity with platforms that only return a timestamp */ 36 | this.modificationTime = new Date(metadata); 37 | } 38 | }; 39 | 40 | module.exports = Metadata; 41 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file/www/android/FileSystem.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 | FILESYSTEM_PROTOCOL = "cdvfile"; 23 | 24 | module.exports = { 25 | __format__: function(fullPath) { 26 | if (this.name === 'content') { 27 | return 'content:/' + fullPath; 28 | } 29 | var path = ('/'+this.name+(fullPath[0]==='/'?'':'/')+encodeURI(fullPath)).replace('//','/'); 30 | return FILESYSTEM_PROTOCOL + '://localhost' + path; 31 | } 32 | }; 33 | 34 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file/www/blackberry10/FileSystem.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 | /* 23 | * FileSystem 24 | * 25 | * Translate temporary / persistent / root file paths 26 | */ 27 | 28 | var info = require("org.apache.cordova.file.bb10FileSystemInfo"); 29 | 30 | module.exports = { 31 | __format__: function(fullPath) { 32 | switch (this.name) { 33 | case 'temporary': 34 | path = info.temporaryPath + fullPath; 35 | break; 36 | case 'persistent': 37 | path = info.persistentPath + fullPath; 38 | break; 39 | case 'root': 40 | path = 'file://' + fullPath; 41 | break; 42 | } 43 | return window.encodeURI(path); 44 | } 45 | }; 46 | 47 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file/www/blackberry10/getFile.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 | /* 23 | * getFile 24 | * 25 | * IN: 26 | * args 27 | * 0 - local filesytem URI for the base directory to search 28 | * 1 - file to be created/returned; may be absolute path or relative path 29 | * 2 - options object 30 | * OUT: 31 | * success - FileEntry 32 | * fail - FileError code 33 | */ 34 | 35 | var resolve = cordova.require('org.apache.cordova.file.resolveLocalFileSystemURIProxy'); 36 | 37 | module.exports = function (success, fail, args) { 38 | var uri = args[0] === "/" ? "" : args[0] + "/" + args[1], 39 | options = args[2], 40 | onSuccess = function (entry) { 41 | if (typeof(success) === 'function') { 42 | success(entry); 43 | } 44 | }, 45 | onFail = function (code) { 46 | if (typeof(fail) === 'function') { 47 | fail(code); 48 | } 49 | }; 50 | resolve(function (entry) { 51 | if (!entry.isFile) { 52 | onFail(FileError.TYPE_MISMATCH_ERR); 53 | } else { 54 | onSuccess(entry); 55 | } 56 | }, onFail, [uri, options]); 57 | }; 58 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file/www/blackberry10/getMetadata.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 | /* 23 | * getMetadata 24 | * 25 | * IN: 26 | * args 27 | * 0 - local filesytem URI 28 | * OUT: 29 | * success - metadata 30 | * fail - FileError code 31 | */ 32 | 33 | var resolve = cordova.require('org.apache.cordova.file.resolveLocalFileSystemURIProxy'); 34 | 35 | module.exports = function (success, fail, args) { 36 | var uri = args[0], 37 | onSuccess = function (entry) { 38 | if (typeof(success) === 'function') { 39 | success(entry); 40 | } 41 | }, 42 | onFail = function (error) { 43 | if (typeof(fail) === 'function') { 44 | if (error.code) { 45 | fail(error.code); 46 | } else { 47 | fail(error); 48 | } 49 | } 50 | }; 51 | resolve(function (entry) { 52 | entry.nativeEntry.getMetadata(onSuccess, onFail); 53 | }, onFail, [uri]); 54 | }; 55 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file/www/blackberry10/getParent.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 | /* 23 | * getParent 24 | * 25 | * IN: 26 | * args 27 | * 0 - local filesytem URI 28 | * OUT: 29 | * success - DirectoryEntry of parent 30 | * fail - FileError code 31 | */ 32 | 33 | var resolve = cordova.require('org.apache.cordova.file.resolveLocalFileSystemURIProxy'), 34 | requestAnimationFrame = cordova.require('org.apache.cordova.file.bb10RequestAnimationFrame'); 35 | 36 | module.exports = function (success, fail, args) { 37 | var uri = args[0], 38 | onSuccess = function (entry) { 39 | if (typeof(success) === 'function') { 40 | success(entry); 41 | } 42 | }, 43 | onFail = function (error) { 44 | if (typeof(fail) === 'function') { 45 | if (error && error.code) { 46 | fail(error.code); 47 | } else { 48 | fail(error); 49 | } 50 | } 51 | }; 52 | resolve(function (entry) { 53 | requestAnimationFrame(function () { 54 | entry.nativeEntry.getParent(onSuccess, onFail); 55 | }); 56 | }, onFail, [uri]); 57 | }; 58 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file/www/blackberry10/info.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 | /* 23 | * info 24 | * 25 | * persistentPath - full path to app sandboxed persistent storage 26 | * temporaryPath - full path to app sandboxed temporary storage 27 | * localPath - full path to app source (www dir) 28 | * MAX_SIZE - maximum size for filesystem request 29 | */ 30 | 31 | var info = { 32 | persistentPath: "", 33 | temporaryPath: "", 34 | localPath: "", 35 | MAX_SIZE: 64 * 1024 * 1024 * 1024 36 | }; 37 | 38 | cordova.exec( 39 | function (path) { 40 | info.persistentPath = 'file://' + path + '/webviews/webfs/persistent/local__0'; 41 | info.temporaryPath = 'file://' + path + '/webviews/webfs/temporary/local__0'; 42 | info.localPath = path.replace('/data', '/app/native'); 43 | }, 44 | function () { 45 | console.error('Unable to determine local storage file path'); 46 | }, 47 | 'File', 48 | 'getHomePath', 49 | false 50 | ); 51 | 52 | module.exports = info; 53 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file/www/blackberry10/moveTo.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 | /* 23 | * moveTo 24 | * 25 | * IN: 26 | * args 27 | * 0 - URL of entry to move 28 | * 1 - URL of the directory into which to move the entry 29 | * 2 - the new name of the entry, defaults to the current name 30 | * OUT: 31 | * success - entry for the copied file or directory 32 | * fail - FileError 33 | */ 34 | 35 | var copy = cordova.require('org.apache.cordova.file.copyToProxy'); 36 | 37 | module.exports = function (success, fail, args) { 38 | copy(success, fail, args, true); 39 | }; 40 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file/www/blackberry10/remove.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 | /* 23 | * remove 24 | * 25 | * IN: 26 | * args 27 | * 0 - URL of Entry to remove 28 | * OUT: 29 | * success - (no args) 30 | * fail - FileError 31 | */ 32 | 33 | var resolve = cordova.require('org.apache.cordova.file.resolveLocalFileSystemURIProxy'), 34 | requestAnimationFrame = cordova.require('org.apache.cordova.file.bb10RequestAnimationFrame'); 35 | 36 | module.exports = function (success, fail, args) { 37 | var uri = args[0], 38 | onSuccess = function (data) { 39 | if (typeof success === 'function') { 40 | success(data); 41 | } 42 | }, 43 | onFail = function (error) { 44 | if (typeof fail === 'function') { 45 | if (error && error.code) { 46 | fail(error.code); 47 | } else { 48 | fail(error); 49 | } 50 | } 51 | }; 52 | resolve(function (fs) { 53 | requestAnimationFrame(function () { 54 | if (fs.fullPath === '/') { 55 | onFail(FileError.NO_MODIFICATION_ALLOWED_ERR); 56 | } else { 57 | fs.nativeEntry.remove(onSuccess, onFail); 58 | } 59 | }); 60 | }, fail, [uri]); 61 | }; 62 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file/www/blackberry10/requestAllFileSystems.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 | /* 23 | * requestAllFileSystems 24 | * 25 | * IN - no arguments 26 | * OUT 27 | * success - Array of FileSystems 28 | * - filesystemName 29 | * - fullPath 30 | * - name 31 | * - nativeURL 32 | */ 33 | 34 | var info = require('org.apache.cordova.file.bb10FileSystemInfo'); 35 | 36 | module.exports = function (success, fail, args) { 37 | success([ 38 | { filesystemName: 'persistent', name: 'persistent', fullPath: '/', nativeURL: info.persistentPath + '/' }, 39 | { filesystemName: 'temporary', name: 'temporary', fullPath: '/', nativeURL: info.temporaryPath + '/' }, 40 | { filesystemName: 'root', name: 'root', fullPath: '/', nativeURL: 'file:///' } 41 | ]); 42 | } 43 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file/www/blackberry10/requestAnimationFrame.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 | /* 23 | * requestAnimationFrame 24 | * 25 | * This is used throughout the BB10 File implementation to wrap 26 | * native webkit calls. There is a bug in the webkit implementation 27 | * which causes callbacks to never return when multiple file system 28 | * APIs are called in sequence. This should also make the UI more 29 | * responsive during file operations. 30 | * 31 | * Supported on BB10 OS > 10.1 32 | */ 33 | 34 | var requestAnimationFrame = window.requestAnimationFrame; 35 | if (typeof(requestAnimationFrame) !== 'function') { 36 | requestAnimationFrame = function (cb) { cb(); }; 37 | } 38 | module.exports = requestAnimationFrame; 39 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file/www/blackberry10/requestFileSystem.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 | /* 23 | * requestFileSystem 24 | * 25 | * IN: 26 | * args 27 | * 0 - type (TEMPORARY = 0, PERSISTENT = 1) 28 | * 1 - size 29 | * OUT: 30 | * success - FileSystem object 31 | * - name - the human readable directory name 32 | * - root - DirectoryEntry object 33 | * - isDirectory 34 | * - isFile 35 | * - name 36 | * - fullPath 37 | * fail - FileError code 38 | */ 39 | 40 | var resolve = cordova.require('org.apache.cordova.file.resolveLocalFileSystemURIProxy'); 41 | 42 | module.exports = function (success, fail, args) { 43 | var fsType = args[0] === 0 ? 'temporary' : 'persistent', 44 | size = args[1], 45 | onSuccess = function (fs) { 46 | var directory = { 47 | name: fsType, 48 | root: fs 49 | }; 50 | success(directory); 51 | }; 52 | resolve(onSuccess, fail, ['cdvfile://localhost/' + fsType + '/', undefined, size]); 53 | }; 54 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file/www/blackberry10/setMetadata.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 | /* 23 | * setMetadata 24 | * 25 | * BB10 OS does not support setting file metadata via HTML5 File System 26 | */ 27 | 28 | module.exports = function (success, fail, args) { 29 | console.error("setMetadata not supported on BB10", arguments); 30 | if (typeof(fail) === 'function') { 31 | fail(); 32 | } 33 | }; 34 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file/www/fileSystems-roots.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 | // Map of fsName -> FileSystem. 23 | var fsMap = null; 24 | var FileSystem = require('./FileSystem'); 25 | var exec = require('cordova/exec'); 26 | 27 | // Overridden by Android, BlackBerry 10 and iOS to populate fsMap. 28 | require('./fileSystems').getFs = function(name, callback) { 29 | if (fsMap) { 30 | callback(fsMap[name]); 31 | } else { 32 | exec(success, null, "File", "requestAllFileSystems", []); 33 | function success(response) { 34 | fsMap = {}; 35 | for (var i = 0; i < response.length; ++i) { 36 | var fsRoot = response[i]; 37 | var fs = new FileSystem(fsRoot.filesystemName, fsRoot); 38 | fsMap[fs.name] = fs; 39 | } 40 | callback(fsMap[name]); 41 | } 42 | } 43 | }; 44 | 45 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file/www/fileSystems.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 | // Overridden by Android, BlackBerry 10 and iOS to populate fsMap. 23 | module.exports.getFs = function(name, callback) { 24 | callback(null); 25 | }; 26 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file/www/firefoxos/FileSystem.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 | FILESYSTEM_PREFIX = "cdvfile://"; 23 | 24 | module.exports = { 25 | __format__: function(fullPath) { 26 | return (FILESYSTEM_PREFIX + this.name + (fullPath[0] === '/' ? '' : '/') + encodeURI(fullPath)); 27 | } 28 | }; 29 | 30 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file/www/ios/FileSystem.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 | FILESYSTEM_PROTOCOL = "cdvfile"; 23 | 24 | module.exports = { 25 | __format__: function(fullPath) { 26 | var path = ('/'+this.name+(fullPath[0]==='/'?'':'/')+encodeURI(fullPath)).replace('//','/'); 27 | return FILESYSTEM_PROTOCOL + '://localhost' + path; 28 | } 29 | }; 30 | 31 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file/www/ubuntu/FileSystem.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 | FILESYSTEM_PROTOCOL = "cdvfile"; 23 | 24 | module.exports = { 25 | __format__: function(fullPath) { 26 | if (this.name === 'content') { 27 | return 'content:/' + fullPath; 28 | } 29 | var path = ('/' + this.name + (fullPath[0] === '/' ? '' : '/') + encodeURI(fullPath)).replace('//','/'); 30 | 31 | return FILESYSTEM_PROTOCOL + '://localhost' + path; 32 | } 33 | }; 34 | 35 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file/www/ubuntu/fileSystems-roots.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 fsMap = null; 23 | var FileSystem = require('./FileSystem'); 24 | var LocalFileSystem = require('./LocalFileSystem'); 25 | var exec = require('cordova/exec'); 26 | 27 | var requestFileSystem = function(type, size, successCallback) { 28 | var success = function(file_system) { 29 | if (file_system) { 30 | if (successCallback) { 31 | fs = new FileSystem(file_system.name, file_system.root); 32 | successCallback(fs); 33 | } 34 | } 35 | }; 36 | exec(success, null, "File", "requestFileSystem", [type, size]); 37 | }; 38 | 39 | require('./fileSystems').getFs = function(name, callback) { 40 | if (fsMap) { 41 | callback(fsMap[name]); 42 | } else { 43 | requestFileSystem(LocalFileSystem.PERSISTENT, 1, function(fs) { 44 | requestFileSystem(LocalFileSystem.TEMPORARY, 1, function(tmp) { 45 | fsMap = {}; 46 | fsMap[tmp.name] = tmp; 47 | fsMap[fs.name] = fs; 48 | callback(fsMap[name]); 49 | }); 50 | }); 51 | } 52 | }; 53 | 54 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.file/www/wp/FileUploadOptions.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 | /** 23 | * Options to customize the HTTP request used to upload files. 24 | * @constructor 25 | * @param fileKey {String} Name of file request parameter. 26 | * @param fileName {String} Filename to be used by the server. Defaults to image.jpg. 27 | * @param mimeType {String} Mimetype of the uploaded file. Defaults to image/jpeg. 28 | * @param params {Object} Object with key: value params to send to the server. 29 | */ 30 | var FileUploadOptions = function(fileKey, fileName, mimeType, params, headers, httpMethod) { 31 | this.fileKey = fileKey || null; 32 | this.fileName = fileName || null; 33 | this.mimeType = mimeType || null; 34 | this.headers = headers || null; 35 | this.httpMethod = httpMethod || null; 36 | 37 | if(params && typeof params != typeof "") { 38 | var arrParams = []; 39 | for(var v in params) { 40 | arrParams.push(v + "=" + params[v]); 41 | } 42 | this.params = encodeURIComponent(arrParams.join("&")); 43 | } 44 | else { 45 | this.params = params || null; 46 | } 47 | }; 48 | 49 | module.exports = FileUploadOptions; 50 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.inappbrowser/.fetch.json: -------------------------------------------------------------------------------- 1 | {"source":{"type":"local","path":"C:\\Users\\vmaliko\\.plugman\\cache\\org.apache.cordova.inappbrowser\\0.5.1\\package"}} -------------------------------------------------------------------------------- /plugins/org.apache.cordova.inappbrowser/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | 21 | 22 | # Contributing to Apache Cordova 23 | 24 | Anyone can contribute to Cordova. And we need your contributions. 25 | 26 | There are multiple ways to contribute: report bugs, improve the docs, and 27 | contribute code. 28 | 29 | For instructions on this, start with the 30 | [contribution overview](http://cordova.apache.org/#contribute). 31 | 32 | The details are explained there, but the important items are: 33 | - Sign and submit an Apache ICLA (Contributor License Agreement). 34 | - Have a Jira issue open that corresponds to your contribution. 35 | - Run the tests so your patch doesn't break existing functionality. 36 | 37 | We look forward to your contributions! 38 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.inappbrowser/NOTICE: -------------------------------------------------------------------------------- 1 | Apache Cordova 2 | Copyright 2012 The Apache Software Foundation 3 | 4 | This product includes software developed at 5 | The Apache Software Foundation (http://www.apache.org/). 6 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.inappbrowser/README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # org.apache.cordova.inappbrowser 21 | 22 | Plugin documentation: [doc/index.md](doc/index.md) 23 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.inappbrowser/src/android/InAppBrowserDialog.java: -------------------------------------------------------------------------------- 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 | package org.apache.cordova.inappbrowser; 20 | 21 | import android.app.AlertDialog; 22 | import android.app.Dialog; 23 | import android.content.Context; 24 | import android.util.Log; 25 | 26 | import org.json.JSONException; 27 | import org.json.JSONObject; 28 | 29 | /** 30 | * Created by Oliver on 22/11/2013. 31 | */ 32 | public class InAppBrowserDialog extends Dialog { 33 | Context context; 34 | InAppBrowser inAppBrowser = null; 35 | 36 | public InAppBrowserDialog(Context context, int theme) { 37 | super(context, theme); 38 | this.context = context; 39 | } 40 | 41 | public void setInAppBroswer(InAppBrowser browser) { 42 | this.inAppBrowser = browser; 43 | } 44 | 45 | public void onBackPressed () { 46 | if (this.inAppBrowser == null) { 47 | this.dismiss(); 48 | } else { 49 | // better to go through the in inAppBrowser 50 | // because it does a clean up 51 | this.inAppBrowser.closeDialog(); 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.inappbrowser/src/android/res/drawable-hdpi/ic_action_next_item.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/plugins/org.apache.cordova.inappbrowser/src/android/res/drawable-hdpi/ic_action_next_item.png -------------------------------------------------------------------------------- /plugins/org.apache.cordova.inappbrowser/src/android/res/drawable-hdpi/ic_action_previous_item.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/plugins/org.apache.cordova.inappbrowser/src/android/res/drawable-hdpi/ic_action_previous_item.png -------------------------------------------------------------------------------- /plugins/org.apache.cordova.inappbrowser/src/android/res/drawable-hdpi/ic_action_remove.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/plugins/org.apache.cordova.inappbrowser/src/android/res/drawable-hdpi/ic_action_remove.png -------------------------------------------------------------------------------- /plugins/org.apache.cordova.inappbrowser/src/android/res/drawable-mdpi/ic_action_next_item.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/plugins/org.apache.cordova.inappbrowser/src/android/res/drawable-mdpi/ic_action_next_item.png -------------------------------------------------------------------------------- /plugins/org.apache.cordova.inappbrowser/src/android/res/drawable-mdpi/ic_action_previous_item.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/plugins/org.apache.cordova.inappbrowser/src/android/res/drawable-mdpi/ic_action_previous_item.png -------------------------------------------------------------------------------- /plugins/org.apache.cordova.inappbrowser/src/android/res/drawable-mdpi/ic_action_remove.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/plugins/org.apache.cordova.inappbrowser/src/android/res/drawable-mdpi/ic_action_remove.png -------------------------------------------------------------------------------- /plugins/org.apache.cordova.inappbrowser/src/android/res/drawable-xhdpi/ic_action_next_item.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/plugins/org.apache.cordova.inappbrowser/src/android/res/drawable-xhdpi/ic_action_next_item.png -------------------------------------------------------------------------------- /plugins/org.apache.cordova.inappbrowser/src/android/res/drawable-xhdpi/ic_action_previous_item.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/plugins/org.apache.cordova.inappbrowser/src/android/res/drawable-xhdpi/ic_action_previous_item.png -------------------------------------------------------------------------------- /plugins/org.apache.cordova.inappbrowser/src/android/res/drawable-xhdpi/ic_action_remove.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/plugins/org.apache.cordova.inappbrowser/src/android/res/drawable-xhdpi/ic_action_remove.png -------------------------------------------------------------------------------- /plugins/org.apache.cordova.inappbrowser/src/android/res/drawable-xxhdpi/ic_action_next_item.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/plugins/org.apache.cordova.inappbrowser/src/android/res/drawable-xxhdpi/ic_action_next_item.png -------------------------------------------------------------------------------- /plugins/org.apache.cordova.inappbrowser/src/android/res/drawable-xxhdpi/ic_action_previous_item.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/plugins/org.apache.cordova.inappbrowser/src/android/res/drawable-xxhdpi/ic_action_previous_item.png -------------------------------------------------------------------------------- /plugins/org.apache.cordova.inappbrowser/src/android/res/drawable-xxhdpi/ic_action_remove.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/plugins/org.apache.cordova.inappbrowser/src/android/res/drawable-xxhdpi/ic_action_remove.png -------------------------------------------------------------------------------- /plugins/org.apache.cordova.inappbrowser/src/ubuntu/close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/plugins/org.apache.cordova.inappbrowser/src/ubuntu/close.png -------------------------------------------------------------------------------- /plugins/org.apache.cordova.inappbrowser/src/ubuntu/inappbrowser.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 | #ifndef INAPPBROWSER_H 24 | #define INAPPBROWSER_H 25 | 26 | #include 27 | #include 28 | 29 | class Inappbrowser: public CPlugin { 30 | Q_OBJECT 31 | public: 32 | Inappbrowser(Cordova *cordova); 33 | 34 | virtual const QString fullName() override { 35 | return Inappbrowser::fullID(); 36 | } 37 | 38 | virtual const QString shortName() override { 39 | return "InAppBrowser"; 40 | } 41 | 42 | static const QString fullID() { 43 | return "InAppBrowser"; 44 | } 45 | 46 | public slots: 47 | void open(int cb, int, const QString &url, const QString &windowName, const QString &windowFeatures); 48 | void show(int, int); 49 | void close(int, int); 50 | void injectStyleFile(int cb, int, const QString&, bool); 51 | void injectStyleCode(int cb, int, const QString&, bool); 52 | void injectScriptFile(int cb, int, const QString&, bool); 53 | void injectScriptCode(int cb, int, const QString&, bool); 54 | 55 | void loadFinished(int status); 56 | 57 | private: 58 | int _eventCb; 59 | }; 60 | 61 | #endif 62 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.network-information/.fetch.json: -------------------------------------------------------------------------------- 1 | {"source":{"type":"local","path":"C:\\Users\\vmaliko\\.plugman\\cache\\org.apache.cordova.network-information\\0.2.11\\package"}} -------------------------------------------------------------------------------- /plugins/org.apache.cordova.network-information/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | 21 | 22 | # Contributing to Apache Cordova 23 | 24 | Anyone can contribute to Cordova. And we need your contributions. 25 | 26 | There are multiple ways to contribute: report bugs, improve the docs, and 27 | contribute code. 28 | 29 | For instructions on this, start with the 30 | [contribution overview](http://cordova.apache.org/#contribute). 31 | 32 | The details are explained there, but the important items are: 33 | - Sign and submit an Apache ICLA (Contributor License Agreement). 34 | - Have a Jira issue open that corresponds to your contribution. 35 | - Run the tests so your patch doesn't break existing functionality. 36 | 37 | We look forward to your contributions! 38 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.network-information/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 | 7 | This product includes software developed by Apple Inc. License can be found in the header of the affected files. (src/ios/CDVReachability.h, src/ios/CDVReachability.m) 8 | 9 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.network-information/README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # org.apache.cordova.network-information 21 | 22 | Plugin documentation: [doc/index.md](doc/index.md) 23 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.network-information/src/blackberry10/index.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 | //map from BB10 to cordova connection types: 23 | //https://github.com/apache/cordova-js/blob/master/lib/common/plugin/Connection.js 24 | function mapConnectionType(con) { 25 | switch (con.type) { 26 | case 'wired': 27 | return 'ethernet'; 28 | case 'wifi': 29 | return 'wifi'; 30 | case 'none': 31 | return 'none'; 32 | case 'cellular': 33 | switch (con.technology) { 34 | case 'edge': 35 | case 'gsm': 36 | return '2g'; 37 | case 'evdo': 38 | return '3g'; 39 | case 'umts': 40 | return '3g'; 41 | case 'lte': 42 | return '4g'; 43 | } 44 | return "cellular"; 45 | } 46 | return 'unknown'; 47 | } 48 | 49 | function currentConnectionType() { 50 | try { 51 | //possible for webplatform to throw pps exception 52 | return mapConnectionType(window.qnx.webplatform.device.activeConnection || { type : 'none' }); 53 | } 54 | catch (e) { 55 | return 'unknown'; 56 | } 57 | } 58 | 59 | module.exports = { 60 | getConnectionInfo: function (success, fail, args, env) { 61 | var result = new PluginResult(args, env); 62 | result.ok(currentConnectionType()); 63 | } 64 | }; 65 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.network-information/src/ios/CDVConnection.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 | #import "CDVReachability.h" 23 | 24 | @interface CDVConnection : CDVPlugin { 25 | NSString* type; 26 | NSString* _callbackId; 27 | 28 | CDVReachability* internetReach; 29 | } 30 | 31 | @property (copy) NSString* connectionType; 32 | @property (strong) CDVReachability* internetReach; 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.network-information/src/ubuntu/network_information.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 NETWORK_INFORMATION_H 16 | #define NETWORK_INFORMATION_H 17 | 18 | #include 19 | 20 | #include 21 | #include 22 | 23 | class NetworkInformation: public CPlugin { 24 | Q_OBJECT 25 | public: 26 | explicit NetworkInformation(Cordova *cordova): CPlugin(cordova) {} 27 | 28 | virtual const QString fullName() override { 29 | return NetworkInformation::fullID(); 30 | } 31 | 32 | virtual const QString shortName() override { 33 | return "Connection"; 34 | } 35 | 36 | static const QString fullID() { 37 | return "NetworkStatus"; 38 | } 39 | 40 | public slots: 41 | void getConnectionInfo(int scId, int ecId); 42 | 43 | private: 44 | QNetworkInfo m_systemNetworkInfo; 45 | }; 46 | 47 | #endif 48 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.network-information/www/Connection.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 | /** 23 | * Network status 24 | */ 25 | module.exports = { 26 | UNKNOWN: "unknown", 27 | ETHERNET: "ethernet", 28 | WIFI: "wifi", 29 | CELL_2G: "2g", 30 | CELL_3G: "3g", 31 | CELL_4G: "4g", 32 | CELL:"cellular", 33 | NONE: "none" 34 | }; 35 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.splashscreen/.fetch.json: -------------------------------------------------------------------------------- 1 | {"source":{"type":"local","path":"C:\\Users\\malikov\\.plugman\\cache\\org.apache.cordova.splashscreen\\0.3.2\\package"}} -------------------------------------------------------------------------------- /plugins/org.apache.cordova.splashscreen/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | 21 | 22 | # Contributing to Apache Cordova 23 | 24 | Anyone can contribute to Cordova. And we need your contributions. 25 | 26 | There are multiple ways to contribute: report bugs, improve the docs, and 27 | contribute code. 28 | 29 | For instructions on this, start with the 30 | [contribution overview](http://cordova.apache.org/#contribute). 31 | 32 | The details are explained there, but the important items are: 33 | - Sign and submit an Apache ICLA (Contributor License Agreement). 34 | - Have a Jira issue open that corresponds to your contribution. 35 | - Run the tests so your patch doesn't break existing functionality. 36 | 37 | We look forward to your contributions! 38 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.splashscreen/NOTICE: -------------------------------------------------------------------------------- 1 | Apache Cordova 2 | Copyright 2012 The Apache Software Foundation 3 | 4 | This product includes software developed at 5 | The Apache Software Foundation (http://www.apache.org/). 6 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.splashscreen/README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # org.apache.cordova.splashscreen 21 | 22 | Plugin documentation: [doc/index.md](doc/index.md) 23 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.splashscreen/src/android/SplashScreen.java: -------------------------------------------------------------------------------- 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 | package org.apache.cordova.splashscreen; 21 | 22 | import org.apache.cordova.CallbackContext; 23 | import org.apache.cordova.CordovaPlugin; 24 | import org.json.JSONArray; 25 | 26 | public class SplashScreen extends CordovaPlugin { 27 | 28 | @Override 29 | public boolean execute(String action, JSONArray args, CallbackContext callbackContext) { 30 | if (action.equals("hide")) { 31 | this.webView.postMessage("splashscreen", "hide"); 32 | } else if (action.equals("show")){ 33 | this.webView.postMessage("splashscreen", "show"); 34 | } 35 | else { 36 | return false; 37 | } 38 | 39 | callbackContext.success(); 40 | return true; 41 | } 42 | 43 | } 44 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.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 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.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 | @interface CDVSplashScreen : CDVPlugin { 24 | UIActivityIndicatorView* _activityView; 25 | UIImageView* _imageView; 26 | NSString* _curImageName; 27 | BOOL _visible; 28 | } 29 | 30 | - (void)show:(CDVInvokedUrlCommand*)command; 31 | - (void)hide:(CDVInvokedUrlCommand*)command; 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.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 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.splashscreen/src/ubuntu/splashscreen.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright 2013 Canonical Ltd. 4 | * 5 | * Licensed to the Apache Software Foundation (ASF) under one 6 | * or more contributor license agreements. See the NOTICE file 7 | * distributed with this work for additional information 8 | * regarding copyright ownership. The ASF licenses this file 9 | * to you under the Apache License, Version 2.0 (the 10 | * "License"); you may not use this file except in compliance 11 | * with the License. You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, 16 | * software distributed under the License is distributed on an 17 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 18 | * KIND, either express or implied. See the License for the 19 | * specific language governing permissions and limitations 20 | * under the License. 21 | * 22 | */ 23 | 24 | #include 25 | 26 | #include "splashscreen.h" 27 | #include 28 | 29 | #define SPLASHSCREEN_STATE_NAME "splashscreen" 30 | 31 | Splashscreen::Splashscreen(Cordova *cordova): CPlugin(cordova) { 32 | } 33 | 34 | void Splashscreen::show(int, int) { 35 | m_cordova->rootObject()->setProperty("splashscreenPath", m_cordova->getSplashscreenPath()); 36 | 37 | m_cordova->pushViewState(SPLASHSCREEN_STATE_NAME); 38 | } 39 | 40 | void Splashscreen::hide(int, int) { 41 | m_cordova->popViewState(SPLASHSCREEN_STATE_NAME); 42 | } 43 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.splashscreen/src/ubuntu/splashscreen.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright 2013 Canonical Ltd. 4 | * 5 | * Licensed to the Apache Software Foundation (ASF) under one 6 | * or more contributor license agreements. See the NOTICE file 7 | * distributed with this work for additional information 8 | * regarding copyright ownership. The ASF licenses this file 9 | * to you under the Apache License, Version 2.0 (the 10 | * "License"); you may not use this file except in compliance 11 | * with the License. You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, 16 | * software distributed under the License is distributed on an 17 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 18 | * KIND, either express or implied. See the License for the 19 | * specific language governing permissions and limitations 20 | * under the License. 21 | * 22 | */ 23 | 24 | #ifndef SPLASHSCREEN_H 25 | #define SPLASHSCREEN_H 26 | 27 | #include 28 | #include 29 | 30 | class Splashscreen: public CPlugin { 31 | Q_OBJECT 32 | public: 33 | explicit Splashscreen(Cordova *cordova); 34 | 35 | virtual const QString fullName() override { 36 | return Splashscreen::fullID(); 37 | } 38 | 39 | virtual const QString shortName() override { 40 | return "SplashScreen"; 41 | } 42 | 43 | static const QString fullID() { 44 | return "SplashScreen"; 45 | } 46 | 47 | public slots: 48 | void show(int, int); 49 | void hide(int, int); 50 | }; 51 | 52 | #endif // SPLASHSCREEN_H 53 | -------------------------------------------------------------------------------- /plugins/org.apache.cordova.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 | -------------------------------------------------------------------------------- /scss/custom.app.scss: -------------------------------------------------------------------------------- 1 | /* 2 | Custom sass content goes here 3 | */ 4 | 5 | /* 6 | To customize the look and feel of Ionic, you can override the variables 7 | in ionic's _variables.scss file. 8 | 9 | For example, you might change some of the default colors: 10 | 11 | $light: #fff !default; 12 | $stable: #f8f8f8 !default; 13 | $positive: #4a87ee !default; 14 | $calm: #43cee6 !default; 15 | $balanced: #66cc33 !default; 16 | $energized: #f0b840 !default; 17 | $assertive: #ef4e3a !default; 18 | $royal: #8a6de9 !default; 19 | $dark: #444 !default; 20 | */ 21 | 22 | // The path for our ionicons font files, relative to the built CSS in www/css 23 | $ionicons-font-path: "../lib/ionic/fonts" !default; 24 | 25 | // Include all of Ionic 26 | @import "www/lib/ionic/scss/ionic"; 27 | 28 | // self explanatory 29 | @import "variables"; 30 | 31 | // css common elements 32 | @import "common/mixins"; 33 | @import "common/index"; 34 | @import "common/components"; 35 | 36 | // css for each pages 37 | @import "pages/main"; 38 | @import "pages/splash"; 39 | @import "pages/login"; 40 | @import "pages/signup"; 41 | @import "pages/profile"; 42 | @import "pages/users"; 43 | -------------------------------------------------------------------------------- /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: #4a87ee !default; 10 | $calm: #43cee6 !default; 11 | $balanced: #66cc33 !default; 12 | $energized: #f0b840 !default; 13 | $assertive: #ef4e3a !default; 14 | $royal: #8a6de9 !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 | -------------------------------------------------------------------------------- /scss/pages/main.scss: -------------------------------------------------------------------------------- 1 | /* 2 | main css 3 | */ 4 | 5 | .main-page { 6 | @include page-slogan(); 7 | @include content-bg(cover, #ffffff); 8 | 9 | text-align: center; 10 | 11 | &.home-bg{ 12 | background: #383a4c; 13 | } 14 | 15 | .logo{ 16 | @include content-bg(contain,transparent); 17 | background-image: url('../img/a_logo.png'); 18 | width:30%; 19 | height:20%; 20 | margin: 25% auto 25px auto; 21 | position: relative; 22 | z-index:2; 23 | } 24 | .slogan { 25 | font-size: 16px; 26 | color: #ffffff; 27 | position: relative; 28 | z-index:2; 29 | } 30 | 31 | .pseudo-link{ 32 | color: rgba(255,255,255,1); 33 | font-size: 15px; 34 | text-decoration: none; 35 | } 36 | 37 | .button { 38 | width: 88%; 39 | height:56px; 40 | margin:10px auto; 41 | position:relative; 42 | padding:0; 43 | background-position: cover; 44 | text-transform: uppercase; 45 | font-size:16px; 46 | letter-spacing: 0.5px; 47 | z-index:2; 48 | 49 | } 50 | 51 | 52 | } 53 | 54 | -------------------------------------------------------------------------------- /scss/pages/signup.scss: -------------------------------------------------------------------------------- 1 | /* 2 | signup 3 | */ -------------------------------------------------------------------------------- /scss/pages/splash.scss: -------------------------------------------------------------------------------- 1 | /* 2 | splash 3 | */ -------------------------------------------------------------------------------- /scss/pages/users.scss: -------------------------------------------------------------------------------- 1 | /* 2 | Users page 3 | */ 4 | 5 | .users-page { 6 | @include content-bg(cover, #ffffff); 7 | background: #383a4c; 8 | 9 | .list{ 10 | .item-avatar{ 11 | width: 100%; 12 | 13 | &.user-list-item{ 14 | height: 90px; 15 | background: transparent; 16 | border-width: 0 0 1px 0; 17 | border-color: rgba(0,0,0,0.2); 18 | color: #ffffff; 19 | padding-left: 80px; 20 | 21 | &.activated{ 22 | background : rgba(0,0,0,0.5); 23 | } 24 | 25 | .avatar { 26 | border-radius: 50%; 27 | top: 10px; 28 | max-width: 60px; 29 | max-height: 60px; 30 | } 31 | 32 | .name { 33 | color: #ffffff; 34 | font-size:15px; 35 | } 36 | 37 | .username{ 38 | color: #babcc6; 39 | font-size:14px; 40 | } 41 | 42 | .location { 43 | color: #babcc6; 44 | font-size:13px; 45 | } 46 | } 47 | } 48 | } 49 | } 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /www/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ -------------------------------------------------------------------------------- /www/img/Screenshot_2014-09-15-16-10-25.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/Screenshot_2014-09-15-16-10-25.png -------------------------------------------------------------------------------- /www/img/Screenshot_2014-09-15-16-10-30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/Screenshot_2014-09-15-16-10-30.png -------------------------------------------------------------------------------- /www/img/Screenshot_2014-09-15-16-10-36.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/Screenshot_2014-09-15-16-10-36.png -------------------------------------------------------------------------------- /www/img/Screenshot_2014-09-15-16-12-26.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/Screenshot_2014-09-15-16-12-26.png -------------------------------------------------------------------------------- /www/img/Screenshot_2014-09-15-16-12-36.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/Screenshot_2014-09-15-16-12-36.png -------------------------------------------------------------------------------- /www/img/Screenshot_2014-09-15-16-12-49.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/Screenshot_2014-09-15-16-12-49.png -------------------------------------------------------------------------------- /www/img/Screenshot_2014-09-15-16-12-55.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/Screenshot_2014-09-15-16-12-55.png -------------------------------------------------------------------------------- /www/img/Screenshot_2014-09-15-16-13-01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/Screenshot_2014-09-15-16-13-01.png -------------------------------------------------------------------------------- /www/img/Screenshot_2014-09-15-16-13-05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/Screenshot_2014-09-15-16-13-05.png -------------------------------------------------------------------------------- /www/img/Screenshot_2014-09-15-16-13-11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/Screenshot_2014-09-15-16-13-11.png -------------------------------------------------------------------------------- /www/img/a_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/a_logo.png -------------------------------------------------------------------------------- /www/img/arrow-icon-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/arrow-icon-2.png -------------------------------------------------------------------------------- /www/img/arrow-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/arrow-icon.png -------------------------------------------------------------------------------- /www/img/avatar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/avatar.png -------------------------------------------------------------------------------- /www/img/bg_new.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/bg_new.png -------------------------------------------------------------------------------- /www/img/button-transparent-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/button-transparent-bg.png -------------------------------------------------------------------------------- /www/img/chatrooms.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/chatrooms.png -------------------------------------------------------------------------------- /www/img/check-mark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/check-mark.png -------------------------------------------------------------------------------- /www/img/email_darkui.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/email_darkui.png -------------------------------------------------------------------------------- /www/img/explore-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/explore-icon.png -------------------------------------------------------------------------------- /www/img/feed-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/feed-icon.png -------------------------------------------------------------------------------- /www/img/follow-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/follow-icon.png -------------------------------------------------------------------------------- /www/img/gradient-black-to-transparent-top.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/gradient-black-to-transparent-top.png -------------------------------------------------------------------------------- /www/img/gradients-profile-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/gradients-profile-1.png -------------------------------------------------------------------------------- /www/img/gradients-profile-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/gradients-profile-2.png -------------------------------------------------------------------------------- /www/img/gradients-profile-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/gradients-profile-3.png -------------------------------------------------------------------------------- /www/img/gradients-profile-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/gradients-profile-4.png -------------------------------------------------------------------------------- /www/img/gradients-profile-5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/gradients-profile-5.png -------------------------------------------------------------------------------- /www/img/group.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/group.png -------------------------------------------------------------------------------- /www/img/group_user-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/group_user-icon.png -------------------------------------------------------------------------------- /www/img/iconmonstr-pencil-10-icon-256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/iconmonstr-pencil-10-icon-256.png -------------------------------------------------------------------------------- /www/img/instagram-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/instagram-icon.png -------------------------------------------------------------------------------- /www/img/ionic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/ionic.png -------------------------------------------------------------------------------- /www/img/lock_darkui.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/lock_darkui.png -------------------------------------------------------------------------------- /www/img/logout-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/logout-icon.png -------------------------------------------------------------------------------- /www/img/messages-icon-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/messages-icon-2.png -------------------------------------------------------------------------------- /www/img/messages-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/messages-icon.png -------------------------------------------------------------------------------- /www/img/settings-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/settings-icon.png -------------------------------------------------------------------------------- /www/img/twitter-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/twitter-icon.png -------------------------------------------------------------------------------- /www/img/user-icon-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/user-icon-2.png -------------------------------------------------------------------------------- /www/img/user-icon-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/user-icon-3.png -------------------------------------------------------------------------------- /www/img/user-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/user-icon.png -------------------------------------------------------------------------------- /www/img/user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/user.png -------------------------------------------------------------------------------- /www/img/user_darkui.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/user_darkui.png -------------------------------------------------------------------------------- /www/img/x-mark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/img/x-mark.png -------------------------------------------------------------------------------- /www/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | AuthenticateMe (sample authentication app made with ionic / angularjs / cordova powered by a nodejs server 7 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /www/js/controllers/users/profile.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | /* 3 | * controllers/users/profile.js 4 | * controller for the user profile page 5 | * 6 | * (c) 2014 Vincent Maliko http://frnchnrd.com 7 | * License: MIT 8 | */ 9 | 10 | angular.module('controllers.users.profile', ['services.models.user']) 11 | 12 | .controller('UserCtrl', [ 13 | 'CtrlFilter', 14 | 'UserModel', 15 | '$ionicLoading', 16 | '$timeout', 17 | '$scope', 18 | '$state', 19 | '$stateParams', 20 | 'Constants', 21 | function(CtrlFilter, UserModel, $ionicLoading, $timeout, $scope,$state, $stateParams, Constants) { 22 | if(Constants.DEBUGMODE){ 23 | console.log("UserCtrl controller"); 24 | console.log($stateParams); 25 | } 26 | 27 | // the data was preloaded in the CtrlFilter dependency 28 | // therefore we set profile to user.info after instantiating user 29 | var user = new UserModel(CtrlFilter.params.model); 30 | 31 | $scope.profile = user.info; 32 | 33 | 34 | $scope.$on("$destroy", function() { 35 | // garbage collection 36 | 37 | if(Constants.DEBUGMODE){ 38 | console.log('destroying UserCtrl'); 39 | } 40 | 41 | user = null; 42 | }); 43 | }]) -------------------------------------------------------------------------------- /www/js/services/common/constants.js: -------------------------------------------------------------------------------- 1 | 'use.strict' 2 | /* 3 | * common/constants.js 4 | * 5 | * (c) 2014 Vincent Maliko http://frnchnrd.com 6 | * License: MIT 7 | */ 8 | 9 | angular.module('services.common.constants',[]) 10 | 11 | .service('Constants',[function(){ 12 | 13 | var _API = { 14 | baseUrl: "http://authenticate-app-me.herokuapp.com" 15 | //baseUrl: "http://localhost:3000" 16 | } 17 | 18 | var _img = { 19 | avatar : "img/avatar.png", 20 | profile_bg : "img/bg_new.png" 21 | } 22 | 23 | var _timeouts = { 24 | collection: { 25 | user : 0 26 | } 27 | } 28 | 29 | var constants = { 30 | DEBUGMODE : false, 31 | SHOWBROADCAST_EVENTS : true, 32 | API: _API, 33 | IMG: _img, 34 | timeouts: _timeouts 35 | }; 36 | 37 | 38 | 39 | return constants; 40 | }]) -------------------------------------------------------------------------------- /www/lib/angular-animate/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "angular-animate", 3 | "version": "1.2.23", 4 | "main": "./angular-animate.js", 5 | "dependencies": { 6 | "angular": "1.2.23" 7 | }, 8 | "homepage": "https://github.com/angular/bower-angular-animate", 9 | "_release": "1.2.23", 10 | "_resolution": { 11 | "type": "version", 12 | "tag": "v1.2.23", 13 | "commit": "a5b1e7109e5b9a0276540cdafc92d6fedfec8da5" 14 | }, 15 | "_source": "git://github.com/angular/bower-angular-animate.git", 16 | "_target": "~1.2.17", 17 | "_originalSource": "angular-animate" 18 | } -------------------------------------------------------------------------------- /www/lib/angular-animate/README.md: -------------------------------------------------------------------------------- 1 | # bower-angular-animate 2 | 3 | This repo is for distribution on `bower`. The source for this module is in the 4 | [main AngularJS repo](https://github.com/angular/angular.js/tree/master/src/ngAnimate). 5 | Please file issues and pull requests against that repo. 6 | 7 | ## Install 8 | 9 | Install with `bower`: 10 | 11 | ```shell 12 | bower install angular-animate 13 | ``` 14 | 15 | Add a ` 19 | ``` 20 | 21 | And add `ngAnimate` as a dependency for your app: 22 | 23 | ```javascript 24 | angular.module('myApp', ['ngAnimate']); 25 | ``` 26 | 27 | ## Documentation 28 | 29 | Documentation is available on the 30 | [AngularJS docs site](http://docs.angularjs.org/api/ngAnimate). 31 | 32 | ## License 33 | 34 | The MIT License 35 | 36 | Copyright (c) 2010-2012 Google, Inc. http://angularjs.org 37 | 38 | Permission is hereby granted, free of charge, to any person obtaining a copy 39 | of this software and associated documentation files (the "Software"), to deal 40 | in the Software without restriction, including without limitation the rights 41 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 42 | copies of the Software, and to permit persons to whom the Software is 43 | furnished to do so, subject to the following conditions: 44 | 45 | The above copyright notice and this permission notice shall be included in 46 | all copies or substantial portions of the Software. 47 | 48 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 49 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 50 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 51 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 52 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 53 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 54 | THE SOFTWARE. 55 | -------------------------------------------------------------------------------- /www/lib/angular-animate/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "angular-animate", 3 | "version": "1.2.23", 4 | "main": "./angular-animate.js", 5 | "dependencies": { 6 | "angular": "1.2.23" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /www/lib/angular-sanitize/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "angular-sanitize", 3 | "version": "1.2.23", 4 | "main": "./angular-sanitize.js", 5 | "dependencies": { 6 | "angular": "1.2.23" 7 | }, 8 | "homepage": "https://github.com/angular/bower-angular-sanitize", 9 | "_release": "1.2.23", 10 | "_resolution": { 11 | "type": "version", 12 | "tag": "v1.2.23", 13 | "commit": "c64ed360a0ee54d4f56da6ab84904478c2423628" 14 | }, 15 | "_source": "git://github.com/angular/bower-angular-sanitize.git", 16 | "_target": "~1.2.17", 17 | "_originalSource": "angular-sanitize" 18 | } -------------------------------------------------------------------------------- /www/lib/angular-sanitize/README.md: -------------------------------------------------------------------------------- 1 | # bower-angular-sanitize 2 | 3 | This repo is for distribution on `bower`. The source for this module is in the 4 | [main AngularJS repo](https://github.com/angular/angular.js/tree/master/src/ngSanitize). 5 | Please file issues and pull requests against that repo. 6 | 7 | ## Install 8 | 9 | Install with `bower`: 10 | 11 | ```shell 12 | bower install angular-sanitize 13 | ``` 14 | 15 | Add a ` 19 | ``` 20 | 21 | And add `ngSanitize` as a dependency for your app: 22 | 23 | ```javascript 24 | angular.module('myApp', ['ngSanitize']); 25 | ``` 26 | 27 | ## Documentation 28 | 29 | Documentation is available on the 30 | [AngularJS docs site](http://docs.angularjs.org/api/ngSanitize). 31 | 32 | ## License 33 | 34 | The MIT License 35 | 36 | Copyright (c) 2010-2012 Google, Inc. http://angularjs.org 37 | 38 | Permission is hereby granted, free of charge, to any person obtaining a copy 39 | of this software and associated documentation files (the "Software"), to deal 40 | in the Software without restriction, including without limitation the rights 41 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 42 | copies of the Software, and to permit persons to whom the Software is 43 | furnished to do so, subject to the following conditions: 44 | 45 | The above copyright notice and this permission notice shall be included in 46 | all copies or substantial portions of the Software. 47 | 48 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 49 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 50 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 51 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 52 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 53 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 54 | THE SOFTWARE. 55 | -------------------------------------------------------------------------------- /www/lib/angular-sanitize/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "angular-sanitize", 3 | "version": "1.2.23", 4 | "main": "./angular-sanitize.js", 5 | "dependencies": { 6 | "angular": "1.2.23" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /www/lib/angular-ui-router/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "angular-ui-router", 3 | "version": "0.2.10", 4 | "main": "./release/angular-ui-router.js", 5 | "dependencies": { 6 | "angular": ">= 1.0.8" 7 | }, 8 | "ignore": [ 9 | "**/.*", 10 | "node_modules", 11 | "bower_components", 12 | "component.json", 13 | "package.json", 14 | "lib", 15 | "config", 16 | "sample", 17 | "test", 18 | "tests", 19 | "ngdoc_assets", 20 | "Gruntfile.js", 21 | "files.js" 22 | ], 23 | "homepage": "https://github.com/angular-ui/ui-router", 24 | "_release": "0.2.10", 25 | "_resolution": { 26 | "type": "version", 27 | "tag": "0.2.10", 28 | "commit": "4f509d6393452c933aa5908939d0a17e47b59388" 29 | }, 30 | "_source": "git://github.com/angular-ui/ui-router.git", 31 | "_target": "0.2.10", 32 | "_originalSource": "angular-ui-router" 33 | } -------------------------------------------------------------------------------- /www/lib/angular-ui-router/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | 2 | ### v0.2.8 (2014-01-16) 3 | 4 | 5 | #### Bug Fixes 6 | 7 | * **$state:** allow null to be passed as 'params' param ([094dc30e](https://github.com/angular-ui/ui-router/commit/094dc30e883e1bd14e50a475553bafeaade3b178)) 8 | * **$state.go:** param inheritance shouldn't inherit from siblings ([aea872e0](https://github.com/angular-ui/ui-router/commit/aea872e0b983cb433436ce5875df10c838fccedb)) 9 | * **uiSrefActive:** annotate controller injection ([85921422](https://github.com/angular-ui/ui-router/commit/85921422ff7fb0effed358136426d616cce3d583), closes [#671](https://github.com/angular-ui/ui-router/issues/671)) 10 | * **uiView:** 11 | * autoscroll tests pass on 1.2.4 & 1.1.5 ([86eacac0](https://github.com/angular-ui/ui-router/commit/86eacac09ca5e9000bd3b9c7ba6e2cc95d883a3a)) 12 | * don't animate initial load ([83b6634d](https://github.com/angular-ui/ui-router/commit/83b6634d27942ca74766b2b1244a7fc52c5643d9)) 13 | * test pass against 1.0.8 and 1.2.4 ([a402415a](https://github.com/angular-ui/ui-router/commit/a402415a2a28b360c43b9fe8f4f54c540f6c33de)) 14 | * it should autoscroll when expr is missing. ([8bb9e27a](https://github.com/angular-ui/ui-router/commit/8bb9e27a2986725f45daf44c4c9f846385095aff)) 15 | 16 | 17 | #### Features 18 | 19 | * **uiSref:** add target attribute behaviour ([c12bf9a5](https://github.com/angular-ui/ui-router/commit/c12bf9a520d30d70294e3d82de7661900f8e394e)) 20 | * **uiView:** 21 | * merge autoscroll expression test. ([b89e0f87](https://github.com/angular-ui/ui-router/commit/b89e0f871d5cc35c10925ede986c10684d5c9252)) 22 | * cache and test autoscroll expression ([ee262282](https://github.com/angular-ui/ui-router/commit/ee2622828c2ce83807f006a459ac4e11406d9258)) 23 | 24 | -------------------------------------------------------------------------------- /www/lib/angular-ui-router/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2014 The AngularUI Team, Karsten Sperling 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /www/lib/angular-ui-router/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "angular-ui-router", 3 | "version": "0.2.10", 4 | "main": "./release/angular-ui-router.js", 5 | "dependencies": { 6 | "angular": ">= 1.0.8" 7 | }, 8 | "ignore": [ 9 | "**/.*", 10 | "node_modules", 11 | "bower_components", 12 | "component.json", 13 | "package.json", 14 | "lib", 15 | "config", 16 | "sample", 17 | "test", 18 | "tests", 19 | "ngdoc_assets", 20 | "Gruntfile.js", 21 | "files.js" 22 | ] 23 | } 24 | -------------------------------------------------------------------------------- /www/lib/angular-ui-router/src/stateFilters.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @ngdoc filter 3 | * @name ui.router.state.filter:isState 4 | * 5 | * @requires ui.router.state.$state 6 | * 7 | * @description 8 | * Translates to {@link ui.router.state.$state#methods_is $state.is("stateName")}. 9 | */ 10 | $IsStateFilter.$inject = ['$state']; 11 | function $IsStateFilter($state) { 12 | return function(state) { 13 | return $state.is(state); 14 | }; 15 | } 16 | 17 | /** 18 | * @ngdoc filter 19 | * @name ui.router.state.filter:includedByState 20 | * 21 | * @requires ui.router.state.$state 22 | * 23 | * @description 24 | * Translates to {@link ui.router.state.$state#methods_includes $state.includes('fullOrPartialStateName')}. 25 | */ 26 | $IncludedByStateFilter.$inject = ['$state']; 27 | function $IncludedByStateFilter($state) { 28 | return function(state) { 29 | return $state.includes(state); 30 | }; 31 | } 32 | 33 | angular.module('ui.router.state') 34 | .filter('isState', $IsStateFilter) 35 | .filter('includedByState', $IncludedByStateFilter); 36 | -------------------------------------------------------------------------------- /www/lib/angular-ui-router/src/viewScroll.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @ngdoc object 3 | * @name ui.router.state.$uiViewScrollProvider 4 | * 5 | * @description 6 | * Provider that returns the {@link ui.router.state.$uiViewScroll} service function. 7 | */ 8 | function $ViewScrollProvider() { 9 | 10 | var useAnchorScroll = false; 11 | 12 | /** 13 | * @ngdoc function 14 | * @name ui.router.state.$uiViewScrollProvider#useAnchorScroll 15 | * @methodOf ui.router.state.$uiViewScrollProvider 16 | * 17 | * @description 18 | * Reverts back to using the core [`$anchorScroll`](http://docs.angularjs.org/api/ng.$anchorScroll) service for 19 | * scrolling based on the url anchor. 20 | */ 21 | this.useAnchorScroll = function () { 22 | useAnchorScroll = true; 23 | }; 24 | 25 | /** 26 | * @ngdoc object 27 | * @name ui.router.state.$uiViewScroll 28 | * 29 | * @requires $anchorScroll 30 | * @requires $timeout 31 | * 32 | * @description 33 | * When called with a jqLite element, it scrolls the element into view (after a 34 | * `$timeout` so the DOM has time to refresh). 35 | * 36 | * If you prefer to rely on `$anchorScroll` to scroll the view to the anchor, 37 | * this can be enabled by calling {@link ui.router.state.$uiViewScrollProvider#methods_useAnchorScroll `$uiViewScrollProvider.useAnchorScroll()`}. 38 | */ 39 | this.$get = ['$anchorScroll', '$timeout', function ($anchorScroll, $timeout) { 40 | if (useAnchorScroll) { 41 | return $anchorScroll; 42 | } 43 | 44 | return function ($element) { 45 | $timeout(function () { 46 | $element[0].scrollIntoView(); 47 | }, 0, false); 48 | }; 49 | }]; 50 | } 51 | 52 | angular.module('ui.router.state').provider('$uiViewScroll', $ViewScrollProvider); 53 | -------------------------------------------------------------------------------- /www/lib/angular/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "angular", 3 | "version": "1.2.23", 4 | "main": "./angular.js", 5 | "dependencies": {}, 6 | "homepage": "https://github.com/angular/bower-angular", 7 | "_release": "1.2.23", 8 | "_resolution": { 9 | "type": "version", 10 | "tag": "v1.2.23", 11 | "commit": "53716560a512e598c32c5dbc70b2e41a793443e9" 12 | }, 13 | "_source": "git://github.com/angular/bower-angular.git", 14 | "_target": "~1.2.17", 15 | "_originalSource": "angular" 16 | } -------------------------------------------------------------------------------- /www/lib/angular/README.md: -------------------------------------------------------------------------------- 1 | # bower-angular 2 | 3 | This repo is for distribution on `bower`. The source for this module is in the 4 | [main AngularJS repo](https://github.com/angular/angular.js). 5 | Please file issues and pull requests against that repo. 6 | 7 | ## Install 8 | 9 | Install with `bower`: 10 | 11 | ```shell 12 | bower install angular 13 | ``` 14 | 15 | Add a ` 19 | ``` 20 | 21 | ## Documentation 22 | 23 | Documentation is available on the 24 | [AngularJS docs site](http://docs.angularjs.org/). 25 | 26 | ## License 27 | 28 | The MIT License 29 | 30 | Copyright (c) 2010-2012 Google, Inc. http://angularjs.org 31 | 32 | Permission is hereby granted, free of charge, to any person obtaining a copy 33 | of this software and associated documentation files (the "Software"), to deal 34 | in the Software without restriction, including without limitation the rights 35 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 36 | copies of the Software, and to permit persons to whom the Software is 37 | furnished to do so, subject to the following conditions: 38 | 39 | The above copyright notice and this permission notice shall be included in 40 | all copies or substantial portions of the Software. 41 | 42 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 43 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 44 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 45 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 46 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 47 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 48 | THE SOFTWARE. 49 | -------------------------------------------------------------------------------- /www/lib/angular/angular-csp.css: -------------------------------------------------------------------------------- 1 | /* Include this file in your html if you are using the CSP mode. */ 2 | 3 | @charset "UTF-8"; 4 | 5 | [ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], 6 | .ng-cloak, .x-ng-cloak, 7 | .ng-hide { 8 | display: none !important; 9 | } 10 | 11 | ng\:form { 12 | display: block; 13 | } 14 | 15 | .ng-animate-block-transitions { 16 | transition:0s all!important; 17 | -webkit-transition:0s all!important; 18 | } 19 | 20 | /* show the element during a show/hide animation when the 21 | * animation is ongoing, but the .ng-hide class is active */ 22 | .ng-hide-add-active, .ng-hide-remove { 23 | display: block!important; 24 | } 25 | -------------------------------------------------------------------------------- /www/lib/angular/angular.min.js.gzip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/lib/angular/angular.min.js.gzip -------------------------------------------------------------------------------- /www/lib/angular/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "angular", 3 | "version": "1.2.23", 4 | "main": "./angular.js", 5 | "dependencies": { 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /www/lib/collide/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "collide", 3 | "version": "1.0.0-beta.1", 4 | "main": "collide.js", 5 | "ignore": [ 6 | "src" 7 | ], 8 | "dependencies": {}, 9 | "homepage": "https://github.com/driftyco/collide", 10 | "_release": "1.0.0-beta.1", 11 | "_resolution": { 12 | "type": "version", 13 | "tag": "v1.0.0-beta.1", 14 | "commit": "bbc4a1c2b160181d4115c2c7369ae82243cbb475" 15 | }, 16 | "_source": "git://github.com/driftyco/collide.git", 17 | "_target": "1.0.0-beta.1", 18 | "_originalSource": "collide" 19 | } -------------------------------------------------------------------------------- /www/lib/collide/.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | 5 | # Runtime data 6 | pids 7 | *.pid 8 | *.seed 9 | 10 | # Directory for instrumented libs generated by jscoverage/JSCover 11 | lib-cov 12 | 13 | # Coverage directory used by tools like istanbul 14 | coverage 15 | 16 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 17 | .grunt 18 | 19 | # Compiled binary addons (http://nodejs.org/api/addons.html) 20 | build/Release 21 | 22 | # Dependency directory 23 | # Commenting this out is preferred by some people, see 24 | # https://npmjs.org/doc/faq.html#Should-I-check-my-node_modules-folder-into-git 25 | node_modules 26 | bower_components 27 | 28 | # Users Environment Variables 29 | .lock-wscript 30 | 31 | # Built files 32 | dist 33 | -------------------------------------------------------------------------------- /www/lib/collide/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "collide", 3 | "version": "1.0.0-beta.1", 4 | "main": "collide.js", 5 | "ignore": [ 6 | "src" 7 | ], 8 | "dependencies": {} 9 | } 10 | -------------------------------------------------------------------------------- /www/lib/collide/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "collide", 3 | "version": "0.0.4", 4 | "main": "collide.js", 5 | "scripts": { 6 | "build": "mkdir -p dist && browserify src/index.js -s collide > dist/collide.js", 7 | "test": "node_modules/.bin/jasmine-node test --color", 8 | "autotest": "node_modules/.bin/jasmine-node test --watch src --autotest --color" 9 | }, 10 | "dependencies": { 11 | "raf": "^2.0.1", 12 | "feature": "^0.1.4", 13 | "performance-now": "^0.1.3" 14 | }, 15 | "devDependencies": { 16 | "jasmine-node": "^1.14.5", 17 | "proxyquire": "^1.0.1" 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /www/lib/ionic/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ionic", 3 | "version": "1.0.0-beta.11", 4 | "codename": "indium-iguana", 5 | "homepage": "https://github.com/driftyco/ionic", 6 | "authors": [ 7 | "Max Lynch ", 8 | "Adam Bradley ", 9 | "Ben Sperry " 10 | ], 11 | "description": "Advanced HTML5 hybrid mobile app development framework.", 12 | "main": [ 13 | "css/ionic.css", 14 | "fonts/*", 15 | "js/ionic.js", 16 | "js/ionic-angular.js" 17 | ], 18 | "keywords": [ 19 | "mobile", 20 | "html5", 21 | "ionic", 22 | "cordova", 23 | "phonegap", 24 | "trigger", 25 | "triggerio", 26 | "angularjs", 27 | "angular" 28 | ], 29 | "license": "MIT", 30 | "private": false, 31 | "dependencies": { 32 | "angular": "~1.2.17", 33 | "angular-animate": "~1.2.17", 34 | "angular-sanitize": "~1.2.17", 35 | "angular-ui-router": "0.2.10", 36 | "collide": "1.0.0-beta.1" 37 | }, 38 | "_release": "1.0.0-beta.11", 39 | "_resolution": { 40 | "type": "version", 41 | "tag": "v1.0.0-beta.11", 42 | "commit": "a220184091c788861273870dd10657e3629f33b2" 43 | }, 44 | "_source": "git://github.com/driftyco/ionic-bower.git", 45 | "_target": "1.0.0-beta.11", 46 | "_originalSource": "driftyco/ionic-bower" 47 | } -------------------------------------------------------------------------------- /www/lib/ionic/README.md: -------------------------------------------------------------------------------- 1 | # ionic-bower 2 | 3 | Bower repository for [Ionic Framework](http://github.com/driftyco/ionic) 4 | 5 | ### Usage 6 | 7 | Include `js/ionic.bundle.js` to get ionic and all of its dependencies. 8 | 9 | Alternatively, include the individual ionic files with the dependencies separately. 10 | 11 | ### Versions 12 | 13 | To install the latest stable version, `bower install driftyco/ionic-bower` 14 | 15 | To install the latest nightly release, `bower install driftyco/ionic-bower#master` 16 | -------------------------------------------------------------------------------- /www/lib/ionic/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ionic", 3 | "version": "1.0.0-beta.11", 4 | "codename": "indium-iguana", 5 | "homepage": "https://github.com/driftyco/ionic", 6 | "authors": [ 7 | "Max Lynch ", 8 | "Adam Bradley ", 9 | "Ben Sperry " 10 | ], 11 | "description": "Advanced HTML5 hybrid mobile app development framework.", 12 | "main": [ 13 | "css/ionic.css", 14 | "fonts/*", 15 | "js/ionic.js", 16 | "js/ionic-angular.js" 17 | ], 18 | "keywords": [ 19 | "mobile", 20 | "html5", 21 | "ionic", 22 | "cordova", 23 | "phonegap", 24 | "trigger", 25 | "triggerio", 26 | "angularjs", 27 | "angular" 28 | ], 29 | "license": "MIT", 30 | "private": false, 31 | "dependencies": { 32 | "angular": "~1.2.17", 33 | "angular-animate": "~1.2.17", 34 | "angular-sanitize": "~1.2.17", 35 | "angular-ui-router": "0.2.10", 36 | "collide": "1.0.0-beta.1" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /www/lib/ionic/fonts/ionicons.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/lib/ionic/fonts/ionicons.eot -------------------------------------------------------------------------------- /www/lib/ionic/fonts/ionicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/lib/ionic/fonts/ionicons.ttf -------------------------------------------------------------------------------- /www/lib/ionic/fonts/ionicons.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malikov/Authenticate.me-client-cordova-ionic/59a7b3df2de8a461af1d1b7f2a7008a3c788028e/www/lib/ionic/fonts/ionicons.woff -------------------------------------------------------------------------------- /www/lib/ionic/scss/_action-sheet.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Action Sheets 3 | * -------------------------------------------------- 4 | */ 5 | 6 | .action-sheet-backdrop { 7 | @include transition(background-color 300ms ease-in-out); 8 | position: fixed; 9 | top: 0; 10 | left: 0; 11 | z-index: $z-index-action-sheet; 12 | width: 100%; 13 | height: 100%; 14 | background-color: rgba(0,0,0,0); 15 | 16 | &.active { 17 | background-color: rgba(0,0,0,0.5); 18 | } 19 | } 20 | 21 | .action-sheet-wrapper { 22 | @include translate3d(0, 100%, 0); 23 | @include transition(all ease-in-out 300ms); 24 | position: absolute; 25 | bottom: 0; 26 | width: 100%; 27 | } 28 | 29 | .action-sheet-up { 30 | @include translate3d(0, 0, 0); 31 | } 32 | 33 | .action-sheet { 34 | margin-left: 15px; 35 | margin-right: 15px; 36 | width: auto; 37 | z-index: $z-index-action-sheet; 38 | overflow: hidden; 39 | 40 | .button { 41 | display: block; 42 | padding: 1px; 43 | width: 100%; 44 | border-radius: 0; 45 | 46 | background-color: transparent; 47 | 48 | color: $positive; 49 | font-size: 18px; 50 | 51 | &.destructive { 52 | color: $assertive; 53 | } 54 | } 55 | } 56 | 57 | .action-sheet-title { 58 | padding: 10px; 59 | color: lighten($base-color, 40%); 60 | text-align: center; 61 | font-size: 12px; 62 | } 63 | 64 | .action-sheet-group { 65 | margin-bottom: 5px; 66 | border-radius: $sheet-border-radius; 67 | background-color: #fff; 68 | .button { 69 | border-width: 1px 0px 0px 0px; 70 | border-radius: 0; 71 | 72 | &.active { 73 | background-color: transparent; 74 | color: inherit; 75 | } 76 | } 77 | .button:first-child:last-child { 78 | border-width: 0; 79 | } 80 | } 81 | 82 | .action-sheet-open { 83 | pointer-events: none; 84 | 85 | &.modal-open .modal { 86 | pointer-events: none; 87 | } 88 | 89 | .action-sheet-backdrop { 90 | pointer-events: auto; 91 | } 92 | } 93 | -------------------------------------------------------------------------------- /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: rgba(0,0,0,0.4); 12 | 13 | visibility: hidden; 14 | opacity: 0; 15 | 16 | &.visible { 17 | visibility: visible; 18 | } 19 | &.active { 20 | opacity: 1; 21 | } 22 | 23 | @include transition(0.1s opacity linear); 24 | } 25 | -------------------------------------------------------------------------------- /www/lib/ionic/scss/_badge.scss: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Badges 4 | * -------------------------------------------------- 5 | */ 6 | 7 | .badge { 8 | @include badge-style($badge-default-bg, $badge-default-text); 9 | z-index: $z-index-badge; 10 | display: inline-block; 11 | padding: 3px 8px; 12 | min-width: 10px; 13 | border-radius: $badge-border-radius; 14 | vertical-align: baseline; 15 | text-align: center; 16 | white-space: nowrap; 17 | font-weight: $badge-font-weight; 18 | font-size: $badge-font-size; 19 | line-height: $badge-line-height; 20 | 21 | &:empty { 22 | display: none; 23 | } 24 | } 25 | 26 | //Be sure to override specificity of rule that 'badge color matches tab color by default' 27 | .tabs .tab-item .badge, 28 | .badge { 29 | &.badge-light { 30 | @include badge-style($badge-light-bg, $badge-light-text); 31 | } 32 | &.badge-stable { 33 | @include badge-style($badge-stable-bg, $badge-stable-text); 34 | } 35 | &.badge-positive { 36 | @include badge-style($badge-positive-bg, $badge-positive-text); 37 | } 38 | &.badge-calm { 39 | @include badge-style($badge-calm-bg, $badge-calm-text); 40 | } 41 | &.badge-assertive { 42 | @include badge-style($badge-assertive-bg, $badge-assertive-text); 43 | } 44 | &.badge-balanced { 45 | @include badge-style($badge-balanced-bg, $badge-balanced-text); 46 | } 47 | &.badge-energized { 48 | @include badge-style($badge-energized-bg, $badge-energized-text); 49 | } 50 | &.badge-royal { 51 | @include badge-style($badge-royal-bg, $badge-royal-text); 52 | } 53 | &.badge-dark { 54 | @include badge-style($badge-dark-bg, $badge-dark-text); 55 | } 56 | } 57 | 58 | // Quick fix for labels/badges in buttons 59 | .button .badge { 60 | position: relative; 61 | top: -1px; 62 | } 63 | -------------------------------------------------------------------------------- /www/lib/ionic/scss/_button-bar.scss: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Button Bar 4 | * -------------------------------------------------- 5 | */ 6 | 7 | .button-bar { 8 | @include display-flex(); 9 | @include flex(1); 10 | width: 100%; 11 | 12 | &.button-bar-inline { 13 | display: block; 14 | width: auto; 15 | 16 | @include clearfix(); 17 | 18 | > .button { 19 | width: auto; 20 | display: inline-block; 21 | float: left; 22 | } 23 | } 24 | } 25 | 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: 2px 0px 0px 2px; 49 | } 50 | &:last-child { 51 | border-right-width: 1px; 52 | border-radius: 0px 2px 2px 0px; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /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 | &.visible { 25 | visibility: visible; 26 | } 27 | &.active { 28 | opacity: 1; 29 | } 30 | 31 | .loading { 32 | padding: $loading-padding; 33 | 34 | border-radius: $loading-border-radius; 35 | background-color: $loading-bg-color; 36 | 37 | color: $loading-text-color; 38 | 39 | text-align: center; 40 | text-overflow: ellipsis; 41 | font-size: $loading-font-size; 42 | 43 | h1, h2, h3, h4, h5, h6 { 44 | color: $loading-text-color; 45 | } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /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 | 40 | .grade-b .menu-content, 41 | .grade-c .menu-content { 42 | @include box-sizing(content-box); 43 | right: -1px; 44 | left: -1px; 45 | border-right: 1px solid #ccc; 46 | border-left: 1px solid #ccc; 47 | box-shadow: none; 48 | } 49 | 50 | .menu-left { 51 | left: 0; 52 | } 53 | 54 | .menu-right { 55 | right: 0; 56 | } 57 | 58 | .menu-animated { 59 | @include transition-transform($menu-animation-speed ease); 60 | } 61 | -------------------------------------------------------------------------------- /www/lib/ionic/scss/_popup.scss: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Popups 4 | * -------------------------------------------------- 5 | */ 6 | 7 | .popup { 8 | position: fixed; 9 | top: 50%; 10 | left: 50%; 11 | z-index: $z-index-popup; 12 | 13 | // Start hidden 14 | visibility: hidden; 15 | 16 | width: $popup-width; 17 | max-width: 100%; 18 | 19 | border-radius: $popup-border-radius; 20 | background-color: $popup-background-color; 21 | 22 | &.popup-hidden { 23 | @include animation-name(scaleOut); 24 | @include animation-duration($popup-leave-animation-duration); 25 | @include animation-timing-function(ease-in-out); 26 | @include animation-fill-mode(both); 27 | } 28 | 29 | &.popup-showing { 30 | visibility: visible; 31 | } 32 | 33 | &.active { 34 | @include animation-name(superScaleIn); 35 | @include animation-duration($popup-enter-animation-duration); 36 | @include animation-timing-function(ease-in-out); 37 | @include animation-fill-mode(both); 38 | } 39 | &.popup-tall{ 40 | overflow:hidden; 41 | .popup-body{ 42 | overflow:auto; 43 | } 44 | } 45 | } 46 | 47 | .popup-head { 48 | padding: 15px 0px; 49 | border-bottom: 1px solid #eee; 50 | text-align: center; 51 | } 52 | .popup-title { 53 | margin: 0; 54 | padding: 0; 55 | font-size: 15px; 56 | } 57 | .popup-sub-title { 58 | margin: 5px 0 0 0; 59 | padding: 0; 60 | font-weight: normal; 61 | font-size: 11px; 62 | } 63 | .popup-body { 64 | padding: 10px; 65 | } 66 | 67 | .popup-buttons { 68 | &.row { 69 | padding: 10px 10px; 70 | } 71 | 72 | .button { 73 | margin: 0px 5px; 74 | min-height: $popup-button-min-height; 75 | border-radius: $popup-button-border-radius; 76 | line-height: $popup-button-line-height; 77 | 78 | &:first-child { 79 | margin-left: 0px; 80 | } 81 | &:last-child { 82 | margin-right: 0px; 83 | } 84 | } 85 | } 86 | 87 | .popup-open { 88 | pointer-events: none; 89 | 90 | &.modal-open .modal { 91 | pointer-events: none; 92 | } 93 | 94 | .popup-backdrop, .popup { 95 | pointer-events: auto; 96 | } 97 | } 98 | -------------------------------------------------------------------------------- /www/lib/ionic/scss/_progress.scss: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Progress 4 | * -------------------------------------------------- 5 | */ 6 | 7 | progress { 8 | display: block; 9 | margin: $progress-margin; 10 | width: $progress-width; 11 | } 12 | -------------------------------------------------------------------------------- /www/lib/ionic/scss/_radio.scss: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Radio Button Inputs 4 | * -------------------------------------------------- 5 | */ 6 | 7 | .item-radio { 8 | padding: 0; 9 | 10 | &:hover { 11 | cursor: pointer; 12 | } 13 | } 14 | 15 | .item-radio .item-content { 16 | /* give some room to the right for the checkmark icon */ 17 | padding-right: $item-padding * 4; 18 | } 19 | 20 | .item-radio .radio-icon { 21 | /* checkmark icon will be hidden by default */ 22 | position: absolute; 23 | top: 0; 24 | right: 0; 25 | z-index: $z-index-item-radio; 26 | visibility: hidden; 27 | padding: $item-padding - 2; 28 | height: 100%; 29 | font-size: 24px; 30 | } 31 | 32 | .item-radio input { 33 | /* hide any radio button inputs elements (the ugly circles) */ 34 | position: absolute; 35 | left: -9999px; 36 | 37 | &:checked ~ .item-content { 38 | /* style the item content when its checked */ 39 | background: #f7f7f7; 40 | } 41 | 42 | &:checked ~ .radio-icon { 43 | /* show the checkmark icon when its checked */ 44 | visibility: visible; 45 | } 46 | } 47 | 48 | // Hack for Android to correctly display the checked item 49 | // http://timpietrusky.com/advanced-checkbox-hack 50 | .platform-android.grade-b .item-radio, 51 | .platform-android.grade-c .item-radio { 52 | -webkit-animation: androidCheckedbugfix infinite 1s; 53 | } 54 | @-webkit-keyframes androidCheckedbugfix { 55 | from { padding: 0; } 56 | to { padding: 0; } 57 | } 58 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /www/lib/ionic/scss/_split-pane.scss: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Split Pane 4 | * -------------------------------------------------- 5 | */ 6 | 7 | .split-pane { 8 | @include display-flex(); 9 | @include align-items(stretch); 10 | width: 100%; 11 | height: 100%; 12 | } 13 | 14 | .split-pane-menu { 15 | @include flex(0, 0, $split-pane-menu-width); 16 | 17 | overflow-y: auto; 18 | width: $split-pane-menu-width; 19 | height: 100%; 20 | border-right: 1px solid $split-pane-menu-border-color; 21 | 22 | @media all and (max-width: 568px) { 23 | border-right: none; 24 | } 25 | } 26 | 27 | .split-pane-content { 28 | @include flex(1, 0, auto); 29 | } 30 | -------------------------------------------------------------------------------- /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 | "split-pane", 31 | 32 | // Forms 33 | "form", 34 | "checkbox", 35 | "toggle", 36 | "radio", 37 | "range", 38 | "select", 39 | "progress", 40 | 41 | // Buttons 42 | "button", 43 | "button-bar", 44 | 45 | // Util 46 | "animations", 47 | "grid", 48 | "util", 49 | "platform"; 50 | -------------------------------------------------------------------------------- /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.svg?v=#{$ionicons-version}#Ionicons") format("svg"); 11 | font-weight: normal; 12 | font-style: normal; 13 | } 14 | 15 | .ion { 16 | display: inline-block; 17 | font-family: $ionicons-font-family; 18 | speak: none; 19 | font-style: normal; 20 | font-weight: normal; 21 | font-variant: normal; 22 | text-transform: none; 23 | text-rendering: auto; 24 | line-height: 1; 25 | -webkit-font-smoothing: antialiased; 26 | -moz-osx-font-smoothing: grayscale; 27 | } -------------------------------------------------------------------------------- /www/lib/ionic/scss/ionicons/ionicons.scss: -------------------------------------------------------------------------------- 1 | @import "ionicons-variables"; 2 | /*! 3 | Ionicons, v1.5.2 4 | Created by Ben Sperry for the Ionic Framework, http://ionicons.com/ 5 | https://twitter.com/benjsperry https://twitter.com/ionicframework 6 | MIT License: https://github.com/driftyco/ionicons 7 | */ 8 | 9 | @import "ionicons-font"; 10 | @import "ionicons-animation"; 11 | @import "ionicons-icons"; 12 | -------------------------------------------------------------------------------- /www/templates/app.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Back 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 |
19 | 20 |
21 |

22 | {{user.name}} 23 |

24 |

25 | {{user.username}} 26 |

27 | 28 |
29 |
30 | 31 | 32 | USERS 33 | 34 | 35 |
36 | 37 | 42 | 43 |
44 |
45 | 46 | 47 |
48 | -------------------------------------------------------------------------------- /www/templates/auth/index.html: -------------------------------------------------------------------------------- 1 | 2 | 26 | 27 | -------------------------------------------------------------------------------- /www/templates/auth/signup.html: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | -------------------------------------------------------------------------------- /www/templates/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 |
8 |

9 | A hybrid (ionic, cordova) authentication app powered by a nodejs server :) 10 |

11 | 12 |

13 | By @frnchnrd 14 |

15 |
16 | 17 | 20 | 21 | 24 | 25 |
26 | 27 |
-------------------------------------------------------------------------------- /www/templates/modal/error.html: -------------------------------------------------------------------------------- 1 |

2 | {{error.message}} 3 |

-------------------------------------------------------------------------------- /www/templates/modal/networkError.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /www/templates/users/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 24 | 25 | 26 | --------------------------------------------------------------------------------