Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
cf-component-card
Advanced tools
Cloudflare Card Component
$ npm install cf-component-card
import React from 'react';
import {
Card,
CardContent,
CardControl,
CardDrawers,
CardMessages,
CardSection
} from 'cf-component-card';
import { Button } from 'cf-component-button';
class CardComponent extends React.Component {
constructor(props) {
super(props);
this.state = {
activeDrawer: null
};
this.handleDrawerClick = this.handleDrawerClick.bind(this);
}
handleDrawerClick(id) {
this.setState({
activeDrawer: id === this.state.activeDrawer ? null : id
});
}
render() {
return (
<Card>
<CardSection>
<CardContent>
<CardTitle>Card Title</CardTitle>
<p>Here is some content.</p>
<CardMessages
messages={[
{ type: 'info', content: 'Info Message' },
{ type: 'error', content: 'Error Message' }
]}
/>
<CardFooter>Card Footer</CardFooter>
</CardContent>
<CardControl>
<Button type="default" onClick={() => {}}>Example Control</Button>
</CardControl>
</CardSection>
<CardDrawers
onClick={this.handleDrawerClick}
active={this.state.activeDrawer}
drawers={[
{
id: 'one',
name: 'One',
content: <p>One</p>
},
{
id: 'two',
name: 'Two',
content: <p>Two</p>
}
]}
/>
</Card>
);
}
}
export default CardComponent;
FAQs
Cloudflare Card Component
We found that cf-component-card demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 23 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 uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.