diff --git a/web/src/helpers.tsx b/web/src/helpers.tsx index 44fb0d847b..1b66d50dbd 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,17 +46,17 @@ export const getMenuData = (): MenuDataItem[] => { { name: 'service', path: '/service/list', - icon: , + icon: , }, { name: 'consumer', path: '/consumer/list', - icon: , + icon: , }, { 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..1ebe71a4c5 100644 --- a/web/src/libs/iconfont.js +++ b/web/src/libs/iconfont.js @@ -22,64 +22,66 @@ * SOFTWARE. */ /* eslint-disable */ -!(function (l) { - var c, + +!(function (c) { + var l, h, - t, a, + t, i, - e, - z = - '', - p = (p = document.getElementsByTagName('script'))[p.length - 1].getAttribute('data-injectcss'); - if (p && !l.__iconfont__svg__cssinject__) { - l.__iconfont__svg__cssinject__ = !0; + z, + o = + '', + s = (s = document.getElementsByTagName('script'))[s.length - 1].getAttribute('data-injectcss'); + if (s && !c.__iconfont__svg__cssinject__) { + c.__iconfont__svg__cssinject__ = !0; try { document.write( '', ); - } catch (l) { - console && console.log(l); + } catch (c) { + console && console.log(c); } } - function o() { - i || ((i = !0), t()); + + function e() { + i || ((i = !0), a()); } - (c = function () { - var l, c, h, t; - ((t = document.createElement('div')).innerHTML = z), - (z = null), - (h = t.getElementsByTagName('svg')[0]) && + (l = function () { + var c, l, h, a; + ((a = document.createElement('div')).innerHTML = o), + (o = null), + (h = a.getElementsByTagName('svg')[0]) && (h.setAttribute('aria-hidden', 'true'), (h.style.position = 'absolute'), (h.style.width = 0), (h.style.height = 0), (h.style.overflow = 'hidden'), - (l = h), - (c = document.body).firstChild - ? ((t = l), (h = c.firstChild).parentNode.insertBefore(t, h)) - : c.appendChild(l)); + (c = h), + (l = document.body).firstChild + ? ((a = c), (h = l.firstChild).parentNode.insertBefore(a, h)) + : l.appendChild(c)); }), document.addEventListener ? ~['complete', 'loaded', 'interactive'].indexOf(document.readyState) - ? setTimeout(c, 0) + ? setTimeout(l, 0) : ((h = function () { - document.removeEventListener('DOMContentLoaded', h, !1), c(); + document.removeEventListener('DOMContentLoaded', h, !1), l(); }), document.addEventListener('DOMContentLoaded', h, !1)) : document.attachEvent && - ((t = c), - (a = l.document), + ((a = l), + (t = c.document), (i = !1), - (e = function () { + (z = function () { try { - a.documentElement.doScroll('left'); - } catch (l) { - return void setTimeout(e, 50); + t.documentElement.doScroll('left'); + } catch (c) { + return void setTimeout(z, 50); } - o(); + e(); })(), - (a.onreadystatechange = function () { - 'complete' == a.readyState && ((a.onreadystatechange = null), o()); + (t.onreadystatechange = function () { + 'complete' == t.readyState && ((t.onreadystatechange = null), e()); })); })(window);