Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

iotexplorer-ui-dev-config

Package Overview
Dependencies
Maintainers
4
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iotexplorer-ui-dev-config - npm Package Compare versions

Comparing version 1.7.14 to 1.7.15

9

lib/defaultConfigs.d.ts

@@ -67,2 +67,8 @@ import { BindingBootConfigConfig, BleHardwareGuideConfig } from './UiDevTypes';

};
Qrcode: {
message: string;
btnText: string;
bgImg: string;
guide: string;
};
};

@@ -88,4 +94,7 @@ export declare const EMPTY_BIND_BOOT_CONFIG: {

};
export declare const DEFAULT_QRCODE_DISPLAY_GUIDE: {
message: string;
};
export declare const getProductIconUrl: (somethingInfo: any, fillWithDefault?: boolean) => string;
export declare function bindingBootConfig2BleHardwareGuideConfig(bindingBootConfig: BindingBootConfigConfig): BleHardwareGuideConfig;
export declare function bleHardwareGuideConfig2BindingBootConfig(hardwareGuide: BleHardwareGuideConfig): BindingBootConfigConfig;

2

lib/defaultConfigs.js

@@ -1,2 +0,2 @@

"use strict";function bindingBootConfig2BleHardwareGuideConfig(e){return e||(e={}),{message:e.resetTooltip,bgImg:e.bgImg,btnText:"",guide:e.guideTooltip,confirmRequired:+e.confirmRequired,userConfirmText:e.confirmTooltip,failText:e.failTooltip}}function bleHardwareGuideConfig2BindingBootConfig(e){return e||(e={}),{confirmRequired:String(e.confirmRequired),guideTooltip:e.guide,resetTooltip:e.message,confirmTooltip:e.userConfirmText,failTooltip:e.failText,bgImg:e.bgImg}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.bleHardwareGuideConfig2BindingBootConfig=exports.bindingBootConfig2BleHardwareGuideConfig=exports.getProductIconUrl=exports.DEFAULT_CONNECT_AP_GUIDE=exports.EMPTY_CONNECT_AP_GUIDE=exports.EMPTY_BIND_BOOT_CONFIG=exports.DEFAULT_HARDWARE_GUIDE=exports.EMPTY_HARDWARE_GUIDE=exports.DEFAULT_HARDWARE_GUIDE_IMAGE=exports.DEFAULT_PRODUCT_ICON=void 0,exports.DEFAULT_PRODUCT_ICON="https://main.qcloudimg.com/raw/5692deb2b43bdd5c8c7768b1205d526d.png",exports.DEFAULT_HARDWARE_GUIDE_IMAGE="https://main.qcloudimg.com/raw/9bd7b9e866201e2cac1006c3ccb4c002.jpg",exports.EMPTY_HARDWARE_GUIDE={message:"",btnText:"",bgImg:"",guide:""},exports.DEFAULT_HARDWARE_GUIDE={SmartConfig:{message:"1. 接通设备电源。\n2. 长按复位键(开关),指示灯快闪。\n3. 点击“下一步”开始一键配网。",btnText:"下一步",bgImg:exports.DEFAULT_HARDWARE_GUIDE_IMAGE,guide:"设备连通电源后,将设备设置为一键配网模式,直到指示灯闪烁"},SimpleConfig:{message:"1. 接通设备电源。\n2. 长按复位键(开关),指示灯快闪。\n3. 点击“下一步”开始一键配网。",btnText:"下一步",bgImg:exports.DEFAULT_HARDWARE_GUIDE_IMAGE,guide:"设备连通电源后,将设备设置为一键配网模式,直到指示灯闪烁"},SoftAp:{message:"1. 接通设备电源。\n2. 长按复位键(开关),指示灯慢闪。\n3. 点击“下一步”开始热点配网。",btnText:"下一步",bgImg:exports.DEFAULT_HARDWARE_GUIDE_IMAGE,guide:"设备连通电源后,将设备设置为热点配网模式,直到指示灯闪烁。"},AirKiss:{message:"1. 接通设备电源。\n2. 长按复位键(开关),指示灯慢闪。\n3. 点击“下一步”开始微信一键配网。",btnText:"下一步",bgImg:exports.DEFAULT_HARDWARE_GUIDE_IMAGE,guide:"设备连通电源后,将设备设置为微信一键配网模式,直到指示灯闪烁。"},BleCombo:{message:"1. 接通设备电源。\n2. 长按复位键(开关),指示灯慢闪。\n3. 点击“下一步”开始蓝牙辅助配网。",btnText:"下一步",bgImg:exports.DEFAULT_HARDWARE_GUIDE_IMAGE,guide:"设备连通电源后,将设备设置为蓝牙辅助配网模式,直到指示灯闪烁。"},BleComboLLSync:{message:"1. 接通设备电源。\n2. 长按复位键(开关),指示灯慢闪。\n3. 点击“下一步”开始蓝牙辅助配网。",btnText:"下一步",bgImg:exports.DEFAULT_HARDWARE_GUIDE_IMAGE,guide:"设备连通电源后,将设备设置为蓝牙辅助配网模式,直到指示灯闪烁。"},SubDeviceBinding:{message:"请长按开关键5秒以上,直到蓝灯快速闪烁后松开。",btnText:"下一步",bgImg:exports.DEFAULT_HARDWARE_GUIDE_IMAGE},CellularConfig:{guide:"请确保设备已正常供电",message:"1.接通设备电源。\n2.长按复位键(开关),直到指示灯闪烁",btnText:"扫描二维码",bgImg:exports.DEFAULT_HARDWARE_GUIDE_IMAGE},LLSync:{confirmRequired:0,message:"请打开手机蓝牙功能,并将待绑定的BLE设备置于可发现状态。",userConfirmText:"请根据BLE设备提示完成绑定确认操作。",guide:"1.设备保持电量充足。\n2.长按复位键(开关),重新进入配对。",failText:"1. 请确认蓝牙设备电量是否充足。\n2. 请确认手机蓝牙功能已开启。\n3. 如仍未成功,请尝试重启手机与设备蓝牙。",bgImg:"https://main.qcloudimg.com/raw/2751e7f5d9fb349099b017a0359d30ed.png",btnText:"下一步"}},exports.EMPTY_BIND_BOOT_CONFIG={confirmRequired:"0",guideTooltip:"",confirmTooltip:"",failTooltip:"",bgImg:""},exports.EMPTY_CONNECT_AP_GUIDE={message:"",btnText:"",apName:"",showPasswordBox:!0},exports.DEFAULT_CONNECT_AP_GUIDE={message:"1. 将手机WiFi连接到如下图所示名称的设备热点。\n2. 点击“下一步”在小程序内进行连接。",btnText:"下一步",apName:"",showPasswordBox:!0},exports.getProductIconUrl=function(e,o){void 0===o&&(o=!0),e||(e={});var i=e.IconUrlGrid||e.IconUrl;return!i&&o?exports.DEFAULT_PRODUCT_ICON:i},exports.bindingBootConfig2BleHardwareGuideConfig=bindingBootConfig2BleHardwareGuideConfig,exports.bleHardwareGuideConfig2BindingBootConfig=bleHardwareGuideConfig2BindingBootConfig;
"use strict";function bindingBootConfig2BleHardwareGuideConfig(e){return e||(e={}),{message:e.resetTooltip,bgImg:e.bgImg,btnText:"",guide:e.guideTooltip,confirmRequired:+e.confirmRequired,userConfirmText:e.confirmTooltip,failText:e.failTooltip}}function bleHardwareGuideConfig2BindingBootConfig(e){return e||(e={}),{confirmRequired:String(e.confirmRequired),guideTooltip:e.guide,resetTooltip:e.message,confirmTooltip:e.userConfirmText,failTooltip:e.failText,bgImg:e.bgImg}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.bleHardwareGuideConfig2BindingBootConfig=exports.bindingBootConfig2BleHardwareGuideConfig=exports.getProductIconUrl=exports.DEFAULT_QRCODE_DISPLAY_GUIDE=exports.DEFAULT_CONNECT_AP_GUIDE=exports.EMPTY_CONNECT_AP_GUIDE=exports.EMPTY_BIND_BOOT_CONFIG=exports.DEFAULT_HARDWARE_GUIDE=exports.EMPTY_HARDWARE_GUIDE=exports.DEFAULT_HARDWARE_GUIDE_IMAGE=exports.DEFAULT_PRODUCT_ICON=void 0,exports.DEFAULT_PRODUCT_ICON="https://main.qcloudimg.com/raw/5692deb2b43bdd5c8c7768b1205d526d.png",exports.DEFAULT_HARDWARE_GUIDE_IMAGE="https://main.qcloudimg.com/raw/9bd7b9e866201e2cac1006c3ccb4c002.jpg",exports.EMPTY_HARDWARE_GUIDE={message:"",btnText:"",bgImg:"",guide:""},exports.DEFAULT_HARDWARE_GUIDE={SmartConfig:{message:"1. 接通设备电源。\n2. 长按复位键(开关),指示灯快闪。\n3. 点击“下一步”开始一键配网。",btnText:"下一步",bgImg:exports.DEFAULT_HARDWARE_GUIDE_IMAGE,guide:"设备连通电源后,将设备设置为一键配网模式,直到指示灯闪烁"},SimpleConfig:{message:"1. 接通设备电源。\n2. 长按复位键(开关),指示灯快闪。\n3. 点击“下一步”开始一键配网。",btnText:"下一步",bgImg:exports.DEFAULT_HARDWARE_GUIDE_IMAGE,guide:"设备连通电源后,将设备设置为一键配网模式,直到指示灯闪烁"},SoftAp:{message:"1. 接通设备电源。\n2. 长按复位键(开关),指示灯慢闪。\n3. 点击“下一步”开始热点配网。",btnText:"下一步",bgImg:exports.DEFAULT_HARDWARE_GUIDE_IMAGE,guide:"设备连通电源后,将设备设置为热点配网模式,直到指示灯闪烁。"},AirKiss:{message:"1. 接通设备电源。\n2. 长按复位键(开关),指示灯慢闪。\n3. 点击“下一步”开始微信一键配网。",btnText:"下一步",bgImg:exports.DEFAULT_HARDWARE_GUIDE_IMAGE,guide:"设备连通电源后,将设备设置为微信一键配网模式,直到指示灯闪烁。"},BleCombo:{message:"1. 接通设备电源。\n2. 长按复位键(开关),指示灯慢闪。\n3. 点击“下一步”开始蓝牙辅助配网。",btnText:"下一步",bgImg:exports.DEFAULT_HARDWARE_GUIDE_IMAGE,guide:"设备连通电源后,将设备设置为蓝牙辅助配网模式,直到指示灯闪烁。"},BleComboLLSync:{message:"1. 接通设备电源。\n2. 长按复位键(开关),指示灯慢闪。\n3. 点击“下一步”开始蓝牙辅助配网。",btnText:"下一步",bgImg:exports.DEFAULT_HARDWARE_GUIDE_IMAGE,guide:"设备连通电源后,将设备设置为蓝牙辅助配网模式,直到指示灯闪烁。"},SubDeviceBinding:{message:"请长按开关键5秒以上,直到蓝灯快速闪烁后松开。",btnText:"下一步",bgImg:exports.DEFAULT_HARDWARE_GUIDE_IMAGE},CellularConfig:{guide:"请确保设备已正常供电",message:"1.接通设备电源。\n2.长按复位键(开关),直到指示灯闪烁",btnText:"扫描二维码",bgImg:exports.DEFAULT_HARDWARE_GUIDE_IMAGE},LLSync:{confirmRequired:0,message:"请打开手机蓝牙功能,并将待绑定的BLE设备置于可发现状态。",userConfirmText:"请根据BLE设备提示完成绑定确认操作。",guide:"1.设备保持电量充足。\n2.长按复位键(开关),重新进入配对。",failText:"1. 请确认蓝牙设备电量是否充足。\n2. 请确认手机蓝牙功能已开启。\n3. 如仍未成功,请尝试重启手机与设备蓝牙。",bgImg:"https://main.qcloudimg.com/raw/2751e7f5d9fb349099b017a0359d30ed.png",btnText:"下一步"},Qrcode:{message:"1. 接通设备电源。\n2. 长按复位键(开关),指示灯快闪。\n3. 点击“下一步”开始二维码配网。",btnText:"下一步",bgImg:exports.DEFAULT_HARDWARE_GUIDE_IMAGE,guide:"设备连通电源后,通过电源键将设备设置为二维码配网模式,直到指示灯闪烁。"}},exports.EMPTY_BIND_BOOT_CONFIG={confirmRequired:"0",guideTooltip:"",confirmTooltip:"",failTooltip:"",bgImg:""},exports.EMPTY_CONNECT_AP_GUIDE={message:"",btnText:"",apName:"",showPasswordBox:!0},exports.DEFAULT_CONNECT_AP_GUIDE={message:"1. 将手机WiFi连接到如下图所示名称的设备热点。\n2. 点击“下一步”在小程序内进行连接。",btnText:"下一步",apName:"",showPasswordBox:!0},exports.DEFAULT_QRCODE_DISPLAY_GUIDE={message:"请将二维码正对摄像机镜头,并保持15cm左右距离"},exports.getProductIconUrl=function(e,o){void 0===o&&(o=!0),e||(e={});var i=e.IconUrlGrid||e.IconUrl;return!i&&o?exports.DEFAULT_PRODUCT_ICON:i},exports.bindingBootConfig2BleHardwareGuideConfig=bindingBootConfig2BleHardwareGuideConfig,exports.bleHardwareGuideConfig2BindingBootConfig=bleHardwareGuideConfig2BindingBootConfig;
//# sourceMappingURL=defaultConfigs.js.map

@@ -1,2 +0,2 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.initializeUIDevConfig=void 0;var tslib_1=require("tslib"),UiDevTypes_1=require("./UiDevTypes"),defaultConfigs_1=require("./defaultConfigs"),utils_1=require("./utils");exports.initializeUIDevConfig=function(i){void 0===i&&(i={});var e=tslib_1.__assign({},i);return e.Panel||(e.Panel={}),e.Panel.type||(e.Panel.type=UiDevTypes_1.PanelType.standard),"h5"===e.Panel.type&&(e.Panel.h5&&(!e.Panel.h5||e.Panel.h5.url||e.Panel.h5.release)||(e.Panel.type=UiDevTypes_1.PanelType.standard)),"free"!==e.Panel.type||e.Panel.free||(e.Panel.free={}),"standard"!==e.Panel.type||e.Panel.standard||(e.Panel.standard={theme:"standard",properties:[],bgImgId:"Default",navBar:{visible:!1},timingProject:!1}),e.Global||(e.Global={customizeControl:!1}),e.WifiSoftAP=utils_1.fillWithDefaults(e.WifiSoftAP,{hardwareGuide:defaultConfigs_1.DEFAULT_HARDWARE_GUIDE.SoftAp,connectApGuide:defaultConfigs_1.DEFAULT_CONNECT_AP_GUIDE}),e.WifiSmartConfig=utils_1.fillWithDefaults(e.WifiSmartConfig,{hardwareGuide:defaultConfigs_1.DEFAULT_HARDWARE_GUIDE.SmartConfig}),e.WifiSimpleConfig=utils_1.fillWithDefaults(e.WifiSimpleConfig,{hardwareGuide:defaultConfigs_1.DEFAULT_HARDWARE_GUIDE.SimpleConfig}),e.WifiAirkiss=utils_1.fillWithDefaults(e.WifiAirkiss,{hardwareGuide:defaultConfigs_1.DEFAULT_HARDWARE_GUIDE.AirKiss}),e.WifiBle=utils_1.fillWithDefaults(e.WifiBle,{hardwareGuide:defaultConfigs_1.DEFAULT_HARDWARE_GUIDE.BleCombo}),e.SubDeviceBinding=utils_1.fillWithDefaults(e.SubDeviceBinding,{hardwareGuide:defaultConfigs_1.DEFAULT_HARDWARE_GUIDE.SubDeviceBinding}),e.WifiLLSyncBle=utils_1.fillWithDefaults(e.WifiLLSyncBle,{hardwareGuide:defaultConfigs_1.DEFAULT_HARDWARE_GUIDE.BleComboLLSync}),e.BleConfig||(e.BleConfig={}),e.BleConfig.protocolType||(e.BleConfig.protocolType=UiDevTypes_1.BleProtocolType.standard),!e.BleConfig.hardwareGuide&&e.BleConfig.bindingBootConfig&&(e.BleConfig.hardwareGuide=defaultConfigs_1.bindingBootConfig2BleHardwareGuideConfig(e.BleConfig.bindingBootConfig)),e.BleConfig.hardwareGuide=utils_1.fillWithDefaults(e.BleConfig.hardwareGuide,defaultConfigs_1.DEFAULT_HARDWARE_GUIDE.LLSync),e.BleConfig.bindingBootConfig=utils_1.fillWithDefaults(e.BleConfig.bindingBootConfig,defaultConfigs_1.bleHardwareGuideConfig2BindingBootConfig(e.BleConfig.hardwareGuide)),e.CellularConfig=utils_1.fillWithDefaults(e.CellularConfig,{hardwareGuide:defaultConfigs_1.DEFAULT_HARDWARE_GUIDE.CellularConfig}),Array.isArray(e.WifiConfTypeList)||(e.WifiConfTypeList=[UiDevTypes_1.WifiConfType.SmartConfig,UiDevTypes_1.WifiConfType.SoftAp,UiDevTypes_1.WifiConfType.AirKiss]),e.ShortCut||(e.ShortCut={powerSwitch:"",shortcut:[]}),e.AppAutomation||(e.AppAutomation={conditions:[],actions:[]}),e};
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.initializeUIDevConfig=void 0;var tslib_1=require("tslib"),UiDevTypes_1=require("./UiDevTypes"),defaultConfigs_1=require("./defaultConfigs"),utils_1=require("./utils");exports.initializeUIDevConfig=function(i){void 0===i&&(i={});var e=tslib_1.__assign({},i);return e.Panel||(e.Panel={}),e.Panel.type||(e.Panel.type=UiDevTypes_1.PanelType.standard),"h5"===e.Panel.type&&(e.Panel.h5&&(!e.Panel.h5||e.Panel.h5.url||e.Panel.h5.release)||(e.Panel.type=UiDevTypes_1.PanelType.standard)),"free"!==e.Panel.type||e.Panel.free||(e.Panel.free={}),"standard"!==e.Panel.type||e.Panel.standard||(e.Panel.standard={theme:"standard",properties:[],bgImgId:"Default",navBar:{visible:!1},timingProject:!1}),e.Global||(e.Global={customizeControl:!1}),e.WifiSoftAP=utils_1.fillWithDefaults(e.WifiSoftAP,{hardwareGuide:defaultConfigs_1.DEFAULT_HARDWARE_GUIDE.SoftAp,connectApGuide:defaultConfigs_1.DEFAULT_CONNECT_AP_GUIDE}),e.WifiSmartConfig=utils_1.fillWithDefaults(e.WifiSmartConfig,{hardwareGuide:defaultConfigs_1.DEFAULT_HARDWARE_GUIDE.SmartConfig}),e.WifiSimpleConfig=utils_1.fillWithDefaults(e.WifiSimpleConfig,{hardwareGuide:defaultConfigs_1.DEFAULT_HARDWARE_GUIDE.SimpleConfig}),e.WifiAirkiss=utils_1.fillWithDefaults(e.WifiAirkiss,{hardwareGuide:defaultConfigs_1.DEFAULT_HARDWARE_GUIDE.AirKiss}),e.WifiBle=utils_1.fillWithDefaults(e.WifiBle,{hardwareGuide:defaultConfigs_1.DEFAULT_HARDWARE_GUIDE.BleCombo}),e.SubDeviceBinding=utils_1.fillWithDefaults(e.SubDeviceBinding,{hardwareGuide:defaultConfigs_1.DEFAULT_HARDWARE_GUIDE.SubDeviceBinding}),e.WifiLLSyncBle=utils_1.fillWithDefaults(e.WifiLLSyncBle,{hardwareGuide:defaultConfigs_1.DEFAULT_HARDWARE_GUIDE.BleComboLLSync}),e.WifiQrcode=utils_1.fillWithDefaults(e.WifiQrcode,{hardwareGuide:defaultConfigs_1.DEFAULT_HARDWARE_GUIDE.Qrcode,qrcodeDisplayGuide:defaultConfigs_1.DEFAULT_QRCODE_DISPLAY_GUIDE}),e.BleConfig||(e.BleConfig={}),e.BleConfig.protocolType||(e.BleConfig.protocolType=UiDevTypes_1.BleProtocolType.standard),!e.BleConfig.hardwareGuide&&e.BleConfig.bindingBootConfig&&(e.BleConfig.hardwareGuide=defaultConfigs_1.bindingBootConfig2BleHardwareGuideConfig(e.BleConfig.bindingBootConfig)),e.BleConfig.hardwareGuide=utils_1.fillWithDefaults(e.BleConfig.hardwareGuide,defaultConfigs_1.DEFAULT_HARDWARE_GUIDE.LLSync),e.BleConfig.bindingBootConfig=utils_1.fillWithDefaults(e.BleConfig.bindingBootConfig,defaultConfigs_1.bleHardwareGuideConfig2BindingBootConfig(e.BleConfig.hardwareGuide)),e.CellularConfig=utils_1.fillWithDefaults(e.CellularConfig,{hardwareGuide:defaultConfigs_1.DEFAULT_HARDWARE_GUIDE.CellularConfig}),Array.isArray(e.WifiConfTypeList)||(e.WifiConfTypeList=[UiDevTypes_1.WifiConfType.SmartConfig,UiDevTypes_1.WifiConfType.SoftAp,UiDevTypes_1.WifiConfType.AirKiss]),e.ShortCut||(e.ShortCut={powerSwitch:"",shortcut:[]}),e.AppAutomation||(e.AppAutomation={conditions:[],actions:[]}),e};
//# sourceMappingURL=initializeUIDevConfig.js.map

@@ -10,2 +10,3 @@ export interface ProductUIDevConfig {

WifiLLSyncBle: ProductUIDevWifiBleConfig;
WifiQrcode: ProductUIDevWifiQrcodeConf;
SubDeviceBinding: ProductUIDevSubDeviceBindingConfig;

@@ -149,2 +150,8 @@ WifiConfTypeList: WifiConfType[];

}
export interface WifiConfigurationQrcodeDisplayGuide {
message: string;
}
export interface ProductUIDevWifiQrcodeConf extends DeviceConfConfig {
qrcodeDisplayGuide: WifiConfigurationQrcodeDisplayGuide;
}
export declare enum WifiConfType {

@@ -151,0 +158,0 @@ SoftAp = "softap",

{
"name": "iotexplorer-ui-dev-config",
"version": "1.7.14",
"version": "1.7.15",
"description": "",

@@ -22,3 +22,3 @@ "main": "lib/index.js",

},
"gitHead": "ef0e77bd73a83705430000eca73494d4d4de41b2"
"gitHead": "0c92285e103a6e2f6e25f7e920320ed578d11310"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc