Skip to content

Commit

Permalink
feat(admin): 移除 fower 依赖
Browse files Browse the repository at this point in the history
BREAKING CHANGE: 移除 `fower` 依赖
  • Loading branch information
twinh committed Jan 25, 2024
1 parent 5a5f5f6 commit 0893fd5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
20 changes: 3 additions & 17 deletions modules/bootstrap.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,16 @@
import axios from 'axios';
import 'plugins/app/modules/bootstrap';
import {setConfig} from '@fower/core';
import theme from '../modules/theme';
import {wei} from '@mxjs/app';
import { wei } from '@mxjs/app';
import config from 'config';
// 提前引入 @fower/preset-web
import '@fower/react';
import getLoginPath from './get-login-path';
import {Spin} from 'antd';
import {Loading} from '@mxjs/loading';
import { Spin } from 'antd';
import { Loading } from '@mxjs/loading';

wei.setConfigs(config);

// 指定 Antd 全局的 loading 样式
Spin.setDefaultIndicator(<Loading/>);

setConfig({
objectPropKeys: ['sx', 'css'],
theme: {
colors: {
brand500: theme.colors.primary,
primary: theme.colors.primary,
},
},
});

const UNAUTHORIZED_CODE = 401;
const TIPS_DELAY = 3000;

Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"dependencies": {
"@ant-design/icons": "^4.6.2",
"@ant-design/pro-components": "~2.3.52",
"@fower/react": "~1.75.0",
"@mxjs/a-box": "^1.0.0",
"@mxjs/a-clink": "^2.0.5",
"@mxjs/a-form": "^2.0.3",
Expand Down

0 comments on commit 0893fd5

Please sign in to comment.