fix configuration not show in route edit page when route uri and host from old format master
authorjuzhiyuan <jjzhiyuan@gmail.com>
Sat, 9 Nov 2019 16:55:28 +0000 (00:55 +0800)
committerjuzhiyuan <jjzhiyuan@gmail.com>
Sat, 9 Nov 2019 16:55:28 +0000 (00:55 +0800)
index.html
js/chunk-31b32716.bbaa70e5.js [new file with mode: 0644]
js/chunk-31b32716.c6090016.js [deleted file]
js/runtime.fd607c71.js [moved from js/runtime.bef02077.js with 96% similarity]

index f3933b3522e972c979a34c2de5b14b82e7c307f7..dce63b06e925d59e1faf93ad9ee668e45d1352ad 100644 (file)
@@ -16,4 +16,4 @@
 # limitations under the License.
 #
 -->
-<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/apisix/dashboard/favicon.ico><title>Dashboard for APISIX</title><link href=/apisix/dashboard/css/chunk-0e9b6916.6e4f3fbd.css rel=prefetch><link href=/apisix/dashboard/css/chunk-11654a8a.936fb46f.css rel=prefetch><link href=/apisix/dashboard/css/chunk-132ea554.0aabc719.css rel=prefetch><link href=/apisix/dashboard/css/chunk-31b32716.0aabc719.css rel=prefetch><link href=/apisix/dashboard/css/chunk-38ba3d2f.6e4f3fbd.css rel=prefetch><link href=/apisix/dashboard/css/chunk-7ef9d764.f4b0828d.css rel=prefetch><link href=/apisix/dashboard/css/chunk-ad160a6c.d7e0e035.css rel=prefetch><link href=/apisix/dashboard/css/chunk-be341ddc.c680bc89.css rel=prefetch><link href=/apisix/dashboard/css/chunk-dbae6950.6e4f3fbd.css rel=prefetch><link href=/apisix/dashboard/css/chunk-dbb3d3a2.8db8c2e3.css rel=prefetch><link href=/apisix/dashboard/css/complex-table.b68bee2d.css rel=prefetch><link href=/apisix/dashboard/js/chunk-0e9b6916.3ed73a2a.js rel=prefetch><link href=/apisix/dashboard/js/chunk-11654a8a.a395ffd5.js rel=prefetch><link href=/apisix/dashboard/js/chunk-132ea554.a2d29441.js rel=prefetch><link href=/apisix/dashboard/js/chunk-31b32716.c6090016.js rel=prefetch><link href=/apisix/dashboard/js/chunk-38ba3d2f.a9d10eb5.js rel=prefetch><link href=/apisix/dashboard/js/chunk-450dda4e.7ea86d2a.js rel=prefetch><link href=/apisix/dashboard/js/chunk-7ef9d764.877c9873.js rel=prefetch><link href=/apisix/dashboard/js/chunk-ad160a6c.96c4a61a.js rel=prefetch><link href=/apisix/dashboard/js/chunk-be341ddc.62918773.js rel=prefetch><link href=/apisix/dashboard/js/chunk-dbae6950.7fc4ee0a.js rel=prefetch><link href=/apisix/dashboard/js/chunk-dbb3d3a2.f1ad5e61.js rel=prefetch><link href=/apisix/dashboard/js/complex-table.c206fa39.js rel=prefetch><link href=/apisix/dashboard/css/app.1456d739.css rel=preload as=style><link href=/apisix/dashboard/css/chunk-libs.ee57d822.css rel=preload as=style><link href=/apisix/dashboard/js/app.96b83b94.js rel=preload as=script><link href=/apisix/dashboard/js/chunk-elementUI.5bc123e3.js rel=preload as=script><link href=/apisix/dashboard/js/chunk-libs.86f650f2.js rel=preload as=script><link href=/apisix/dashboard/js/runtime.bef02077.js rel=preload as=script><link href=/apisix/dashboard/css/chunk-libs.ee57d822.css rel=stylesheet><link href=/apisix/dashboard/css/app.1456d739.css rel=stylesheet></head><body><noscript><strong>We're sorry but Dashboard for APISIX doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/apisix/dashboard/js/runtime.bef02077.js></script><script src=/apisix/dashboard/js/chunk-elementUI.5bc123e3.js></script><script src=/apisix/dashboard/js/chunk-libs.86f650f2.js></script><script src=/apisix/dashboard/js/app.96b83b94.js></script></body></html>
\ No newline at end of file
+<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/apisix/dashboard/favicon.ico><title>Dashboard for APISIX</title><link href=/apisix/dashboard/css/chunk-0e9b6916.6e4f3fbd.css rel=prefetch><link href=/apisix/dashboard/css/chunk-11654a8a.936fb46f.css rel=prefetch><link href=/apisix/dashboard/css/chunk-132ea554.0aabc719.css rel=prefetch><link href=/apisix/dashboard/css/chunk-31b32716.0aabc719.css rel=prefetch><link href=/apisix/dashboard/css/chunk-38ba3d2f.6e4f3fbd.css rel=prefetch><link href=/apisix/dashboard/css/chunk-7ef9d764.f4b0828d.css rel=prefetch><link href=/apisix/dashboard/css/chunk-ad160a6c.d7e0e035.css rel=prefetch><link href=/apisix/dashboard/css/chunk-be341ddc.c680bc89.css rel=prefetch><link href=/apisix/dashboard/css/chunk-dbae6950.6e4f3fbd.css rel=prefetch><link href=/apisix/dashboard/css/chunk-dbb3d3a2.8db8c2e3.css rel=prefetch><link href=/apisix/dashboard/css/complex-table.b68bee2d.css rel=prefetch><link href=/apisix/dashboard/js/chunk-0e9b6916.3ed73a2a.js rel=prefetch><link href=/apisix/dashboard/js/chunk-11654a8a.a395ffd5.js rel=prefetch><link href=/apisix/dashboard/js/chunk-132ea554.a2d29441.js rel=prefetch><link href=/apisix/dashboard/js/chunk-31b32716.bbaa70e5.js rel=prefetch><link href=/apisix/dashboard/js/chunk-38ba3d2f.a9d10eb5.js rel=prefetch><link href=/apisix/dashboard/js/chunk-450dda4e.7ea86d2a.js rel=prefetch><link href=/apisix/dashboard/js/chunk-7ef9d764.877c9873.js rel=prefetch><link href=/apisix/dashboard/js/chunk-ad160a6c.96c4a61a.js rel=prefetch><link href=/apisix/dashboard/js/chunk-be341ddc.62918773.js rel=prefetch><link href=/apisix/dashboard/js/chunk-dbae6950.7fc4ee0a.js rel=prefetch><link href=/apisix/dashboard/js/chunk-dbb3d3a2.f1ad5e61.js rel=prefetch><link href=/apisix/dashboard/js/complex-table.c206fa39.js rel=prefetch><link href=/apisix/dashboard/css/app.1456d739.css rel=preload as=style><link href=/apisix/dashboard/css/chunk-libs.ee57d822.css rel=preload as=style><link href=/apisix/dashboard/js/app.96b83b94.js rel=preload as=script><link href=/apisix/dashboard/js/chunk-elementUI.5bc123e3.js rel=preload as=script><link href=/apisix/dashboard/js/chunk-libs.86f650f2.js rel=preload as=script><link href=/apisix/dashboard/js/runtime.fd607c71.js rel=preload as=script><link href=/apisix/dashboard/css/chunk-libs.ee57d822.css rel=stylesheet><link href=/apisix/dashboard/css/app.1456d739.css rel=stylesheet></head><body><noscript><strong>We're sorry but Dashboard for APISIX doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/apisix/dashboard/js/runtime.fd607c71.js></script><script src=/apisix/dashboard/js/chunk-elementUI.5bc123e3.js></script><script src=/apisix/dashboard/js/chunk-libs.86f650f2.js></script><script src=/apisix/dashboard/js/app.96b83b94.js></script></body></html>
\ No newline at end of file
diff --git a/js/chunk-31b32716.bbaa70e5.js b/js/chunk-31b32716.bbaa70e5.js
new file mode 100644 (file)
index 0000000..2bb88e5
--- /dev/null
@@ -0,0 +1,17 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-31b32716"],{2366:function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);function a(e,t){var r=t||0,a=n;return[a[e[r++]],a[e[r++]],a[e[r++]],a[e[r++]],"-",a[e[r++]],a[e[r++]],"-",a[e[r++]],a[e[r++]],"-",a[e[r++]],a[e[r++]],"-",a[e[r++]],a[e[r++]],a[e[r++]],a[e[r++]],a[e[r++]],a[e[r++]]].join("")}e.exports=a},"3b2b":function(e,t,n){var r=n("7726"),a=n("5dbc"),i=n("86cc").f,o=n("9093").f,s=n("aae3"),u=n("0bfb"),c=r.RegExp,l=c,f=c.prototype,d=/a/g,p=/a/g,m=new c(d)!==d;if(n("9e1e")&&(!m||n("79e5")((function(){return p[n("2b4c")("match")]=!1,c(d)!=d||c(p)==p||"/a/i"!=c(d,"i")})))){c=function(e,t){var n=this instanceof c,r=s(e),i=void 0===t;return!n&&r&&e.constructor===c&&i?e:a(m?new l(r&&!i?e.source:e,t):l((r=e instanceof c)?e.source:e,r&&i?u.call(e):t),n?this:f,c)};for(var h=function(e){e in c||i(c,e,{configurable:!0,get:function(){return l[e]},set:function(t){l[e]=t}})},v=o(l),b=0;v.length>b;)h(v[b++]);f.constructor=c,c.prototype=f,n("2aba")(r,"RegExp",c)}n("7a56")("RegExp")},"3dbd":function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"e",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"a",(function(){return u}));var r=n("b32d"),a=function(){return Object(r["a"])({url:"/services",method:"get"})},i=function(e,t){return Object(r["a"])({url:"/services/".concat(e),method:"PUT",data:t})},o=function(e){return Object(r["a"])({url:"/services/".concat(e),method:"GET"})},s=function(e){return Object(r["a"])({url:"/services/".concat(e),method:"DELETE"})},u=function(e){return Object(r["a"])({url:"/services",method:"POST",data:e})}},4917:function(e,t,n){"use strict";var r=n("cb7c"),a=n("9def"),i=n("0390"),o=n("5f1b");n("214f")("match",1,(function(e,t,n,s){return[function(n){var r=e(this),a=void 0==n?void 0:n[t];return void 0!==a?a.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=s(n,e,this);if(t.done)return t.value;var u=r(e),c=String(this);if(!u.global)return o(u,c);var l=u.unicode;u.lastIndex=0;var f,d=[],p=0;while(null!==(f=o(u,c))){var m=String(f[0]);d[p]=m,""===m&&(u.lastIndex=i(c,a(u.lastIndex),l)),p++}return 0===p?null:d}]}))},"504c":function(e,t,n){var r=n("9e1e"),a=n("0d58"),i=n("6821"),o=n("52a7").f;e.exports=function(e){return function(t){var n,s=i(t),u=a(s),c=u.length,l=0,f=[];while(c>l)n=u[l++],r&&!o.call(s,n)||f.push(e?[n,s[n]]:s[n]);return f}}},"5dbc":function(e,t,n){var r=n("d3f4"),a=n("8b97").set;e.exports=function(e,t,n){var i,o=t.constructor;return o!==n&&"function"==typeof o&&(i=o.prototype)!==n.prototype&&r(i)&&a&&a(e,i),e}},"63aa":function(e,t,n){e.exports={menuBg:"#304156",menuText:"#bfcbd9",menuActiveText:"#409eff"}},7514:function(e,t,n){"use strict";var r=n("5ca1"),a=n("0a49")(5),i="find",o=!0;i in[]&&Array(1)[i]((function(){o=!1})),r(r.P+r.F*o,"Array",{find:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(i)},"7b78":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"container"},[n("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"80px","show-message":!1}},[n("el-form-item",{attrs:{label:"Desc"}},[n("el-input",{attrs:{placeholder:"Description"},model:{value:e.form.desc,callback:function(t){e.$set(e.form,"desc",t)},expression:"form.desc"}})],1),n("el-form-item",{attrs:{label:"URIs",prop:"uris",placeholder:"can write multi uri here"}},[n("el-select",{attrs:{"allow-create":"",filterable:"",multiple:"","default-first-option":""},on:{change:e.filterUriOptions},model:{value:e.form.uris,callback:function(t){e.$set(e.form,"uris",t)},expression:"form.uris"}},e._l(e.ExistedUris,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),n("el-form-item",{attrs:{label:"Hosts",prop:"hosts",placeholder:"Hosts"}},[n("el-select",{attrs:{multiple:"",filterable:"","allow-create":"","default-first-option":""},on:{change:e.filterHostsOptions},model:{value:e.form.hosts,callback:function(t){e.$set(e.form,"hosts",t)},expression:"form.hosts"}},e._l(e.ExistedHosts,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),n("el-form-item",{attrs:{label:"Remote Address",prop:"remote_addr"}},[n("el-input",{attrs:{placeholder:"Remote Address"},model:{value:e.form.remote_addr,callback:function(t){e.$set(e.form,"remote_addr",t)},expression:"form.remote_addr"}})],1),n("el-form-item",{attrs:{label:"Methods"}},[n("el-select",{attrs:{multiple:"",placeholder:"Methods"},model:{value:e.form.methods,callback:function(t){e.$set(e.form,"methods",t)},expression:"form.methods"}},e._l(e.methods,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1),n("el-form-item",{attrs:{label:"Upstream",prop:"upstream_id"}},[n("el-select",{attrs:{placeholder:"Upstream",clearable:"",filterable:""},model:{value:e.form.upstream_id,callback:function(t){e.$set(e.form,"upstream_id",t)},expression:"form.upstream_id"}},e._l(e.upstreamList,(function(e){return n("el-option",{key:e.id,attrs:{label:e.desc,value:e.id}})})),1)],1),n("el-form-item",{attrs:{label:"Service",prop:"service_id"}},[n("el-select",{attrs:{placeholder:"Service",clearable:"",filterable:""},model:{value:e.form.service_id,callback:function(t){e.$set(e.form,"service_id",t)},expression:"form.service_id"}},e._l(e.serviceList,(function(e){return n("el-option",{key:e.id,attrs:{label:e.desc,value:e.id}})})),1)],1),e._l(e.form.plugins,(function(t,r){return n("el-form-item",{key:r,staticClass:"plugin-item",attrs:{label:"plugin"}},["tempPlugin"!==r?n("el-button",{attrs:{type:"info",plain:""},on:{click:function(t){return e.showPlugin(r)}}},[e._v("\n        "+e._s(r)+"\n      ")]):e._e(),"tempPlugin"!==r?n("el-button",{attrs:{type:"danger"},on:{click:function(t){return t.preventDefault(),e.removePlugin(r)}}},[e._v("\n        "+e._s(e.$t("button.delete"))+"\n      ")]):e._e(),"tempPlugin"===r?n("el-select",{staticClass:"plugin-select",attrs:{value:null,placeholder:"Select a Plugin"},on:{change:e.showPlugin}},e._l(e.filteredPluginList,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1):e._e()],1)})),n("el-form-item",[n("el-button",{attrs:{disabled:!e.filteredPluginList.length},on:{click:e.addPlugin}},[e._v("\n        "+e._s(e.$t("button.add_plugin"))+"\n      ")])],1),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("\n        "+e._s(e.$t("button.save"))+"\n      ")]),n("el-button",{on:{click:e.toPreviousPage}},[e._v("\n        "+e._s(e.$t("button.cancel"))+"\n      ")])],1)],2),n("PluginDialog",{attrs:{show:e.showPluginDialog,name:e.pluginName,"plugin-data":e.form.plugins[e.pluginName]},on:{hidePlugin:function(t){e.showPluginDialog=!1},save:e.onPluginSave}})],1)},a=[],i=(n("8e6e"),n("bd86")),o=(n("4917"),n("456d"),n("7618")),s=n("768b"),u=(n("ffc1"),n("ac6a"),n("96cf"),n("3b8d")),c=(n("3b2b"),n("a481"),n("7f7f"),n("d225")),l=n("b0b4"),f=n("308d"),d=n("6bb5"),p=n("4e2b"),m=n("9ab4"),h=n("60a3"),v=n("c8f9"),b=n("80a7"),g=n("7d98"),y=n("b5f7"),O=n("3dbd"),w=n("e741");function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(n,!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var P=function(e){function t(){var e;return Object(c["a"])(this,t),e=Object(f["a"])(this,Object(d["a"])(t).apply(this,arguments)),e.form={uris:[],hosts:[],remote_addr:"",upstream_id:"",service_id:"",methods:[],plugins:{},desc:""},e.ExistedUris=[{}],e.ExistedHosts=[{}],e.rules={uris:{required:!0}},e.isEditMode=!1,e.methods=["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"],e.pluginList=[],e.pluginName="",e.showPluginDialog=!1,e.upstreamList=[],e.serviceList=[],e}return Object(p["a"])(t,e),Object(l["a"])(t,[{key:"created",value:function(){this.isEditMode=-1===this.$route.name.indexOf("Create"),this.isEditMode&&this.getData(),this.getPluginList(),this.getUpstreamList(),this.getServiceList()}},{key:"reset",value:function(){this.form={uris:[],hosts:[],remote_addr:"",upstream_id:"",service_id:"",methods:[],plugins:{},desc:""}}},{key:"filterDataWithRegex",value:function(e,t){if(e.length>0){var n=[];e.filter((function(e){"string"===typeof e&&(e=e.replace(/\s+/g,""),t.test(e)&&n.push(e))})),n.map((function(t,n){e[n]=t})),e.length>n.length&&e.splice(n.length,e.length)}}},{key:"filterUriOptions",value:function(e){this.filterDataWithRegex(e,new RegExp("^([\\*\\./0-9a-zA-Z-_~@\\?\\!#$\\(\\)]+)$"))}},{key:"filterHostsOptions",value:function(e){var t=new RegExp("^(([0-9a-zA-Z-]+|\\*)\\.)?([0-9a-zA-Z-]+\\.)+([a-zA-Z]{2,12})$");this.filterDataWithRegex(e,t)}},{key:"getData",value:function(){var e=Object(u["a"])(regeneratorRuntime.mark((function e(){var t,n,r,a,i,o,s,u,c,l,f,d,p,m,h,v,g,y,O,w,k,j,P;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.$route.params.id,e.next=3,Object(b["c"])(t);case 3:n=e.sent,r=n.node.value,a=r.uri,i=void 0===a?"":a,o=r.uris,s=void 0===o?[]:o,u=r.hosts,c=void 0===u?[]:u,l=r.host,f=void 0===l?"":l,d=r.remote_addr,p=void 0===d?"":d,m=r.upstream_id,h=void 0===m?"":m,v=r.service_id,g=void 0===v?"":v,y=r.methods,O=void 0===y?[]:y,w=r.plugins,k=void 0===w?{}:w,j=r.desc,P=void 0===j?"":j,0===c.length&&f.length>0&&c.push(f),0===s.length&&i.length>0&&s.push(i),this.form={uris:s,hosts:c,remote_addr:p,upstream_id:h,service_id:g,methods:O,plugins:k,desc:P};case 28:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"onSubmit",value:function(){var e=Object(u["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$refs.form.validate(function(){var e=Object(u["a"])(regeneratorRuntime.mark((function e(n){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!n){e.next=15;break}if(r=Object.assign({},t.form),r.methods.length||delete r.methods,Object.entries(r).forEach((function(e){var t=Object(s["a"])(e,2),n=t[0],a=t[1];"object"===Object(o["a"])(r[n])?"plugins"!==n&&0===Object.keys(a).length&&delete r[n]:""===a&&delete r[n]})),!t.isEditMode){e.next=9;break}return e.next=7,Object(b["e"])(t.$route.params.id,r);case 7:e.next=11;break;case 9:return e.next=11,Object(b["a"])(r);case 11:t.$message.success("".concat(t.isEditMode?"Update the":"Create a"," service successfully!")),t.isEditMode||(w["a"].delView(t.$route),t.$nextTick((function(){t.$router.push({name:"SchemaRoutesList"})}))),e.next=16;break;case 15:return e.abrupt("return",!1);case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"toPreviousPage",value:function(){this.$router.go(-1)}},{key:"getUpstreamList",value:function(){var e=Object(u["a"])(regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(y["c"])();case 2:t=e.sent,n=t.node.nodes,r=void 0===n?[]:n,this.upstreamList=r.map((function(e){var t=e.key.match(/\/([0-9]+)/)[1];return j({},e.value,{id:t})}));case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getServiceList",value:function(){var e=Object(u["a"])(regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(O["c"])();case 2:t=e.sent,n=t.node.nodes,r=void 0===n?[]:n,this.serviceList=r.map((function(e){var t=e.key.match(/\/([0-9]+)/)[1];return j({},e.value,{id:t})}));case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getPluginList",value:function(){var e=Object(u["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(g["a"])();case 2:this.pluginList=e.sent;case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"showPlugin",value:function(){var e=Object(u["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.pluginName=t,this.showPluginDialog=!0;case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onPluginSave",value:function(e,t){delete this.form.plugins["tempPlugin"],this.showPluginDialog=!1,this.form.plugins[e]=t}},{key:"addPlugin",value:function(){var e=Object(u["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.form.plugins.hasOwnProperty("tempPlugin")){e.next=2;break}return e.abrupt("return");case 2:this.form.plugins=j({},this.form.plugins,{tempPlugin:null});case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"removePlugin",value:function(e){var t=this;this.$confirm("Do you want to remove ".concat(e," plugin?"),"Warning",{confirmButtonText:"Confirm",cancelButtonText:"Cancel",type:"warning"}).then(Object(u["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:h["c"].delete(t.form.plugins,e);case 1:case"end":return n.stop()}}),n)})))).catch((function(){}))}},{key:"filteredPluginList",get:function(){var e=this;return this.pluginList.filter((function(t){return!e.form.plugins.hasOwnProperty(t)}))}}]),t}(h["c"]);P=m["a"]([Object(h["a"])({name:"RouterEdit",components:{PluginDialog:v["a"]}})],P);var x=P,_=x,E=(n("7bb4"),n("2877")),D=Object(E["a"])(_,r,a,!1,null,null,null);t["default"]=D.exports},"7bb4":function(e,t,n){"use strict";var r=n("f908"),a=n.n(r);a.a},"7d98":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("b32d"),a=function(){return Object(r["a"])({url:"/plugins/list",method:"get"})}},"80a7":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"e",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"a",(function(){return u}));var r=n("b32d"),a=function(){return Object(r["a"])({url:"/routes",method:"GET"})},i=function(e,t){return Object(r["a"])({url:"/routes/".concat(e),method:"PUT",data:t})},o=function(e){return Object(r["a"])({url:"/routes/".concat(e),method:"GET"})},s=function(e){return Object(r["a"])({url:"/routes/".concat(e),method:"DELETE"})},u=function(e){return Object(r["a"])({url:"/routes",method:"POST",data:e})}},"8b97":function(e,t,n){var r=n("d3f4"),a=n("cb7c"),i=function(e,t){if(a(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(a){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:i}},b32d:function(e,t,n){"use strict";var r=n("bc3a"),a=n.n(r),i=n("5c96"),o=a.a.create({baseURL:"/apisix/admin/",timeout:5e3});o.interceptors.request.use((function(e){return e}),(function(e){Promise.reject(e)})),o.interceptors.response.use((function(e){return e.data}),(function(e){return Object(i["Message"])({message:e.response.data.error_msg||e.message,type:"error",duration:5e3}),Promise.reject(e)})),t["a"]=o},b5f7:function(e,t,n){"use strict";n.d(t,"e",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return u}));var r=n("b32d"),a=function(e,t){return Object(r["a"])({url:"/upstreams/".concat(e),method:"PUT",data:t})},i=function(e){return Object(r["a"])({url:"/upstreams/".concat(e),method:"GET"})},o=function(e){return Object(r["a"])({url:"/upstreams/".concat(e),method:"DELETE"})},s=function(e){return Object(r["a"])({url:"/upstreams",method:"POST",data:e})},u=function(){return Object(r["a"])({url:"/upstreams",method:"GET"})}},c437:function(e,t,n){var r,a,i=n("e1f4"),o=n("2366"),s=0,u=0;function c(e,t,n){var c=t&&n||0,l=t||[];e=e||{};var f=e.node||r,d=void 0!==e.clockseq?e.clockseq:a;if(null==f||null==d){var p=i();null==f&&(f=r=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==d&&(d=a=16383&(p[6]<<8|p[7]))}var m=void 0!==e.msecs?e.msecs:(new Date).getTime(),h=void 0!==e.nsecs?e.nsecs:u+1,v=m-s+(h-u)/1e4;if(v<0&&void 0===e.clockseq&&(d=d+1&16383),(v<0||m>s)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=m,u=h,a=d,m+=122192928e5;var b=(1e4*(268435455&m)+h)%4294967296;l[c++]=b>>>24&255,l[c++]=b>>>16&255,l[c++]=b>>>8&255,l[c++]=255&b;var g=m/4294967296*1e4&268435455;l[c++]=g>>>8&255,l[c++]=255&g,l[c++]=g>>>24&15|16,l[c++]=g>>>16&255,l[c++]=d>>>8|128,l[c++]=255&d;for(var y=0;y<6;++y)l[c+y]=f[y];return t||o(l)}e.exports=c},c8f9:function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"plugin-dialog"},[n("el-dialog",{attrs:{title:"Plugin "+e.name+" Edit",visible:e.showDialog},on:{"update:visible":function(t){e.showDialog=t}}},[e.schema.oneOf?n("el-form",{ref:"form",staticClass:"oneof-plugin-wrapper",attrs:{model:e.data,rules:e.rules,"show-message":!1}},[n("el-form-item",{attrs:{label:"Option",rules:{required:!0,trigger:"blur"}}},[n("el-radio-group",{on:{change:e.handleOneOfChange},model:{value:e.data["radioKey"],callback:function(t){e.$set(e.data,"radioKey",t)},expression:"data['radioKey']"}},e._l(e.schema.properties,(function(t,r){return n("el-radio",{key:r,attrs:{label:r}},[e._v("\n            "+e._s(r)+"\n          ")])})),1)],1),e._l(e.data.values,(function(t,r){return n("el-form-item",{key:r,attrs:{label:"Value"+(r+1),rules:{required:!0,trigger:"blur"}}},[n("el-input",{model:{value:e.data["values"][r],callback:function(t){e.$set(e.data["values"],r,t)},expression:"data['values'][index]"}}),1!==e.data.values.length?n("el-button",{staticClass:"remove-value-btn",attrs:{type:"danger"},on:{click:function(t){return t.preventDefault(),e.removeOneOfPropValue(r)}}},[e._v("\n          Remove\n        ")]):e._e()],1)})),n("el-form-item",[n("el-button",{attrs:{disabled:e.oneOfPropHasEmptyValue},on:{click:e.addValueInput}},[e._v("\n          "+e._s(e.$t("button.addValue"))+"\n        ")])],1)],2):e._e(),e.schema.oneOf?e._e():n("el-form",{ref:"form",attrs:{model:e.data,rules:e.rules,"show-message":!1}},e._l(e.schema.properties,(function(t,r){return n("el-form-item",{key:r,attrs:{label:r,"label-width":"160px",prop:r}},["integer"===e.schema.properties[r].type||"number"===e.schema.properties[r].type?n("el-input-number",{attrs:{min:e.schema.properties[r].minimum||-99999999999,max:e.schema.properties[r].maximum||99999999999,label:"描述文字"},on:{change:function(t){return e.onPropertyChange(r,t)}},model:{value:e.data[r],callback:function(t){e.$set(e.data,r,t)},expression:"data[key]"}}):e._e(),e.schema.properties[r].hasOwnProperty("enum")?n("el-select",{attrs:{clearable:!0,placeholder:"Select a "+r},on:{change:function(t){return e.onPropertyChange(r,t)}},model:{value:e.data[r],callback:function(t){e.$set(e.data,r,t)},expression:"data[key]"}},e._l(e.schema.properties[r]["enum"],(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1):e._e(),"string"!==e.schema.properties[r].type||e.schema.properties[r].hasOwnProperty("enum")?e._e():n("el-input",{attrs:{placeholder:r},on:{input:function(t){return e.onPropertyChange(r,t)}},model:{value:e.data[r],callback:function(t){e.$set(e.data,r,t)},expression:"data[key]"}}),"boolean"!==e.schema.properties[r].type||e.schema.properties[r].hasOwnProperty("enum")?e._e():n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949"},model:{value:e.data[r],callback:function(t){e.$set(e.data,r,t)},expression:"data[key]"}})],1)})),1),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:e.onCancel}},[e._v("\n        Cancel\n      ")]),n("el-button",{attrs:{type:"primary",disabled:!e.isDataChanged&&e.oneOfPropHasEmptyValue},on:{click:e.onSave}},[e._v("\n        Confirm\n      ")])],1)],1)],1)},a=[],i=(n("8e6e"),n("7514"),n("ac6a"),n("456d"),n("6762"),n("2fdb"),n("bd86")),o=(n("96cf"),n("3b8d")),s=(n("7f7f"),n("d225")),u=n("b0b4"),c=n("308d"),l=n("6bb5"),f=n("4e2b"),d=n("9ab4"),p=n("60a3"),m=n("b32d"),h=function(e){return Object(m["a"])({url:"/schema/plugins/".concat(e),method:"get"})};function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(n,!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var g=n("c437"),y=function(e){function t(){var e;return Object(s["a"])(this,t),e=Object(c["a"])(this,Object(l["a"])(t).apply(this,arguments)),e.schema={properties:{}},e.rules={},e.data={},e.isDataChanged=!1,e.showDialog=!1,e}return Object(f["a"])(t,e),Object(u["a"])(t,[{key:"onShowChange",value:function(e){this.resetPlugin(),e&&this.getschema(this.name),this.showDialog=e}},{key:"resetPlugin",value:function(){this.schema={properties:{}},this.rules={},this.data={},this.isDataChanged=!1}},{key:"getschema",value:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var n,r,a,i,o,s=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,h(t);case 2:if(n=e.sent,n.properties){e.next=6;break}return this.isDataChanged=!0,e.abrupt("return");case 6:for(a in this.schema=Object.assign({},b({},n,{name:this.name})),r=Object.assign({},n.properties),r)i=Object.assign({},r[a]),r[a]={trigger:"blur"},n.required&&(r[a].required=n.required.includes(a)),i.hasOwnProperty("type")&&(r[a]["type"]=i["type"]),i.hasOwnProperty("minimum")&&(r[a]["min"]=i["minimum"]),i.hasOwnProperty("maximum")&&(r[a]["max"]=i["maximum"]),i.hasOwnProperty("enum")&&(r[a]["type"]="enum",r[a]["enum"]=i["enum"]);this.rules=r,this.pluginData&&(this.data=Object.assign({},this.pluginData)),"key-auth"!==this.name||this.pluginData||(this.data={key:g()},this.isDataChanged=!0),"ip-restriction"===this.name&&(o=Object.keys(this.pluginData)[0],this.$nextTick((function(){s.data={radioKey:o,values:s.pluginData[o]}}))),this.schema.oneOf&&(this.data={radioKey:Object.keys(this.schema.properties)[0],values:[""]});case 14:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onCancel",value:function(){this.$emit("hidePlugin")}},{key:"onSave",value:function(){var e=this;this.$refs.form.validate((function(t){if(!t)return!1;e.data=e.processOneOfProp(e.data),e.$emit("save",e.name,e.data),e.$message.warning("Your data will be saved after you click the Save button")}))}},{key:"onPropertyChange",value:function(e,t){this.data[e]=t,this.isDataChanged=!0}},{key:"handleOneOfChange",value:function(e){this.data.values=[""]}},{key:"addValueInput",value:function(){this.data.values=this.data.values.concat([""])}},{key:"removeOneOfPropValue",value:function(e){this.data.values=this.data.values.filter((function(t,n){return e!==n}))}},{key:"processOneOfProp",value:function(e){return this.schema.oneOf?Object(i["a"])({},this.data.radioKey,this.data.values):e}},{key:"oneOfPropHasEmptyValue",get:function(){return!this.data.values||this.data.values.find((function(e){return""===e}))}}]),t}(p["c"]);d["a"]([Object(p["b"])({default:!1})],y.prototype,"show",void 0),d["a"]([Object(p["b"])({default:""})],y.prototype,"name",void 0),d["a"]([Object(p["b"])({default:null})],y.prototype,"pluginData",void 0),d["a"]([Object(p["d"])("show")],y.prototype,"onShowChange",null),y=d["a"]([Object(p["a"])({name:"PluginDialog"})],y);var O=y,w=O,k=(n("f02e"),n("2877")),j=Object(k["a"])(w,r,a,!1,null,null,null);t["a"]=j.exports},e1f4:function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var a=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0===(3&t)&&(e=4294967296*Math.random()),a[t]=e>>>((3&t)<<3)&255;return a}}},f02e:function(e,t,n){"use strict";var r=n("63aa"),a=n.n(r);a.a},f908:function(e,t,n){e.exports={menuBg:"#304156",menuText:"#bfcbd9",menuActiveText:"#409eff"}},ffc1:function(e,t,n){var r=n("5ca1"),a=n("504c")(!0);r(r.S,"Object",{entries:function(e){return a(e)}})}}]);
\ No newline at end of file
diff --git a/js/chunk-31b32716.c6090016.js b/js/chunk-31b32716.c6090016.js
deleted file mode 100644 (file)
index 9b13bdb..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-31b32716"],{2366:function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);function a(e,t){var r=t||0,a=n;return[a[e[r++]],a[e[r++]],a[e[r++]],a[e[r++]],"-",a[e[r++]],a[e[r++]],"-",a[e[r++]],a[e[r++]],"-",a[e[r++]],a[e[r++]],"-",a[e[r++]],a[e[r++]],a[e[r++]],a[e[r++]],a[e[r++]],a[e[r++]]].join("")}e.exports=a},"3b2b":function(e,t,n){var r=n("7726"),a=n("5dbc"),i=n("86cc").f,o=n("9093").f,s=n("aae3"),u=n("0bfb"),c=r.RegExp,l=c,f=c.prototype,d=/a/g,p=/a/g,m=new c(d)!==d;if(n("9e1e")&&(!m||n("79e5")((function(){return p[n("2b4c")("match")]=!1,c(d)!=d||c(p)==p||"/a/i"!=c(d,"i")})))){c=function(e,t){var n=this instanceof c,r=s(e),i=void 0===t;return!n&&r&&e.constructor===c&&i?e:a(m?new l(r&&!i?e.source:e,t):l((r=e instanceof c)?e.source:e,r&&i?u.call(e):t),n?this:f,c)};for(var h=function(e){e in c||i(c,e,{configurable:!0,get:function(){return l[e]},set:function(t){l[e]=t}})},b=o(l),v=0;b.length>v;)h(b[v++]);f.constructor=c,c.prototype=f,n("2aba")(r,"RegExp",c)}n("7a56")("RegExp")},"3dbd":function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"e",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"a",(function(){return u}));var r=n("b32d"),a=function(){return Object(r["a"])({url:"/services",method:"get"})},i=function(e,t){return Object(r["a"])({url:"/services/".concat(e),method:"PUT",data:t})},o=function(e){return Object(r["a"])({url:"/services/".concat(e),method:"GET"})},s=function(e){return Object(r["a"])({url:"/services/".concat(e),method:"DELETE"})},u=function(e){return Object(r["a"])({url:"/services",method:"POST",data:e})}},4917:function(e,t,n){"use strict";var r=n("cb7c"),a=n("9def"),i=n("0390"),o=n("5f1b");n("214f")("match",1,(function(e,t,n,s){return[function(n){var r=e(this),a=void 0==n?void 0:n[t];return void 0!==a?a.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=s(n,e,this);if(t.done)return t.value;var u=r(e),c=String(this);if(!u.global)return o(u,c);var l=u.unicode;u.lastIndex=0;var f,d=[],p=0;while(null!==(f=o(u,c))){var m=String(f[0]);d[p]=m,""===m&&(u.lastIndex=i(c,a(u.lastIndex),l)),p++}return 0===p?null:d}]}))},"504c":function(e,t,n){var r=n("9e1e"),a=n("0d58"),i=n("6821"),o=n("52a7").f;e.exports=function(e){return function(t){var n,s=i(t),u=a(s),c=u.length,l=0,f=[];while(c>l)n=u[l++],r&&!o.call(s,n)||f.push(e?[n,s[n]]:s[n]);return f}}},"5dbc":function(e,t,n){var r=n("d3f4"),a=n("8b97").set;e.exports=function(e,t,n){var i,o=t.constructor;return o!==n&&"function"==typeof o&&(i=o.prototype)!==n.prototype&&r(i)&&a&&a(e,i),e}},"63aa":function(e,t,n){e.exports={menuBg:"#304156",menuText:"#bfcbd9",menuActiveText:"#409eff"}},7514:function(e,t,n){"use strict";var r=n("5ca1"),a=n("0a49")(5),i="find",o=!0;i in[]&&Array(1)[i]((function(){o=!1})),r(r.P+r.F*o,"Array",{find:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(i)},"7b78":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"container"},[n("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"80px","show-message":!1}},[n("el-form-item",{attrs:{label:"Desc"}},[n("el-input",{attrs:{placeholder:"Description"},model:{value:e.form.desc,callback:function(t){e.$set(e.form,"desc",t)},expression:"form.desc"}})],1),n("el-form-item",{attrs:{label:"URIs",prop:"uris",placeholder:"can write multi uri here"}},[n("el-select",{attrs:{"allow-create":"",filterable:"",multiple:"","default-first-option":""},on:{change:e.filterUriOptions},model:{value:e.form.uris,callback:function(t){e.$set(e.form,"uris",t)},expression:"form.uris"}},e._l(e.ExistedUris,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),n("el-form-item",{attrs:{label:"Hosts",prop:"hosts",placeholder:"Hosts"}},[n("el-select",{attrs:{multiple:"",filterable:"","allow-create":"","default-first-option":""},on:{change:e.filterHostsOptions},model:{value:e.form.hosts,callback:function(t){e.$set(e.form,"hosts",t)},expression:"form.hosts"}},e._l(e.ExistedHosts,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),n("el-form-item",{attrs:{label:"Remote Address",prop:"remote_addr"}},[n("el-input",{attrs:{placeholder:"Remote Address"},model:{value:e.form.remote_addr,callback:function(t){e.$set(e.form,"remote_addr",t)},expression:"form.remote_addr"}})],1),n("el-form-item",{attrs:{label:"Methods"}},[n("el-select",{attrs:{multiple:"",placeholder:"Methods"},model:{value:e.form.methods,callback:function(t){e.$set(e.form,"methods",t)},expression:"form.methods"}},e._l(e.methods,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1),n("el-form-item",{attrs:{label:"Upstream",prop:"upstream_id"}},[n("el-select",{attrs:{placeholder:"Upstream",clearable:"",filterable:""},model:{value:e.form.upstream_id,callback:function(t){e.$set(e.form,"upstream_id",t)},expression:"form.upstream_id"}},e._l(e.upstreamList,(function(e){return n("el-option",{key:e.id,attrs:{label:e.desc,value:e.id}})})),1)],1),n("el-form-item",{attrs:{label:"Service",prop:"service_id"}},[n("el-select",{attrs:{placeholder:"Service",clearable:"",filterable:""},model:{value:e.form.service_id,callback:function(t){e.$set(e.form,"service_id",t)},expression:"form.service_id"}},e._l(e.serviceList,(function(e){return n("el-option",{key:e.id,attrs:{label:e.desc,value:e.id}})})),1)],1),e._l(e.form.plugins,(function(t,r){return n("el-form-item",{key:r,staticClass:"plugin-item",attrs:{label:"plugin"}},["tempPlugin"!==r?n("el-button",{attrs:{type:"info",plain:""},on:{click:function(t){return e.showPlugin(r)}}},[e._v("\n        "+e._s(r)+"\n      ")]):e._e(),"tempPlugin"!==r?n("el-button",{attrs:{type:"danger"},on:{click:function(t){return t.preventDefault(),e.removePlugin(r)}}},[e._v("\n        "+e._s(e.$t("button.delete"))+"\n      ")]):e._e(),"tempPlugin"===r?n("el-select",{staticClass:"plugin-select",attrs:{value:null,placeholder:"Select a Plugin"},on:{change:e.showPlugin}},e._l(e.filteredPluginList,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1):e._e()],1)})),n("el-form-item",[n("el-button",{attrs:{disabled:!e.filteredPluginList.length},on:{click:e.addPlugin}},[e._v("\n        "+e._s(e.$t("button.add_plugin"))+"\n      ")])],1),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("\n        "+e._s(e.$t("button.save"))+"\n      ")]),n("el-button",{on:{click:e.toPreviousPage}},[e._v("\n        "+e._s(e.$t("button.cancel"))+"\n      ")])],1)],2),n("PluginDialog",{attrs:{show:e.showPluginDialog,name:e.pluginName,"plugin-data":e.form.plugins[e.pluginName]},on:{hidePlugin:function(t){e.showPluginDialog=!1},save:e.onPluginSave}})],1)},a=[],i=(n("8e6e"),n("bd86")),o=(n("4917"),n("456d"),n("7618")),s=n("768b"),u=(n("ffc1"),n("ac6a"),n("96cf"),n("3b8d")),c=(n("3b2b"),n("a481"),n("7f7f"),n("d225")),l=n("b0b4"),f=n("308d"),d=n("6bb5"),p=n("4e2b"),m=n("9ab4"),h=n("60a3"),b=n("c8f9"),v=n("80a7"),g=n("7d98"),y=n("b5f7"),O=n("3dbd"),w=n("e741");function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(n,!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var P=function(e){function t(){var e;return Object(c["a"])(this,t),e=Object(f["a"])(this,Object(d["a"])(t).apply(this,arguments)),e.form={uris:[],hosts:[],remote_addr:"",upstream_id:"",service_id:"",methods:[],plugins:{},desc:""},e.ExistedUris=[{}],e.ExistedHosts=[{}],e.rules={uris:{required:!0}},e.isEditMode=!1,e.methods=["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"],e.pluginList=[],e.pluginName="",e.showPluginDialog=!1,e.upstreamList=[],e.serviceList=[],e}return Object(p["a"])(t,e),Object(l["a"])(t,[{key:"created",value:function(){this.isEditMode=-1===this.$route.name.indexOf("Create"),this.isEditMode&&this.getData(),this.getPluginList(),this.getUpstreamList(),this.getServiceList()}},{key:"reset",value:function(){this.form={uris:[],hosts:[],remote_addr:"",upstream_id:"",service_id:"",methods:[],plugins:{},desc:""}}},{key:"filterDataWithRegex",value:function(e,t){if(e.length>0){var n=[];e.filter((function(e){"string"===typeof e&&(e=e.replace(/\s+/g,""),t.test(e)&&n.push(e))})),n.map((function(t,n){e[n]=t})),e.length>n.length&&e.splice(n.length,e.length)}}},{key:"filterUriOptions",value:function(e){this.filterDataWithRegex(e,new RegExp("^([\\*\\./0-9a-zA-Z-_~@\\?\\!#$\\(\\)]+)$"))}},{key:"filterHostsOptions",value:function(e){var t=new RegExp("^(([0-9a-zA-Z-]+|\\*)\\.)?([0-9a-zA-Z-]+\\.)+([a-zA-Z]{2,12})$");this.filterDataWithRegex(e,t)}},{key:"getData",value:function(){var e=Object(u["a"])(regeneratorRuntime.mark((function e(){var t,n,r,a,i,o,s,u,c,l,f,d,p,m,h,b,g,y,O;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.$route.params.id,e.next=3,Object(v["c"])(t);case 3:n=e.sent,r=n.node.value,a=r.uris,i=void 0===a?[]:a,o=r.hosts,s=void 0===o?[]:o,u=r.remote_addr,c=void 0===u?"":u,l=r.upstream_id,f=void 0===l?"":l,d=r.service_id,p=void 0===d?"":d,m=r.methods,h=void 0===m?[]:m,b=r.plugins,g=void 0===b?{}:b,y=r.desc,O=void 0===y?"":y,this.form={uris:i,hosts:s,remote_addr:c,upstream_id:f,service_id:p,methods:h,plugins:g,desc:O};case 22:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"onSubmit",value:function(){var e=Object(u["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$refs.form.validate(function(){var e=Object(u["a"])(regeneratorRuntime.mark((function e(n){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!n){e.next=15;break}if(r=Object.assign({},t.form),r.methods.length||delete r.methods,Object.entries(r).forEach((function(e){var t=Object(s["a"])(e,2),n=t[0],a=t[1];"object"===Object(o["a"])(r[n])?"plugins"!==n&&0===Object.keys(a).length&&delete r[n]:""===a&&delete r[n]})),!t.isEditMode){e.next=9;break}return e.next=7,Object(v["e"])(t.$route.params.id,r);case 7:e.next=11;break;case 9:return e.next=11,Object(v["a"])(r);case 11:t.$message.success("".concat(t.isEditMode?"Update the":"Create a"," service successfully!")),t.isEditMode||(w["a"].delView(t.$route),t.$nextTick((function(){t.$router.push({name:"SchemaRoutesList"})}))),e.next=16;break;case 15:return e.abrupt("return",!1);case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"toPreviousPage",value:function(){this.$router.go(-1)}},{key:"getUpstreamList",value:function(){var e=Object(u["a"])(regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(y["c"])();case 2:t=e.sent,n=t.node.nodes,r=void 0===n?[]:n,this.upstreamList=r.map((function(e){var t=e.key.match(/\/([0-9]+)/)[1];return j({},e.value,{id:t})}));case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getServiceList",value:function(){var e=Object(u["a"])(regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(O["c"])();case 2:t=e.sent,n=t.node.nodes,r=void 0===n?[]:n,this.serviceList=r.map((function(e){var t=e.key.match(/\/([0-9]+)/)[1];return j({},e.value,{id:t})}));case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getPluginList",value:function(){var e=Object(u["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(g["a"])();case 2:this.pluginList=e.sent;case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"showPlugin",value:function(){var e=Object(u["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.pluginName=t,this.showPluginDialog=!0;case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onPluginSave",value:function(e,t){delete this.form.plugins["tempPlugin"],this.showPluginDialog=!1,this.form.plugins[e]=t}},{key:"addPlugin",value:function(){var e=Object(u["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.form.plugins.hasOwnProperty("tempPlugin")){e.next=2;break}return e.abrupt("return");case 2:this.form.plugins=j({},this.form.plugins,{tempPlugin:null});case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"removePlugin",value:function(e){var t=this;this.$confirm("Do you want to remove ".concat(e," plugin?"),"Warning",{confirmButtonText:"Confirm",cancelButtonText:"Cancel",type:"warning"}).then(Object(u["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:h["c"].delete(t.form.plugins,e);case 1:case"end":return n.stop()}}),n)})))).catch((function(){}))}},{key:"filteredPluginList",get:function(){var e=this;return this.pluginList.filter((function(t){return!e.form.plugins.hasOwnProperty(t)}))}}]),t}(h["c"]);P=m["a"]([Object(h["a"])({name:"RouterEdit",components:{PluginDialog:b["a"]}})],P);var x=P,_=x,E=(n("7bb4"),n("2877")),D=Object(E["a"])(_,r,a,!1,null,null,null);t["default"]=D.exports},"7bb4":function(e,t,n){"use strict";var r=n("f908"),a=n.n(r);a.a},"7d98":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("b32d"),a=function(){return Object(r["a"])({url:"/plugins/list",method:"get"})}},"80a7":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"e",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"a",(function(){return u}));var r=n("b32d"),a=function(){return Object(r["a"])({url:"/routes",method:"GET"})},i=function(e,t){return Object(r["a"])({url:"/routes/".concat(e),method:"PUT",data:t})},o=function(e){return Object(r["a"])({url:"/routes/".concat(e),method:"GET"})},s=function(e){return Object(r["a"])({url:"/routes/".concat(e),method:"DELETE"})},u=function(e){return Object(r["a"])({url:"/routes",method:"POST",data:e})}},"8b97":function(e,t,n){var r=n("d3f4"),a=n("cb7c"),i=function(e,t){if(a(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(a){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:i}},b32d:function(e,t,n){"use strict";var r=n("bc3a"),a=n.n(r),i=n("5c96"),o=a.a.create({baseURL:"/apisix/admin/",timeout:5e3});o.interceptors.request.use((function(e){return e}),(function(e){Promise.reject(e)})),o.interceptors.response.use((function(e){return e.data}),(function(e){return Object(i["Message"])({message:e.response.data.error_msg||e.message,type:"error",duration:5e3}),Promise.reject(e)})),t["a"]=o},b5f7:function(e,t,n){"use strict";n.d(t,"e",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return u}));var r=n("b32d"),a=function(e,t){return Object(r["a"])({url:"/upstreams/".concat(e),method:"PUT",data:t})},i=function(e){return Object(r["a"])({url:"/upstreams/".concat(e),method:"GET"})},o=function(e){return Object(r["a"])({url:"/upstreams/".concat(e),method:"DELETE"})},s=function(e){return Object(r["a"])({url:"/upstreams",method:"POST",data:e})},u=function(){return Object(r["a"])({url:"/upstreams",method:"GET"})}},c437:function(e,t,n){var r,a,i=n("e1f4"),o=n("2366"),s=0,u=0;function c(e,t,n){var c=t&&n||0,l=t||[];e=e||{};var f=e.node||r,d=void 0!==e.clockseq?e.clockseq:a;if(null==f||null==d){var p=i();null==f&&(f=r=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==d&&(d=a=16383&(p[6]<<8|p[7]))}var m=void 0!==e.msecs?e.msecs:(new Date).getTime(),h=void 0!==e.nsecs?e.nsecs:u+1,b=m-s+(h-u)/1e4;if(b<0&&void 0===e.clockseq&&(d=d+1&16383),(b<0||m>s)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=m,u=h,a=d,m+=122192928e5;var v=(1e4*(268435455&m)+h)%4294967296;l[c++]=v>>>24&255,l[c++]=v>>>16&255,l[c++]=v>>>8&255,l[c++]=255&v;var g=m/4294967296*1e4&268435455;l[c++]=g>>>8&255,l[c++]=255&g,l[c++]=g>>>24&15|16,l[c++]=g>>>16&255,l[c++]=d>>>8|128,l[c++]=255&d;for(var y=0;y<6;++y)l[c+y]=f[y];return t||o(l)}e.exports=c},c8f9:function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"plugin-dialog"},[n("el-dialog",{attrs:{title:"Plugin "+e.name+" Edit",visible:e.showDialog},on:{"update:visible":function(t){e.showDialog=t}}},[e.schema.oneOf?n("el-form",{ref:"form",staticClass:"oneof-plugin-wrapper",attrs:{model:e.data,rules:e.rules,"show-message":!1}},[n("el-form-item",{attrs:{label:"Option",rules:{required:!0,trigger:"blur"}}},[n("el-radio-group",{on:{change:e.handleOneOfChange},model:{value:e.data["radioKey"],callback:function(t){e.$set(e.data,"radioKey",t)},expression:"data['radioKey']"}},e._l(e.schema.properties,(function(t,r){return n("el-radio",{key:r,attrs:{label:r}},[e._v("\n            "+e._s(r)+"\n          ")])})),1)],1),e._l(e.data.values,(function(t,r){return n("el-form-item",{key:r,attrs:{label:"Value"+(r+1),rules:{required:!0,trigger:"blur"}}},[n("el-input",{model:{value:e.data["values"][r],callback:function(t){e.$set(e.data["values"],r,t)},expression:"data['values'][index]"}}),1!==e.data.values.length?n("el-button",{staticClass:"remove-value-btn",attrs:{type:"danger"},on:{click:function(t){return t.preventDefault(),e.removeOneOfPropValue(r)}}},[e._v("\n          Remove\n        ")]):e._e()],1)})),n("el-form-item",[n("el-button",{attrs:{disabled:e.oneOfPropHasEmptyValue},on:{click:e.addValueInput}},[e._v("\n          "+e._s(e.$t("button.addValue"))+"\n        ")])],1)],2):e._e(),e.schema.oneOf?e._e():n("el-form",{ref:"form",attrs:{model:e.data,rules:e.rules,"show-message":!1}},e._l(e.schema.properties,(function(t,r){return n("el-form-item",{key:r,attrs:{label:r,"label-width":"160px",prop:r}},["integer"===e.schema.properties[r].type||"number"===e.schema.properties[r].type?n("el-input-number",{attrs:{min:e.schema.properties[r].minimum||-99999999999,max:e.schema.properties[r].maximum||99999999999,label:"描述文字"},on:{change:function(t){return e.onPropertyChange(r,t)}},model:{value:e.data[r],callback:function(t){e.$set(e.data,r,t)},expression:"data[key]"}}):e._e(),e.schema.properties[r].hasOwnProperty("enum")?n("el-select",{attrs:{clearable:!0,placeholder:"Select a "+r},on:{change:function(t){return e.onPropertyChange(r,t)}},model:{value:e.data[r],callback:function(t){e.$set(e.data,r,t)},expression:"data[key]"}},e._l(e.schema.properties[r]["enum"],(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1):e._e(),"string"!==e.schema.properties[r].type||e.schema.properties[r].hasOwnProperty("enum")?e._e():n("el-input",{attrs:{placeholder:r},on:{input:function(t){return e.onPropertyChange(r,t)}},model:{value:e.data[r],callback:function(t){e.$set(e.data,r,t)},expression:"data[key]"}}),"boolean"!==e.schema.properties[r].type||e.schema.properties[r].hasOwnProperty("enum")?e._e():n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949"},model:{value:e.data[r],callback:function(t){e.$set(e.data,r,t)},expression:"data[key]"}})],1)})),1),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:e.onCancel}},[e._v("\n        Cancel\n      ")]),n("el-button",{attrs:{type:"primary",disabled:!e.isDataChanged&&e.oneOfPropHasEmptyValue},on:{click:e.onSave}},[e._v("\n        Confirm\n      ")])],1)],1)],1)},a=[],i=(n("8e6e"),n("7514"),n("ac6a"),n("456d"),n("6762"),n("2fdb"),n("bd86")),o=(n("96cf"),n("3b8d")),s=(n("7f7f"),n("d225")),u=n("b0b4"),c=n("308d"),l=n("6bb5"),f=n("4e2b"),d=n("9ab4"),p=n("60a3"),m=n("b32d"),h=function(e){return Object(m["a"])({url:"/schema/plugins/".concat(e),method:"get"})};function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(n,!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var g=n("c437"),y=function(e){function t(){var e;return Object(s["a"])(this,t),e=Object(c["a"])(this,Object(l["a"])(t).apply(this,arguments)),e.schema={properties:{}},e.rules={},e.data={},e.isDataChanged=!1,e.showDialog=!1,e}return Object(f["a"])(t,e),Object(u["a"])(t,[{key:"onShowChange",value:function(e){this.resetPlugin(),e&&this.getschema(this.name),this.showDialog=e}},{key:"resetPlugin",value:function(){this.schema={properties:{}},this.rules={},this.data={},this.isDataChanged=!1}},{key:"getschema",value:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var n,r,a,i,o,s=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,h(t);case 2:if(n=e.sent,n.properties){e.next=6;break}return this.isDataChanged=!0,e.abrupt("return");case 6:for(a in this.schema=Object.assign({},v({},n,{name:this.name})),r=Object.assign({},n.properties),r)i=Object.assign({},r[a]),r[a]={trigger:"blur"},n.required&&(r[a].required=n.required.includes(a)),i.hasOwnProperty("type")&&(r[a]["type"]=i["type"]),i.hasOwnProperty("minimum")&&(r[a]["min"]=i["minimum"]),i.hasOwnProperty("maximum")&&(r[a]["max"]=i["maximum"]),i.hasOwnProperty("enum")&&(r[a]["type"]="enum",r[a]["enum"]=i["enum"]);this.rules=r,this.pluginData&&(this.data=Object.assign({},this.pluginData)),"key-auth"!==this.name||this.pluginData||(this.data={key:g()},this.isDataChanged=!0),"ip-restriction"===this.name&&(o=Object.keys(this.pluginData)[0],this.$nextTick((function(){s.data={radioKey:o,values:s.pluginData[o]}}))),this.schema.oneOf&&(this.data={radioKey:Object.keys(this.schema.properties)[0],values:[""]});case 14:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onCancel",value:function(){this.$emit("hidePlugin")}},{key:"onSave",value:function(){var e=this;this.$refs.form.validate((function(t){if(!t)return!1;e.data=e.processOneOfProp(e.data),e.$emit("save",e.name,e.data),e.$message.warning("Your data will be saved after you click the Save button")}))}},{key:"onPropertyChange",value:function(e,t){this.data[e]=t,this.isDataChanged=!0}},{key:"handleOneOfChange",value:function(e){this.data.values=[""]}},{key:"addValueInput",value:function(){this.data.values=this.data.values.concat([""])}},{key:"removeOneOfPropValue",value:function(e){this.data.values=this.data.values.filter((function(t,n){return e!==n}))}},{key:"processOneOfProp",value:function(e){return this.schema.oneOf?Object(i["a"])({},this.data.radioKey,this.data.values):e}},{key:"oneOfPropHasEmptyValue",get:function(){return!this.data.values||this.data.values.find((function(e){return""===e}))}}]),t}(p["c"]);d["a"]([Object(p["b"])({default:!1})],y.prototype,"show",void 0),d["a"]([Object(p["b"])({default:""})],y.prototype,"name",void 0),d["a"]([Object(p["b"])({default:null})],y.prototype,"pluginData",void 0),d["a"]([Object(p["d"])("show")],y.prototype,"onShowChange",null),y=d["a"]([Object(p["a"])({name:"PluginDialog"})],y);var O=y,w=O,k=(n("f02e"),n("2877")),j=Object(k["a"])(w,r,a,!1,null,null,null);t["a"]=j.exports},e1f4:function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var a=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0===(3&t)&&(e=4294967296*Math.random()),a[t]=e>>>((3&t)<<3)&255;return a}}},f02e:function(e,t,n){"use strict";var r=n("63aa"),a=n.n(r);a.a},f908:function(e,t,n){e.exports={menuBg:"#304156",menuText:"#bfcbd9",menuActiveText:"#409eff"}},ffc1:function(e,t,n){var r=n("5ca1"),a=n("504c")(!0);r(r.S,"Object",{entries:function(e){return a(e)}})}}]);
\ No newline at end of file
similarity index 96%
rename from js/runtime.bef02077.js
rename to js/runtime.fd607c71.js
index 7cab05bfbf09007942440918c06090290843bc3b..c234a3b379ecbe67ac7f197fba55b134d4b32079 100644 (file)
@@ -14,4 +14,4 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-(function(e){function n(n){for(var r,a,u=n[0],d=n[1],l=n[2],f=0,i=[];f<u.length;f++)a=u[f],Object.prototype.hasOwnProperty.call(c,a)&&c[a]&&i.push(c[a][0]),c[a]=0;for(r in d)Object.prototype.hasOwnProperty.call(d,r)&&(e[r]=d[r]);h&&h(n);while(i.length)i.shift()();return o.push.apply(o,l||[]),t()}function t(){for(var e,n=0;n<o.length;n++){for(var t=o[n],r=!0,a=1;a<t.length;a++){var u=t[a];0!==c[u]&&(r=!1)}r&&(o.splice(n--,1),e=d(d.s=t[0]))}return e}var r={},a={runtime:0},c={runtime:0},o=[];function u(e){return d.p+"js/"+({"complex-table":"complex-table"}[e]||e)+"."+{"chunk-450dda4e":"7ea86d2a","chunk-0e9b6916":"3ed73a2a","chunk-11654a8a":"a395ffd5","chunk-132ea554":"a2d29441","chunk-31b32716":"c6090016","chunk-38ba3d2f":"a9d10eb5","chunk-7ef9d764":"877c9873","chunk-ad160a6c":"96c4a61a","chunk-dbae6950":"7fc4ee0a","chunk-dbb3d3a2":"f1ad5e61","complex-table":"c206fa39","chunk-be341ddc":"62918773"}[e]+".js"}function d(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,d),t.l=!0,t.exports}d.e=function(e){var n=[],t={"chunk-0e9b6916":1,"chunk-11654a8a":1,"chunk-132ea554":1,"chunk-31b32716":1,"chunk-38ba3d2f":1,"chunk-7ef9d764":1,"chunk-ad160a6c":1,"chunk-dbae6950":1,"chunk-dbb3d3a2":1,"complex-table":1,"chunk-be341ddc":1};a[e]?n.push(a[e]):0!==a[e]&&t[e]&&n.push(a[e]=new Promise((function(n,t){for(var r="css/"+({"complex-table":"complex-table"}[e]||e)+"."+{"chunk-450dda4e":"31d6cfe0","chunk-0e9b6916":"6e4f3fbd","chunk-11654a8a":"936fb46f","chunk-132ea554":"0aabc719","chunk-31b32716":"0aabc719","chunk-38ba3d2f":"6e4f3fbd","chunk-7ef9d764":"f4b0828d","chunk-ad160a6c":"d7e0e035","chunk-dbae6950":"6e4f3fbd","chunk-dbb3d3a2":"8db8c2e3","complex-table":"b68bee2d","chunk-be341ddc":"c680bc89"}[e]+".css",c=d.p+r,o=document.getElementsByTagName("link"),u=0;u<o.length;u++){var l=o[u],f=l.getAttribute("data-href")||l.getAttribute("href");if("stylesheet"===l.rel&&(f===r||f===c))return n()}var i=document.getElementsByTagName("style");for(u=0;u<i.length;u++){l=i[u],f=l.getAttribute("data-href");if(f===r||f===c)return n()}var h=document.createElement("link");h.rel="stylesheet",h.type="text/css",h.onload=n,h.onerror=function(n){var r=n&&n.target&&n.target.src||c,o=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");o.code="CSS_CHUNK_LOAD_FAILED",o.request=r,delete a[e],h.parentNode.removeChild(h),t(o)},h.href=c;var b=document.getElementsByTagName("head")[0];b.appendChild(h)})).then((function(){a[e]=0})));var r=c[e];if(0!==r)if(r)n.push(r[2]);else{var o=new Promise((function(n,t){r=c[e]=[n,t]}));n.push(r[2]=o);var l,f=document.createElement("script");f.charset="utf-8",f.timeout=120,d.nc&&f.setAttribute("nonce",d.nc),f.src=u(e);var i=new Error;l=function(n){f.onerror=f.onload=null,clearTimeout(h);var t=c[e];if(0!==t){if(t){var r=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;i.message="Loading chunk "+e+" failed.\n("+r+": "+a+")",i.name="ChunkLoadError",i.type=r,i.request=a,t[1](i)}c[e]=void 0}};var h=setTimeout((function(){l({type:"timeout",target:f})}),12e4);f.onerror=f.onload=l,document.head.appendChild(f)}return Promise.all(n)},d.m=e,d.c=r,d.d=function(e,n,t){d.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},d.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.t=function(e,n){if(1&n&&(e=d(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(d.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)d.d(t,r,function(n){return e[n]}.bind(null,r));return t},d.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return d.d(n,"a",n),n},d.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},d.p="/apisix/dashboard/",d.oe=function(e){throw console.error(e),e};var l=window["webpackJsonp"]=window["webpackJsonp"]||[],f=l.push.bind(l);l.push=n,l=l.slice();for(var i=0;i<l.length;i++)n(l[i]);var h=f;t()})([]);
\ No newline at end of file
+(function(e){function n(n){for(var r,a,u=n[0],d=n[1],l=n[2],f=0,i=[];f<u.length;f++)a=u[f],Object.prototype.hasOwnProperty.call(c,a)&&c[a]&&i.push(c[a][0]),c[a]=0;for(r in d)Object.prototype.hasOwnProperty.call(d,r)&&(e[r]=d[r]);h&&h(n);while(i.length)i.shift()();return o.push.apply(o,l||[]),t()}function t(){for(var e,n=0;n<o.length;n++){for(var t=o[n],r=!0,a=1;a<t.length;a++){var u=t[a];0!==c[u]&&(r=!1)}r&&(o.splice(n--,1),e=d(d.s=t[0]))}return e}var r={},a={runtime:0},c={runtime:0},o=[];function u(e){return d.p+"js/"+({"complex-table":"complex-table"}[e]||e)+"."+{"chunk-450dda4e":"7ea86d2a","chunk-0e9b6916":"3ed73a2a","chunk-11654a8a":"a395ffd5","chunk-132ea554":"a2d29441","chunk-31b32716":"bbaa70e5","chunk-38ba3d2f":"a9d10eb5","chunk-7ef9d764":"877c9873","chunk-ad160a6c":"96c4a61a","chunk-dbae6950":"7fc4ee0a","chunk-dbb3d3a2":"f1ad5e61","complex-table":"c206fa39","chunk-be341ddc":"62918773"}[e]+".js"}function d(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,d),t.l=!0,t.exports}d.e=function(e){var n=[],t={"chunk-0e9b6916":1,"chunk-11654a8a":1,"chunk-132ea554":1,"chunk-31b32716":1,"chunk-38ba3d2f":1,"chunk-7ef9d764":1,"chunk-ad160a6c":1,"chunk-dbae6950":1,"chunk-dbb3d3a2":1,"complex-table":1,"chunk-be341ddc":1};a[e]?n.push(a[e]):0!==a[e]&&t[e]&&n.push(a[e]=new Promise((function(n,t){for(var r="css/"+({"complex-table":"complex-table"}[e]||e)+"."+{"chunk-450dda4e":"31d6cfe0","chunk-0e9b6916":"6e4f3fbd","chunk-11654a8a":"936fb46f","chunk-132ea554":"0aabc719","chunk-31b32716":"0aabc719","chunk-38ba3d2f":"6e4f3fbd","chunk-7ef9d764":"f4b0828d","chunk-ad160a6c":"d7e0e035","chunk-dbae6950":"6e4f3fbd","chunk-dbb3d3a2":"8db8c2e3","complex-table":"b68bee2d","chunk-be341ddc":"c680bc89"}[e]+".css",c=d.p+r,o=document.getElementsByTagName("link"),u=0;u<o.length;u++){var l=o[u],f=l.getAttribute("data-href")||l.getAttribute("href");if("stylesheet"===l.rel&&(f===r||f===c))return n()}var i=document.getElementsByTagName("style");for(u=0;u<i.length;u++){l=i[u],f=l.getAttribute("data-href");if(f===r||f===c)return n()}var h=document.createElement("link");h.rel="stylesheet",h.type="text/css",h.onload=n,h.onerror=function(n){var r=n&&n.target&&n.target.src||c,o=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");o.code="CSS_CHUNK_LOAD_FAILED",o.request=r,delete a[e],h.parentNode.removeChild(h),t(o)},h.href=c;var b=document.getElementsByTagName("head")[0];b.appendChild(h)})).then((function(){a[e]=0})));var r=c[e];if(0!==r)if(r)n.push(r[2]);else{var o=new Promise((function(n,t){r=c[e]=[n,t]}));n.push(r[2]=o);var l,f=document.createElement("script");f.charset="utf-8",f.timeout=120,d.nc&&f.setAttribute("nonce",d.nc),f.src=u(e);var i=new Error;l=function(n){f.onerror=f.onload=null,clearTimeout(h);var t=c[e];if(0!==t){if(t){var r=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;i.message="Loading chunk "+e+" failed.\n("+r+": "+a+")",i.name="ChunkLoadError",i.type=r,i.request=a,t[1](i)}c[e]=void 0}};var h=setTimeout((function(){l({type:"timeout",target:f})}),12e4);f.onerror=f.onload=l,document.head.appendChild(f)}return Promise.all(n)},d.m=e,d.c=r,d.d=function(e,n,t){d.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},d.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.t=function(e,n){if(1&n&&(e=d(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(d.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)d.d(t,r,function(n){return e[n]}.bind(null,r));return t},d.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return d.d(n,"a",n),n},d.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},d.p="/apisix/dashboard/",d.oe=function(e){throw console.error(e),e};var l=window["webpackJsonp"]=window["webpackJsonp"]||[],f=l.push.bind(l);l.push=n,l=l.slice();for(var i=0;i<l.length;i++)n(l[i]);var h=f;t()})([]);
\ No newline at end of file