
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
@ibuild-community/app-websdk
Advanced tools
$ npm i @ibuild-community/app-websdk --save
import websdk from "@ibuild-community/app-websdk"
//比如获取当前的位置信息
websdk.getCurrentPosition()
.then(value=>{
console.log(value);
})
.catch(ex=>{
console.error(ex);
})
close ()=>Promise 关闭当前页面title (title?:string)=>Promise<void|string> 设置或者获取页面的titlegetCurrentPosition ()=>Promise 获取当前的地理位置openImagePicker (option:ImagePickerOption={multiple:false,mediaType:"photo"})=>Promise<ImagePickerResult | Array<ImagePickerResult> | null> 选择设备上的文件,包括视频,照片等openScanModal (props?:QRScanModalProps)=>Promise | null> 二维码扫描
openCameraModal (props?:CameraProps)=>Promise | null> 拍摄视频/照片openAreaModal (props?:TreeModalProps)=>Promise | null> 区域选择
openCheckItemModal (props?:TreeModalProps)=>Promise | null> 分部分项选择
openSafetyCheckAreaModal (props?:TreeModalProps)=>Promise | null> 安全检查部位选
openQualityCheckAreaModal (props?:TreeModalProps)=>Promise | null> 质量检查部位选择
openTaskCheckAreaModal (props?:TreeModalProps)=>Promise | null> 进度任务流水段选择
openHiddenDangerModal (props?:TreeModalProps)=>Promise | null> 安全隐患选择
openSubContractorModal (props?:TreeModalProps)=>Promise | null> 分包单位选择
openMemberModal (props?:MemberModalProps)=>Promise | null> 项目人员选择
openRectificationMemberModal (props?:MemberModalProps)=>Promise | null> 整改人选择
openOrganizationModal (props?:OrganizationModalProps)=>Promise | null> 组织机构选择
mediaType "any" | "photo" | "video" 媒体类型multiple boolean 是否可以多选path stringwidth numberheight numbermime stringsize numbermodificationDate stringallphotovideovisible booleantransition?: **$Values<typeof TransitionType> ** modal切换动画barCodeTypes? $Values<typeof QRBarCodeType> [] 识别的二维码类型。默认为空,表示支持所有类型maskColor? string 蒙层背景颜色cornerColor? string扫描区转角线条颜色borderColor? string边线颜色loadingColor? string loading 颜色rectHeight? number 扫描区高度*rectWidth? number 扫描区宽度borderWidth? number 扫描区border宽度cornerBorderWidth? number 扫描区转角线条宽度cornerBorderLength? number 扫描去转角线条长度isLoading? boolean 是否显示loadingscanBarAnimateTime? number 扫描线动画时间scanBarColor? string 扫描线颜色scanBarMargin? number 扫描线marginisShowScanBar? boolean 是否显示扫描线topTipText? string 上部分提示文字bottomTipText? string 下部分提示文字visible booleantitle? stringmultiple? boolean 是否支持多选selectedDataSouce *Array 已经选择数据lastSelectedPath? Array 已选择数据的全路径historyKey? string 提供一个字符串key用以保存历史选择数据以实现数据分离,如果不传的将使用默认key对历史选择数据进行保存type?: **$Values<typeof CascadeSelectorType> ** 只有当type==0时才支持多选maxLevel?:number 一页最多显示多少列,超过将按单列现实 type==1时,默认为1;type==0时,默认为10initLevel?:number 初始化显示列 type==1时,默认为0;type==0时,默认为2transition? $Values<typeof TransitionType> 默认为horizontalonShown? FunctiononHidden? Function 禁止在IOS 在onHidden中调用alert0 只能选择到最后一层级1 *可以选择任一层级visible booleantitle? stringmultiple? boolean 是否支持多选selectedDataSouce *Array 已经选择数据lastSelectedPath? Array 已选择数据的全路径historyKey? string 提供一个字符串key用以保存历史选择数据以实现数据分离,如果不传的将使用默认key对历史选择数据进行保存onRequestClose function(selectedData?: Object[]|null):void 点击关闭、确定按钮或者选择完数据后触发。点击关闭或者确定按钮时selectedData为空transition? $Values<typeof TransitionType> 默认为horizontalonShown? FunctiononHidden? Function 禁止在IOS 在onHidden中调用alertvisible booleantype?: **$Values<typeof CascadeSelectorType> ** 只有当type==0时才支持多选title? stringlastSelectedPath? Array 已选择数据的全路径onChanged? ***function (path: Object[]) => void ** 每次选择数据改变触发transition? $Values<typeof TransitionType> 默认为horizontalonShown? FunctiononHidden? Function 禁止在IOS 在onHidden中调用alertFAQs
云筑智联 app websdk
We found that @ibuild-community/app-websdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.