
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
sungrow-components
Advanced tools
配置组件示例oss上传,组件根据类型分组。
├── build # webpack 脚本和发布脚本
├── packages # 组件源码
│ ├── sungrow-theme # 样式文件(业务组件的样式)
│ └── ... # 其他组件
├── src
│ ├── utils # 常用方法
│ └── index.js # npm 包的打包入口
├── examples # 官网
第一次执行命令
npm install
这个过程请耐心等待~
执行 npm run start 命令,在浏览器中打开 http://localhost:9000,导航直相应组件即可进行开发。组件由examples/component-docs 文件夹下的md文件渲染而来。
注意:
yarn build:file生成最新的入口注册文件,最后在examples/docs中添加你的md文档执行 npm run dist 命令生成最新的输出
组件库采style采用 BEM 命名规范
Bem 是块(block)、元素(element)、修饰符(modifier)的简写
-中划线 :仅作为连字符使用,表示某个块或者某个子元素的多单词之间的连接记号。
__ 双下划线:双下划线用来连接块和块的子元素
__ 双下划线:单下划线用来描述一个块或者块的子元素的一种状态
BEM 是一个简单又非常有用的命名约定。让你的前端代码更容易阅读和理解,更容易协作,更容易控制,更加健壮和明确,而且更加严密。
所有组件命名均以 sungrow-(模块名) 开头
FAQs
basic component for sungorw
We found that sungrow-components 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.