[update] ci

This commit is contained in:
陶林 2022-05-25 07:48:07 +08:00
parent e03a55c980
commit b50164e341
140 changed files with 10051 additions and 3184 deletions

View File

@ -3,7 +3,7 @@
<name>APP</name>
<description>app</description>
<author email="dev@cordova.apache.org" href="https://cordova.apache.org"></author>
<content src="http://10.1.248.29:8003/"/>
<content src="http://10.1.23.61:10001/"/>
<allow-intent href="http://*/*"/>
<allow-intent href="https://*/*"/>
<allow-intent href="tel:*"/>

169
package-lock.json generated
View File

@ -32,7 +32,8 @@
"cordova-plugin-splashscreen": "^6.0.1",
"cordova-plugin-statusbar": "^3.0.0",
"cordova-plugin-vibration": "^3.1.1",
"es6-promise-plugin": "^4.2.2"
"es6-promise-plugin": "^4.2.2",
"phonegap-plugin-barcodescanner": "^8.1.0"
}
},
"node_modules/@colors/colors": {
@ -2002,7 +2003,8 @@
"version": "4.2.2",
"resolved": "https://registry.npmjs.org/es6-promise-plugin/-/es6-promise-plugin-4.2.2.tgz",
"integrity": "sha512-uoA4aVplXI9oqUYJFBAVRwAqIN9/n9JgrTAUGX3qPbnSZVE5yY1+6/MsoN5f4xsaPO62WjPHOdtts6okMN6tNA==",
"dev": true
"dev": true,
"license": "MIT"
},
"node_modules/escape-goat": {
"version": "2.1.1",
@ -3048,6 +3050,15 @@
"lodash": "^4.17.14"
}
},
"node_modules/interpret": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz",
"integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==",
"dev": true,
"engines": {
"node": ">= 0.10"
}
},
"node_modules/ip": {
"version": "1.1.8",
"resolved": "https://mirrors.tencent.com/npm/ip/-/ip-1.1.8.tgz",
@ -4064,6 +4075,15 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/os-homedir": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz",
"integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=",
"dev": true,
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/os-name": {
"version": "4.0.1",
"resolved": "http://mirrors.cloud.tencent.com/npm/os-name/-/os-name-4.0.1.tgz",
@ -4089,6 +4109,16 @@
"node": ">=0.10.0"
}
},
"node_modules/osenv": {
"version": "0.1.5",
"resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz",
"integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==",
"dev": true,
"dependencies": {
"os-homedir": "^1.0.0",
"os-tmpdir": "^1.0.0"
}
},
"node_modules/p-cancelable": {
"version": "1.1.0",
"resolved": "https://mirrors.cloud.tencent.com/npm/p-cancelable/-/p-cancelable-1.1.0.tgz",
@ -4296,6 +4326,48 @@
"integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=",
"license": "MIT"
},
"node_modules/phonegap-plugin-barcodescanner": {
"version": "8.1.0",
"resolved": "https://registry.npmjs.org/phonegap-plugin-barcodescanner/-/phonegap-plugin-barcodescanner-8.1.0.tgz",
"integrity": "sha512-WQCDCoH9EQ9WEn2bce+B95jbNJduilAn2Vtske8KfcYAeGu7bdFqRD7zGCLCQao62VwoEwlX0cUvbQ/am12Jwg==",
"deprecated": "This package is deprecated, see https://blog.phonegap.com/update-for-customers-using-phonegap-and-phonegap-build-cc701c77502c",
"dev": true,
"dependencies": {
"nopt": "^4.0.1",
"shelljs": "^0.8.3"
},
"engines": {
"cordovaDependencies": {
"<7.0.0": {
"cordova-android": "<6.3.0"
},
"7.0.0": {
"cordova-android": ">=6.3.0"
},
"7.1.0": {
"cordova": ">=7.1.0",
"cordova-android": ">=6.3.0"
},
"8.0.0": {
"cordova": ">=7.1.0",
"cordova-android": ">=6.3.0"
}
}
}
},
"node_modules/phonegap-plugin-barcodescanner/node_modules/nopt": {
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/nopt/-/nopt-4.0.3.tgz",
"integrity": "sha512-CvaGwVMztSMJLOeXPrez7fyfObdZqNUK1cPAEzLHrTybIua9pMdmmPR5YwtfNftIOMv3DPUhFaxsZMNTQO20Kg==",
"dev": true,
"dependencies": {
"abbrev": "1",
"osenv": "^0.1.4"
},
"bin": {
"nopt": "bin/nopt.js"
}
},
"node_modules/picomatch": {
"version": "2.3.1",
"resolved": "https://mirrors.tencent.com/npm/picomatch/-/picomatch-2.3.1.tgz",
@ -4611,6 +4683,18 @@
"node": ">= 6"
}
},
"node_modules/rechoir": {
"version": "0.6.2",
"resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz",
"integrity": "sha1-hSBLVNuoLVdC4oyWdW70OvUOM4Q=",
"dev": true,
"dependencies": {
"resolve": "^1.1.6"
},
"engines": {
"node": ">= 0.10"
}
},
"node_modules/registry-auth-token": {
"version": "4.2.1",
"resolved": "http://mirrors.cloud.tencent.com/npm/registry-auth-token/-/registry-auth-token-4.2.1.tgz",
@ -5002,6 +5086,23 @@
"node": ">=8"
}
},
"node_modules/shelljs": {
"version": "0.8.5",
"resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz",
"integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==",
"dev": true,
"dependencies": {
"glob": "^7.0.0",
"interpret": "^1.0.0",
"rechoir": "^0.6.2"
},
"bin": {
"shjs": "bin/shjs"
},
"engines": {
"node": ">=4"
}
},
"node_modules/side-channel": {
"version": "1.0.4",
"resolved": "https://mirrors.tencent.com/npm/side-channel/-/side-channel-1.0.4.tgz",
@ -7944,6 +8045,12 @@
}
}
},
"interpret": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz",
"integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==",
"dev": true
},
"ip": {
"version": "1.1.8",
"resolved": "https://mirrors.tencent.com/npm/ip/-/ip-1.1.8.tgz",
@ -8625,6 +8732,12 @@
"is-wsl": "^2.1.1"
}
},
"os-homedir": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz",
"integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=",
"dev": true
},
"os-name": {
"version": "4.0.1",
"resolved": "http://mirrors.cloud.tencent.com/npm/os-name/-/os-name-4.0.1.tgz",
@ -8639,6 +8752,16 @@
"resolved": "https://mirrors.tencent.com/npm/os-tmpdir/-/os-tmpdir-1.0.2.tgz",
"integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ="
},
"osenv": {
"version": "0.1.5",
"resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz",
"integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==",
"dev": true,
"requires": {
"os-homedir": "^1.0.0",
"os-tmpdir": "^1.0.0"
}
},
"p-cancelable": {
"version": "1.1.0",
"resolved": "https://mirrors.cloud.tencent.com/npm/p-cancelable/-/p-cancelable-1.1.0.tgz",
@ -8775,6 +8898,28 @@
"resolved": "https://mirrors.tencent.com/npm/performance-now/-/performance-now-2.1.0.tgz",
"integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns="
},
"phonegap-plugin-barcodescanner": {
"version": "8.1.0",
"resolved": "https://registry.npmjs.org/phonegap-plugin-barcodescanner/-/phonegap-plugin-barcodescanner-8.1.0.tgz",
"integrity": "sha512-WQCDCoH9EQ9WEn2bce+B95jbNJduilAn2Vtske8KfcYAeGu7bdFqRD7zGCLCQao62VwoEwlX0cUvbQ/am12Jwg==",
"dev": true,
"requires": {
"nopt": "^4.0.1",
"shelljs": "^0.8.3"
},
"dependencies": {
"nopt": {
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/nopt/-/nopt-4.0.3.tgz",
"integrity": "sha512-CvaGwVMztSMJLOeXPrez7fyfObdZqNUK1cPAEzLHrTybIua9pMdmmPR5YwtfNftIOMv3DPUhFaxsZMNTQO20Kg==",
"dev": true,
"requires": {
"abbrev": "1",
"osenv": "^0.1.4"
}
}
}
},
"picomatch": {
"version": "2.3.1",
"resolved": "https://mirrors.tencent.com/npm/picomatch/-/picomatch-2.3.1.tgz",
@ -8985,6 +9130,15 @@
"util-deprecate": "^1.0.1"
}
},
"rechoir": {
"version": "0.6.2",
"resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz",
"integrity": "sha1-hSBLVNuoLVdC4oyWdW70OvUOM4Q=",
"dev": true,
"requires": {
"resolve": "^1.1.6"
}
},
"registry-auth-token": {
"version": "4.2.1",
"resolved": "http://mirrors.cloud.tencent.com/npm/registry-auth-token/-/registry-auth-token-4.2.1.tgz",
@ -9237,6 +9391,17 @@
"resolved": "https://mirrors.tencent.com/npm/shebang-regex/-/shebang-regex-3.0.0.tgz",
"integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A=="
},
"shelljs": {
"version": "0.8.5",
"resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz",
"integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==",
"dev": true,
"requires": {
"glob": "^7.0.0",
"interpret": "^1.0.0",
"rechoir": "^0.6.2"
}
},
"side-channel": {
"version": "1.0.4",
"resolved": "https://mirrors.tencent.com/npm/side-channel/-/side-channel-1.0.4.tgz",

BIN
res/icon/android/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

1904
www/cordova.js vendored Normal file

File diff suppressed because it is too large Load Diff

419
www/cordova_plugins.js vendored Normal file
View File

@ -0,0 +1,419 @@
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"
};
});

