This is an automated email from the ASF dual-hosted git repository. juzhiyuan pushed a commit to branch feat-improvement in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git
commit 9952607386f1303d485bac1941d2f9ed1b5e594e Author: juzhiyuan <[email protected]> AuthorDate: Wed Oct 21 15:52:39 2020 +0800 feat: use svg locally --- public/empty.svg | 1 + src/pages/Metrics/Metrics.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/public/empty.svg b/public/empty.svg new file mode 100644 index 0000000..bac1d28 --- /dev/null +++ b/public/empty.svg @@ -0,0 +1 @@ +<svg width="130" height="80" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient x1="52.348%" y1="74.611%" x2="52.348%" y2="-17.635%" id="a"><stop stop-color="#DEDEDE" stop-opacity="0" offset="0%"/><stop stop-color="#A9A9A9" stop-opacity=".3" offset="100%"/></linearGradient><linearGradient x1="44.79%" y1="100%" x2="44.79%" y2="0%" id="b"><stop stop-color="#FFF" stop-opacity="0" offset="0%"/><stop stop-color="#96A1C5" stop-opacity=".373" offset="100%"/></linearGradient><linearGradien [...] \ No newline at end of file diff --git a/src/pages/Metrics/Metrics.tsx b/src/pages/Metrics/Metrics.tsx index 1da0e7f..cb8d3fc 100644 --- a/src/pages/Metrics/Metrics.tsx +++ b/src/pages/Metrics/Metrics.tsx @@ -36,7 +36,7 @@ const Metrics: React.FC = () => { <Card> {!grafanaURL && ( <Empty - image="https://gw.alipayobjects.com/zos/antfincdn/ZHrcdLPrvN/empty.svg" + image="empty.svg" imageStyle={{ height: 60, }}
