Skip to content

Commit

Permalink
[ISSUE alibaba#9448] use local font files (alibaba#9995)
Browse files Browse the repository at this point in the history
- add some font files to local path

Close alibaba#9448
  • Loading branch information
onewe authored Feb 23, 2023
1 parent 579571c commit 7ca8c59
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 30 deletions.
3 changes: 2 additions & 1 deletion console-ui/build/webpack.prod.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ cssLoader.use.push({
options: {
modifyVars: {
'$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"',
}
}
})
Expand Down
2 changes: 0 additions & 2 deletions console-ui/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ import reducers from './reducers';
import { changeLanguage } from './reducers/locale';

import './index.scss';
import '@alifd/theme-design-pro/variables.css';
import '@alifd/theme-design-pro/dist/next.var.css';
import PropTypes from 'prop-types';

module.hot && module.hot.accept();
Expand Down
12 changes: 12 additions & 0 deletions console-ui/src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1258,3 +1258,15 @@ form.vertical-margin-lg .form-group {
.row-bg-red {
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";
Binary file not shown.
Binary file not shown.
Binary file not shown.
22 changes: 8 additions & 14 deletions console/src/main/resources/static/css/main.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions console/src/main/resources/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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/font-awesome.css">
<!-- 第三方css结束 -->
<link href="./css/main.css?a8bd622b4e7c17b2a122" rel="stylesheet"></head>
<link href="./css/main.css?e6cfdf2bcbe588ff572f" rel="stylesheet"></head>

<body>
<div id="root" style="overflow:hidden"></div>
Expand All @@ -56,6 +56,6 @@
<script src="console-ui/public/js/merge.js"></script>
<script src="console-ui/public/js/loader.js"></script>
<!-- 第三方js结束 -->
<script type="text/javascript" src="./js/main.js?a8bd622b4e7c17b2a122"></script></body>
<script type="text/javascript" src="./js/main.js?e6cfdf2bcbe588ff572f"></script></body>

</html>
22 changes: 11 additions & 11 deletions console/src/main/resources/static/js/main.js

Large diffs are not rendered by default.

0 comments on commit 7ca8c59

Please sign in to comment.