[ISSUE #9448] use local font files (#9995)

- add some font files to local path

Close #9448
This commit is contained in:
毛文超 2023-02-23 14:20:53 +08:00 committed by GitHub
parent 579571ceb3
commit 7ca8c59580
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 35 additions and 30 deletions

View File

@ -27,7 +27,8 @@ cssLoader.use.push({
options: { options: {
modifyVars: { modifyVars: {
'$icon-font-path': '"../console-ui/public/icons/icon-font"', '$icon-font-path': '"../console-ui/public/icons/icon-font"',
'$font-custom-path': '"../console-ui/public/fonts/"' '$font-custom-path': '"../console-ui/public/fonts/"',
'$adv-icon-font-path': '"../console-ui/public/fonts/font_1533967_slipq25tezj"',
} }
} }
}) })

View File

@ -55,8 +55,6 @@ import reducers from './reducers';
import { changeLanguage } from './reducers/locale'; import { changeLanguage } from './reducers/locale';
import './index.scss'; import './index.scss';
import '@alifd/theme-design-pro/variables.css';
import '@alifd/theme-design-pro/dist/next.var.css';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
module.hot && module.hot.accept(); module.hot && module.hot.accept();

View File

@ -1258,3 +1258,15 @@ form.vertical-margin-lg .form-group {
.row-bg-red { .row-bg-red {
background-color: #ffece4; background-color: #ffece4;
} }
// 引用主题变量
@import "~@alifd/theme-design-pro/variables.scss";
$adv-icon-font-path: "http://at.alicdn.com/t/font_1533967_slipq25tezj.woff2" !default;
$icon-font-path: $adv-icon-font-path;
// 引用基础主题
@import "~@alifd/next/index.scss";
@import "~@alifd/theme-design-pro/icons.scss";

File diff suppressed because one or more lines are too long

View File

@ -35,7 +35,7 @@
<link rel="stylesheet" type="text/css" href="console-ui/public/css/icon.css"> <link rel="stylesheet" type="text/css" href="console-ui/public/css/icon.css">
<link rel="stylesheet" type="text/css" href="console-ui/public/css/font-awesome.css"> <link rel="stylesheet" type="text/css" href="console-ui/public/css/font-awesome.css">
<!-- 第三方css结束 --> <!-- 第三方css结束 -->
<link href="./css/main.css?a8bd622b4e7c17b2a122" rel="stylesheet"></head> <link href="./css/main.css?e6cfdf2bcbe588ff572f" rel="stylesheet"></head>
<body> <body>
<div id="root" style="overflow:hidden"></div> <div id="root" style="overflow:hidden"></div>
@ -56,6 +56,6 @@
<script src="console-ui/public/js/merge.js"></script> <script src="console-ui/public/js/merge.js"></script>
<script src="console-ui/public/js/loader.js"></script> <script src="console-ui/public/js/loader.js"></script>
<!-- 第三方js结束 --> <!-- 第三方js结束 -->
<script type="text/javascript" src="./js/main.js?a8bd622b4e7c17b2a122"></script></body> <script type="text/javascript" src="./js/main.js?e6cfdf2bcbe588ff572f"></script></body>
</html> </html>

File diff suppressed because one or more lines are too long