This commit is contained in:
2022-05-26 09:46:31 +08:00
parent 625e728c98
commit 410c2ab70b
696 changed files with 9867 additions and 10340 deletions

1904
www/cordova.js vendored

File diff suppressed because it is too large Load Diff

419
www/cordova_plugins.js vendored
View File

@@ -1,419 +0,0 @@
cordova.define('cordova/plugin_list', function(require, exports, module) {
module.exports = [
{
"id": "cordova-plugin-camera.Camera",
"file": "plugins/cordova-plugin-camera/www/CameraConstants.js",
"pluginId": "cordova-plugin-camera",
"clobbers": [
"Camera"
]
},
{
"id": "cordova-plugin-camera.CameraPopoverOptions",
"file": "plugins/cordova-plugin-camera/www/CameraPopoverOptions.js",
"pluginId": "cordova-plugin-camera",
"clobbers": [
"CameraPopoverOptions"
]
},
{
"id": "cordova-plugin-camera.camera",
"file": "plugins/cordova-plugin-camera/www/Camera.js",
"pluginId": "cordova-plugin-camera",
"clobbers": [
"navigator.camera"
]
},
{
"id": "cordova-plugin-camera.CameraPopoverHandle",
"file": "plugins/cordova-plugin-camera/www/CameraPopoverHandle.js",
"pluginId": "cordova-plugin-camera",
"clobbers": [
"CameraPopoverHandle"
]
},
{
"id": "cordova-plugin-device.device",
"file": "plugins/cordova-plugin-device/www/device.js",
"pluginId": "cordova-plugin-device",
"clobbers": [
"device"
]
},
{
"id": "cordova-plugin-battery-status.battery",
"file": "plugins/cordova-plugin-battery-status/www/battery.js",
"pluginId": "cordova-plugin-battery-status",
"clobbers": [
"navigator.battery"
]
},
{
"id": "cordova-plugin-dialogs.notification",
"file": "plugins/cordova-plugin-dialogs/www/notification.js",
"pluginId": "cordova-plugin-dialogs",
"merges": [
"navigator.notification"
]
},
{
"id": "cordova-plugin-dialogs.notification_android",
"file": "plugins/cordova-plugin-dialogs/www/android/notification.js",
"pluginId": "cordova-plugin-dialogs",
"merges": [
"navigator.notification"
]
},
{
"id": "cordova-plugin-geolocation.geolocation",
"file": "plugins/cordova-plugin-geolocation/www/android/geolocation.js",
"pluginId": "cordova-plugin-geolocation",
"clobbers": [
"navigator.geolocation"
]
},
{
"id": "cordova-plugin-geolocation.PositionError",
"file": "plugins/cordova-plugin-geolocation/www/PositionError.js",
"pluginId": "cordova-plugin-geolocation",
"runs": true
},
{
"id": "cordova-plugin-inappbrowser.inappbrowser",
"file": "plugins/cordova-plugin-inappbrowser/www/inappbrowser.js",
"pluginId": "cordova-plugin-inappbrowser",
"clobbers": [
"cordova.InAppBrowser.open"
]
},
{
"id": "cordova-plugin-file.DirectoryEntry",
"file": "plugins/cordova-plugin-file/www/DirectoryEntry.js",
"pluginId": "cordova-plugin-file",
"clobbers": [
"window.DirectoryEntry"
]
},
{
"id": "cordova-plugin-file.DirectoryReader",
"file": "plugins/cordova-plugin-file/www/DirectoryReader.js",
"pluginId": "cordova-plugin-file",
"clobbers": [
"window.DirectoryReader"
]
},
{
"id": "cordova-plugin-file.Entry",
"file": "plugins/cordova-plugin-file/www/Entry.js",
"pluginId": "cordova-plugin-file",
"clobbers": [
"window.Entry"
]
},
{
"id": "cordova-plugin-file.File",
"file": "plugins/cordova-plugin-file/www/File.js",
"pluginId": "cordova-plugin-file",
"clobbers": [
"window.File"
]
},
{
"id": "cordova-plugin-file.FileEntry",
"file": "plugins/cordova-plugin-file/www/FileEntry.js",
"pluginId": "cordova-plugin-file",
"clobbers": [
"window.FileEntry"
]
},
{
"id": "cordova-plugin-file.FileError",
"file": "plugins/cordova-plugin-file/www/FileError.js",
"pluginId": "cordova-plugin-file",
"clobbers": [
"window.FileError"
]
},
{
"id": "cordova-plugin-file.FileReader",
"file": "plugins/cordova-plugin-file/www/FileReader.js",
"pluginId": "cordova-plugin-file",
"clobbers": [
"window.FileReader"
]
},
{
"id": "cordova-plugin-file.FileSystem",
"file": "plugins/cordova-plugin-file/www/FileSystem.js",
"pluginId": "cordova-plugin-file",
"clobbers": [
"window.FileSystem"
]
},
{
"id": "cordova-plugin-file.FileUploadOptions",
"file": "plugins/cordova-plugin-file/www/FileUploadOptions.js",
"pluginId": "cordova-plugin-file",
"clobbers": [
"window.FileUploadOptions"
]
},
{
"id": "cordova-plugin-file.FileUploadResult",
"file": "plugins/cordova-plugin-file/www/FileUploadResult.js",
"pluginId": "cordova-plugin-file",
"clobbers": [
"window.FileUploadResult"
]
},
{
"id": "cordova-plugin-file.FileWriter",
"file": "plugins/cordova-plugin-file/www/FileWriter.js",
"pluginId": "cordova-plugin-file",
"clobbers": [
"window.FileWriter"
]
},
{
"id": "cordova-plugin-file.Flags",
"file": "plugins/cordova-plugin-file/www/Flags.js",
"pluginId": "cordova-plugin-file",
"clobbers": [
"window.Flags"
]
},
{
"id": "cordova-plugin-file.LocalFileSystem",
"file": "plugins/cordova-plugin-file/www/LocalFileSystem.js",
"pluginId": "cordova-plugin-file",
"clobbers": [
"window.LocalFileSystem"
],
"merges": [
"window"
]
},
{
"id": "cordova-plugin-file.Metadata",
"file": "plugins/cordova-plugin-file/www/Metadata.js",
"pluginId": "cordova-plugin-file",
"clobbers": [
"window.Metadata"
]
},
{
"id": "cordova-plugin-file.ProgressEvent",
"file": "plugins/cordova-plugin-file/www/ProgressEvent.js",
"pluginId": "cordova-plugin-file",
"clobbers": [
"window.ProgressEvent"
]
},
{
"id": "cordova-plugin-file.fileSystems",
"file": "plugins/cordova-plugin-file/www/fileSystems.js",
"pluginId": "cordova-plugin-file"
},
{
"id": "cordova-plugin-file.requestFileSystem",
"file": "plugins/cordova-plugin-file/www/requestFileSystem.js",
"pluginId": "cordova-plugin-file",
"clobbers": [
"window.requestFileSystem"
]
},
{
"id": "cordova-plugin-file.resolveLocalFileSystemURI",
"file": "plugins/cordova-plugin-file/www/resolveLocalFileSystemURI.js",
"pluginId": "cordova-plugin-file",
"merges": [
"window"
]
},
{
"id": "cordova-plugin-file.isChrome",
"file": "plugins/cordova-plugin-file/www/browser/isChrome.js",
"pluginId": "cordova-plugin-file",
"runs": true
},
{
"id": "cordova-plugin-file.androidFileSystem",
"file": "plugins/cordova-plugin-file/www/android/FileSystem.js",
"pluginId": "cordova-plugin-file",
"merges": [
"FileSystem"
]
},
{
"id": "cordova-plugin-file.fileSystems-roots",
"file": "plugins/cordova-plugin-file/www/fileSystems-roots.js",
"pluginId": "cordova-plugin-file",
"runs": true
},
{
"id": "cordova-plugin-file.fileSystemPaths",
"file": "plugins/cordova-plugin-file/www/fileSystemPaths.js",
"pluginId": "cordova-plugin-file",
"merges": [
"cordova"
],
"runs": true
},
{
"id": "cordova-plugin-media.MediaError",
"file": "plugins/cordova-plugin-media/www/MediaError.js",
"pluginId": "cordova-plugin-media",
"clobbers": [
"window.MediaError"
]
},
{
"id": "cordova-plugin-media.Media",
"file": "plugins/cordova-plugin-media/www/Media.js",
"pluginId": "cordova-plugin-media",
"clobbers": [
"window.Media"
]
},
{
"id": "cordova-plugin-media-capture.CaptureAudioOptions",
"file": "plugins/cordova-plugin-media-capture/www/CaptureAudioOptions.js",
"pluginId": "cordova-plugin-media-capture",
"clobbers": [
"CaptureAudioOptions"
]
},
{
"id": "cordova-plugin-media-capture.CaptureImageOptions",
"file": "plugins/cordova-plugin-media-capture/www/CaptureImageOptions.js",
"pluginId": "cordova-plugin-media-capture",
"clobbers": [
"CaptureImageOptions"
]
},
{
"id": "cordova-plugin-media-capture.CaptureVideoOptions",
"file": "plugins/cordova-plugin-media-capture/www/CaptureVideoOptions.js",
"pluginId": "cordova-plugin-media-capture",
"clobbers": [
"CaptureVideoOptions"
]
},
{
"id": "cordova-plugin-media-capture.CaptureError",
"file": "plugins/cordova-plugin-media-capture/www/CaptureError.js",
"pluginId": "cordova-plugin-media-capture",
"clobbers": [
"CaptureError"
]
},
{
"id": "cordova-plugin-media-capture.MediaFileData",
"file": "plugins/cordova-plugin-media-capture/www/MediaFileData.js",
"pluginId": "cordova-plugin-media-capture",
"clobbers": [
"MediaFileData"
]
},
{
"id": "cordova-plugin-media-capture.MediaFile",
"file": "plugins/cordova-plugin-media-capture/www/MediaFile.js",
"pluginId": "cordova-plugin-media-capture",
"clobbers": [
"MediaFile"
]
},
{
"id": "cordova-plugin-media-capture.helpers",
"file": "plugins/cordova-plugin-media-capture/www/helpers.js",
"pluginId": "cordova-plugin-media-capture",
"runs": true
},
{
"id": "cordova-plugin-media-capture.capture",
"file": "plugins/cordova-plugin-media-capture/www/capture.js",
"pluginId": "cordova-plugin-media-capture",
"clobbers": [
"navigator.device.capture"
]
},
{
"id": "cordova-plugin-media-capture.init",
"file": "plugins/cordova-plugin-media-capture/www/android/init.js",
"pluginId": "cordova-plugin-media-capture",
"runs": true
},
{
"id": "cordova-plugin-network-information.network",
"file": "plugins/cordova-plugin-network-information/www/network.js",
"pluginId": "cordova-plugin-network-information",
"clobbers": [
"navigator.connection"
]
},
{
"id": "cordova-plugin-network-information.Connection",
"file": "plugins/cordova-plugin-network-information/www/Connection.js",
"pluginId": "cordova-plugin-network-information",
"clobbers": [
"Connection"
]
},
{
"id": "es6-promise-plugin.Promise",
"file": "plugins/es6-promise-plugin/www/promise.js",
"pluginId": "es6-promise-plugin",
"runs": true
},
{
"id": "cordova-plugin-screen-orientation.screenorientation",
"file": "plugins/cordova-plugin-screen-orientation/www/screenorientation.js",
"pluginId": "cordova-plugin-screen-orientation",
"clobbers": [
"cordova.plugins.screenorientation"
]
},
{
"id": "cordova-plugin-splashscreen.SplashScreen",
"file": "plugins/cordova-plugin-splashscreen/www/splashscreen.js",
"pluginId": "cordova-plugin-splashscreen",
"clobbers": [
"navigator.splashscreen"
]
},
{
"id": "cordova-plugin-statusbar.statusbar",
"file": "plugins/cordova-plugin-statusbar/www/statusbar.js",
"pluginId": "cordova-plugin-statusbar",
"clobbers": [
"window.StatusBar"
]
},
{
"id": "cordova-plugin-cszbar.zBar",
"file": "plugins/cordova-plugin-cszbar/www/zbar.js",
"pluginId": "cordova-plugin-cszbar",
"clobbers": [
"cloudSky.zBar"
]
}
];
module.exports.metadata = {
"cordova-plugin-camera": "6.0.0",
"cordova-plugin-device": "2.1.0",
"cordova-plugin-battery-status": "2.0.3",
"cordova-plugin-dialogs": "2.0.2",
"cordova-plugin-geolocation": "4.1.0",
"cordova-plugin-inappbrowser": "5.0.0",
"cordova-plugin-file": "6.0.2",
"cordova-plugin-media": "5.0.4",
"cordova-plugin-media-capture": "3.0.3",
"cordova-plugin-network-information": "3.0.0",
"es6-promise-plugin": "4.2.2",
"cordova-plugin-screen-orientation": "3.0.2",
"cordova-plugin-splashscreen": "6.0.1",
"cordova-plugin-statusbar": "3.0.0",
"cordova-plugin-vibration": "3.1.1",
"cordova-plugin-cszbar": "1.3.2"
};
});

View File

@@ -1 +0,0 @@
.minHeight[data-v-07890282]{height:calc(100vh - 490px);content:"viewport-units-buggyfill; height: calc(100vh - 490px)"}

View File

@@ -1 +0,0 @@
.minHeight[data-v-323e37fb]{height:calc(100vh - 490px);content:"viewport-units-buggyfill; height: calc(100vh - 490px)"}

View File

@@ -1 +0,0 @@
.content[data-v-58df47f4]{height:calc(100vh - 96px);overflow:auto;content:"viewport-units-buggyfill; height: calc(100vh - 96px)"}

View File

@@ -1 +0,0 @@
.minHeight[data-v-3cb46eb8]{height:calc(100vh - 490px);content:"viewport-units-buggyfill; height: calc(100vh - 490px)"}

View File

@@ -1 +0,0 @@
.minHeight[data-v-38c41076]{height:calc(100vh - 490px);content:"viewport-units-buggyfill; height: calc(100vh - 490px)"}

View File

@@ -1 +0,0 @@
.minHeight[data-v-91692466]{height:calc(100vh - 490px);content:"viewport-units-buggyfill; height: calc(100vh - 490px)"}

View File

@@ -1 +0,0 @@
.minHeight[data-v-b8c796c8]{height:calc(100vh - 490px);content:"viewport-units-buggyfill; height: calc(100vh - 490px)"}

View File

@@ -1 +0,0 @@
.minHeight[data-v-43cefe78]{height:calc(100vh - 490px);content:"viewport-units-buggyfill; height: calc(100vh - 490px)"}

View File

@@ -1 +0,0 @@
.minHeight[data-v-8a9783a8]{height:calc(100vh - 490px);content:"viewport-units-buggyfill; height: calc(100vh - 490px)"}

View File

@@ -1 +0,0 @@
.optics_style[data-v-500b4ffa] .scroll{overflow:hidden!important}

View File

