
Research
/Security News
Shai Hulud Strikes Again (v2)
Another wave of Shai-Hulud campaign hits npm.
@antdp/config
Advanced tools
将 umi 配置包裹一层
npm i @antdp/config --save-dev
import config from '@antdp/config';
import router from './router.json';
import proxy from './proxy';
export default config(router, {
proxy,
});
import { IConfig, IRoute } from '@umijs/max';
export interface Options extends Omit<IConfig, 'routes'> {
routes: IRoute;
}
export interface Config {
(routes?: IRoute, optiosn?: Options): IConfig;
}
declare var config: Config;
export default config;
ANTD_IS_TABS 是否显示 Tab 选项卡,默认显示 trueANTD_IS_IFRAME_RENDER 是否使用 iframe 展示内容ANTD_IS_BREADCRUMB 是否开启父子路由面包屑ANTD_AUTH_CONF 是否开启权限验证 默认值false不启用 参数:
auth_menu 储存菜单路由权限---本地keys 默认值authMenuauth_btn 储存按钮路径权限---本地keys 默认值 authBtnauth_check_url 判断路径是否有权限的字段 默认值menuUrl,如果字段设置为undefined则auth_menu和auth_btn储存形式为 ["/web"],反之储存形式为[{menuUrl:"/web"}],ANTD_MENU_IS_SHOW 是否显示 左侧菜单ANTD_HEAD_IS_SHOW 是否显示 head头部ANTD_MENU_TOP_LEFT 父级菜单展示顶部 ,子集菜单展示侧边ANTD_TITLE_TOP 标题 放在 头部 ,菜单放在头部下面继承于umi @umijs/plugin-locale
default 当检测不到具体语言时,展示 default 中指定的语言。 默认值zh-CNantd:开启后,支持 antd 国际化 默认值true,title:标题国际化 默认值true,baseNavigator:开启浏览器语言检测。 默认值true,baseSeparator: 国家(lang) 与 语言(language) 之间的分割符。 默认值-返回的语言及目录文件为 zh-CN、en-US、sk 等。,export default {
// 配置 favicon 地址(href 属性)
favicon: '/assets/favicon.ico',
}
FAQs
The npm package @antdp/config receives a total of 2 weekly downloads. As such, @antdp/config popularity was classified as not popular.
We found that @antdp/config demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
Another wave of Shai-Hulud campaign hits npm.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.