1
www/css/10.e1ab7393.css Normal file
View File

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

1
www/css/11.d1ecccdb.css Normal file
View File

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

1
www/css/12.c97887eb.css Normal file
View File

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

1
www/css/13.3ec0d28c.css Normal file
View File

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

1
www/css/14.3114b34c.css Normal file
View File

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

1
www/css/15.fa0f985c.css Normal file
View File

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

1
www/css/16.bd8950b3.css Normal file
View File

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

1
www/css/17.bcf6aad0.css Normal file
View File

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

1
www/css/18.673bf0b3.css Normal file
View File

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

1
www/css/19.264ed9b0.css Normal file
View File

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

1
www/css/2.a6314350.css Normal file
View File

@ -0,0 +1 @@
.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}

1
www/css/20.f4b5c2ff.css Normal file
View File

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

1
www/css/21.7b4f6794.css Normal file
View File

@ -0,0 +1 @@
.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)"}

1
www/css/22.e013a8b8.css Normal file
View File

@ -0,0 +1 @@
.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}

1
www/css/23.129b4424.css Normal file
View File

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

1
www/css/3.0ff27fed.css Normal file
View File

@ -0,0 +1 @@
.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}

1
www/css/3.46f905e4.css Normal file
View File

@ -0,0 +1 @@
.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}

