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

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


The following commit(s) were added to refs/heads/master by this push:
     new 73b3dd9  chore: icons added for auth, security, traffic, serverless 
(#1805)
73b3dd9 is described below

commit 73b3dd9858456fc687b2558f1f646609203356a7
Author: Ayush das <[email protected]>
AuthorDate: Sun Apr 25 20:06:34 2021 +0530

    chore: icons added for auth, security, traffic, serverless (#1805)
    
    Co-authored-by: 琚致远 <[email protected]>
    Co-authored-by: guoqqqi <[email protected]>
---
 web/cypress/integration/route/search-route.spec.js |  9 +--
 web/src/components/Plugin/data.tsx                 | 32 +++++++++++
 web/src/libs/iconfont.js                           | 64 +++++++++++-----------
 3 files changed, 69 insertions(+), 36 deletions(-)

diff --git a/web/cypress/integration/route/search-route.spec.js 
b/web/cypress/integration/route/search-route.spec.js
index 37bae68..98d062d 100644
--- a/web/cypress/integration/route/search-route.spec.js
+++ b/web/cypress/integration/route/search-route.spec.js
@@ -53,10 +53,11 @@ context('Create and Search Route', () => {
 
       // eslint-disable-next-line no-loop-func
       cy.get(this.domSelector.drawerBody).within(() => {
-        cy.contains('Add').click();
-        cy.get(this.domSelector.labels_0_labelKey).type(`label${i}`);
-        cy.get(this.domSelector.labels_0_labelValue).type(`value${i}`);
-        cy.contains('Confirm').click();
+        cy.contains('Add').click().then(() => {
+          cy.get(this.domSelector.labels_0_labelKey).type(`label${i}`);
+          cy.get(this.domSelector.labels_0_labelValue).type(`value${i}`);
+          cy.contains('Confirm').click();
+        });
       });
 
       cy.contains('Next').click();
diff --git a/web/src/components/Plugin/data.tsx 
b/web/src/components/Plugin/data.tsx
index 2c2ea81..7281ea1 100644
--- a/web/src/components/Plugin/data.tsx
+++ b/web/src/components/Plugin/data.tsx
@@ -25,6 +25,38 @@ export const PLUGIN_ICON_LIST: Record<string, any> = {
   'authz-keycloak': <IconFont name="iconkeycloak_icon_32px" />,
   'openid-connect': <IconFont name="iconicons8-openid" />,
   'kafka-logger': <IconFont name="iconApache_kafka" />,
+  'basic-auth': <IconFont name="iconbasic-auth" />,
+  'hmac-auth': <IconFont name="iconhmac-auth" />,
+  'cors': <IconFont name="iconcors" />,
+  'wolf-rbac': <IconFont name="iconwolf-rbac" />,
+  'key-auth': <IconFont name="iconkey-auth" />,
+  'request-validation': <IconFont name="iconrequest-validation" />,
+  'fault-injection': <IconFont name="iconfault-injection" />,
+  'consumer-restriction': <IconFont name="iconconsumer-restriction" />,
+  'api-breaker': <IconFont name="iconapi-breaker" />,
+  'ip-restriction': <IconFont name="iconip-restriction" />,
+  'uri-blocker': <IconFont name="iconuri-blocker" />,
+  'referer-restriction': <IconFont name="iconreferer-restriction" />,
+  'limit-conn': <IconFont name="iconlimit-connect" />,
+  'limit-req': <IconFont name="iconlimit-req" />,
+  'limit-count': <IconFont name="iconlimit-count" />,
+  'traffic-split': <IconFont name="icontraffic-split" />,
+  'serverless-post-function': <IconFont name="iconserverless-post-function" />,
+  'serverless-pre-function': <IconFont name="iconserverless-pre-function" />,
+  'response-rewrite': <IconFont name="iconresponse-rewrite" />,
+  'proxy-rewrite': <IconFont name="iconproxy-rewrite" />,
+  'proxy-mirror': <IconFont name="iconproxy-mirror" />,
+  'proxy-cache': <IconFont name="iconproxy-cache" />,
+  'grpc-transcode': <IconFont name="icongrpc-transcode" />,
+  'batch-requests': <IconFont name="iconbatch-request" />,
+  'zipkin': <IconFont name="iconzipkin" />,
+  'udp-logger': <IconFont name="iconudp-logger" />,
+  'error-log-logger': <IconFont name="iconerror-logger" />,
+  'http-logger': <IconFont name="iconhttp-logger" />,
+  'request-id': <IconFont name="iconrequest-id" />,
+  'sls-logger': <IconFont name="iconsls-logger" />,
+  'syslog': <IconFont name="iconsys-logger" />,
+  'tcp-logger': <IconFont name="icontcp-logger" />,
 };
 
 // This list is used to filter out plugins that cannot be displayed in the 
plugins list.
diff --git a/web/src/libs/iconfont.js b/web/src/libs/iconfont.js
index 324d144..2c43e0c 100644
--- a/web/src/libs/iconfont.js
+++ b/web/src/libs/iconfont.js
@@ -24,16 +24,16 @@
 /* eslint-disable */
 
 !(function (l) {
-  var c,
+  var a,
+    c,
     h,
-    a,
     t,
     i,
-    z,
-    e =
-      '<svg><symbol id="iconplugin" viewBox="0 0 1024 1024"><path 
d="M228.739127 360.696745a34.047504 34.047504 0 0 0 12.479818 
46.463323l236.346557 136.445012v269.882067a33.919506 33.919506 0 1 0 67.967009 
0V543.989074l237.179545-136.958005a34.047504 34.047504 0 0 
0-33.919506-58.942141L511.997 484.853936 275.20345 348.088928a34.175502 
34.175502 0 0 0-46.463323 12.607817z m714.225594-117.181293a33.919506 33.919506 
0 0 1 17.023752 29.439571v478.006035a34.111503 34.111503 0 0 1-17.023752 2 [...]
-    o = (o = document.getElementsByTagName('script'))[o.length - 
1].getAttribute('data-injectcss');
-  if (o && !l.__iconfont__svg__cssinject__) {
+    p,
+    v =
+      '<svg><symbol id="iconbatch-request" viewBox="0 0 1063 1024"><path 
d="M938.56247 675.50226l113.992758 57.029614c14.623439 7.311719 14.623439 
28.181558 0 35.493277L549.521516 1019.603986a39.738386 39.738386 0 0 
1-35.493277 0L10.994526 768.025151a19.863804 19.863804 0 0 1-10.928056-17.74574 
19.870989 19.870989 0 0 1 10.928056-17.747537l114.059228-57.029614 353.412941 
176.73701c33.567439 16.750484 73.115396 16.750484 106.616365 
0l353.41294-176.803481 0.06647 0.066471zM514.028239 4.182 [...]
+    z = (z = document.getElementsByTagName('script'))[z.length - 
1].getAttribute('data-injectcss');
+  if (z && !l.__iconfont__svg__cssinject__) {
     l.__iconfont__svg__cssinject__ = !0;
     try {
       document.write(
@@ -43,44 +43,44 @@
       console && console.log(l);
     }
   }
-  function m() {
-    i || ((i = !0), a());
+  function o() {
+    i || ((i = !0), h());
   }
-  (c = function () {
-    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),
-        (h.style.height = 0),
-        (h.style.overflow = 'hidden'),
-        (l = h),
-        (c = document.body).firstChild
-          ? ((a = l), (h = c.firstChild).parentNode.insertBefore(a, h))
-          : c.appendChild(l));
+  (a = function () {
+    var l, a, c, h;
+    ((h = document.createElement('div')).innerHTML = v),
+      (v = null),
+      (c = h.getElementsByTagName('svg')[0]) &&
+        (c.setAttribute('aria-hidden', 'true'),
+        (c.style.position = 'absolute'),
+        (c.style.width = 0),
+        (c.style.height = 0),
+        (c.style.overflow = 'hidden'),
+        (l = c),
+        (a = document.body).firstChild
+          ? ((h = l), (c = a.firstChild).parentNode.insertBefore(h, c))
+          : a.appendChild(l));
   }),
     document.addEventListener
       ? ~['complete', 'loaded', 'interactive'].indexOf(document.readyState)
-        ? setTimeout(c, 0)
-        : ((h = function () {
-            document.removeEventListener('DOMContentLoaded', h, !1), c();
+        ? setTimeout(a, 0)
+        : ((c = function () {
+            document.removeEventListener('DOMContentLoaded', c, !1), a();
           }),
-          document.addEventListener('DOMContentLoaded', h, !1))
+          document.addEventListener('DOMContentLoaded', c, !1))
       : document.attachEvent &&
-        ((a = c),
+        ((h = a),
         (t = l.document),
         (i = !1),
-        (z = function () {
+        (p = function () {
           try {
             t.documentElement.doScroll('left');
           } catch (l) {
-            return void setTimeout(z, 50);
+            return void setTimeout(p, 50);
           }
-          m();
+          o();
         })(),
         (t.onreadystatechange = function () {
-          'complete' == t.readyState && ((t.onreadystatechange = null), m());
+          'complete' == t.readyState && ((t.onreadystatechange = null), o());
         }));
 })(window);

Reply via email to