You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ju...@apache.org on 2020/10/21 08:18:31 UTC

[apisix-dashboard] branch feat-improvement created (now 0d14ef0)

This is an automated email from the ASF dual-hosted git repository.

juzhiyuan pushed a change to branch feat-improvement
in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git.


      at 0d14ef0  feat: update global request

This branch includes the following new commits:

     new 9952607  feat: use svg locally
     new 3b64473  feat(Route): use id as rowkey
     new 0d14ef0  feat: update global request

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[apisix-dashboard] 01/03: feat: use svg locally

Posted by ju...@apache.org.
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 <ju...@apache.org>
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,
             }}


[apisix-dashboard] 03/03: feat: update global request

Posted by ju...@apache.org.
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 0d14ef06055bc31341a1ab0232879f0705a6289e
Author: juzhiyuan <ju...@apache.org>
AuthorDate: Wed Oct 21 16:17:43 2020 +0800

    feat: update global request
---
 src/app.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/app.tsx b/src/app.tsx
index b437cc9..5aafc1c 100644
--- a/src/app.tsx
+++ b/src/app.tsx
@@ -66,7 +66,7 @@ export const request: RequestConfig = {
   credentials: 'same-origin',
   requestInterceptors: [
     (url, options) => {
-      const newOptions = options;
+      const newOptions = { ...options };
       newOptions.headers = {
         ...options.headers,
         Authorization: localStorage.getItem('token') || '',


[apisix-dashboard] 02/03: feat(Route): use id as rowkey

Posted by ju...@apache.org.
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 3b644730d4d2918ece073c6f364ac29e62713903
Author: juzhiyuan <ju...@apache.org>
AuthorDate: Wed Oct 21 15:56:18 2020 +0800

    feat(Route): use id as rowkey
---
 src/pages/Route/List.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pages/Route/List.tsx b/src/pages/Route/List.tsx
index aaf9825..1f28653 100644
--- a/src/pages/Route/List.tsx
+++ b/src/pages/Route/List.tsx
@@ -113,7 +113,7 @@ const Page: React.FC = () => {
     >
       <ProTable<RouteModule.ResponseBody>
         actionRef={ref}
-        rowKey="name"
+        rowKey="id"
         columns={columns}
         request={fetchList}
         toolBarRender={() => [