Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
qcloud-iot-panel-component
Advanced tools
腾讯连连标准面板组件库,支持在 h5 面板和 Taro 小程序中使用。
yarn add qcloud-iot-panel-component
开始引用组件:
/* panel.tsx */
// 引入组件库的css
import 'qcloud-iot-panel-component/lib/index.css';
import { BoolWidget } from 'qcloud-iot-panel-component';
使用 Taro 的 HTML编译功能,我们可以将qcloud-iot-panel-component
使用在小程序中,在这之前需要先将 Taro 版本升级到 3.3 以上。
plugins: [
['@tarojs/plugin-html', {
// 包含 `iotp-` 的类名选择器中的 px 单位不会被解析
pxtransformBlackList: [/iotp-/]
}]
],
除了上述配置外,使用方法上与h5相同:
// 引入组件库的css
import 'qcloud-iot-panel-component/lib/index.css';
import { BoolWidget } from 'qcloud-iot-panel-component';
yarn #安装依赖
yarn dev #开发组件
yarn build #打包组件
# 最后执行 yarn docs 可以实时预览组件效果
yarn docs
在小程序中使用本地包时,可以执行以下命令:
# 在组件库目录
yarn build
yarn pack # 生成 qcloud-iot-panel-component-v0.0.xx.tgz
# 在小程序目录下
yarn add path/to/qcloud-iot-panel-component-v0.0.xx.tgz
FAQs
The npm package qcloud-iot-panel-component receives a total of 1 weekly downloads. As such, qcloud-iot-panel-component popularity was classified as not popular.
We found that qcloud-iot-panel-component demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.