Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
aipage-custom-widget-template
Advanced tools
aipage-editor H5自定义组件模板(vue2、react)
$ npm i 或者 yarn
dev开发模式:用于在本地editor中调试自定义组件。
$ npm run dev
preview模式:用于预览自定义组件内容。
$ npm run preview
linkDebug模式:用于在amis-saas中预览和调试自定义组件。
$ npm run linkDebug
build2lib模式:用于构建发布到 npm 中的文件,默认存放到 当前dist目录中。
$ npm run build2lib
package.json 中添加 aipage-widgets 字段,用于放置当前自定义组件信息,有这个aipage-widgets 字段才能被识别为自定义组件扩展包。
...
"aipage-widgets": [
{
"name": "vue-info-card", // 自定义组件名称,必填项
"framework": "vue2", // 技术栈类型,非必填项,默认为 react 技术栈
"type": "vue-info-card", // 自定义组件类型,必填项,同一应用下不允许有重复的自定义组件类型
"entry": "/dist/infoCard.umd", // 自定义组件入口文件路径,必填项
"files": [ // 自定义组件依赖资源文件路径,非必填项
"/dist/infoCard.css"
],
"editorPlugin": { // amis-editor自定义插件信息
"name": "vue-info-card-plugin", // 自定义插件名称,在编辑器左侧组件面板作为title展示,必填项
"description": "信息展示卡片", // 自定义插件描述,在编辑器左侧组件面板作为描述信息展示,必填项
"pluginEntry": "/dist/infoCardPlugin.umd", // 自定义插件的入口文件,必填项
"tag": [ // 自定义插件的分类,必填项
"自定义组件"
],
"sort": 100 // 自定义插件的排序,非必填项
}
},
... // 其他自定义组件
],
...
}
需要确保package.json中的name值唯一,version值不重复。
$ npm publish
打开NPM配置文件(src/.npmrc),配置为制定仓库地址即可。
FAQs
aipage-editor H5自定义组件模板(vue2、react)
The npm package aipage-custom-widget-template receives a total of 3 weekly downloads. As such, aipage-custom-widget-template popularity was classified as not popular.
We found that aipage-custom-widget-template 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
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.