@@ -1 +0,0 @@
.nopadding[data-v-d4bed5fe]{padding:0}.home .navBar[data-v-d4bed5fe]{height:100vh;background:#2f314a;content:"viewport-units-buggyfill; height: 100vh"}.home .navBar .nav_header[data-v-d4bed5fe]{height:68px}.home .subNav[data-v-d4bed5fe]{padding:0 6.75%;padding-top:40px}.home .subNav .q-tab-panel[data-v-d4bed5fe]{padding:0}.home .subNav[data-v-d4bed5fe] .q-tab{border-radius:24px;padding:0px 20px}.home .subNav[data-v-d4bed5fe] .q-tab .q-tab__label{font-size:20px}.home .bg-custom[data-v-d4bed5fe]{background:#2f314a}.home .my-carouse[data-v-d4bed5fe]{height:calc(100vh - 200px);content:"viewport-units-buggyfill; height: calc(100vh - 200px)"}.home .my-carouse .q-carousel__navigation .q-btn[data-v-d4bed5fe]{margin:0}.home .my-carouse .my-active[data-v-d4bed5fe]{background:#fff;width:25px;height:5px;border-radius:2px}.home .my-carouse .my-normal[data-v-d4bed5fe] .q-btn__wrapper{padding:0}.home .my-carouse .my-normal[data-v-d4bed5fe] i{width:5px!important;height:5px!important;background:#fff;font-size:0;border-radius:100%}.home .my-carouse .nav_content[data-v-d4bed5fe]{width:100%;display:flex;flex-wrap:wrap;justify-content:flex-start;margin-top:25px;overflow:hidden}.home .my-carouse .nav_content .item[data-v-d4bed5fe]{width:24%;margin-right:1%;border-radius:5px;position:relative;height:0;padding-bottom:13.8%;overflow:hidden;background:linear-gradient(270deg,#6d84ec,#4665f5);margin-top:1%}.home .my-carouse .nav_content .item[data-v-d4bed5fe]:last-child{margin-right:0}.home .my-carouse .nav_content .item .box[data-v-d4bed5fe]{width:100%;height:100%;position:absolute;text-align:center;vertical-align:middle;display:flex;flex-direction:column;align-items:center;justify-content:center}.home .my-carouse .nav_content .item .box img[data-v-d4bed5fe]{width:29%}.home .my-carouse .nav_content .item .box .q-icon[data-v-d4bed5fe]{display:inline-block;font-size:60px}.home .my-carouse .nav_content .item .box .name[data-v-d4bed5fe]{font-size:20px;margin:0;margin-top:15px}

View File

@@ -1 +0,0 @@
.optics_style[data-v-3ce338e0] .scroll{overflow:hidden!important}

View File

@@ -1 +0,0 @@
.optics_style[data-v-17ef5499]{height:100%}.optics_style .body_style .minHeight[data-v-17ef5499]{height:calc(100vh - 490px);content:"viewport-units-buggyfill; height: calc(100vh - 490px)"}

View File

@@ -1 +0,0 @@
.optics_style[data-v-325134f8]{height:100%}.optics_style .title_style[data-v-325134f8]{width:100%;padding:0 20px}.optics_style .title_style .title[data-v-325134f8]{font-size:24px;font-weight:700;padding:15px 0}.optics_style .body_style[data-v-325134f8]{width:100%;padding:10px 20px}.optics_style .body_style .display[data-v-325134f8]{display:flex;line-height:3}.optics_style .body_style .display .num[data-v-325134f8]{color:#2e3c53;padding:0 10px 0 0}.optics_style .body_style .nolabel[data-v-325134f8]{position:relative;padding-left:10px}

View File

@@ -1 +0,0 @@
.content[data-v-26a09816]{height:calc(100vh - 96px);overflow:auto;content:"viewport-units-buggyfill; height: calc(100vh - 96px)"}

View File

@@ -1 +0,0 @@
.Login[data-v-50a3b867]{position:fixed;width:100%;height:100%;top:0;left:0;background:url(../img/bg.png);background-position:100% 100%}.Login .info_box[data-v-50a3b867]{position:absolute;width:870px;height:496px;left:0;top:0;right:0;bottom:0;margin:auto}.Login .info_box .left_box[data-v-50a3b867]{position:absolute;width:450px;height:calc(100% - 40px);left:0;top:20px;background:url(../img/bg_left.png);background-size:100% 100%;background-position:0}.Login .info_box .right_box[data-v-50a3b867]{width:450px;height:100%;position:absolute;right:0;top:0;background:#fff;box-shadow:0px 2px 30px 0px rgba(0,19,115,0.5);border-radius:15px;padding-top:60px}.Login .info_box .right_box .right_form[data-v-50a3b867]{width:370px;margin:0 auto}.Login .info_box .right_box .right_form .logo[data-v-50a3b867]{margin-bottom:35px}.Login .info_box .right_box .right_form .logo img[data-v-50a3b867]{width:135px}.Login .info_box .right_box .right_form .logo p[data-v-50a3b867]{font-size:16px;font-weight:400;color:#000;line-height:33px}.Login .info_box .right_box .right_form .form .cursor-pointer[data-v-50a3b867]{color:#bdbdbd}.Login .info_box .right_box .right_form .login_button[data-v-50a3b867]{width:100%;height:50px;line-height:50px;background:linear-gradient(90deg,#4969ff,#6781ff);box-shadow:0px 14px 20px 0px rgba(77,100,213,0.31);border-radius:26px;font-size:24px;color:#fff;text-align:center;text-shadow:0px 2px 4px #4d64d5;margin-top:38px}

View File

@@ -1 +0,0 @@
.Login[data-v-450f8983]{position:fixed;width:100%;height:100%;top:0;left:0;background:url(../img/bg.png);background-position:100% 100%}.Login .info_box[data-v-450f8983]{position:absolute;width:870px;height:496px;left:0;top:0;right:0;bottom:0;margin:auto}.Login .info_box .left_box[data-v-450f8983]{position:absolute;width:450px;height:calc(100% - 40px);left:0;top:20px;background:url(../img/bg_left.png);background-size:100% 100%;background-position:0}.Login .info_box .right_box[data-v-450f8983]{width:450px;height:100%;position:absolute;right:0;top:0;background:#fff;box-shadow:0px 2px 30px 0px rgba(0,19,115,0.5);border-radius:15px;padding-top:60px}.Login .info_box .right_box .right_form[data-v-450f8983]{width:370px;margin:0 auto}.Login .info_box .right_box .right_form .logo[data-v-450f8983]{margin-bottom:35px}.Login .info_box .right_box .right_form .logo img[data-v-450f8983]{width:135px}.Login .info_box .right_box .right_form .logo p[data-v-450f8983]{font-size:16px;font-weight:400;color:#000;line-height:33px}.Login .info_box .right_box .right_form .form .cursor-pointer[data-v-450f8983]{color:#bdbdbd}.Login .info_box .right_box .right_form .login_button[data-v-450f8983]{width:100%;height:50px;line-height:50px;background:linear-gradient(90deg,#4969ff,#6781ff);box-shadow:0px 14px 20px 0px rgba(77,100,213,0.31);border-radius:26px;font-size:24px;color:#fff;text-align:center;text-shadow:0px 2px 4px #4d64d5;margin-top:38px}

View File

@@ -1 +0,0 @@
.minHeight[data-v-0659a3c5]{height:calc(100vh - 490px);content:"viewport-units-buggyfill; height: calc(100vh - 490px)"}

View File

@@ -1 +0,0 @@
.content[data-v-354c7fcb]{height:calc(100vh - 48px);content:"viewport-units-buggyfill; height: calc(100vh - 48px)"}.body_style .display[data-v-354c7fcb]{display:flex;line-height:3}.body_style .display .num[data-v-354c7fcb]{color:#2e3c53;padding:0 10px 0 0}.body_style .nolabel[data-v-354c7fcb]{position:relative;padding-left:10px}

View File

@@ -1 +0,0 @@
.minHeight[data-v-6dce44be]{height:calc(100vh - 490px);content:"viewport-units-buggyfill; height: calc(100vh - 490px)"}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 664 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 94 KiB

View File

@@ -1,42 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<base href= />
<title>晶瑞mes-pad</title>
<meta charset=utf-8>
<meta name=viewport content="width=device-width,initial-scale=1,user-scalable=no,viewport-fit=cover">
<meta name=description content="A Quasar Project">
<meta name=format-detection content="telephone=no">
<meta name=msapplication-tap-highlight content=no>
<meta name=viewport content="user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1,width=device-width">
<link rel=icon type=image/png sizes=128x128 href=icons/favicon-128x128.png>
<link rel=icon type=image/png sizes=96x96 href=icons/favicon-96x96.png>
<link rel=icon type=image/png sizes=32x32 href=icons/favicon-32x32.png>
<link rel=icon type=image/png sizes=16x16 href=icons/favicon-16x16.png>
<link rel=icon type=image/ico href=favicon.ico>
<link href=/css/vendor.fb9dfb63.css rel=stylesheet>
<link href=/css/app.cda2cbb0.css rel=stylesheet>
<link rel=manifest href=manifest.json>
<meta name=theme-color content=#027be3>
<meta name=apple-mobile-web-app-capable content=yes>
<meta name=apple-mobile-web-app-status-bar-style content=default>
<meta name=apple-mobile-web-app-title content="Quasar App">
<link rel=apple-touch-icon href=icons/apple-icon-120x120.png>
<link rel=apple-touch-icon sizes=152x152 href=icons/apple-icon-152x152.png>
<link rel=apple-touch-icon sizes=167x167 href=icons/apple-icon-167x167.png>
<link rel=apple-touch-icon sizes=180x180 href=icons/apple-icon-180x180.png>
<link rel=mask-icon href=icons/safari-pinned-tab.svg color=#027be3>
<meta name=msapplication-TileImage content=icons/ms-icon-144x144.png>
<meta name=msapplication-TileColor content=#000000>
</head>
<body>
<div id=q-app></div>
<script src=/js/vendor.ba61a4da.js></script>
<script src=/js/app.95a9d3a9.js></script>
</body>
<script src=cordova.js></script>
<script src=cordova_plugins.js charset=UTF-8></script>
</html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[12],{2556:function(t,a,e){"use strict";e.r(a);var s=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"optics_style"},[e("div",{staticClass:"header"},[e("Header",{attrs:{options:t.batchNumList,model:t.currentBatchNum},on:{"update:model":function(a){t.currentBatchNum=a}}})],1),e("q-tabs",{staticClass:"text-grey common-tab",staticStyle:{"background-color":"#ffffff"},attrs:{"narrow-indicator":"",align:"left","active-color":"dark","indicator-color":"primary"},model:{value:t.tabForm.data,callback:function(a){t.$set(t.tabForm,"data",a)},expression:"tabForm.data"}},t._l(t.tabForm.tabList,(function(t,a){return e("q-tab",{key:a,attrs:{name:t.name,label:t.label,ripple:!1}})})),1),e("div",{staticClass:"content"},[e("optics-title",{attrs:{title:"数据明细"}}),e("div",{staticClass:"body_style common-form"},[e("div",{staticClass:"mg-t-15"},[e("optics-title-crad",{attrs:{"show-card-form":"","card-form":t.cardForm}})],1),e("div",{staticClass:"mg-t-15"},[e(t.componentList,{ref:t.componentList,tag:"component",attrs:{"prod-id":t.prodId,disable:t.disable,"stick-id":t.stickId}})],1)]),e("div",{staticClass:"btn"},[e("common-btngroup",{on:{submit:t.check,cancel:t.cancel}})],1)],1)],1)},i=[],o=e("30d4"),c=e("dd67"),r=e("7fbb"),n=e("bc43"),d=e("9c7c"),l=e("506d"),m=e("84f8"),u=e("0418"),h=e("2691"),p=e("2a19"),b={name:"jingbangjianyan",components:{Header:u["a"],opticsTitle:h["default"],OpticsTitleCrad:o["default"],CommonBtngroup:c["default"],chengping:r["default"],jingjie:n["default"],chuizhidu:d["default"],Axiang:l["default"],Cxiang:m["default"]},data(){return{tabForm:{data:1,tabList:[{name:1,label:"晶界",comName:"jingjie",stepId:13},{name:2,label:"垂直度",comName:"chuizhidu",stepId:17},{name:3,label:"A向",comName:"Axiang",stepId:18},{name:4,label:"C向",comName:"Cxiang",stepId:19},{name:5,label:"成品",comName:"chengping",stepId:20}]},cardForm:[{name:"app:icon-chanpinbianma",title:"晶棒编号",value:"",bColor:"#1890ff"},{name:"app:icon-ziduanbianhao",title:"晶棒序列号",value:"",bColor:"#fa8c16"},{name:"app:icon-changdu",title:"长度",value:"",bColor:"#55c169"},{name:"app:icon-jingbangtuihuo",title:"直径",value:"",bColor:"#55c169"}],processId:13,stepId:13,prodId:null,stickId:null,batchNumList:[],currentBatchNum:"",disable:!0}},watch:{currentBatchNum(t){t&&this.getBaseData();let{cardForm:a,disable:e}=this.$options.data();this.disable=e,t?(this.disable=!1,this.$refs[this.componentList].getValue&&this.$refs[this.componentList].getValue()):(this.cardForm=a,this.resetForm())},"tabForm.data"(t){this.currentBatchNum="",this.cardForm=this.$options.data().cardForm,this.tabForm.tabList.forEach((a=>{a.name===t&&(this.stepId=a.stepId)})),this.stepId&&this.getList()}},methods:{getList(){this.$http({url:`/pad/common/queryNos?stepId=${this.stepId}`,method:"get"}).then((t=>{this.batchNumList=t.result||[]}))},getBaseData(){this.$http({url:"/pad/common/getStationInfo",method:"get",params:{no:this.currentBatchNum,processId:this.processId,stepId:this.stepId}}).then((t=>{this.cardForm.forEach((a=>{switch(a.title){case"晶棒序列号":a.value=t.result.stickNumber||"";break;case"晶棒编号":a.value=t.result.stickNo||"";break;case"长度":a.value=t.result.length||"";break;case"直径":a.value=t.result.diameter||"";break}})),this.prodId=t.result.prodId,this.stickId=t.result.stickId}))},cancel(){let{cardForm:t,disable:a,currentBatchNum:e}=this.$options.data();this.disable=a,this.cardForm=t,this.currentBatchNum=e},check(){this.currentBatchNum?this.$refs[this.componentList].submitForm().then((()=>{p["a"].create({type:"positive",position:"top",message:"操作成功"}),this.getList(),this.currentBatchNum=null,this.cancel(),this.resetForm()})):p["a"].create({type:"negative",position:"top",message:"请选择编号"})},resetForm(){this.$nextTick((()=>{this.$refs[this.componentList].resetForm()}))}},computed:{componentList(){return this.tabForm.tabList[this.tabForm.data-1].comName}},created(){this.getList()}},f=b,g=(e("4a3d"),e("2877")),I=e("429b"),F=e("7460"),N=e("eebe"),v=e.n(N),k=Object(g["a"])(f,s,i,!1,null,"58df47f4",null);a["default"]=k.exports;v()(k,"components",{QTabs:I["a"],QTab:F["a"]})},"4a3d":function(t,a,e){"use strict";e("987f")},"987f":function(t,a,e){}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[2],{"1b46":function(t,a,e){},b169:function(t,a,e){"use strict";e("1b46")},ec95:function(t,a,e){"use strict";e.r(a);var n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"home"},[e("div",{staticClass:"navBar"},[e("div",{staticClass:"nav_header"},[e("Header")],1),e("div",{staticClass:"subNav"},[e("q-tabs",{staticClass:"text-white",attrs:{"inline-label":"","mobile-arrows":"",align:"left","indicator-color":"transparent","active-color":"white","active-bg-color":"primary"},model:{value:t.activeTab,callback:function(a){t.activeTab=a},expression:"activeTab"}},t._l(t.customRoutes,(function(a,n){return e("q-tab",{key:n,attrs:{name:n,label:a.originName},on:{click:function(e){return t.clickTab(a)}}})})),1),e("q-tab-panels",{staticClass:"bg-custom text-white",attrs:{animated:""},model:{value:t.activeTab,callback:function(a){t.activeTab=a},expression:"activeTab"}},t._l(t.customRoutes,(function(a,n){return e("q-tab-panel",{key:a.name,attrs:{name:n}},[e("q-carousel",{staticClass:"bg-custom my-carouse",attrs:{"transition-prev":"slide-right","transition-next":"slide-left",swipeable:"",animated:"","control-color":"white",navigation:""},on:{transition:t.transition},scopedSlots:t._u([{key:"navigation-icon",fn:function(t){var a=t.active,n=t.btnProps,i=t.onClick;return[e("q-btn",a?{staticClass:"my-active",attrs:{size:"8px",color:"white",flat:"",round:"",dense:""},on:{click:i}}:{staticClass:"my-normal",attrs:{size:"5px",icon:n.icon,color:"white",flat:"",round:"",dense:""},on:{click:i}})]}}],null,!0),model:{value:t.slide,callback:function(a){t.slide=a},expression:"slide"}},t._l(t.sliceArray(a.children,12),(function(a,n){return e("q-carousel-slide",{key:n,staticClass:"column no-wrap nopadding",attrs:{name:n}},[e("div",{staticClass:"nav_content"},t._l(a,(function(a,n){return e("div",{key:n,staticClass:"item",style:a.style},[e("div",{staticClass:"box",on:{click:function(e){return t.toPath(a.path)}}},[a.meta.icon?e("q-icon",{attrs:{name:"app:icon-"+a.meta.icon}}):e("q-icon",{attrs:{name:"app:icon-a-tubiaochangyong121"}}),e("p",{staticClass:"name"},[t._v(t._s(a.originName))])],1)])})),0)])})),1)],1)})),1)],1)])])},i=[],s=e("2f62"),o=e("8e33"),c={name:"",data(){return{activeTab:0,slide:0,lorem:"Lorem ipsum dolor.",tabList:[],list:[]}},components:{Header:o["default"]},computed:{...Object(s["b"])(["customRoutes","permissionRoutes"])},methods:{sliceArray(t,a){const e=[];for(let n=0;n<Math.ceil(t.length/a);n++){let i=n*a,s=i+a;e.push(t.slice(i,s))}return e},transition(t){},clickTab(t){this.slide=0},toPath(t){this.$router.push(t)}},mounted(){console.log(this.permissionRoutes)}},l=c,r=(e("b169"),e("2877")),u=e("429b"),d=e("7460"),b=e("adad"),m=e("823b"),p=e("880c"),v=e("9c40"),f=e("62cd"),h=e("0016"),k=e("eebe"),C=e.n(k),w=Object(r["a"])(l,n,i,!1,null,"d4bed5fe",null);a["default"]=w.exports;C()(w,"components",{QTabs:u["a"],QTab:d["a"],QTabPanels:b["a"],QTabPanel:m["a"],QCarousel:p["a"],QBtn:v["a"],QCarouselSlide:f["a"],QIcon:h["a"]})}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[23],{"143f":function(t,a,e){"use strict";e.r(a);var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"optics_style"},[e("div",{staticClass:"header"},[e("Header",{attrs:{options:t.batchNumList,model:t.currentBatchNum},on:{"update:model":function(a){t.currentBatchNum=a}}})],1),e("q-tabs",{staticClass:"text-grey common-tab",staticStyle:{"background-color":"#fff"},attrs:{"narrow-indicator":"",align:"left","active-color":"dark","indicator-color":"primary"},model:{value:t.tabForm.data,callback:function(a){t.$set(t.tabForm,"data",a)},expression:"tabForm.data"}},t._l(t.tabForm.tabList,(function(t,a){return e("q-tab",{key:a,attrs:{name:t.name,label:t.label,ripple:!1}})})),1),e("div",{staticClass:"content"},[e("optics-title",{attrs:{title:"数据明细"}}),e("div",{staticClass:"body_style common-form"},[e("div",{staticClass:"mg-t-15"},[e("optics-title-crad",{attrs:{"show-card-form":"","card-form":t.cardForm}})],1),e("div",{staticClass:"mg-t-15"},[e(t.componentList,{tag:"component"})],1)]),e("div",{staticClass:"btn"},[e("common-btngroup",{on:{submit:t.check,cancel:t.cancel}})],1)],1)],1)},o=[],s=e("30d4"),n=e("dd67"),r=e("3ec8"),c=e("9d48"),d=e("0418"),l=e("2691"),m=e("2a19"),p={name:"zhijianpanding",components:{OpticsTitleCrad:s["default"],CommonBtngroup:n["default"],jingbangpanding:r["default"],jingdingpanding:c["default"],Header:d["a"],opticsTitle:l["default"]},data(){return{tabForm:{data:1,tabList:[{name:1,label:"晶锭判定",comName:"jingdingpanding"},{name:2,label:"晶棒判定",comName:"jingbangpanding"}]},cardForm:[{name:"app:icon-chanpinbianma",title:"晶锭编码",value:"",bColor:"#1890FF"},{name:"app:icon-zhongliang",title:"晶锭重量",value:"",bColor:"#FA8C16"},{name:"app:icon-gongxu",title:"当前工序",value:"",bColor:"#55C169"}],batchNumList:[],currentBatchNum:null}},methods:{getList(){this.$http({url:`/pad/common/queryNos?stepId=${this.stepId}`,method:"get"}).then((t=>{this.batchNumList=t.result}))},getBaseData(){this.$http({url:"/pad/common/getStationInfo",method:"get",params:{no:this.currentBatchNum,processId:this.processId,stepId:this.stepId}}).then((t=>{this.cardForm.forEach((a=>{switch(a.title){case"晶锭编码":a.value=t.result.ingotNo;break;case"晶锭重量":a.value=t.result.ingotWeight;break;case"当前工序":a.value=t.result.ingotWeight;break}})),this.prodId=t.result.prodId}))},cancel(){let{cardForm:t,form:a,disable:e}=this.$options.data();this.form=a,this.disable=e,this.cardForm=t},check(){if(!this.currentBatchNum)return void m["a"].create({type:"negative",position:"top",message:"请选择编号"});let t=[],a=JSON.parse(JSON.stringify(this.form.data));t=Object.keys(a).filter((t=>{if(a[t]=a[t]?a[t].toString():"","remarks"!==t)return!a[t].length})),t.length?m["a"].create({type:"negative",position:"top",message:"请将数据填写完整"}):this.submit()},submit(){this.$http({url:"/pad/lineCutOrientation/passStation",method:"post",data:{...this.form.data,stepId:this.stepId,prodId:this.prodId}}).then((t=>{m["a"].create({type:"positive",position:"top",message:"操作成功"}),this.getList(),this.currentBatchNum=null,this.cancel()}))}},computed:{componentList(){return this.tabForm.tabList[this.tabForm.data-1].comName}},watch:{"tabForm.data":{handler(t){1==t?this.cardForm=this.$options.data().cardForm:2==t&&this.cardForm.splice(1,0,{name:"app:icon-ziduanbianhao",title:"晶棒编号",value:"",bColor:"#FA8C16"},{name:"app:icon-changdu",title:"长度",value:"",bColor:"#55C169"})},immediate:!0,deep:!0}},created(){this.getList()}},u=p,h=(e("fd86"),e("2877")),b=e("429b"),g=e("7460"),f=e("eebe"),v=e.n(f),C=Object(h["a"])(u,i,o,!1,null,"26a09816",null);a["default"]=C.exports;v()(C,"components",{QTabs:b["a"],QTab:g["a"]})},"73c3":function(t,a,e){},fd86:function(t,a,e){"use strict";e("73c3")}}]);