1
www/css/7.58c014d7.css Normal file
View File

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

1
www/css/8.384fcb4d.css Normal file
View File

@ -0,0 +1 @@
.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}

1
www/css/9.b2e01979.css Normal file
View File

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

1
www/css/app.1735068f.css Normal file

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,110 +0,0 @@
/*
* 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.
*/
* {
-webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */
}
body {
-webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */
-webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */
-webkit-user-select: none; /* prevent copy paste, to allow, change 'none' to 'text' */
background-color:#E4E4E4;
background-image:linear-gradient(to bottom, #A7A7A7 0%, #E4E4E4 51%);
font-family: system-ui, -apple-system, -apple-system-font, 'Segoe UI', 'Roboto', sans-serif;
font-size:12px;
height:100vh;
margin:0px;
padding:0px;
/* Padding to avoid the "unsafe" areas behind notches in the screen */
padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
text-transform:uppercase;
width:100%;
}
/* Portrait layout (default) */
.app {
background:url(../img/logo.png) no-repeat center top; /* 170px x 200px */
position:absolute; /* position in the center of the screen */
left:50%;
top:50%;
height:50px; /* text area height */
width:225px; /* text area width */
text-align:center;
padding:180px 0px 0px 0px; /* image height is 200px (bottom 20px are overlapped with text) */
margin:-115px 0px 0px -112px; /* offset vertical: half of image height and text area height */
/* offset horizontal: half of text area width */
}
/* Landscape layout (with min-width) */
@media screen and (min-aspect-ratio: 1/1) and (min-width:400px) {
.app {
background-position:left center;
padding:75px 0px 75px 170px; /* padding-top + padding-bottom + text area = image height */
margin:-90px 0px 0px -198px; /* offset vertical: half of image height */
/* offset horizontal: half of image width and text area width */
}
}
h1 {
font-size:24px;
font-weight:normal;
margin:0px;
overflow:visible;
padding:0px;
text-align:center;
}
.event {
border-radius:4px;
color:#FFFFFF;
font-size:12px;
margin:0px 30px;
padding:2px 0px;
}
.event.listening {
background-color:#333333;
display:block;
}
.event.received {
background-color:#4B946A;
display:none;
}
#deviceready.ready .event.listening { display: none; }
#deviceready.ready .event.received { display: block; }
@keyframes fade {
from { opacity: 1.0; }
50% { opacity: 0.4; }
to { opacity: 1.0; }
}
.blink {
animation:fade 3000ms infinite;
-webkit-animation:fade 3000ms infinite;
}
@media screen and (prefers-color-scheme: dark) {
body {
background-image:linear-gradient(to bottom, #585858 0%, #1B1B1B 51%);
}
}

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.

BIN
www/fonts/fa-brands-400.ttf Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
www/fonts/fa-solid-900.ttf Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
www/fonts/iconfont.ttf Normal file

Binary file not shown.

BIN
www/fonts/iconfont.woff Normal file

Binary file not shown.

BIN
www/img/bg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

BIN
www/img/bg_left.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 664 KiB

153
www/img/iconfont.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

View File

@ -1,50 +1,33 @@
<!DOCTYPE html>
<!--
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.
-->
<html>
<head>
<meta charset="utf-8">
<!--
Customize this policy to fit your own app's needs. For more guidance, please refer to the docs:
https://cordova.apache.org/docs/en/latest/
Some notes:
* https://ssl.gstatic.com is required only on Android and is needed for TalkBack to function properly
* Disables use of inline scripts in order to mitigate risk of XSS vulnerabilities. To change this:
* Enable inline JS: add 'unsafe-inline' to default-src
-->
<meta http-equiv="Content-Security-Policy" content="default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;">
<meta name="format-detection" content="telephone=no">
<meta name="msapplication-tap-highlight" content="no">
<meta name="viewport" content="initial-scale=1, width=device-width, viewport-fit=cover">
<meta name="color-scheme" content="light dark">
<link rel="stylesheet" href="css/index.css">
<title>Hello World</title>
<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,viewport-fit=cover">
<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>
<script src=cordova.js></script>
<script src=http://injection/www/cordova.js charset=UTF-8></script>
<script src=cordova_plugins.js></script>
<link href=css/vendor.0d9534bc.css rel=stylesheet>
<link href=css/app.1735068f.css rel=stylesheet>
<script src="http://10.1.23.61:10001/plugins/cordova-plugin-cszbar/www/zbar.js"></script>
</head>
<body>
<div class="app">
<h1>Apache Cordova</h1>
<div id="deviceready" class="blink">
<p class="event listening">Connecting to Device</p>
<p class="event received">Device is Ready</p>
</div>
</div>
<script src="cordova.js"></script>
<script src="js/index.js"></script>
<div id=q-app></div>
<script src=cordova.js></script>
<script src=js/vendor.js></script>
<script src=js/app.js></script>
</body>
</html>

1
www/js/10.js Normal file

File diff suppressed because one or more lines are too long

1
www/js/11.js Normal file

File diff suppressed because one or more lines are too long

1
www/js/12.js Normal file
View File

@ -0,0 +1 @@
(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){}}]);

