
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
一个基于antd实现的一套组件封装,用于开发管理平台面板。配置 = 界面。
暂时没有比较详尽的组件使用文档,但是我们基于ufec构建了一个完善的管理平台面板,模拟了一些使用场景,通过查看源代码即可清晰的知道组件的用法。
模拟平台: http://ufec.tfcloud.com/
npm i ufec --save
Ufec依赖一些库,你需要保证你的上下文中有以下这些库:
Main layout.
import {Main} from 'ufec';
弹出框主逻辑,支持通过json文件配置Subs中的子组件,并且支持自动验证.
和ModalV2逻辑相同,只是样式不一样,大弹出框.
包含删除逻辑的弹出框.
弹出消息/提醒/确认等信息的弹出框.
菜单组件.
{Object}Subs包含着一些小组件,这些子组件和Modal配合使用可以通过配置来进行组件验证。
import {Subs} from 'ufec';
const Steps = Subs.Steps;
React-router的状态管理.
import { history } from 'ufec';
history.push(xxx);
history.getPathList();
...
组件的样式需要另外引入.
@import '~ufec/style/index.less';
Ufec 有一些命令行的操作.
你可以输入 node_modules/.bin/ufec -h 来查看ufec都支持哪些操作。
因为ufec本身有一些icon要支持,所以在初始化一个项目的时候,可以使用这个命令把ufec所需要的svg复制到目标文件夹中,比如:
ufec --svg client/iconfonts/svgs/ufec
上边这个命令会把ufec需要的svg图片都复制到client/iconfonts/svgs/ufec这个文件夹中。
这个命令会把client文件夹下所有目录的lang.json打包合成一个${app}.lang.json,然后放到client/locale文件夹中。
ufec --transpile
当然,这个脚本也接受npm参数,如果你把这个脚本放在package.json的scripts中,比如:
{
"scripts": {
"transpile": "ufec --transpile"
}
}
那么,你可以通过传入npm参数来指定生成什么语言的文件。比如:
npm run transpile --lang=en
这样会生成英文lang文件,不传的默认生成中文lang文件。
MIT © TFCloud
FAQs
ustack front end component
The npm package ufec receives a total of 4 weekly downloads. As such, ufec popularity was classified as not popular.
We found that ufec 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.