View File

@@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[24],{e57d:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("PageContainer",{ref:"container",attrs:{name:"粗磨"}},[a("template",{slot:"header"},[a("Appbar",{attrs:{options:t.batchNumList,model:t.currentBatchNum,fkliterKey:"batchNum"},on:{"update:model":function(e){t.currentBatchNum=e}}}),t.category.steps.length>0?a("q-tabs",{staticClass:"text-grey common-tab",attrs:{"narrow-indicator":"",align:"left","active-color":"dark","indicator-color":"primary"},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},t._l(t.category.steps,(function(t,e){return a("q-tab",{key:e,attrs:{ripple:!1,label:t.stepName,name:e}})})),1):t._e()],1),a("div",{staticClass:"mt-20 common-box"},[a("CommonCard",{attrs:{list:t.cardList,title:"任务信息"}}),a("CommonBox",{staticClass:"mg-b-20",attrs:{title:"过程录入"}},[a("CommonTitle",{attrs:{color:"green",icon:"icon-a-shuju1"}}),a("div",[a("q-form",{staticClass:"q-gutter-md mg-t-20",on:{submit:t.onSubmit,reset:t.onReset}},[a("div",{staticClass:"row"},[a("div",{staticClass:"col mg-r-20"},[a("div",{staticClass:"label disable"},[t._v("\n 流出片数\n ")]),a("q-input")],1),a("div",{staticClass:"col mg-r-20"},[a("div",{staticClass:"label disable"},[t._v("\n 备注\n ")]),a("q-input")],1)])]),a("div",{staticClass:"mg-b-20"}),a("FormTable",{attrs:{labels:[{name:"WARP",width:"33%"},"BOW","THK","操作"]}},[a("template",{slot:"tbody"},[a("tr",[a("td",[a("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""}})],1),a("td",[a("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""}})],1),a("td",[a("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""}})],1),a("td",{staticClass:"edit_btn_group"},[a("div",[a("q-icon",{staticStyle:{"font-size":"28px",color:"grey","margin-right":"28px"},attrs:{name:"app:icon-a-tubiaotj1"}}),a("q-icon",{staticStyle:{"font-size":"28px",color:"grey"},attrs:{name:"app:icon-a-tubiaotjbeifen1"}})],1)])])])],2),a("FormTable",{attrs:{labels:[{name:"设备编号"},"磨料片数","破片数","操作人员"]}},[a("template",{slot:"tbody"},[a("tr",[a("td",[a("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""}})],1),a("td",[a("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""}})],1),a("td",[a("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""}})],1),a("td",{staticClass:"edit_btn_group"},[a("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""}})],1)])])],2),a("FormTable",{attrs:{labels:[{name:"质量类型",width:"33%"},"片数","操作"]}},[a("template",{slot:"tbody"},[a("tr",[a("td",[a("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""}})],1),a("td",[a("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""}})],1),a("td",{staticClass:"edit_btn_group"},[a("div",[a("q-icon",{staticStyle:{"font-size":"28px",color:"grey","margin-right":"28px"},attrs:{name:"app:icon-a-tubiaotj1"}}),a("q-icon",{staticStyle:{"font-size":"28px",color:"grey"},attrs:{name:"app:icon-a-tubiaotjbeifen1"}})],1)])])])],2)],1)],1)],1)],2)},l=[],i=a("d6f4"),n=a("6e23"),o={name:"chumo",mixins:[i["default"]],components:{FormTable:n["default"]},data(){return{batchNumList:[],currentBatchNum:null,cardList:[],form:{}}},methods:{onSubmit(){},onReset(){}}},r=o,c=a("2877"),d=a("429b"),p=a("7460"),m=a("0378"),u=a("27f9"),b=a("0016"),f=a("eebe"),h=a.n(f),g=Object(c["a"])(r,s,l,!1,null,"37477e4c",null);e["default"]=g.exports;h()(g,"components",{QTabs:d["a"],QTab:p["a"],QForm:m["a"],QInput:u["a"],QIcon:b["a"]})}}]);

View File

@@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[25],{ccb6:function(n,e,s){"use strict";s.r(e);var t=function(){var n=this,e=n.$createElement,s=n._self._c||e;return s("div",[n._v("\n ss\n")])},a=[],c={name:"Tabs"},r=c,u=s("2877"),i=Object(u["a"])(r,t,a,!1,null,"a827348e",null);e["default"]=i.exports}}]);

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[27],{"125a":function(t,a,e){"use strict";e.r(a);var s=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("PageContainer",[e("template",{slot:"header"},[e("Appbar",{attrs:{options:t.batchNumList,model:t.currentBatchNum,fkliterKey:"batchNum"},on:{"update:model":function(a){t.currentBatchNum=a}}}),t.category.steps.length>0?e("q-tabs",{staticClass:"text-grey common-tab",attrs:{"narrow-indicator":"",align:"left","active-color":"dark","indicator-color":"primary"},model:{value:t.tab,callback:function(a){t.tab=a},expression:"tab"}},t._l(t.category.steps,(function(t,a){return e("q-tab",{key:a,attrs:{ripple:!1,label:t.stepName,name:a}})})),1):t._e()],1),e("div",{staticClass:"mt-20 common-box"},[e("CommonCard",{attrs:{list:t.cardList,title:"任务信息"}}),e("CommonBox",{staticClass:"mg-b-20",attrs:{title:"过程录入"}},[e("CommonTitle",{attrs:{color:"green",icon:"icon-a-shuju1"}}),e("div",[e("q-form",{staticClass:"q-gutter-md mg-t-20",on:{submit:t.onSubmit,reset:t.onReset}},[e("div",{staticClass:"row"},[e("div",{staticClass:"col mg-r-20"},[e("div",{staticClass:"label disable"},[t._v("\n 档位\n ")]),e("q-input")],1),e("div",{staticClass:"col mg-r-20"},[e("div",{staticClass:"label disable"},[t._v("\n 设备编号\n ")]),e("q-input")],1),e("div",{staticClass:"col mg-r-20"},[e("div",{staticClass:"label disable"},[t._v("\n 流出片数\n ")]),e("q-input")],1),e("div",{staticClass:"col mg-r-20"},[e("div",{staticClass:"label disable"},[t._v("\n 备注\n ")]),e("q-input")],1)])]),e("div",{staticClass:"mg-b-20"}),e("FormTable",{attrs:{labels:[{name:"质量类型",width:"33%"},"片数","操作"]}},[e("template",{slot:"tbody"},[e("tr",[e("td",[e("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""}})],1),e("td",[e("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""}})],1),e("td",{staticClass:"edit_btn_group"},[e("div",[e("q-icon",{staticStyle:{"font-size":"28px",color:"grey","margin-right":"28px"},attrs:{name:"app:icon-a-tubiaotj1"}}),e("q-icon",{staticStyle:{"font-size":"28px",color:"grey"},attrs:{name:"app:icon-a-tubiaotjbeifen1"}})],1)])])])],2)],1)],1)],1)],2)},i=[],n=e("d6f4"),l=e("6e23"),o={name:"fenmian",mixins:[n["default"]],components:{FormTable:l["default"]},data(){return{batchNumList:[],currentBatchNum:null,name:"分面",cardList:[],form:{}}},methods:{onSubmit(){},onReset(){}}},r=o,c=e("2877"),m=e("429b"),d=e("7460"),u=e("0378"),b=e("27f9"),p=e("0016"),f=e("eebe"),v=e.n(f),g=Object(c["a"])(r,s,i,!1,null,"31364f20",null);a["default"]=g.exports;v()(g,"components",{QTabs:m["a"],QTab:d["a"],QForm:u["a"],QInput:b["a"],QIcon:p["a"]})}}]);

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[29],{"4e35":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("PageContainer",[a("template",{slot:"header"},[a("Appbar",{attrs:{options:t.batchNumList,model:t.currentBatchNum,fkliterKey:"batchNum"},on:{"update:model":function(e){t.currentBatchNum=e}}}),t.category.steps.length>0?a("q-tabs",{staticClass:"text-grey common-tab",attrs:{"narrow-indicator":"",align:"left","active-color":"dark","indicator-color":"primary"},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},t._l(t.category.steps,(function(t,e){return a("q-tab",{key:e,attrs:{ripple:!1,label:t.stepName,name:e}})})),1):t._e()],1),a("div",{staticClass:"mt-20 common-box"},[a("CommonCard",{attrs:{list:t.cardList,title:"任务信息"}}),a("CommonBox",{staticClass:"mg-b-20",attrs:{title:"过程录入"}},[a("CommonTitle",{attrs:{color:"green",icon:"icon-a-shuju1"}}),a("div",[a("q-form",{staticClass:"q-gutter-md mg-t-20",on:{submit:t.onSubmit,reset:t.onReset}},[a("div",{staticClass:"row"},[a("div",{staticClass:"col mg-r-20"},[a("div",{staticClass:"label disable"},[t._v("\n 流出片数\n ")]),a("q-input")],1),a("div",{staticClass:"col mg-r-20"},[a("div",{staticClass:"label disable"},[t._v("\n 设备编号\n ")]),a("q-input")],1),a("div",{staticClass:"col mg-r-20"},[a("div",{staticClass:"label disable"},[t._v("\n 备注\n ")]),a("q-input")],1)])]),a("div",{staticClass:"mg-b-20"}),a("FormTable",{attrs:{labels:[{name:"WARP",width:"33%"},"BOW","THK","操作"]}},[a("template",{slot:"tbody"},[a("tr",[a("td",[a("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""}})],1),a("td",[a("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""}})],1),a("td",[a("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""}})],1),a("td",{staticClass:"edit_btn_group"},[a("div",[a("q-icon",{staticStyle:{"font-size":"28px",color:"grey","margin-right":"28px"},attrs:{name:"app:icon-a-tubiaotj1"}}),a("q-icon",{staticStyle:{"font-size":"28px",color:"grey"},attrs:{name:"app:icon-a-tubiaotjbeifen1"}})],1)])])])],2),a("FormTable",{attrs:{labels:[{name:"质量类型",width:"33%"},"片数","操作"]}},[a("template",{slot:"tbody"},[a("tr",[a("td",[a("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""}})],1),a("td",[a("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""}})],1),a("td",{staticClass:"edit_btn_group"},[a("div",[a("q-icon",{staticStyle:{"font-size":"28px",color:"grey","margin-right":"28px"},attrs:{name:"app:icon-a-tubiaotj1"}}),a("q-icon",{staticStyle:{"font-size":"28px",color:"grey"},attrs:{name:"app:icon-a-tubiaotjbeifen1"}})],1)])])])],2),a("FormTable",{attrs:{labels:[{name:"RA-上"},"RA-左","RA-平","RA-右","RA-中","操作"]}},[a("template",{slot:"tbody"},[a("tr",[a("td",[a("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""}})],1),a("td",[a("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""}})],1),a("td",[a("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""}})],1),a("td",[a("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""}})],1),a("td",[a("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""}})],1),a("td",{staticClass:"edit_btn_group"},[a("div",[a("q-icon",{staticStyle:{"font-size":"28px",color:"grey","margin-right":"28px"},attrs:{name:"app:icon-a-tubiaotj1"}}),a("q-icon",{staticStyle:{"font-size":"28px",color:"grey"},attrs:{name:"app:icon-a-tubiaotjbeifen1"}})],1)])])])],2)],1)],1)],1)],2)},s=[],l=a("d6f4"),n=a("6e23"),o={name:"jingmo",mixins:[l["default"]],components:{FormTable:n["default"]},data(){return{batchNumList:[],currentBatchNum:null,name:"精磨",cardList:[],form:{}}},methods:{onSubmit(){},onReset(){}}},r=o,c=a("2877"),d=a("429b"),p=a("7460"),m=a("0378"),u=a("27f9"),b=a("0016"),f=a("eebe"),g=a.n(f),h=Object(c["a"])(r,i,s,!1,null,"63a55acc",null);e["default"]=h.exports;g()(h,"components",{QTabs:d["a"],QTab:p["a"],QForm:m["a"],QInput:u["a"],QIcon:b["a"]})}}]);

