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.
table-render
Advanced tools
易用且轻量的中后台列表解决方案,常用于搜索列表页快速生成
https://xrender.fun/table-render
table-render 依赖 ant design,单独使用不要忘记安装~
npm i table-render --save
/**
* transform: true
* defaultShowCode: true
* background: 'rgb(245,245,245)'
*/
import React from 'react';
import TableRender from 'table-render';
import { Button } from 'antd';
import { InfoCircleOutlined, PlusOutlined } from '@ant-design/icons';
const dataSource = [];
for (let i = 0; i < 6; i++) {
dataSource.push({
id: i.toString(),
title: `标题${i + 1}`,
created_at: new Date().getTime(),
});
}
const schema = {
type: 'object',
labelWidth: 70,
properties: {
title: {
title: '标题',
type: 'string'
},
created_at: {
title: '创建时间',
type: 'string',
format: 'date'
}
}
};
const columns = [
{
title: '标题',
dataIndex: 'title',
},
{
title: '创建时间',
key: 'since',
dataIndex: 'created_at',
valueType: 'date',
},
{
title: '操作',
render: (row, record) => <a onClick={() => alert(row.title)}>编辑</a>,
}
];
const Demo = () => {
const api = () => {
return {
data: dataSource,
total: dataSource.length
};
};
return (
<TableRender
search={{ schema }}
request={api}
columns={columns}
title='最简表格'
toolbarRender={
<>
<Button>查看日志</Button>
<Button>导出数据</Button>
<Button type='primary'>
<PlusOutlined />
新增
</Button>
</>
}
/>
);
}
export default Demo;
FAQs
The npm package table-render receives a total of 53 weekly downloads. As such, table-render popularity was classified as not popular.
We found that table-render demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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.