1
www/js/13.js Normal file

File diff suppressed because one or more lines are too long

1
www/js/14.js Normal file

File diff suppressed because one or more lines are too long

1
www/js/15.js Normal file

File diff suppressed because one or more lines are too long

1
www/js/16.js Normal file

File diff suppressed because one or more lines are too long

1
www/js/17.js Normal file

File diff suppressed because one or more lines are too long

1
www/js/18.js Normal file

File diff suppressed because one or more lines are too long

1
www/js/19.js Normal file

File diff suppressed because one or more lines are too long

1
www/js/2.js Normal file
View File

@ -0,0 +1 @@
(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"]})}}]);

1
www/js/20.js Normal file

File diff suppressed because one or more lines are too long

1
www/js/21.js Normal file

File diff suppressed because one or more lines are too long

1
www/js/22.js Normal file

File diff suppressed because one or more lines are too long

1
www/js/23.js Normal file
View File

@ -0,0 +1 @@
(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")}}]);

1
www/js/24.js Normal file
View File

@ -0,0 +1 @@
(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"]})}}]);

1
www/js/25.js Normal file
View File

@ -0,0 +1 @@
(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}}]);

1
www/js/26.js Normal file

File diff suppressed because one or more lines are too long

1
www/js/27.js Normal file
View File