View File

@@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[3],{"013f":function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"Login"},[n("div",{staticClass:"info_box"},[n("div",{staticClass:"left_box"}),n("div",{staticClass:"right_box"},[n("div",{staticClass:"right_form"},[t._m(0),n("div",{staticClass:"form"},[n("q-form",{ref:"myForm",staticClass:"q-gutter-md",on:{submit:t.login}},[n("q-input",{attrs:{label:"账号",rounded:"","lazy-rules":"",standout:"","bg-color":"grey-11","input-style":{color:"#000000"},rules:[function(t){return t&&t.length>0||"请输入账号"}]},scopedSlots:t._u([{key:"append",fn:function(){return[""!==t.userInfo.username?n("q-icon",{staticClass:"cursor-pointer",attrs:{name:"close"},on:{click:function(e){t.userInfo.username=""}}}):t._e()]},proxy:!0}]),model:{value:t.userInfo.username,callback:function(e){t.$set(t.userInfo,"username",e)},expression:"userInfo.username"}}),n("q-input",{staticStyle:{"margin-top":"6px"},attrs:{label:"密码",rounded:"",standout:"","bg-color":"grey-11",rules:[function(t){return t&&t.length>0||"请输入密码"}],"input-style":{color:"#000000"}},scopedSlots:t._u([{key:"append",fn:function(){return[""!==t.userInfo.password?n("q-icon",{staticClass:"cursor-pointer",attrs:{name:"close"},on:{click:function(e){t.userInfo.password=""}}}):t._e()]},proxy:!0}]),model:{value:t.userInfo.password,callback:function(e){t.$set(t.userInfo,"password",e)},expression:"userInfo.password"}}),n("div",{staticClass:"login_button",on:{click:t.login}},[t._v("\n 登录\n ")])],1)],1)])])])])},s=[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"logo"},[o("img",{attrs:{src:n("9d64"),alt:""}}),o("p",[t._v("晶盛 智能制造执行系统")])])}],a=n("758b");function r(){return new Promise((t=>{Object(a["b"])({url:"/index/info",method:"get"}).then((e=>{t(!0)})).catch((e=>{t(!1)}))}))}async function c(t){r(),sessionStorage.setItem("token",t.token);try{await new Promise((e=>{db.transaction((function(n){n.executeSql("DROP TABLE IF EXISTS MyTable"),n.executeSql("CREATE TABLE IF NOT EXISTS MyTable (token)"),n.executeSql("INSERT INTO MyTable VALUES (?)",[t.token]),e()}),(function(t){console.log("Open database ERROR: "+JSON.stringify(t))}),(function(){console.log("Populated database OK")}))}))}catch(e){console.log(e)}}var i={name:"",data(){return{userInfo:{username:"admin",password:"jr.com"}}},methods:{login(){const t=this;cloudSky.zBar.scan({text_title:"扫码",text_instructions:"请把相机对准二维码",camera:"red",flash:"auto",drawSight:!0},(function(e){console.log(e,"success1"),t.value=e.text,t.$emit("update:model",e.text)}),(function(t){console.log(t,"error")}))},handleLogin(){this.$http({url:"/index/login",method:"get",params:this.userInfo}).then((async t=>{await c({token:t.result}),this.$router.push({path:"/dashboard"})})).catch((()=>{}))}}},u=i,l=(n("c3aa"),n("2877")),d=n("0378"),f=n("27f9"),p=n("0016"),m=n("eebe"),b=n.n(m),g=Object(l["a"])(u,o,s,!1,null,"50a3b867",null);e["default"]=g.exports;b()(g,"components",{QForm:d["a"],QInput:f["a"],QIcon:p["a"]})},b1b3:function(t,e,n){},c3aa:function(t,e,n){"use strict";n("b1b3")}}]);

View File

@@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[30],{"32ce":function(t,a,s){"use strict";s.r(a);var e=function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("PageContainer",[s("template",{slot:"header"},[s("Appbar",{attrs:{options:t.batchNumList,model:t.currentBatchNum,fkliterKey:"batchNum"},on:{"update:model":function(a){t.currentBatchNum=a}}}),t.category.steps.length>0?s("q-tabs",{staticClass:"text-grey common-tab",attrs:{"narrow-indicator":"",align:"left","active-color":"dark","indicator-color":"primary"},model:{value:t.tab,callback:function(a){t.tab=a},expression:"tab"}},t._l(t.category.steps,(function(t,a){return s("q-tab",{key:a,attrs:{ripple:!1,label:t.stepName,name:a}})})),1):t._e()],1),s("q-tab-panels",{attrs:{animated:""},model:{value:t.tab,callback:function(a){t.tab=a},expression:"tab"}},[s("q-tab-panel",{attrs:{name:0}},[s("div",{staticClass:"mt-20 common-box"},[s("CommonCard",{attrs:{list:t.cardList,title:"任务信息"}}),s("CommonBox",{staticClass:"mg-b-20",attrs:{title:"过程录入"}},[s("CommonTitle",{attrs:{color:"green",icon:"icon-a-shuju1"}}),s("div",[s("q-form",{staticClass:"q-gutter-md mg-t-20",on:{submit:t.onSubmit,reset:t.onReset}},[s("div",{staticClass:"row"},[s("div",{staticClass:"col mg-r-20"},[s("div",{staticClass:"label disable"},[t._v("\n 泡酸时长设定(分钟)\n ")]),s("q-input")],1)])]),s("div",{staticClass:"mg-b-20"}),s("FormTable",{attrs:{labels:[{name:"累计浸酸片数"},"设备编号",""]}},[s("template",{slot:"tbody"},[s("tr",[s("td",[s("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""}})],1),s("td",[s("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""}})],1),s("td",{staticClass:"edit_btn_group"},[s("q-btn",{staticStyle:{"margin-right":"20px"},attrs:{icon:"refresh",color:"primary"}}),s("q-btn",{attrs:{color:"primary",disable:""}},[t._v("开始泡酸")])],1)])])],2)],1)],1)],1)]),s("q-tab-panel",{attrs:{name:1}},[s("div",{staticClass:"mt-20 common-box"},[s("CommonCard",{attrs:{list:t.cardList,title:"任务信息"}}),s("CommonBox",{staticClass:"mg-b-20",attrs:{title:"过程录入"}},[s("CommonTitle",{attrs:{color:"green",icon:"icon-a-shuju1"}}),s("div",[s("q-form",{staticClass:"q-gutter-md mg-t-20",on:{submit:t.onSubmit,reset:t.onReset}},[s("div",{staticClass:"row"},[s("div",{staticClass:"col mg-r-20"},[s("div",{staticClass:"label disable"},[t._v("\n 设备编号\n ")]),s("q-input")],1)])])],1)],1)],1)]),s("q-tab-panel",{attrs:{name:2}},[s("div",{staticClass:"mt-20 common-box"},[s("CommonCard",{attrs:{list:t.cardList,title:"任务信息"}}),s("CommonBox",{staticClass:"mg-b-20",attrs:{title:"过程录入"}},[s("CommonTitle",{attrs:{color:"green",icon:"icon-a-shuju1"}}),s("div",[s("q-form",{staticClass:"q-gutter-md mg-t-20",on:{submit:t.onSubmit,reset:t.onReset}},[s("div",{staticClass:"row"},[s("div",{staticClass:"col mg-r-20"},[s("div",{staticClass:"label disable"},[t._v("\n 累计清洗片数\n ")]),s("q-input")],1),s("div",{staticClass:"col mg-r-20"},[s("div",{staticClass:"label disable"},[t._v("\n 设备编号\n ")]),s("q-input")],1),s("div",{staticClass:"col mg-r-20"},[s("div",{staticClass:"label disable"},[t._v("\n 流出片数\n ")]),s("q-input")],1),s("div",{staticClass:"col mg-r-20"},[s("div",{staticClass:"label disable"},[t._v("\n 备注\n ")]),s("q-input")],1)])]),s("div",{staticClass:"mg-b-20"}),s("FormTable",{attrs:{labels:[{name:"质量类型",width:"33%"},"片数","操作"]}},[s("template",{slot:"tbody"},[s("tr",[s("td",[s("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""}})],1),s("td",[s("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""}})],1),s("td",{staticClass:"edit_btn_group"},[s("div",[s("q-icon",{staticStyle:{"font-size":"28px",color:"grey","margin-right":"28px"},attrs:{name:"app:icon-a-tubiaotj1"}}),s("q-icon",{staticStyle:{"font-size":"28px",color:"grey"},attrs:{name:"app:icon-a-tubiaotjbeifen1"}})],1)])])])],2)],1)],1)],1)])],1)],2)},i=[],l=s("d6f4"),n=s("6e23"),o={name:"qingxi",mixins:[l["default"]],components:{FormTable:n["default"]},data(){return{batchNumList:[],currentBatchNum:null,name:"清洗",cardList:[],form:{}}},methods:{onSubmit(){},onReset(){}}},r=o,c=s("2877"),m=s("429b"),d=s("7460"),b=s("adad"),u=s("823b"),p=s("0378"),C=s("27f9"),v=s("9c40"),g=s("0016"),f=s("eebe"),q=s.n(f),h=Object(c["a"])(r,e,i,!1,null,"fa305d14",null);a["default"]=h.exports;q()(h,"components",{QTabs:m["a"],QTab:d["a"],QTabPanels:b["a"],QTabPanel:u["a"],QForm:p["a"],QInput:C["a"],QBtn:v["a"],QIcon:g["a"]})}}]);

View File

