@webos-tools/cli 3.1.3 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +1 -1
- package/.eslintrc.js +52 -52
- package/APIs.js +79 -79
- package/CHANGELOG.md +32 -4
- package/LICENSE +201 -201
- package/README.md +226 -219
- package/bin/ares-config.js +211 -202
- package/bin/ares-device-info.js +30 -30
- package/bin/ares-device.js +222 -219
- package/bin/ares-generate.js +274 -274
- package/bin/ares-inspect.js +179 -179
- package/bin/ares-install.js +223 -223
- package/bin/ares-launch.js +318 -318
- package/bin/ares-log.js +259 -259
- package/bin/ares-novacom.js +220 -220
- package/bin/ares-package.js +347 -336
- package/bin/ares-pull.js +156 -156
- package/bin/ares-push.js +155 -155
- package/bin/ares-server.js +174 -174
- package/bin/ares-setup-device.js +10 -6
- package/bin/ares-shell.js +132 -132
- package/bin/ares.js +166 -166
- package/files/conf/ares.json +50 -49
- package/files/conf/command-service.json +78 -73
- package/files/conf/config.json +31 -31
- package/files/conf/ipk.json +30 -30
- package/files/conf/novacom-devices.json +69 -52
- package/files/conf/query/query-app.json +14 -14
- package/files/conf/query/query-hosted.json +18 -18
- package/files/conf/query/query-package.json +10 -10
- package/files/conf/query/query-service.json +6 -6
- package/files/conf/sdk.json +8 -8
- package/files/conf/template.json +57 -57
- package/files/conf/webos_emul +27 -27
- package/files/conf-base/env/sdk-apollo.json +8 -8
- package/files/conf-base/env/sdk-ose.json +8 -8
- package/files/conf-base/env/sdk-signage.json +8 -0
- package/files/conf-base/env/sdk-tv.json +8 -8
- package/files/conf-base/key/pubkey-signage.pem +9 -0
- package/files/conf-base/profile/config-apollo.json +29 -29
- package/files/conf-base/profile/config-ose.json +29 -29
- package/files/conf-base/profile/config-signage.json +29 -0
- package/files/conf-base/profile/config-tv.json +31 -31
- package/files/conf-base/query/query-app.json +14 -14
- package/files/conf-base/query/query-hosted.json +18 -18
- package/files/conf-base/query/query-package.json +10 -10
- package/files/conf-base/query/query-service.json +6 -6
- package/files/conf-base/query/signage/query-app.json +14 -0
- package/files/conf-base/query/signage/query-service.json +6 -0
- package/files/conf-base/template-conf/ose-templates.json +67 -67
- package/files/conf-base/template-conf/signage-sdk-templates.json +239 -0
- package/files/conf-base/template-conf/tv-sdk-templates.json +57 -57
- package/files/help/ares-config.help +48 -48
- package/files/help/ares-device.help +109 -109
- package/files/help/ares-generate.help +101 -91
- package/files/help/ares-inspect.help +77 -76
- package/files/help/ares-install.help +95 -95
- package/files/help/ares-launch.help +111 -105
- package/files/help/ares-log-pmlogd.help +84 -84
- package/files/help/ares-log.help +101 -101
- package/files/help/ares-novacom.help +68 -68
- package/files/help/ares-package.help +103 -101
- package/files/help/ares-pull.help +38 -38
- package/files/help/ares-push.help +38 -38
- package/files/help/ares-server.help +44 -44
- package/files/help/ares-setup-device.help +196 -156
- package/files/help/ares-shell.help +42 -42
- package/files/help/ares.help +52 -52
- package/files/help/readme.help +23 -23
- package/files/schema/ApplicationDescription.schema +319 -319
- package/files/schema/NovacomDevices.schema +63 -62
- package/files/templates/apollo-sdk-templates/appinfo/appinfo.json +10 -10
- package/files/templates/apollo-sdk-templates/bootplate-web/index.html +88 -88
- package/files/templates/apollo-sdk-templates/hosted-webapp/index.html +13 -13
- package/files/templates/apollo-sdk-templates/js-service/helloclient.js +31 -31
- package/files/templates/apollo-sdk-templates/js-service/helloworld_webos_service.js +188 -188
- package/files/templates/apollo-sdk-templates/serviceinfo/package.json +11 -11
- package/files/templates/apollo-sdk-templates/serviceinfo/services.json +8 -8
- package/files/templates/ose-sdk-templates/appinfo/appinfo.json +10 -10
- package/files/templates/ose-sdk-templates/bootplate-web/index.html +88 -88
- package/files/templates/ose-sdk-templates/hosted-webapp/index.html +13 -13
- package/files/templates/ose-sdk-templates/js-service/helloclient.js +31 -31
- package/files/templates/ose-sdk-templates/js-service/helloworld_webos_service.js +188 -188
- package/files/templates/ose-sdk-templates/qml-app/main.qml +68 -68
- package/files/templates/ose-sdk-templates/qmlappinfo/appinfo.json +10 -10
- package/files/templates/ose-sdk-templates/serviceinfo/package.json +11 -11
- package/files/templates/ose-sdk-templates/serviceinfo/services.json +8 -8
- package/files/templates/signage-sdk-templates/Backlight_Scheduling/clockTable.js +29 -0
- package/files/templates/signage-sdk-templates/Backlight_Scheduling/index.html +53 -0
- package/files/templates/signage-sdk-templates/Backlight_Scheduling/js/idcap.js +21 -0
- package/files/templates/signage-sdk-templates/Backlight_Scheduling/remocon.js +214 -0
- package/files/templates/signage-sdk-templates/Backlight_Scheduling/scheduler.js +123 -0
- package/files/templates/signage-sdk-templates/Backlight_Scheduling/setanddelete.js +25 -0
- package/files/templates/signage-sdk-templates/Backlight_Scheduling/style.css +213 -0
- package/files/templates/signage-sdk-templates/Download_Progress/app.css +27 -0
- package/files/templates/signage-sdk-templates/Download_Progress/app.js +407 -0
- package/files/templates/signage-sdk-templates/Download_Progress/index.html +32 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova/2.7.0/cordova.webos.js +7038 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova/LICENSE +201 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.0/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.0/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.0/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.0/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.0/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.0/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.0/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.0/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.1/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.1/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.1/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.1/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.1/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.1/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.1/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.1/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.2/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.2/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.2/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.2/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.2/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.2/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.2/storage.js +23 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.2/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.3/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.3/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.3/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.3/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.3/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.3/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.3/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.3/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/configuration.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/deviceInfo.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/inputSource.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/power.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/security.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/signage.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/sound.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/storage.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/time.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/utility.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/video.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/configuration.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/deviceInfo.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/inputSource.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/power.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/security.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/signage.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/sound.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/storage.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/time.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/utility.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/video.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/configuration.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/deviceInfo.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/inputSource.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/power.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/security.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/signage.js +8 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/sound.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/storage.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/time.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/utility.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/video.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/configuration.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/deviceInfo.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/inputSource.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/power.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/security.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/signage.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/sound.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/storage.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/time.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/utility.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/video.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/led.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/led.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/iot.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/iot.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/iot.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/led.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/iot.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/led.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/iot.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/iot.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/custom/custom1.2.js +14 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/custom/custom1.3.1.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/custom/custom1.3.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/custom/custom1.4.js +14 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/README.txt +40 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/gpio.js +16 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/gps.js +16 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/humidity.js +16 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/light.js +16 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/nfc.js +16 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/rfid.js +16 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/temperature.js +16 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/thermalPrinter.js +16 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/idcap.js +21 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/webOS/LICENSE-2.0.txt +202 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/webOS/webOS.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/res/webossignage_logo.png +0 -0
- package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/css/styles.css +270 -0
- package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/data/data.json +12 -0
- package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/fonts/MuseoSans300.otf +0 -0
- package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/fonts/MuseoSans700Italic.otf +0 -0
- package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/index.html +43 -0
- package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/js/controller.js +263 -0
- package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/js/helpers/util.js +130 -0
- package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/readme.txt +26 -0
- package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/res/images/tpl_01_img_sign.png +0 -0
- package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/res/images/tpl_01_logo_nike.png +0 -0
- package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/res/videos/tpl_01_video.mp4 +0 -0
- package/files/templates/signage-sdk-templates/File_Explorer/README.txt +16 -0
- package/files/templates/signage-sdk-templates/File_Explorer/index.html +44 -0
- package/files/templates/signage-sdk-templates/File_Explorer/js/Root.js +48 -0
- package/files/templates/signage-sdk-templates/File_Explorer/js/definition.js +59 -0
- package/files/templates/signage-sdk-templates/File_Explorer/js/explorer.js +367 -0
- package/files/templates/signage-sdk-templates/File_Explorer/js/explorerController.js +462 -0
- package/files/templates/signage-sdk-templates/File_Explorer/js/idcap.js +21 -0
- package/files/templates/signage-sdk-templates/File_Explorer/js/mainController.js +261 -0
- package/files/templates/signage-sdk-templates/File_Explorer/style.css +233 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/appinfo.json +11 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/css/styles.css +168 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/data/data.json +5 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/fonts/MuseoSans300.otf +0 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/fonts/MuseoSans500.otf +0 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/fonts/MuseoSans700.otf +0 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/images/AAir.png +0 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/images/BAirline.png +0 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/images/CAirline.png +0 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/images/DAir.png +0 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/images/EAirline.png +0 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/images/tpl_05_img_flight.png +0 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/index.html +32 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/js/controller.js +235 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/js/helpers/util.js +183 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/readme.txt +29 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/server/example.json +4 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/server/package.json +9 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/server/readme.txt +30 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/server/routes/flights.js +493 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/server/server.js +43 -0
- package/files/templates/signage-sdk-templates/Information_Board/css/styles.css +239 -0
- package/files/templates/signage-sdk-templates/Information_Board/data/data.json +49 -0
- package/files/templates/signage-sdk-templates/Information_Board/fonts/Museo Sans 300.otf +0 -0
- package/files/templates/signage-sdk-templates/Information_Board/fonts/Museo Sans 500.otf +0 -0
- package/files/templates/signage-sdk-templates/Information_Board/fonts/Museo Sans 700.otf +0 -0
- package/files/templates/signage-sdk-templates/Information_Board/index.html +101 -0
- package/files/templates/signage-sdk-templates/Information_Board/js/controller.js +111 -0
- package/files/templates/signage-sdk-templates/Information_Board/js/helpers/util.js +130 -0
- package/files/templates/signage-sdk-templates/Information_Board/readme.txt +22 -0
- package/files/templates/signage-sdk-templates/Information_Board/res/images/tpl_06_img_main_01.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Board/res/images/tpl_06_img_news.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Board/res/images/tpl_06_logo_harvard.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/css/styles.css +387 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/data/data.json +185 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/fonts/Museo Sans 300 Italic.otf +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/fonts/Museo Sans 300.otf +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/fonts/Museo Sans 500 Italic.otf +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/fonts/Museo Sans 500.otf +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/fonts/Museo Sans 700 Italic.otf +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/fonts/Museo Sans 700.otf +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/index.html +320 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/js/controller.js +373 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/js/helpers/util.js +130 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/readme.txt +26 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_btn_arrow_l_n.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_btn_arrow_l_p.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_btn_arrow_r_n.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_btn_arrow_r_p.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_btn_close_n.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_btn_close_p.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_btn_rotation_n.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_btn_rotation_p.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_bg_01.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_01.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_02.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_03.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_04.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_05.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_06.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_07.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_08.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_09.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_10.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_11.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_12.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_3_01.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_3_02.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_3_03.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_3_04.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_3_05.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_3_06.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_01.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_02.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_03.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_04.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_05.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_06.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_07.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_08.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_09.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_10.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_11.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_12.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_style_01.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_style_02.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_logo.png +0 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/index.html +40 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova/2.7.0/cordova.webos.js +7038 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova/LICENSE +201 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.2/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.2/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.2/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.2/power.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.2/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.2/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.2/storage.js +23 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.2/video.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.3/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.3/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.3/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.3/power.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.3/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.3/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.3/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.3/video.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/power.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/security.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/time.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/video.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/power.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/security.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/time.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/video.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/led.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/power.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/security.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/time.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/video.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/iot.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/led.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/power.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/security.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/time.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/video.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/iot.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/power.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/security.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/time.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/video.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/custom1.4.js +14 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/idcap.js +21 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/initializer.js +234 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/remocon.js +73 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/scheduler.js +84 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/videoPlayer.js +352 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/remocon.png +0 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/style.css +99 -0
- package/files/templates/signage-sdk-templates/Mart/css/styles.css +248 -0
- package/files/templates/signage-sdk-templates/Mart/data/data.json +37 -0
- package/files/templates/signage-sdk-templates/Mart/fonts/Museo Sans 300 Italic.otf +0 -0
- package/files/templates/signage-sdk-templates/Mart/fonts/Museo Sans 300.otf +0 -0
- package/files/templates/signage-sdk-templates/Mart/fonts/Museo Sans 500.otf +0 -0
- package/files/templates/signage-sdk-templates/Mart/fonts/Museo Sans 700.otf +0 -0
- package/files/templates/signage-sdk-templates/Mart/index.html +81 -0
- package/files/templates/signage-sdk-templates/Mart/js/controller.js +102 -0
- package/files/templates/signage-sdk-templates/Mart/js/helpers/util.js +130 -0
- package/files/templates/signage-sdk-templates/Mart/readme.txt +26 -0
- package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_img.png +0 -0
- package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_img_bg.png +0 -0
- package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_img_brand.png +0 -0
- package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_img_list_01.png +0 -0
- package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_img_list_02.png +0 -0
- package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_img_list_03.png +0 -0
- package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_img_list_04.png +0 -0
- package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_img_tag.png +0 -0
- package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_logo.png +0 -0
- package/files/templates/signage-sdk-templates/Multimedia_Advertisement/css/styles.css +40 -0
- package/files/templates/signage-sdk-templates/Multimedia_Advertisement/data/data.json +6 -0
- package/files/templates/signage-sdk-templates/Multimedia_Advertisement/index.html +28 -0
- package/files/templates/signage-sdk-templates/Multimedia_Advertisement/js/controller.js +427 -0
- package/files/templates/signage-sdk-templates/Multimedia_Advertisement/js/helpers/util.js +134 -0
- package/files/templates/signage-sdk-templates/Multimedia_Advertisement/readme.txt +26 -0
- package/files/templates/signage-sdk-templates/Multimedia_Advertisement/res/images/tpl_02_img_poster.jpg +0 -0
- package/files/templates/signage-sdk-templates/Multimedia_Advertisement/res/videos/tpl_02_video_01.mp4 +0 -0
- package/files/templates/signage-sdk-templates/Multimedia_Advertisement/res/videos/tpl_02_video_02.mp4 +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/css/styles.css +163 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/data/data.json +92 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/fonts/MuseoSans300.otf +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/fonts/MuseoSans500.otf +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/fonts/MuseoSans700.otf +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/fonts/MuseoSans700Italic.otf +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/index.html +197 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/js/controller.js +158 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/js/helpers/util.js +130 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/readme.txt +26 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_bg_top.png +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_01.png +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_02.png +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_03.png +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_04.png +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_05.png +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_06.png +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_07.png +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_08.png +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_09.png +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_logo.png +0 -0
- package/files/templates/signage-sdk-templates/Simple_Network_FailOver/index.html +29 -0
- package/files/templates/signage-sdk-templates/Simple_Network_FailOver/js/idcap.js +21 -0
- package/files/templates/signage-sdk-templates/Simple_Network_FailOver/networkMonitor.js +136 -0
- package/files/templates/signage-sdk-templates/Simple_Network_FailOver/style.css +142 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/css/styles.css +281 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/data/data.json +33 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/fonts/Museo Sans 300 Italic.otf +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/fonts/Museo Sans 300.otf +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/fonts/Museo Sans 500 Italic.otf +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/fonts/Museo Sans 500.otf +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/fonts/Museo Sans 700 Italic.otf +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/fonts/Museo Sans 700.otf +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/index.html +110 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/js/controller.js +171 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/js/helpers/util.js +130 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/readme.txt +26 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_img_bg.png +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_img_coffe_01.png +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_img_coffe_01_l.png +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_img_coffe_02.png +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_img_coffe_03.png +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_img_coffe_04.png +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_img_coffe_05.png +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_logo_01.png +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_logo_02.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/css/styles.css +634 -0
- package/files/templates/signage-sdk-templates/Wayfinder/data/data.json +339 -0
- package/files/templates/signage-sdk-templates/Wayfinder/fonts/MuseoSans300.otf +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/fonts/MuseoSans500.otf +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/fonts/MuseoSans700.otf +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/fonts/MuseoSans700Italic.otf +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/index.html +171 -0
- package/files/templates/signage-sdk-templates/Wayfinder/js/controller.js +447 -0
- package/files/templates/signage-sdk-templates/Wayfinder/js/helpers/util.js +175 -0
- package/files/templates/signage-sdk-templates/Wayfinder/readme.txt +26 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_btn_back_n.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_icon_dot_n.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_icon_dot_s.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_01.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_02.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_03.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_all_01_d.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_all_01_n.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_all_02_d.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_all_02_n.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_all_03_d.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_all_03_n.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_all_shadow.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_home_01_n.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_home_02_n.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_home_03_n.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_point.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_point_shadow.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_list_icon_elevator.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_list_icon_escalator.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_list_icon_exit.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_list_icon_info.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_list_icon_parking.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_list_icon_toilet.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_logo_lg.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_logo_shoppingmall_name.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_logo_store.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_popup_bg.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/css/styles.css +136 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/data/data.json +33 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/fonts/Museo Sans 300.otf +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/fonts/Museo Sans 500.otf +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/fonts/Museo Sans 700.otf +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/index.html +51 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/js/controller.js +265 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/js/helpers/util.js +130 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/readme.txt +26 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/ajax.gif +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_icon_cloudy.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_icon_partlycloudy.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_icon_rainy.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_icon_snowy.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_icon_sunny.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_icon_thunder.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_icon_windy.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_img_01.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_img_02.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_img_03.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_img_04.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_img_05.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_img_06.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_img_07.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_logo.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/css/styles.css +312 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/data/data.json +16 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/data/newsWidget.json +21 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/data/shareWidget.json +112 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/data/weatherWidget.json +45 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/fonts/MuseoSans300.otf +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/fonts/MuseoSans500.otf +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/fonts/MuseoSans700.otf +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/index.html +62 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/js/controller.js +390 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/js/helpers/util.js +162 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/readme.txt +26 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/Namo.jpg +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/NotAvailable.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/clear.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/clouds.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/default.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/koreanFt.jpg +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/mist.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/rain.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/snow.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/thunder.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/tpl_07_icon_down_01.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/tpl_07_icon_down_02.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/tpl_07_icon_up_01.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/tpl_07_icon_up_02.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/tpl_07_img_news.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/tpl_07_img_news1.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/tpl_07_video_dim.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/videos/tpl_07_video.mp4 +0 -0
- package/files/templates/signage-sdk-templates/appinfo/appinfo.json +11 -0
- package/files/templates/signage-sdk-templates/idcap_api/1.1.0/js/idcap.js +21 -0
- package/files/templates/signage-sdk-templates/idcap_api/1.1.0/js/release_notes.txt +25 -0
- package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova/2.7.0/cordova.webos.js +7025 -0
- package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova/LICENSE +7025 -0
- package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova-cd/1.3/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova-cd/1.3/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova-cd/1.3/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova-cd/1.3/power.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova-cd/1.3/signage.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova-cd/1.3/sound.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova-cd/1.3/storage.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova-cd/1.3/video.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.3/js/release_notes.txt +109 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova/2.7.0/cordova.webos.js +7038 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova/LICENSE +201 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/power.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/security.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/signage.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/sound.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/storage.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/time.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/utility.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/video.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/all.css +358 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/fonts/mplus-1m-bold-webfont.eot +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/fonts/mplus-1m-bold-webfont.svg +134 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/fonts/mplus-1m-bold-webfont.ttf +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/fonts/mplus-1m-bold-webfont.woff +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/fonts/mplus-1m-regular-webfont.eot +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/fonts/mplus-1m-regular-webfont.svg +134 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/fonts/mplus-1m-regular-webfont.ttf +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/fonts/mplus-1m-regular-webfont.woff +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/handheld.css +217 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/screen.css +405 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/files.html +577 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/index.html +1203 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/intro.html +100 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/all.js +326 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/dessert.css +34 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-apollo.js +51 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-clj.js +64 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-css.js +78 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-go.js +58 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-hs.js +101 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-lisp.js +93 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-lua.js +59 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-ml.js +56 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-n.js +62 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-proto.js +35 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-scala.js +54 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-sql.js +57 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-tex.js +46 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-vb.js +61 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-vhdl.js +34 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-wiki.js +53 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-xq.js +67 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-yaml.js +27 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/prettify.css +52 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/prettify.js +1477 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/html5.js +6 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#clearCache.html +550 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getCurrentTime.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getLocaleList.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getOSDLanguage.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getOSDLock.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getPictureMode.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getPictureProperty.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getProperty.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getServerProperty.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getTimeZone.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getTimeZoneList.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getUSBLock.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getVirtualKeyboardLanguage.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#restartApplication.html +550 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setCurrentTime.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setOSDLanguage.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setOSDLock.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setPictureMode.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setPictureProperty.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setProperty.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setServerProperty.html +610 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setTimeZone.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setUSBLock.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setVirtualKeyboardLanguage.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration.AppMode.html +685 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration.AppType.html +640 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration.PictureMode.html +910 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#connectWifi.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getBeaconInfo.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getEddystoneInfo.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getNetworkInfo.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getNetworkMacInfo.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getPlatformInfo.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getProxyInfo.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getSoftApInfo.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getSystemUsageInfo.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getWifiList.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getiBeaconInfo.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#setBeaconInfo.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#setEddystoneInfo.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#setNetworkInfo.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#setProxyInfo.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#setSoftApInfo.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#setiBeaconInfo.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#startWps.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#stopWps.html +555 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo.EddystoneFrame.html +640 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Error.ERROR_CODE.html +820 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Error.html +460 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/InputSource#changeInputSource.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/InputSource#getInputSourceStatus.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/InputSource#initialize.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#addOffTimer.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#addOnTimer.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#deleteOffTimer.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#deleteOnTimer.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#enableAllOffTimer.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#enableAllOnTimer.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#enableWakeOnLan.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#executePowerCommand.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#getDPMWakeup.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#getOffTimerList.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#getOnTimerList.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#getPMMode.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#getPowerOnDelay.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#getPowerStatus.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#setDPMWakeup.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#setDisplayMode.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#setPMMode.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#setPowerOnDelay.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power.DPMSignalType.html +640 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power.DisplayMode.html +640 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power.PMMode.html +775 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power.PowerCommand.html +640 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power.TimerWeek.html +910 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Security#existServerCertificate.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Security#registerServerCertificate.html +561 -2
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Security#unregisterServerCertificate.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#captureScreen.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#enableCheckScreen.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getFailoverMode.html +555 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getIntelligentAuto.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getLanDaisyChain.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getPowerSaveMode.html +555 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getSignageInfo.html +555 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getStudioMode.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getSystemMonitoringInfo.html +555 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getTileInfo.html +555 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getUsageData.html +555 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getUsagePermission.html +555 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#registerSystemMonitor.html +573 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setDigitalAudioInputMode.html +567 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setFailoverMode.html +567 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setIntelligentAuto.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setIsmMethod.html +567 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setLanDaisyChain.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setPortraitMode.html +567 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setPowerSaveMode.html +567 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setStudioMode.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setTileInfo.html +567 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setUsagePermission.html +567 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#unregisterSystemMonitor.html +555 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.AutomaticStandbyMode.html +640 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.DigitalAudioInput.html +640 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.DpmMode.html +910 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.EventType.html +775 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.FailoverMode.html +685 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.ImgResolution.html +640 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.IsmMethod.html +910 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.KeyOperationMode.html +685 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.MonitoringSource.html +775 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.OsdPortraitMode.html +640 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound#getSoundMode.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound#getSoundOut.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound#getSoundStatus.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound#setExternalSpeaker.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound#setMuted.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound#setSoundMode.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound#setSoundOut.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound#setVolumeLevel.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound.SoundMode.html +820 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound.SpeakerType.html +640 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#changeLogoImage.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#copyFile.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#downloadFirmware.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#exists.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#fsync.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#getFirmwareUpgradeStatus.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#getStorageInfo.html +555 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#listFiles.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#mkdir.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#moveFile.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#readFile.html +563 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#removeAll.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#removeApplication.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#removeFile.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#statFile.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#unzipFile.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#upgradeApplication.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#upgradeFirmware.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#writeFile.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage.AppMode.html +640 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage.AppType.html +640 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage.SCAP_URI.html +512 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Time#addHolidaySchedule.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Time#delAllHolidaySchedules.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Time#delHolidaySchedule.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Time#getAllHolidaySchedules.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Time#getHolidayScheduleMode.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Time#setHolidayScheduleMode.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Utility#createToast.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Video#getContentRotation.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Video#getVideoStatus.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Video#setContentRotation.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Video#setRotatedVideoTransform.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Video#setVideoSize.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Video#setVideoViewTransform.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/_global_.html +453 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/image/media_status.jpg +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/image/setVideoSize.png +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_configuration.js.html +2651 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_deviceInfo.js.html +1860 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_inputSource.js.html +1382 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_power.js.html +2697 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_security.js.html +357 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_signage.js.html +3601 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_sound.js.html +1123 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_storage.js.html +2615 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_time.js.html +720 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_utility.js.html +196 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_video.js.html +1090 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/release_notes.txt +148 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova/2.7.0/cordova.webos.js +7038 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova/LICENSE +201 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/power.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/security.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/signage.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/sound.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/storage.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/time.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/utility.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/video.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/all.css +358 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/fonts/mplus-1m-bold-webfont.eot +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/fonts/mplus-1m-bold-webfont.svg +134 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/fonts/mplus-1m-bold-webfont.ttf +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/fonts/mplus-1m-bold-webfont.woff +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/fonts/mplus-1m-regular-webfont.eot +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/fonts/mplus-1m-regular-webfont.svg +134 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/fonts/mplus-1m-regular-webfont.ttf +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/fonts/mplus-1m-regular-webfont.woff +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/handheld.css +217 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/screen.css +405 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/files.html +599 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/index.html +1280 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/intro.html +100 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/all.js +326 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/dessert.css +34 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-apollo.js +51 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-clj.js +64 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-css.js +78 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-go.js +58 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-hs.js +101 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-lisp.js +93 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-lua.js +59 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-ml.js +56 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-n.js +62 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-proto.js +35 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-scala.js +54 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-sql.js +57 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-tex.js +46 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-vb.js +61 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-vhdl.js +34 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-wiki.js +53 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-xq.js +67 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-yaml.js +27 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/prettify.css +52 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/prettify.js +1477 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/html5.js +6 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#clearCache.html +572 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getCurrentTime.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getLocaleList.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getOSDLanguage.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getOSDLock.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getPictureMode.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getPictureProperty.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getProperty.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getServerProperty.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getTimeZone.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getTimeZoneList.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getUSBLock.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getVirtualKeyboardLanguage.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#restartApplication.html +572 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setCurrentTime.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setOSDLanguage.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setOSDLock.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setPictureMode.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setPictureProperty.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setProperty.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setServerProperty.html +632 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setTimeZone.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setUSBLock.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setVirtualKeyboardLanguage.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration.AppMode.html +707 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration.AppType.html +662 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration.PictureMode.html +932 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#connectWifi.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getBeaconInfo.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getEddystoneInfo.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getExternalInputList.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getNetworkInfo.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getNetworkMacInfo.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getPlatformInfo.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getProxyInfo.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getSoftApInfo.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getSystemUsageInfo.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getWifiList.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getiBeaconInfo.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#setBeaconInfo.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#setEddystoneInfo.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#setNetworkInfo.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#setProxyInfo.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#setSoftApInfo.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#setiBeaconInfo.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#startWps.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#stopWps.html +577 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo.EddystoneFrame.html +662 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Error.ERROR_CODE.html +842 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Error.html +482 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/InputSource#changeInputSource.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/InputSource#getInputSourceStatus.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/InputSource#initialize.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#addOffTimer.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#addOnTimer.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#deleteOffTimer.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#deleteOnTimer.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#enableAllOffTimer.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#enableAllOnTimer.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#enableWakeOnLan.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#executePowerCommand.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#getDPMWakeup.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#getOffTimerList.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#getOnOffTimeSchedule.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#getOnTimerList.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#getPMMode.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#getPowerOnDelay.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#getPowerStatus.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#setDPMWakeup.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#setDisplayMode.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#setOnOffTimeSchedule.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#setPMMode.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#setPowerOnDelay.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#unsetOnOffTimeSchedule.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power.DPMSignalType.html +662 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power.DisplayMode.html +662 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power.PMMode.html +797 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power.PowerCommand.html +662 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power.TimerWeek.html +932 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Security#existServerCertificate.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Security#registerServerCertificate.html +583 -2
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Security#unregisterServerCertificate.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#captureScreen.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#enableCheckScreen.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getFailoverMode.html +577 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getIntelligentAuto.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getLanDaisyChain.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getPowerSaveMode.html +577 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getSignageInfo.html +577 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getStudioMode.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getSystemMonitoringInfo.html +577 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getTileInfo.html +577 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getUsageData.html +577 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getUsagePermission.html +577 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#registerRS232CEventListener.html +594 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#registerSystemMonitor.html +595 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setDigitalAudioInputMode.html +589 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setFailoverMode.html +589 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setIntelligentAuto.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setIsmMethod.html +589 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setLanDaisyChain.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setPortraitMode.html +589 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setPowerSaveMode.html +589 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setStudioMode.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setTileInfo.html +589 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setUsagePermission.html +589 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#unregisterRS232CEventListener.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#unregisterSystemMonitor.html +577 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.AutomaticStandbyMode.html +662 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.DigitalAudioInput.html +662 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.DpmMode.html +932 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.EventType.html +797 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.FailoverMode.html +707 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.ImgResolution.html +662 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.IsmMethod.html +932 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.KeyOperationMode.html +707 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.MonitoringSource.html +797 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.OsdPortraitMode.html +662 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound#getSoundMode.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound#getSoundOut.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound#getSoundStatus.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound#setExternalSpeaker.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound#setMuted.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound#setSoundMode.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound#setSoundOut.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound#setVolumeLevel.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound.SoundMode.html +842 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound.SpeakerType.html +662 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#changeLogoImage.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#copyFile.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#decryptFile.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#downloadFirmware.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#exists.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#fsync.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#getFirmwareUpgradeStatus.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#getMD5Hash.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#getStorageInfo.html +577 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#listFiles.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#mkdir.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#moveFile.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#readFile.html +585 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#removeAll.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#removeApplication.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#removeFile.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#statFile.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#unzipFile.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#upgradeApplication.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#upgradeFirmware.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#writeFile.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage.AppMode.html +662 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage.AppType.html +662 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage.SCAP_URI.html +534 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#addHolidaySchedule.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#delAllHolidaySchedules.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#delHolidaySchedule.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#getAllHolidaySchedules.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#getHolidaySchedule.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#getHolidayScheduleMode.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#setHolidaySchedule.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#setHolidayScheduleMode.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#unsetHolidaySchedule.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Utility#createToast.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Video#getContentRotation.html +586 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Video#getVideoStatus.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Video#setContentRotation.html +592 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Video#setRotatedVideoTransform.html +592 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Video#setVideoSize.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Video#setVideoViewTransform.html +592 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/_global_.html +475 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/image/media_status.jpg +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/image/setVideoSize.png +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_configuration.js.html +2651 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_deviceInfo.js.html +1930 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_inputSource.js.html +1383 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_power.js.html +2942 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_security.js.html +352 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_signage.js.html +3853 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_sound.js.html +1123 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_storage.js.html +2747 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_time.js.html +976 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_utility.js.html +196 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_video.js.html +754 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/release_notes.txt +148 -0
- package/files/templates/signage-sdk-templates/serviceinfo/package.json +11 -0
- package/files/templates/signage-sdk-templates/serviceinfo/services.json +8 -0
- package/files/templates/signage-sdk-templates/signageicon/icon.png +0 -0
- package/files/templates/signage-sdk-templates/signageicon/largeIcon.png +0 -0
- package/files/templates/signage-sdk-templates/webos-service/helloclient.js +23 -0
- package/files/templates/signage-sdk-templates/webos-service/helloworld_webos_service.js +128 -0
- package/files/templates/tv-sdk-templates/appinfo/appinfo.json +10 -10
- package/files/templates/tv-sdk-templates/bootplate-web/index.html +58 -58
- package/files/templates/tv-sdk-templates/bootplate-web/webOSTVjs-1.2.10/LICENSE-2.0.txt +202 -202
- package/files/templates/tv-sdk-templates/hosted-webapp/index.html +14 -14
- package/files/templates/tv-sdk-templates/js-service/helloworld_service.js +39 -39
- package/files/templates/tv-sdk-templates/packageinfo/packageinfo.json +3 -3
- package/files/templates/tv-sdk-templates/serviceinfo/package.json +11 -11
- package/files/templates/tv-sdk-templates/serviceinfo/services.json +8 -8
- package/lib/base/ares.html +40 -40
- package/lib/base/cli-appdata.js +289 -290
- package/lib/base/cli-control.js +44 -44
- package/lib/base/common-tools.js +29 -29
- package/lib/base/error-handler.js +265 -265
- package/lib/base/file-watcher.js +155 -155
- package/lib/base/help-format.js +147 -147
- package/lib/base/luna.js +178 -178
- package/lib/base/novacom.js +1214 -1202
- package/lib/base/sdkenv.js +59 -59
- package/lib/base/server.js +137 -137
- package/lib/base/setup-device.js +26 -8
- package/lib/base/version-tools.js +79 -79
- package/lib/com.sdk.ares.signage.hostedapp.ipk +0 -0
- package/lib/device.js +1419 -1419
- package/lib/generator.js +1 -1
- package/lib/inspect.js +493 -493
- package/lib/install.js +465 -463
- package/lib/launch.js +607 -605
- package/lib/log.js +584 -584
- package/lib/package.js +2253 -2149
- package/lib/pull.js +231 -231
- package/lib/pusher.js +210 -210
- package/lib/session.js +74 -74
- package/lib/shell.js +193 -193
- package/lib/tar-filter-pack.js +62 -62
- package/lib/util/copy.js +31 -31
- package/lib/util/createFileName.js +40 -40
- package/lib/util/eof.js +30 -30
- package/lib/util/json.js +63 -63
- package/lib/util/merge.js +14 -14
- package/lib/util/objclone.js +40 -40
- package/lib/util/spinner.js +37 -37
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/scripts/postinstall.js +24 -24
- package/spec/helpers/reporter.js +65 -65
- package/spec/jsSpecs/apiTest/generator.spec.js +372 -372
- package/spec/jsSpecs/apiTest/inspector.spec.js +89 -89
- package/spec/jsSpecs/apiTest/installer.spec.js +67 -67
- package/spec/jsSpecs/apiTest/launcher.spec.js +150 -150
- package/spec/jsSpecs/apiTest/packager.spec.js +194 -194
- package/spec/jsSpecs/apiTest/puller.spec.js +101 -101
- package/spec/jsSpecs/apiTest/pusher.spec.js +103 -103
- package/spec/jsSpecs/apiTest/server.spec.js +115 -115
- package/spec/jsSpecs/apiTest/setupDevice.spec.js +93 -93
- package/spec/jsSpecs/apiTest/shell.spec.js +49 -49
- package/spec/jsSpecs/ares-config.spec.js +88 -88
- package/spec/jsSpecs/ares-device.spec.js +443 -443
- package/spec/jsSpecs/ares-generate.spec.js +401 -397
- package/spec/jsSpecs/ares-inspect.spec.js +252 -252
- package/spec/jsSpecs/ares-install.spec.js +150 -150
- package/spec/jsSpecs/ares-launch.spec.js +303 -301
- package/spec/jsSpecs/ares-log.spec.js +824 -824
- package/spec/jsSpecs/ares-novacom.spec.js +149 -149
- package/spec/jsSpecs/ares-package.spec.js +1277 -1211
- package/spec/jsSpecs/ares-pull.spec.js +157 -157
- package/spec/jsSpecs/ares-push.spec.js +146 -146
- package/spec/jsSpecs/ares-server.spec.js +160 -160
- package/spec/jsSpecs/ares-setup-device.spec.js +299 -300
- package/spec/jsSpecs/ares-shell.spec.js +220 -220
- package/spec/jsSpecs/ares.spec.js +83 -83
- package/spec/jsSpecs/common-spec.js +177 -169
- package/spec/support/jasmine.json +22 -22
- package/spec/tempFiles/com.lg.app.signage.dev_0.0.1_all.ipk +0 -0
- package/spec/tempFiles/nativeApp/auto/pkg_arm64/appinfo.json +9 -9
- package/spec/tempFiles/nativeApp/ose/pkg_arm/appinfo.json +8 -8
- package/spec/tempFiles/nativeApp/ose/pkg_arm/package.properties +2 -2
- package/spec/tempFiles/nativeApp/oseEmul/pkg_x86/appinfo.json +9 -9
- package/spec/tempFiles/nativeApp/rsi/pkg_x86/appinfo.json +9 -9
- package/spec/tempFiles/sign/sign.crt +32 -32
- package/spec/tempFiles/sign/signPriv.key +52 -52
- package/spec/test_data/ares-generate.json +91 -58
- package/spec/test_data/ares.json +50 -50
- package/webos-tools-cli-3.2.0.tgz +0 -0
- package/webos-tools-cli-3.1.3.tgz +0 -0
package/lib/base/novacom.js
CHANGED
|
@@ -1,1202 +1,1214 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2020-2024 LG Electronics Inc.
|
|
3
|
-
*
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
const async = require('async'),
|
|
8
|
-
chalk = require('chalk'),
|
|
9
|
-
fs = require('fs'),
|
|
10
|
-
mkdirp = require('mkdirp'),
|
|
11
|
-
net = require('net'),
|
|
12
|
-
log = require('npmlog'),
|
|
13
|
-
path = require('path'),
|
|
14
|
-
request = require('request'),
|
|
15
|
-
shelljs = require('shelljs'),
|
|
16
|
-
Ssh2 = require('ssh2'),
|
|
17
|
-
stream = require('stream'),
|
|
18
|
-
util = require('util'),
|
|
19
|
-
Appdata = require('./cli-appdata'),
|
|
20
|
-
errHndl = require('./error-handler'),
|
|
21
|
-
server = require('./server');
|
|
22
|
-
|
|
23
|
-
// novacom emulation layer, on top of ssh
|
|
24
|
-
(function() {
|
|
25
|
-
const novacom = {};
|
|
26
|
-
|
|
27
|
-
log.heading = 'novacom';
|
|
28
|
-
log.level = 'warn';
|
|
29
|
-
novacom.log = log;
|
|
30
|
-
|
|
31
|
-
const keydir = path.resolve(process.env.HOME || process.env.USERPROFILE, '.ssh');
|
|
32
|
-
let cliData;
|
|
33
|
-
|
|
34
|
-
function makeExecError(cmd, code, signal, orgErrMsg) {
|
|
35
|
-
let err = null; // null:success, undefined:did-not-run, Error:failure
|
|
36
|
-
|
|
37
|
-
if (orgErrMsg) {
|
|
38
|
-
orgErrMsg = "\n(Original Message: " + orgErrMsg.replace(/\u001b[^m]*?m/g,"").trim() + ")";
|
|
39
|
-
} else {
|
|
40
|
-
orgErrMsg = "";
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
if (signal) {
|
|
44
|
-
signal = " (signal: " + signal + ")";
|
|
45
|
-
} else {
|
|
46
|
-
signal = "";
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
if (code !== 0 || signal) {
|
|
50
|
-
err = new Error();
|
|
51
|
-
err.message = "Command '" + cmd + "' exited with code=" + code + signal + orgErrMsg;
|
|
52
|
-
err.code = code;
|
|
53
|
-
|
|
54
|
-
return errHndl.getErrMsg(err);
|
|
55
|
-
}
|
|
56
|
-
return err;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
novacom.Resolver = Resolver;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* @constructor
|
|
63
|
-
*/
|
|
64
|
-
function Resolver() {
|
|
65
|
-
/**
|
|
66
|
-
* @property devices
|
|
67
|
-
* This list use to be maintained by novacomd
|
|
68
|
-
*/
|
|
69
|
-
this.devices = [];
|
|
70
|
-
this.deviceFileContent = null;
|
|
71
|
-
cliData = new Appdata();
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
novacom.Resolver.prototype = {
|
|
75
|
-
/**
|
|
76
|
-
* Load the resolver DB from the filesystem
|
|
77
|
-
* @param {Function} next a common-JS callback invoked when the DB is ready to use.
|
|
78
|
-
*/
|
|
79
|
-
load: function(next) {
|
|
80
|
-
log.info("novacom#Resolver()#load()");
|
|
81
|
-
const resolver = this;
|
|
82
|
-
|
|
83
|
-
async.waterfall([
|
|
84
|
-
_replaceBuiltinSshKey.bind(resolver),
|
|
85
|
-
_adjustList.bind(resolver),
|
|
86
|
-
_loadString.bind(resolver)
|
|
87
|
-
], function(err) {
|
|
88
|
-
if (err) {
|
|
89
|
-
setImmediate(next, err);
|
|
90
|
-
} else {
|
|
91
|
-
log.silly("novacom#Resolver()#load()", "devices:", resolver.devices);
|
|
92
|
-
setImmediate(next);
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
|
|
96
|
-
function _replaceBuiltinSshKey(next) {
|
|
97
|
-
log.silly("novacom#Resolver()#load()#_replaceBuiltinSshKey()");
|
|
98
|
-
const builtinPrvKeyForEmul = path.join(__dirname, "../../files/conf/", 'webos_emul'),
|
|
99
|
-
userHomePrvKeyForEmul = path.join(keydir, 'webos_emul');
|
|
100
|
-
|
|
101
|
-
fs.stat(builtinPrvKeyForEmul, function(err, builtinKeyStat) {
|
|
102
|
-
if (err) {
|
|
103
|
-
if (err.code === 'ENOENT') {
|
|
104
|
-
setImmediate(next);
|
|
105
|
-
} else {
|
|
106
|
-
setImmediate(next, err);
|
|
107
|
-
}
|
|
108
|
-
} else {
|
|
109
|
-
fs.stat(userHomePrvKeyForEmul, function(error, userKeyStat) {
|
|
110
|
-
if (error) {
|
|
111
|
-
if (error.code === 'ENOENT') {
|
|
112
|
-
mkdirp(keydir, function() {
|
|
113
|
-
shelljs.cp('-rf', builtinPrvKeyForEmul, keydir);
|
|
114
|
-
fs.chmodSync(userHomePrvKeyForEmul, '0600');
|
|
115
|
-
setImmediate(next);
|
|
116
|
-
});
|
|
117
|
-
} else {
|
|
118
|
-
setImmediate(next, error);
|
|
119
|
-
}
|
|
120
|
-
} else {
|
|
121
|
-
if (builtinKeyStat.mtime.getTime() > userKeyStat.mtime.getTime()) {
|
|
122
|
-
shelljs.cp('-rf', builtinPrvKeyForEmul, keydir);
|
|
123
|
-
fs.chmodSync(userHomePrvKeyForEmul, '0600');
|
|
124
|
-
}
|
|
125
|
-
setImmediate(next);
|
|
126
|
-
}
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
/*
|
|
133
|
-
* Add "default" field to list files
|
|
134
|
-
* Set "emulator" to default target
|
|
135
|
-
*/
|
|
136
|
-
function _adjustList(next) {
|
|
137
|
-
const defaultTarget = "emulator";
|
|
138
|
-
let inDevices = cliData.getDeviceList(true);
|
|
139
|
-
|
|
140
|
-
// count targes does not have "default field"
|
|
141
|
-
const defaultFields = inDevices.filter(function(device) {
|
|
142
|
-
return (device.default !== undefined);
|
|
143
|
-
});
|
|
144
|
-
if (defaultFields.length < 1) {
|
|
145
|
-
log.silly("novacom#Resolver()#load()#_adjustList()", "rewrite default field");
|
|
146
|
-
inDevices = inDevices.map(function(dev) {
|
|
147
|
-
if (defaultTarget === dev.name) {
|
|
148
|
-
dev.default = true;
|
|
149
|
-
} else {
|
|
150
|
-
dev.default = false;
|
|
151
|
-
}
|
|
152
|
-
return dev;
|
|
153
|
-
});
|
|
154
|
-
this.save(inDevices);
|
|
155
|
-
}
|
|
156
|
-
setImmediate(next);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
/*
|
|
160
|
-
* Load devices described in the given string
|
|
161
|
-
* (supposed to be a JSON Array).
|
|
162
|
-
*/
|
|
163
|
-
function _loadString(next) {
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
if (!Array.isArray(inDevices)) {
|
|
167
|
-
setImmediate(next, errHndl.getErrMsg("INVALID_FILE"));
|
|
168
|
-
return;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
async.forEach(inDevices, function(inDevice, next) {
|
|
172
|
-
async.series([
|
|
173
|
-
resolver._loadOne.bind(resolver, inDevice),
|
|
174
|
-
resolver._addOne.bind(resolver, inDevice)
|
|
175
|
-
], next);
|
|
176
|
-
}, function(err) {
|
|
177
|
-
if (err) {
|
|
178
|
-
setImmediate(next, err);
|
|
179
|
-
} else {
|
|
180
|
-
setImmediate(next);
|
|
181
|
-
}
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
},
|
|
185
|
-
|
|
186
|
-
/*
|
|
187
|
-
* Resolve the SSH private key of the given device
|
|
188
|
-
* into a usable string. Prefer already fetch keys,
|
|
189
|
-
* then manually-configured OpenSSH one & finally
|
|
190
|
-
* fetch it from a distant device (webOS Pro only).
|
|
191
|
-
*/
|
|
192
|
-
_loadOne: function(inDevice, next) {
|
|
193
|
-
if (typeof inDevice.privateKey === 'string') {
|
|
194
|
-
inDevice.privateKeyName = inDevice.privateKey;
|
|
195
|
-
inDevice.privateKey = Buffer.from(inDevice.privateKey, 'base64');
|
|
196
|
-
setImmediate(next);
|
|
197
|
-
} else if (typeof inDevice.privateKey === 'object' && typeof inDevice.privateKey.openSsh === 'string') {
|
|
198
|
-
inDevice.privateKeyName = inDevice.privateKey.openSsh;
|
|
199
|
-
async.waterfall([
|
|
200
|
-
fs.readFile.bind(this, path.join(keydir, inDevice.privateKey.openSsh), next),
|
|
201
|
-
function(privateKey, next) {
|
|
202
|
-
inDevice.privateKey = privateKey;
|
|
203
|
-
setImmediate(next);
|
|
204
|
-
}
|
|
205
|
-
], function(err) {
|
|
206
|
-
// do not load non-existing OpenSSH private key files
|
|
207
|
-
if (err) {
|
|
208
|
-
log.verbose("novacom#Resolver()#_loadOne()", "Unable to find SSH private key named '" +
|
|
209
|
-
inDevice.privateKey.openSsh + "' from '" + keydir + " for '" + inDevice.name + "'");
|
|
210
|
-
inDevice.privateKey = undefined;
|
|
211
|
-
}
|
|
212
|
-
setImmediate(next);
|
|
213
|
-
});
|
|
214
|
-
} else if (inDevice.type !== undefined && inDevice.type === 'webospro') {
|
|
215
|
-
// FIXME: here is the place to stream-down the SSH private key from the device
|
|
216
|
-
setImmediate(next, errHndl.getErrMsg("NOT_IMPLEMENTED", "webOS Pro device type handling"));
|
|
217
|
-
} else { // private Key is not defined in novacom-device.json
|
|
218
|
-
if (!inDevice.password) {
|
|
219
|
-
log.silly("novacom#Resolver()#_loadOne()", "Regist privateKey : need to set a SSH private key in " +
|
|
220
|
-
keydir + " for'" + inDevice.name + "'");
|
|
221
|
-
}
|
|
222
|
-
inDevice.privateKeyName = undefined;
|
|
223
|
-
inDevice.privateKey = undefined;
|
|
224
|
-
setImmediate(next);
|
|
225
|
-
}
|
|
226
|
-
},
|
|
227
|
-
|
|
228
|
-
/*
|
|
229
|
-
* Add given inDevice to the Resolver DB, overwritting
|
|
230
|
-
* any existing one with the same "name:" is needed.
|
|
231
|
-
*/
|
|
232
|
-
_addOne: function(inDevice, next) {
|
|
233
|
-
// add the current profile device only
|
|
234
|
-
if (!inDevice.profile || !cliData.compareProfileSync(inDevice.profile)) {
|
|
235
|
-
return setImmediate(next);
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
inDevice.display = {
|
|
239
|
-
name: inDevice.name,
|
|
240
|
-
type: inDevice.type,
|
|
241
|
-
privateKeyName: inDevice.privateKeyName,
|
|
242
|
-
passphrase: inDevice.passphrase,
|
|
243
|
-
description: inDevice.description,
|
|
244
|
-
conn: inDevice.conn || ['ssh'],
|
|
245
|
-
devId: inDevice.id || null
|
|
246
|
-
};
|
|
247
|
-
|
|
248
|
-
if (inDevice.username && inDevice.host && inDevice.port) {
|
|
249
|
-
inDevice.display.addr = "ssh://" + inDevice.username + "@" + inDevice.host + ":" + inDevice.port;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
for (const n in inDevice) {
|
|
253
|
-
if (n !== "display") {
|
|
254
|
-
inDevice.display[n] = inDevice[n];
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
// filter-out `this.devices` from the one having the same name as `inDevice`...
|
|
259
|
-
this.devices = this.devices.filter(function(device) {
|
|
260
|
-
return device.name !== inDevice.name;
|
|
261
|
-
});
|
|
262
|
-
|
|
263
|
-
// ...hook proper luna interface
|
|
264
|
-
const systemCmd = cliData.getCommandService();
|
|
265
|
-
inDevice.lunaSend = systemCmd.lunaSend;
|
|
266
|
-
inDevice.lunaAddr = systemCmd.lunaAddr;
|
|
267
|
-
|
|
268
|
-
// ...and then append `inDevice`
|
|
269
|
-
this.devices.push(inDevice);
|
|
270
|
-
setImmediate(next);
|
|
271
|
-
},
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
/**
|
|
275
|
-
* @public
|
|
276
|
-
*/
|
|
277
|
-
save: function(devicesData, next) {
|
|
278
|
-
log.info("novacom#Resolver()#save()");
|
|
279
|
-
return cliData.setDeviceList(devicesData, next);
|
|
280
|
-
},
|
|
281
|
-
|
|
282
|
-
/**
|
|
283
|
-
* @public
|
|
284
|
-
*/
|
|
285
|
-
list: function(next) {
|
|
286
|
-
log.info("novacom#Resolver()#list()");
|
|
287
|
-
setImmediate(next, null, this.devices.map(function(device) {
|
|
288
|
-
return device.display;
|
|
289
|
-
}));
|
|
290
|
-
},
|
|
291
|
-
|
|
292
|
-
setTargetName: function(target, printTarget, next) {
|
|
293
|
-
let name = (typeof target === 'string' ? target : target && target.name);
|
|
294
|
-
if (!name) {
|
|
295
|
-
const usbDevices = this.devices.filter(function(device) {
|
|
296
|
-
return (device.conn && device.conn.indexOf("novacom") !== -1);
|
|
297
|
-
});
|
|
298
|
-
|
|
299
|
-
if (usbDevices.length > 1) {
|
|
300
|
-
return next(errHndl.getErrMsg("CONNECTED_MULTI_DEVICE"));
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
// default target priority
|
|
304
|
-
// specified target name > target connected by novacom > user setting > emulator
|
|
305
|
-
if (usbDevices.length > 0 && usbDevices[0].name) {
|
|
306
|
-
name = usbDevices[0].name;
|
|
307
|
-
} else {
|
|
308
|
-
const defaultTargets = this.devices.filter(function(device) {
|
|
309
|
-
return (device.default && device.default === true);
|
|
310
|
-
});
|
|
311
|
-
|
|
312
|
-
if (defaultTargets.length > 1) {
|
|
313
|
-
return next(errHndl.getErrMsg("SET_DEFAULT_MULTI_DEVICE"));
|
|
314
|
-
} else if (defaultTargets.length === 1) {
|
|
315
|
-
name = defaultTargets[0].name;
|
|
316
|
-
} else {
|
|
317
|
-
// if cannot find default target in list, set to "emulator"
|
|
318
|
-
name = "emulator";
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
if (printTarget) {
|
|
323
|
-
console.log(chalk.green("[Info] Set target device : " + name));
|
|
324
|
-
}
|
|
325
|
-
next(null, 'name', name);
|
|
326
|
-
},
|
|
327
|
-
|
|
328
|
-
getDeviceBy: function(key, value, next) {
|
|
329
|
-
log.info("novacom#Resolver()#getDeviceBy()", "key:", key, ", value:", value);
|
|
330
|
-
const devices = this.devices.filter(function(device) {
|
|
331
|
-
return device[key] && device[key] === value;
|
|
332
|
-
});
|
|
333
|
-
|
|
334
|
-
if (devices.length < 1) {
|
|
335
|
-
setImmediate(next, errHndl.getErrMsg("UNMATCHED_DEVICE", key, value));
|
|
336
|
-
} else if (typeof next === 'function') {
|
|
337
|
-
setImmediate(next, null, devices[0]);
|
|
338
|
-
} else {
|
|
339
|
-
return devices[0];
|
|
340
|
-
}
|
|
341
|
-
},
|
|
342
|
-
|
|
343
|
-
getSshPrvKey: function(target, next) {
|
|
344
|
-
let name = (typeof target === 'string' ? target : target && target.name);
|
|
345
|
-
if (!name) {
|
|
346
|
-
// if name is not specified, find default target
|
|
347
|
-
const defaultTargets = this.devices.filter(function(device) {
|
|
348
|
-
return (device.default && device.default === true);
|
|
349
|
-
});
|
|
350
|
-
if (defaultTargets.length > 1) {
|
|
351
|
-
return next(errHndl.getErrMsg("SET_DEFAULT_MULTI_DEVICE"));
|
|
352
|
-
} else if (defaultTargets.length === 1) {
|
|
353
|
-
name = defaultTargets[0].name;
|
|
354
|
-
} else {
|
|
355
|
-
// if cannot find default target in list, set to "emulator"
|
|
356
|
-
name = "emulator";
|
|
357
|
-
}
|
|
358
|
-
// assign target name
|
|
359
|
-
if (typeof target === 'string') {
|
|
360
|
-
target = name;
|
|
361
|
-
} else if (typeof target === 'object') {
|
|
362
|
-
target.name = name;
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
async.waterfall([
|
|
367
|
-
this.getDeviceBy.bind(this, 'name', name),
|
|
368
|
-
function(targetDevice, next) {
|
|
369
|
-
log.info("Resolver#getSshPrvKey()", "targetDevice.host:", targetDevice.host);
|
|
370
|
-
const url = 'http://' + targetDevice.host + ':9991' + '/webos_rsa';
|
|
371
|
-
const keyFileNamePrefix = targetDevice.name.replace(/(\s+)/gi, '_');
|
|
372
|
-
const keyFileName = keyFileNamePrefix + "_webos";
|
|
373
|
-
const keySavePath = path.join(keydir, keyFileName);
|
|
374
|
-
request.head(url, function(err, res) {
|
|
375
|
-
if (err || (res && res.statusCode !== 200)) {
|
|
376
|
-
return setImmediate(next, errHndl.getErrMsg("FAILED_GET_SSHKEY"));
|
|
377
|
-
}
|
|
378
|
-
log.info("Resolver#getSshPrvKey()#head", "content-type:", res.headers['content-type']);
|
|
379
|
-
log.info("Resolver#getSshPrvKey()#head", "content-length:", res.headers['content-length']);
|
|
380
|
-
request(url).pipe(fs.createWriteStream(keySavePath)).on('close', function(error) {
|
|
381
|
-
if (error) {
|
|
382
|
-
return setImmediate(next, errHndl.getErrMsg("FAILED_GET_SSHKEY"));
|
|
383
|
-
} else {
|
|
384
|
-
setImmediate(next, error, keySavePath, keyFileName);
|
|
385
|
-
}
|
|
386
|
-
});
|
|
387
|
-
});
|
|
388
|
-
},
|
|
389
|
-
function(keyFilePath, keyFileName, next) {
|
|
390
|
-
log.info("Resolver#getSshPrvKey()", "SSH Private Key:", keyFilePath);
|
|
391
|
-
console.log("SSH Private Key:", keyFilePath);
|
|
392
|
-
fs.chmodSync(keyFilePath, '0600');
|
|
393
|
-
setImmediate(next, null, keyFileName);
|
|
394
|
-
}
|
|
395
|
-
], next);
|
|
396
|
-
},
|
|
397
|
-
|
|
398
|
-
modifyDeviceFile: function(op, target, next) {
|
|
399
|
-
log.info("novacom#Resolver()#modifyDeviceFile()", "op:", op);
|
|
400
|
-
let defaultTarget = "emulator",
|
|
401
|
-
inDevices = cliData.getDeviceList(true);
|
|
402
|
-
|
|
403
|
-
if (!target.name) {
|
|
404
|
-
return setImmediate(next, errHndl.getErrMsg("EMPTY_VALUE", "target"));
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
if (!Array.isArray(inDevices)) {
|
|
408
|
-
return setImmediate(next, errHndl.getErrMsg("INVALID_FILE"));
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
const matchedDevices = inDevices.filter(function(dev) {
|
|
412
|
-
let match = false;
|
|
413
|
-
if (target.name === dev.name) {
|
|
414
|
-
if (target.profile) {
|
|
415
|
-
if (target.profile === dev.profile) {
|
|
416
|
-
match = true;
|
|
417
|
-
}
|
|
418
|
-
} else {
|
|
419
|
-
match = true;
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
return match;
|
|
423
|
-
});
|
|
424
|
-
|
|
425
|
-
if (op === 'add') {
|
|
426
|
-
if (matchedDevices.length > 0) {
|
|
427
|
-
return setImmediate(next, errHndl.getErrMsg("EXISTING_VALUE", "DEVICE_NAME", target.name));
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
for (const key in target) {
|
|
431
|
-
if (target[key] === "@DELETE@") {
|
|
432
|
-
delete target[key];
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
if (target.default === true) {
|
|
437
|
-
defaultTarget = target.name;
|
|
438
|
-
} else if (target.default === false) {
|
|
439
|
-
// new device is not a default target, keep current default target device.
|
|
440
|
-
defaultTarget = null;
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
inDevices = inDevices.concat(target);
|
|
444
|
-
} else if (op === 'remove' || op === 'modify' || op === 'default') {
|
|
445
|
-
if (matchedDevices.length === 0) {
|
|
446
|
-
return setImmediate(next, errHndl.getErrMsg("INVALID_VALUE", "DEVICE_NAME", target.name));
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
if (op === 'remove') {
|
|
450
|
-
inDevices = inDevices.filter(function(dev) {
|
|
451
|
-
if (target.name === dev.name) {
|
|
452
|
-
if (dev.indelible === true) {
|
|
453
|
-
return setImmediate(next, errHndl.getErrMsg("CANNOT_REMOVE_DEVICE", dev.name));
|
|
454
|
-
} else {
|
|
455
|
-
// removed target is not default target, do not set defalut to others
|
|
456
|
-
if (dev.default === false) {
|
|
457
|
-
defaultTarget = null;
|
|
458
|
-
}
|
|
459
|
-
return false;
|
|
460
|
-
}
|
|
461
|
-
} else {
|
|
462
|
-
return true;
|
|
463
|
-
}
|
|
464
|
-
});
|
|
465
|
-
} else if (op === 'modify') {
|
|
466
|
-
inDevices = inDevices.map(function(dev) {
|
|
467
|
-
if (target.name === dev.name) {
|
|
468
|
-
if (dev.default === true) {
|
|
469
|
-
// keep current default device as modified target
|
|
470
|
-
defaultTarget = dev.name;
|
|
471
|
-
} else {
|
|
472
|
-
// do not change default device
|
|
473
|
-
defaultTarget = null;
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
for (const prop in target) {
|
|
477
|
-
if (Object.prototype.hasOwnProperty.call(target, prop)) {
|
|
478
|
-
dev[prop] = target[prop];
|
|
479
|
-
if (dev[prop] === "@DELETE@") {
|
|
480
|
-
delete dev[prop];
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
return dev;
|
|
486
|
-
});
|
|
487
|
-
} else if (op === 'default') {
|
|
488
|
-
inDevices.map(function(dev) {
|
|
489
|
-
if (target.name === dev.name) {
|
|
490
|
-
if (target.default === true) {
|
|
491
|
-
defaultTarget = target.name;
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
});
|
|
495
|
-
}
|
|
496
|
-
} else {
|
|
497
|
-
return setImmediate(next, errHndl.getErrMsg("UNKNOWN_OPERATOR", op));
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
// Set default target & others to no default target(false)
|
|
501
|
-
if (defaultTarget != null) {
|
|
502
|
-
inDevices = inDevices.map(function(dev) {
|
|
503
|
-
if (defaultTarget === dev.name) {
|
|
504
|
-
dev.default = true;
|
|
505
|
-
} else {
|
|
506
|
-
dev.default = false;
|
|
507
|
-
}
|
|
508
|
-
return dev;
|
|
509
|
-
});
|
|
510
|
-
}
|
|
511
|
-
this.save(inDevices, next);
|
|
512
|
-
}
|
|
513
|
-
};
|
|
514
|
-
|
|
515
|
-
/**
|
|
516
|
-
* @constructor
|
|
517
|
-
* @param {String} target the name of the target device to connect to. "default"
|
|
518
|
-
* @param {Function} next common-js callback, invoked when the Session becomes usable or definitively unusable (failed)
|
|
519
|
-
*/
|
|
520
|
-
function Session(target, printTarget, next) {
|
|
521
|
-
if (typeof next !== 'function') {
|
|
522
|
-
throw errHndl.getErrMsg("MISSING_CALLBACK", "next", util.inspect(next));
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
const name = (typeof target === 'string' ? target : target && target.name);
|
|
526
|
-
log.info("novacom#Session()", "opening session to '" + (name ? name : "default device") + "'");
|
|
527
|
-
this.resolver = new Resolver();
|
|
528
|
-
|
|
529
|
-
async.waterfall([
|
|
530
|
-
this.resolver.load.bind(this.resolver),
|
|
531
|
-
this.resolver.setTargetName.bind(this.resolver, target, printTarget),
|
|
532
|
-
this.resolver.getDeviceBy.bind(this.resolver),
|
|
533
|
-
this.checkConnection.bind(this),
|
|
534
|
-
this.begin.bind(this)
|
|
535
|
-
], next);
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
novacom.Session = Session;
|
|
539
|
-
|
|
540
|
-
novacom.Session.prototype = {
|
|
541
|
-
/**
|
|
542
|
-
* Check if socket can be connected
|
|
543
|
-
* This method can be called multiple times.
|
|
544
|
-
* @param {Function} next common-js callback
|
|
545
|
-
*/
|
|
546
|
-
checkConnection: function(target, next) {
|
|
547
|
-
let alive = false;
|
|
548
|
-
if (target && target.host && target.port) {
|
|
549
|
-
const socket = new net.Socket();
|
|
550
|
-
socket.setTimeout(2000);
|
|
551
|
-
const client = socket.connect({
|
|
552
|
-
host: target.host,
|
|
553
|
-
port: target.port
|
|
554
|
-
});
|
|
555
|
-
client.on('connect', function() {
|
|
556
|
-
alive = true;
|
|
557
|
-
client.end();
|
|
558
|
-
setImmediate(next, null, target);
|
|
559
|
-
});
|
|
560
|
-
client.on('error', function(err) {
|
|
561
|
-
client.destroy();
|
|
562
|
-
setImmediate(next, errHndl.getErrMsg(err));
|
|
563
|
-
});
|
|
564
|
-
client.on('timeout', function() {
|
|
565
|
-
client.destroy();
|
|
566
|
-
if (!alive) {
|
|
567
|
-
setImmediate(next, errHndl.getErrMsg("TIME_OUT"));
|
|
568
|
-
}
|
|
569
|
-
});
|
|
570
|
-
} else {
|
|
571
|
-
setImmediate(next, null, target);
|
|
572
|
-
}
|
|
573
|
-
},
|
|
574
|
-
|
|
575
|
-
/**
|
|
576
|
-
* Begin a novacom session with the current target
|
|
577
|
-
* This method can be called multiple times.
|
|
578
|
-
* @param {Function} next common-js callback
|
|
579
|
-
*/
|
|
580
|
-
begin: function(target, next) {
|
|
581
|
-
log.verbose("novacom#Session()#begin()", "target:", target.display);
|
|
582
|
-
const self = this;
|
|
583
|
-
this.target = target || this.target;
|
|
584
|
-
|
|
585
|
-
if (this.target.conn && (this.target.conn.indexOf('ssh') === -1)) {
|
|
586
|
-
setImmediate(next, null, this);
|
|
587
|
-
return this;
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
if (this.target.privateKey === undefined && this.target.password === undefined) {
|
|
591
|
-
return setImmediate(next, errHndl.getErrMsg("NOT_EXIST_SSHKEY_PASSWD"));
|
|
592
|
-
}
|
|
593
|
-
|
|
594
|
-
if (!this.ssh) {
|
|
595
|
-
this.forwardedPorts = [];
|
|
596
|
-
this.ssh = new Ssh2.Client();
|
|
597
|
-
this.ssh.on('connect', function() {
|
|
598
|
-
log.info("novacom#Session()#begin()", "ssh session event: connected");
|
|
599
|
-
});
|
|
600
|
-
this.ssh.on('ready', _next.bind(this));
|
|
601
|
-
this.ssh.on('error', _next.bind(this));
|
|
602
|
-
this.ssh.on('end', function() {
|
|
603
|
-
log.info("novacom#Session()#begin()", "ssh session event: end");
|
|
604
|
-
});
|
|
605
|
-
this.ssh.on('close', function(had_error) {
|
|
606
|
-
log.info("novacom#Session()#begin()", "ssh session event: close (had_error:", had_error, ")");
|
|
607
|
-
});
|
|
608
|
-
this.target.readyTimeout = 30000;
|
|
609
|
-
//Explicit overrides for the default transport layer algorithms used for the connection.
|
|
610
|
-
this.target.algorithms = {
|
|
611
|
-
"kex": [
|
|
612
|
-
"diffie-hellman-group1-sha1",
|
|
613
|
-
"ecdh-sha2-nistp256",
|
|
614
|
-
"ecdh-sha2-nistp384",
|
|
615
|
-
"ecdh-sha2-nistp521",
|
|
616
|
-
"diffie-hellman-group-exchange-sha256",
|
|
617
|
-
"diffie-hellman-group14-sha1"
|
|
618
|
-
],
|
|
619
|
-
}
|
|
620
|
-
this.ssh.connect(this.target);
|
|
621
|
-
|
|
622
|
-
process.on("SIGHUP", _clearSession);
|
|
623
|
-
process.on("SIGINT", _clearSession);
|
|
624
|
-
process.on("SIGQUIT", _clearSession);
|
|
625
|
-
process.on("SIGTERM", _clearSession);
|
|
626
|
-
process.on("exit", function() {
|
|
627
|
-
_clearSession();
|
|
628
|
-
});
|
|
629
|
-
// Node.js cannot handle SIGKILL, SIGSTOP
|
|
630
|
-
// process.on("SIGKILL", _clearSession);
|
|
631
|
-
// process.on("SIGSTOP", _clearSession);
|
|
632
|
-
}
|
|
633
|
-
return this;
|
|
634
|
-
|
|
635
|
-
function _next(err) {
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
return this;
|
|
665
|
-
},
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
log.
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
},
|
|
731
|
-
|
|
732
|
-
/**
|
|
733
|
-
* Upload a file on the device via
|
|
734
|
-
* @param {String}
|
|
735
|
-
* @param {
|
|
736
|
-
* @param {Function} next common-js callback
|
|
737
|
-
*/
|
|
738
|
-
|
|
739
|
-
log.
|
|
740
|
-
const
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
log.verbose(
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
},
|
|
819
|
-
|
|
820
|
-
/**
|
|
821
|
-
*
|
|
822
|
-
* @param {String} inPath
|
|
823
|
-
* @param {
|
|
824
|
-
* @param {Function} next
|
|
825
|
-
*/
|
|
826
|
-
|
|
827
|
-
log.verbose(
|
|
828
|
-
const
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
},
|
|
876
|
-
|
|
877
|
-
/**
|
|
878
|
-
* Run a command
|
|
879
|
-
* @param {String} cmd the device command to run
|
|
880
|
-
* @param {
|
|
881
|
-
* @param {stream.
|
|
882
|
-
* @param {stream.WritableStream}
|
|
883
|
-
* @param {
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
*
|
|
892
|
-
* @param {
|
|
893
|
-
* @param {
|
|
894
|
-
* @param {stream.
|
|
895
|
-
* @param {stream.WritableStream}
|
|
896
|
-
* @param {
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
}
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
log.silly("novacom#Session()#run()", "
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
*
|
|
1003
|
-
* @param {
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
} else if (
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
});
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
}
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
},
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2020-2024 LG Electronics Inc.
|
|
3
|
+
*
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
const async = require('async'),
|
|
8
|
+
chalk = require('chalk'),
|
|
9
|
+
fs = require('fs'),
|
|
10
|
+
mkdirp = require('mkdirp'),
|
|
11
|
+
net = require('net'),
|
|
12
|
+
log = require('npmlog'),
|
|
13
|
+
path = require('path'),
|
|
14
|
+
request = require('request'),
|
|
15
|
+
shelljs = require('shelljs'),
|
|
16
|
+
Ssh2 = require('ssh2'),
|
|
17
|
+
stream = require('stream'),
|
|
18
|
+
util = require('util'),
|
|
19
|
+
Appdata = require('./cli-appdata'),
|
|
20
|
+
errHndl = require('./error-handler'),
|
|
21
|
+
server = require('./server');
|
|
22
|
+
|
|
23
|
+
// novacom emulation layer, on top of ssh
|
|
24
|
+
(function() {
|
|
25
|
+
const novacom = {};
|
|
26
|
+
|
|
27
|
+
log.heading = 'novacom';
|
|
28
|
+
log.level = 'warn';
|
|
29
|
+
novacom.log = log;
|
|
30
|
+
|
|
31
|
+
const keydir = path.resolve(process.env.HOME || process.env.USERPROFILE, '.ssh');
|
|
32
|
+
let cliData;
|
|
33
|
+
|
|
34
|
+
function makeExecError(cmd, code, signal, orgErrMsg) {
|
|
35
|
+
let err = null; // null:success, undefined:did-not-run, Error:failure
|
|
36
|
+
|
|
37
|
+
if (orgErrMsg) {
|
|
38
|
+
orgErrMsg = "\n(Original Message: " + orgErrMsg.replace(/\u001b[^m]*?m/g,"").trim() + ")";
|
|
39
|
+
} else {
|
|
40
|
+
orgErrMsg = "";
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
if (signal) {
|
|
44
|
+
signal = " (signal: " + signal + ")";
|
|
45
|
+
} else {
|
|
46
|
+
signal = "";
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
if (code !== 0 || signal) {
|
|
50
|
+
err = new Error();
|
|
51
|
+
err.message = "Command '" + cmd + "' exited with code=" + code + signal + orgErrMsg;
|
|
52
|
+
err.code = code;
|
|
53
|
+
|
|
54
|
+
return errHndl.getErrMsg(err);
|
|
55
|
+
}
|
|
56
|
+
return err;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
novacom.Resolver = Resolver;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @constructor
|
|
63
|
+
*/
|
|
64
|
+
function Resolver() {
|
|
65
|
+
/**
|
|
66
|
+
* @property devices
|
|
67
|
+
* This list use to be maintained by novacomd
|
|
68
|
+
*/
|
|
69
|
+
this.devices = [];
|
|
70
|
+
this.deviceFileContent = null;
|
|
71
|
+
cliData = new Appdata();
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
novacom.Resolver.prototype = {
|
|
75
|
+
/**
|
|
76
|
+
* Load the resolver DB from the filesystem
|
|
77
|
+
* @param {Function} next a common-JS callback invoked when the DB is ready to use.
|
|
78
|
+
*/
|
|
79
|
+
load: function(next) {
|
|
80
|
+
log.info("novacom#Resolver()#load()");
|
|
81
|
+
const resolver = this;
|
|
82
|
+
|
|
83
|
+
async.waterfall([
|
|
84
|
+
_replaceBuiltinSshKey.bind(resolver),
|
|
85
|
+
_adjustList.bind(resolver),
|
|
86
|
+
_loadString.bind(resolver)
|
|
87
|
+
], function(err) {
|
|
88
|
+
if (err) {
|
|
89
|
+
setImmediate(next, err);
|
|
90
|
+
} else {
|
|
91
|
+
log.silly("novacom#Resolver()#load()", "devices:", resolver.devices);
|
|
92
|
+
setImmediate(next);
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
function _replaceBuiltinSshKey(next) {
|
|
97
|
+
log.silly("novacom#Resolver()#load()#_replaceBuiltinSshKey()");
|
|
98
|
+
const builtinPrvKeyForEmul = path.join(__dirname, "../../files/conf/", 'webos_emul'),
|
|
99
|
+
userHomePrvKeyForEmul = path.join(keydir, 'webos_emul');
|
|
100
|
+
|
|
101
|
+
fs.stat(builtinPrvKeyForEmul, function(err, builtinKeyStat) {
|
|
102
|
+
if (err) {
|
|
103
|
+
if (err.code === 'ENOENT') {
|
|
104
|
+
setImmediate(next);
|
|
105
|
+
} else {
|
|
106
|
+
setImmediate(next, err);
|
|
107
|
+
}
|
|
108
|
+
} else {
|
|
109
|
+
fs.stat(userHomePrvKeyForEmul, function(error, userKeyStat) {
|
|
110
|
+
if (error) {
|
|
111
|
+
if (error.code === 'ENOENT') {
|
|
112
|
+
mkdirp(keydir, function() {
|
|
113
|
+
shelljs.cp('-rf', builtinPrvKeyForEmul, keydir);
|
|
114
|
+
fs.chmodSync(userHomePrvKeyForEmul, '0600');
|
|
115
|
+
setImmediate(next);
|
|
116
|
+
});
|
|
117
|
+
} else {
|
|
118
|
+
setImmediate(next, error);
|
|
119
|
+
}
|
|
120
|
+
} else {
|
|
121
|
+
if (builtinKeyStat.mtime.getTime() > userKeyStat.mtime.getTime()) {
|
|
122
|
+
shelljs.cp('-rf', builtinPrvKeyForEmul, keydir);
|
|
123
|
+
fs.chmodSync(userHomePrvKeyForEmul, '0600');
|
|
124
|
+
}
|
|
125
|
+
setImmediate(next);
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/*
|
|
133
|
+
* Add "default" field to list files
|
|
134
|
+
* Set "emulator" to default target
|
|
135
|
+
*/
|
|
136
|
+
function _adjustList(next) {
|
|
137
|
+
const defaultTarget = "emulator";
|
|
138
|
+
let inDevices = cliData.getDeviceList(true);
|
|
139
|
+
|
|
140
|
+
// count targes does not have "default field"
|
|
141
|
+
const defaultFields = inDevices.filter(function(device) {
|
|
142
|
+
return (device.default !== undefined);
|
|
143
|
+
});
|
|
144
|
+
if (defaultFields.length < 1) {
|
|
145
|
+
log.silly("novacom#Resolver()#load()#_adjustList()", "rewrite default field");
|
|
146
|
+
inDevices = inDevices.map(function(dev) {
|
|
147
|
+
if (defaultTarget === dev.name) {
|
|
148
|
+
dev.default = true;
|
|
149
|
+
} else {
|
|
150
|
+
dev.default = false;
|
|
151
|
+
}
|
|
152
|
+
return dev;
|
|
153
|
+
});
|
|
154
|
+
this.save(inDevices);
|
|
155
|
+
}
|
|
156
|
+
setImmediate(next);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/*
|
|
160
|
+
* Load devices described in the given string
|
|
161
|
+
* (supposed to be a JSON Array).
|
|
162
|
+
*/
|
|
163
|
+
function _loadString(next) {
|
|
164
|
+
let inDevices = cliData.getDeviceList(true);
|
|
165
|
+
|
|
166
|
+
if (!Array.isArray(inDevices)) {
|
|
167
|
+
setImmediate(next, errHndl.getErrMsg("INVALID_FILE"));
|
|
168
|
+
return;
|
|
169
|
+
}
|
|
170
|
+
inDevices = inDevices.map((device, index) => ({...device, index}));
|
|
171
|
+
async.forEach(inDevices, function(inDevice, next) {
|
|
172
|
+
async.series([
|
|
173
|
+
resolver._loadOne.bind(resolver, inDevice),
|
|
174
|
+
resolver._addOne.bind(resolver, inDevice)
|
|
175
|
+
], next);
|
|
176
|
+
}, function(err) {
|
|
177
|
+
if (err) {
|
|
178
|
+
setImmediate(next, err);
|
|
179
|
+
} else {
|
|
180
|
+
setImmediate(next);
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
|
|
186
|
+
/*
|
|
187
|
+
* Resolve the SSH private key of the given device
|
|
188
|
+
* into a usable string. Prefer already fetch keys,
|
|
189
|
+
* then manually-configured OpenSSH one & finally
|
|
190
|
+
* fetch it from a distant device (webOS Pro only).
|
|
191
|
+
*/
|
|
192
|
+
_loadOne: function(inDevice, next) {
|
|
193
|
+
if (typeof inDevice.privateKey === 'string') {
|
|
194
|
+
inDevice.privateKeyName = inDevice.privateKey;
|
|
195
|
+
inDevice.privateKey = Buffer.from(inDevice.privateKey, 'base64');
|
|
196
|
+
setImmediate(next);
|
|
197
|
+
} else if (typeof inDevice.privateKey === 'object' && typeof inDevice.privateKey.openSsh === 'string') {
|
|
198
|
+
inDevice.privateKeyName = inDevice.privateKey.openSsh;
|
|
199
|
+
async.waterfall([
|
|
200
|
+
fs.readFile.bind(this, path.join(keydir, inDevice.privateKey.openSsh), next),
|
|
201
|
+
function(privateKey, next) {
|
|
202
|
+
inDevice.privateKey = privateKey;
|
|
203
|
+
setImmediate(next);
|
|
204
|
+
}
|
|
205
|
+
], function(err) {
|
|
206
|
+
// do not load non-existing OpenSSH private key files
|
|
207
|
+
if (err) {
|
|
208
|
+
log.verbose("novacom#Resolver()#_loadOne()", "Unable to find SSH private key named '" +
|
|
209
|
+
inDevice.privateKey.openSsh + "' from '" + keydir + " for '" + inDevice.name + "'");
|
|
210
|
+
inDevice.privateKey = undefined;
|
|
211
|
+
}
|
|
212
|
+
setImmediate(next);
|
|
213
|
+
});
|
|
214
|
+
} else if (inDevice.type !== undefined && inDevice.type === 'webospro') {
|
|
215
|
+
// FIXME: here is the place to stream-down the SSH private key from the device
|
|
216
|
+
setImmediate(next, errHndl.getErrMsg("NOT_IMPLEMENTED", "webOS Pro device type handling"));
|
|
217
|
+
} else { // private Key is not defined in novacom-device.json
|
|
218
|
+
if (!inDevice.password) {
|
|
219
|
+
log.silly("novacom#Resolver()#_loadOne()", "Regist privateKey : need to set a SSH private key in " +
|
|
220
|
+
keydir + " for'" + inDevice.name + "'");
|
|
221
|
+
}
|
|
222
|
+
inDevice.privateKeyName = undefined;
|
|
223
|
+
inDevice.privateKey = undefined;
|
|
224
|
+
setImmediate(next);
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
|
|
228
|
+
/*
|
|
229
|
+
* Add given inDevice to the Resolver DB, overwritting
|
|
230
|
+
* any existing one with the same "name:" is needed.
|
|
231
|
+
*/
|
|
232
|
+
_addOne: function(inDevice, next) {
|
|
233
|
+
// add the current profile device only
|
|
234
|
+
if (!inDevice.profile || !cliData.compareProfileSync(inDevice.profile)) {
|
|
235
|
+
return setImmediate(next);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
inDevice.display = {
|
|
239
|
+
name: inDevice.name,
|
|
240
|
+
type: inDevice.type,
|
|
241
|
+
privateKeyName: inDevice.privateKeyName,
|
|
242
|
+
passphrase: inDevice.passphrase,
|
|
243
|
+
description: inDevice.description,
|
|
244
|
+
conn: inDevice.conn || ['ssh'],
|
|
245
|
+
devId: inDevice.id || null
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
if (inDevice.username && inDevice.host && inDevice.port) {
|
|
249
|
+
inDevice.display.addr = "ssh://" + inDevice.username + "@" + inDevice.host + ":" + inDevice.port;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
for (const n in inDevice) {
|
|
253
|
+
if (n !== "display") {
|
|
254
|
+
inDevice.display[n] = inDevice[n];
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
// filter-out `this.devices` from the one having the same name as `inDevice`...
|
|
259
|
+
this.devices = this.devices.filter(function(device) {
|
|
260
|
+
return device.name !== inDevice.name;
|
|
261
|
+
});
|
|
262
|
+
|
|
263
|
+
// ...hook proper luna interface
|
|
264
|
+
const systemCmd = cliData.getCommandService();
|
|
265
|
+
inDevice.lunaSend = systemCmd.lunaSend;
|
|
266
|
+
inDevice.lunaAddr = systemCmd.lunaAddr;
|
|
267
|
+
|
|
268
|
+
// ...and then append `inDevice`
|
|
269
|
+
this.devices.push(inDevice);
|
|
270
|
+
setImmediate(next);
|
|
271
|
+
},
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* @public
|
|
276
|
+
*/
|
|
277
|
+
save: function(devicesData, next) {
|
|
278
|
+
log.info("novacom#Resolver()#save()");
|
|
279
|
+
return cliData.setDeviceList(devicesData, next);
|
|
280
|
+
},
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* @public
|
|
284
|
+
*/
|
|
285
|
+
list: function(next) {
|
|
286
|
+
log.info("novacom#Resolver()#list()");
|
|
287
|
+
setImmediate(next, null, this.devices.map(function(device) {
|
|
288
|
+
return device.display;
|
|
289
|
+
}));
|
|
290
|
+
},
|
|
291
|
+
|
|
292
|
+
setTargetName: function(target, printTarget, next) {
|
|
293
|
+
let name = (typeof target === 'string' ? target : target && target.name);
|
|
294
|
+
if (!name) {
|
|
295
|
+
const usbDevices = this.devices.filter(function(device) {
|
|
296
|
+
return (device.conn && device.conn.indexOf("novacom") !== -1);
|
|
297
|
+
});
|
|
298
|
+
|
|
299
|
+
if (usbDevices.length > 1) {
|
|
300
|
+
return next(errHndl.getErrMsg("CONNECTED_MULTI_DEVICE"));
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
// default target priority
|
|
304
|
+
// specified target name > target connected by novacom > user setting > emulator
|
|
305
|
+
if (usbDevices.length > 0 && usbDevices[0].name) {
|
|
306
|
+
name = usbDevices[0].name;
|
|
307
|
+
} else {
|
|
308
|
+
const defaultTargets = this.devices.filter(function(device) {
|
|
309
|
+
return (device.default && device.default === true);
|
|
310
|
+
});
|
|
311
|
+
|
|
312
|
+
if (defaultTargets.length > 1) {
|
|
313
|
+
return next(errHndl.getErrMsg("SET_DEFAULT_MULTI_DEVICE"));
|
|
314
|
+
} else if (defaultTargets.length === 1) {
|
|
315
|
+
name = defaultTargets[0].name;
|
|
316
|
+
} else {
|
|
317
|
+
// if cannot find default target in list, set to "emulator"
|
|
318
|
+
name = "emulator";
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
if (printTarget) {
|
|
323
|
+
console.log(chalk.green("[Info] Set target device : " + name));
|
|
324
|
+
}
|
|
325
|
+
next(null, 'name', name);
|
|
326
|
+
},
|
|
327
|
+
|
|
328
|
+
getDeviceBy: function(key, value, next) {
|
|
329
|
+
log.info("novacom#Resolver()#getDeviceBy()", "key:", key, ", value:", value);
|
|
330
|
+
const devices = this.devices.filter(function(device) {
|
|
331
|
+
return device[key] && device[key] === value;
|
|
332
|
+
});
|
|
333
|
+
|
|
334
|
+
if (devices.length < 1) {
|
|
335
|
+
setImmediate(next, errHndl.getErrMsg("UNMATCHED_DEVICE", key, value));
|
|
336
|
+
} else if (typeof next === 'function') {
|
|
337
|
+
setImmediate(next, null, devices[0]);
|
|
338
|
+
} else {
|
|
339
|
+
return devices[0];
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
|
|
343
|
+
getSshPrvKey: function(target, next) {
|
|
344
|
+
let name = (typeof target === 'string' ? target : target && target.name);
|
|
345
|
+
if (!name) {
|
|
346
|
+
// if name is not specified, find default target
|
|
347
|
+
const defaultTargets = this.devices.filter(function(device) {
|
|
348
|
+
return (device.default && device.default === true);
|
|
349
|
+
});
|
|
350
|
+
if (defaultTargets.length > 1) {
|
|
351
|
+
return next(errHndl.getErrMsg("SET_DEFAULT_MULTI_DEVICE"));
|
|
352
|
+
} else if (defaultTargets.length === 1) {
|
|
353
|
+
name = defaultTargets[0].name;
|
|
354
|
+
} else {
|
|
355
|
+
// if cannot find default target in list, set to "emulator"
|
|
356
|
+
name = "emulator";
|
|
357
|
+
}
|
|
358
|
+
// assign target name
|
|
359
|
+
if (typeof target === 'string') {
|
|
360
|
+
target = name;
|
|
361
|
+
} else if (typeof target === 'object') {
|
|
362
|
+
target.name = name;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
async.waterfall([
|
|
367
|
+
this.getDeviceBy.bind(this, 'name', name),
|
|
368
|
+
function(targetDevice, next) {
|
|
369
|
+
log.info("Resolver#getSshPrvKey()", "targetDevice.host:", targetDevice.host);
|
|
370
|
+
const url = 'http://' + targetDevice.host + ':9991' + '/webos_rsa';
|
|
371
|
+
const keyFileNamePrefix = targetDevice.name.replace(/(\s+)/gi, '_');
|
|
372
|
+
const keyFileName = keyFileNamePrefix + "_webos";
|
|
373
|
+
const keySavePath = path.join(keydir, keyFileName);
|
|
374
|
+
request.head(url, function(err, res) {
|
|
375
|
+
if (err || (res && res.statusCode !== 200)) {
|
|
376
|
+
return setImmediate(next, errHndl.getErrMsg("FAILED_GET_SSHKEY"));
|
|
377
|
+
}
|
|
378
|
+
log.info("Resolver#getSshPrvKey()#head", "content-type:", res.headers['content-type']);
|
|
379
|
+
log.info("Resolver#getSshPrvKey()#head", "content-length:", res.headers['content-length']);
|
|
380
|
+
request(url).pipe(fs.createWriteStream(keySavePath)).on('close', function(error) {
|
|
381
|
+
if (error) {
|
|
382
|
+
return setImmediate(next, errHndl.getErrMsg("FAILED_GET_SSHKEY"));
|
|
383
|
+
} else {
|
|
384
|
+
setImmediate(next, error, keySavePath, keyFileName);
|
|
385
|
+
}
|
|
386
|
+
});
|
|
387
|
+
});
|
|
388
|
+
},
|
|
389
|
+
function(keyFilePath, keyFileName, next) {
|
|
390
|
+
log.info("Resolver#getSshPrvKey()", "SSH Private Key:", keyFilePath);
|
|
391
|
+
console.log("SSH Private Key:", keyFilePath);
|
|
392
|
+
fs.chmodSync(keyFilePath, '0600');
|
|
393
|
+
setImmediate(next, null, keyFileName);
|
|
394
|
+
}
|
|
395
|
+
], next);
|
|
396
|
+
},
|
|
397
|
+
|
|
398
|
+
modifyDeviceFile: function(op, target, next) {
|
|
399
|
+
log.info("novacom#Resolver()#modifyDeviceFile()", "op:", op);
|
|
400
|
+
let defaultTarget = "emulator",
|
|
401
|
+
inDevices = cliData.getDeviceList(true);
|
|
402
|
+
|
|
403
|
+
if (!target.name) {
|
|
404
|
+
return setImmediate(next, errHndl.getErrMsg("EMPTY_VALUE", "target"));
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
if (!Array.isArray(inDevices)) {
|
|
408
|
+
return setImmediate(next, errHndl.getErrMsg("INVALID_FILE"));
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
const matchedDevices = inDevices.filter(function(dev) {
|
|
412
|
+
let match = false;
|
|
413
|
+
if (target.name === dev.name) {
|
|
414
|
+
if (target.profile) {
|
|
415
|
+
if (target.profile === dev.profile) {
|
|
416
|
+
match = true;
|
|
417
|
+
}
|
|
418
|
+
} else {
|
|
419
|
+
match = true;
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
return match;
|
|
423
|
+
});
|
|
424
|
+
|
|
425
|
+
if (op === 'add') {
|
|
426
|
+
if (matchedDevices.length > 0) {
|
|
427
|
+
return setImmediate(next, errHndl.getErrMsg("EXISTING_VALUE", "DEVICE_NAME", target.name));
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
for (const key in target) {
|
|
431
|
+
if (target[key] === "@DELETE@") {
|
|
432
|
+
delete target[key];
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
if (target.default === true) {
|
|
437
|
+
defaultTarget = target.name;
|
|
438
|
+
} else if (target.default === false) {
|
|
439
|
+
// new device is not a default target, keep current default target device.
|
|
440
|
+
defaultTarget = null;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
inDevices = inDevices.concat(target);
|
|
444
|
+
} else if (op === 'remove' || op === 'modify' || op === 'default') {
|
|
445
|
+
if (matchedDevices.length === 0) {
|
|
446
|
+
return setImmediate(next, errHndl.getErrMsg("INVALID_VALUE", "DEVICE_NAME", target.name));
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
if (op === 'remove') {
|
|
450
|
+
inDevices = inDevices.filter(function(dev) {
|
|
451
|
+
if (target.name === dev.name) {
|
|
452
|
+
if (dev.indelible === true) {
|
|
453
|
+
return setImmediate(next, errHndl.getErrMsg("CANNOT_REMOVE_DEVICE", dev.name));
|
|
454
|
+
} else {
|
|
455
|
+
// removed target is not default target, do not set defalut to others
|
|
456
|
+
if (dev.default === false) {
|
|
457
|
+
defaultTarget = null;
|
|
458
|
+
}
|
|
459
|
+
return false;
|
|
460
|
+
}
|
|
461
|
+
} else {
|
|
462
|
+
return true;
|
|
463
|
+
}
|
|
464
|
+
});
|
|
465
|
+
} else if (op === 'modify') {
|
|
466
|
+
inDevices = inDevices.map(function(dev) {
|
|
467
|
+
if (target.name === dev.name) {
|
|
468
|
+
if (dev.default === true) {
|
|
469
|
+
// keep current default device as modified target
|
|
470
|
+
defaultTarget = dev.name;
|
|
471
|
+
} else {
|
|
472
|
+
// do not change default device
|
|
473
|
+
defaultTarget = null;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
for (const prop in target) {
|
|
477
|
+
if (Object.prototype.hasOwnProperty.call(target, prop)) {
|
|
478
|
+
dev[prop] = target[prop];
|
|
479
|
+
if (dev[prop] === "@DELETE@") {
|
|
480
|
+
delete dev[prop];
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
return dev;
|
|
486
|
+
});
|
|
487
|
+
} else if (op === 'default') {
|
|
488
|
+
inDevices.map(function(dev) {
|
|
489
|
+
if (target.name === dev.name) {
|
|
490
|
+
if (target.default === true) {
|
|
491
|
+
defaultTarget = target.name;
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
});
|
|
495
|
+
}
|
|
496
|
+
} else {
|
|
497
|
+
return setImmediate(next, errHndl.getErrMsg("UNKNOWN_OPERATOR", op));
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
// Set default target & others to no default target(false)
|
|
501
|
+
if (defaultTarget != null) {
|
|
502
|
+
inDevices = inDevices.map(function(dev) {
|
|
503
|
+
if (defaultTarget === dev.name) {
|
|
504
|
+
dev.default = true;
|
|
505
|
+
} else {
|
|
506
|
+
dev.default = false;
|
|
507
|
+
}
|
|
508
|
+
return dev;
|
|
509
|
+
});
|
|
510
|
+
}
|
|
511
|
+
this.save(inDevices, next);
|
|
512
|
+
}
|
|
513
|
+
};
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* @constructor
|
|
517
|
+
* @param {String} target the name of the target device to connect to. "default"
|
|
518
|
+
* @param {Function} next common-js callback, invoked when the Session becomes usable or definitively unusable (failed)
|
|
519
|
+
*/
|
|
520
|
+
function Session(target, printTarget, next) {
|
|
521
|
+
if (typeof next !== 'function') {
|
|
522
|
+
throw errHndl.getErrMsg("MISSING_CALLBACK", "next", util.inspect(next));
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
const name = (typeof target === 'string' ? target : target && target.name);
|
|
526
|
+
log.info("novacom#Session()", "opening session to '" + (name ? name : "default device") + "'");
|
|
527
|
+
this.resolver = new Resolver();
|
|
528
|
+
|
|
529
|
+
async.waterfall([
|
|
530
|
+
this.resolver.load.bind(this.resolver),
|
|
531
|
+
this.resolver.setTargetName.bind(this.resolver, target, printTarget),
|
|
532
|
+
this.resolver.getDeviceBy.bind(this.resolver),
|
|
533
|
+
this.checkConnection.bind(this),
|
|
534
|
+
this.begin.bind(this)
|
|
535
|
+
], next);
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
novacom.Session = Session;
|
|
539
|
+
|
|
540
|
+
novacom.Session.prototype = {
|
|
541
|
+
/**
|
|
542
|
+
* Check if socket can be connected
|
|
543
|
+
* This method can be called multiple times.
|
|
544
|
+
* @param {Function} next common-js callback
|
|
545
|
+
*/
|
|
546
|
+
checkConnection: function(target, next) {
|
|
547
|
+
let alive = false;
|
|
548
|
+
if (target && target.host && target.port) {
|
|
549
|
+
const socket = new net.Socket();
|
|
550
|
+
socket.setTimeout(2000);
|
|
551
|
+
const client = socket.connect({
|
|
552
|
+
host: target.host,
|
|
553
|
+
port: target.port
|
|
554
|
+
});
|
|
555
|
+
client.on('connect', function() {
|
|
556
|
+
alive = true;
|
|
557
|
+
client.end();
|
|
558
|
+
setImmediate(next, null, target);
|
|
559
|
+
});
|
|
560
|
+
client.on('error', function(err) {
|
|
561
|
+
client.destroy();
|
|
562
|
+
setImmediate(next, errHndl.getErrMsg(err));
|
|
563
|
+
});
|
|
564
|
+
client.on('timeout', function() {
|
|
565
|
+
client.destroy();
|
|
566
|
+
if (!alive) {
|
|
567
|
+
setImmediate(next, errHndl.getErrMsg("TIME_OUT"));
|
|
568
|
+
}
|
|
569
|
+
});
|
|
570
|
+
} else {
|
|
571
|
+
setImmediate(next, null, target);
|
|
572
|
+
}
|
|
573
|
+
},
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* Begin a novacom session with the current target
|
|
577
|
+
* This method can be called multiple times.
|
|
578
|
+
* @param {Function} next common-js callback
|
|
579
|
+
*/
|
|
580
|
+
begin: function(target, next) {
|
|
581
|
+
log.verbose("novacom#Session()#begin()", "target:", target.display);
|
|
582
|
+
const self = this;
|
|
583
|
+
this.target = target || this.target;
|
|
584
|
+
|
|
585
|
+
if (this.target.conn && (this.target.conn.indexOf('ssh') === -1)) {
|
|
586
|
+
setImmediate(next, null, this);
|
|
587
|
+
return this;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
if (this.target.privateKey === undefined && this.target.password === undefined) {
|
|
591
|
+
return setImmediate(next, errHndl.getErrMsg("NOT_EXIST_SSHKEY_PASSWD"));
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
if (!this.ssh) {
|
|
595
|
+
this.forwardedPorts = [];
|
|
596
|
+
this.ssh = new Ssh2.Client();
|
|
597
|
+
this.ssh.on('connect', function() {
|
|
598
|
+
log.info("novacom#Session()#begin()", "ssh session event: connected");
|
|
599
|
+
});
|
|
600
|
+
this.ssh.on('ready', _next.bind(this));
|
|
601
|
+
this.ssh.on('error', _next.bind(this));
|
|
602
|
+
this.ssh.on('end', function() {
|
|
603
|
+
log.info("novacom#Session()#begin()", "ssh session event: end");
|
|
604
|
+
});
|
|
605
|
+
this.ssh.on('close', function(had_error) {
|
|
606
|
+
log.info("novacom#Session()#begin()", "ssh session event: close (had_error:", had_error, ")");
|
|
607
|
+
});
|
|
608
|
+
this.target.readyTimeout = 30000;
|
|
609
|
+
//Explicit overrides for the default transport layer algorithms used for the connection.
|
|
610
|
+
this.target.algorithms = {
|
|
611
|
+
"kex": [
|
|
612
|
+
"diffie-hellman-group1-sha1",
|
|
613
|
+
"ecdh-sha2-nistp256",
|
|
614
|
+
"ecdh-sha2-nistp384",
|
|
615
|
+
"ecdh-sha2-nistp521",
|
|
616
|
+
"diffie-hellman-group-exchange-sha256",
|
|
617
|
+
"diffie-hellman-group14-sha1"
|
|
618
|
+
],
|
|
619
|
+
}
|
|
620
|
+
this.ssh.connect(this.target);
|
|
621
|
+
|
|
622
|
+
process.on("SIGHUP", _clearSession);
|
|
623
|
+
process.on("SIGINT", _clearSession);
|
|
624
|
+
process.on("SIGQUIT", _clearSession);
|
|
625
|
+
process.on("SIGTERM", _clearSession);
|
|
626
|
+
process.on("exit", function() {
|
|
627
|
+
_clearSession();
|
|
628
|
+
});
|
|
629
|
+
// Node.js cannot handle SIGKILL, SIGSTOP
|
|
630
|
+
// process.on("SIGKILL", _clearSession);
|
|
631
|
+
// process.on("SIGSTOP", _clearSession);
|
|
632
|
+
}
|
|
633
|
+
return this;
|
|
634
|
+
|
|
635
|
+
function _next(err) {
|
|
636
|
+
if (err) {
|
|
637
|
+
const errorMessages = errHndl.getErrMsg(err);
|
|
638
|
+
if (Array.isArray(errorMessages) && errorMessages.length > 0) {
|
|
639
|
+
for (const index in errorMessages) {
|
|
640
|
+
log.error(
|
|
641
|
+
"novacom#Session()#begin() " + errorMessages[index].heading,
|
|
642
|
+
errorMessages[index].message
|
|
643
|
+
);
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
if (this.errorImmediate) clearImmediate(this.errorImmediate);
|
|
647
|
+
this.errorImmediate = setImmediate(next, errorMessages, this);
|
|
648
|
+
} else setImmediate(next, null, this);
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
function _clearSession() {
|
|
652
|
+
log.verbose("novacom#Session()#begin()", "clear Session");
|
|
653
|
+
self.end();
|
|
654
|
+
setTimeout(function() {
|
|
655
|
+
process.exit();
|
|
656
|
+
}, 500);
|
|
657
|
+
}
|
|
658
|
+
},
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* @return the resolved device actually in use for this session
|
|
662
|
+
*/
|
|
663
|
+
getDevice: function() {
|
|
664
|
+
return this.target;
|
|
665
|
+
},
|
|
666
|
+
|
|
667
|
+
/**
|
|
668
|
+
* Suspend the novacom session. Underlying resources
|
|
669
|
+
* are released (eg. SSH connections are closed).
|
|
670
|
+
*/
|
|
671
|
+
end: function() {
|
|
672
|
+
log.info('novacom#Session()#end()', "user-requested termination");
|
|
673
|
+
if (this.ssh) {
|
|
674
|
+
this.ssh.end();
|
|
675
|
+
}
|
|
676
|
+
return this;
|
|
677
|
+
},
|
|
678
|
+
|
|
679
|
+
_checkSftp: function(next) {
|
|
680
|
+
// FIXME: This is workaround to prevent hang from ssh2.sftp()
|
|
681
|
+
// - issue in ssh2: https://github.com/mscdex/ssh2/issues/240
|
|
682
|
+
// This way only works with ssh2@0.2.x, not working with ssh2@0.4.x, ssh2@0.3.x.
|
|
683
|
+
const self = this;
|
|
684
|
+
self.ssh.subsys('sftp', function(err, _stream) {
|
|
685
|
+
if (err) {
|
|
686
|
+
return setImmediate(next, err);
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
_stream.once('data', function(data) {
|
|
690
|
+
const regex = new RegExp("sftp-server(.| )+not found", "gi");
|
|
691
|
+
if (data.toString().match(regex)) {
|
|
692
|
+
const sftpError = errHndl.getErrMsg("UNABLE_USE_SFTP");
|
|
693
|
+
sftpError.code = 4;
|
|
694
|
+
return setImmediate(next, sftpError);
|
|
695
|
+
}
|
|
696
|
+
});
|
|
697
|
+
});
|
|
698
|
+
},
|
|
699
|
+
|
|
700
|
+
/**
|
|
701
|
+
* Upload a file on the device
|
|
702
|
+
* @param {String} inPath location on the host
|
|
703
|
+
* @param {String} outPath location on the device
|
|
704
|
+
* @param {Function} next common-js callback
|
|
705
|
+
*/
|
|
706
|
+
put: function(inPath, outPath, next) {
|
|
707
|
+
log.info("novacom#Session()#put()", "uploding into device:", outPath, "from host:", inPath);
|
|
708
|
+
const self = this;
|
|
709
|
+
let inStream;
|
|
710
|
+
|
|
711
|
+
log.verbose("novacom#Session()#put()", "sftpPut()::start");
|
|
712
|
+
self.sftpPut(inPath, outPath, function(err) {
|
|
713
|
+
if (err) {
|
|
714
|
+
log.verbose(err);
|
|
715
|
+
if (4 === err.code || 127 === err.code) {
|
|
716
|
+
log.info("novacom#Session()#put()", "sftp is not available, attempt transfering file via streamPut");
|
|
717
|
+
inStream = fs.createReadStream(inPath);
|
|
718
|
+
self.streamPut(outPath, inStream, next);
|
|
719
|
+
} else if (14 === err.code) {
|
|
720
|
+
const detailMsg = errHndl.getErrMsg("NO_FREE_SPACE");
|
|
721
|
+
setImmediate(next, detailMsg);
|
|
722
|
+
} else {
|
|
723
|
+
setImmediate(next, err);
|
|
724
|
+
}
|
|
725
|
+
} else {
|
|
726
|
+
log.info("novacom#Session()#put()", "sftpPut()::done");
|
|
727
|
+
setImmediate(next);
|
|
728
|
+
}
|
|
729
|
+
});
|
|
730
|
+
},
|
|
731
|
+
|
|
732
|
+
/**
|
|
733
|
+
* Upload a file on the device via ssh stream
|
|
734
|
+
* @param {String} outPath location on the device
|
|
735
|
+
* @param {ReadableStream} inStream paused host-side source
|
|
736
|
+
* @param {Function} next common-js callback
|
|
737
|
+
*/
|
|
738
|
+
streamPut: function(outPath, inStream, next) {
|
|
739
|
+
log.info("novacom#Session()#streamPut()", "streaming into device:" + outPath);
|
|
740
|
+
const cmd = '/bin/cat > "' + outPath + '"';
|
|
741
|
+
this.run(cmd, inStream /* stdin*/ , null /* stdout*/ , process.stderr /* stderr*/ , next);
|
|
742
|
+
},
|
|
743
|
+
|
|
744
|
+
/**
|
|
745
|
+
* Upload a file on the device via sftp
|
|
746
|
+
* @param {String} inPath location on the host
|
|
747
|
+
* @param {String} outPath location on the device
|
|
748
|
+
* @param {Function} next common-js callback
|
|
749
|
+
*/
|
|
750
|
+
sftpPut: function(inPath, outPath, next) {
|
|
751
|
+
log.verbose('novacom#Session()#sftpPut()', 'host:' + inPath + ' => ' + 'device:' + outPath);
|
|
752
|
+
const self = this;
|
|
753
|
+
self._checkSftp(next);
|
|
754
|
+
|
|
755
|
+
async.series({
|
|
756
|
+
transfer: function(next) {
|
|
757
|
+
self.ssh.sftp(function(err, sftp) {
|
|
758
|
+
if (err) {
|
|
759
|
+
return setImmediate(next, err);
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
const readStream = fs.createReadStream(inPath),
|
|
763
|
+
writeStream = sftp.createWriteStream(outPath);
|
|
764
|
+
|
|
765
|
+
writeStream.on('close', function() {
|
|
766
|
+
sftp.end();
|
|
767
|
+
setImmediate(next);
|
|
768
|
+
});
|
|
769
|
+
|
|
770
|
+
// Exit when the remote process has terminated
|
|
771
|
+
writeStream.on('exit', function(code, signal) {
|
|
772
|
+
err = makeExecError('sftpPut', code, signal);
|
|
773
|
+
setImmediate(next, err);
|
|
774
|
+
});
|
|
775
|
+
|
|
776
|
+
writeStream.on('error', function(error) {
|
|
777
|
+
log.verbose('novacom#Session()#sftpPut()', "error:", error);
|
|
778
|
+
setImmediate(next, error);
|
|
779
|
+
});
|
|
780
|
+
|
|
781
|
+
readStream.pipe(writeStream);
|
|
782
|
+
});
|
|
783
|
+
}
|
|
784
|
+
}, function(err) {
|
|
785
|
+
setImmediate(next, err);
|
|
786
|
+
});
|
|
787
|
+
},
|
|
788
|
+
|
|
789
|
+
/**
|
|
790
|
+
* Download file on the device
|
|
791
|
+
* @param {String} inPath location on the device
|
|
792
|
+
* @param {String} outPath location on the host
|
|
793
|
+
* @param {Function} next common-js callback
|
|
794
|
+
*/
|
|
795
|
+
get: function(inPath, outPath, next) {
|
|
796
|
+
log.verbose("novacom#Session()#get()", "downloading into host:", outPath, "from target:", inPath);
|
|
797
|
+
const self = this;
|
|
798
|
+
|
|
799
|
+
log.verbose("novacom#Session()#get()", "sftpGet()::start");
|
|
800
|
+
self.sftpGet(inPath, outPath, function(err) {
|
|
801
|
+
if (err) {
|
|
802
|
+
log.verbose(err);
|
|
803
|
+
if (4 === err.code || 127 === err.code) {
|
|
804
|
+
log.info("novacom#Session()#get()", "sftp is not available, attempt transfering file via streamPut");
|
|
805
|
+
const os = fs.createWriteStream(outPath);
|
|
806
|
+
os.on('error', function(error) {
|
|
807
|
+
setImmediate(next, errHndl.getErrMsg(error));
|
|
808
|
+
});
|
|
809
|
+
self.streamGet(inPath, os, next);
|
|
810
|
+
} else {
|
|
811
|
+
setImmediate(next, err);
|
|
812
|
+
}
|
|
813
|
+
} else {
|
|
814
|
+
log.verbose("novacom#Session()#get()", "sftpGet()::done");
|
|
815
|
+
setImmediate(next);
|
|
816
|
+
}
|
|
817
|
+
});
|
|
818
|
+
},
|
|
819
|
+
|
|
820
|
+
/**
|
|
821
|
+
* Read a file from the device via ssh stream
|
|
822
|
+
* @param {String} inPath the device file path to be read
|
|
823
|
+
* @param {WritableStream} outStream host-side destination to copy the file into
|
|
824
|
+
* @param {Function} next commonJS callback invoked upon completion or failure
|
|
825
|
+
*/
|
|
826
|
+
streamGet: function(inPath, outStream, next) {
|
|
827
|
+
log.verbose('novacom#Session()#streamGet()', "streaming from device:" + inPath);
|
|
828
|
+
const cmd = '/bin/cat ' + inPath;
|
|
829
|
+
this.run(cmd, null /* stdin*/ , outStream /* stdout*/ , process.stderr /* stderr*/ , next);
|
|
830
|
+
},
|
|
831
|
+
|
|
832
|
+
/**
|
|
833
|
+
* Download file on the device via sftp
|
|
834
|
+
* @param {String} inPath location on the device
|
|
835
|
+
* @param {String} outPath location on the host
|
|
836
|
+
* @param {Function} next common-js callback
|
|
837
|
+
*/
|
|
838
|
+
sftpGet: function(inPath, outPath, next) {
|
|
839
|
+
log.verbose("novacom#Session()#sftpGet()", "target:" + inPath + " => " + "host:" + outPath);
|
|
840
|
+
const self = this;
|
|
841
|
+
self._checkSftp(next);
|
|
842
|
+
async.series({
|
|
843
|
+
transfer: function(next) {
|
|
844
|
+
self.ssh.sftp(function(err, sftp) {
|
|
845
|
+
if (err) {
|
|
846
|
+
setImmediate(next, err);
|
|
847
|
+
return;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
const readStream = sftp.createReadStream(inPath),
|
|
851
|
+
writeStream = fs.createWriteStream(outPath);
|
|
852
|
+
|
|
853
|
+
readStream.on('close', function() {
|
|
854
|
+
sftp.end();
|
|
855
|
+
setImmediate(next);
|
|
856
|
+
});
|
|
857
|
+
|
|
858
|
+
// Exit when the remote process has terminated
|
|
859
|
+
readStream.on('exit', function(code, signal) {
|
|
860
|
+
err = makeExecError('sftpGet', code, signal);
|
|
861
|
+
setImmediate(next, err);
|
|
862
|
+
});
|
|
863
|
+
|
|
864
|
+
readStream.on('error', function(error) {
|
|
865
|
+
log.verbose("novacom#Session()#sftpGet()", "error:", error);
|
|
866
|
+
setImmediate(next, error);
|
|
867
|
+
});
|
|
868
|
+
|
|
869
|
+
readStream.pipe(writeStream);
|
|
870
|
+
});
|
|
871
|
+
}
|
|
872
|
+
}, function(err) {
|
|
873
|
+
setImmediate(next, err);
|
|
874
|
+
});
|
|
875
|
+
},
|
|
876
|
+
|
|
877
|
+
/**
|
|
878
|
+
* Run a command on the device
|
|
879
|
+
* @param {String} cmd the device command to run
|
|
880
|
+
* @param {stream.ReadableStream} stdin given as novacom process stdin
|
|
881
|
+
* @param {stream.WritableStream} stdout given as novacom process stdout
|
|
882
|
+
* @param {stream.WritableStream} stderr given as novacom process stderr
|
|
883
|
+
* @param {Function} next commonJS callback invoked upon completion or failure
|
|
884
|
+
*/
|
|
885
|
+
run: function(cmd, stdin, stdout, stderr, next) {
|
|
886
|
+
this.run_ssh(cmd, {}, stdin, stdout, stderr, next);
|
|
887
|
+
},
|
|
888
|
+
|
|
889
|
+
/**
|
|
890
|
+
* Run a command with exec option on the device
|
|
891
|
+
* @param {String} cmd the device command to run
|
|
892
|
+
* @param {Object} opt given as exec option
|
|
893
|
+
* @param {stream.ReadableStream} stdin given as novacom process stdin
|
|
894
|
+
* @param {stream.WritableStream} stdout given as novacom process stdout
|
|
895
|
+
* @param {stream.WritableStream} stderr given as novacom process stderr
|
|
896
|
+
* @param {Function} next commonJS callback invoked upon completion or failure
|
|
897
|
+
*/
|
|
898
|
+
runWithOption: function(cmd, opt, stdin, stdout, stderr, next) {
|
|
899
|
+
this.run_ssh(cmd, opt, stdin, stdout, stderr, next);
|
|
900
|
+
},
|
|
901
|
+
|
|
902
|
+
/**
|
|
903
|
+
* Run a command on the device
|
|
904
|
+
* @param {String} cmd the device command to run
|
|
905
|
+
* @param {Object} opt given as exec option
|
|
906
|
+
* @param {stream.ReadableStream} stdin given as novacom process stdin
|
|
907
|
+
* @param {stream.WritableStream} stdout given as novacom process stdout
|
|
908
|
+
* @param {stream.WritableStream} stderr given as novacom process stderr
|
|
909
|
+
* @param {Function} next commonJS callback invoked upon completion or failure
|
|
910
|
+
*/
|
|
911
|
+
run_ssh: function(cmd, opt, stdin, stdout, stderr, next) {
|
|
912
|
+
log.info("novacom#Session()#run()", "cmd:" + cmd + ", opt:" + JSON.stringify(opt));
|
|
913
|
+
if (typeof next !== 'function') {
|
|
914
|
+
throw errHndl.getErrMsg("MISSING_CALLBACK", "next", util.inspect(next));
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
// plumb output
|
|
918
|
+
const write = {},
|
|
919
|
+
obj = {};
|
|
920
|
+
let orgErrMsg;
|
|
921
|
+
|
|
922
|
+
if (!stdout) {
|
|
923
|
+
log.silly("novacom#Session()#run()", "stdout: none");
|
|
924
|
+
write.stdout = function() {};
|
|
925
|
+
} else if (stdout instanceof stream.Stream) {
|
|
926
|
+
log.silly("novacom#Session()#run()", "stdout: stream");
|
|
927
|
+
write.stdout = stdout.write;
|
|
928
|
+
obj.stdout = stdout;
|
|
929
|
+
} else if (stdout instanceof Function) {
|
|
930
|
+
log.silly("novacom#Session()#run()", "stdout: function");
|
|
931
|
+
write.stdout = stdout;
|
|
932
|
+
} else {
|
|
933
|
+
return setImmediate(next, errHndl.getErrMsg("INVALID_VALUE", "stdout", util.inspect(stdout)));
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
if (!stderr) {
|
|
937
|
+
log.silly("novacom#Session()#run()", "stderr: none");
|
|
938
|
+
write.stderr = function() {};
|
|
939
|
+
} else if (stderr instanceof stream.Stream) {
|
|
940
|
+
log.silly("novacom#Session()#run()", "stderr: stream");
|
|
941
|
+
write.stderr = stderr.write;
|
|
942
|
+
obj.stderr = stderr;
|
|
943
|
+
} else if (stderr instanceof Function) {
|
|
944
|
+
log.silly("novacom#Session()#run()", "stderr: function");
|
|
945
|
+
write.stderr = stderr;
|
|
946
|
+
} else {
|
|
947
|
+
return setImmediate(next, errHndl.getErrMsg("INVALID_VALUE", "stderr", util.inspect(stderr)));
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
// execute command
|
|
951
|
+
this.ssh.exec(cmd, opt, (function(err, chStream) {
|
|
952
|
+
log.silly("novacom#Session()#run()", "exec cmd:" + cmd + ", opt:" + JSON.stringify(opt) + ", err:" + err);
|
|
953
|
+
if (err) {
|
|
954
|
+
return setImmediate(next, err);
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
// manual pipe(): handle & divert data chunks
|
|
958
|
+
chStream.on('data', function(data, extended) {
|
|
959
|
+
extended = extended || 'stdout';
|
|
960
|
+
log.verbose("novacom#Session()#run()", "on data (" + extended + ")");
|
|
961
|
+
write[extended].bind(obj[extended])(data);
|
|
962
|
+
}).stderr.on('data', function(data) {
|
|
963
|
+
log.verbose("novacom#Session()#run()", "on data (stderr)");
|
|
964
|
+
orgErrMsg = data.toString();
|
|
965
|
+
});
|
|
966
|
+
|
|
967
|
+
// manual pipe(): handle EOF
|
|
968
|
+
chStream.on('end', function() {
|
|
969
|
+
log.silly("novacom#Session()#run()", "event EOF from (cmd:" + cmd + ")");
|
|
970
|
+
if ((stdout !== process.stdout) && (stdout instanceof stream.Stream)) {
|
|
971
|
+
stdout.end();
|
|
972
|
+
}
|
|
973
|
+
if ((stderr !== process.stderr) && (stderr instanceof stream.Stream)) {
|
|
974
|
+
stderr.end();
|
|
975
|
+
}
|
|
976
|
+
});
|
|
977
|
+
|
|
978
|
+
// Exit when the remote process has terminated
|
|
979
|
+
chStream.on('exit', function(code, signal) {
|
|
980
|
+
log.silly("novacom#Session()#run()", "event exit code:" + code + ', signal:' + signal + " (cmd:" + cmd + ")");
|
|
981
|
+
err = makeExecError(cmd, code, signal, orgErrMsg);
|
|
982
|
+
setImmediate(next, err);
|
|
983
|
+
});
|
|
984
|
+
|
|
985
|
+
// Exit if the 'exit' event was not
|
|
986
|
+
// received (dropbear <= 0.51)
|
|
987
|
+
chStream.on('close', function() {
|
|
988
|
+
log.silly("novacom#Session()#run()", "event close (cmd:" + cmd + ")");
|
|
989
|
+
if (err === undefined) {
|
|
990
|
+
setImmediate(next);
|
|
991
|
+
}
|
|
992
|
+
});
|
|
993
|
+
|
|
994
|
+
if (stdin) {
|
|
995
|
+
stdin.pipe(chStream);
|
|
996
|
+
log.verbose("novacom#Session()#run()", "resuming input");
|
|
997
|
+
}
|
|
998
|
+
}));
|
|
999
|
+
},
|
|
1000
|
+
|
|
1001
|
+
/**
|
|
1002
|
+
* Run a command on the device considerless return stdout
|
|
1003
|
+
* @param {String} cmd the device command to run
|
|
1004
|
+
* @param {Function} callback invoked upon exit event
|
|
1005
|
+
* @param {Function} next commonJS callback invoked upon completion or failure
|
|
1006
|
+
*/
|
|
1007
|
+
runNoHangup: function(cmd, cbData, cbExit, next) {
|
|
1008
|
+
this.runNoHangup_ssh(cmd, cbData, cbExit, next);
|
|
1009
|
+
},
|
|
1010
|
+
|
|
1011
|
+
/**
|
|
1012
|
+
* Run a command on the device considerless return stdout
|
|
1013
|
+
* @param {String} cmd the device command to run
|
|
1014
|
+
* @param {Function} callback invoked upon exit event
|
|
1015
|
+
* @param {Function} next commonJS callback invoked upon completion or failure
|
|
1016
|
+
*/
|
|
1017
|
+
runNoHangup_ssh: function(cmd, cbData, cbExit, next) {
|
|
1018
|
+
log.info("novacom#Session()#runNoHangup()", "cmd=" + cmd);
|
|
1019
|
+
if (arguments.length < 2) {
|
|
1020
|
+
throw errHndl.getErrMsg("MISSING_CALLBACK", "next");
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
for (const arg in arguments) {
|
|
1024
|
+
if (typeof arguments[arg] === 'undefined') {
|
|
1025
|
+
delete arguments[arg];
|
|
1026
|
+
arguments.length--;
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
switch (arguments.length) {
|
|
1031
|
+
case 2:
|
|
1032
|
+
next = cbData;
|
|
1033
|
+
cbData = cbExit = null;
|
|
1034
|
+
break;
|
|
1035
|
+
case 3:
|
|
1036
|
+
next = cbExit;
|
|
1037
|
+
cbExit = cbData;
|
|
1038
|
+
cbData = null;
|
|
1039
|
+
break;
|
|
1040
|
+
default:
|
|
1041
|
+
break;
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
if (typeof next !== 'function') {
|
|
1045
|
+
throw errHndl.getErrMsg("MISSING_CALLBACK", "next", util.inspect(next));
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
// execute command
|
|
1049
|
+
this.ssh.exec(cmd, (function(err, _stream) {
|
|
1050
|
+
log.verbose("novacom#Session()#run()", "exec cmd:" + cmd + ", err:" + err);
|
|
1051
|
+
if (err) {
|
|
1052
|
+
return setImmediate(next, err);
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
_stream.on('data', function(data) {
|
|
1056
|
+
const str = (Buffer.isBuffer(data)) ? data.toString() : data;
|
|
1057
|
+
log.verbose("novacom#Session()#runNoHangup()#onData", str);
|
|
1058
|
+
if (cbData) cbData(data);
|
|
1059
|
+
}).stderr.on('data', function(data) {
|
|
1060
|
+
const str = (Buffer.isBuffer(data)) ? data.toString() : data;
|
|
1061
|
+
log.verbose("novacom#Session()#runNoHangup()#onData#stderr#", str);
|
|
1062
|
+
if (cbData) cbData(data);
|
|
1063
|
+
});
|
|
1064
|
+
|
|
1065
|
+
// Exit when the remote process has terminated
|
|
1066
|
+
if (cbExit) {
|
|
1067
|
+
_stream.on('exit', function(code, signal) {
|
|
1068
|
+
log.verbose("novacom#Session()#runNoHangup()", "event exit code=" + code + ', signal=' + signal + " (cmd: " + cmd + ")");
|
|
1069
|
+
err = makeExecError(cmd, code, signal);
|
|
1070
|
+
cbExit(err);
|
|
1071
|
+
});
|
|
1072
|
+
}
|
|
1073
|
+
setImmediate(next);
|
|
1074
|
+
}));
|
|
1075
|
+
},
|
|
1076
|
+
|
|
1077
|
+
/**
|
|
1078
|
+
* Forward the given device port on the host.
|
|
1079
|
+
* As any other public method, this one can be called
|
|
1080
|
+
* only once the ssh session has emitted the 'ready'
|
|
1081
|
+
* event, so as part of the Session()#next callback.
|
|
1082
|
+
* @public
|
|
1083
|
+
* @param {Function} next commonJS callback invoked upon completion or failure
|
|
1084
|
+
*/
|
|
1085
|
+
forward: function(devicePort, localPort, forwardName, next) {
|
|
1086
|
+
log.info("novacom#Session()#forward()", "devicePort:", devicePort, ", localPort:", localPort);
|
|
1087
|
+
const session = this;
|
|
1088
|
+
let forwardInUse = false,
|
|
1089
|
+
registerName = null;
|
|
1090
|
+
|
|
1091
|
+
if (typeof forwardName === 'function') {
|
|
1092
|
+
next = forwardName;
|
|
1093
|
+
} else if (forwardName) {
|
|
1094
|
+
registerName = forwardName;
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
if (localPort !== 0) {
|
|
1098
|
+
if (session.forwardedPorts.indexOf({
|
|
1099
|
+
name: registerName,
|
|
1100
|
+
local: localPort,
|
|
1101
|
+
device: devicePort
|
|
1102
|
+
}) > 0) {
|
|
1103
|
+
forwardInUse = true;
|
|
1104
|
+
}
|
|
1105
|
+
} else if (session.forwardedPorts.filter(function(forwardItem) {
|
|
1106
|
+
return (forwardItem.device === devicePort && forwardItem.name === registerName);
|
|
1107
|
+
}).length > 0) {
|
|
1108
|
+
forwardInUse = true;
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
if (forwardInUse) {
|
|
1112
|
+
return setImmediate(next);
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
const localServer = net.createServer(function(inCnx) {
|
|
1116
|
+
log.info("novacom#Session()#forward()", "new client, localPort:", localPort);
|
|
1117
|
+
log.verbose("novacom#Session()#forward()", "new client, from: " + inCnx.remoteAddress + ':' + inCnx.remotePort);
|
|
1118
|
+
|
|
1119
|
+
inCnx.on('error', function(err) {
|
|
1120
|
+
log.verbose("novacom#Session()#forward()", "inCnx::error, err::" + err);
|
|
1121
|
+
});
|
|
1122
|
+
|
|
1123
|
+
// Open the outbound connection on the device to match the incoming client.
|
|
1124
|
+
session.ssh.forwardOut("127.0.0.1" /* srcAddr*/ , inCnx.remotePort /* srcPort*/ , "127.0.0.1" /* dstAddr*/ , devicePort /* dstPort*/ , function(err, outCnx) {
|
|
1125
|
+
if (err) {
|
|
1126
|
+
console.log("novacom#Session()#forward()", "failed forwarding client localPort:",
|
|
1127
|
+
localPort, "(inCnx.remotePort:", inCnx.remotePort, ")=> devicePort:", devicePort);
|
|
1128
|
+
log.warn("novacom#Session()#forward()", "failed forwarding client localPort:",
|
|
1129
|
+
localPort, "=> devicePort:", devicePort);
|
|
1130
|
+
inCnx.destroy();
|
|
1131
|
+
return;
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
log.info("novacom#Session()#forward()", "connected, devicePort:", devicePort);
|
|
1135
|
+
inCnx.on('data', function(data) {
|
|
1136
|
+
if (outCnx.writable && outCnx.writable === true) {
|
|
1137
|
+
if (outCnx.write(data) === false) {
|
|
1138
|
+
inCnx.pause();
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1141
|
+
});
|
|
1142
|
+
|
|
1143
|
+
inCnx.on('close', function(had_err) {
|
|
1144
|
+
log.verbose("novacom#Session()#forward()", "inCnx::close, had_err:", had_err);
|
|
1145
|
+
outCnx.destroy();
|
|
1146
|
+
});
|
|
1147
|
+
|
|
1148
|
+
outCnx.on('drain', function() {
|
|
1149
|
+
inCnx.resume();
|
|
1150
|
+
});
|
|
1151
|
+
|
|
1152
|
+
outCnx.on('data', function(data) {
|
|
1153
|
+
inCnx.write(data);
|
|
1154
|
+
});
|
|
1155
|
+
|
|
1156
|
+
outCnx.on('close', function(had_err) {
|
|
1157
|
+
log.verbose("novacom#Session()#forward()", "outCnx::close, had_err:", had_err);
|
|
1158
|
+
});
|
|
1159
|
+
});
|
|
1160
|
+
});
|
|
1161
|
+
|
|
1162
|
+
session.ssh.on('close', function() {
|
|
1163
|
+
localServer.close();
|
|
1164
|
+
});
|
|
1165
|
+
|
|
1166
|
+
try {
|
|
1167
|
+
localServer.listen(localPort, null, (function() {
|
|
1168
|
+
const localServerPort = localServer.address().port;
|
|
1169
|
+
session.forwardedPorts.push({
|
|
1170
|
+
name: registerName,
|
|
1171
|
+
local: localServerPort,
|
|
1172
|
+
device: devicePort
|
|
1173
|
+
});
|
|
1174
|
+
setImmediate(next);
|
|
1175
|
+
}));
|
|
1176
|
+
} catch (err) {
|
|
1177
|
+
setImmediate(next, err);
|
|
1178
|
+
}
|
|
1179
|
+
},
|
|
1180
|
+
|
|
1181
|
+
getLocalPortByName: function(queryName) {
|
|
1182
|
+
const session = this;
|
|
1183
|
+
let found = null;
|
|
1184
|
+
session.forwardedPorts.forEach(function(portItem) {
|
|
1185
|
+
if (portItem.name === queryName) {
|
|
1186
|
+
found = portItem.local;
|
|
1187
|
+
return;
|
|
1188
|
+
}
|
|
1189
|
+
});
|
|
1190
|
+
return found;
|
|
1191
|
+
},
|
|
1192
|
+
|
|
1193
|
+
runHostedAppServer: function(url, next) {
|
|
1194
|
+
server.runServer(url, 0, function(err, serverInfo) {
|
|
1195
|
+
if (serverInfo && serverInfo.port) {
|
|
1196
|
+
this.setHostedAppServerPort(serverInfo.port);
|
|
1197
|
+
}
|
|
1198
|
+
next(err);
|
|
1199
|
+
}.bind(this));
|
|
1200
|
+
},
|
|
1201
|
+
|
|
1202
|
+
setHostedAppServerPort: function(port) {
|
|
1203
|
+
this.hostedAppServerPort = port;
|
|
1204
|
+
},
|
|
1205
|
+
|
|
1206
|
+
getHostedAppServerPort: function() {
|
|
1207
|
+
return this.hostedAppServerPort;
|
|
1208
|
+
}
|
|
1209
|
+
};
|
|
1210
|
+
|
|
1211
|
+
if (typeof module !== 'undefined' && module.exports) {
|
|
1212
|
+
module.exports = novacom;
|
|
1213
|
+
}
|
|
1214
|
+
}());
|