Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
react-talend-components
Advanced tools
A set of stateless components which follows the Talend Guidelines
Please look at our CONTRIBUTING first.
Please read our style guidelines first.
Thanks to BrowserStack for providing real browser testing infrastructure.
All components are created using the yeoman talend generator using stateless option.
yo talend:react-component
> (nature) stateless
> (tests) snapshot
We want to avoid {children} as much as possible. We believe an app should only pass arguments to stateless components.
So please don't do Pull Requests (PR) to add {children} on leaf components.
But what is a leaf component ? It's a component that is not supposed to contain another component. For example the following components are leaf components:
But the following are not leaf:
If you feel the need to add {children} this means we have forget a use case. In this case please expose your use case and try to see how it could be done by passing some props.
The API we have for all components is the following for an event handler
const onClick(event, payload) {
//do what ever you want
}
return <APureComponents onClick={onClick} />
Our tests are using the react-test-renderer aka snapshot testing. This is by far the best tool to test pure components.
For the documentation and developpement environnement we are using React StoryBook.
npm start
If you want to create a link please use Action component which accept a link prop.
Anchor need href. We are in a single page application, so JavaScript decides the behavior, not the browser. So we don't want to see any anchor link in the markup.
If you want to use Button from react-bootstrap don't forget to add the role + bsStyle="link".
const model = {id: ...};
const onClick(event, payload) {
//do what ever you want
payload.action.label === 'click me';
payload.model === model;
};
<Action
label="click me"
icon="svg-yeah"
onClick={onClick}
model={model}
/>
We all are used to <i className="fa fa-XX" />
but this is finished now.
We are using <Icon name="fa-xx" />
because with this one we are able
to support svg icons which is on the way to be our next gen icons sets.
If you want you can register an new Icon this way:
Icon.register('svg-test', (<svg viewBox="0 0 20 20"><path d="M10.219,1.688c-4.471,0-8.094,3.623-8.094,8.094s3.623,8.094,8.094,8.094s8.094-3.623,8.094-8.094S14.689,1.688,10.219,1.688 M10.219,17.022c-3.994,0-7.242-3.247-7.242-7.241c0-3.994,3.248-7.242,7.242-7.242c3.994,0,7.241,3.248,7.241,7.242C17.46,13.775,14.213,17.022,10.219,17.022 M15.099,7.03c-0.167-0.167-0.438-0.167-0.604,0.002L9.062,12.48l-2.269-2.277c-0.166-0.167-0.437-0.167-0.603,0c-0.166,0.166-0.168,0.437-0.002,0.603l2.573,2.578c0.079,0.08,0.188,0.125,0.3,0.125s0.222-0.045,0.303-0.125l5.736-5.751C15.268,7.466,15.265,7.196,15.099,7.03" /></svg>));
open screenshots.config.json file.
The top of the file should stay unchanged. The stories are registred this way:
"Action": {
"default": [
{
"name": "action-default",
"selector": ["#default", "#hidelabel"]
}
]
},
Copyright (c) 2006-2016 Talend
Licensed under the Apache V2 License
FAQs
Set of react widgets.
The npm package react-talend-components receives a total of 223 weekly downloads. As such, react-talend-components popularity was classified as not popular.
We found that react-talend-components demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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 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.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.