Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
bs-ant-design
Advanced tools
Bucklescript + ReasonReact binding for Ant Design components. I write bindings when I needed them in my projects. If you find a component is missing, it's because I don't need it (yet).
Difference from bs-antd : It uses the official recommended way for writing bindings and it doesn't work for me. I explained this in this blog post
I also attempted to rewrite the components when possible for a better integration.
npm install --save bs-ant-design
yarn add bs-ant-design
bs-ant-design
to bs-dependencies
in bsconfig.json
.For webpack, you can do this:
npm install --save-dev less@^2.7.3 less-loader css-loader style-loader
(less@^2.7.3
is the important bit)
Now add this to your webpack config:
// webpack.config.js
module.exports = {
...
module: {
rules: [{
test: /\.less$/,
use: ["style-loader", "css-loader", "less-loader"]
}]
}
};
Please check ant design's documentation for each component.
I tried to keep the API as close to the original JS API as possible.
Some common patterns I used:
%identity
hack.Usage:
open Antd.Grid;
<Row gutter=Row.SingleGutterInPx(4) align=`top>
<Col span=12 xs=Col.FullColSize(makeColSize(~span=5,()))>
(ReasonReact.stringToElement("A"))
</Col>
<Col span=8 xs=Col.SingleColSize(4)>
(ReasonReact.stringToElement("B"))
</Col>
</Row>
open Antd.Grid;
<Row gutter=Row.ResponsiveBreakpoints(makeGutterBreakpoints(~sm=5, ()))>
<Col span=8>
(ReasonReact.stringToElement("A"))
</Col>
<Col span=8>
(ReasonReact.stringToElement("B"))
</Col>
<Col span=8>
(ReasonReact.stringToElement("C"))
</Col>
</Row>
This uses IconName
Typesafe way (only way) to access icon's name
All contributions are welcomed.
MIT
FAQs
Bucklescript bindings for Ant Design
We found that bs-ant-design demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.