@ -0,0 +1 @@
(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"]})}}]);

1
www/js/28.js Normal file

File diff suppressed because one or more lines are too long

1
www/js/29.js Normal file
View File

@ -0,0 +1 @@
(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"]})}}]);

1
www/js/3.js Normal file
View File

@ -0,0 +1 @@
(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")}}]);

1
www/js/30.js Normal file
View File

@ -0,0 +1 @@
(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"]})}}]);

1
www/js/31.js Normal file
View File

@ -0,0 +1 @@
(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"]})}}]);

1
www/js/32.js Normal file
View File

@ -0,0 +1 @@
(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}}]);

1
www/js/33.js Normal file
View File

@ -0,0 +1 @@
(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"]})}}]);

1
www/js/34.js Normal file

File diff suppressed because one or more lines are too long

1
www/js/35.js Normal file

File diff suppressed because one or more lines are too long

1
www/js/4.js Normal file
View File

@ -0,0 +1 @@
(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"]})}}]);

1
www/js/5.js Normal file
View File

@ -0,0 +1 @@
(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}}]);

1
www/js/6.js Normal file
View File

@ -0,0 +1 @@
(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"]})}}]);

1
www/js/7.js Normal file

File diff suppressed because one or more lines are too long

1
www/js/8.js Normal file

File diff suppressed because one or more lines are too long

1
www/js/9.js Normal file

File diff suppressed because one or more lines are too long

1
www/js/app.js Normal file

File diff suppressed because one or more lines are too long

1
www/js/chunk-common.js Normal file

File diff suppressed because one or more lines are too long

28
www/js/vendor.js Normal file

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,112 @@
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

@ -0,0 +1,188 @@
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

@ -0,0 +1,95 @@
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,4 +1,6 @@
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
@ -15,15 +17,19 @@
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
// Wait for the deviceready event before using any of Cordova's device APIs.
// See https://cordova.apache.org/docs/en/latest/cordova/events/events.html#deviceready
document.addEventListener('deviceready', onDeviceReady, false);
/**
* @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.');
};
};
function onDeviceReady() {
// Cordova is now initialized. Have fun!
module.exports = CameraPopoverHandle;
console.log('Running cordova-' + cordova.platformId + '@' + cordova.version);
document.getElementById('deviceready').classList.add('ready');
}
});

View File

@ -0,0 +1,59 @@
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

@ -0,0 +1,26 @@
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

@ -0,0 +1,99 @@
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

@ -0,0 +1,77 @@
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

@ -0,0 +1,133 @@
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

@ -0,0 +1,120 @@
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

@ -0,0 +1,75 @@
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

@ -0,0 +1,263 @@
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;
});

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