@@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[31],{b057:function(t,a,e){"use strict";e.r(a);var s=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("PageContainer",[e("template",{slot:"header"},[e("Appbar",{attrs:{options:t.batchNumList,model:t.currentBatchNum,fkliterKey:"batchNum"},on:{"update:model":function(a){t.currentBatchNum=a}}}),t.category.steps.length>0?e("q-tabs",{staticClass:"text-grey common-tab",attrs:{"narrow-indicator":"",align:"left","active-color":"dark","indicator-color":"primary"},model:{value:t.tab,callback:function(a){t.tab=a},expression:"tab"}},t._l(t.category.steps,(function(t,a){return e("q-tab",{key:a,attrs:{ripple:!1,label:t.stepName,name:a}})})),1):t._e()],1),e("div",{staticClass:"mt-20 common-box"},[e("CommonCard",{attrs:{list:t.cardList,title:"任务信息"}}),e("CommonBox",{staticClass:"mg-b-20",attrs:{title:"过程录入"}},[e("CommonTitle",{attrs:{color:"green",icon:"icon-a-shuju1"}}),e("div",[e("q-form",{staticClass:"q-gutter-md mg-t-20",on:{submit:t.onSubmit,reset:t.onReset}},[e("div",{staticClass:"row"},[e("div",{staticClass:"col mg-r-20"},[e("div",{staticClass:"label disable"},[t._v("\n 流出片数\n ")]),e("q-input")],1),e("div",{staticClass:"col mg-r-20"},[e("div",{staticClass:"label disable"},[t._v("\n 备注\n ")]),e("q-input")],1)])]),e("div",{staticClass:"mg-b-20"}),e("FormTable",{attrs:{labels:[{name:"质量类型",width:"33%"},"片数","操作"]}},[e("template",{slot:"tbody"},[e("tr",[e("td",[e("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""}})],1),e("td",[e("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""}})],1),e("td",{staticClass:"edit_btn_group"},[e("div",[e("q-icon",{staticStyle:{"font-size":"28px",color:"grey","margin-right":"28px"},attrs:{name:"app:icon-a-tubiaotj1"}}),e("q-icon",{staticStyle:{"font-size":"28px",color:"grey"},attrs:{name:"app:icon-a-tubiaotjbeifen1"}})],1)])])])],2)],1)],1)],1)],2)},n=[],i=e("d6f4"),o=e("6e23"),r={name:"rejian",mixins:[i["default"]],components:{FormTable:o["default"]},data(){return{batchNumList:[],currentBatchNum:null,name:"热检",cardList:[],form:{}}},methods:{onSubmit(){},onReset(){}}},l=r,c=e("2877"),m=e("429b"),d=e("7460"),u=e("0378"),b=e("27f9"),p=e("0016"),f=e("eebe"),g=e.n(f),h=Object(c["a"])(l,s,n,!1,null,"de725ebe",null);a["default"]=h.exports;g()(h,"components",{QTabs:m["a"],QTab:d["a"],QForm:u["a"],QInput:b["a"],QIcon:p["a"]})}}]);

View File

@@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[32],{aa4c:function(n,e,t){"use strict";t.r(e);var a=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",[n._v("tongpao")])},c=[],l=t("2877"),o={},u=Object(l["a"])(o,a,c,!1,null,null,null);e["default"]=u.exports}}]);

View File

@@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[33],{d20f:function(t,a,e){"use strict";e.r(a);var s=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("PageContainer",[e("template",{slot:"header"},[e("Appbar",{attrs:{options:t.batchNumList,model:t.currentBatchNum,fkliterKey:"batchNum"},on:{"update:model":function(a){t.currentBatchNum=a}}}),t.category.steps.length>0?e("q-tabs",{staticClass:"text-grey common-tab",attrs:{"narrow-indicator":"",align:"left","active-color":"dark","indicator-color":"primary"},model:{value:t.tab,callback:function(a){t.tab=a},expression:"tab"}},t._l(t.category.steps,(function(t,a){return e("q-tab",{key:a,attrs:{ripple:!1,label:t.stepName,name:a}})})),1):t._e()],1),e("div",{staticClass:"mt-20 common-box"},[e("CommonCard",{attrs:{list:t.cardList,title:"任务信息"}}),e("CommonBox",{staticClass:"mg-b-20",attrs:{title:"过程录入"}},[e("CommonTitle",{attrs:{color:"green",icon:"icon-a-shuju1"}}),e("div",[e("q-form",{staticClass:"q-gutter-md mg-t-20",on:{submit:t.onSubmit,reset:t.onReset}},[e("div",{staticClass:"row"},[e("div",{staticClass:"col mg-r-20"},[e("div",{staticClass:"label disable"},[t._v("\n 设备编号\n ")]),e("q-input")],1),e("div",{staticClass:"col mg-r-20"},[e("div",{staticClass:"label disable"},[t._v("\n 流出片数\n ")]),e("q-input")],1),e("div",{staticClass:"col mg-r-20"},[e("div",{staticClass:"label disable"},[t._v("\n 备注\n ")]),e("q-input")],1)])]),e("div",{staticClass:"mg-b-20"}),e("FormTable",{attrs:{labels:[{name:"质量类型",width:"33%"},"片数","操作"]}},[e("template",{slot:"tbody"},[e("tr",[e("td",[e("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""}})],1),e("td",[e("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""}})],1),e("td",{staticClass:"edit_btn_group"},[e("div",[e("q-icon",{staticStyle:{"font-size":"28px",color:"grey","margin-right":"28px"},attrs:{name:"app:icon-a-tubiaotj1"}}),e("q-icon",{staticStyle:{"font-size":"28px",color:"grey"},attrs:{name:"app:icon-a-tubiaotjbeifen1"}})],1)])])])],2)],1)],1)],1)],2)},i=[],n=e("d6f4"),o=e("6e23"),l={name:"tuihuo",mixins:[n["default"]],components:{FormTable:o["default"]},data(){return{batchNumList:[],currentBatchNum:null,name:"退火",cardList:[],form:{}}},methods:{onSubmit(){},onReset(){}}},r=l,c=e("2877"),m=e("429b"),d=e("7460"),u=e("0378"),b=e("27f9"),p=e("0016"),f=e("eebe"),g=e.n(f),v=Object(c["a"])(r,s,i,!1,null,"583a5bb8",null);a["default"]=v.exports;g()(v,"components",{QTabs:m["a"],QTab:d["a"],QForm:u["a"],QInput:b["a"],QIcon:p["a"]})}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[4],{e51e:function(t,e,n){"use strict";n.r(e);var l=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fullscreen bg-blue text-white text-center q-pa-md flex flex-center"},[n("div",[n("div",{staticStyle:{"font-size":"30vh"}},[t._v("\n 404\n ")]),n("div",{staticClass:"text-h2",staticStyle:{opacity:".4"}},[t._v("\n Oops. Nothing here...\n ")]),n("q-btn",{staticClass:"q-mt-xl",attrs:{color:"white","text-color":"blue",unelevated:"",to:"/dashboard",label:"Go Home","no-caps":""}})],1)])},s=[],a={name:"ErrorNotFound"},o=a,c=n("2877"),i=n("9c40"),r=n("eebe"),u=n.n(r),d=Object(c["a"])(o,l,s,!1,null,null,null);e["default"]=d.exports;u()(d,"components",{QBtn:i["a"]})}}]);

View File

@@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[5],{"1e78":function(e,n,t){"use strict";t.r(n);var a=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[e._v("axiosApi111122")])},o=[],s={name:"",data(){return{}},methods:{handleLogin(){this.$http({url:"/index/login",method:"get",params:{username:"xuxiu",password:"123.xyw"}}).then((e=>{console.log(e)})).catch((()=>{}))}},created(){}},r=s,i=t("2877"),l=Object(i["a"])(r,a,o,!1,null,null,null);n["default"]=l.exports}}]);

View File

@@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[6],{"44a3":function(t,e,o){"use strict";o.r(e);var a=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[t._v("\n 电池电量: "),o("strong",[t._v(t._s(t.batteryStatus))]),o("div",[o("q-btn",{attrs:{color:"primary",label:"唤起相机"},on:{click:t.takePhoto}}),o("img",{attrs:{src:t.imageSrc}})],1),o("div",[t._v(t._s(t.info))]),o("q-btn",{attrs:{color:"primary",label:"唤起弹窗"},on:{click:t.basicAlert}}),o("div",[o("q-btn",{attrs:{color:"primary",label:"获取地理位置"},on:{click:t.getPlace}})],1),o("div",[o("q-btn",{attrs:{color:"primary",label:"震动"},on:{click:t.move}})],1),o("div",[o("q-btn",{attrs:{color:"primary",label:"扫描二维码"},on:{click:t.scan}})],1)],1)},r=[],i={data(){return{batteryStatus:"determining...",imageSrc:"",info:device}},methods:{updateBatteryStatus(t){this.batteryStatus=`Level: ${t.level}, plugged: ${t.isPlugged}`},onBatteryLow(t){alert("低电量"+t.level+"%")},takePhoto(t){let e=null;e=t?Camera.PictureSourceType.CAMERA:Camera.PictureSourceType.PHOTOLIBRARY,window.navigator.camera.getPicture((t=>{this.uploadPhoto(t).then((t=>{this.imageList.push(JSON.parse(t).result),this.$emit("update:imageList",this.imageList),this.$refs.popover&&this.$refs.popover.doClose()})).catch((t=>{this.$message.error("上传图片失败"),this.$refs.popover&&this.$refs.popover.doClose()}))}),(t=>{this.$message.warning("取消拍照"),this.$refs.popover&&this.$refs.popover.doClose()}),{quality:50,destinationType:Camera.DestinationType.FILE_URI,sourceType:e})},basicAlert(){navigator.notification.alert("111",(()=>{}),"title","submit")},getPlace(){navigator.geolocation.getCurrentPosition(this.onSuccess,this.onError)},onSuccess(){alert("Latitude: "+position.coords.latitude+"\nLongitude: "+position.coords.longitude+"\nAltitude: "+position.coords.altitude+"\nAccuracy: "+position.coords.accuracy+"\nAltitude Accuracy: "+position.coords.altitudeAccuracy+"\nHeading: "+position.coords.heading+"\nSpeed: "+position.coords.speed+"\nTimestamp: "+position.timestamp+"\n")},onError(t){alert("code: "+t.code+"\nmessage: "+t.message+"\n")},move(){navigator.vibrate([200])},scan(){cloudSky.zBar.scan({text_title:"扫码",text_instructions:"请把相机对准二维码",camera:"red",flash:"auto",drawSight:!0},(function(t){console.log(t,"success")}),(function(t){console.log(t,"error")}))}},created(){window.addEventListener("batterystatus",this.updateBatteryStatus,!1),window.addEventListener("batterylow",onBatteryLow,!1)},beforeDestroy(){window.removeEventListener("batterystatus",this.updateBatteryStatus,!1),window.removeEventListener("batterylow",this.updateBatteryStatus,!1)}},s=i,n=o("2877"),c=o("9c40"),l=o("eebe"),d=o.n(l),u=Object(n["a"])(s,a,r,!1,null,null,null);e["default"]=u.exports;d()(u,"components",{QBtn:c["a"]})}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,112 +0,0 @@
cordova.define("cordova-plugin-battery-status.battery", function(require, exports, module) {
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
/**
* This class contains information about the current battery status.
* @constructor
*/
var cordova = require('cordova');
var exec = require('cordova/exec');
var STATUS_CRITICAL = 5;
var STATUS_LOW = 20;
var Battery = function () {
this._level = null;
this._isPlugged = null;
// Create new event handlers on the window (returns a channel instance)
this.channels = {
batterystatus: cordova.addWindowEventHandler('batterystatus'),
batterylow: cordova.addWindowEventHandler('batterylow'),
batterycritical: cordova.addWindowEventHandler('batterycritical')
};
for (var key in this.channels) {
this.channels[key].onHasSubscribersChange = Battery.onHasSubscribersChange;
}
};
function handlers () {
return battery.channels.batterystatus.numHandlers +
battery.channels.batterylow.numHandlers +
battery.channels.batterycritical.numHandlers;
}
/**
* Event handlers for when callbacks get registered for the battery.
* Keep track of how many handlers we have so we can start and stop the native battery listener
* appropriately (and hopefully save on battery life!).
*/
Battery.onHasSubscribersChange = function () {
// If we just registered the first handler, make sure native listener is started.
if (this.numHandlers === 1 && handlers() === 1) {
exec(battery._status, battery._error, 'Battery', 'start', []);
} else if (handlers() === 0) {
exec(null, null, 'Battery', 'stop', []);
}
};
/**
* Callback for battery status
*
* @param {Object} info keys: level, isPlugged
*/
Battery.prototype._status = function (info) {
if (info) {
if (battery._level !== info.level || battery._isPlugged !== info.isPlugged) {
if (info.level === null && battery._level !== null) {
return; // special case where callback is called because we stopped listening to the native side.
}
// Something changed. Fire batterystatus event
cordova.fireWindowEvent('batterystatus', info);
if (!info.isPlugged) { // do not fire low/critical if we are charging. issue: CB-4520
// note the following are NOT exact checks, as we want to catch a transition from
// above the threshold to below. issue: CB-4519
if (battery._level > STATUS_CRITICAL && info.level <= STATUS_CRITICAL) {
// Fire critical battery event
cordova.fireWindowEvent('batterycritical', info);
} else if (battery._level > STATUS_LOW && info.level <= STATUS_LOW) {
// Fire low battery event
cordova.fireWindowEvent('batterylow', info);
}
}
battery._level = info.level;
battery._isPlugged = info.isPlugged;
}
}
};
/**
* Error callback for battery start
*/
Battery.prototype._error = function (e) {
console.log('Error initializing Battery: ' + e);
};
var battery = new Battery(); // jshint ignore:line
module.exports = battery;
});

View File

