diff --git a/web/src/helpers.tsx b/web/src/helpers.tsx index 44fb0d847b..50e076945e 100644 --- a/web/src/helpers.tsx +++ b/web/src/helpers.tsx @@ -17,6 +17,7 @@ import React from 'react'; import { notification } from 'antd'; import type { MenuDataItem } from '@ant-design/pro-layout'; +import { InfoCircleOutlined } from '@ant-design/icons'; import { history } from 'umi'; import moment from 'moment'; import YAML from 'yaml'; @@ -45,7 +46,7 @@ export const getMenuData = (): MenuDataItem[] => { { name: 'service', path: '/service/list', - icon: , + icon: , }, { name: 'consumer', @@ -55,7 +56,7 @@ export const getMenuData = (): MenuDataItem[] => { { name: 'plugin', path: '/plugin/list', - icon: , + icon: , }, { name: 'ssl', @@ -65,7 +66,7 @@ export const getMenuData = (): MenuDataItem[] => { { name: 'serverinfo', path: '/serverinfo', - icon: , + icon: , }, ]; }; diff --git a/web/src/libs/iconfont.js b/web/src/libs/iconfont.js index a470a7dfd5..324d144048 100644 --- a/web/src/libs/iconfont.js +++ b/web/src/libs/iconfont.js @@ -22,17 +22,18 @@ * SOFTWARE. */ /* eslint-disable */ + !(function (l) { var c, h, - t, a, + t, i, - e, - z = - '', - p = (p = document.getElementsByTagName('script'))[p.length - 1].getAttribute('data-injectcss'); - if (p && !l.__iconfont__svg__cssinject__) { + z, + e = + '', + o = (o = document.getElementsByTagName('script'))[o.length - 1].getAttribute('data-injectcss'); + if (o && !l.__iconfont__svg__cssinject__) { l.__iconfont__svg__cssinject__ = !0; try { document.write( @@ -42,14 +43,14 @@ console && console.log(l); } } - function o() { - i || ((i = !0), t()); + function m() { + i || ((i = !0), a()); } (c = function () { - var l, c, h, t; - ((t = document.createElement('div')).innerHTML = z), - (z = null), - (h = t.getElementsByTagName('svg')[0]) && + var l, c, h, a; + ((a = document.createElement('div')).innerHTML = e), + (e = null), + (h = a.getElementsByTagName('svg')[0]) && (h.setAttribute('aria-hidden', 'true'), (h.style.position = 'absolute'), (h.style.width = 0), @@ -57,7 +58,7 @@ (h.style.overflow = 'hidden'), (l = h), (c = document.body).firstChild - ? ((t = l), (h = c.firstChild).parentNode.insertBefore(t, h)) + ? ((a = l), (h = c.firstChild).parentNode.insertBefore(a, h)) : c.appendChild(l)); }), document.addEventListener @@ -68,18 +69,18 @@ }), document.addEventListener('DOMContentLoaded', h, !1)) : document.attachEvent && - ((t = c), - (a = l.document), + ((a = c), + (t = l.document), (i = !1), - (e = function () { + (z = function () { try { - a.documentElement.doScroll('left'); + t.documentElement.doScroll('left'); } catch (l) { - return void setTimeout(e, 50); + return void setTimeout(z, 50); } - o(); + m(); })(), - (a.onreadystatechange = function () { - 'complete' == a.readyState && ((a.onreadystatechange = null), o()); + (t.onreadystatechange = function () { + 'complete' == t.readyState && ((t.onreadystatechange = null), m()); })); })(window);