├── .gitignore ├── AntSharesApp.sln ├── AntSharesApp ├── .gitignore ├── AntSharesApp.jsproj ├── bower.json ├── changeList.json ├── config.xml ├── merges │ ├── android │ │ └── scripts │ │ │ ├── android2.3-jscompat.js │ │ │ └── platformOverrides.js │ └── windows │ │ └── scripts │ │ ├── platformOverrides.js │ │ └── winstore-jscompat.js ├── package.json ├── plugins │ ├── android.json │ ├── cordova-plugin-app-event │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── package.json │ │ ├── plugin.xml │ │ └── src │ │ │ └── ios │ │ │ ├── APPAppEventDelegate.h │ │ │ ├── AppDelegate+APPAppEvent.h │ │ │ ├── AppDelegate+APPAppEvent.m │ │ │ ├── CDVPlugin+APPAppEvent.h │ │ │ └── CDVPlugin+APPAppEvent.m │ ├── cordova-plugin-background-mode │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── appbeep.wav │ │ ├── appbeep.wma │ │ ├── package.json │ │ ├── plugin.xml │ │ ├── src │ │ │ ├── android │ │ │ │ ├── BackgroundExt.java │ │ │ │ ├── BackgroundMode.java │ │ │ │ └── ForegroundService.java │ │ │ ├── browser │ │ │ │ └── BackgroundModeProxy.js │ │ │ ├── ios │ │ │ │ ├── APPBackgroundMode.h │ │ │ │ ├── APPBackgroundMode.m │ │ │ │ ├── APPMethodMagic.h │ │ │ │ └── APPMethodMagic.m │ │ │ └── windows │ │ │ │ └── backgroundmodeProxy.js │ │ └── www │ │ │ └── background-mode.js │ ├── cordova-plugin-badge │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── package.json │ │ ├── plugin.xml │ │ ├── src │ │ │ ├── android │ │ │ │ ├── Badge.java │ │ │ │ ├── BadgeImpl.java │ │ │ │ └── badge.gradle │ │ │ ├── browser │ │ │ │ ├── BadgeProxy.js │ │ │ │ └── favico.min.js │ │ │ ├── ios │ │ │ │ ├── APPBadge.h │ │ │ │ ├── APPBadge.m │ │ │ │ ├── UIApplication+APPBadge.h │ │ │ │ └── UIApplication+APPBadge.m │ │ │ ├── windows │ │ │ │ └── BadgeProxy.js │ │ │ └── wp8 │ │ │ │ └── Badge.cs │ │ ├── tests │ │ │ ├── plugin.xml │ │ │ └── tests.js │ │ └── www │ │ │ └── badge.js │ ├── cordova-plugin-compat │ │ ├── README.md │ │ ├── RELEASENOTES.md │ │ ├── package.json │ │ ├── plugin.xml │ │ └── src │ │ │ └── android │ │ │ ├── BuildHelper.java │ │ │ └── PermissionHelper.java │ ├── cordova-plugin-device │ │ ├── CONTRIBUTING.md │ │ ├── LICENSE │ │ ├── NOTICE │ │ ├── README.md │ │ ├── RELEASENOTES.md │ │ ├── doc │ │ │ ├── de │ │ │ │ ├── README.md │ │ │ │ └── index.md │ │ │ ├── es │ │ │ │ ├── README.md │ │ │ │ └── index.md │ │ │ ├── fr │ │ │ │ ├── README.md │ │ │ │ └── index.md │ │ │ ├── it │ │ │ │ ├── README.md │ │ │ │ └── index.md │ │ │ ├── ja │ │ │ │ ├── README.md │ │ │ │ └── index.md │ │ │ ├── ko │ │ │ │ ├── README.md │ │ │ │ └── index.md │ │ │ ├── pl │ │ │ │ ├── README.md │ │ │ │ └── index.md │ │ │ ├── ru │ │ │ │ └── index.md │ │ │ └── zh │ │ │ │ ├── README.md │ │ │ │ └── index.md │ │ ├── package.json │ │ ├── plugin.xml │ │ ├── src │ │ │ ├── android │ │ │ │ └── Device.java │ │ │ ├── blackberry10 │ │ │ │ └── index.js │ │ │ ├── browser │ │ │ │ └── DeviceProxy.js │ │ │ ├── firefoxos │ │ │ │ └── DeviceProxy.js │ │ │ ├── ios │ │ │ │ ├── CDVDevice.h │ │ │ │ └── CDVDevice.m │ │ │ ├── osx │ │ │ │ ├── CDVDevice.h │ │ │ │ └── CDVDevice.m │ │ │ ├── tizen │ │ │ │ └── DeviceProxy.js │ │ │ ├── ubuntu │ │ │ │ ├── device.cpp │ │ │ │ ├── device.h │ │ │ │ └── device.js │ │ │ ├── windows │ │ │ │ └── DeviceProxy.js │ │ │ └── wp │ │ │ │ └── Device.cs │ │ ├── tests │ │ │ ├── plugin.xml │ │ │ └── tests.js │ │ └── www │ │ │ └── device.js │ ├── cordova-plugin-file │ │ ├── CONTRIBUTING.md │ │ ├── LICENSE │ │ ├── NOTICE │ │ ├── README.md │ │ ├── RELEASENOTES.md │ │ ├── doc │ │ │ ├── de │ │ │ │ ├── README.md │ │ │ │ ├── index.md │ │ │ │ └── plugins.md │ │ │ ├── es │ │ │ │ ├── README.md │ │ │ │ ├── index.md │ │ │ │ └── plugins.md │ │ │ ├── fr │ │ │ │ ├── README.md │ │ │ │ ├── index.md │ │ │ │ └── plugins.md │ │ │ ├── it │ │ │ │ ├── README.md │ │ │ │ ├── index.md │ │ │ │ └── plugins.md │ │ │ ├── ja │ │ │ │ ├── README.md │ │ │ │ ├── index.md │ │ │ │ └── plugins.md │ │ │ ├── ko │ │ │ │ ├── README.md │ │ │ │ ├── index.md │ │ │ │ └── plugins.md │ │ │ ├── pl │ │ │ │ ├── README.md │ │ │ │ ├── index.md │ │ │ │ └── plugins.md │ │ │ ├── plugins.md │ │ │ ├── ru │ │ │ │ ├── index.md │ │ │ │ └── plugins.md │ │ │ └── zh │ │ │ │ ├── README.md │ │ │ │ ├── index.md │ │ │ │ └── plugins.md │ │ ├── package.json │ │ ├── plugin.xml │ │ ├── src │ │ │ ├── android │ │ │ │ ├── AssetFilesystem.java │ │ │ │ ├── ContentFilesystem.java │ │ │ │ ├── DirectoryManager.java │ │ │ │ ├── EncodingException.java │ │ │ │ ├── FileExistsException.java │ │ │ │ ├── FileUtils.java │ │ │ │ ├── Filesystem.java │ │ │ │ ├── InvalidModificationException.java │ │ │ │ ├── LocalFilesystem.java │ │ │ │ ├── LocalFilesystemURL.java │ │ │ │ ├── NoModificationAllowedException.java │ │ │ │ ├── PendingRequests.java │ │ │ │ ├── TypeMismatchException.java │ │ │ │ └── build-extras.gradle │ │ │ ├── blackberry10 │ │ │ │ └── index.js │ │ │ ├── browser │ │ │ │ └── FileProxy.js │ │ │ ├── firefoxos │ │ │ │ └── FileProxy.js │ │ │ ├── ios │ │ │ │ ├── CDVAssetLibraryFilesystem.h │ │ │ │ ├── CDVAssetLibraryFilesystem.m │ │ │ │ ├── CDVFile.h │ │ │ │ ├── CDVFile.m │ │ │ │ ├── CDVLocalFilesystem.h │ │ │ │ └── CDVLocalFilesystem.m │ │ │ ├── osx │ │ │ │ ├── CDVFile.h │ │ │ │ ├── CDVFile.m │ │ │ │ ├── CDVLocalFilesystem.h │ │ │ │ └── CDVLocalFilesystem.m │ │ │ ├── ubuntu │ │ │ │ ├── file.cpp │ │ │ │ └── file.h │ │ │ ├── windows │ │ │ │ └── FileProxy.js │ │ │ └── wp │ │ │ │ └── File.cs │ │ ├── tests │ │ │ ├── plugin.xml │ │ │ ├── src │ │ │ │ └── android │ │ │ │ │ └── TestContentProvider.java │ │ │ ├── tests.js │ │ │ └── www │ │ │ │ └── fixtures │ │ │ │ └── asset-test │ │ │ │ └── asset-test.txt │ │ └── 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 │ │ │ ├── .jshintrc │ │ │ ├── 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 │ │ │ ├── browser │ │ │ ├── FileSystem.js │ │ │ ├── Preparing.js │ │ │ └── isChrome.js │ │ │ ├── fileSystemPaths.js │ │ │ ├── fileSystems-roots.js │ │ │ ├── fileSystems.js │ │ │ ├── firefoxos │ │ │ └── FileSystem.js │ │ │ ├── ios │ │ │ └── FileSystem.js │ │ │ ├── osx │ │ │ └── FileSystem.js │ │ │ ├── requestFileSystem.js │ │ │ ├── resolveLocalFileSystemURI.js │ │ │ ├── ubuntu │ │ │ ├── FileSystem.js │ │ │ ├── FileWriter.js │ │ │ └── fileSystems-roots.js │ │ │ └── wp │ │ │ └── FileUploadOptions.js │ ├── cordova-plugin-inappbrowser │ │ ├── CONTRIBUTING.md │ │ ├── LICENSE │ │ ├── NOTICE │ │ ├── README.md │ │ ├── RELEASENOTES.md │ │ ├── doc │ │ │ ├── de │ │ │ │ ├── README.md │ │ │ │ └── index.md │ │ │ ├── es │ │ │ │ ├── README.md │ │ │ │ └── index.md │ │ │ ├── fr │ │ │ │ ├── README.md │ │ │ │ └── index.md │ │ │ ├── it │ │ │ │ ├── README.md │ │ │ │ └── index.md │ │ │ ├── ja │ │ │ │ ├── README.md │ │ │ │ └── index.md │ │ │ ├── ko │ │ │ │ ├── README.md │ │ │ │ └── index.md │ │ │ ├── pl │ │ │ │ ├── README.md │ │ │ │ └── index.md │ │ │ ├── ru │ │ │ │ └── index.md │ │ │ └── zh │ │ │ │ ├── README.md │ │ │ │ └── index.md │ │ ├── package.json │ │ ├── plugin.xml │ │ ├── src │ │ │ ├── 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 │ │ │ │ └── doc │ │ │ │ │ ├── de │ │ │ │ │ └── README.md │ │ │ │ │ ├── es │ │ │ │ │ └── README.md │ │ │ │ │ ├── fr │ │ │ │ │ └── README.md │ │ │ │ │ ├── it │ │ │ │ │ └── README.md │ │ │ │ │ ├── ja │ │ │ │ │ └── README.md │ │ │ │ │ ├── ko │ │ │ │ │ └── README.md │ │ │ │ │ ├── pl │ │ │ │ │ └── README.md │ │ │ │ │ └── zh │ │ │ │ │ └── README.md │ │ │ ├── browser │ │ │ │ └── InAppBrowserProxy.js │ │ │ ├── firefoxos │ │ │ │ └── InAppBrowserProxy.js │ │ │ ├── ios │ │ │ │ ├── CDVInAppBrowser.h │ │ │ │ └── CDVInAppBrowser.m │ │ │ ├── osx │ │ │ │ ├── CDVInAppBrowser.h │ │ │ │ └── CDVInAppBrowser.m │ │ │ ├── ubuntu │ │ │ │ ├── InAppBrowser.qml │ │ │ │ ├── InAppBrowser_escapeScript.js │ │ │ │ ├── close.png │ │ │ │ ├── inappbrowser.cpp │ │ │ │ └── inappbrowser.h │ │ │ ├── windows │ │ │ │ └── InAppBrowserProxy.js │ │ │ └── wp │ │ │ │ └── InAppBrowser.cs │ │ ├── tests │ │ │ ├── package.json │ │ │ ├── plugin.xml │ │ │ ├── resources │ │ │ │ ├── inject.css │ │ │ │ ├── inject.html │ │ │ │ ├── inject.js │ │ │ │ ├── local.html │ │ │ │ ├── local.pdf │ │ │ │ └── video.html │ │ │ └── tests.js │ │ ├── types │ │ │ └── index.d.ts │ │ └── www │ │ │ ├── inappbrowser.css │ │ │ ├── inappbrowser.js │ │ │ └── windows8 │ │ │ └── InAppBrowserProxy.js │ ├── cordova-plugin-itunesfilesharing │ │ ├── LICENSE │ │ ├── README.md │ │ ├── package.json │ │ └── plugin.xml │ ├── cordova-plugin-whitelist │ │ ├── CONTRIBUTING.md │ │ ├── LICENSE │ │ ├── NOTICE │ │ ├── README.md │ │ ├── RELEASENOTES.md │ │ ├── doc │ │ │ ├── de │ │ │ │ └── README.md │ │ │ ├── es │ │ │ │ └── README.md │ │ │ ├── fr │ │ │ │ └── README.md │ │ │ ├── it │ │ │ │ └── README.md │ │ │ ├── ja │ │ │ │ └── README.md │ │ │ ├── ko │ │ │ │ └── README.md │ │ │ ├── pl │ │ │ │ └── README.md │ │ │ └── zh │ │ │ │ └── README.md │ │ ├── package.json │ │ ├── plugin.xml │ │ ├── src │ │ │ └── android │ │ │ │ └── WhitelistPlugin.java │ │ └── whitelist.js │ ├── cordova-plugin-x-socialsharing │ │ ├── MIT │ │ ├── README.md │ │ ├── package.json │ │ ├── plugin.xml │ │ ├── screenshots │ │ │ ├── screenshot-android-share.png │ │ │ ├── screenshot-ios6-share.png │ │ │ ├── screenshot-ios7-ipad-share.png │ │ │ ├── screenshot-ios7-share.png │ │ │ ├── screenshot-wp8-share.jpg │ │ │ └── screenshots-ios7-shareconfig.png │ │ ├── src │ │ │ ├── android │ │ │ │ └── nl │ │ │ │ │ └── xservices │ │ │ │ │ └── plugins │ │ │ │ │ └── SocialSharing.java │ │ │ ├── ios │ │ │ │ ├── NSString+URLEncoding.h │ │ │ │ ├── NSString+URLEncoding.m │ │ │ │ ├── SocialSharing.h │ │ │ │ └── SocialSharing.m │ │ │ ├── windows │ │ │ │ └── SocialSharingProxy.js │ │ │ └── wp8 │ │ │ │ ├── Newtonsoft.Json.dll │ │ │ │ └── SocialSharing.cs │ │ ├── tests │ │ │ ├── plugin.xml │ │ │ └── test.js │ │ └── www │ │ │ └── SocialSharing.js │ ├── fetch.json │ ├── ios.json │ ├── phonegap-plugin-barcodescanner │ │ ├── CHANGELOG.md │ │ ├── README.md │ │ ├── hooks │ │ │ └── windows │ │ │ │ └── check-arch.js │ │ ├── package.json │ │ ├── plugin.xml │ │ ├── spec │ │ │ ├── helper │ │ │ │ └── cordova.js │ │ │ └── index.spec.js │ │ ├── src │ │ │ ├── android │ │ │ │ ├── README.md │ │ │ │ ├── barcodescanner-release-2.1.5.aar │ │ │ │ ├── barcodescanner.gradle │ │ │ │ └── com │ │ │ │ │ └── phonegap │ │ │ │ │ └── plugins │ │ │ │ │ └── barcodescanner │ │ │ │ │ └── BarcodeScanner.java │ │ │ ├── blackberry10 │ │ │ │ ├── LICENSE │ │ │ │ ├── index.js │ │ │ │ ├── native │ │ │ │ │ ├── .cproject │ │ │ │ │ ├── .settings │ │ │ │ │ │ └── com.qnx.tools.ide.core.prefs │ │ │ │ │ ├── device │ │ │ │ │ │ ├── .gitignore │ │ │ │ │ │ └── libBarcodeScanner.so │ │ │ │ │ ├── public │ │ │ │ │ │ ├── json │ │ │ │ │ │ │ ├── autolink.h │ │ │ │ │ │ │ ├── config.h │ │ │ │ │ │ │ ├── features.h │ │ │ │ │ │ │ ├── forwards.h │ │ │ │ │ │ │ ├── json.h │ │ │ │ │ │ │ ├── reader.h │ │ │ │ │ │ │ ├── value.h │ │ │ │ │ │ │ └── writer.h │ │ │ │ │ │ ├── json_batchallocator.h │ │ │ │ │ │ ├── json_internalarray.inl │ │ │ │ │ │ ├── json_internalmap.inl │ │ │ │ │ │ ├── json_reader.cpp │ │ │ │ │ │ ├── json_value.cpp │ │ │ │ │ │ ├── json_valueiterator.inl │ │ │ │ │ │ ├── json_writer.cpp │ │ │ │ │ │ ├── plugin.cpp │ │ │ │ │ │ ├── plugin.h │ │ │ │ │ │ ├── tokenizer.cpp │ │ │ │ │ │ └── tokenizer.h │ │ │ │ │ ├── simulator │ │ │ │ │ │ ├── .gitignore │ │ │ │ │ │ └── libBarcodeScanner.so │ │ │ │ │ └── src │ │ │ │ │ │ ├── Logger.cpp │ │ │ │ │ │ ├── Logger.hpp │ │ │ │ │ │ ├── barcodescanner_js.cpp │ │ │ │ │ │ ├── barcodescanner_js.hpp │ │ │ │ │ │ ├── barcodescanner_ndk.cpp │ │ │ │ │ │ └── barcodescanner_ndk.hpp │ │ │ │ └── qrcode.js │ │ │ ├── browser │ │ │ │ └── BarcodeScannerProxy.js │ │ │ ├── ios │ │ │ │ ├── CDVBarcodeScanner.bundle │ │ │ │ │ ├── beep.caf │ │ │ │ │ ├── torch.png │ │ │ │ │ ├── torch@2x.png │ │ │ │ │ └── torch@3x.png │ │ │ │ ├── CDVBarcodeScanner.mm │ │ │ │ ├── scannerOverlay.xib │ │ │ │ ├── zxing-all-in-one.cpp │ │ │ │ └── zxing-all-in-one.h │ │ │ ├── windows │ │ │ │ ├── BarcodeScannerProxy.js │ │ │ │ ├── assets │ │ │ │ │ └── plugin-barcodeScanner.css │ │ │ │ ├── lib.UW │ │ │ │ │ ├── ANY │ │ │ │ │ │ └── ZXing.winmd │ │ │ │ │ └── ARM │ │ │ │ │ │ └── ZXing.winmd │ │ │ │ └── lib │ │ │ │ │ ├── Properties │ │ │ │ │ └── AssemblyInfo.cs │ │ │ │ │ ├── Reader.cs │ │ │ │ │ ├── WinRTBarcodeReader.csproj │ │ │ │ │ └── ZXing.winmd │ │ │ └── wp8 │ │ │ │ ├── BarcodeScanner.cs │ │ │ │ ├── BarcodeScannerTask.cs │ │ │ │ ├── BarcodeScannerUI.xaml │ │ │ │ ├── BarcodeScannerUI.xaml.cs │ │ │ │ ├── assets │ │ │ │ └── cancel.png │ │ │ │ └── lib │ │ │ │ └── zxing.wp8.0.dll │ │ ├── tests │ │ │ ├── plugin.xml │ │ │ └── tests.js │ │ └── www │ │ │ └── barcodescanner.js │ └── windows.json ├── res │ ├── icons │ │ ├── android │ │ │ ├── icon-36-ldpi.png │ │ │ ├── icon-48-mdpi.png │ │ │ ├── icon-72-hdpi.png │ │ │ └── icon-96-xhdpi.png │ │ ├── antshares-logo.png │ │ ├── antshares-logo.psd │ │ ├── ios │ │ │ ├── icon-40-2x.png │ │ │ ├── icon-40.png │ │ │ ├── icon-50-2x.png │ │ │ ├── icon-50.png │ │ │ ├── icon-57-2x.png │ │ │ ├── icon-57.png │ │ │ ├── icon-60-2x.png │ │ │ ├── icon-60-3x.png │ │ │ ├── icon-60.png │ │ │ ├── icon-72-2x.png │ │ │ ├── icon-72.png │ │ │ ├── icon-76-2x.png │ │ │ ├── icon-76.png │ │ │ ├── icon-small-2x.png │ │ │ └── icon-small.png │ │ ├── windows │ │ │ ├── Square150x150Logo.scale-100.png │ │ │ ├── Square150x150Logo.scale-100.psd │ │ │ ├── Square150x150Logo.scale-240.png │ │ │ ├── Square30x30Logo.scale-100.png │ │ │ ├── Square310x310Logo.scale-100.png │ │ │ ├── Square310x310Logo.scale-100.psd │ │ │ ├── Square44x44Logo.scale-100.png │ │ │ ├── Square44x44Logo.scale-100.psd │ │ │ ├── Square44x44Logo.scale-240.png │ │ │ ├── Square70x70Logo.scale-100.png │ │ │ ├── Square71x71Logo.scale-100.png │ │ │ ├── Square71x71Logo.scale-100.psd │ │ │ ├── Square71x71Logo.scale-240.png │ │ │ ├── StoreLogo.scale-100.png │ │ │ ├── StoreLogo.scale-240.png │ │ │ ├── Wide310x150Logo.scale-100.png │ │ │ ├── Wide310x150Logo.scale-100.psd │ │ │ ├── Wide310x150Logo.scale-240.png │ │ │ └── 图标说明.txt │ │ └── wp8 │ │ │ ├── ApplicationIcon.png │ │ │ └── Background.png │ └── screens │ │ ├── android │ │ ├── screen-hdpi-landscape.png │ │ ├── screen-hdpi-portrait.png │ │ ├── screen-ldpi-landscape.png │ │ ├── screen-ldpi-portrait.png │ │ ├── screen-mdpi-landscape.png │ │ ├── screen-mdpi-portrait.png │ │ ├── screen-xhdpi-landscape.png │ │ └── screen-xhdpi-portrait.png │ │ ├── ios │ │ ├── screen-ipad-landscape-2x.png │ │ ├── screen-ipad-landscape.png │ │ ├── screen-ipad-portrait-2x.png │ │ ├── screen-ipad-portrait.png │ │ ├── screen-iphone-568h-2x.png │ │ ├── screen-iphone-landscape-736h.png │ │ ├── screen-iphone-portrait-2x.png │ │ ├── screen-iphone-portrait-667h.png │ │ ├── screen-iphone-portrait-736h.png │ │ └── screen-iphone-portrait.png │ │ ├── windows │ │ ├── SplashScreen.scale-100.png │ │ ├── SplashScreen.scale-240.png │ │ └── SplashScreenPhone.scale-240.png │ │ └── wp8 │ │ └── SplashScreenImage.jpg ├── scripts │ ├── AntShares │ │ ├── Global.ts │ │ ├── Sync.ts │ │ ├── UI │ │ │ ├── Account │ │ │ │ ├── Index.ts │ │ │ │ ├── Receive.ts │ │ │ │ └── Send.ts │ │ │ ├── Advanced │ │ │ │ ├── DebugLog.ts │ │ │ │ ├── DeveloperTool.ts │ │ │ │ ├── Elect.ts │ │ │ │ ├── Issue.ts │ │ │ │ ├── Register.ts │ │ │ │ ├── RegisterAssetList.ts │ │ │ │ ├── Relay.ts │ │ │ │ ├── Sign.ts │ │ │ │ └── Vote.ts │ │ │ ├── Contacts │ │ │ │ ├── Contact.ts │ │ │ │ ├── Create.ts │ │ │ │ └── Index.ts │ │ │ ├── Contract │ │ │ │ ├── CreateMultiSig.ts │ │ │ │ ├── Details.ts │ │ │ │ └── Index.ts │ │ │ ├── TabBase.ts │ │ │ ├── Wallet │ │ │ │ ├── Backup.ts │ │ │ │ ├── ChangePassword.ts │ │ │ │ ├── Create.ts │ │ │ │ ├── GesturePassword.ts │ │ │ │ ├── Import.ts │ │ │ │ ├── Open.ts │ │ │ │ ├── Restore.ts │ │ │ │ ├── Start.ts │ │ │ │ └── Validate.ts │ │ │ └── _Lang.ts │ │ └── Wallets │ │ │ └── Master.ts │ ├── Cookies.ts │ ├── Function.ts │ ├── index.ts │ ├── sdk │ │ ├── @static │ │ │ └── Blockchain.ts │ │ ├── AntShares │ │ │ ├── BigInteger.ts │ │ │ ├── Core │ │ │ │ ├── AgencyTransaction.ts │ │ │ │ ├── AssetType.ts │ │ │ │ ├── Block.ts │ │ │ │ ├── Blockchain.ts │ │ │ │ ├── ClaimTransaction.ts │ │ │ │ ├── ContractParameterType.ts │ │ │ │ ├── ContractTransaction.ts │ │ │ │ ├── EnrollmentTransaction.ts │ │ │ │ ├── FunctionCode.ts │ │ │ │ ├── ICode.ts │ │ │ │ ├── ISignable.ts │ │ │ │ ├── InvocationTransaction.ts │ │ │ │ ├── IssueTransaction.ts │ │ │ │ ├── MinerTransaction.ts │ │ │ │ ├── Order.ts │ │ │ │ ├── PublishTransaction.ts │ │ │ │ ├── RegisterTransaction.ts │ │ │ │ ├── Scripts │ │ │ │ │ ├── Helper.ts │ │ │ │ │ ├── Script.ts │ │ │ │ │ ├── ScriptBuilder.ts │ │ │ │ │ └── ScriptOp.ts │ │ │ │ ├── SignatureContext.ts │ │ │ │ ├── SplitOrder.ts │ │ │ │ ├── Transaction.ts │ │ │ │ ├── TransactionAttribute.ts │ │ │ │ ├── TransactionAttributeUsage.ts │ │ │ │ ├── TransactionInput.ts │ │ │ │ ├── TransactionOutput.ts │ │ │ │ ├── TransactionType.ts │ │ │ │ └── Vote.ts │ │ │ ├── Cryptography │ │ │ │ ├── Aes.ts │ │ │ │ ├── Base58.ts │ │ │ │ ├── CryptoKey.ts │ │ │ │ ├── ECCurve.ts │ │ │ │ ├── ECDsa.ts │ │ │ │ ├── ECFieldElement.ts │ │ │ │ ├── ECPoint.ts │ │ │ │ ├── Helper.ts │ │ │ │ ├── RIPEMD160.ts │ │ │ │ ├── RandomNumberGenerator.ts │ │ │ │ └── Sha256.ts │ │ │ ├── Fixed8.ts │ │ │ ├── IO │ │ │ │ ├── BinaryReader.ts │ │ │ │ ├── BinaryWriter.ts │ │ │ │ ├── Caching │ │ │ │ │ ├── ITrackable.ts │ │ │ │ │ ├── TrackState.ts │ │ │ │ │ └── TrackableCollection.ts │ │ │ │ ├── Helper.ts │ │ │ │ ├── ISerializable.ts │ │ │ │ ├── MemoryStream.ts │ │ │ │ └── Stream.ts │ │ │ ├── Implementations │ │ │ │ ├── Blockchains │ │ │ │ │ └── RPC │ │ │ │ │ │ └── RpcBlockchain.ts │ │ │ │ └── Wallets │ │ │ │ │ └── IndexedDB │ │ │ │ │ ├── DbContext.ts │ │ │ │ │ ├── DbTransaction.ts │ │ │ │ │ ├── IndexedDBWallet.ts │ │ │ │ │ └── WalletDataContext.ts │ │ │ ├── Linq │ │ │ │ ├── ArrayEnumerator.ts │ │ │ │ ├── ConcatEnumerator.ts │ │ │ │ ├── DistinctEnumerator.ts │ │ │ │ ├── Enumerator.ts │ │ │ │ ├── ExceptEnumerator.ts │ │ │ │ ├── GroupByEnumerator.ts │ │ │ │ ├── Helper.ts │ │ │ │ ├── IntersectEnumerator.ts │ │ │ │ ├── OrderByEnumerator.ts │ │ │ │ ├── ReverseEnumerator.ts │ │ │ │ ├── SelectEnumerator.ts │ │ │ │ ├── SkipWhileEnumerator.ts │ │ │ │ ├── TakeWhileEnumerator.ts │ │ │ │ └── WhereEnumerator.ts │ │ │ ├── Network │ │ │ │ ├── Inventory.ts │ │ │ │ ├── RPC │ │ │ │ │ └── RpcClient.ts │ │ │ │ └── RemoteNode.ts │ │ │ ├── Uint160.ts │ │ │ ├── Uint256.ts │ │ │ ├── Uint64.ts │ │ │ ├── UintVariable.ts │ │ │ └── Wallets │ │ │ │ ├── Account.ts │ │ │ │ ├── Coin.ts │ │ │ │ ├── CoinState.ts │ │ │ │ ├── Contract.ts │ │ │ │ ├── ContractParameterType.ts │ │ │ │ └── Wallet.ts │ │ ├── Helper.ts │ │ ├── Map.ts │ │ ├── Promise.ts │ │ ├── __event.ts │ │ └── __extends.ts │ ├── tsconfig.json │ └── typings │ │ ├── AntShares.d.ts │ │ ├── cordova │ │ ├── cordova.d.ts │ │ └── plugins │ │ │ ├── BatteryStatus.d.ts │ │ │ ├── Camera.d.ts │ │ │ ├── Contacts.d.ts │ │ │ ├── Device.d.ts │ │ │ ├── DeviceMotion.d.ts │ │ │ ├── DeviceOrientation.d.ts │ │ │ ├── Dialogs.d.ts │ │ │ ├── FileSystem.d.ts │ │ │ ├── FileTransfer.d.ts │ │ │ ├── Globalization.d.ts │ │ │ ├── Media.d.ts │ │ │ ├── MediaCapture.d.ts │ │ │ ├── NetworkInformation.d.ts │ │ │ ├── Push.d.ts │ │ │ ├── Splashscreen.d.ts │ │ │ ├── StatusBar.d.ts │ │ │ ├── Vibration.d.ts │ │ │ └── WebSQL.d.ts │ │ └── jquery.d.ts ├── taco.json └── www │ ├── PrivacyPolicy.html │ ├── css │ ├── en.css │ ├── site.css │ └── zh.css │ ├── fonts │ ├── SourceCodePro-Regular.ttf │ ├── iconfont.eot │ ├── iconfont.svg │ ├── iconfont.ttf │ └── iconfont.woff │ ├── img │ ├── logo-line.png │ ├── logo-sm.png │ └── wechat.jpg │ ├── index.html │ ├── lib │ ├── bootstrap-fileinput │ │ ├── .bower.json │ │ ├── CHANGE.md │ │ ├── LICENSE.md │ │ ├── README.md │ │ ├── bower.json │ │ ├── css │ │ │ ├── fileinput.css │ │ │ └── fileinput.min.css │ │ ├── img │ │ │ ├── loading-sm.gif │ │ │ └── loading.gif │ │ ├── js │ │ │ ├── fileinput.js │ │ │ ├── fileinput.min.js │ │ │ └── fileinput_locale_zh.js │ │ ├── nuget │ │ │ ├── Package.nuspec │ │ │ └── build.bat │ │ ├── package.json │ │ ├── sass │ │ │ └── fileinput.scss │ │ └── themes │ │ │ ├── fa │ │ │ └── theme.js │ │ │ └── gly │ │ │ └── theme.js │ ├── bootstrap-material-design │ │ ├── css │ │ │ ├── bootstrap-material-design.css │ │ │ ├── bootstrap-material-design.css.map │ │ │ ├── bootstrap-material-design.min.css │ │ │ ├── bootstrap-material-design.min.css.map │ │ │ ├── ripples.css │ │ │ ├── ripples.css.map │ │ │ ├── ripples.min.css │ │ │ └── ripples.min.css.map │ │ └── js │ │ │ ├── material.js │ │ │ ├── material.min.js │ │ │ ├── material.min.js.map │ │ │ ├── ripples.js │ │ │ ├── ripples.min.js │ │ │ └── ripples.min.js.map │ ├── bootstrap │ │ └── dist │ │ │ ├── css │ │ │ └── bootstrap.min.css │ │ │ ├── fonts │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ ├── glyphicons-halflings-regular.svg │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ └── glyphicons-halflings-regular.woff2 │ │ │ └── js │ │ │ └── bootstrap.min.js │ ├── docs │ │ └── docs.css │ ├── jQuery.mmenu │ │ └── dist │ │ │ └── core │ │ │ ├── css │ │ │ └── jquery.mmenu.all.css │ │ │ └── js │ │ │ ├── hammer.js │ │ │ ├── jquery.mmenu.dragclose.min.js │ │ │ └── jquery.mmenu.min.all.js │ ├── jquery-collapse │ │ └── jquery.collapse.js │ ├── jquery-validation-unobtrusive │ │ └── jquery.validate.unobtrusive.min.js │ ├── jquery-validation │ │ └── dist │ │ │ └── jquery.validate.min.js │ └── jquery │ │ └── dist │ │ └── jquery.min.js │ └── scripts │ ├── SocialSharing.js │ ├── jquery.gesture.password.js │ ├── jquery.qrcode.min.js │ └── set_language.js └── LICENSE /AntSharesApp/.gitignore: -------------------------------------------------------------------------------- 1 | [Pp]latforms/ 2 | www/scripts/appBundle.* 3 | -------------------------------------------------------------------------------- /AntSharesApp/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "AntSharesApp", 3 | "dependencies": { 4 | "jquery": "~2.2.0", 5 | "jquery-validation-unobtrusive": "~3.2.5", 6 | "jQuery.mmenu": "5.5.3", 7 | "bootstrap": "~3.3.5", 8 | "bootstrap-fileinput": "~4.3.0", 9 | "qrcode.js": "qrcode-js#*" 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /AntSharesApp/changeList.json: -------------------------------------------------------------------------------- 1 | { 2 | "deletedFiles": [] 3 | } -------------------------------------------------------------------------------- /AntSharesApp/merges/android/scripts/android2.3-jscompat.js: -------------------------------------------------------------------------------- 1 | // Android 2.3 上支持的 Function.prototype.bind() 的填充代码 2 | (function () { 3 | if (!Function.prototype.bind) { 4 | Function.prototype.bind = function (thisValue) { 5 | if (typeof this !== "function") { 6 | throw new TypeError(this + " cannot be bound as it is not a function"); 7 | } 8 | 9 | // bind() 还允许预挂起调用的参数 10 | var preArgs = Array.prototype.slice.call(arguments, 1); 11 | 12 | //要对其绑定“this”值和参数的实际函数 13 | var functionToBind = this; 14 | var noOpFunction = function () { }; 15 | 16 | // 要使用的“this”参数 17 | var thisArg = this instanceof noOpFunction && thisValue ? this : thisValue; 18 | 19 | //产生的绑定函数 20 | var boundFunction = function () { 21 | return functionToBind.apply(thisArg, preArgs.concat(Array.prototype.slice.call(arguments))); 22 | }; 23 | 24 | noOpFunction.prototype = this.prototype; 25 | boundFunction.prototype = new noOpFunction(); 26 | 27 | return boundFunction; 28 | }; 29 | } 30 | }()); 31 | -------------------------------------------------------------------------------- /AntSharesApp/merges/android/scripts/platformOverrides.js: -------------------------------------------------------------------------------- 1 | (function () { 2 | // 追加 bind() 填充代码 3 | var scriptElem = document.createElement('script'); 4 | scriptElem.setAttribute('src', 'scripts/android2.3-jscompat.js'); 5 | if (document.body) { 6 | document.body.appendChild(scriptElem); 7 | } else { 8 | document.head.appendChild(scriptElem); 9 | } 10 | }()); -------------------------------------------------------------------------------- /AntSharesApp/merges/windows/scripts/platformOverrides.js: -------------------------------------------------------------------------------- 1 | (function () { 2 | // 追加 safeHTML 填充代码 3 | var scriptElem = document.createElement('script'); 4 | scriptElem.setAttribute('src', 'scripts/winstore-jscompat.js'); 5 | if (document.body) { 6 | document.body.appendChild(scriptElem); 7 | } else { 8 | document.head.appendChild(scriptElem); 9 | } 10 | }()); -------------------------------------------------------------------------------- /AntSharesApp/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "AntSharesApp", 3 | "version": "1.0.0", 4 | "dependencies": {} 5 | } 6 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/android.json: -------------------------------------------------------------------------------- 1 | { 2 | "prepare_queue": { 3 | "installed": [], 4 | "uninstalled": [] 5 | }, 6 | "config_munge": { 7 | "files": {} 8 | }, 9 | "installed_plugins": { 10 | "cordova-plugin-background-mode": { 11 | "PACKAGE_NAME": "org.antshares.app" 12 | }, 13 | "cordova-plugin-badge": { 14 | "PACKAGE_NAME": "org.antshares.app" 15 | }, 16 | "cordova-plugin-device": { 17 | "PACKAGE_NAME": "org.antshares.app" 18 | }, 19 | "cordova-plugin-file": { 20 | "PACKAGE_NAME": "org.antshares.app" 21 | }, 22 | "cordova-plugin-inappbrowser": { 23 | "PACKAGE_NAME": "org.antshares.app" 24 | }, 25 | "cordova-plugin-itunesfilesharing": { 26 | "PACKAGE_NAME": "org.antshares.app" 27 | }, 28 | "cordova-plugin-whitelist": { 29 | "PACKAGE_NAME": "org.antshares.app" 30 | }, 31 | "cordova-plugin-x-socialsharing": { 32 | "PACKAGE_NAME": "org.antshares.app" 33 | }, 34 | "phonegap-plugin-barcodescanner": { 35 | "PACKAGE_NAME": "org.antshares.app" 36 | } 37 | }, 38 | "dependent_plugins": { 39 | "cordova-plugin-app-event": { 40 | "PACKAGE_NAME": "org.antshares.app" 41 | }, 42 | "cordova-plugin-compat": { 43 | "PACKAGE_NAME": "org.antshares.app" 44 | } 45 | } 46 | } -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-app-event/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ChangeLog 2 | --------- 3 | 4 | #### Version 1.2.0 (17.02.2016) 5 | - White-list swizzling through APPAppEventDelegate protocol (#5) 6 | - Finally fixed `EXC_BAD_ACCESS error` (#4) 7 | - Removed usage of `nullable` to prevent build failures 8 | 9 | #### Version 1.1.0 (02.01.2016) 10 | - Fixed `EXC_BAD_ACCESS error` 11 | 12 | #### Version 1.0.0 (01.01.2016) 13 | - Initial version 14 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-app-event/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cordova-plugin-app-event", 3 | "version": "1.2.0", 4 | "description": "Broadcasts UIApplicationDelegate events", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "repository": { 10 | "type": "git", 11 | "url": "git+https://github.com/katzer/cordova-plugin-app-event.git" 12 | }, 13 | "keywords": [ 14 | "appplant", 15 | "UIApplicationDelegate", 16 | "didRegisterUserNotificationSettings", 17 | "didReceiveLocalNotification", 18 | "didFinishLaunchingWithOptions", 19 | "cordova", 20 | "ecosystem:cordova" 21 | ], 22 | "platforms": [ 23 | "ios" 24 | ], 25 | "engines": [ 26 | { 27 | "name": "cordova", 28 | "version": ">=3.6.0" 29 | } 30 | ], 31 | "author": "Sebastián Katzer", 32 | "license": "Apache-2.0", 33 | "bugs": { 34 | "url": "https://github.com/katzer/cordova-plugin-app-event/issues" 35 | }, 36 | "homepage": "https://github.com/katzer/cordova-plugin-app-event#readme" 37 | } 38 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-app-event/src/ios/APPAppEventDelegate.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2013-2016 appPlant UG 3 | 4 | Licensed to the Apache Software Foundation (ASF) under one 5 | or more contributor license agreements. See the NOTICE file 6 | distributed with this work for additional information 7 | regarding copyright ownership. The ASF licenses this file 8 | to you under the Apache License, Version 2.0 (the 9 | "License"); you may not use this file except in compliance 10 | with the License. You may obtain a copy of the License at 11 | 12 | http://www.apache.org/licenses/LICENSE-2.0 13 | 14 | Unless required by applicable law or agreed to in writing, 15 | software distributed under the License is distributed on an 16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | KIND, either express or implied. See the License for the 18 | specific language governing permissions and limitations 19 | under the License. 20 | */ 21 | 22 | @protocol APPAppEventDelegate 23 | 24 | /* 25 | By implementing the interface the plugin indicates interest 26 | to receive app events. 27 | */ 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-app-event/src/ios/AppDelegate+APPAppEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013-2016 by appPlant UG. All rights reserved. 3 | * 4 | * @APPPLANT_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apache License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. Please obtain a copy of the License at 10 | * http://opensource.org/licenses/Apache-2.0/ and read it before using this 11 | * file. 12 | * 13 | * The Original Code and all software distributed under the License are 14 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 15 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 16 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 18 | * Please see the License for the specific language governing rights and 19 | * limitations under the License. 20 | * 21 | * @APPPLANT_LICENSE_HEADER_END@ 22 | */ 23 | 24 | #import "AppDelegate.h" 25 | 26 | extern NSString* const UIApplicationRegisterUserNotificationSettings; 27 | 28 | @interface AppDelegate (APPAppEvent) 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-app-event/src/ios/CDVPlugin+APPAppEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013-2016 by appPlant UG. All rights reserved. 3 | * 4 | * @APPPLANT_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apache License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. Please obtain a copy of the License at 10 | * http://opensource.org/licenses/Apache-2.0/ and read it before using this 11 | * file. 12 | * 13 | * The Original Code and all software distributed under the License are 14 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 15 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 16 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 18 | * Please see the License for the specific language governing rights and 19 | * limitations under the License. 20 | * 21 | * @APPPLANT_LICENSE_HEADER_END@ 22 | */ 23 | 24 | #import "Cordova/CDVPlugin.h" 25 | 26 | @interface CDVPlugin (APPAppEvent) 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-background-mode/appbeep.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/plugins/cordova-plugin-background-mode/appbeep.wav -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-background-mode/appbeep.wma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/plugins/cordova-plugin-background-mode/appbeep.wma -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-background-mode/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cordova-plugin-background-mode", 3 | "version": "0.7.2", 4 | "description": "Prevent app from going to sleep in background.", 5 | "repository": { 6 | "type": "git", 7 | "url": "git+https://github.com/katzer/cordova-plugin-background-mode.git" 8 | }, 9 | "keywords": [ 10 | "appplant", 11 | "background", 12 | "cordova", 13 | "ecosystem:cordova" 14 | ], 15 | "platforms": [ 16 | "ios", 17 | "android" 18 | ], 19 | "engines": [ 20 | { 21 | "name": "cordova", 22 | "version": ">=6.0.0" 23 | } 24 | ], 25 | "author": "Sebastián Katzer", 26 | "license": "Apache 2.0", 27 | "bugs": { 28 | "url": "https://github.com/katzer/cordova-plugin-background-mode/issues" 29 | }, 30 | "homepage": "https://github.com/katzer/cordova-plugin-background-mode#readme" 31 | } 32 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-background-mode/src/ios/APPBackgroundMode.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2013-2017 appPlant GmbH 3 | 4 | Licensed to the Apache Software Foundation (ASF) under one 5 | or more contributor license agreements. See the NOTICE file 6 | distributed with this work for additional information 7 | regarding copyright ownership. The ASF licenses this file 8 | to you under the Apache License, Version 2.0 (the 9 | "License"); you may not use this file except in compliance 10 | with the License. You may obtain a copy of the License at 11 | 12 | http://www.apache.org/licenses/LICENSE-2.0 13 | 14 | Unless required by applicable law or agreed to in writing, 15 | software distributed under the License is distributed on an 16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | KIND, either express or implied. See the License for the 18 | specific language governing permissions and limitations 19 | under the License. 20 | */ 21 | 22 | #import 23 | #import 24 | 25 | @interface APPBackgroundMode : CDVPlugin { 26 | AVAudioPlayer* audioPlayer; 27 | BOOL enabled; 28 | } 29 | 30 | // Activate the background mode 31 | - (void) enable:(CDVInvokedUrlCommand*)command; 32 | // Deactivate the background mode 33 | - (void) disable:(CDVInvokedUrlCommand*)command; 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-badge/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cordova-plugin-badge", 3 | "version": "0.7.4", 4 | "description": "Shows the count of unread messages as a badge on the app icon", 5 | "repository": { 6 | "type": "git", 7 | "url": "git+https://github.com/katzer/cordova-plugin-badge.git" 8 | }, 9 | "keywords": [ 10 | "appplant", 11 | "badge", 12 | "shortcutbadger", 13 | "cordova", 14 | "ecosystem:cordova" 15 | ], 16 | "platforms": [ 17 | "ios", 18 | "wp8", 19 | "android", 20 | "browser", 21 | "windows" 22 | ], 23 | "engines": [ 24 | { 25 | "name": "cordova", 26 | "version": ">=3.0.0" 27 | }, 28 | { 29 | "name": "cordova-android", 30 | "version": ">=4" 31 | }, 32 | { 33 | "name": "cordova-plugin", 34 | "version": ">=4.2.0" 35 | } 36 | ], 37 | "dependencies": { 38 | "cordova-plugin-app-event": ">=1.2.0" 39 | }, 40 | "author": "Sebastián Katzer", 41 | "license": "Apache-2.0", 42 | "bugs": { 43 | "url": "https://github.com/katzer/cordova-plugin-badge/issues" 44 | }, 45 | "homepage": "https://github.com/katzer/cordova-plugin-badge#readme" 46 | } 47 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-badge/src/android/badge.gradle: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013-2016 by appPlant GmbH. All rights reserved. 3 | * 4 | * @APPPLANT_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apache License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. Please obtain a copy of the License at 10 | * http://opensource.org/licenses/Apache-2.0/ and read it before using this 11 | * file. 12 | * 13 | * The Original Code and all software distributed under the License are 14 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 15 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 16 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 18 | * Please see the License for the specific language governing rights and 19 | * limitations under the License. 20 | * 21 | * @APPPLANT_LICENSE_HEADER_END@ 22 | */ 23 | 24 | repositories { 25 | mavenCentral() 26 | } 27 | 28 | dependencies { 29 | compile 'me.leolin:ShortcutBadger:1.1.11@aar' 30 | } 31 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-badge/src/ios/UIApplication+APPBadge.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013-2016 by appPlant GmbH. All rights reserved. 3 | * 4 | * @APPPLANT_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apache License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. Please obtain a copy of the License at 10 | * http://opensource.org/licenses/Apache-2.0/ and read it before using this 11 | * file. 12 | * 13 | * The Original Code and all software distributed under the License are 14 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 15 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 16 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 18 | * Please see the License for the specific language governing rights and 19 | * limitations under the License. 20 | * 21 | * @APPPLANT_LICENSE_HEADER_END@ 22 | */ 23 | 24 | @interface UIApplication (APPBadge) 25 | 26 | // If the app has the permission to display badges 27 | - (BOOL) hasPermissionToDisplayBadges; 28 | // Ask for permission to display badges 29 | - (void) registerPermissionToDisplayBadges; 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-badge/tests/plugin.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 25 | 26 | 30 | 31 | Cordova Badge Plugin Tests 32 | Apache 2.0 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-compat/README.md: -------------------------------------------------------------------------------- 1 | 21 | 22 | cordova-plugin-compat 23 | ------------------------ 24 | 25 | This repo is for remaining backwards compatible with previous versions of Cordova. 26 | 27 | ## USAGE 28 | 29 | Your plugin can depend on this plugin and use it to handle the new run time permissions Android 6.0.0 (cordova-android 5.0.0) introduced. 30 | 31 | View [this commit](https://github.com/apache/cordova-plugin-camera/commit/a9c18710f23e86f5b7f8918dfab7c87a85064870) to see how to depend on `cordova-plugin-compat`. View [this file](https://github.com/apache/cordova-plugin-camera/blob/master/src/android/CameraLauncher.java) to see how `PermissionHelper` is being used to request and store permissions. Read more about Android permissions at http://cordova.apache.org/docs/en/latest/guide/platforms/android/plugin.html#android-permissions. 32 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-compat/RELEASENOTES.md: -------------------------------------------------------------------------------- 1 | 21 | # Release Notes 22 | 23 | ### 1.1.0 (Nov 02, 2016) 24 | * [CB-11625](https://issues.apache.org/jira/browse/CB-11625) Adding the `BuildConfig` fetching code as a backup to using a new preference 25 | * Add github pull request template 26 | 27 | ### 1.0.0 (Apr 15, 2016) 28 | * Initial release 29 | * Moved `PermissionHelper.java` into `src` 30 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-compat/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cordova-plugin-compat", 3 | "description": "This repo is for remaining backwards compatible with previous versions of Cordova.", 4 | "version": "1.1.0", 5 | "homepage": "http://github.com/apache/cordova-plugin-compat#readme", 6 | "repository": { 7 | "type": "git", 8 | "url": "git://github.com/apache/cordova-plugin-compat.git" 9 | }, 10 | "bugs": { 11 | "url": "https://github.com/apache/cordova-plugin-compat/issues" 12 | }, 13 | "cordova": { 14 | "id": "cordova-plugin-compat", 15 | "platforms": [ 16 | "android" 17 | ] 18 | }, 19 | "keywords": [ 20 | "ecosystem:cordova", 21 | "ecosystem:phonegap", 22 | "cordova-android" 23 | ], 24 | "engines": [ 25 | { 26 | "name": "cordova", 27 | "version": ">=5.0.0" 28 | } 29 | ], 30 | "author": "Apache Software Foundation", 31 | "license": "Apache-2.0" 32 | } 33 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-compat/plugin.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 21 | 22 | 25 | Compat 26 | Cordova Compatibility Plugin 27 | Apache 2.0 28 | cordova,compat 29 | https://git-wip-us.apache.org/repos/asf/cordova-plugin-compat.git 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-device/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | 21 | 22 | # Contributing to Apache Cordova 23 | 24 | Anyone can contribute to Cordova. And we need your contributions. 25 | 26 | There are multiple ways to contribute: report bugs, improve the docs, and 27 | contribute code. 28 | 29 | For instructions on this, start with the 30 | [contribution overview](http://cordova.apache.org/contribute/). 31 | 32 | The details are explained there, but the important items are: 33 | - Sign and submit an Apache ICLA (Contributor License Agreement). 34 | - Have a Jira issue open that corresponds to your contribution. 35 | - Run the tests so your patch doesn't break existing functionality. 36 | 37 | We look forward to your contributions! 38 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-device/NOTICE: -------------------------------------------------------------------------------- 1 | Apache Cordova 2 | Copyright 2012 The Apache Software Foundation 3 | 4 | This product includes software developed at 5 | The Apache Software Foundation (http://www.apache.org/). 6 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-device/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cordova-plugin-device", 3 | "version": "1.1.3", 4 | "description": "Cordova Device Plugin", 5 | "cordova": { 6 | "id": "cordova-plugin-device", 7 | "platforms": [ 8 | "firefoxos", 9 | "tizen", 10 | "android", 11 | "amazon-fireos", 12 | "ubuntu", 13 | "ios", 14 | "blackberry10", 15 | "wp7", 16 | "wp8", 17 | "windows8", 18 | "windows", 19 | "browser", 20 | "osx" 21 | ] 22 | }, 23 | "repository": { 24 | "type": "git", 25 | "url": "https://github.com/apache/cordova-plugin-device" 26 | }, 27 | "keywords": [ 28 | "cordova", 29 | "device", 30 | "ecosystem:cordova", 31 | "cordova-firefoxos", 32 | "cordova-tizen", 33 | "cordova-android", 34 | "cordova-amazon-fireos", 35 | "cordova-ubuntu", 36 | "cordova-ios", 37 | "cordova-blackberry10", 38 | "cordova-wp7", 39 | "cordova-wp8", 40 | "cordova-windows8", 41 | "cordova-windows", 42 | "cordova-browser", 43 | "cordova-osx" 44 | ], 45 | "scripts": { 46 | "test": "npm run jshint", 47 | "jshint": "node node_modules/jshint/bin/jshint www && node node_modules/jshint/bin/jshint src && node node_modules/jshint/bin/jshint tests" 48 | }, 49 | "author": "Apache Software Foundation", 50 | "license": "Apache-2.0", 51 | "engines": { 52 | "cordovaDependencies": { 53 | "2.0.0": { 54 | "cordova": ">100" 55 | } 56 | } 57 | }, 58 | "devDependencies": { 59 | "jshint": "^2.6.0" 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-device/src/ios/CDVDevice.h: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | #import 21 | #import 22 | 23 | @interface CDVDevice : CDVPlugin 24 | {} 25 | 26 | + (NSString*)cordovaVersion; 27 | 28 | - (void)getDeviceInfo:(CDVInvokedUrlCommand*)command; 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-device/src/osx/CDVDevice.h: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | #import 21 | 22 | @interface CDVDevice : CDVPlugin 23 | 24 | + (NSString*) cordovaVersion; 25 | 26 | - (void) getDeviceInfo:(CDVInvokedUrlCommand*)command; 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-device/src/tizen/DeviceProxy.js: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | 22 | var tizen = require('cordova/platform'); 23 | 24 | module.exports = { 25 | getDeviceInfo: function(success, error) { 26 | setTimeout(function () { 27 | success({ 28 | cordova: tizen.cordovaVersion, 29 | platform: 'tizen', 30 | model: null, 31 | version: null, 32 | uuid: null 33 | }); 34 | }, 0); 35 | } 36 | }; 37 | 38 | require("cordova/tizen/commandProxy").add("Device", module.exports); 39 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-device/src/ubuntu/device.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Wolfgang Koller - http://www.gofg.at/ 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef DEVICE_H_FDSAFAS 18 | #define DEVICE_H_FDSAFAS 19 | 20 | #include 21 | 22 | #include 23 | 24 | class Device: public CPlugin { 25 | Q_OBJECT 26 | public: 27 | explicit Device(Cordova *cordova); 28 | 29 | virtual const QString fullName() override { 30 | return Device::fullID(); 31 | } 32 | 33 | virtual const QString shortName() override { 34 | return "Device"; 35 | } 36 | 37 | static const QString fullID() { 38 | return "com.cordova.Device"; 39 | } 40 | 41 | signals: 42 | 43 | public slots: 44 | void getInfo(int scId, int ecId); 45 | }; 46 | 47 | #endif 48 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-device/src/ubuntu/device.js: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | 22 | /* global Cordova */ 23 | 24 | module.exports = { 25 | getInfo:function(win,fail,args) { 26 | Cordova.exec(function (model, cordova, platform, uuid, version) { 27 | win({name: name, model: model, cordova: cordova, 28 | platform: platform, uuid: uuid, version: version}); 29 | }, null, "com.cordova.Device", "getInfo", []); 30 | } 31 | }; 32 | 33 | require("cordova/exec/proxy").add("Device", module.exports); 34 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-device/tests/plugin.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 26 | Cordova Device Plugin Tests 27 | Apache 2.0 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-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 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-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 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-file/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cordova-plugin-file", 3 | "version": "4.3.0", 4 | "description": "Cordova File Plugin", 5 | "cordova": { 6 | "id": "cordova-plugin-file", 7 | "platforms": [ 8 | "android", 9 | "amazon-fireos", 10 | "ubuntu", 11 | "ios", 12 | "osx", 13 | "wp7", 14 | "wp8", 15 | "blackberry10", 16 | "windows8", 17 | "windows", 18 | "firefoxos" 19 | ] 20 | }, 21 | "repository": { 22 | "type": "git", 23 | "url": "https://github.com/apache/cordova-plugin-file" 24 | }, 25 | "keywords": [ 26 | "cordova", 27 | "file", 28 | "ecosystem:cordova", 29 | "cordova-android", 30 | "cordova-amazon-fireos", 31 | "cordova-ubuntu", 32 | "cordova-ios", 33 | "cordova-osx", 34 | "cordova-wp7", 35 | "cordova-wp8", 36 | "cordova-blackberry10", 37 | "cordova-windows8", 38 | "cordova-windows", 39 | "cordova-firefoxos" 40 | ], 41 | "scripts": { 42 | "test": "npm run jshint", 43 | "jshint": "node node_modules/jshint/bin/jshint www && node node_modules/jshint/bin/jshint src && node node_modules/jshint/bin/jshint tests" 44 | }, 45 | "author": "Apache Software Foundation", 46 | "license": "Apache-2.0", 47 | "engines": { 48 | "cordovaDependencies": { 49 | "5.0.0": { 50 | "cordova": ">100" 51 | } 52 | } 53 | }, 54 | "devDependencies": { 55 | "jshint": "^2.6.0" 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-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 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-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 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-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 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-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 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-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 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-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 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-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 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-file/src/osx/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 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-file/tests/www/fixtures/asset-test/asset-test.txt: -------------------------------------------------------------------------------- 1 | This file is here for testing purposes -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-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 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-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 | }; -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-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 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-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 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-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 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-file/www/blackberry10/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "globals": { 3 | "requestAnimationFrame": true 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-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('cordova-plugin-file.copyToProxy'); 36 | 37 | module.exports = function (success, fail, args) { 38 | copy(success, fail, args, true); 39 | }; 40 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-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('cordova-plugin-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 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-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 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-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 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-file/www/browser/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 | /*global FILESYSTEM_PREFIX: true, module*/ 23 | 24 | FILESYSTEM_PREFIX = "file:///"; 25 | 26 | module.exports = { 27 | __format__: function(fullPath) { 28 | return (FILESYSTEM_PREFIX + this.name + (fullPath[0] === '/' ? '' : '/') + FileSystem.encodeURIPath(fullPath)); 29 | } 30 | }; 31 | 32 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-file/www/browser/isChrome.js: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | 22 | module.exports = function () { 23 | // window.webkitRequestFileSystem and window.webkitResolveLocalFileSystemURL are available only in Chrome and 24 | // possibly a good flag to indicate that we're running in Chrome 25 | return window.webkitRequestFileSystem && window.webkitResolveLocalFileSystemURL; 26 | }; 27 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-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 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-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 = "file:///"; 23 | 24 | module.exports = { 25 | __format__: function(fullPath) { 26 | return (FILESYSTEM_PREFIX + this.name + (fullPath[0] === '/' ? '' : '/') + FileSystem.encodeURIPath(fullPath)); 27 | } 28 | }; 29 | 30 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-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]==='/'?'':'/')+FileSystem.encodeURIPath(fullPath)).replace('//','/'); 27 | return FILESYSTEM_PROTOCOL + '://localhost' + path; 28 | } 29 | }; 30 | 31 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-file/www/osx/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]==='/'?'':'/')+FileSystem.encodeURIPath(fullPath)).replace('//','/'); 27 | return FILESYSTEM_PROTOCOL + '://localhost' + path; 28 | } 29 | }; 30 | 31 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-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] === '/' ? '' : '/') + FileSystem.encodeURIPath(fullPath)).replace('//','/'); 30 | 31 | return FILESYSTEM_PROTOCOL + '://localhost' + path; 32 | } 33 | }; 34 | 35 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-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 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-inappbrowser/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cordova-plugin-inappbrowser", 3 | "version": "1.7.1", 4 | "description": "Cordova InAppBrowser Plugin", 5 | "types": "./types/index.d.ts", 6 | "cordova": { 7 | "id": "cordova-plugin-inappbrowser", 8 | "platforms": [ 9 | "android", 10 | "amazon-fireos", 11 | "ubuntu", 12 | "ios", 13 | "osx", 14 | "wp7", 15 | "wp8", 16 | "windows8", 17 | "windows", 18 | "firefoxos" 19 | ] 20 | }, 21 | "repository": { 22 | "type": "git", 23 | "url": "https://github.com/apache/cordova-plugin-inappbrowser" 24 | }, 25 | "keywords": [ 26 | "cordova", 27 | "in", 28 | "app", 29 | "browser", 30 | "inappbrowser", 31 | "ecosystem:cordova", 32 | "cordova-android", 33 | "cordova-amazon-fireos", 34 | "cordova-ubuntu", 35 | "cordova-ios", 36 | "cordova-osx", 37 | "cordova-wp7", 38 | "cordova-wp8", 39 | "cordova-windows8", 40 | "cordova-windows", 41 | "cordova-firefoxos" 42 | ], 43 | "scripts": { 44 | "test": "npm run jshint", 45 | "jshint": "node node_modules/jshint/bin/jshint www && node node_modules/jshint/bin/jshint src && node node_modules/jshint/bin/jshint tests" 46 | }, 47 | "engines": { 48 | "cordovaDependencies": { 49 | "0.2.3": { 50 | "cordova": ">=3.1.0" 51 | }, 52 | "2.0.0": { 53 | "cordova": ">100" 54 | } 55 | } 56 | }, 57 | "author": "Apache Software Foundation", 58 | "license": "Apache-2.0", 59 | "devDependencies": { 60 | "jshint": "^2.6.0" 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-inappbrowser/src/android/res/drawable-hdpi/ic_action_next_item.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/plugins/cordova-plugin-inappbrowser/src/android/res/drawable-hdpi/ic_action_next_item.png -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-inappbrowser/src/android/res/drawable-hdpi/ic_action_previous_item.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/plugins/cordova-plugin-inappbrowser/src/android/res/drawable-hdpi/ic_action_previous_item.png -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-inappbrowser/src/android/res/drawable-hdpi/ic_action_remove.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/plugins/cordova-plugin-inappbrowser/src/android/res/drawable-hdpi/ic_action_remove.png -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-inappbrowser/src/android/res/drawable-mdpi/ic_action_next_item.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/plugins/cordova-plugin-inappbrowser/src/android/res/drawable-mdpi/ic_action_next_item.png -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-inappbrowser/src/android/res/drawable-mdpi/ic_action_previous_item.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/plugins/cordova-plugin-inappbrowser/src/android/res/drawable-mdpi/ic_action_previous_item.png -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-inappbrowser/src/android/res/drawable-mdpi/ic_action_remove.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/plugins/cordova-plugin-inappbrowser/src/android/res/drawable-mdpi/ic_action_remove.png -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-inappbrowser/src/android/res/drawable-xhdpi/ic_action_next_item.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/plugins/cordova-plugin-inappbrowser/src/android/res/drawable-xhdpi/ic_action_next_item.png -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-inappbrowser/src/android/res/drawable-xhdpi/ic_action_previous_item.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/plugins/cordova-plugin-inappbrowser/src/android/res/drawable-xhdpi/ic_action_previous_item.png -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-inappbrowser/src/android/res/drawable-xhdpi/ic_action_remove.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/plugins/cordova-plugin-inappbrowser/src/android/res/drawable-xhdpi/ic_action_remove.png -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-inappbrowser/src/android/res/drawable-xxhdpi/ic_action_next_item.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/plugins/cordova-plugin-inappbrowser/src/android/res/drawable-xxhdpi/ic_action_next_item.png -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-inappbrowser/src/android/res/drawable-xxhdpi/ic_action_previous_item.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/plugins/cordova-plugin-inappbrowser/src/android/res/drawable-xxhdpi/ic_action_previous_item.png -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-inappbrowser/src/android/res/drawable-xxhdpi/ic_action_remove.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/plugins/cordova-plugin-inappbrowser/src/android/res/drawable-xxhdpi/ic_action_remove.png -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-inappbrowser/src/osx/CDVInAppBrowser.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 CDVInAppBrowser : CDVPlugin { 23 | } 24 | 25 | @property (nonatomic, copy) NSString* callbackId; 26 | 27 | - (void)open:(CDVInvokedUrlCommand*)command; 28 | 29 | @end 30 | 31 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-inappbrowser/src/ubuntu/InAppBrowser_escapeScript.js: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | 22 | /* jshint -W061 */ 23 | /* global oxide */ 24 | 25 | oxide.addMessageHandler("EXECUTE", function(msg) { 26 | var code = msg.args.code; 27 | try { 28 | msg.reply({result: eval(code)}); 29 | } catch(e) { 30 | msg.error("Code threw exception: \"" + e + "\""); 31 | } 32 | }); 33 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-inappbrowser/src/ubuntu/close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/plugins/cordova-plugin-inappbrowser/src/ubuntu/close.png -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-inappbrowser/tests/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cordova-plugin-inappbrowser-tests", 3 | "version": "1.7.1-dev", 4 | "description": "", 5 | "cordova": { 6 | "id": "cordova-plugin-inappbrowser-tests", 7 | "platforms": [] 8 | }, 9 | "keywords": [ 10 | "ecosystem:cordova" 11 | ], 12 | "author": "", 13 | "license": "Apache 2.0" 14 | } 15 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-inappbrowser/tests/plugin.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 24 | Cordova InAppBrowser Plugin Tests 25 | Apache 2.0 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-inappbrowser/tests/resources/inject.css: -------------------------------------------------------------------------------- 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 | #style-update-file { 20 | display: block !important; 21 | } 22 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-inappbrowser/tests/resources/inject.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | var d = document.getElementById("header"); 20 | d.innerHTML = "Script file successfully injected"; 21 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-inappbrowser/tests/resources/local.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/plugins/cordova-plugin-inappbrowser/tests/resources/local.pdf -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-itunesfilesharing/README.md: -------------------------------------------------------------------------------- 1 | # cordova-plugin-itunesfilesharing 2 | Cordova/PhoneGap plugin for enabling iTunes file sharing. 3 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-itunesfilesharing/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cordova-plugin-itunesfilesharing", 3 | "version": "0.0.1", 4 | "description": "Cordova/PhoneGap plugin for enabling iTunes file sharing", 5 | "cordova": { 6 | "id": "io.phasr.cordova.plugin.itunesfilesharing", 7 | "platforms": [ 8 | "ios" 9 | ] 10 | }, 11 | "repository": { 12 | "type": "git", 13 | "url": "git+https://github.com/christianjunk/cordova-plugin-itunesfilesharing.git" 14 | }, 15 | "keywords": [ 16 | "ecosystem:cordova", 17 | "cordova-ios" 18 | ], 19 | "author": "Christian Junk", 20 | "license": "Apache 2.0 License", 21 | "bugs": { 22 | "url": "https://github.com/christianjunk/cordova-plugin-itunesfilesharing/issues" 23 | }, 24 | "homepage": "https://github.com/christianjunk/cordova-plugin-itunesfilesharing#readme" 25 | } 26 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-itunesfilesharing/plugin.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | cordova-plugin-itunesfilesharing 7 | Cordova/PhoneGap plugin for enabling iTunes file sharing 8 | Apache 2.0 License 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-whitelist/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | 21 | 22 | # Contributing to Apache Cordova 23 | 24 | Anyone can contribute to Cordova. And we need your contributions. 25 | 26 | There are multiple ways to contribute: report bugs, improve the docs, and 27 | contribute code. 28 | 29 | For instructions on this, start with the 30 | [contribution overview](http://cordova.apache.org/contribute/). 31 | 32 | The details are explained there, but the important items are: 33 | - Sign and submit an Apache ICLA (Contributor License Agreement). 34 | - Have a Jira issue open that corresponds to your contribution. 35 | - Run the tests so your patch doesn't break existing functionality. 36 | 37 | We look forward to your contributions! 38 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-whitelist/NOTICE: -------------------------------------------------------------------------------- 1 | Apache Cordova 2 | Copyright 2012 The Apache Software Foundation 3 | 4 | This product includes software developed at 5 | The Apache Software Foundation (http://www.apache.org/). 6 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-whitelist/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cordova-plugin-whitelist", 3 | "version": "1.2.1", 4 | "description": "Cordova Whitelist Plugin", 5 | "cordova": { 6 | "platforms": [ 7 | "android" 8 | ] 9 | }, 10 | "repository": { 11 | "type": "git", 12 | "url": "https://github.com/apache/cordova-plugin-whitelist" 13 | }, 14 | "keywords": [ 15 | "cordova", 16 | "whitelist", 17 | "ecosystem:cordova", 18 | "cordova-android" 19 | ], 20 | "engines": [ 21 | { 22 | "name": "cordova-android", 23 | "version": ">=4.0.0" 24 | } 25 | ], 26 | "author": "Apache Software Foundation", 27 | "license": "Apache 2.0" 28 | } 29 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-whitelist/whitelist.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | * 19 | */ 20 | 21 | if (!document.querySelector('meta[http-equiv=Content-Security-Policy]')) { 22 | var msg = 'No Content-Security-Policy meta tag found. Please add one when using the cordova-plugin-whitelist plugin.'; 23 | console.error(msg); 24 | setInterval(function() { 25 | console.warn(msg); 26 | }, 10000); 27 | } 28 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-x-socialsharing/MIT: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014-2016 Eddy Verbruggen 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-x-socialsharing/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cordova-plugin-x-socialsharing", 3 | "version": "5.1.3", 4 | "description": "Share text, images (and other files), or a link via the native sharing widget of your device. Android is fully supported, as well as iOS 6 and up. WP8 has somewhat limited support.", 5 | "cordova": { 6 | "id": "cordova-plugin-x-socialsharing", 7 | "platforms": [ 8 | "ios", 9 | "android", 10 | "wp8" 11 | ] 12 | }, 13 | "repository": { 14 | "type": "git", 15 | "url": "git+https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin.git" 16 | }, 17 | "keywords": [ 18 | "Social", 19 | "Share", 20 | "Twitter", 21 | "Facebook", 22 | "Email", 23 | "SMS", 24 | "WhatsApp", 25 | "Tumblr", 26 | "Pocket", 27 | "LinkedIn", 28 | "cordova", 29 | "ecosystem:cordova", 30 | "cordova-ios", 31 | "cordova-android", 32 | "cordova-windows" 33 | ], 34 | "engines": [ 35 | { 36 | "name": "cordova", 37 | "version": ">=3.0.0" 38 | } 39 | ], 40 | "author": "Eddy Verbruggen - @EddyVerbruggen", 41 | "license": "MIT", 42 | "bugs": { 43 | "url": "https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin/issues" 44 | }, 45 | "homepage": "https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin#readme" 46 | } 47 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-x-socialsharing/screenshots/screenshot-android-share.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/plugins/cordova-plugin-x-socialsharing/screenshots/screenshot-android-share.png -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-x-socialsharing/screenshots/screenshot-ios6-share.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/plugins/cordova-plugin-x-socialsharing/screenshots/screenshot-ios6-share.png -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-x-socialsharing/screenshots/screenshot-ios7-ipad-share.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/plugins/cordova-plugin-x-socialsharing/screenshots/screenshot-ios7-ipad-share.png -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-x-socialsharing/screenshots/screenshot-ios7-share.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/plugins/cordova-plugin-x-socialsharing/screenshots/screenshot-ios7-share.png -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-x-socialsharing/screenshots/screenshot-wp8-share.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/plugins/cordova-plugin-x-socialsharing/screenshots/screenshot-wp8-share.jpg -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-x-socialsharing/screenshots/screenshots-ios7-shareconfig.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/plugins/cordova-plugin-x-socialsharing/screenshots/screenshots-ios7-shareconfig.png -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-x-socialsharing/src/ios/NSString+URLEncoding.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface NSString (URLEncoding) 4 | @property (readonly) NSString *URLEncodedString; 5 | @end 6 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-x-socialsharing/src/ios/NSString+URLEncoding.m: -------------------------------------------------------------------------------- 1 | #import "NSString+URLEncoding.h" 2 | 3 | @implementation NSString (URLEncoding) 4 | - (NSString*)URLEncodedString 5 | { 6 | NSString* result = (NSString *)CFBridgingRelease( 7 | CFURLCreateStringByAddingPercentEscapes( 8 | kCFAllocatorDefault, 9 | (CFStringRef)self, 10 | CFSTR("#%"), // don't escape these 11 | NULL, // allow escaping these 12 | kCFStringEncodingUTF8 13 | ) 14 | ); 15 | 16 | // we may have a URL with more than one '#' now - which iOS doesn't allow, so escape all but the first one 17 | NSArray *parts = [result componentsSeparatedByString:@"#"]; 18 | NSString *finalResult = parts[0]; 19 | for (int i=1; i 2 | #import 3 | 4 | @interface SocialSharing : CDVPlugin 5 | 6 | @property (nonatomic, strong) MFMailComposeViewController *globalMailComposer; 7 | @property (nonatomic, strong) UIDocumentInteractionController * documentInteractionController; 8 | @property (retain) NSString * tempStoredFile; 9 | @property (retain) CDVInvokedUrlCommand * command; 10 | 11 | - (void)available:(CDVInvokedUrlCommand*)command; 12 | - (void)setIPadPopupCoordinates:(CDVInvokedUrlCommand*)command; 13 | - (void)share:(CDVInvokedUrlCommand*)command; 14 | - (void)shareWithOptions:(CDVInvokedUrlCommand*)command; 15 | - (void)canShareVia:(CDVInvokedUrlCommand*)command; 16 | - (void)canShareViaEmail:(CDVInvokedUrlCommand*)command; 17 | - (void)shareVia:(CDVInvokedUrlCommand*)command; 18 | - (void)shareViaTwitter:(CDVInvokedUrlCommand*)command; 19 | - (void)shareViaFacebook:(CDVInvokedUrlCommand*)command; 20 | - (void)shareViaFacebookWithPasteMessageHint:(CDVInvokedUrlCommand*)command; 21 | - (void)shareViaWhatsApp:(CDVInvokedUrlCommand*)command; 22 | - (void)shareViaSMS:(CDVInvokedUrlCommand*)command; 23 | - (void)shareViaEmail:(CDVInvokedUrlCommand*)command; 24 | - (void)shareViaInstagram:(CDVInvokedUrlCommand*)command; 25 | 26 | - (void)saveToPhotoAlbum:(CDVInvokedUrlCommand*)command; 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-x-socialsharing/src/wp8/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/plugins/cordova-plugin-x-socialsharing/src/wp8/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /AntSharesApp/plugins/cordova-plugin-x-socialsharing/tests/plugin.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | SocialSharing Tests 9 | Nicolas Oliver 10 | MIT 11 | 12 | 13 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/ios.json: -------------------------------------------------------------------------------- 1 | { 2 | "prepare_queue": { 3 | "installed": [], 4 | "uninstalled": [] 5 | }, 6 | "config_munge": { 7 | "files": {} 8 | }, 9 | "installed_plugins": { 10 | "cordova-plugin-background-mode": { 11 | "PACKAGE_NAME": "org.antshares.app" 12 | }, 13 | "cordova-plugin-badge": { 14 | "PACKAGE_NAME": "org.antshares.app" 15 | }, 16 | "cordova-plugin-device": { 17 | "PACKAGE_NAME": "org.antshares.app" 18 | }, 19 | "cordova-plugin-file": { 20 | "PACKAGE_NAME": "org.antshares.app" 21 | }, 22 | "cordova-plugin-inappbrowser": { 23 | "PACKAGE_NAME": "org.antshares.app" 24 | }, 25 | "cordova-plugin-itunesfilesharing": { 26 | "PACKAGE_NAME": "org.antshares.app" 27 | }, 28 | "cordova-plugin-whitelist": { 29 | "PACKAGE_NAME": "org.antshares.app" 30 | }, 31 | "cordova-plugin-x-socialsharing": { 32 | "PACKAGE_NAME": "org.antshares.app" 33 | }, 34 | "phonegap-plugin-barcodescanner": { 35 | "CAMERA_USAGE_DESCRIPTION": " ", 36 | "PACKAGE_NAME": "org.antshares.app" 37 | } 38 | }, 39 | "dependent_plugins": { 40 | "cordova-plugin-app-event": { 41 | "PACKAGE_NAME": "org.antshares.app" 42 | }, 43 | "cordova-plugin-compat": { 44 | "PACKAGE_NAME": "org.antshares.app" 45 | } 46 | } 47 | } -------------------------------------------------------------------------------- /AntSharesApp/plugins/phonegap-plugin-barcodescanner/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "phonegap-plugin-barcodescanner", 3 | "version": "6.0.6", 4 | "description": "You can use the BarcodeScanner plugin to scan different types of barcodes (using the device's camera) and get the metadata encoded in them for processing within your application.", 5 | "cordova": { 6 | "id": "phonegap-plugin-barcodescanner", 7 | "platforms": [ 8 | "ios", 9 | "android", 10 | "windows", 11 | "wp8", 12 | "blackberry10", 13 | "browser" 14 | ] 15 | }, 16 | "repository": { 17 | "type": "git", 18 | "url": "git+https://github.com/phonegap/phonegap-plugin-barcodescanner.git" 19 | }, 20 | "keywords": [ 21 | "ecosystem:cordova", 22 | "ecosystem:phonegap", 23 | "cordova-ios", 24 | "cordova-android", 25 | "cordova-windows", 26 | "cordova-wp8", 27 | "cordova-blackberry10", 28 | "cordova-browser", 29 | "cordova:plugin" 30 | ], 31 | "engines": [ 32 | { 33 | "name": "cordova", 34 | "version": ">=3.0.0" 35 | } 36 | ], 37 | "author": "Adobe PhoneGap Team", 38 | "license": "MIT", 39 | "bugs": { 40 | "url": "https://github.com/phonegap/phonegap-plugin-barcodescanner/issues" 41 | }, 42 | "homepage": "https://github.com/phonegap/phonegap-plugin-barcodescanner#readme", 43 | "scripts": { 44 | "test": "jasmine-node --color spec" 45 | }, 46 | "devDependencies": { 47 | "jasmine-node": "1.14.5", 48 | "pluginpub": "^0.0.6" 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/phonegap-plugin-barcodescanner/src/android/README.md: -------------------------------------------------------------------------------- 1 | The Android .aar sources are [here](https://github.com/EddyVerbruggen/barcodescanner-lib-aar). -------------------------------------------------------------------------------- /AntSharesApp/plugins/phonegap-plugin-barcodescanner/src/android/barcodescanner-release-2.1.5.aar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/plugins/phonegap-plugin-barcodescanner/src/android/barcodescanner-release-2.1.5.aar -------------------------------------------------------------------------------- /AntSharesApp/plugins/phonegap-plugin-barcodescanner/src/android/barcodescanner.gradle: -------------------------------------------------------------------------------- 1 | def DEFAULT_MIN_SDK_VERSION = 15 2 | def minSdk = Math.max(DEFAULT_MIN_SDK_VERSION, cdvHelpers.getConfigPreference('android-minSdkVersion',0) as Integer); 3 | if (cdvMinSdkVersion == null || Integer.parseInt(cdvMinSdkVersion) < minSdk ) { 4 | ext.cdvMinSdkVersion = minSdk; 5 | } 6 | 7 | repositories{ 8 | jcenter() 9 | flatDir{ 10 | dirs 'libs' 11 | } 12 | } 13 | 14 | dependencies { 15 | compile 'com.android.support:support-v4:+' 16 | compile(name:'barcodescanner', ext:'aar') 17 | } 18 | 19 | android { 20 | packagingOptions { 21 | exclude 'META-INF/NOTICE' 22 | exclude 'META-INF/LICENSE' 23 | } 24 | } -------------------------------------------------------------------------------- /AntSharesApp/plugins/phonegap-plugin-barcodescanner/src/blackberry10/native/.settings/com.qnx.tools.ide.core.prefs: -------------------------------------------------------------------------------- 1 | QNX_CURRENT_INSTALL=BlackBerry Native SDK 10.2 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/phonegap-plugin-barcodescanner/src/blackberry10/native/device/.gitignore: -------------------------------------------------------------------------------- 1 | /src 2 | /public 3 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/phonegap-plugin-barcodescanner/src/blackberry10/native/device/libBarcodeScanner.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/plugins/phonegap-plugin-barcodescanner/src/blackberry10/native/device/libBarcodeScanner.so -------------------------------------------------------------------------------- /AntSharesApp/plugins/phonegap-plugin-barcodescanner/src/blackberry10/native/public/json/autolink.h: -------------------------------------------------------------------------------- 1 | #ifndef JSON_AUTOLINK_H_INCLUDED 2 | # define JSON_AUTOLINK_H_INCLUDED 3 | 4 | # include "config.h" 5 | 6 | # ifdef JSON_IN_CPPTL 7 | # include 8 | # endif 9 | 10 | # if !defined(JSON_NO_AUTOLINK) && !defined(JSON_DLL_BUILD) && !defined(JSON_IN_CPPTL) 11 | # define CPPTL_AUTOLINK_NAME "json" 12 | # undef CPPTL_AUTOLINK_DLL 13 | # ifdef JSON_DLL 14 | # define CPPTL_AUTOLINK_DLL 15 | # endif 16 | # include "autolink.h" 17 | # endif 18 | 19 | #endif // JSON_AUTOLINK_H_INCLUDED 20 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/phonegap-plugin-barcodescanner/src/blackberry10/native/public/json/features.h: -------------------------------------------------------------------------------- 1 | #ifndef CPPTL_JSON_FEATURES_H_INCLUDED 2 | # define CPPTL_JSON_FEATURES_H_INCLUDED 3 | 4 | # include "forwards.h" 5 | 6 | namespace Json { 7 | 8 | /** \brief Configuration passed to reader and writer. 9 | * This configuration object can be used to force the Reader or Writer 10 | * to behave in a standard conforming way. 11 | */ 12 | class JSON_API Features 13 | { 14 | public: 15 | /** \brief A configuration that allows all features and assumes all strings are UTF-8. 16 | * - C & C++ comments are allowed 17 | * - Root object can be any JSON value 18 | * - Assumes Value strings are encoded in UTF-8 19 | */ 20 | static Features all(); 21 | 22 | /** \brief A configuration that is strictly compatible with the JSON specification. 23 | * - Comments are forbidden. 24 | * - Root object must be either an array or an object value. 25 | * - Assumes Value strings are encoded in UTF-8 26 | */ 27 | static Features strictMode(); 28 | 29 | /** \brief Initialize the configuration like JsonConfig::allFeatures; 30 | */ 31 | Features(); 32 | 33 | /// \c true if comments are allowed. Default: \c true. 34 | bool allowComments_; 35 | 36 | /// \c true if root must be either an array or an object value. Default: \c false. 37 | bool strictRoot_; 38 | }; 39 | 40 | } // namespace Json 41 | 42 | #endif // CPPTL_JSON_FEATURES_H_INCLUDED 43 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/phonegap-plugin-barcodescanner/src/blackberry10/native/public/json/forwards.h: -------------------------------------------------------------------------------- 1 | #ifndef JSON_FORWARDS_H_INCLUDED 2 | # define JSON_FORWARDS_H_INCLUDED 3 | 4 | # include "config.h" 5 | 6 | namespace Json { 7 | 8 | // writer.h 9 | class FastWriter; 10 | class StyledWriter; 11 | 12 | // reader.h 13 | class Reader; 14 | 15 | // features.h 16 | class Features; 17 | 18 | // value.h 19 | typedef int Int; 20 | typedef unsigned int UInt; 21 | class StaticString; 22 | class Path; 23 | class PathArgument; 24 | class Value; 25 | class ValueIteratorBase; 26 | class ValueIterator; 27 | class ValueConstIterator; 28 | #ifdef JSON_VALUE_USE_INTERNAL_MAP 29 | class ValueAllocator; 30 | class ValueMapAllocator; 31 | class ValueInternalLink; 32 | class ValueInternalArray; 33 | class ValueInternalMap; 34 | #endif // #ifdef JSON_VALUE_USE_INTERNAL_MAP 35 | 36 | } // namespace Json 37 | 38 | 39 | #endif // JSON_FORWARDS_H_INCLUDED 40 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/phonegap-plugin-barcodescanner/src/blackberry10/native/public/json/json.h: -------------------------------------------------------------------------------- 1 | #ifndef JSON_JSON_H_INCLUDED 2 | # define JSON_JSON_H_INCLUDED 3 | 4 | # include "autolink.h" 5 | # include "value.h" 6 | # include "reader.h" 7 | # include "writer.h" 8 | # include "features.h" 9 | 10 | #endif // JSON_JSON_H_INCLUDED 11 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/phonegap-plugin-barcodescanner/src/blackberry10/native/public/tokenizer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/plugins/phonegap-plugin-barcodescanner/src/blackberry10/native/public/tokenizer.cpp -------------------------------------------------------------------------------- /AntSharesApp/plugins/phonegap-plugin-barcodescanner/src/blackberry10/native/public/tokenizer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/plugins/phonegap-plugin-barcodescanner/src/blackberry10/native/public/tokenizer.h -------------------------------------------------------------------------------- /AntSharesApp/plugins/phonegap-plugin-barcodescanner/src/blackberry10/native/simulator/.gitignore: -------------------------------------------------------------------------------- 1 | /public 2 | /src 3 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/phonegap-plugin-barcodescanner/src/blackberry10/native/simulator/libBarcodeScanner.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/plugins/phonegap-plugin-barcodescanner/src/blackberry10/native/simulator/libBarcodeScanner.so -------------------------------------------------------------------------------- /AntSharesApp/plugins/phonegap-plugin-barcodescanner/src/blackberry10/native/src/Logger.hpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013 BlackBerry Limited 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef LOGGER_HPP_ 18 | #define LOGGER_HPP_ 19 | 20 | #include 21 | #include 22 | 23 | class BarcodeScannerJS; 24 | 25 | namespace webworks { 26 | 27 | class Logger { 28 | public: 29 | explicit Logger(const char* name, BarcodeScannerJS *parent = NULL); 30 | virtual ~Logger(); 31 | int debug(const char* message); 32 | int info(const char* message); 33 | int notice(const char* message); 34 | int warn(const char* message); 35 | int error(const char* message); 36 | int critical(const char* message); 37 | int setVerbosity(_Uint8t verbosity); 38 | _Uint8t getVerbosity(); 39 | slog2_buffer_t hiPriorityBuffer(); 40 | slog2_buffer_t lowPriorityBuffer(); 41 | private: 42 | BarcodeScannerJS *m_pParent; 43 | slog2_buffer_set_config_t buffer_config; 44 | slog2_buffer_t buffer_handle[2]; 45 | int log(slog2_buffer_t buffer, _Uint8t severity, const char* message); 46 | }; 47 | 48 | } /* namespace webworks */ 49 | #endif /* LOGGER_HPP_ */ 50 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/phonegap-plugin-barcodescanner/src/blackberry10/native/src/barcodescanner_js.hpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2013-2014 BlackBerry Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef BARCODESCANNERJS_HPP_ 18 | #define BARCODESCANNERJS_HPP_ 19 | 20 | #include "../public/plugin.h" 21 | #include "barcodescanner_ndk.hpp" 22 | #include "Logger.hpp" 23 | #include 24 | 25 | class BarcodeScannerJS: public JSExt { 26 | 27 | public: 28 | explicit BarcodeScannerJS(const std::string& id); 29 | virtual ~BarcodeScannerJS(); 30 | virtual bool CanDelete(); 31 | virtual std::string InvokeMethod(const std::string& command); 32 | void NotifyEvent(const std::string& event); 33 | webworks::Logger* getLog(); 34 | webworks::BarcodeScannerNDK *m_pBarcodeScannerController; 35 | private: 36 | std::string m_id; 37 | // Definition of a pointer to the actual native extension code 38 | webworks::Logger *m_pLogger; 39 | }; 40 | 41 | #endif /* BarcodeScannerJS_HPP_ */ 42 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/phonegap-plugin-barcodescanner/src/browser/BarcodeScannerProxy.js: -------------------------------------------------------------------------------- 1 | function scan(success, error) { 2 | var code = window.prompt("Enter barcode value (empty value will fire the error handler):"); 3 | if(code) { 4 | var result = { 5 | text:code, 6 | format:"Fake", 7 | cancelled:false 8 | }; 9 | success(result); 10 | } else { 11 | error("No barcode"); 12 | } 13 | } 14 | 15 | function encode(type, data, success, errorCallback) { 16 | success(); 17 | } 18 | 19 | module.exports = { 20 | scan: scan, 21 | encode: encode 22 | }; 23 | 24 | require("cordova/exec/proxy").add("BarcodeScanner",module.exports); -------------------------------------------------------------------------------- /AntSharesApp/plugins/phonegap-plugin-barcodescanner/src/ios/CDVBarcodeScanner.bundle/beep.caf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/plugins/phonegap-plugin-barcodescanner/src/ios/CDVBarcodeScanner.bundle/beep.caf -------------------------------------------------------------------------------- /AntSharesApp/plugins/phonegap-plugin-barcodescanner/src/ios/CDVBarcodeScanner.bundle/torch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/plugins/phonegap-plugin-barcodescanner/src/ios/CDVBarcodeScanner.bundle/torch.png -------------------------------------------------------------------------------- /AntSharesApp/plugins/phonegap-plugin-barcodescanner/src/ios/CDVBarcodeScanner.bundle/torch@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/plugins/phonegap-plugin-barcodescanner/src/ios/CDVBarcodeScanner.bundle/torch@2x.png -------------------------------------------------------------------------------- /AntSharesApp/plugins/phonegap-plugin-barcodescanner/src/ios/CDVBarcodeScanner.bundle/torch@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/plugins/phonegap-plugin-barcodescanner/src/ios/CDVBarcodeScanner.bundle/torch@3x.png -------------------------------------------------------------------------------- /AntSharesApp/plugins/phonegap-plugin-barcodescanner/src/windows/lib.UW/ANY/ZXing.winmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/plugins/phonegap-plugin-barcodescanner/src/windows/lib.UW/ANY/ZXing.winmd -------------------------------------------------------------------------------- /AntSharesApp/plugins/phonegap-plugin-barcodescanner/src/windows/lib.UW/ARM/ZXing.winmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/plugins/phonegap-plugin-barcodescanner/src/windows/lib.UW/ARM/ZXing.winmd -------------------------------------------------------------------------------- /AntSharesApp/plugins/phonegap-plugin-barcodescanner/src/windows/lib/ZXing.winmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/plugins/phonegap-plugin-barcodescanner/src/windows/lib/ZXing.winmd -------------------------------------------------------------------------------- /AntSharesApp/plugins/phonegap-plugin-barcodescanner/src/wp8/assets/cancel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/plugins/phonegap-plugin-barcodescanner/src/wp8/assets/cancel.png -------------------------------------------------------------------------------- /AntSharesApp/plugins/phonegap-plugin-barcodescanner/src/wp8/lib/zxing.wp8.0.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/plugins/phonegap-plugin-barcodescanner/src/wp8/lib/zxing.wp8.0.dll -------------------------------------------------------------------------------- /AntSharesApp/plugins/phonegap-plugin-barcodescanner/tests/plugin.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 26 | PhoneGap BarcodeScanner Plugin Tests 27 | Apache 2.0 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /AntSharesApp/plugins/windows.json: -------------------------------------------------------------------------------- 1 | { 2 | "prepare_queue": { 3 | "installed": [], 4 | "uninstalled": [] 5 | }, 6 | "config_munge": { 7 | "files": {} 8 | }, 9 | "installed_plugins": { 10 | "cordova-plugin-background-mode": { 11 | "PACKAGE_NAME": "AntShares" 12 | }, 13 | "cordova-plugin-badge": { 14 | "PACKAGE_NAME": "AntShares" 15 | }, 16 | "cordova-plugin-device": { 17 | "PACKAGE_NAME": "AntShares" 18 | }, 19 | "cordova-plugin-file": { 20 | "PACKAGE_NAME": "AntShares" 21 | }, 22 | "cordova-plugin-inappbrowser": { 23 | "PACKAGE_NAME": "AntShares" 24 | }, 25 | "cordova-plugin-itunesfilesharing": { 26 | "PACKAGE_NAME": "AntShares" 27 | }, 28 | "cordova-plugin-whitelist": { 29 | "PACKAGE_NAME": "AntShares" 30 | }, 31 | "cordova-plugin-x-socialsharing": { 32 | "PACKAGE_NAME": "AntShares" 33 | } 34 | }, 35 | "dependent_plugins": { 36 | "cordova-plugin-app-event": { 37 | "PACKAGE_NAME": "AntShares" 38 | }, 39 | "cordova-plugin-compat": { 40 | "PACKAGE_NAME": "AntShares" 41 | } 42 | } 43 | } -------------------------------------------------------------------------------- /AntSharesApp/res/icons/android/icon-36-ldpi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/android/icon-36-ldpi.png -------------------------------------------------------------------------------- /AntSharesApp/res/icons/android/icon-48-mdpi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/android/icon-48-mdpi.png -------------------------------------------------------------------------------- /AntSharesApp/res/icons/android/icon-72-hdpi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/android/icon-72-hdpi.png -------------------------------------------------------------------------------- /AntSharesApp/res/icons/android/icon-96-xhdpi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/android/icon-96-xhdpi.png -------------------------------------------------------------------------------- /AntSharesApp/res/icons/antshares-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/antshares-logo.png -------------------------------------------------------------------------------- /AntSharesApp/res/icons/antshares-logo.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/antshares-logo.psd -------------------------------------------------------------------------------- /AntSharesApp/res/icons/ios/icon-40-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/ios/icon-40-2x.png -------------------------------------------------------------------------------- /AntSharesApp/res/icons/ios/icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/ios/icon-40.png -------------------------------------------------------------------------------- /AntSharesApp/res/icons/ios/icon-50-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/ios/icon-50-2x.png -------------------------------------------------------------------------------- /AntSharesApp/res/icons/ios/icon-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/ios/icon-50.png -------------------------------------------------------------------------------- /AntSharesApp/res/icons/ios/icon-57-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/ios/icon-57-2x.png -------------------------------------------------------------------------------- /AntSharesApp/res/icons/ios/icon-57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/ios/icon-57.png -------------------------------------------------------------------------------- /AntSharesApp/res/icons/ios/icon-60-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/ios/icon-60-2x.png -------------------------------------------------------------------------------- /AntSharesApp/res/icons/ios/icon-60-3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/ios/icon-60-3x.png -------------------------------------------------------------------------------- /AntSharesApp/res/icons/ios/icon-60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/ios/icon-60.png -------------------------------------------------------------------------------- /AntSharesApp/res/icons/ios/icon-72-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/ios/icon-72-2x.png -------------------------------------------------------------------------------- /AntSharesApp/res/icons/ios/icon-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/ios/icon-72.png -------------------------------------------------------------------------------- /AntSharesApp/res/icons/ios/icon-76-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/ios/icon-76-2x.png -------------------------------------------------------------------------------- /AntSharesApp/res/icons/ios/icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/ios/icon-76.png -------------------------------------------------------------------------------- /AntSharesApp/res/icons/ios/icon-small-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/ios/icon-small-2x.png -------------------------------------------------------------------------------- /AntSharesApp/res/icons/ios/icon-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/ios/icon-small.png -------------------------------------------------------------------------------- /AntSharesApp/res/icons/windows/Square150x150Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/windows/Square150x150Logo.scale-100.png -------------------------------------------------------------------------------- /AntSharesApp/res/icons/windows/Square150x150Logo.scale-100.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/windows/Square150x150Logo.scale-100.psd -------------------------------------------------------------------------------- /AntSharesApp/res/icons/windows/Square150x150Logo.scale-240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/windows/Square150x150Logo.scale-240.png -------------------------------------------------------------------------------- /AntSharesApp/res/icons/windows/Square30x30Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/windows/Square30x30Logo.scale-100.png -------------------------------------------------------------------------------- /AntSharesApp/res/icons/windows/Square310x310Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/windows/Square310x310Logo.scale-100.png -------------------------------------------------------------------------------- /AntSharesApp/res/icons/windows/Square310x310Logo.scale-100.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/windows/Square310x310Logo.scale-100.psd -------------------------------------------------------------------------------- /AntSharesApp/res/icons/windows/Square44x44Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/windows/Square44x44Logo.scale-100.png -------------------------------------------------------------------------------- /AntSharesApp/res/icons/windows/Square44x44Logo.scale-100.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/windows/Square44x44Logo.scale-100.psd -------------------------------------------------------------------------------- /AntSharesApp/res/icons/windows/Square44x44Logo.scale-240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/windows/Square44x44Logo.scale-240.png -------------------------------------------------------------------------------- /AntSharesApp/res/icons/windows/Square70x70Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/windows/Square70x70Logo.scale-100.png -------------------------------------------------------------------------------- /AntSharesApp/res/icons/windows/Square71x71Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/windows/Square71x71Logo.scale-100.png -------------------------------------------------------------------------------- /AntSharesApp/res/icons/windows/Square71x71Logo.scale-100.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/windows/Square71x71Logo.scale-100.psd -------------------------------------------------------------------------------- /AntSharesApp/res/icons/windows/Square71x71Logo.scale-240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/windows/Square71x71Logo.scale-240.png -------------------------------------------------------------------------------- /AntSharesApp/res/icons/windows/StoreLogo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/windows/StoreLogo.scale-100.png -------------------------------------------------------------------------------- /AntSharesApp/res/icons/windows/StoreLogo.scale-240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/windows/StoreLogo.scale-240.png -------------------------------------------------------------------------------- /AntSharesApp/res/icons/windows/Wide310x150Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/windows/Wide310x150Logo.scale-100.png -------------------------------------------------------------------------------- /AntSharesApp/res/icons/windows/Wide310x150Logo.scale-100.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/windows/Wide310x150Logo.scale-100.psd -------------------------------------------------------------------------------- /AntSharesApp/res/icons/windows/Wide310x150Logo.scale-240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/windows/Wide310x150Logo.scale-240.png -------------------------------------------------------------------------------- /AntSharesApp/res/icons/windows/图标说明.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/windows/图标说明.txt -------------------------------------------------------------------------------- /AntSharesApp/res/icons/wp8/ApplicationIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/wp8/ApplicationIcon.png -------------------------------------------------------------------------------- /AntSharesApp/res/icons/wp8/Background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/icons/wp8/Background.png -------------------------------------------------------------------------------- /AntSharesApp/res/screens/android/screen-hdpi-landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/screens/android/screen-hdpi-landscape.png -------------------------------------------------------------------------------- /AntSharesApp/res/screens/android/screen-hdpi-portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/screens/android/screen-hdpi-portrait.png -------------------------------------------------------------------------------- /AntSharesApp/res/screens/android/screen-ldpi-landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/screens/android/screen-ldpi-landscape.png -------------------------------------------------------------------------------- /AntSharesApp/res/screens/android/screen-ldpi-portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/screens/android/screen-ldpi-portrait.png -------------------------------------------------------------------------------- /AntSharesApp/res/screens/android/screen-mdpi-landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/screens/android/screen-mdpi-landscape.png -------------------------------------------------------------------------------- /AntSharesApp/res/screens/android/screen-mdpi-portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/screens/android/screen-mdpi-portrait.png -------------------------------------------------------------------------------- /AntSharesApp/res/screens/android/screen-xhdpi-landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/screens/android/screen-xhdpi-landscape.png -------------------------------------------------------------------------------- /AntSharesApp/res/screens/android/screen-xhdpi-portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/screens/android/screen-xhdpi-portrait.png -------------------------------------------------------------------------------- /AntSharesApp/res/screens/ios/screen-ipad-landscape-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/screens/ios/screen-ipad-landscape-2x.png -------------------------------------------------------------------------------- /AntSharesApp/res/screens/ios/screen-ipad-landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/screens/ios/screen-ipad-landscape.png -------------------------------------------------------------------------------- /AntSharesApp/res/screens/ios/screen-ipad-portrait-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/screens/ios/screen-ipad-portrait-2x.png -------------------------------------------------------------------------------- /AntSharesApp/res/screens/ios/screen-ipad-portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/screens/ios/screen-ipad-portrait.png -------------------------------------------------------------------------------- /AntSharesApp/res/screens/ios/screen-iphone-568h-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/screens/ios/screen-iphone-568h-2x.png -------------------------------------------------------------------------------- /AntSharesApp/res/screens/ios/screen-iphone-landscape-736h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/screens/ios/screen-iphone-landscape-736h.png -------------------------------------------------------------------------------- /AntSharesApp/res/screens/ios/screen-iphone-portrait-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/screens/ios/screen-iphone-portrait-2x.png -------------------------------------------------------------------------------- /AntSharesApp/res/screens/ios/screen-iphone-portrait-667h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/screens/ios/screen-iphone-portrait-667h.png -------------------------------------------------------------------------------- /AntSharesApp/res/screens/ios/screen-iphone-portrait-736h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/screens/ios/screen-iphone-portrait-736h.png -------------------------------------------------------------------------------- /AntSharesApp/res/screens/ios/screen-iphone-portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/screens/ios/screen-iphone-portrait.png -------------------------------------------------------------------------------- /AntSharesApp/res/screens/windows/SplashScreen.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/screens/windows/SplashScreen.scale-100.png -------------------------------------------------------------------------------- /AntSharesApp/res/screens/windows/SplashScreen.scale-240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/screens/windows/SplashScreen.scale-240.png -------------------------------------------------------------------------------- /AntSharesApp/res/screens/windows/SplashScreenPhone.scale-240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/screens/windows/SplashScreenPhone.scale-240.png -------------------------------------------------------------------------------- /AntSharesApp/res/screens/wp8/SplashScreenImage.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/res/screens/wp8/SplashScreenImage.jpg -------------------------------------------------------------------------------- /AntSharesApp/scripts/AntShares/UI/Account/Receive.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.UI.Account 2 | { 3 | export class Receive extends TabBase 4 | { 5 | protected oncreate(): void { 6 | $(this.target).find("#show_prikey").click(this.showPrivateKey); 7 | } 8 | 9 | protected onload(): void 10 | { 11 | if (Global.Wallet == null) 12 | { 13 | TabBase.showTab("#Tab_Wallet_Open"); 14 | return; 15 | } 16 | setTitle(0); 17 | 18 | let backup: string = getCookie("hasBackup"); 19 | if (backup == "" || backup == "0") { 20 | $("#receiver_address").hide(); 21 | $("#qrcode").hide(); 22 | $("#receiver_info").show(); 23 | } else { 24 | $("#receiver_address").show(); 25 | $("#qrcode").show(); 26 | $("#receiver_info").hide(); 27 | } 28 | Global.Wallet.getContracts()[0].getAddress().then(result => { 29 | $("#receiver").text(result); 30 | 31 | let img = $("#qrcode").find("img"); 32 | if (img.length == 0) $("#btnQRcode").click(); 33 | }); 34 | } 35 | 36 | private showPrivateKey() { 37 | Global.Wallet.getAccounts()[0].export().then(result => { 38 | alert(result); 39 | }); 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/AntShares/UI/Advanced/DebugLog.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.UI.Advanced { 2 | export class DebugLog extends TabBase { 3 | 4 | protected oncreate(): void { 5 | $(this.target).find("#debug1").click(this.OnDebugClick1); 6 | 7 | } 8 | 9 | protected onload(args: any[]): void { 10 | 11 | } 12 | 13 | private OnDebugClick1 = (str: string): void => { 14 | if (Global.isMainNet == true) { 15 | debugLog("主网2.4"); 16 | } else{ 17 | debugLog("测试网2.4"); 18 | } 19 | //TabBase.showTab("Tab_Wallet_Validate"); 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /AntSharesApp/scripts/AntShares/UI/Contacts/Create.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.UI.Contacts 2 | { 3 | export class Create extends TabBase 4 | { 5 | protected oncreate(): void 6 | { 7 | $(this.target).find("#create_contact").click(this.OnCreateClick); 8 | 9 | } 10 | 11 | protected onload(): void 12 | { 13 | 14 | } 15 | 16 | private OnCreateClick = () => 17 | { 18 | if (formIsValid("form_create_contact")) 19 | { 20 | let name: string = $("#contact_name").val(); 21 | let address: string = $("#contact_address").val(); 22 | 23 | let contacts: Contacts.Contact; 24 | Contacts.Contact.instance().then(result => 25 | { 26 | contacts = result; 27 | return contacts.get(); 28 | }).then(result => 29 | { 30 | if (result.indexOf(name) >= 0) 31 | throw new Error(Resources.global.contactExists); 32 | return contacts.add(name, address); 33 | }).then(wallet => 34 | { 35 | formReset("form_create_contact"); 36 | TabBase.showTab("#Tab_Contacts_Index", true); 37 | }).catch(e => 38 | { 39 | alert(e); 40 | }) 41 | } 42 | } 43 | 44 | 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/AntShares/UI/Contract/Details.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.UI.Contract 2 | { 3 | export class Details extends TabBase 4 | { 5 | protected oncreate(): void 6 | { 7 | 8 | } 9 | 10 | protected onload(args: any[]): void 11 | { 12 | let contract = args[0] as Wallets.Contract; 13 | $("#contract_type").text("AntShares.Wallets.MultiSigContract"); 14 | $("#contract_content").text(new Uint8Array(contract.redeemScript).toHexString()); 15 | $("#contract_scripthash").text(contract.scriptHash.toString()); 16 | contract.getAddress().then(result => 17 | { 18 | $("#contract_address").text(result); 19 | }); 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /AntSharesApp/scripts/AntShares/UI/Contract/Index.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.UI.Contract 2 | { 3 | export class Index extends TabBase 4 | { 5 | protected oncreate(): void 6 | { 7 | } 8 | 9 | protected onload(): void 10 | { 11 | if (Global.Wallet == null) 12 | { 13 | TabBase.showTab("#Tab_Wallet_Open"); 14 | return; 15 | } 16 | $("#contract_list_wallet").text(Global.Wallet.dbPath); 17 | let ul = $("#Tab_Contract_Index #form_contract_list").find("ul:eq(0)"); 18 | ul.find("li:visible").remove(); 19 | let contracts = Global.Wallet.getContracts(); 20 | for (let i = 0; i < contracts.length; i++) 21 | if (!contracts[i].isStandard()) 22 | this.addContractList(contracts[i]); 23 | } 24 | 25 | private addContractList(contract: Wallets.Contract) 26 | { 27 | let ul = $("#form_contract_list").find("ul:eq(0)"); 28 | let liTemplet = ul.find("li:eq(0)"); 29 | let li = liTemplet.clone(true); 30 | li.removeAttr("style"); 31 | 32 | let spanAddress = li.find("span:eq(0)"); 33 | let a = li.find("a"); 34 | a.click(() => 35 | { 36 | TabBase.showTab("#Tab_Contract_Details", contract); 37 | }); 38 | contract.getAddress().then(result => 39 | { 40 | spanAddress.text(result); 41 | ul.append(li); 42 | }); 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/AntShares/UI/Wallet/ChangePassword.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.UI.Wallet 2 | { 3 | export class ChangePassword extends TabBase 4 | { 5 | protected oncreate(): void 6 | { 7 | $(this.target).find("button").click(this.OnChangePasswordButtonClick); 8 | } 9 | 10 | protected onload(): void 11 | { 12 | if (Global.Wallet == null) 13 | { 14 | TabBase.showTab("#Tab_Wallet_Open"); 15 | return; 16 | } 17 | setTitle(0); 18 | $("#change_wallet_name").text(Global.Wallet.dbPath); 19 | } 20 | 21 | private OnChangePasswordButtonClick = () => 22 | { 23 | if (formIsValid("form_change_password")) 24 | { 25 | Global.Wallet.changePassword($("#old_password").val(), $("#new_password").val()).then(result => 26 | { 27 | if (result) 28 | { 29 | $("#change_error").hide(); 30 | formReset("form_change_password"); 31 | alert(Resources.global.changePwdSuccess); 32 | TabBase.showTab("#Tab_Account_Index"); 33 | } 34 | else 35 | { 36 | $("#change_error").show(); 37 | } 38 | }); 39 | } 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/AntShares/UI/Wallet/Start.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.UI.Wallet { 2 | export class Start extends TabBase { 3 | protected oncreate(): void { 4 | 5 | } 6 | 7 | protected onload(): void { 8 | setTitle(0); 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/Cookies.ts: -------------------------------------------------------------------------------- 1 | ////http://www.w3school.com.cn/js/js_cookies.asp 2 | 3 | function setCookie(c_name, value, expiredays) 4 | { 5 | let exdate = new Date(); 6 | exdate.setDate(exdate.getDate() + expiredays); 7 | document.cookie = c_name + "=" + escape(value) + 8 | ((expiredays == null) ? "" : ";expires=" + exdate.toUTCString()); 9 | } 10 | 11 | function getCookie(c_name) 12 | { 13 | if (document.cookie.length > 0) 14 | { 15 | let c_start = document.cookie.indexOf(c_name + "="); 16 | if (c_start != -1) 17 | { 18 | c_start = c_start + c_name.length + 1; 19 | let c_end = document.cookie.indexOf(";", c_start); 20 | if (c_end == -1) c_end = document.cookie.length; 21 | return unescape(document.cookie.substring(c_start, c_end)); 22 | } 23 | } 24 | return ""; 25 | } 26 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/@static/Blockchain.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.Core 2 | { 3 | Blockchain.GenesisBlock.ensureHash(); 4 | for (let i = 0; i < Blockchain.GenesisBlock.transactions.length; i++) 5 | Blockchain.GenesisBlock.transactions[i].ensureHash(); 6 | } 7 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/Core/AssetType.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.Core 2 | { 3 | export enum AssetType 4 | { 5 | CreditFlag = 0x40, 6 | DutyFlag = 0x80, 7 | 8 | AntShare = 0x00, 9 | AntCoin = 0x01, 10 | Currency = 0x08, 11 | Share = DutyFlag | 0x10, 12 | Invoice = DutyFlag | 0x18, 13 | Token = CreditFlag | 0x20, 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/Core/ContractParameterType.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.Core { 2 | export enum ContractParameterType { 3 | Signature, 4 | Boolean, 5 | Integer, 6 | Hash160, 7 | Hash256, 8 | ByteArray 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/Core/ContractTransaction.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.Core 2 | { 3 | export class ContractTransaction extends Transaction 4 | { 5 | constructor() 6 | { 7 | super(TransactionType.ContractTransaction); 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/Core/EnrollmentTransaction.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.Core 2 | { 3 | export class EnrollmentTransaction extends Transaction 4 | { 5 | public publicKey: Cryptography.ECPoint; 6 | 7 | public get systemFee() { return Fixed8.fromNumber(1000); } 8 | 9 | constructor() 10 | { 11 | super(TransactionType.EnrollmentTransaction); 12 | } 13 | 14 | protected deserializeExclusiveData(reader: IO.BinaryReader): void 15 | { 16 | this.publicKey = Cryptography.ECPoint.deserializeFrom(reader, Cryptography.ECCurve.secp256r1); 17 | } 18 | 19 | public getScriptHashesForVerifying(): PromiseLike 20 | { 21 | let hashes = new Map(); 22 | return super.getScriptHashesForVerifying().then(result => 23 | { 24 | for (let i = 0; i < result.length; i++) 25 | hashes.set(result[i].toString(), result[i]); 26 | return Wallets.Contract.createSignatureRedeemScript(this.publicKey).toScriptHash(); 27 | }).then(result => 28 | { 29 | hashes.set(result.toString(), result); 30 | let array = new Array(); 31 | hashes.forEach(hash => 32 | { 33 | array.push(hash); 34 | }); 35 | return array.sort((a, b) => a.compareTo(b)); 36 | }); 37 | } 38 | 39 | protected serializeExclusiveData(writer: IO.BinaryWriter): void 40 | { 41 | writer.write(this.publicKey.encodePoint(true).buffer); 42 | } 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/Core/FunctionCode.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.Core { 2 | export class FunctionCode implements IO.ISerializable { 3 | 4 | public script: ArrayBuffer; 5 | 6 | public parameterList: ContractParameterType[]; 7 | 8 | public returnType: ContractParameterType; 9 | 10 | private scriptHash: Uint160; 11 | public get ScriptHash() { 12 | if (this.scriptHash == null) { 13 | this.script.toScriptHash().then(result => { 14 | this.scriptHash = result; 15 | return this.scriptHash; 16 | }); 17 | } 18 | return this.scriptHash; 19 | } 20 | 21 | private _size; 22 | public get Size() { 23 | //TODO 24 | return this._size; 25 | } 26 | 27 | public deserialize(reader: IO.BinaryReader): void { 28 | this.script = reader.readVarBytes(); 29 | let paraList = reader.readVarBytes() as Uint8Array; 30 | for (var i = 0; i < paraList.length; i++) { 31 | this.parameterList.push(paraList[i]); 32 | } 33 | this.returnType - reader.readByte() as ContractParameterType; 34 | } 35 | 36 | public serialize(writer: IO.BinaryWriter): void { 37 | //TODO 38 | } 39 | 40 | } 41 | } -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/Core/ICode.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.Core { 2 | export interface ICode { 3 | 4 | Script: ArrayBuffer; 5 | ParameterList: ContractParameterType[]; 6 | ReturnType: ContractParameterType; 7 | ScriptHash: Uint160; 8 | } 9 | } -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/Core/ISignable.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.Core 2 | { 3 | export interface ISignable extends IO.ISerializable 4 | { 5 | deserializeUnsigned(reader: IO.BinaryReader): void; 6 | getScriptHashesForVerifying(): PromiseLike; 7 | serializeUnsigned(writer: IO.BinaryWriter): void; 8 | setScripts(scripts: Scripts.Script[]): void; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/Core/InvocationTransaction.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.Core { 2 | export class InvocationTransaction extends Transaction { 3 | public script: ArrayBuffer; 4 | public gas: Fixed8; 5 | 6 | private size: number; 7 | get Size(): number { 8 | return this.size; 9 | } 10 | 11 | private networkFee: Fixed8; 12 | get NetworkFee(): Fixed8 { 13 | return this.gas; 14 | } 15 | 16 | constructor() { 17 | super(TransactionType.InvocationTransaction); 18 | } 19 | 20 | protected deserializeExclusiveData(reader: IO.BinaryReader): void { 21 | this.script = reader.readVarBytes(65536); 22 | if (this.version >= 1) { 23 | this.gas = reader.readSerializable(Fixed8); 24 | if (this.gas < Fixed8.Zero) throw new Error("格式错误"); 25 | } else { 26 | this.gas = Fixed8.Zero; 27 | } 28 | } 29 | 30 | protected serializeExclusiveData(writer: IO.BinaryWriter): void { 31 | //TODO 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/Core/MinerTransaction.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.Core 2 | { 3 | export class MinerTransaction extends Transaction 4 | { 5 | public nonce: number; 6 | 7 | constructor() 8 | { 9 | super(TransactionType.MinerTransaction); 10 | } 11 | 12 | protected deserializeExclusiveData(reader: IO.BinaryReader): void 13 | { 14 | this.nonce = reader.readUint32(); 15 | } 16 | 17 | protected serializeExclusiveData(writer: IO.BinaryWriter): void 18 | { 19 | writer.writeUint32(this.nonce); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/Core/PublishTransaction.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.Core { 2 | export class PublishTransaction extends Transaction { 3 | public code: FunctionCode; 4 | public needStorage: boolean; 5 | public name: string; 6 | public codeVersion: string; 7 | public author: string; 8 | public email: string; 9 | public description: string; 10 | 11 | private size: number; 12 | public get Size(): number { 13 | //TODO 14 | return this.size; 15 | } 16 | 17 | constructor() { 18 | super(TransactionType.PublishTransaction); 19 | } 20 | 21 | protected deserializeExclusiveData(reader: IO.BinaryReader): void { 22 | this.code = (reader.readSerializable(FunctionCode)); 23 | if (this.version == 0) 24 | this.needStorage = false; 25 | else 26 | this.needStorage = reader.readBoolean(); 27 | this.name = reader.readVarString(); 28 | this.codeVersion = reader.readVarString(); 29 | this.author = reader.readVarString(); 30 | this.email = reader.readVarString(); 31 | this.description = reader.readVarString(); 32 | } 33 | 34 | protected serializeExclusiveData(writer: IO.BinaryWriter): void { 35 | //TODO 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/Core/Scripts/Helper.ts: -------------------------------------------------------------------------------- 1 | interface ArrayBuffer 2 | { 3 | toScriptHash(): PromiseLike; 4 | } 5 | 6 | interface Uint8Array 7 | { 8 | toScriptHash(): PromiseLike; 9 | } 10 | 11 | ArrayBuffer.prototype.toScriptHash = Uint8Array.prototype.toScriptHash = function (): PromiseLike 12 | { 13 | return window.crypto.subtle.digest({name: "SHA-256"}, this).then(result => 14 | { 15 | return window.crypto.subtle.digest({name: "RIPEMD-160"}, result); 16 | }).then(result => 17 | { 18 | return new AntShares.Uint160(result); 19 | }); 20 | } 21 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/Core/Scripts/Script.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.Core.Scripts 2 | { 3 | export class Script implements IO.ISerializable 4 | { 5 | public stackScript: ArrayBuffer; 6 | public redeemScript: ArrayBuffer; 7 | 8 | public deserialize(reader: IO.BinaryReader): void 9 | { 10 | this.stackScript = reader.readVarBytes(); 11 | this.redeemScript = reader.readVarBytes(); 12 | } 13 | 14 | public serialize(writer: IO.BinaryWriter): void 15 | { 16 | writer.writeVarBytes(this.stackScript); 17 | writer.writeVarBytes(this.redeemScript); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/Core/SplitOrder.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.Core 2 | { 3 | export class SplitOrder implements IO.ISerializable 4 | { 5 | public amount: Fixed8; 6 | public price: Fixed8; 7 | public client: Uint160; 8 | 9 | public deserialize(reader: IO.BinaryReader): void 10 | { 11 | this.amount = reader.readFixed8(); 12 | this.price = reader.readFixed8(); 13 | this.client = reader.readUint160(); 14 | } 15 | 16 | public serialize(writer: IO.BinaryWriter): void 17 | { 18 | writer.writeFixed8(this.amount); 19 | writer.writeFixed8(this.price); 20 | writer.writeUintVariable(this.client); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/Core/TransactionAttributeUsage.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.Core 2 | { 3 | export enum TransactionAttributeUsage 4 | { 5 | ContractHash = 0x00, 6 | 7 | ECDH02 = 0x02, 8 | ECDH03 = 0x03, 9 | 10 | Script = 0x20, 11 | 12 | Vote = 0x30, 13 | 14 | CertUrl = 0x80, 15 | DescriptionUrl = 0x81, 16 | Description = 0x90, 17 | 18 | Hash1 = 0xa1, 19 | Hash2 = 0xa2, 20 | Hash3 = 0xa3, 21 | Hash4 = 0xa4, 22 | Hash5 = 0xa5, 23 | Hash6 = 0xa6, 24 | Hash7 = 0xa7, 25 | Hash8 = 0xa8, 26 | Hash9 = 0xa9, 27 | Hash10 = 0xaa, 28 | Hash11 = 0xab, 29 | Hash12 = 0xac, 30 | Hash13 = 0xad, 31 | Hash14 = 0xae, 32 | Hash15 = 0xaf, 33 | 34 | Remark = 0xf0, 35 | Remark1 = 0xf1, 36 | Remark2 = 0xf2, 37 | Remark3 = 0xf3, 38 | Remark4 = 0xf4, 39 | Remark5 = 0xf5, 40 | Remark6 = 0xf6, 41 | Remark7 = 0xf7, 42 | Remark8 = 0xf8, 43 | Remark9 = 0xf9, 44 | Remark10 = 0xfa, 45 | Remark11 = 0xfb, 46 | Remark12 = 0xfc, 47 | Remark13 = 0xfd, 48 | Remark14 = 0xfe, 49 | Remark15 = 0xff 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/Core/TransactionInput.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.Core 2 | { 3 | export class TransactionInput implements IO.ISerializable 4 | { 5 | public prevHash: Uint256; 6 | public prevIndex: number; 7 | 8 | public deserialize(reader: IO.BinaryReader): void 9 | { 10 | this.prevHash = reader.readUint256(); 11 | this.prevIndex = reader.readUint16(); 12 | } 13 | 14 | public equals(other: TransactionInput): boolean 15 | { 16 | if (this === other) return true; 17 | if (null == other) return false; 18 | return this.prevHash.equals(other.prevHash) && this.prevIndex == other.prevIndex; 19 | } 20 | 21 | public serialize(writer: IO.BinaryWriter): void 22 | { 23 | writer.writeUintVariable(this.prevHash); 24 | writer.writeUint16(this.prevIndex); 25 | } 26 | 27 | public toString(): string 28 | { 29 | return this.prevHash.toString() + ':' + this.prevIndex; 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/Core/TransactionOutput.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.Core 2 | { 3 | export class TransactionOutput implements IO.ISerializable 4 | { 5 | public assetId: Uint256; 6 | public value: Fixed8; 7 | public scriptHash: Uint160; 8 | 9 | public deserialize(reader: IO.BinaryReader): void 10 | { 11 | this.assetId = reader.readUint256(); 12 | this.value = reader.readFixed8(); 13 | this.scriptHash = reader.readUint160(); 14 | } 15 | 16 | public serialize(writer: IO.BinaryWriter): void 17 | { 18 | writer.writeUintVariable(this.assetId); 19 | writer.writeFixed8(this.value); 20 | writer.writeUintVariable(this.scriptHash); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/Core/TransactionType.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.Core { 2 | export enum TransactionType { 3 | MinerTransaction = 0x00, 4 | IssueTransaction = 0x01, 5 | ClaimTransaction = 0x02, 6 | EnrollmentTransaction = 0x20, 7 | RegisterTransaction = 0x40, 8 | ContractTransaction = 0x80, 9 | AgencyTransaction = 0xb0, 10 | PublishTransaction = 0xd0, 11 | InvocationTransaction = 0xd1 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/Core/Vote.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.Core 2 | { 3 | export class Vote 4 | { 5 | public enrollments: Uint256[]; 6 | 7 | public Count: Fixed8; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/IO/Caching/ITrackable.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.IO.Caching 2 | { 3 | export interface ITrackable 4 | { 5 | key: TKey; 6 | trackState: TrackState; 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/IO/Caching/TrackState.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.IO.Caching 2 | { 3 | export enum TrackState 4 | { 5 | None, 6 | Added, 7 | Changed, 8 | Deleted 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/IO/Helper.ts: -------------------------------------------------------------------------------- 1 | interface Uint8Array 2 | { 3 | asSerializable(T: Function): AntShares.IO.ISerializable; 4 | } 5 | 6 | interface Uint8ArrayConstructor 7 | { 8 | fromSerializable(obj: AntShares.IO.ISerializable): Uint8Array; 9 | } 10 | 11 | Uint8Array.prototype.asSerializable = function (T: Function): AntShares.IO.ISerializable 12 | { 13 | let ms = new AntShares.IO.MemoryStream(this.buffer, false); 14 | let reader = new AntShares.IO.BinaryReader(ms); 15 | return reader.readSerializable(T); 16 | } 17 | 18 | Uint8Array.fromSerializable = function (obj: AntShares.IO.ISerializable): Uint8Array 19 | { 20 | let ms = new AntShares.IO.MemoryStream(); 21 | let writer = new AntShares.IO.BinaryWriter(ms); 22 | obj.serialize(writer); 23 | return new Uint8Array(ms.toArray()); 24 | } 25 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/IO/ISerializable.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.IO 2 | { 3 | export interface ISerializable 4 | { 5 | deserialize(reader: BinaryReader): void; 6 | serialize(writer: BinaryWriter): void; 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/IO/Stream.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.IO 2 | { 3 | export enum SeekOrigin 4 | { 5 | Begin, 6 | Current, 7 | End 8 | } 9 | 10 | export abstract class Stream 11 | { 12 | private _array = new Uint8Array(1); 13 | 14 | public abstract canRead(): boolean; 15 | public abstract canSeek(): boolean; 16 | public abstract canWrite(): boolean; 17 | public close(): void { } 18 | public abstract length(): number; 19 | public abstract position(): number; 20 | public abstract read(buffer: ArrayBuffer, offset: number, count: number): number; 21 | public readByte(): number 22 | { 23 | if (this.read(this._array.buffer, 0, 1) == 0) return -1; 24 | return this._array[0]; 25 | } 26 | public abstract seek(offset: number, origin: SeekOrigin): number; 27 | public abstract setLength(value: number): void; 28 | public abstract write(buffer: ArrayBuffer, offset: number, count: number): void; 29 | public writeByte(value: number): void 30 | { 31 | if (value < 0 || value > 255) throw new RangeError(); 32 | this._array[0] = value; 33 | this.write(this._array.buffer, 0, 1); 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/Implementations/Wallets/IndexedDB/DbTransaction.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.Implementations.Wallets.IndexedDB 2 | { 3 | export class DbTransaction 4 | { 5 | constructor(private transaction: IDBTransaction) { } 6 | 7 | public commit(): PromiseLike 8 | { 9 | return new Promise((resolve, reject) => 10 | { 11 | this.transaction.oncomplete = () => resolve(); 12 | this.transaction.onerror = () => reject(this.transaction.error); 13 | }); 14 | } 15 | 16 | public store(name: string): IDBObjectStore 17 | { 18 | return this.transaction.objectStore(name); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/Implementations/Wallets/IndexedDB/WalletDataContext.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.Implementations.Wallets.IndexedDB 2 | { 3 | export class WalletDataContext extends DbContext 4 | { 5 | protected onModelCreating(db: IDBDatabase): void 6 | { 7 | let objectStore = db.createObjectStore("Account", { keyPath: "publicKeyHash" }); 8 | 9 | objectStore = db.createObjectStore("Contract", { keyPath: "scriptHash" }); 10 | objectStore.createIndex("publicKeyHash", "publicKeyHash", { unique: false }); 11 | 12 | objectStore = db.createObjectStore("Key", { keyPath: "name" }); 13 | 14 | objectStore = db.createObjectStore("Transaction", { keyPath: "hash" }); 15 | objectStore.createIndex("type", "type", { unique: false }); 16 | objectStore.createIndex("height", "height", { unique: false }); 17 | 18 | objectStore = db.createObjectStore("Coin", { keyPath: ["txid", "index"] } as any); 19 | objectStore.createIndex("assetId", "assetId", { unique: false }); 20 | objectStore.createIndex("scriptHash", "scriptHash", { unique: false }); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/Linq/ConcatEnumerator.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.Linq 2 | { 3 | export class ConcatEnumerator extends Enumerator 4 | { 5 | private enumerator: Enumerator; 6 | 7 | constructor(private enumerators: Enumerator>) 8 | { 9 | super(); 10 | } 11 | 12 | public next(): boolean 13 | { 14 | if (this.enumerator == null) 15 | if (!this.nextEnumerator()) 16 | return false; 17 | while (!this.enumerator.next()) 18 | if (!this.nextEnumerator()) 19 | return false; 20 | return true; 21 | } 22 | 23 | private nextEnumerator(): boolean 24 | { 25 | if (!this.enumerators.next()) 26 | return false; 27 | this.enumerator = this.enumerators.value(); 28 | this.enumerator.reset(); 29 | return true; 30 | } 31 | 32 | public reset(): void 33 | { 34 | this.enumerator = null; 35 | this.enumerators.reset(); 36 | } 37 | 38 | public value(): T 39 | { 40 | return this.enumerator.value(); 41 | } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/Linq/DistinctEnumerator.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.Linq 2 | { 3 | export class DistinctEnumerator extends Enumerator 4 | { 5 | private set = new Array(); 6 | 7 | constructor(private enumerator: Enumerator, private comparer: Func2) 8 | { 9 | super(); 10 | } 11 | 12 | public next(): boolean 13 | { 14 | while (this.enumerator.next()) 15 | { 16 | let flag = false; 17 | for (let i = 0; i < this.set.length; i++) 18 | { 19 | if (this.comparer(this.enumerator.value(), this.set[i])) 20 | { 21 | flag = true; 22 | break; 23 | } 24 | } 25 | if (!flag) 26 | { 27 | this.set.push(this.value()); 28 | return true; 29 | } 30 | } 31 | return false; 32 | } 33 | 34 | public reset(): void 35 | { 36 | this.set.length = 0; 37 | this.enumerator.reset(); 38 | } 39 | 40 | public value(): T 41 | { 42 | return this.enumerator.value(); 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/Linq/ExceptEnumerator.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.Linq 2 | { 3 | export class ExceptEnumerator extends Enumerator 4 | { 5 | private array2: T[]; 6 | 7 | constructor(private e1: Enumerator, private e2: Enumerator, private comparer: Func2) 8 | { 9 | super(); 10 | } 11 | 12 | public next(): boolean 13 | { 14 | while (this.e1.next()) 15 | { 16 | if (this.array2 == null) 17 | this.array2 = this.e2.toArray(); 18 | let flag = false; 19 | for (let i = 0; i < this.array2.length; i++) 20 | { 21 | if (this.comparer(this.e1.value(), this.array2[i])) 22 | { 23 | flag = true; 24 | break; 25 | } 26 | } 27 | if (!flag) return true; 28 | } 29 | return false; 30 | } 31 | 32 | public reset(): void 33 | { 34 | this.array2 = null; 35 | this.e1.reset(); 36 | } 37 | 38 | public value(): T 39 | { 40 | return this.e1.value(); 41 | } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/Linq/Helper.ts: -------------------------------------------------------------------------------- 1 | type Func2 = (arg1: T1, arg2: T2) => TResult; 2 | 3 | function linq(array: ArrayLike): AntShares.Linq.Enumerator 4 | { 5 | return new AntShares.Linq.ArrayEnumerator(array); 6 | } 7 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/Linq/IntersectEnumerator.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.Linq 2 | { 3 | export class IntersectEnumerator extends Enumerator 4 | { 5 | private array2: T[]; 6 | 7 | constructor(private e1: Enumerator, private e2: Enumerator, private comparer: Func2) 8 | { 9 | super(); 10 | } 11 | 12 | public next(): boolean 13 | { 14 | while (this.e1.next()) 15 | { 16 | if (this.array2 == null) 17 | this.array2 = this.e2.toArray(); 18 | let flag = false; 19 | for (let i = 0; i < this.array2.length; i++) 20 | { 21 | if (this.comparer(this.e1.value(), this.array2[i])) 22 | { 23 | flag = true; 24 | break; 25 | } 26 | } 27 | if (flag) return true; 28 | } 29 | return false; 30 | } 31 | 32 | public reset(): void 33 | { 34 | this.array2 = null; 35 | this.e1.reset(); 36 | } 37 | 38 | public value(): T 39 | { 40 | return this.e1.value(); 41 | } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/Linq/OrderByEnumerator.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.Linq 2 | { 3 | export class OrderByEnumerator extends Enumerator 4 | { 5 | private arrayEnumerator: Enumerator; 6 | 7 | constructor(private enumerator: Enumerator, private keySelector: Func, private comparer: Func2) 8 | { 9 | super(); 10 | } 11 | 12 | public next(): boolean 13 | { 14 | if (this.arrayEnumerator == null) 15 | this.arrayEnumerator = new ArrayEnumerator(this.enumerator.toArray().sort((a, b) => this.comparer(this.keySelector(a), this.keySelector(b)))); 16 | return this.arrayEnumerator.next(); 17 | } 18 | 19 | public reset(): void 20 | { 21 | this.arrayEnumerator = null; 22 | } 23 | 24 | public value(): TSource 25 | { 26 | return this.arrayEnumerator.value(); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/Linq/ReverseEnumerator.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.Linq 2 | { 3 | export class ReverseEnumerator extends Enumerator 4 | { 5 | private arrayEnumerator: Enumerator; 6 | 7 | constructor(private enumerator: Enumerator) 8 | { 9 | super(); 10 | } 11 | 12 | public next(): boolean 13 | { 14 | if (this.arrayEnumerator == null) 15 | { 16 | let array = new Array(); 17 | while (this.enumerator.next()) 18 | array.unshift(this.enumerator.value()); 19 | this.arrayEnumerator = new ArrayEnumerator(array); 20 | } 21 | return this.arrayEnumerator.next(); 22 | } 23 | 24 | public reset(): void 25 | { 26 | this.arrayEnumerator = null; 27 | this.enumerator.reset(); 28 | } 29 | 30 | public value(): T 31 | { 32 | return this.arrayEnumerator.value(); 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/Linq/SelectEnumerator.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.Linq 2 | { 3 | export class SelectEnumerator extends Enumerator 4 | { 5 | private index = -1; 6 | 7 | constructor(private enumerator: Enumerator, private selector: Func2) 8 | { 9 | super(); 10 | } 11 | 12 | public next(): boolean 13 | { 14 | let b = this.enumerator.next(); 15 | if (b) this.index++; 16 | return b; 17 | } 18 | 19 | public reset(): void 20 | { 21 | this.index = -1; 22 | this.enumerator.reset(); 23 | } 24 | 25 | public value(): TResult 26 | { 27 | return this.selector(this.enumerator.value(), this.index); 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/Linq/SkipWhileEnumerator.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.Linq 2 | { 3 | export class SkipWhileEnumerator extends Enumerator 4 | { 5 | private skipped = false; 6 | 7 | constructor(private enumerator: Enumerator, private predicate: Func2) 8 | { 9 | super(); 10 | } 11 | 12 | public next(): boolean 13 | { 14 | if (!this.skipped) 15 | { 16 | let index = 0; 17 | while (this.enumerator.next()) 18 | if (!this.predicate(this.enumerator.value(), index++)) 19 | return this.skipped = true; 20 | this.skipped = true; 21 | } 22 | return this.enumerator.next(); 23 | } 24 | 25 | public reset(): void 26 | { 27 | this.skipped = false; 28 | this.enumerator.reset(); 29 | } 30 | 31 | public value(): T 32 | { 33 | return this.enumerator.value(); 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/Linq/TakeWhileEnumerator.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.Linq 2 | { 3 | export class TakeWhileEnumerator extends Enumerator 4 | { 5 | private finished = false; 6 | private index = 0; 7 | 8 | constructor(private enumerator: Enumerator, private predicate: Func2) 9 | { 10 | super(); 11 | } 12 | 13 | public next(): boolean 14 | { 15 | if (this.finished) return false; 16 | if (!this.enumerator.next()) return false; 17 | if (this.predicate(this.enumerator.value(), this.index++)) 18 | return true; 19 | this.finished = true; 20 | return false; 21 | } 22 | 23 | public reset(): void 24 | { 25 | this.finished = false; 26 | this.index = 0; 27 | this.enumerator.reset(); 28 | } 29 | 30 | public value(): T 31 | { 32 | return this.enumerator.value(); 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/Linq/WhereEnumerator.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.Linq 2 | { 3 | export class WhereEnumerator extends Enumerator 4 | { 5 | private index = 0; 6 | 7 | constructor(private enumerator: Enumerator, private predicate: Func2) 8 | { 9 | super(); 10 | } 11 | 12 | public next(): boolean 13 | { 14 | while (this.enumerator.next()) 15 | if (this.predicate(this.enumerator.value(), this.index++)) 16 | return true; 17 | return false; 18 | } 19 | 20 | public reset(): void 21 | { 22 | this.index = 0; 23 | this.enumerator.reset(); 24 | } 25 | 26 | public value(): T 27 | { 28 | return this.enumerator.value(); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/Network/Inventory.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.Network 2 | { 3 | export abstract class Inventory implements Core.ISignable 4 | { 5 | public hash: Uint256; 6 | 7 | public ensureHash(): PromiseLike 8 | { 9 | if (this.hash != null) return Promise.resolve(this.hash); 10 | return window.crypto.subtle.digest({ name: "SHA-256" }, this.getHashData()).then(result => 11 | { 12 | return window.crypto.subtle.digest({ name: "SHA-256" }, result); 13 | }).then(result => 14 | { 15 | return this.hash = new Uint256(result); 16 | }); 17 | } 18 | 19 | public abstract deserialize(reader: IO.BinaryReader): void; 20 | 21 | public abstract deserializeUnsigned(reader: IO.BinaryReader): void; 22 | 23 | protected getHashData(): ArrayBuffer 24 | { 25 | let ms = new IO.MemoryStream(); 26 | let w = new IO.BinaryWriter(ms); 27 | this.serializeUnsigned(w); 28 | return ms.toArray(); 29 | } 30 | 31 | public abstract getScriptHashesForVerifying(): PromiseLike; 32 | 33 | public abstract serialize(writer: IO.BinaryWriter): void; 34 | 35 | public abstract serializeUnsigned(writer: IO.BinaryWriter): void; 36 | 37 | public abstract setScripts(scripts: Core.Scripts.Script[]): void; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/Network/RemoteNode.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.Network 2 | { 3 | export class RemoteNode 4 | { 5 | constructor(private rpc: RPC.RpcClient) { } 6 | 7 | public relay(inventory: Inventory): PromiseLike 8 | { 9 | return this.rpc.call("sendrawtransaction", [Uint8Array.fromSerializable(inventory).toHexString()]); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/Uint160.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | namespace AntShares 4 | { 5 | let _zero: Uint160; 6 | 7 | export class Uint160 extends UintVariable 8 | { 9 | public static get Zero() { return _zero || (_zero = new Uint160()); } 10 | 11 | constructor(value?: ArrayBuffer) 12 | { 13 | if (value == null) value = new ArrayBuffer(20); 14 | if (value.byteLength != 20) throw new RangeError(); 15 | super(new Uint32Array(value)); 16 | } 17 | 18 | public static parse(str: string): Uint160 19 | { 20 | if (str.length != 40) throw new RangeError(); 21 | let x = str.hexToBytes(); 22 | let y = new Uint8Array(x.length); 23 | for (let i = 0; i < y.length; i++) 24 | y[i] = x[x.length - i - 1]; 25 | return new Uint160(y.buffer); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/Uint256.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares 2 | { 3 | let _zero: Uint256; 4 | 5 | export class Uint256 extends UintVariable 6 | { 7 | public static get Zero() { return _zero || (_zero = new Uint256()); } 8 | 9 | constructor(value?: ArrayBuffer) 10 | { 11 | if (value == null) value = new ArrayBuffer(32); 12 | if (value.byteLength != 32) throw new RangeError(); 13 | super(new Uint32Array(value)); 14 | } 15 | 16 | public static parse(str: string): Uint256 17 | { 18 | if (str.length != 64) throw new RangeError(); 19 | let x = str.hexToBytes(); 20 | let y = new Uint8Array(x.length); 21 | for (let i = 0; i < y.length; i++) 22 | y[i] = x[x.length - i - 1]; 23 | return new Uint256(y.buffer); 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/Wallets/Coin.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.Wallets 2 | { 3 | export class Coin implements IO.Caching.ITrackable 4 | { 5 | public input: Core.TransactionInput; 6 | public assetId: Uint256; 7 | public value: Fixed8; 8 | public scriptHash: Uint160; 9 | public trackState: IO.Caching.TrackState; 10 | 11 | public get key() { return this.input.toString(); } 12 | 13 | private _state = CoinState.Unconfirmed; 14 | public get state() { return this._state; } 15 | public set state(value) 16 | { 17 | if (this._state != value) 18 | { 19 | this._state = value; 20 | if (this.trackState == IO.Caching.TrackState.None) 21 | this.trackState = IO.Caching.TrackState.Changed; 22 | } 23 | } 24 | 25 | public equals(other: Coin): boolean 26 | { 27 | if (this === other) return true; 28 | if (null === other) return false; 29 | return this.input.equals(other.input); 30 | } 31 | 32 | public getAddress(): PromiseLike 33 | { 34 | return Wallet.toAddress(this.scriptHash); 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/Wallets/CoinState.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.Wallets 2 | { 3 | export enum CoinState 4 | { 5 | Unconfirmed, 6 | Unspent, 7 | Spending, 8 | Spent, 9 | SpentAndClaimed 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/AntShares/Wallets/ContractParameterType.ts: -------------------------------------------------------------------------------- 1 | namespace AntShares.Wallets 2 | { 3 | export enum ContractParameterType 4 | { 5 | Signature, 6 | Integer, 7 | Hash160, 8 | Hash256, 9 | ByteArray 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/Map.ts: -------------------------------------------------------------------------------- 1 | if (window.Map == null) window.Map = class 2 | { 3 | private _map = new Object(); 4 | private _size = 0; 5 | 6 | public get size() { return this._size; } 7 | 8 | public clear(): void 9 | { 10 | for (let key in this._map) 11 | delete this._map[key]; 12 | this._size = 0; 13 | } 14 | 15 | public delete(key: TKey): boolean 16 | { 17 | if (!this._map.hasOwnProperty(key)) 18 | return false; 19 | this._size--; 20 | return delete this._map[key]; 21 | } 22 | 23 | public forEach(callback: (value: TValue, key: TKey, map: Map) => void): void 24 | { 25 | for (let key in this._map) 26 | callback(this._map[key], key, this); 27 | } 28 | 29 | public get(key: TKey): TValue 30 | { 31 | return this._map[key]; 32 | } 33 | 34 | public has(key: TKey): boolean 35 | { 36 | return this._map.hasOwnProperty(key); 37 | } 38 | 39 | public set(key: TKey, value: TValue): void 40 | { 41 | if (!this._map.hasOwnProperty(key)) 42 | this._size++; 43 | this._map[key] = value; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/__event.ts: -------------------------------------------------------------------------------- 1 | type EventHandler = (sender: Object, args: T) => void; 2 | 3 | class __event 4 | { 5 | private handlers = new Array>(); 6 | 7 | constructor(private sender: Object) { } 8 | 9 | public addEventListener(handler: EventHandler): void 10 | { 11 | this.handlers.push(handler); 12 | } 13 | 14 | public dispatchEvent(args: T): void 15 | { 16 | for (let i = 0; i < this.handlers.length; i++) 17 | this.handlers[i](this.sender, args); 18 | } 19 | 20 | public removeEventListener(handler: EventHandler): void 21 | { 22 | for (let i = 0; i < this.handlers.length; i++) 23 | if (this.handlers[i] === handler) 24 | { 25 | this.handlers.splice(i, 1); 26 | return; 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/sdk/__extends.ts: -------------------------------------------------------------------------------- 1 | var __extends = function (d, b) 2 | { 3 | function __() { this.constructor = d; } 4 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); 5 | }; 6 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es5", 4 | "noImplicitAny": false, 5 | "removeComments": true, 6 | "sourceMap": true, 7 | "inlineSources": true, 8 | "noEmitOnError": true, 9 | "out": "www/scripts/appBundle.js" 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /AntSharesApp/scripts/typings/cordova/plugins/Device.d.ts: -------------------------------------------------------------------------------- 1 | // Type definitions for Apache Cordova Device plugin. 2 | // Project: https://github.com/apache/cordova-plugin-device 3 | // Definitions by: Microsoft Open Technologies, Inc. 4 | // Definitions: https://github.com/borisyankov/DefinitelyTyped 5 | // 6 | // Copyright (c) Microsoft Open Technologies, Inc. 7 | // Licensed under the MIT license. 8 | 9 | /** 10 | * This plugin defines a global device object, which describes the device's hardware and software. 11 | * Although the object is in the global scope, it is not available until after the deviceready event. 12 | */ 13 | interface Device { 14 | /** Get the version of Cordova running on the device. */ 15 | cordova: string; 16 | /** 17 | * The device.model returns the name of the device's model or product. The value is set 18 | * by the device manufacturer and may be different across versions of the same product. 19 | */ 20 | model: string; 21 | /** Get the device's operating system name. */ 22 | platform: string; 23 | /** Get the device's Universally Unique Identifier (UUID). */ 24 | uuid: string; 25 | /** Get the operating system version. */ 26 | version: string; 27 | } 28 | 29 | declare var device: Device; -------------------------------------------------------------------------------- /AntSharesApp/scripts/typings/cordova/plugins/Splashscreen.d.ts: -------------------------------------------------------------------------------- 1 | // Type definitions for Apache Cordova Splashscreen plugin. 2 | // Project: https://github.com/apache/cordova-plugin-splashscreen 3 | // Definitions by: Microsoft Open Technologies, Inc. 4 | // Definitions: https://github.com/borisyankov/DefinitelyTyped 5 | // 6 | // Copyright (c) Microsoft Open Technologies, Inc. 7 | // Licensed under the MIT license. 8 | 9 | interface Navigator { 10 | /** This plugin displays and hides a splash screen during application launch. */ 11 | splashscreen: { 12 | /** Dismiss the splash screen. */ 13 | hide(): void; 14 | /** Displays the splash screen. */ 15 | show(): void; 16 | } 17 | } -------------------------------------------------------------------------------- /AntSharesApp/scripts/typings/cordova/plugins/Vibration.d.ts: -------------------------------------------------------------------------------- 1 | // Type definitions for Apache Cordova Vibration plugin. 2 | // Project: https://github.com/apache/cordova-plugin-vibration 3 | // Definitions by: Microsoft Open Technologies, Inc. 4 | // Definitions: https://github.com/borisyankov/DefinitelyTyped 5 | // 6 | // Copyright (c) Microsoft Open Technologies, Inc. 7 | // Licensed under the MIT license. 8 | 9 | interface Notification { 10 | /** 11 | * Vibrates the device for the specified amount of time. 12 | * @param time Milliseconds to vibrate the device. Ignored on iOS. 13 | */ 14 | vibrate(time: number): void 15 | /** 16 | * Vibrates the device with a given pattern. 17 | * @param number[] pattern Pattern with which to vibrate the device. 18 | * The first value - number of milliseconds to wait before turning the vibrator on. 19 | * The next value - the number of milliseconds for which to keep the vibrator on before turning it off. 20 | * @param number repeat Optional index into the pattern array at which to start repeating (will repeat until canceled), 21 | * or -1 for no repetition (default). 22 | */ 23 | vibrateWithPattern(pattern: number[], repeat: number): void; 24 | /** 25 | * Immediately cancels any currently running vibration. 26 | */ 27 | cancelVibration(): void; 28 | } -------------------------------------------------------------------------------- /AntSharesApp/taco.json: -------------------------------------------------------------------------------- 1 | { 2 | "cordova-cli": "6.3.1" 3 | } -------------------------------------------------------------------------------- /AntSharesApp/www/fonts/SourceCodePro-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/www/fonts/SourceCodePro-Regular.ttf -------------------------------------------------------------------------------- /AntSharesApp/www/fonts/iconfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/www/fonts/iconfont.eot -------------------------------------------------------------------------------- /AntSharesApp/www/fonts/iconfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/www/fonts/iconfont.ttf -------------------------------------------------------------------------------- /AntSharesApp/www/fonts/iconfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/www/fonts/iconfont.woff -------------------------------------------------------------------------------- /AntSharesApp/www/img/logo-line.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/www/img/logo-line.png -------------------------------------------------------------------------------- /AntSharesApp/www/img/logo-sm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/www/img/logo-sm.png -------------------------------------------------------------------------------- /AntSharesApp/www/img/wechat.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/www/img/wechat.jpg -------------------------------------------------------------------------------- /AntSharesApp/www/lib/bootstrap-fileinput/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bootstrap-fileinput", 3 | "version": "4.3.3", 4 | "homepage": "https://github.com/kartik-v/bootstrap-fileinput", 5 | "authors": [ 6 | "Kartik Visweswaran " 7 | ], 8 | "description": "An enhanced HTML 5 file input for Bootstrap 3.x with file preview, multiple selection, ajax uploads, and more features.", 9 | "main": [ 10 | "./css/fileinput.min.css", 11 | "./js/fileinput.min.js" 12 | ], 13 | "keywords": [ 14 | "bootstrap", 15 | "file", 16 | "input", 17 | "preview", 18 | "image", 19 | "upload", 20 | "ajax", 21 | "multiple", 22 | "delete", 23 | "progress", 24 | "gallery" 25 | ], 26 | "dependencies": { 27 | "jquery": ">= 1.9.0", 28 | "bootstrap": "~3" 29 | }, 30 | "license": "BSD-3-Clause", 31 | "ignore": [ 32 | "**/.*", 33 | "node_modules", 34 | "composer.json", 35 | "examples", 36 | "bower_components", 37 | "test", 38 | "tests" 39 | ], 40 | "_release": "4.3.3", 41 | "_resolution": { 42 | "type": "version", 43 | "tag": "v4.3.3", 44 | "commit": "8c14423e41cfe6c6e0c1935a6c31a1136240d5d9" 45 | }, 46 | "_source": "https://github.com/kartik-v/bootstrap-fileinput.git", 47 | "_target": "~4.3.0", 48 | "_originalSource": "bootstrap-fileinput" 49 | } -------------------------------------------------------------------------------- /AntSharesApp/www/lib/bootstrap-fileinput/LICENSE.md: -------------------------------------------------------------------------------- 1 | Copyright (c) 2014 - 2016, Kartik Visweswaran 2 | Krajee.com 3 | All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without modification, 6 | are permitted provided that the following conditions are met: 7 | 8 | * Redistributions of source code must retain the above copyright notice, this 9 | list of conditions and the following disclaimer. 10 | 11 | * Redistributions in binary form must reproduce the above copyright notice, this 12 | list of conditions and the following disclaimer in the documentation and/or 13 | other materials provided with the distribution. 14 | 15 | * Neither the names of Kartik Visweswaran or Krajee nor the names of its 16 | contributors may be used to endorse or promote products derived from 17 | this software without specific prior written permission. 18 | 19 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 20 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 21 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 22 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR 23 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 24 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 25 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 26 | ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 28 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -------------------------------------------------------------------------------- /AntSharesApp/www/lib/bootstrap-fileinput/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bootstrap-fileinput", 3 | "version": "4.3.3", 4 | "homepage": "https://github.com/kartik-v/bootstrap-fileinput", 5 | "authors": [ 6 | "Kartik Visweswaran " 7 | ], 8 | "description": "An enhanced HTML 5 file input for Bootstrap 3.x with file preview, multiple selection, ajax uploads, and more features.", 9 | "main": [ 10 | "./css/fileinput.min.css", 11 | "./js/fileinput.min.js" 12 | ], 13 | "keywords": [ 14 | "bootstrap", 15 | "file", 16 | "input", 17 | "preview", 18 | "image", 19 | "upload", 20 | "ajax", 21 | "multiple", 22 | "delete", 23 | "progress", 24 | "gallery" 25 | ], 26 | "dependencies": { 27 | "jquery": ">= 1.9.0", 28 | "bootstrap": "~3" 29 | }, 30 | "license": "BSD-3-Clause", 31 | "ignore": [ 32 | "**/.*", 33 | "node_modules", 34 | "composer.json", 35 | "examples", 36 | "bower_components", 37 | "test", 38 | "tests" 39 | ] 40 | } 41 | -------------------------------------------------------------------------------- /AntSharesApp/www/lib/bootstrap-fileinput/img/loading-sm.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/www/lib/bootstrap-fileinput/img/loading-sm.gif -------------------------------------------------------------------------------- /AntSharesApp/www/lib/bootstrap-fileinput/img/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/www/lib/bootstrap-fileinput/img/loading.gif -------------------------------------------------------------------------------- /AntSharesApp/www/lib/bootstrap-fileinput/nuget/Package.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | bootstrap-fileinput 5 | bootstrap-fileinput 6 | 4.3.3 7 | Kartik Visweswaran 8 | Kartik Visweswaran 9 | https://github.com/kartik-v/bootstrap-fileinput/blob/master/LICENSE.md 10 | https://github.com/kartik-v/bootstrap-fileinput 11 | http://getbootstrap.com/favicon.ico 12 | false 13 | An enhanced HTML 5 file input for Bootstrap 3.x with file preview for various files, offers multiple selection, and more. 14 | https://github.com/kartik-v/bootstrap-fileinput/blob/master/CHANGE.md 15 | Copyright 2014 - 2016 16 | bootstrap bootstrap-fileinput 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /AntSharesApp/www/lib/bootstrap-fileinput/nuget/build.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | NuGet Update -self 4 | REM remove package content folder 5 | rmdir /s /q content 6 | 7 | REM create new package content folder 8 | mkdir content 9 | 10 | REM create sub folder for js files 11 | mkdir content\Scripts 12 | 13 | REM create sub folders for css and img files 14 | mkdir content\Content 15 | mkdir content\Content\bootstrap-fileinput 16 | 17 | REM delete the previous package versions 18 | REM del bootstrap-fileinput.* 19 | 20 | REM copy the content to the destination folders 21 | xcopy ..\js content\Scripts /D /E /C /R /I /K /Y 22 | xcopy ..\css content\Content\bootstrap-fileinput\css /D /E /C /R /I /K /Y 23 | xcopy ..\img content\Content\bootstrap-fileinput\img /D /E /C /R /I /K /Y 24 | xcopy ..\themes content\Content\bootstrap-fileinput\themes /D /E /C /R /I /K /Y 25 | xcopy ..\sass content\Content\bootstrap-fileinput\sass /D /E /C /R /I /K /Y 26 | 27 | REM create a new package 28 | NuGet Pack Package.nuspec -Exclude NuGet.exe;build.bat 29 | 30 | REM Upload the new package 31 | REM for %%f in (content\Content\bootstrap-fileinput.*) do ( 32 | REM NuGet Push %%f 33 | REM rmdir /s /q content 34 | REM del %%f 35 | REM ) 36 | -------------------------------------------------------------------------------- /AntSharesApp/www/lib/bootstrap-fileinput/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bootstrap-fileinput", 3 | "version": "4.3.3", 4 | "homepage": "https://github.com/kartik-v/bootstrap-fileinput", 5 | "authors": [ 6 | "Kartik Visweswaran " 7 | ], 8 | "description": "An enhanced HTML 5 file input for Bootstrap 3.x with file preview, multiple selection, ajax uploads, and more features.", 9 | "repository" : { 10 | "type": "git", 11 | "url": "https://github.com/kartik-v/bootstrap-fileinput.git" 12 | }, 13 | "bugs": { 14 | "url": "https://github.com/kartik-v/bootstrap-fileinput/issues" 15 | }, 16 | "keywords": [ 17 | "bootstrap", 18 | "file", 19 | "input", 20 | "preview", 21 | "image", 22 | "upload", 23 | "ajax", 24 | "multiple", 25 | "delete", 26 | "progress", 27 | "gallery" 28 | ], 29 | "main": "./js/fileinput.js", 30 | "peerDependencies": { 31 | "jquery": ">= 1.9.0", 32 | "bootstrap": "~3" 33 | }, 34 | "license": "BSD-3-Clause" 35 | } 36 | -------------------------------------------------------------------------------- /AntSharesApp/www/lib/bootstrap-material-design/css/ripples.css: -------------------------------------------------------------------------------- 1 | .withripple { 2 | position: relative; 3 | } 4 | .ripple-container { 5 | position: absolute; 6 | top: 0; 7 | left: 0; 8 | z-index: 1; 9 | width: 100%; 10 | height: 100%; 11 | overflow: hidden; 12 | border-radius: inherit; 13 | pointer-events: none; 14 | } 15 | .ripple { 16 | position: absolute; 17 | width: 20px; 18 | height: 20px; 19 | margin-left: -10px; 20 | margin-top: -10px; 21 | border-radius: 100%; 22 | background-color: #000; 23 | background-color: rgba(0, 0, 0, 0.05); 24 | -webkit-transform: scale(1); 25 | -ms-transform: scale(1); 26 | -o-transform: scale(1); 27 | transform: scale(1); 28 | -webkit-transform-origin: 50%; 29 | -ms-transform-origin: 50%; 30 | -o-transform-origin: 50%; 31 | transform-origin: 50%; 32 | opacity: 0; 33 | pointer-events: none; 34 | } 35 | .ripple.ripple-on { 36 | -webkit-transition: opacity 0.15s ease-in 0s, -webkit-transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s; 37 | -o-transition: opacity 0.15s ease-in 0s, -o-transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s; 38 | transition: opacity 0.15s ease-in 0s, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s; 39 | opacity: 0.1; 40 | } 41 | .ripple.ripple-out { 42 | -webkit-transition: opacity 0.1s linear 0s !important; 43 | -o-transition: opacity 0.1s linear 0s !important; 44 | transition: opacity 0.1s linear 0s !important; 45 | opacity: 0; 46 | } 47 | /*# sourceMappingURL=ripples.css.map */ -------------------------------------------------------------------------------- /AntSharesApp/www/lib/bootstrap-material-design/css/ripples.min.css: -------------------------------------------------------------------------------- 1 | .withripple{position:relative}.ripple-container{position:absolute;top:0;left:0;z-index:1;width:100%;height:100%;overflow:hidden;border-radius:inherit;pointer-events:none}.ripple{position:absolute;width:20px;height:20px;margin-left:-10px;margin-top:-10px;border-radius:100%;background-color:#000;background-color:rgba(0,0,0,.05);-webkit-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1);-webkit-transform-origin:50%;-ms-transform-origin:50%;-o-transform-origin:50%;transform-origin:50%;opacity:0;pointer-events:none}.ripple.ripple-on{-webkit-transition:opacity .15s ease-in 0s,-webkit-transform .5s cubic-bezier(.4,0,.2,1) .1s;-o-transition:opacity .15s ease-in 0s,-o-transform .5s cubic-bezier(.4,0,.2,1) .1s;transition:opacity .15s ease-in 0s,transform .5s cubic-bezier(.4,0,.2,1) .1s;opacity:.1}.ripple.ripple-out{-webkit-transition:opacity .1s linear 0s!important;-o-transition:opacity .1s linear 0s!important;transition:opacity .1s linear 0s!important;opacity:0} 2 | /*# sourceMappingURL=ripples.min.css.map */ -------------------------------------------------------------------------------- /AntSharesApp/www/lib/bootstrap-material-design/css/ripples.min.css.map: -------------------------------------------------------------------------------- 1 | {"version":3,"sources":["less/ripples.less"],"names":[],"mappings":"AAAA,YACI,SAAA,SAEJ,kBACI,SAAA,SACA,IAAA,EACA,KAAA,EACA,QAAA,EACA,MAAA,KACA,OAAA,KACA,SAAA,OACA,cAAA,QACA,eAAA,KAEJ,QACI,SAAA,SACA,MAAA,KACA,OAAA,KACA,YAAA,MACA,WAAA,MACA,cAAA,KACA,iBAAA,KACA,iBAAA,gBACA,kBAAA,SAAA,cAAA,SAAA,aAAA,SAAA,UAAA,SACA,yBAAA,IAAA,qBAAA,IAAA,oBAAA,IAAA,iBAAA,IACA,QAAA,EACA,eAAA,KAEJ,kBACI,mBAAA,QAAA,KAAA,QAAA,GAAA,kBAAA,IAAA,wBAAA,IAAA,cAAA,QAAA,KAAA,QAAA,GAAA,aAAA,IAAA,wBAAA,IAAA,WAAA,QAAA,KAAA,QAAA,GAAA,UAAA,IAAA,wBAAA,IACA,QAAA,GAEJ,mBACI,mBAAA,QAAA,IAAA,OAAA,aAAA,cAAA,QAAA,IAAA,OAAA,aAAA,WAAA,QAAA,IAAA,OAAA,aACA,QAAA"} -------------------------------------------------------------------------------- /AntSharesApp/www/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/www/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /AntSharesApp/www/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/www/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /AntSharesApp/www/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/www/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /AntSharesApp/www/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/www/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /AntSharesApp/www/lib/jQuery.mmenu/dist/core/js/jquery.mmenu.dragclose.min.js: -------------------------------------------------------------------------------- 1 | /* 2 | * jQuery mmenu dragClose addon 3 | * 4 | * Copyright (c) ... 5 | */ 6 | !function (e) { var n = "mmenu", o = "dragClose"; e[n].addons[o] = { setup: function () { var s = this, i = this.opts[o]; this.conf[o]; if (a = e[n].glbl, "boolean" == typeof i && (i = { close: i }), "object" != typeof i && (i = {}), i = this.opts[o] = e.extend(!0, {}, e[n].defaults[o], i), i.close) { var f, r; switch (this.opts.offCanvas.position) { case "left": f = "swipeleft"; break; case "right": f = "swiperight"; break; case "top": f = "swipeup"; break; case "bottom": f = "swipedown" } r = -1 != this.opts.extensions.indexOf("mm-leftsubpanel") ? "swipeleft" : "swiperight"; var c = new Hammer(this.$menu[0], i.vendors.hammer); c.on(f, function (e) { if (s.opts.offCanvas) { var n = s.$menu.find("." + t.prev + ":visible"); n.length ? f != r && s.close() : s.close() } }).on(r, function (e) { var n = s.$menu.find("." + t.prev + ":visible"); n.length > 0 && n.click() }) } }, add: function () { return "function" != typeof Hammer || Hammer.VERSION < 2 ? void (e[n].addons[o].setup = function () { }) : (t = e[n]._c, s = e[n]._d, void (i = e[n]._e)) }, clickAnchor: function (e, n) { } }, e[n].defaults[o] = { close: !1, vendors: { hammer: {} } }, e[n].configuration[o] = {}; var t, s, i, a }(jQuery); -------------------------------------------------------------------------------- /AntSharesApp/www/scripts/jquery.gesture.password.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeterLinX/AntSharesApp/e4ba1095071bc65e51bb6b8889326a53f08da99d/AntSharesApp/www/scripts/jquery.gesture.password.js -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | --------------------------------------------------------------------------------