@@ -1,188 +0,0 @@
cordova.define("cordova-plugin-camera.camera", function(require, exports, module) {
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
var argscheck = require('cordova/argscheck');
var exec = require('cordova/exec');
var Camera = require('./Camera');
// XXX: commented out
// CameraPopoverHandle = require('./CameraPopoverHandle');
/**
* @namespace navigator
*/
/**
* @exports camera
*/
var cameraExport = {};
// Tack on the Camera Constants to the base camera plugin.
for (var key in Camera) {
cameraExport[key] = Camera[key];
}
/**
* Callback function that provides an error message.
* @callback module:camera.onError
* @param {string} message - The message is provided by the device's native code.
*/
/**
* Callback function that provides the image data.
* @callback module:camera.onSuccess
* @param {string} imageData - Base64 encoding of the image data, _or_ the image file URI, depending on [`cameraOptions`]{@link module:camera.CameraOptions} in effect.
* @example
* // Show image
* //
* function cameraCallback(imageData) {
* var image = document.getElementById('myImage');
* image.src = "data:image/jpeg;base64," + imageData;
* }
*/
/**
* Optional parameters to customize the camera settings.
* * [Quirks](#CameraOptions-quirks)
* @typedef module:camera.CameraOptions
* @type {Object}
* @property {number} [quality=50] - Quality of the saved image, expressed as a range of 0-100, where 100 is typically full resolution with no loss from file compression. (Note that information about the camera's resolution is unavailable.)
* @property {module:Camera.DestinationType} [destinationType=FILE_URI] - Choose the format of the return value.
* @property {module:Camera.PictureSourceType} [sourceType=CAMERA] - Set the source of the picture.
* @property {Boolean} [allowEdit=false] - Allow simple editing of image before selection.
* @property {module:Camera.EncodingType} [encodingType=JPEG] - Choose the returned image file's encoding.
* @property {number} [targetWidth] - Width in pixels to scale image. Must be used with `targetHeight`. Aspect ratio remains constant.
* @property {number} [targetHeight] - Height in pixels to scale image. Must be used with `targetWidth`. Aspect ratio remains constant.
* @property {module:Camera.MediaType} [mediaType=PICTURE] - Set the type of media to select from. Only works when `PictureSourceType` is `PHOTOLIBRARY` or `SAVEDPHOTOALBUM`.
* @property {Boolean} [correctOrientation] - Rotate the image to correct for the orientation of the device during capture.
* @property {Boolean} [saveToPhotoAlbum] - Save the image to the photo album on the device after capture.
* @property {module:CameraPopoverOptions} [popoverOptions] - iOS-only options that specify popover location in iPad.
* @property {module:Camera.Direction} [cameraDirection=BACK] - Choose the camera to use (front- or back-facing).
*/
/**
* @description Takes a photo using the camera, or retrieves a photo from the device's
* image gallery. The image is passed to the success callback as a
* Base64-encoded `String`, or as the URI for the image file.
*
* The `camera.getPicture` function opens the device's default camera
* application that allows users to snap pictures by default - this behavior occurs,
* when `Camera.sourceType` equals [`Camera.PictureSourceType.CAMERA`]{@link module:Camera.PictureSourceType}.
* Once the user snaps the photo, the camera application closes and the application is restored.
*
* If `Camera.sourceType` is `Camera.PictureSourceType.PHOTOLIBRARY` or
* `Camera.PictureSourceType.SAVEDPHOTOALBUM`, then a dialog displays
* that allows users to select an existing image.
*
* The return value is sent to the [`cameraSuccess`]{@link module:camera.onSuccess} callback function, in
* one of the following formats, depending on the specified
* `cameraOptions`:
*
* - A `String` containing the Base64-encoded photo image.
* - A `String` representing the image file location on local storage (default).
*
* You can do whatever you want with the encoded image or URI, for
* example:
*
* - Render the image in an `<img>` tag, as in the example below
* - Save the data locally (`LocalStorage`, [Lawnchair](http://brianleroux.github.com/lawnchair/), etc.)
* - Post the data to a remote server
*
* __NOTE__: Photo resolution on newer devices is quite good. Photos
* selected from the device's gallery are not downscaled to a lower
* quality, even if a `quality` parameter is specified. To avoid common
* memory problems, set `Camera.destinationType` to `FILE_URI` rather
* than `DATA_URL`.
*
* __Supported Platforms__
*
* - Android
* - BlackBerry
* - Browser
* - Firefox
* - FireOS
* - iOS
* - Windows
* - WP8
* - Ubuntu
*
* More examples [here](#camera-getPicture-examples). Quirks [here](#camera-getPicture-quirks).
*
* @example
* navigator.camera.getPicture(cameraSuccess, cameraError, cameraOptions);
* @param {module:camera.onSuccess} successCallback
* @param {module:camera.onError} errorCallback
* @param {module:camera.CameraOptions} options CameraOptions
*/
cameraExport.getPicture = function (successCallback, errorCallback, options) {
argscheck.checkArgs('fFO', 'Camera.getPicture', arguments);
options = options || {};
var getValue = argscheck.getValue;
var quality = getValue(options.quality, 50);
var destinationType = getValue(options.destinationType, Camera.DestinationType.FILE_URI);
var sourceType = getValue(options.sourceType, Camera.PictureSourceType.CAMERA);
var targetWidth = getValue(options.targetWidth, -1);
var targetHeight = getValue(options.targetHeight, -1);
var encodingType = getValue(options.encodingType, Camera.EncodingType.JPEG);
var mediaType = getValue(options.mediaType, Camera.MediaType.PICTURE);
var allowEdit = !!options.allowEdit;
var correctOrientation = !!options.correctOrientation;
var saveToPhotoAlbum = !!options.saveToPhotoAlbum;
var popoverOptions = getValue(options.popoverOptions, null);
var cameraDirection = getValue(options.cameraDirection, Camera.Direction.BACK);
var args = [quality, destinationType, sourceType, targetWidth, targetHeight, encodingType,
mediaType, allowEdit, correctOrientation, saveToPhotoAlbum, popoverOptions, cameraDirection];
exec(successCallback, errorCallback, 'Camera', 'takePicture', args);
// XXX: commented out
// return new CameraPopoverHandle();
};
/**
* Removes intermediate image files that are kept in temporary storage
* after calling [`camera.getPicture`]{@link module:camera.getPicture}. Applies only when the value of
* `Camera.sourceType` equals `Camera.PictureSourceType.CAMERA` and the
* `Camera.destinationType` equals `Camera.DestinationType.FILE_URI`.
*
* __Supported Platforms__
*
* - iOS
*
* @example
* navigator.camera.cleanup(onSuccess, onFail);
*
* function onSuccess() {
* console.log("Camera cleanup success.")
* }
*
* function onFail(message) {
* alert('Failed because: ' + message);
* }
*/
cameraExport.cleanup = function (successCallback, errorCallback) {
exec(successCallback, errorCallback, 'Camera', 'cleanup', []);
};
module.exports = cameraExport;
});

View File

@@ -1,95 +0,0 @@
cordova.define("cordova-plugin-camera.Camera", function(require, exports, module) {
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
/**
* @module Camera
*/
module.exports = {
/**
* @description
* Defines the output format of `Camera.getPicture` call.
*
* @enum {number}
*/
DestinationType: {
/** Return base64 encoded string. DATA_URL can be very memory intensive and cause app crashes or out of memory errors. Use FILE_URI if possible */
DATA_URL: 0,
/** Return file uri (content://media/external/images/media/2 for Android) */
FILE_URI: 1
},
/**
* @enum {number}
*/
EncodingType: {
/** Return JPEG encoded image */
JPEG: 0,
/** Return PNG encoded image */
PNG: 1
},
/**
* @enum {number}
*/
MediaType: {
/** Allow selection of still pictures only. DEFAULT. Will return format specified via DestinationType */
PICTURE: 0,
/** Allow selection of video only, ONLY RETURNS URL */
VIDEO: 1,
/** Allow selection from all media types */
ALLMEDIA: 2
},
/**
* @description
* Defines the output format of `Camera.getPicture` call.
*
* @enum {number}
*/
PictureSourceType: {
/** Choose image from the device's photo library (same as SAVEDPHOTOALBUM for Android) */
PHOTOLIBRARY: 0,
/** Take picture from camera */
CAMERA: 1,
/** Choose image only from the device's Camera Roll album (same as PHOTOLIBRARY for Android) */
SAVEDPHOTOALBUM: 2
},
/**
* Matches iOS UIPopoverArrowDirection constants to specify arrow location on popover.
* @enum {number}
*/
PopoverArrowDirection: {
ARROW_UP: 1,
ARROW_DOWN: 2,
ARROW_LEFT: 4,
ARROW_RIGHT: 8,
ARROW_ANY: 15
},
/**
* @enum {number}
*/
Direction: {
/** Use the back-facing camera */
BACK: 0,
/** Use the front-facing camera */
FRONT: 1
}
};
});

View File

@@ -1,35 +0,0 @@
cordova.define("cordova-plugin-camera.CameraPopoverHandle", function(require, exports, module) {
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
/**
* @ignore in favour of iOS' one
* A handle to an image picker popover.
*/
var CameraPopoverHandle = function () {
this.setPosition = function (popoverOptions) {
console.log('CameraPopoverHandle.setPosition is only supported on iOS.');
};
};
module.exports = CameraPopoverHandle;
});

View File

@@ -1,59 +0,0 @@
cordova.define("cordova-plugin-camera.CameraPopoverOptions", function(require, exports, module) {
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
var Camera = require('./Camera');
/**
* @namespace navigator
*/
/**
* iOS-only parameters that specify the anchor element location and arrow
* direction of the popover when selecting images from an iPad's library
* or album.
* Note that the size of the popover may change to adjust to the
* direction of the arrow and orientation of the screen. Make sure to
* account for orientation changes when specifying the anchor element
* location.
* @module CameraPopoverOptions
* @param {Number} [x=0] - x pixel coordinate of screen element onto which to anchor the popover.
* @param {Number} [y=32] - y pixel coordinate of screen element onto which to anchor the popover.
* @param {Number} [width=320] - width, in pixels, of the screen element onto which to anchor the popover.
* @param {Number} [height=480] - height, in pixels, of the screen element onto which to anchor the popover.
* @param {module:Camera.PopoverArrowDirection} [arrowDir=ARROW_ANY] - Direction the arrow on the popover should point.
* @param {Number} [popoverWidth=0] - width of the popover (0 or not specified will use apple's default width).
* @param {Number} [popoverHeight=0] - height of the popover (0 or not specified will use apple's default height).
*/
var CameraPopoverOptions = function (x, y, width, height, arrowDir, popoverWidth, popoverHeight) {
// information of rectangle that popover should be anchored to
this.x = x || 0;
this.y = y || 32;
this.width = width || 320;
this.height = height || 480;
this.arrowDir = arrowDir || Camera.PopoverArrowDirection.ARROW_ANY;
this.popoverWidth = popoverWidth || 0;
this.popoverHeight = popoverHeight || 0;
};
module.exports = CameraPopoverOptions;
});

View File

@@ -1,26 +0,0 @@
cordova.define("cordova-plugin-cszbar.zBar", function(require, exports, module) {
var argscheck = require('cordova/argscheck'),
exec = require('cordova/exec');
function ZBar () {};
ZBar.prototype = {
scan: function (params, success, failure)
{
argscheck.checkArgs('*fF', 'CsZBar.scan', arguments);
params = params || {};
if(params.text_title === undefined) params.text_title = "Scan QR Code";
if(params.text_instructions === undefined) params.text_instructions = "Please point your camera at the QR code.";
if(params.camera != "front") params.camera = "back";
if(params.flash != "on" && params.flash != "off") params.flash = "auto";
exec(success, failure, 'CsZBar', 'scan', [params]);
},
};
module.exports = new ZBar;
});

View File

@@ -1,99 +0,0 @@
cordova.define("cordova-plugin-device.device", function(require, exports, module) {
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
var argscheck = require('cordova/argscheck');
var channel = require('cordova/channel');
var exec = require('cordova/exec');
var cordova = require('cordova');
channel.createSticky('onCordovaInfoReady');
// Tell cordova channel to wait on the CordovaInfoReady event
channel.waitForInitialization('onCordovaInfoReady');
/**
* This represents the mobile device, and provides properties for inspecting the model, version, UUID of the
* phone, etc.
* @constructor
*/
function Device () {
this.available = false;
this.platform = null;
this.version = null;
this.uuid = null;
this.cordova = null;
this.model = null;
this.manufacturer = null;
this.isVirtual = null;
this.serial = null;
this.isiOSAppOnMac = null;
var me = this;
channel.onCordovaReady.subscribe(function () {
me.getInfo(
function (info) {
// ignoring info.cordova returning from native, we should use value from cordova.version defined in cordova.js
// TODO: CB-5105 native implementations should not return info.cordova
var buildLabel = cordova.version;
me.available = true;
me.platform = info.platform;
me.version = info.version;
me.uuid = info.uuid;
me.cordova = buildLabel;
me.model = info.model;
me.isVirtual = info.isVirtual;
// isiOSAppOnMac is iOS specific. If defined, it will be appended.
if (info.isiOSAppOnMac !== undefined) {
me.isiOSAppOnMac = info.isiOSAppOnMac;
}
me.manufacturer = info.manufacturer || 'unknown';
me.serial = info.serial || 'unknown';
// SDK Version is Android specific. If defined, it will be appended.
if (info.sdkVersion !== undefined) {
me.sdkVersion = info.sdkVersion;
}
channel.onCordovaInfoReady.fire();
},
function (e) {
me.available = false;
console.error('[ERROR] Error initializing cordova-plugin-device: ' + e);
}
);
});
}
/**
* Get device info
*
* @param {Function} successCallback The function to call when the heading data is available
* @param {Function} errorCallback The function to call when there is an error getting the heading data. (OPTIONAL)
*/
Device.prototype.getInfo = function (successCallback, errorCallback) {
argscheck.checkArgs('fF', 'Device.getInfo', arguments);
exec(successCallback, errorCallback, 'Device', 'getDeviceInfo', []);
};
module.exports = new Device();
});

View File

@@ -1,77 +0,0 @@
cordova.define("cordova-plugin-dialogs.notification_android", function(require, exports, module) {
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
var exec = require('cordova/exec');
/**
* Provides Android enhanced notification API.
*/
module.exports = {
activityStart: function (title, message) {
// If title and message not specified then mimic Android behavior of
// using default strings.
if (typeof title === 'undefined' && typeof message === 'undefined') {
title = 'Busy';
message = 'Please wait...';
}
exec(null, null, 'Notification', 'activityStart', [ title, message ]);
},
/**
* Close an activity dialog
*/
activityStop: function () {
exec(null, null, 'Notification', 'activityStop', []);
},
/**
* Display a progress dialog with progress bar that goes from 0 to 100.
*
* @param {String}
* title Title of the progress dialog.
* @param {String}
* message Message to display in the dialog.
*/
progressStart: function (title, message) {
exec(null, null, 'Notification', 'progressStart', [ title, message ]);
},
/**
* Close the progress dialog.
*/
progressStop: function () {
exec(null, null, 'Notification', 'progressStop', []);
},
/**
* Set the progress dialog value.
*
* @param {Number}
* value 0-100
*/
progressValue: function (value) {
exec(null, null, 'Notification', 'progressValue', [ value ]);
}
};
});

View File

