
Research
/Security News
npm Package Uses Prompt Injection and Token Flooding to Disrupt AI Malware Scanners
A new npm package tests AI malware scanners with prompt injection, safety-triggering comments, context flooding, and obfuscated JavaScript.
@dalydb/sdesign
Advanced tools
基于 Ant Design 二次封装的企业级 React 组件库,专注于提升管理后台开发效率。
# 使用 pnpm(推荐)
pnpm add @dalydb/sdesign
# 使用 npm
npm install @dalydb/sdesign
# 使用 yarn
yarn add @dalydb/sdesign
import React from 'react';
import { SButton, SForm, STable } from '@dalydb/sdesign';
// 全局配置(可选)
import { SConfigProvider } from '@dalydb/sdesign';
const App = () => {
return (
<SConfigProvider globalDict={{}} uploadUrl="">
<div>
<SButton type="primary">开始使用</SButton>
</div>
</SConfigProvider>
);
};
export default App;
import React from 'react';
import { SForm, STable, useSearchTable } from '@dalydb/sdesign';
import { Space } from 'antd';
const UserList = () => {
// 使用搜索表格 Hook
const { tableProps, form, formConfig } = useSearchTable(
async (params) => {
const response = await fetch('/api/users', {
method: 'POST',
body: JSON.stringify(params),
});
return response.json();
},
{
paginationFields: {
current: 'page',
pageSize: 'pageSize',
total: 'total',
list: 'data',
},
},
);
// 表单配置
const formItems = [
{
label: '用户名',
name: 'username',
type: 'input',
},
{
label: '状态',
name: 'status',
type: 'select',
fieldProps: {
options: [
{ value: 1, label: '启用' },
{ value: 0, label: '禁用' },
],
},
},
];
// 表格列配置
const columns = [
{
title: '用户名',
dataIndex: 'username',
},
{
title: '邮箱',
dataIndex: 'email',
},
{
title: '状态',
dataIndex: 'status',
render: (value) => (value === 1 ? '启用' : '禁用'),
},
];
return (
<div>
<SForm.Search form={form} items={formItems} {...formConfig} />
<STable {...tableProps} columns={columns} rowKey="id" />
</div>
);
};
export default UserList;
欢迎提交 Issue 和 Pull Request 来帮助我们改进组件库!
# 克隆项目
git clone https://github.com/your-repo/sdesign.git
# 安装依赖
pnpm install
# 启动开发环境
pnpm dev
# 构建项目
pnpm build
# 构建文档
pnpm docs:build
MIT © dalydb
# install dependencies
$ pnpm install
# develop library by docs demo
$ npm run dev
# build library source code
$ npm run build
# build library source code in watch mode
$ npm run build:watch
# build docs
$ npm run docs:build
# check your project for potential problems
$ npm run doctor
# 基于 antd-style进行css in js 改造
$ pnpm install antd-style
MIT
| 分支名 | 描述 |
|---|---|
| master | 无用分支 |
| prod | 正式分支 |
| dev | 开发分支 |
| feature_* | 功能分支 |
npm install -g jscpd
jscpd ./src -o 'report'
FAQs
@dalydb/PC端组件库
We found that @dalydb/sdesign demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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 new npm package tests AI malware scanners with prompt injection, safety-triggering comments, context flooding, and obfuscated JavaScript.

Product
Socket now detects supply chain risks in project manifests, starting with missing lockfiles that can make dependency installs non-reproducible.

Research
/Security News
The trojanized extensions use TinyGo-compiled WebAssembly and Solana transaction memos to resolve command-and-control infrastructure.