Security News
UK Officials Consider Banning Ransomware Payments from Public Entities
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
@txdfe/at-error-page
Advanced tools
AT 异常页面,有404、500、无访问权限以及默认的四种
提供使用 status 和 其他属性:
属性 | 类型 | 可选值 | 默认值 | 说明 |
---|---|---|---|---|
status | String | 404 500 403 | null | 异常状态码,必传属性,如果不是这三种三种按默认类型处理 |
size | String | large middle small | large | 页面类型 |
image | String | null | 三种状态码默认背景图 | 宽度固定高度自适应的图片 |
title | String、ReactNode | null | size为large有根据status相对应的title | Title |
desc | String、ReactNode | null | size为large根据status相对应的desc | Desc |
btnProps | Array | null | null | 定义的按钮属性方法 |
link | String | null | null | 错误提醒的链接 |
代码示例:
import ErrorPage from '@txdfe/at-error-page';
const Demo = () => {
const props = [
{
type: 'normal',
name: '返回上一页',
onClick: () => {
console.log('点击首个按钮');
},
},
{
type: 'primary',
name: '返回首页',
onClick: () => {
console.log('点击第二个按钮');
},
},
];
return (
<div>
<h4>large</h4>
<ErrorPage status="404" title="title" desc="dec" btnProps={props} />
<h4>middle</h4>
<ErrorPage status="500" size="middle" title="这里是title" desc="这里是desc" />
<h4>small</h4>
<ErrorPage size="small" title="这里是title" desc="这里是desc" noBtn />
</div>
);
};
FAQs
AT业务组件 - 异常页面
We found that @txdfe/at-error-page demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.