@@ -1,133 +0,0 @@
cordova.define("cordova-plugin-dialogs.notification", function(require, exports, module) {
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
var exec = require('cordova/exec');
var platform = require('cordova/platform');
/**
* Provides access to notifications on the device.
*/
module.exports = {
/**
* Open a native alert dialog, with a customizable title and button text.
*
* @param {String} message Message to print in the body of the alert
* @param {Function} completeCallback The callback that is called when user clicks on a button.
* @param {String} title Title of the alert dialog (default: Alert)
* @param {String} buttonLabel Label of the close button (default: OK)
*/
alert: function (message, completeCallback, title, buttonLabel) {
var _message = (typeof message === 'string' ? message : JSON.stringify(message));
var _title = (typeof title === 'string' ? title : 'Alert');
var _buttonLabel = (buttonLabel && typeof buttonLabel === 'string' ? buttonLabel : 'OK');
exec(completeCallback, null, 'Notification', 'alert', [_message, _title, _buttonLabel]);
},
/**
* Open a native confirm dialog, with a customizable title and button text.
* The result that the user selects is returned to the result callback.
*
* @param {String} message Message to print in the body of the alert
* @param {Function} resultCallback The callback that is called when user clicks on a button.
* @param {String} title Title of the alert dialog (default: Confirm)
* @param {Array} buttonLabels Array of the labels of the buttons (default: ['OK', 'Cancel'])
*/
confirm: function (message, resultCallback, title, buttonLabels) {
var _message = (typeof message === 'string' ? message : JSON.stringify(message));
var _title = (typeof title === 'string' ? title : 'Confirm');
var _buttonLabels = (buttonLabels || ['OK', 'Cancel']);
// Strings are deprecated!
if (typeof _buttonLabels === 'string') {
console.log('Notification.confirm(string, function, string, string) is deprecated. Use Notification.confirm(string, function, string, array).');
}
_buttonLabels = convertButtonLabels(_buttonLabels);
exec(resultCallback, null, 'Notification', 'confirm', [_message, _title, _buttonLabels]);
},
/**
* Open a native prompt dialog, with a customizable title and button text.
* The following results are returned to the result callback:
* buttonIndex Index number of the button selected.
* input1 The text entered in the prompt dialog box.
*
* @param {String} message Dialog message to display (default: "Prompt message")
* @param {Function} resultCallback The callback that is called when user clicks on a button.
* @param {String} title Title of the dialog (default: "Prompt")
* @param {Array} buttonLabels Array of strings for the button labels (default: ["OK","Cancel"])
* @param {String} defaultText Textbox input value (default: empty string)
*/
prompt: function (message, resultCallback, title, buttonLabels, defaultText) {
var _message = (typeof message === 'string' ? message : JSON.stringify(message));
var _title = (typeof title === 'string' ? title : 'Prompt');
var _buttonLabels = (buttonLabels || ['OK', 'Cancel']);
// Strings are deprecated!
if (typeof _buttonLabels === 'string') {
console.log('Notification.prompt(string, function, string, string) is deprecated. Use Notification.confirm(string, function, string, array).');
}
_buttonLabels = convertButtonLabels(_buttonLabels);
var _defaultText = (defaultText || '');
exec(resultCallback, null, 'Notification', 'prompt', [_message, _title, _buttonLabels, _defaultText]);
},
/**
* Causes the device to beep.
* On Android, the default notification ringtone is played "count" times.
*
* @param {Integer} count The number of beeps.
*/
beep: function (count) {
var defaultedCount = count || 1;
exec(null, null, 'Notification', 'beep', [ defaultedCount ]);
}
};
function convertButtonLabels (buttonLabels) {
// Some platforms take an array of button label names.
// Other platforms take a comma separated list.
// For compatibility, we convert to the desired type based on the platform.
if (platform.id === 'amazon-fireos' || platform.id === 'android' || platform.id === 'ios' ||
platform.id === 'windowsphone' || platform.id === 'firefoxos' || platform.id === 'ubuntu' ||
platform.id === 'windows8' || platform.id === 'windows') {
if (typeof buttonLabels === 'string') {
buttonLabels = buttonLabels.split(','); // not crazy about changing the var type here
}
} else {
if (Array.isArray(buttonLabels)) {
var buttonLabelArray = buttonLabels;
buttonLabels = buttonLabelArray.toString();
}
}
return buttonLabels;
}
});

View File

@@ -1,120 +0,0 @@
cordova.define("cordova-plugin-file.DirectoryEntry", function(require, exports, module) {
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
var argscheck = require('cordova/argscheck');
var utils = require('cordova/utils');
var exec = require('cordova/exec');
var Entry = require('./Entry');
var FileError = require('./FileError');
var DirectoryReader = require('./DirectoryReader');
/**
* An interface representing a directory on the file system.
*
* {boolean} isFile always false (readonly)
* {boolean} isDirectory always true (readonly)
* {DOMString} name of the directory, excluding the path leading to it (readonly)
* {DOMString} fullPath the absolute full path to the directory (readonly)
* {FileSystem} filesystem on which the directory resides (readonly)
*/
var DirectoryEntry = function (name, fullPath, fileSystem, nativeURL) {
// add trailing slash if it is missing
if ((fullPath) && !/\/$/.test(fullPath)) {
fullPath += '/';
}
// add trailing slash if it is missing
if (nativeURL && !/\/$/.test(nativeURL)) {
nativeURL += '/';
}
DirectoryEntry.__super__.constructor.call(this, false, true, name, fullPath, fileSystem, nativeURL);
};
utils.extend(DirectoryEntry, Entry);
/**
* Creates a new DirectoryReader to read entries from this directory
*/
DirectoryEntry.prototype.createReader = function () {
return new DirectoryReader(this.toInternalURL());
};
/**
* Creates or looks up a directory
*
* @param {DOMString} path either a relative or absolute path from this directory in which to look up or create a directory
* @param {Flags} options to create or exclusively create the directory
* @param {Function} successCallback is called with the new entry
* @param {Function} errorCallback is called with a FileError
*/
DirectoryEntry.prototype.getDirectory = function (path, options, successCallback, errorCallback) {
argscheck.checkArgs('sOFF', 'DirectoryEntry.getDirectory', arguments);
var fs = this.filesystem;
var win = successCallback && function (result) {
var entry = new DirectoryEntry(result.name, result.fullPath, fs, result.nativeURL);
successCallback(entry);
};
var fail = errorCallback && function (code) {
errorCallback(new FileError(code));
};
exec(win, fail, 'File', 'getDirectory', [this.toInternalURL(), path, options]);
};
/**
* Deletes a directory and all of it's contents
*
* @param {Function} successCallback is called with no parameters
* @param {Function} errorCallback is called with a FileError
*/
DirectoryEntry.prototype.removeRecursively = function (successCallback, errorCallback) {
argscheck.checkArgs('FF', 'DirectoryEntry.removeRecursively', arguments);
var fail = errorCallback && function (code) {
errorCallback(new FileError(code));
};
exec(successCallback, fail, 'File', 'removeRecursively', [this.toInternalURL()]);
};
/**
* Creates or looks up a file
*
* @param {DOMString} path either a relative or absolute path from this directory in which to look up or create a file
* @param {Flags} options to create or exclusively create the file
* @param {Function} successCallback is called with the new entry
* @param {Function} errorCallback is called with a FileError
*/
DirectoryEntry.prototype.getFile = function (path, options, successCallback, errorCallback) {
argscheck.checkArgs('sOFF', 'DirectoryEntry.getFile', arguments);
var fs = this.filesystem;
var win = successCallback && function (result) {
var FileEntry = require('./FileEntry');
var entry = new FileEntry(result.name, result.fullPath, fs, result.nativeURL);
successCallback(entry);
};
var fail = errorCallback && function (code) {
errorCallback(new FileError(code));
};
exec(win, fail, 'File', 'getFile', [this.toInternalURL(), path, options]);
};
module.exports = DirectoryEntry;
});

View File

@@ -1,75 +0,0 @@
cordova.define("cordova-plugin-file.DirectoryReader", function(require, exports, module) {
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
var exec = require('cordova/exec');
var FileError = require('./FileError');
/**
* An interface that lists the files and directories in a directory.
*/
function DirectoryReader (localURL) {
this.localURL = localURL || null;
this.hasReadEntries = false;
}
/**
* Returns a list of entries from a directory.
*
* @param {Function} successCallback is called with a list of entries
* @param {Function} errorCallback is called with a FileError
*/
DirectoryReader.prototype.readEntries = function (successCallback, errorCallback) {
// If we've already read and passed on this directory's entries, return an empty list.
if (this.hasReadEntries) {
successCallback([]);
return;
}
var reader = this;
var win = typeof successCallback !== 'function' ? null : function (result) {
var retVal = [];
for (var i = 0; i < result.length; i++) {
var entry = null;
if (result[i].isDirectory) {
entry = new (require('./DirectoryEntry'))();
} else if (result[i].isFile) {
entry = new (require('./FileEntry'))();
}
entry.isDirectory = result[i].isDirectory;
entry.isFile = result[i].isFile;
entry.name = result[i].name;
entry.fullPath = result[i].fullPath;
entry.filesystem = new (require('./FileSystem'))(result[i].filesystemName);
entry.nativeURL = result[i].nativeURL;
retVal.push(entry);
}
reader.hasReadEntries = true;
successCallback(retVal);
};
var fail = typeof errorCallback !== 'function' ? null : function (code) {
errorCallback(new FileError(code));
};
exec(win, fail, 'File', 'readEntries', [this.localURL]);
};
module.exports = DirectoryReader;
});

View File

@@ -1,263 +0,0 @@
cordova.define("cordova-plugin-file.Entry", function(require, exports, module) {
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
var argscheck = require('cordova/argscheck');
var exec = require('cordova/exec');
var FileError = require('./FileError');
var Metadata = require('./Metadata');
/**
* Represents a file or directory on the local file system.
*
* @param isFile
* {boolean} true if Entry is a file (readonly)
* @param isDirectory
* {boolean} true if Entry is a directory (readonly)
* @param name
* {DOMString} name of the file or directory, excluding the path
* leading to it (readonly)
* @param fullPath
* {DOMString} the absolute full path to the file or directory
* (readonly)
* @param fileSystem
* {FileSystem} the filesystem on which this entry resides
* (readonly)
* @param nativeURL
* {DOMString} an alternate URL which can be used by native
* webview controls, for example media players.
* (optional, readonly)
*/
function Entry (isFile, isDirectory, name, fullPath, fileSystem, nativeURL) {
this.isFile = !!isFile;
this.isDirectory = !!isDirectory;
this.name = name || '';
this.fullPath = fullPath || '';
this.filesystem = fileSystem || null;
this.nativeURL = nativeURL || null;
}
/**
* Look up the metadata of the entry.
*
* @param successCallback
* {Function} is called with a Metadata object
* @param errorCallback
* {Function} is called with a FileError
*/
Entry.prototype.getMetadata = function (successCallback, errorCallback) {
argscheck.checkArgs('FF', 'Entry.getMetadata', arguments);
var success = successCallback && function (entryMetadata) {
var metadata = new Metadata({
size: entryMetadata.size,
modificationTime: entryMetadata.lastModifiedDate
});
successCallback(metadata);
};
var fail = errorCallback && function (code) {
errorCallback(new FileError(code));
};
exec(success, fail, 'File', 'getFileMetadata', [this.toInternalURL()]);
};
/**
* Set the metadata of the entry.
*
* @param successCallback
* {Function} is called with a Metadata object
* @param errorCallback
* {Function} is called with a FileError
* @param metadataObject
* {Object} keys and values to set
*/
Entry.prototype.setMetadata = function (successCallback, errorCallback, metadataObject) {
argscheck.checkArgs('FFO', 'Entry.setMetadata', arguments);
exec(successCallback, errorCallback, 'File', 'setMetadata', [this.toInternalURL(), metadataObject]);
};
/**
* Move a file or directory to a new location.
*
* @param parent
* {DirectoryEntry} the directory to which to move this entry
* @param newName
* {DOMString} new name of the entry, defaults to the current name
* @param successCallback
* {Function} called with the new DirectoryEntry object
* @param errorCallback
* {Function} called with a FileError
*/
Entry.prototype.moveTo = function (parent, newName, successCallback, errorCallback) {
argscheck.checkArgs('oSFF', 'Entry.moveTo', arguments);
var fail = errorCallback && function (code) {
errorCallback(new FileError(code));
};
var srcURL = this.toInternalURL();
// entry name
var name = newName || this.name;
var success = function (entry) {
if (entry) {
if (successCallback) {
// create appropriate Entry object
var newFSName = entry.filesystemName || (entry.filesystem && entry.filesystem.name);
var fs = newFSName ? new FileSystem(newFSName, { name: '', fullPath: '/' }) : new FileSystem(parent.filesystem.name, { name: '', fullPath: '/' }); // eslint-disable-line no-undef
var result = (entry.isDirectory) ? new (require('./DirectoryEntry'))(entry.name, entry.fullPath, fs, entry.nativeURL) : new (require('cordova-plugin-file.FileEntry'))(entry.name, entry.fullPath, fs, entry.nativeURL);
successCallback(result);
}
} else {
// no Entry object returned
if (fail) {
fail(FileError.NOT_FOUND_ERR);
}
}
};
// copy
exec(success, fail, 'File', 'moveTo', [srcURL, parent.toInternalURL(), name]);
};
/**
* Copy a directory to a different location.
*
* @param parent
* {DirectoryEntry} the directory to which to copy the entry
* @param newName
* {DOMString} new name of the entry, defaults to the current name
* @param successCallback
* {Function} called with the new Entry object
* @param errorCallback
* {Function} called with a FileError
*/
Entry.prototype.copyTo = function (parent, newName, successCallback, errorCallback) {
argscheck.checkArgs('oSFF', 'Entry.copyTo', arguments);
var fail = errorCallback && function (code) {
errorCallback(new FileError(code));
};
var srcURL = this.toInternalURL();
// entry name
var name = newName || this.name;
// success callback
var success = function (entry) {
if (entry) {
if (successCallback) {
// create appropriate Entry object
var newFSName = entry.filesystemName || (entry.filesystem && entry.filesystem.name);
var fs = newFSName ? new FileSystem(newFSName, { name: '', fullPath: '/' }) : new FileSystem(parent.filesystem.name, { name: '', fullPath: '/' }); // eslint-disable-line no-undef
var result = (entry.isDirectory) ? new (require('./DirectoryEntry'))(entry.name, entry.fullPath, fs, entry.nativeURL) : new (require('cordova-plugin-file.FileEntry'))(entry.name, entry.fullPath, fs, entry.nativeURL);
successCallback(result);
}
} else {
// no Entry object returned
if (fail) {
fail(FileError.NOT_FOUND_ERR);
}
}
};
// copy
exec(success, fail, 'File', 'copyTo', [srcURL, parent.toInternalURL(), name]);
};
/**
* Return a URL that can be passed across the bridge to identify this entry.
*/
Entry.prototype.toInternalURL = function () {
if (this.filesystem && this.filesystem.__format__) {
return this.filesystem.__format__(this.fullPath, this.nativeURL);
}
};
/**
* Return a URL that can be used to identify this entry.
* Use a URL that can be used to as the src attribute of a <video> or
* <audio> tag. If that is not possible, construct a cdvfile:// URL.
*/
Entry.prototype.toURL = function () {
if (this.nativeURL) {
return this.nativeURL;
}
// fullPath attribute may contain the full URL in the case that
// toInternalURL fails.
return this.toInternalURL() || 'file://localhost' + this.fullPath;
};
/**
* Backwards-compatibility: In v1.0.0 - 1.0.2, .toURL would only return a
* cdvfile:// URL, and this method was necessary to obtain URLs usable by the
* webview.
* See CB-6051, CB-6106, CB-6117, CB-6152, CB-6199, CB-6201, CB-6243, CB-6249,
* and CB-6300.
*/
Entry.prototype.toNativeURL = function () {
console.log("DEPRECATED: Update your code to use 'toURL'");
return this.toURL();
};
/**
* Returns a URI that can be used to identify this entry.
*
* @param {DOMString} mimeType for a FileEntry, the mime type to be used to interpret the file, when loaded through this URI.
* @return uri
*/
Entry.prototype.toURI = function (mimeType) {
console.log("DEPRECATED: Update your code to use 'toURL'");
return this.toURL();
};
/**
* Remove a file or directory. It is an error to attempt to delete a
* directory that is not empty. It is an error to attempt to delete a
* root directory of a file system.
*
* @param successCallback {Function} called with no parameters
* @param errorCallback {Function} called with a FileError
*/
Entry.prototype.remove = function (successCallback, errorCallback) {
argscheck.checkArgs('FF', 'Entry.remove', arguments);
var fail = errorCallback && function (code) {
errorCallback(new FileError(code));
};
exec(successCallback, fail, 'File', 'remove', [this.toInternalURL()]);
};
/**
* Look up the parent DirectoryEntry of this entry.
*
* @param successCallback {Function} called with the parent DirectoryEntry object
* @param errorCallback {Function} called with a FileError
*/
Entry.prototype.getParent = function (successCallback, errorCallback) {
argscheck.checkArgs('FF', 'Entry.getParent', arguments);
var fs = this.filesystem;
var win = successCallback && function (result) {
var DirectoryEntry = require('./DirectoryEntry');
var entry = new DirectoryEntry(result.name, result.fullPath, fs, result.nativeURL);
successCallback(entry);
};
var fail = errorCallback && function (code) {
errorCallback(new FileError(code));
};
exec(win, fail, 'File', 'getParent', [this.toInternalURL()]);
};
module.exports = Entry;
});

View File

@@ -1,81 +0,0 @@
cordova.define("cordova-plugin-file.File", function(require, exports, module) {
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
/**
* Constructor.
* name {DOMString} name of the file, without path information
* fullPath {DOMString} the full path of the file, including the name
* type {DOMString} mime type
* lastModifiedDate {Date} last modified date
* size {Number} size of the file in bytes
*/
var File = function (name, localURL, type, lastModifiedDate, size) {
this.name = name || '';
this.localURL = localURL || null;
this.type = type || null;
this.lastModified = lastModifiedDate || null;
// For backwards compatibility, store the timestamp in lastModifiedDate as well
this.lastModifiedDate = lastModifiedDate || null;
this.size = size || 0;
// These store the absolute start and end for slicing the file.
this.start = 0;
this.end = this.size;
};
/**
* Returns a "slice" of the file. Since Cordova Files don't contain the actual
* content, this really returns a File with adjusted start and end.
* Slices of slices are supported.
* start {Number} The index at which to start the slice (inclusive).
* end {Number} The index at which to end the slice (exclusive).
*/
File.prototype.slice = function (start, end) {
var size = this.end - this.start;
var newStart = 0;
var newEnd = size;
if (arguments.length) {
if (start < 0) {
newStart = Math.max(size + start, 0);
} else {
newStart = Math.min(size, start);
}
}
if (arguments.length >= 2) {
if (end < 0) {
newEnd = Math.max(size + end, 0);
} else {
newEnd = Math.min(end, size);
}
}
var newFile = new File(this.name, this.localURL, this.type, this.lastModified, this.size);
newFile.start = this.start + newStart;
newFile.end = this.start + newEnd;
return newFile;
};
module.exports = File;
});

View File

@@ -1,95 +0,0 @@
cordova.define("cordova-plugin-file.FileEntry", function(require, exports, module) {
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
var utils = require('cordova/utils');
var exec = require('cordova/exec');
var Entry = require('./Entry');
var FileWriter = require('./FileWriter');
var File = require('./File');
var FileError = require('./FileError');
/**
* An interface representing a file on the file system.
*
* {boolean} isFile always true (readonly)
* {boolean} isDirectory always false (readonly)
* {DOMString} name of the file, excluding the path leading to it (readonly)
* {DOMString} fullPath the absolute full path to the file (readonly)
* {FileSystem} filesystem on which the file resides (readonly)
*/
var FileEntry = function (name, fullPath, fileSystem, nativeURL) {
// remove trailing slash if it is present
if (fullPath && /\/$/.test(fullPath)) {
fullPath = fullPath.substring(0, fullPath.length - 1);
}
if (nativeURL && /\/$/.test(nativeURL)) {
nativeURL = nativeURL.substring(0, nativeURL.length - 1);
}
FileEntry.__super__.constructor.apply(this, [true, false, name, fullPath, fileSystem, nativeURL]);
};
utils.extend(FileEntry, Entry);
/**
* Creates a new FileWriter associated with the file that this FileEntry represents.
*
* @param {Function} successCallback is called with the new FileWriter
* @param {Function} errorCallback is called with a FileError
*/
FileEntry.prototype.createWriter = function (successCallback, errorCallback) {
this.file(function (filePointer) {
var writer = new FileWriter(filePointer);
if (writer.localURL === null || writer.localURL === '') {
if (errorCallback) {
errorCallback(new FileError(FileError.INVALID_STATE_ERR));
}
} else {
if (successCallback) {
successCallback(writer);
}
}
}, errorCallback);
};
/**
* Returns a File that represents the current state of the file that this FileEntry represents.
*
* @param {Function} successCallback is called with the new File object
* @param {Function} errorCallback is called with a FileError
*/
FileEntry.prototype.file = function (successCallback, errorCallback) {
var localURL = this.toInternalURL();
var win = successCallback && function (f) {
var file = new File(f.name, localURL, f.type, f.lastModifiedDate, f.size);
successCallback(file);
};
var fail = errorCallback && function (code) {
errorCallback(new FileError(code));
};
exec(win, fail, 'File', 'getFileMetadata', [localURL]);
};
module.exports = FileEntry;
});

View File

@@ -1,49 +0,0 @@
cordova.define("cordova-plugin-file.FileError", function(require, exports, module) {
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
/**
* FileError
*/
function FileError (error) {
this.code = error || null;
}
// File error codes
// Found in DOMException
FileError.NOT_FOUND_ERR = 1;
FileError.SECURITY_ERR = 2;
FileError.ABORT_ERR = 3;
// Added by File API specification
FileError.NOT_READABLE_ERR = 4;
FileError.ENCODING_ERR = 5;
FileError.NO_MODIFICATION_ALLOWED_ERR = 6;
FileError.INVALID_STATE_ERR = 7;
FileError.SYNTAX_ERR = 8;
FileError.INVALID_MODIFICATION_ERR = 9;
FileError.QUOTA_EXCEEDED_ERR = 10;
FileError.TYPE_MISMATCH_ERR = 11;
FileError.PATH_EXISTS_ERR = 12;
module.exports = FileError;
});

View File

@@ -1,301 +0,0 @@
cordova.define("cordova-plugin-file.FileReader", function(require, exports, module) {
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
var exec = require('cordova/exec');
var modulemapper = require('cordova/modulemapper');
var utils = require('cordova/utils');
var FileError = require('./FileError');
var ProgressEvent = require('./ProgressEvent');
var origFileReader = modulemapper.getOriginalSymbol(window, 'FileReader');
/**
* This class reads the mobile device file system.
*
* For Android:
* The root directory is the root of the file system.
* To read from the SD card, the file name is "sdcard/my_file.txt"
* @constructor
*/
var FileReader = function () {
this._readyState = 0;
this._error = null;
this._result = null;
this._progress = null;
this._localURL = '';
this._realReader = origFileReader ? new origFileReader() : {}; // eslint-disable-line new-cap
};
/**
* Defines the maximum size to read at a time via the native API. The default value is a compromise between
* minimizing the overhead of many exec() calls while still reporting progress frequently enough for large files.
* (Note attempts to allocate more than a few MB of contiguous memory on the native side are likely to cause
* OOM exceptions, while the JS engine seems to have fewer problems managing large strings or ArrayBuffers.)
*/
FileReader.READ_CHUNK_SIZE = 256 * 1024;
// States
FileReader.EMPTY = 0;
FileReader.LOADING = 1;
FileReader.DONE = 2;
utils.defineGetter(FileReader.prototype, 'readyState', function () {
return this._localURL ? this._readyState : this._realReader.readyState;
});
utils.defineGetter(FileReader.prototype, 'error', function () {
return this._localURL ? this._error : this._realReader.error;
});
utils.defineGetter(FileReader.prototype, 'result', function () {
return this._localURL ? this._result : this._realReader.result;
});
function defineEvent (eventName) {
utils.defineGetterSetter(FileReader.prototype, eventName, function () {
return this._realReader[eventName] || null;
}, function (value) {
this._realReader[eventName] = value;
});
}
defineEvent('onloadstart'); // When the read starts.
defineEvent('onprogress'); // While reading (and decoding) file or fileBlob data, and reporting partial file data (progress.loaded/progress.total)
defineEvent('onload'); // When the read has successfully completed.
defineEvent('onerror'); // When the read has failed (see errors).
defineEvent('onloadend'); // When the request has completed (either in success or failure).
defineEvent('onabort'); // When the read has been aborted. For instance, by invoking the abort() method.
function initRead (reader, file) {
// Already loading something
if (reader.readyState === FileReader.LOADING) {
throw new FileError(FileError.INVALID_STATE_ERR);
}
reader._result = null;
reader._error = null;
reader._progress = 0;
reader._readyState = FileReader.LOADING;
if (typeof file.localURL === 'string') {
reader._localURL = file.localURL;
} else {
reader._localURL = '';
return true;
}
if (reader.onloadstart) {
reader.onloadstart(new ProgressEvent('loadstart', {target: reader}));
}
}
/**
* Callback used by the following read* functions to handle incremental or final success.
* Must be bound to the FileReader's this along with all but the last parameter,
* e.g. readSuccessCallback.bind(this, "readAsText", "UTF-8", offset, totalSize, accumulate)
* @param readType The name of the read function to call.
* @param encoding Text encoding, or null if this is not a text type read.
* @param offset Starting offset of the read.
* @param totalSize Total number of bytes or chars to read.
* @param accumulate A function that takes the callback result and accumulates it in this._result.
* @param r Callback result returned by the last read exec() call, or null to begin reading.
*/
function readSuccessCallback (readType, encoding, offset, totalSize, accumulate, r) {
if (this._readyState === FileReader.DONE) {
return;
}
var CHUNK_SIZE = FileReader.READ_CHUNK_SIZE;
if (readType === 'readAsDataURL') {
// Windows proxy does not support reading file slices as Data URLs
// so read the whole file at once.
CHUNK_SIZE = cordova.platformId === 'windows' ? totalSize : // eslint-disable-line no-undef
// Calculate new chunk size for data URLs to be multiply of 3
// Otherwise concatenated base64 chunks won't be valid base64 data
FileReader.READ_CHUNK_SIZE - (FileReader.READ_CHUNK_SIZE % 3) + 3;
}
if (typeof r !== 'undefined') {
accumulate(r);
this._progress = Math.min(this._progress + CHUNK_SIZE, totalSize);
if (typeof this.onprogress === 'function') {
this.onprogress(new ProgressEvent('progress', {loaded: this._progress, total: totalSize}));
}
}
if (typeof r === 'undefined' || this._progress < totalSize) {
var execArgs = [
this._localURL,
offset + this._progress,
offset + this._progress + Math.min(totalSize - this._progress, CHUNK_SIZE)];
if (encoding) {
execArgs.splice(1, 0, encoding);
}
exec(
readSuccessCallback.bind(this, readType, encoding, offset, totalSize, accumulate),
readFailureCallback.bind(this),
'File', readType, execArgs);
} else {
this._readyState = FileReader.DONE;
if (typeof this.onload === 'function') {
this.onload(new ProgressEvent('load', {target: this}));
}
if (typeof this.onloadend === 'function') {
this.onloadend(new ProgressEvent('loadend', {target: this}));
}
}
}
/**
* Callback used by the following read* functions to handle errors.
* Must be bound to the FileReader's this, e.g. readFailureCallback.bind(this)
*/
function readFailureCallback (e) {
if (this._readyState === FileReader.DONE) {
return;
}
this._readyState = FileReader.DONE;
this._result = null;
this._error = new FileError(e);
if (typeof this.onerror === 'function') {
this.onerror(new ProgressEvent('error', {target: this}));
}
if (typeof this.onloadend === 'function') {
this.onloadend(new ProgressEvent('loadend', {target: this}));
}
}
/**
* Abort reading file.
*/
FileReader.prototype.abort = function () {
if (origFileReader && !this._localURL) {
return this._realReader.abort();
}
this._result = null;
if (this._readyState === FileReader.DONE || this._readyState === FileReader.EMPTY) {
return;
}
this._readyState = FileReader.DONE;
// If abort callback
if (typeof this.onabort === 'function') {
this.onabort(new ProgressEvent('abort', {target: this}));
}
// If load end callback
if (typeof this.onloadend === 'function') {
this.onloadend(new ProgressEvent('loadend', {target: this}));
}
};
/**
* Read text file.
*
* @param file {File} File object containing file properties
* @param encoding [Optional] (see http://www.iana.org/assignments/character-sets)
*/
FileReader.prototype.readAsText = function (file, encoding) {
if (initRead(this, file)) {
return this._realReader.readAsText(file, encoding);
}
// Default encoding is UTF-8
var enc = encoding || 'UTF-8';
var totalSize = file.end - file.start;
readSuccessCallback.bind(this)('readAsText', enc, file.start, totalSize, function (r) {
if (this._progress === 0) {
this._result = '';
}
this._result += r;
}.bind(this));
};
/**
* Read file and return data as a base64 encoded data url.
* A data url is of the form:
* data:[<mediatype>][;base64],<data>
*
* @param file {File} File object containing file properties
*/
FileReader.prototype.readAsDataURL = function (file) {
if (initRead(this, file)) {
return this._realReader.readAsDataURL(file);
}
var totalSize = file.end - file.start;
readSuccessCallback.bind(this)('readAsDataURL', null, file.start, totalSize, function (r) {
var commaIndex = r.indexOf(',');
if (this._progress === 0) {
this._result = r;
} else {
this._result += r.substring(commaIndex + 1);
}
}.bind(this));
};
/**
* Read file and return data as a binary data.
*
* @param file {File} File object containing file properties
*/
FileReader.prototype.readAsBinaryString = function (file) {
if (initRead(this, file)) {
return this._realReader.readAsBinaryString(file);
}
var totalSize = file.end - file.start;
readSuccessCallback.bind(this)('readAsBinaryString', null, file.start, totalSize, function (r) {
if (this._progress === 0) {
this._result = '';
}
this._result += r;
}.bind(this));
};
/**
* Read file and return data as a binary data.
*
* @param file {File} File object containing file properties
*/
FileReader.prototype.readAsArrayBuffer = function (file) {
if (initRead(this, file)) {
return this._realReader.readAsArrayBuffer(file);
}
var totalSize = file.end - file.start;
readSuccessCallback.bind(this)('readAsArrayBuffer', null, file.start, totalSize, function (r) {
var resultArray = (this._progress === 0 ? new Uint8Array(totalSize) : new Uint8Array(this._result));
resultArray.set(new Uint8Array(r), this._progress);
this._result = resultArray.buffer;
}.bind(this));
};
module.exports = FileReader;
});

View File

@@ -1,58 +0,0 @@
cordova.define("cordova-plugin-file.FileSystem", function(require, exports, module) {
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
var DirectoryEntry = require('./DirectoryEntry');
/**
* An interface representing a file system
*
* @constructor
* {DOMString} name the unique name of the file system (readonly)
* {DirectoryEntry} root directory of the file system (readonly)
*/
var FileSystem = function (name, root) {
this.name = name;
if (root) {
this.root = new DirectoryEntry(root.name, root.fullPath, this, root.nativeURL);
} else {
this.root = new DirectoryEntry(this.name, '/', this);
}
};
FileSystem.prototype.__format__ = function (fullPath, nativeUrl) {
return fullPath;
};
FileSystem.prototype.toJSON = function () {
return '<FileSystem: ' + this.name + '>';
};
// Use instead of encodeURI() when encoding just the path part of a URI rather than an entire URI.
FileSystem.encodeURIPath = function (path) {
// Because # is a valid filename character, it must be encoded to prevent part of the
// path from being parsed as a URI fragment.
return encodeURI(path).replace(/#/g, '%23');
};
module.exports = FileSystem;
});

Some files were not shown because too many files have changed in this diff Show More