diff --git a/build_release.sh b/build_release.sh index b7355c36..17b75a8e 100755 --- a/build_release.sh +++ b/build_release.sh @@ -95,6 +95,14 @@ function buildWindows() { build "$1/mayfly-go-windows" "windows" "amd64" $2 } +function rmServerStatic() { + runBuildWebType=$1 + if [ "${runBuildWebType}" == "2" ];then + echo_green "移除server/static/static内容" + rm -rf ${server_folder}/static/static/* + fi +} + function runBuild() { # 构建结果的目的路径 read -p "请输入构建产物输出目录: " toPath @@ -111,24 +119,22 @@ function runBuild() { buildWeb ${runBuildWeb} - if [ "${buildType}" == "1" ];then - buildLinuxAmd64 ${toPath} ${runBuildWeb} - exit; - fi - - if [ "${buildType}" == "2" ];then - buildLinuxArm64 ${toPath} ${runBuildWeb} - exit; - fi - - if [ "${buildType}" == "3" ];then - buildWindows ${toPath} ${runBuildWeb} - exit; - fi - - buildLinuxAmd64 ${toPath} - buildLinuxArm64 ${toPath} - buildWindows ${toPath} + case ${buildType} in + "1") + buildLinuxAmd64 ${toPath} ${runBuildWeb} + ;; + "2") + buildLinuxArm64 ${toPath} ${runBuildWeb} + ;; + "3") + buildWindows ${toPath} ${runBuildWeb} + ;; + *) + buildLinuxAmd64 ${toPath} ${runBuildWeb} + buildLinuxArm64 ${toPath} ${runBuildWeb} + buildWindows ${toPath} ${runBuildWeb} + ;; + esac } runBuild \ No newline at end of file diff --git a/server/pkg/config/app.go b/server/pkg/config/app.go index 7c227461..2036e58e 100644 --- a/server/pkg/config/app.go +++ b/server/pkg/config/app.go @@ -4,7 +4,7 @@ import "fmt" const ( AppName = "mayfly-go" - Version = "v1.2.6" + Version = "v1.2.7" ) func GetAppInfo() string { diff --git a/server/readme.txt b/server/readme.txt index 6ef927f1..ed4e0cd4 100644 --- a/server/readme.txt +++ b/server/readme.txt @@ -3,9 +3,6 @@ config.yml: 服务端口,mysql,aeskey(16 24 32位),jwtkey等信息在此配置即可。 建议务必将aes.key(资源密码加密如机器、数据库、redis等密码)与jwt.key(jwt秘钥)两信息使用随机字符串替换。 - 前端: - static/config.js: 若前后端分开部署则将该文件中的api地址配成后端服务的真实地址即可,否则无需修改。 - 服务启动&重启:./startup.sh 服务关闭:./shutdown.sh diff --git a/server/static/static/assets/401.1661345446364.css b/server/static/static/assets/401.1661345446364.css deleted file mode 100644 index 9d09ac27..00000000 --- a/server/static/static/assets/401.1661345446364.css +++ /dev/null @@ -1 +0,0 @@ -.error[data-v-6ec92039]{height:100%;background-color:#fff;display:flex}.error .error-flex[data-v-6ec92039]{margin:auto;display:flex;height:350px;width:900px}.error .error-flex .left[data-v-6ec92039]{flex:1;height:100%;align-items:center;display:flex}.error .error-flex .left .left-item .left-item-animation[data-v-6ec92039]{opacity:0;animation-name:error-num;animation-duration:.5s;animation-fill-mode:forwards}.error .error-flex .left .left-item .left-item-num[data-v-6ec92039]{color:#d6e0f6;font-size:55px}.error .error-flex .left .left-item .left-item-title[data-v-6ec92039]{font-size:20px;color:#333;margin:15px 0 5px;animation-delay:.1s}.error .error-flex .left .left-item .left-item-msg[data-v-6ec92039]{color:#c0bebe;font-size:12px;margin-bottom:30px;animation-delay:.2s}.error .error-flex .left .left-item .left-item-btn[data-v-6ec92039]{animation-delay:.2s}.error .error-flex .right[data-v-6ec92039]{flex:1;opacity:0;animation-name:error-img;animation-duration:2s;animation-fill-mode:forwards}.error .error-flex .right img[data-v-6ec92039]{width:100%;height:100%} diff --git a/server/static/static/assets/401.1661345446364.js b/server/static/static/assets/401.1661345446364.js deleted file mode 100644 index 6d10b3d2..00000000 --- a/server/static/static/assets/401.1661345446364.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,u as n,b as l,e as c,h as e,g as d,w as f,Y as m,Q as u,R as _,d as p,B as h}from"./index.1661345446364.js";var x="assets/401.1661345446364.png";const v={name:"401",setup(){const t=n();return{onSetAuth:()=>{m(),t.push("/login")}}}},o=t=>(u("data-v-6ec92039"),t=t(),_(),t),g={class:"error"},y={class:"error-flex"},b={class:"left"},C={class:"left-item"},B=o(()=>e("div",{class:"left-item-animation left-item-num"},"401",-1)),w=o(()=>e("div",{class:"left-item-animation left-item-title"},"\u60A8\u672A\u88AB\u6388\u6743\u6216\u767B\u5F55\u8D85\u65F6\uFF0C\u6CA1\u6709\u64CD\u4F5C\u6743\u9650",-1)),A=o(()=>e("div",{class:"left-item-animation left-item-msg"},null,-1)),S={class:"left-item-animation left-item-btn"},F=h("\u91CD\u65B0\u767B\u5F55"),k=o(()=>e("div",{class:"right"},[e("img",{src:x})],-1));function I(t,r,z,a,D,N){const i=l("el-button");return p(),c("div",g,[e("div",y,[e("div",b,[e("div",C,[B,w,A,e("div",S,[d(i,{type:"primary",round:"",onClick:a.onSetAuth},{default:f(()=>[F]),_:1},8,["onClick"])])])]),k])])}var $=s(v,[["render",I],["__scopeId","data-v-6ec92039"]]);export{$ as default}; diff --git a/server/static/static/assets/401.1661345446364.png b/server/static/static/assets/401.1661345446364.png deleted file mode 100644 index ce306dab..00000000 Binary files a/server/static/static/assets/401.1661345446364.png and /dev/null differ diff --git a/server/static/static/assets/404.1661345446364.css b/server/static/static/assets/404.1661345446364.css deleted file mode 100644 index bc06e00d..00000000 --- a/server/static/static/assets/404.1661345446364.css +++ /dev/null @@ -1 +0,0 @@ -.error[data-v-69e91ac8]{height:100%;background-color:#fff;display:flex}.error .error-flex[data-v-69e91ac8]{margin:auto;display:flex;height:350px;width:900px}.error .error-flex .left[data-v-69e91ac8]{flex:1;height:100%;align-items:center;display:flex}.error .error-flex .left .left-item .left-item-animation[data-v-69e91ac8]{opacity:0;animation-name:error-num;animation-duration:.5s;animation-fill-mode:forwards}.error .error-flex .left .left-item .left-item-num[data-v-69e91ac8]{color:#d6e0f6;font-size:55px}.error .error-flex .left .left-item .left-item-title[data-v-69e91ac8]{font-size:20px;color:#333;margin:15px 0 5px;animation-delay:.1s}.error .error-flex .left .left-item .left-item-msg[data-v-69e91ac8]{color:#c0bebe;font-size:12px;margin-bottom:30px;animation-delay:.2s}.error .error-flex .left .left-item .left-item-btn[data-v-69e91ac8]{animation-delay:.2s}.error .error-flex .right[data-v-69e91ac8]{flex:1;opacity:0;animation-name:error-img;animation-duration:2s;animation-fill-mode:forwards}.error .error-flex .right img[data-v-69e91ac8]{width:100%;height:100%} diff --git a/server/static/static/assets/404.1661345446364.js b/server/static/static/assets/404.1661345446364.js deleted file mode 100644 index 6303ab17..00000000 --- a/server/static/static/assets/404.1661345446364.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,u as n,b as l,e as c,h as e,g as d,w as m,Q as f,R as u,d as _,B as p}from"./index.1661345446364.js";var h="assets/404.1661345446364.png";const x={name:"404",setup(){const t=n();return{onGoHome:()=>{t.push("/")}}}},o=t=>(f("data-v-69e91ac8"),t=t(),u(),t),v={class:"error"},g={class:"error-flex"},y={class:"left"},F={class:"left-item"},b=o(()=>e("div",{class:"left-item-animation left-item-num"},"404",-1)),C=o(()=>e("div",{class:"left-item-animation left-item-title"},"\u5730\u5740\u8F93\u5165\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165\u5730\u5740~",-1)),B=o(()=>e("div",{class:"left-item-animation left-item-msg"},"\u60A8\u53EF\u4EE5\u5148\u68C0\u67E5\u7F51\u5740\uFF0C\u7136\u540E\u91CD\u65B0\u8F93\u5165",-1)),E={class:"left-item-animation left-item-btn"},w=p("\u8FD4\u56DE\u9996\u9875"),k=o(()=>e("div",{class:"right"},[e("img",{src:h})],-1));function D(t,a,I,r,z,G){const i=l("el-button");return _(),c("div",v,[e("div",g,[e("div",y,[e("div",F,[b,C,B,e("div",E,[d(i,{type:"primary",round:"",onClick:r.onGoHome},{default:m(()=>[w]),_:1},8,["onClick"])])])]),k])])}var N=s(x,[["render",D],["__scopeId","data-v-69e91ac8"]]);export{N as default}; diff --git a/server/static/static/assets/404.1661345446364.png b/server/static/static/assets/404.1661345446364.png deleted file mode 100644 index 903c8e07..00000000 Binary files a/server/static/static/assets/404.1661345446364.png and /dev/null differ diff --git a/server/static/static/assets/Api.1661345446364.js b/server/static/static/assets/Api.1661345446364.js deleted file mode 100644 index 256c321f..00000000 --- a/server/static/static/assets/Api.1661345446364.js +++ /dev/null @@ -1 +0,0 @@ -import{p as r}from"./index.1661345446364.js";class s{constructor(t,e){this.url=t,this.method=e}setUrl(t){return this.url=t,this}setMethod(t){return this.method=t,this}getUrl(){return r.getApiUrl(this.url)}request(t=null,e=null){return r.send(this,t,e)}requestWithHeaders(t,e){return r.sendWithHeaders(this,t,e)}static create(t,e){return new s(t,e)}}export{s as A}; diff --git a/server/static/static/assets/DataOperation.1661345446364.css b/server/static/static/assets/DataOperation.1661345446364.css deleted file mode 100644 index 3ba0f626..00000000 --- a/server/static/static/assets/DataOperation.1661345446364.css +++ /dev/null @@ -1 +0,0 @@ -#string-value-text{flex-grow:1;display:flex;position:relative}#string-value-text .text-type-select{position:absolute;z-index:2;right:10px;top:10px;max-width:70px} diff --git a/server/static/static/assets/DataOperation.1661345446364.js b/server/static/static/assets/DataOperation.1661345446364.js deleted file mode 100644 index a924484d..00000000 --- a/server/static/static/assets/DataOperation.1661345446364.js +++ /dev/null @@ -1 +0,0 @@ -var ee=Object.defineProperty,le=Object.defineProperties;var te=Object.getOwnPropertyDescriptors;var G=Object.getOwnPropertySymbols;var ae=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable;var J=(e,t,l)=>t in e?ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[t]=l,P=(e,t)=>{for(var l in t||(t={}))ae.call(t,l)&&J(e,l,t[l]);if(G)for(var l of G(t))oe.call(t,l)&&J(e,l,t[l]);return e},z=(e,t)=>le(e,te(t));import{r as w}from"./api.16613454463645.js";import{P as ne}from"./ProjectEnvSelect.1661345446364.js";import{n as j,i as S,a as se,b as Q}from"./assert.1661345446364.js";import{A as q,r as R,v as U,E as F,t as N,_ as O,G as W,b as i,C as H,d as g,k as E,K as ie,w as o,h as D,g as a,x as K,z as $,e as M,i as A,B as f,F as ue,j as re}from"./index.1661345446364.js";import{a as L}from"./format.1661345446364.js";import"./Api.1661345446364.js";import"./api.16613454463644.js";const de=q({name:"HashValue",components:{},props:{visible:{type:Boolean},title:{type:String},operationType:{type:[Number],require:!0},redisId:{type:[Number],require:!0},keyInfo:{type:[Object]},hashValue:{type:[Array,Object]}},emits:["valChange","cancel","update:visible"],setup(e,{emit:t}){const l=R({dialogVisible:!1,operationType:1,redisId:0,key:{key:"",type:"hash",timed:-1},scanParam:{key:"",id:0,cursor:0,match:"",count:10},keySize:0,hashValues:[{field:"",value:""}]}),h=()=>{t("update:visible",!1),t("cancel"),setTimeout(()=>{l.hashValues=[],l.key={}},500)};U(e,async y=>{const c=y.visible;l.redisId=y.redisId,l.key=y.keyInfo,l.operationType=y.operationType,c&&l.operationType==2&&(l.scanParam.id=e.redisId,l.scanParam.key=l.key.key,await b()),l.dialogVisible=c});const b=async()=>{l.scanParam.id=l.redisId,l.scanParam.cursor=0,V()},V=async()=>{const y=l.scanParam.match;if(!y||y==""||y=="*"){if(l.scanParam.count>100){F.error("match\u4E3A\u7A7A\u6216\u8005*\u65F6, count\u4E0D\u80FD\u8D85\u8FC7100");return}}else if(l.scanParam.count>1e3){F.error("count\u4E0D\u80FD\u8D85\u8FC71000");return}const c=await w.hscan.request(l.scanParam);l.scanParam.cursor=c.cursor,l.keySize=c.keySize;const v=c.keys,k=[],u=v.length/2;let n=0;for(let r=0;r{if(l.operationType==1){l.hashValues.splice(c,1);return}await W.confirm(`\u786E\u5B9A\u5220\u9664[${y}]?`,"\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}),await w.hdel.request({id:l.redisId,key:l.key.key,field:y}),F.success("\u5220\u9664\u6210\u529F"),b()},s=async y=>{await w.saveHashValue.request({id:l.redisId,key:l.key.key,timed:l.key.timed,value:[{field:y.field,value:y.value}]}),F.success("\u4FDD\u5B58\u6210\u529F")},p=()=>{l.hashValues.unshift({field:"",value:""})},C=async()=>{j(l.key.key,"key\u4E0D\u80FD\u4E3A\u7A7A"),S(l.hashValues.length>0,"hash\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A");const y={value:l.hashValues,id:l.redisId};Object.assign(y,l.key),await w.saveHashValue.request(y),F.success("\u4FDD\u5B58\u6210\u529F"),h(),t("valChange")};return z(P({},N(l)),{reHscan:b,hscan:V,cancel:h,hdel:m,hset:s,onAddHashValue:p,saveValue:C})}}),pe=f("scan"),me=f("\u6DFB\u52A0"),ye={key:2,class:"mt10",style:{float:"right"}},ce={class:"dialog-footer"},fe=f("\u53D6 \u6D88"),ve=f("\u786E \u5B9A");function ge(e,t,l,h,b,V){const m=i("el-input"),s=i("el-form-item"),p=i("el-button"),C=i("el-form"),y=i("el-row"),c=i("el-table-column"),v=i("el-table"),k=i("el-dialog"),u=H("auth");return g(),E(k,{title:e.title,modelValue:e.dialogVisible,"onUpdate:modelValue":t[8]||(t[8]=n=>e.dialogVisible=n),"before-close":e.cancel,width:"800px","destroy-on-close":!0},ie({default:o(()=>[a(C,{"label-width":"85px"},{default:o(()=>[a(s,{prop:"key",label:"key:"},{default:o(()=>[a(m,{disabled:e.operationType==2,modelValue:e.key.key,"onUpdate:modelValue":t[0]||(t[0]=n=>e.key.key=n)},null,8,["disabled","modelValue"])]),_:1}),a(s,{prop:"timed",label:"\u8FC7\u671F\u65F6\u95F4:"},{default:o(()=>[a(m,{modelValue:e.key.timed,"onUpdate:modelValue":t[1]||(t[1]=n=>e.key.timed=n),modelModifiers:{number:!0},type:"number"},null,8,["modelValue"])]),_:1}),a(s,{prop:"dataType",label:"\u6570\u636E\u7C7B\u578B:"},{default:o(()=>[a(m,{modelValue:e.key.type,"onUpdate:modelValue":t[2]||(t[2]=n=>e.key.type=n),disabled:""},null,8,["modelValue"])]),_:1}),a(y,{class:"mt10"},{default:o(()=>[a(C,{"label-position":"right",inline:!0},{default:o(()=>[e.operationType==2?(g(),E(s,{key:0,label:"field","label-width":"40px"},{default:o(()=>[a(m,{placeholder:"\u652F\u6301*\u6A21\u7CCAfield",style:{width:"140px"},modelValue:e.scanParam.match,"onUpdate:modelValue":t[3]||(t[3]=n=>e.scanParam.match=n),clearable:"",size:"small"},null,8,["modelValue"])]),_:1})):$("",!0),e.operationType==2?(g(),E(s,{key:1,label:"count"},{default:o(()=>[a(m,{placeholder:"count",style:{width:"62px"},modelValue:e.scanParam.count,"onUpdate:modelValue":t[4]||(t[4]=n=>e.scanParam.count=n),modelModifiers:{number:!0},size:"small"},null,8,["modelValue"])]),_:1})):$("",!0),a(s,null,{default:o(()=>[e.operationType==2?(g(),E(p,{key:0,onClick:t[5]||(t[5]=n=>e.reHscan()),type:"success",icon:"search",plain:"",size:"small"})):$("",!0),e.operationType==2?(g(),E(p,{key:1,onClick:t[6]||(t[6]=n=>e.hscan()),icon:"bottom",plain:"",size:"small"},{default:o(()=>[pe]),_:1})):$("",!0),a(p,{onClick:e.onAddHashValue,icon:"plus",size:"small",plain:""},{default:o(()=>[me]),_:1},8,["onClick"])]),_:1}),e.operationType==2?(g(),M("div",ye,[D("span",null,"fieldSize: "+A(e.keySize),1)])):$("",!0)]),_:1})]),_:1}),a(v,{data:e.hashValues,stripe:"",style:{width:"100%"}},{default:o(()=>[a(c,{prop:"field",label:"field",width:""},{default:o(n=>[a(m,{modelValue:n.row.field,"onUpdate:modelValue":r=>n.row.field=r,clearable:"",size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),a(c,{prop:"value",label:"value","min-width":"200"},{default:o(n=>[a(m,{modelValue:n.row.value,"onUpdate:modelValue":r=>n.row.value=r,clearable:"",type:"textarea",autosize:{minRows:2,maxRows:10},size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),a(c,{label:"\u64CD\u4F5C",width:"120"},{default:o(n=>[e.operationType==2?(g(),E(p,{key:0,type:"success",onClick:r=>e.hset(n.row),icon:"check",size:"small",plain:""},null,8,["onClick"])):$("",!0),a(p,{type:"danger",onClick:r=>e.hdel(n.row.field,n.$index),icon:"delete",size:"small",plain:""},null,8,["onClick"])]),_:1})]),_:1},8,["data"])]),_:1})]),_:2},[e.operationType==1?{name:"footer",fn:o(()=>[D("div",ce,[a(p,{onClick:t[7]||(t[7]=n=>e.cancel())},{default:o(()=>[fe]),_:1}),K((g(),E(p,{onClick:e.saveValue,type:"primary"},{default:o(()=>[ve]),_:1},8,["onClick"])),[[u,"redis:data:save"]])])])}:void 0]),1032,["title","modelValue","before-close"])}var be=O(de,[["render",ge]]);const ke=q({name:"StringValue",components:{},props:{visible:{type:Boolean},title:{type:String},redisId:{type:[Number],require:!0},keyInfo:{type:[Object]},operationType:{type:[Number]}},emits:["valChange","cancel","update:visible"],setup(e,{emit:t}){const l=R({dialogVisible:!1,operationType:1,redisId:"",key:{key:"",type:"string",timed:-1},string:{type:"text",value:""}}),h=()=>{t("update:visible",!1),t("cancel"),setTimeout(()=>{l.key={key:"",type:"string",timed:-1},l.string.value="",l.string.type="text"},500)};U(()=>e.visible,s=>{l.dialogVisible=s}),U(()=>e.redisId,s=>{l.redisId=s}),U(e,async s=>{l.dialogVisible=s.visible,l.key=s.key,l.redisId=s.redisId,l.key=s.keyInfo,l.operationType=s.operationType,l.dialogVisible&&l.operationType==2&&b()});const b=async()=>{l.string.value=await w.getStringValue.request({id:l.redisId,key:l.key.key})},V=async()=>{j(l.key.key,"key\u4E0D\u80FD\u4E3A\u7A7A"),j(l.string.value,"value\u4E0D\u80FD\u4E3A\u7A7A");const s={value:L(l.string.value,!0),id:l.redisId};Object.assign(s,l.key),await w.saveStringValue.request(s),F.success("\u6570\u636E\u4FDD\u5B58\u6210\u529F"),h(),t("valChange")},m=s=>{if(s=="json"){l.string.value=L(l.string.value,!1);return}s=="text"&&(l.string.value=L(l.string.value,!0))};return z(P({},N(l)),{saveValue:V,cancel:h,onChangeTextType:m})}}),he={id:"string-value-text",style:{width:"100%"}},Ve={class:"dialog-footer"},_e=f("\u53D6 \u6D88"),Ce=f("\u786E \u5B9A");function Ee(e,t,l,h,b,V){const m=i("el-input"),s=i("el-form-item"),p=i("el-option"),C=i("el-select"),y=i("el-form"),c=i("el-button"),v=i("el-dialog"),k=H("auth");return g(),E(v,{title:e.title,modelValue:e.dialogVisible,"onUpdate:modelValue":t[6]||(t[6]=u=>e.dialogVisible=u),"before-close":e.cancel,width:"800px","destroy-on-close":!0},{footer:o(()=>[D("div",Ve,[a(c,{onClick:t[5]||(t[5]=u=>e.cancel())},{default:o(()=>[_e]),_:1}),K((g(),E(c,{onClick:e.saveValue,type:"primary"},{default:o(()=>[Ce]),_:1},8,["onClick"])),[[k,"redis:data:save"]])])]),default:o(()=>[a(y,{"label-width":"85px"},{default:o(()=>[a(s,{prop:"key",label:"key:"},{default:o(()=>[a(m,{disabled:e.operationType==2,modelValue:e.key.key,"onUpdate:modelValue":t[0]||(t[0]=u=>e.key.key=u)},null,8,["disabled","modelValue"])]),_:1}),a(s,{prop:"timed",label:"\u8FC7\u671F\u65F6\u95F4:"},{default:o(()=>[a(m,{modelValue:e.key.timed,"onUpdate:modelValue":t[1]||(t[1]=u=>e.key.timed=u),modelModifiers:{number:!0},type:"number"},null,8,["modelValue"])]),_:1}),a(s,{prop:"dataType",label:"\u6570\u636E\u7C7B\u578B:"},{default:o(()=>[a(m,{modelValue:e.key.type,"onUpdate:modelValue":t[2]||(t[2]=u=>e.key.type=u),disabled:""},null,8,["modelValue"])]),_:1}),D("div",he,[a(m,{class:"json-text",modelValue:e.string.value,"onUpdate:modelValue":t[3]||(t[3]=u=>e.string.value=u),type:"textarea",autosize:{minRows:10,maxRows:20}},null,8,["modelValue"]),a(C,{class:"text-type-select",onChange:e.onChangeTextType,modelValue:e.string.type,"onUpdate:modelValue":t[4]||(t[4]=u=>e.string.type=u)},{default:o(()=>[a(p,{key:"text",label:"text",value:"text"}),a(p,{key:"json",label:"json",value:"json"})]),_:1},8,["onChange","modelValue"])])]),_:1})]),_:1},8,["title","modelValue","before-close"])}var De=O(ke,[["render",Ee]]);const we=q({name:"SetValue",components:{},props:{visible:{type:Boolean},title:{type:String},redisId:{type:[Number],require:!0},keyInfo:{type:[Object]},operationType:{type:[Number]},setValue:{type:[Array,Object]}},emits:["valChange","cancel","update:visible"],setup(e,{emit:t}){const l=R({dialogVisible:!1,operationType:1,redisId:"",key:{key:"",type:"string",timed:-1},value:[{value:""}]}),h=()=>{t("update:visible",!1),t("cancel"),setTimeout(()=>{l.key={key:"",type:"string",timed:-1},l.value=[]},500)};U(e,async s=>{l.dialogVisible=s.visible,l.key=s.key,l.redisId=s.redisId,l.key=s.keyInfo,l.operationType=s.operationType,l.dialogVisible&&l.operationType==2&&b()});const b=async()=>{const s=await w.getSetValue.request({id:l.redisId,key:l.key.key});l.value=s.map(p=>({value:p}))},V=async()=>{j(l.key.key,"key\u4E0D\u80FD\u4E3A\u7A7A"),S(l.value.length>0,"set\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A");const s={value:l.value.map(p=>p.value),id:l.redisId};Object.assign(s,l.key),await w.saveSetValue.request(s),F.success("\u6570\u636E\u4FDD\u5B58\u6210\u529F"),h(),t("valChange")},m=()=>{l.value.unshift({value:""})};return z(P({},N(l)),{saveValue:V,cancel:h,onAddSetValue:m})}}),Fe=f("\u6DFB\u52A0"),Ie=f("\u5220\u9664"),Te={class:"dialog-footer"},$e=f("\u53D6 \u6D88"),Ae=f("\u786E \u5B9A");function Be(e,t,l,h,b,V){const m=i("el-input"),s=i("el-form-item"),p=i("el-button"),C=i("el-table-column"),y=i("el-table"),c=i("el-form"),v=i("el-dialog"),k=H("auth");return g(),E(v,{title:e.title,modelValue:e.dialogVisible,"onUpdate:modelValue":t[4]||(t[4]=u=>e.dialogVisible=u),"before-close":e.cancel,width:"800px","destroy-on-close":!0},{footer:o(()=>[D("div",Te,[a(p,{onClick:t[3]||(t[3]=u=>e.cancel())},{default:o(()=>[$e]),_:1}),K((g(),E(p,{onClick:e.saveValue,type:"primary"},{default:o(()=>[Ae]),_:1},8,["onClick"])),[[k,"redis:data:save"]])])]),default:o(()=>[a(c,{"label-width":"85px"},{default:o(()=>[a(s,{prop:"key",label:"key:"},{default:o(()=>[a(m,{disabled:e.operationType==2,modelValue:e.key.key,"onUpdate:modelValue":t[0]||(t[0]=u=>e.key.key=u)},null,8,["disabled","modelValue"])]),_:1}),a(s,{prop:"timed",label:"\u8FC7\u671F\u65F6\u95F4:"},{default:o(()=>[a(m,{modelValue:e.key.timed,"onUpdate:modelValue":t[1]||(t[1]=u=>e.key.timed=u),modelModifiers:{number:!0},type:"number"},null,8,["modelValue"])]),_:1}),a(s,{prop:"dataType",label:"\u6570\u636E\u7C7B\u578B:"},{default:o(()=>[a(m,{modelValue:e.key.type,"onUpdate:modelValue":t[2]||(t[2]=u=>e.key.type=u),disabled:""},null,8,["modelValue"])]),_:1}),a(p,{onClick:e.onAddSetValue,icon:"plus",size:"small",plain:"",class:"mt10"},{default:o(()=>[Fe]),_:1},8,["onClick"]),a(y,{data:e.value,stripe:"",style:{width:"100%"}},{default:o(()=>[a(C,{prop:"value",label:"value","min-width":"200"},{default:o(u=>[a(m,{modelValue:u.row.value,"onUpdate:modelValue":n=>u.row.value=n,clearable:"",type:"textarea",autosize:{minRows:2,maxRows:10},size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),a(C,{label:"\u64CD\u4F5C",width:"90"},{default:o(u=>[a(p,{type:"danger",onClick:n=>e.set.value.splice(u.$index,1),icon:"delete",size:"small",plain:""},{default:o(()=>[Ie]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),_:1})]),_:1},8,["title","modelValue","before-close"])}var Pe=O(we,[["render",Be]]);const ze=q({name:"DataOperation",components:{StringValue:De,HashValue:be,SetValue:Pe,ProjectEnvSelect:ne},setup(){const e=R({loading:!1,redisList:[],query:{envId:0},scanParam:{id:null,match:null,count:10,cursor:{}},dataEdit:{visible:!1,title:"\u65B0\u589E\u6570\u636E",operationType:1,keyInfo:{type:"string",timed:-1,key:""}},hashValueDialog:{visible:!1},stringValueDialog:{visible:!1},setValueDialog:{visible:!1},keys:[],dbsize:0}),t=async()=>{Q(e.query.envId,"\u8BF7\u5148\u9009\u62E9\u9879\u76EE\u73AF\u5883");const n=await w.redisList.request(e.query);e.redisList=n.list},l=(n,r)=>{m(),r!=null&&(e.query.envId=r,t())},h=n=>{p(n),e.keys=[],e.dbsize=0,V()},b=async()=>{S(e.scanParam.id!=null,"\u8BF7\u5148\u9009\u62E9redis"),se(e.scanParam.count,"count\u4E0D\u80FD\u4E3A\u7A7A");const n=e.scanParam.match;!n||n=="*"?S(e.scanParam.count<=200,"match\u4E3A\u7A7A\u6216\u8005*\u65F6, count\u4E0D\u80FD\u8D85\u8FC7200"):S(e.scanParam.count<=2e4,"count\u4E0D\u80FD\u8D85\u8FC720000"),e.loading=!0;try{const r=await w.scan.request(e.scanParam);e.keys=r.keys,e.dbsize=r.dbSize,e.scanParam.cursor=r.cursor}finally{e.loading=!1}},V=async()=>{e.scanParam.cursor={},await b()},m=()=>{e.redisList=[],e.scanParam.id=null,p(),e.keys=[],e.dbsize=0},s=()=>{p(),e.scanParam.id&&b()},p=(n=0)=>{if(e.scanParam.count=10,n!=0){const r=e.redisList.find(_=>_.id==n);r&&r.mode=="cluster"&&(e.scanParam.count=5)}e.scanParam.match=null,e.scanParam.cursor={}},C=async n=>{const r=n.type;e.dataEdit.keyInfo.type=r,e.dataEdit.keyInfo.timed=n.ttl,e.dataEdit.keyInfo.key=n.key,e.dataEdit.operationType=2,e.dataEdit.title="\u67E5\u770B\u6570\u636E",r=="hash"?e.hashValueDialog.visible=!0:r=="string"?e.stringValueDialog.visible=!0:r=="set"?e.setValueDialog.visible=!0:F.warning("\u6682\u4E0D\u652F\u6301\u8BE5\u7C7B\u578B")},y=n=>{Q(e.scanParam.id,"\u8BF7\u5148\u9009\u62E9redis"),e.dataEdit.operationType=1,e.dataEdit.title="\u65B0\u589E\u6570\u636E",e.dataEdit.keyInfo.type=n,e.dataEdit.keyInfo.timed=-1,n=="hash"?e.hashValueDialog.visible=!0:n=="string"?e.stringValueDialog.visible=!0:n=="set"?e.setValueDialog.visible=!0:F.warning("\u6682\u4E0D\u652F\u6301\u8BE5\u7C7B\u578B")},c=()=>{e.dataEdit.keyInfo={}},v=n=>{W.confirm(`\u786E\u5B9A\u5220\u9664[ ${n} ] \u8BE5key?`,"\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{w.delKey.request({key:n,id:e.scanParam.id}).then(()=>{F.success("\u5220\u9664\u6210\u529F\uFF01"),V()})}).catch(()=>{})},k=n=>{if(n==-1||n==0)return"\u6C38\u4E45";n||(n=0);let r=parseInt(n),_=0,I=0,B=0;r>60&&(_=parseInt(r/60+""),r=r%60,_>60&&(I=parseInt(_/60+""),_=_%60,I>24&&(B=parseInt(I/24+""),I=I%24)));let T=""+r+"s";return _>0&&(T=""+_+"m:"+T),I>0&&(T=""+I+"h:"+T),B>0&&(T=""+B+"d:"+T),T},u=n=>{if(n=="string")return"#E4F5EB";if(n=="hash")return"#F9E2AE";if(n=="set")return"#A8DEE0"};return z(P({},N(e)),{changeProjectEnv:l,changeRedis:h,clearRedis:m,searchKey:V,scan:b,clear:s,getValue:C,del:v,ttlConveter:k,getTypeColor:u,onAddData:y,onCancelDataEdit:c})}}),Se={style:{float:"left"}},Ue={style:{float:"left"}},je={style:{float:"right",color:"#8492a6","margin-left":"6px","font-size":"13px"}},qe=f("scan"),Re=f("string"),Ne=f("hash"),Oe=f("set"),He={style:{float:"right"}},Ke=f("\u67E5\u770B"),Le=f("\u5220\u9664"),Me=D("div",{style:{"text-align":"center","margin-top":"10px"}},null,-1);function Ge(e,t,l,h,b,V){const m=i("el-option"),s=i("el-select"),p=i("el-form-item"),C=i("project-env-select"),y=i("el-col"),c=i("el-input"),v=i("el-button"),k=i("el-tag"),u=i("el-popover"),n=i("el-form"),r=i("el-row"),_=i("el-table-column"),I=i("el-table"),B=i("el-card"),T=i("hash-value"),X=i("string-value"),Y=i("set-value"),Z=H("loading");return g(),M("div",null,[a(B,null,{default:o(()=>[D("div",Se,[a(r,{type:"flex",justify:"space-between"},{default:o(()=>[a(y,{span:24},{default:o(()=>[a(C,{onChangeProjectEnv:e.changeProjectEnv,onClear:e.clearRedis},{default:o(()=>[a(p,{label:"redis","label-width":"40px"},{default:o(()=>[a(s,{modelValue:e.scanParam.id,"onUpdate:modelValue":t[0]||(t[0]=d=>e.scanParam.id=d),placeholder:"\u8BF7\u9009\u62E9redis",onChange:e.changeRedis,onClear:e.clearRedis,clearable:""},{default:o(()=>[(g(!0),M(ue,null,re(e.redisList,d=>(g(),E(m,{key:d.id,label:d.host,value:d.id},{default:o(()=>[D("span",Ue,A(d.host),1),D("span",je,A(`\u5E93: [${d.db}]`),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange","onClear"])]),_:1})]),_:1},8,["onChangeProjectEnv","onClear"])]),_:1}),a(y,{class:"mt10"},{default:o(()=>[a(n,{class:"search-form","label-position":"right",inline:!0,"label-width":"60px"},{default:o(()=>[a(p,{label:"key","label-width":"40px"},{default:o(()=>[a(c,{placeholder:"match \u652F\u6301*\u6A21\u7CCAkey",style:{width:"240px"},modelValue:e.scanParam.match,"onUpdate:modelValue":t[1]||(t[1]=d=>e.scanParam.match=d),onClear:t[2]||(t[2]=d=>e.clear()),clearable:""},null,8,["modelValue"])]),_:1}),a(p,{label:"count","label-width":"60px"},{default:o(()=>[a(c,{placeholder:"count",style:{width:"62px"},modelValue:e.scanParam.count,"onUpdate:modelValue":t[3]||(t[3]=d=>e.scanParam.count=d),modelModifiers:{number:!0}},null,8,["modelValue"])]),_:1}),a(p,null,{default:o(()=>[a(v,{onClick:t[4]||(t[4]=d=>e.searchKey()),type:"success",icon:"search",plain:""}),a(v,{onClick:t[5]||(t[5]=d=>e.scan()),icon:"bottom",plain:""},{default:o(()=>[qe]),_:1}),a(u,{placement:"right",width:200,trigger:"click"},{reference:o(()=>[a(v,{type:"primary",icon:"plus",plain:""})]),default:o(()=>[a(k,{onClick:t[6]||(t[6]=d=>e.onAddData("string")),color:e.getTypeColor("string"),style:{cursor:"pointer"}},{default:o(()=>[Re]),_:1},8,["color"]),a(k,{onClick:t[7]||(t[7]=d=>e.onAddData("hash")),color:e.getTypeColor("hash"),class:"ml5",style:{cursor:"pointer"}},{default:o(()=>[Ne]),_:1},8,["color"]),a(k,{onClick:t[8]||(t[8]=d=>e.onAddData("set")),color:e.getTypeColor("set"),class:"ml5",style:{cursor:"pointer"}},{default:o(()=>[Oe]),_:1},8,["color"])]),_:1})]),_:1}),D("div",He,[D("span",null,"keys: "+A(e.dbsize),1)])]),_:1})]),_:1})]),_:1})]),K((g(),E(I,{data:e.keys,stripe:"","highlight-current-row":!0,style:{cursor:"pointer"}},{default:o(()=>[a(_,{"show-overflow-tooltip":"",prop:"key",label:"key"}),a(_,{prop:"type",label:"type",width:"80"},{default:o(d=>[a(k,{color:e.getTypeColor(d.row.type),size:"small"},{default:o(()=>[f(A(d.row.type),1)]),_:2},1032,["color"])]),_:1}),a(_,{prop:"ttl",label:"ttl(\u8FC7\u671F\u65F6\u95F4)",width:"130"},{default:o(d=>[f(A(e.ttlConveter(d.row.ttl)),1)]),_:1}),a(_,{label:"\u64CD\u4F5C"},{default:o(d=>[a(v,{onClick:x=>e.getValue(d.row),type:"success",icon:"search",plain:"",size:"small"},{default:o(()=>[Ke]),_:2},1032,["onClick"]),a(v,{onClick:x=>e.del(d.row.key),type:"danger",icon:"delete",plain:"",size:"small"},{default:o(()=>[Le]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[Z,e.loading]])]),_:1}),Me,a(T,{visible:e.hashValueDialog.visible,"onUpdate:visible":t[9]||(t[9]=d=>e.hashValueDialog.visible=d),operationType:e.dataEdit.operationType,title:e.dataEdit.title,keyInfo:e.dataEdit.keyInfo,redisId:e.scanParam.id,onCancel:e.onCancelDataEdit,onValChange:e.searchKey},null,8,["visible","operationType","title","keyInfo","redisId","onCancel","onValChange"]),a(X,{visible:e.stringValueDialog.visible,"onUpdate:visible":t[10]||(t[10]=d=>e.stringValueDialog.visible=d),operationType:e.dataEdit.operationType,title:e.dataEdit.title,keyInfo:e.dataEdit.keyInfo,redisId:e.scanParam.id,onCancel:e.onCancelDataEdit,onValChange:e.searchKey},null,8,["visible","operationType","title","keyInfo","redisId","onCancel","onValChange"]),a(Y,{visible:e.setValueDialog.visible,"onUpdate:visible":t[11]||(t[11]=d=>e.setValueDialog.visible=d),title:e.dataEdit.title,keyInfo:e.dataEdit.keyInfo,redisId:e.scanParam.id,operationType:e.dataEdit.operationType,onValChange:e.searchKey,onCancel:e.onCancelDataEdit},null,8,["visible","title","keyInfo","redisId","operationType","onValChange","onCancel"])])}var ll=O(ze,[["render",Ge]]);export{ll as default}; diff --git a/server/static/static/assets/DbList.1661345446364.js b/server/static/static/assets/DbList.1661345446364.js deleted file mode 100644 index 1dc37a72..00000000 --- a/server/static/static/assets/DbList.1661345446364.js +++ /dev/null @@ -1,7 +0,0 @@ -var re=Object.defineProperty,de=Object.defineProperties;var pe=Object.getOwnPropertyDescriptors;var ee=Object.getOwnPropertySymbols;var me=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable;var le=(e,o,y)=>o in e?re(e,o,{enumerable:!0,configurable:!0,writable:!0,value:y}):e[o]=y,R=(e,o)=>{for(var y in o||(o={}))me.call(o,y)&&le(e,y,o[y]);if(ee)for(var y of ee(o))be.call(o,y)&&le(e,y,o[y]);return e},Y=(e,o)=>de(e,pe(o));import{A as W,q as te,r as X,v as ue,t as Z,_ as x,E as Q,b as d,d as p,e as I,g as l,w as a,h as K,F as N,j as L,k as g,K as fe,z as q,B as b,i as M,D as H,H as ge,o as ce,c as Ee,C as G,x as O,G as oe,J as De,I as he}from"./index.1661345446364.js";import{f as ye}from"./format.1661345446364.js";import{d as $,S as ne}from"./SqlExecBox.1661345446364.js";import{p as se}from"./api.16613454463644.js";import{m as we}from"./api.16613454463643.js";import{a as ve,i as Ce}from"./assert.1661345446364.js";import{R as ae}from"./rsa.1661345446364.js";import{E as Fe}from"./Enum.1661345446364.js";import"./Api.1661345446364.js";import"./codemirror.1661345446364.js";const Ve=W({name:"DbEdit",props:{visible:{type:Boolean},projects:{type:Array},db:{type:[Boolean,Object]},title:{type:String}},setup(e,{emit:o}){const y=te(null),i=X({dialogVisible:!1,projects:[],envs:[],allDatabases:[],databaseList:[],sshTunnelMachineList:[],form:{id:null,name:null,port:3306,username:null,password:null,params:null,database:"",project:null,projectId:null,envId:null,env:null,enableSshTunnel:null,sshTunnelMachineId:null},pwd:"",btnLoading:!1,rules:{projectId:[{required:!0,message:"\u8BF7\u9009\u62E9\u9879\u76EE",trigger:["change","blur"]}],envId:[{required:!0,message:"\u8BF7\u9009\u62E9\u73AF\u5883",trigger:["change","blur"]}],name:[{required:!0,message:"\u8BF7\u8F93\u5165\u522B\u540D",trigger:["change","blur"]}],type:[{required:!0,message:"\u8BF7\u9009\u62E9\u6570\u636E\u5E93\u7C7B\u578B",trigger:["change","blur"]}],host:[{required:!0,message:"\u8BF7\u8F93\u5165\u4E3B\u673Aip\u548Cport",trigger:["change","blur"]}],username:[{required:!0,message:"\u8BF7\u8F93\u5165\u7528\u6237\u540D",trigger:["change","blur"]}],database:[{required:!0,message:"\u8BF7\u6DFB\u52A0\u6570\u636E\u5E93",trigger:["change","blur"]}]}});ue(e,r=>{i.dialogVisible=r.visible,i.dialogVisible&&(i.projects=r.projects,r.db?(f(r.db.projectId),i.form=R({},r.db),i.databaseList=r.db.database.split(" ")):(i.envs=[],i.form={port:3306,enableSshTunnel:-1},i.databaseList=[]),T())});const k=()=>{i.form.database=i.databaseList.length==0?"":i.databaseList.join(" ")},T=async()=>{if(i.form.enableSshTunnel==1&&i.sshTunnelMachineList.length==0){const r=await we.list.request({pageNum:1,pageSize:100});i.sshTunnelMachineList=r.list}},f=async r=>{i.envs=await se.projectEnvs.request({projectId:r})},V=r=>{for(let v of i.projects)v.id==r&&(i.form.project=v.name);i.form.envId=null,i.form.env=null,i.envs=[],f(r)},h=r=>{for(let v of i.envs)v.id==r&&(i.form.env=v.name)},w=async()=>{const r=R({},i.form);r.password=await ae(r.password),i.allDatabases=await $.getAllDatabase.request(r),Q.success("\u83B7\u53D6\u6210\u529F, \u8BF7\u9009\u62E9\u9700\u8981\u7BA1\u7406\u64CD\u4F5C\u7684\u6570\u636E\u5E93")},n=async()=>{i.pwd=await $.getDbPwd.request({id:i.form.id})},B=async()=>{i.form.id||ve(i.form.password,"\u65B0\u589E\u64CD\u4F5C\uFF0C\u5BC6\u7801\u4E0D\u53EF\u4E3A\u7A7A"),y.value.validate(async r=>{if(r){const v=R({},i.form);v.password=await ae(v.password),$.saveDb.request(v).then(()=>{Q.success("\u4FDD\u5B58\u6210\u529F"),o("val-change",i.form),i.btnLoading=!0,setTimeout(()=>{i.btnLoading=!1},1e3),F()})}else return Q.error("\u8BF7\u6B63\u786E\u586B\u5199\u4FE1\u606F"),!1})},C=()=>{i.databaseList=[],i.allDatabases=[]},F=()=>{o("update:visible",!1),o("cancel"),setTimeout(()=>{C()},500)};return Y(R({},Z(i)),{dbForm:y,getAllDatabase:w,getDbPwd:n,changeDatabase:k,getSshTunnelMachines:T,changeProject:V,changeEnv:h,btnOk:B,cancel:F})}}),Be=b(":"),qe=b("\u539F\u5BC6\u7801"),ke=b("\u83B7\u53D6\u5E93\u540D"),Ie=b(" \u673A\u5668: "),Se={class:"dialog-footer"},$e=b("\u53D6 \u6D88"),Te=b("\u786E \u5B9A");function Ne(e,o,y,i,k,T){const f=d("el-option"),V=d("el-select"),h=d("el-form-item"),w=d("el-input"),n=d("el-col"),B=d("el-link"),C=d("el-popover"),F=d("el-divider"),r=d("el-checkbox"),v=d("el-form"),A=d("el-button"),U=d("el-dialog");return p(),I("div",null,[l(U,{title:e.title,modelValue:e.dialogVisible,"onUpdate:modelValue":o[14]||(o[14]=s=>e.dialogVisible=s),"before-close":e.cancel,"close-on-click-modal":!1,"destroy-on-close":!0,width:"38%"},{footer:a(()=>[K("div",Se,[l(A,{onClick:o[13]||(o[13]=s=>e.cancel())},{default:a(()=>[$e]),_:1}),l(A,{type:"primary",loading:e.btnLoading,onClick:e.btnOk},{default:a(()=>[Te]),_:1},8,["loading","onClick"])])]),default:a(()=>[l(v,{model:e.form,ref:"dbForm",rules:e.rules,"label-width":"95px"},{default:a(()=>[l(h,{prop:"projectId",label:"\u9879\u76EE:",required:""},{default:a(()=>[l(V,{style:{width:"100%"},modelValue:e.form.projectId,"onUpdate:modelValue":o[0]||(o[0]=s=>e.form.projectId=s),placeholder:"\u8BF7\u9009\u62E9\u9879\u76EE",onChange:e.changeProject,filterable:""},{default:a(()=>[(p(!0),I(N,null,L(e.projects,s=>(p(),g(f,{key:s.id,label:`${s.name} [${s.remark}]`,value:s.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),l(h,{prop:"envId",label:"\u73AF\u5883:",required:""},{default:a(()=>[l(V,{onChange:e.changeEnv,style:{width:"100%"},modelValue:e.form.envId,"onUpdate:modelValue":o[1]||(o[1]=s=>e.form.envId=s),placeholder:"\u8BF7\u9009\u62E9\u73AF\u5883"},{default:a(()=>[(p(!0),I(N,null,L(e.envs,s=>(p(),g(f,{key:s.id,label:`${s.name} [${s.remark}]`,value:s.id},null,8,["label","value"]))),128))]),_:1},8,["onChange","modelValue"])]),_:1}),l(h,{prop:"name",label:"\u522B\u540D:",required:""},{default:a(()=>[l(w,{modelValue:e.form.name,"onUpdate:modelValue":o[2]||(o[2]=s=>e.form.name=s),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165\u6570\u636E\u5E93\u522B\u540D","auto-complete":"off"},null,8,["modelValue"])]),_:1}),l(h,{prop:"type",label:"\u7C7B\u578B:",required:""},{default:a(()=>[l(V,{style:{width:"100%"},modelValue:e.form.type,"onUpdate:modelValue":o[3]||(o[3]=s=>e.form.type=s),placeholder:"\u8BF7\u9009\u62E9\u6570\u636E\u5E93\u7C7B\u578B"},{default:a(()=>[l(f,{key:"item.id",label:"mysql",value:"mysql"}),l(f,{key:"item.id",label:"postgres",value:"postgres"})]),_:1},8,["modelValue"])]),_:1}),l(h,{prop:"host",label:"host:",required:""},{default:a(()=>[l(n,{span:18},{default:a(()=>[l(w,{modelValue:e.form.host,"onUpdate:modelValue":o[4]||(o[4]=s=>e.form.host=s),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165\u4E3B\u673Aip","auto-complete":"off"},null,8,["modelValue"])]),_:1}),l(n,{style:{"text-align":"center"},span:1},{default:a(()=>[Be]),_:1}),l(n,{span:5},{default:a(()=>[l(w,{type:"number",modelValue:e.form.port,"onUpdate:modelValue":o[5]||(o[5]=s=>e.form.port=s),modelModifiers:{number:!0},placeholder:"\u8BF7\u8F93\u5165\u7AEF\u53E3"},null,8,["modelValue"])]),_:1})]),_:1}),l(h,{prop:"username",label:"\u7528\u6237\u540D:",required:""},{default:a(()=>[l(w,{modelValue:e.form.username,"onUpdate:modelValue":o[6]||(o[6]=s=>e.form.username=s),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u540D"},null,8,["modelValue"])]),_:1}),l(h,{prop:"password",label:"\u5BC6\u7801:"},{default:a(()=>[l(w,{type:"password","show-password":"",modelValue:e.form.password,"onUpdate:modelValue":o[8]||(o[8]=s=>e.form.password=s),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165\u5BC6\u7801\uFF0C\u4FEE\u6539\u64CD\u4F5C\u53EF\u4E0D\u586B",autocomplete:"new-password"},fe({_:2},[e.form.id&&e.form.id!=0?{name:"suffix",fn:a(()=>[l(C,{onHide:o[7]||(o[7]=s=>e.pwd=""),placement:"right",title:"\u539F\u5BC6\u7801",width:200,trigger:"click",content:e.pwd},{reference:a(()=>[l(B,{onClick:e.getDbPwd,underline:!1,type:"primary",class:"mr5"},{default:a(()=>[qe]),_:1},8,["onClick"])]),_:1},8,["content"])])}:void 0]),1032,["modelValue"])]),_:1}),l(h,{prop:"params",label:"\u8FDE\u63A5\u53C2\u6570:"},{default:a(()=>[l(w,{modelValue:e.form.params,"onUpdate:modelValue":o[9]||(o[9]=s=>e.form.params=s),placeholder:"\u5176\u4ED6\u8FDE\u63A5\u53C2\u6570\uFF0C\u5F62\u5982: key1=value1&key2=value2"},null,8,["modelValue"])]),_:1}),l(h,{prop:"database",label:"\u6570\u636E\u5E93\u540D:",required:""},{default:a(()=>[l(n,{span:19},{default:a(()=>[l(V,{onChange:e.changeDatabase,modelValue:e.databaseList,"onUpdate:modelValue":o[10]||(o[10]=s=>e.databaseList=s),multiple:"","collapse-tags":"","collapse-tags-tooltip":"",filterable:"","allow-create":"",placeholder:"\u8BF7\u786E\u4FDD\u6570\u636E\u5E93\u5B9E\u4F8B\u4FE1\u606F\u586B\u5199\u5B8C\u6574\u540E\u83B7\u53D6\u5E93\u540D",style:{width:"100%"}},{default:a(()=>[(p(!0),I(N,null,L(e.allDatabases,s=>(p(),g(f,{key:s,label:s,value:s},null,8,["label","value"]))),128))]),_:1},8,["onChange","modelValue"])]),_:1}),l(n,{style:{"text-align":"center"},span:1},{default:a(()=>[l(F,{direction:"vertical","border-style":"dashed"})]),_:1}),l(n,{span:4},{default:a(()=>[l(B,{onClick:e.getAllDatabase,underline:!1,type:"success"},{default:a(()=>[ke]),_:1},8,["onClick"])]),_:1})]),_:1}),l(h,{prop:"enableSshTunnel",label:"SSH\u96A7\u9053:"},{default:a(()=>[l(n,{span:3},{default:a(()=>[l(r,{onChange:e.getSshTunnelMachines,modelValue:e.form.enableSshTunnel,"onUpdate:modelValue":o[11]||(o[11]=s=>e.form.enableSshTunnel=s),"true-label":1,"false-label":-1},null,8,["onChange","modelValue"])]),_:1}),e.form.enableSshTunnel==1?(p(),g(n,{key:0,span:2},{default:a(()=>[Ie]),_:1})):q("",!0),e.form.enableSshTunnel==1?(p(),g(n,{key:1,span:19},{default:a(()=>[l(V,{style:{width:"100%"},modelValue:e.form.sshTunnelMachineId,"onUpdate:modelValue":o[12]||(o[12]=s=>e.form.sshTunnelMachineId=s),placeholder:"\u8BF7\u9009\u62E9SSH\u96A7\u9053\u673A\u5668"},{default:a(()=>[(p(!0),I(N,null,L(e.sshTunnelMachineList,s=>(p(),g(f,{key:s.id,label:`${s.ip}:${s.port} [${s.name}]`,value:s.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):q("",!0)]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title","modelValue","before-close"])])}var Le=x(Ve,[["render",Ne]]);const Ae=["bigint","binary","blob","char","datetime","decimal","double","enum","float","int","json","longblob","longtext","mediumblob","mediumtext","set","smallint","text","time","timestamp","tinyint","varbinary","varchar"],_e=["armscii8","ascii","big5","binary","cp1250","cp1251","cp1256","cp1257","cp850","cp852","cp866","cp932","dec8","eucjpms","euckr","gb18030","gb2312","gbk","geostd8","greek","hebrew","hp8","keybcs2","koi8r","koi8u","latin1","latin2","latin5","latin7","macce","macroman","sjis","swe7","tis620","ucs2","ujis","utf16","utf16le","utf32","utf8","utf8mb4"],Ue=W({name:"createTable",props:{visible:{type:Boolean},title:{type:String},data:{type:Object},dbId:{type:Number},db:{type:String}},setup(e,{emit:o}){const y=te(),{proxy:i}=ge(),k=X({dialogVisible:!1,btnloading:!1,activeName:"1",typeList:Ae,characterSetNameList:_e,tableData:{fields:{colNames:[{prop:"name",label:"\u5B57\u6BB5\u540D\u79F0"},{prop:"type",label:"\u5B57\u6BB5\u7C7B\u578B"},{prop:"length",label:"\u957F\u5EA6"},{prop:"value",label:"\u9ED8\u8BA4\u503C"},{prop:"notNull",label:"\u975E\u7A7A"},{prop:"pri",label:"\u4E3B\u952E"},{prop:"auto_increment",label:"\u81EA\u589E"},{prop:"remark",label:"\u5907\u6CE8"},{prop:"action",label:"\u64CD\u4F5C"}],res:[{name:"",type:"",value:"",length:"",notNull:!1,pri:!1,auto_increment:!1,remark:""}]},characterSet:"utf8mb4",tableName:"",tableComment:""}});ue(e,async n=>{k.dialogVisible=n.visible});const T=()=>{o("update:visible",!1),w()},f=()=>{k.tableData.fields.res.push({name:"",type:"",value:"",length:"",notNull:!1,pri:!1,auto_increment:!1,remark:""})},V=n=>{k.tableData.fields.res.splice(n,1)},h=async()=>{let n=k.tableData,B="",C=[];n.fields.res.forEach(r=>{C.push(`${r.name} ${r.type}${+r.length>0?`(${r.length})`:""} ${r.notNull?"NOT NULL":""} ${r.auto_increment?"AUTO_INCREMENT":""} ${r.value?"DEFAULT "+r.value:r.notNull?"":"DEFAULT NULL"} ${r.remark?`COMMENT '${r.remark}'`:""} -`),r.pri&&(B+=`${r.name},`)});let F=` - CREATE TABLE ${n.tableName} ( - ${C.join(",")} - ${B?`, PRIMARY KEY (${B.slice(0,-1)})`:""} - ) ENGINE=InnoDB DEFAULT CHARSET=${n.characterSet} COLLATE=utf8mb4_bin COMMENT='${n.tableComment}';`;ne({sql:F,dbId:e.dbId,db:e.db,runSuccessCallback:()=>{Q.success("\u521B\u5EFA\u6210\u529F"),i.$parent.tableInfo({id:e.dbId}),T()}})},w=()=>{y.value.resetFields(),k.tableData.fields.res=[{name:"",type:"",value:"",length:"",notNull:!1,pri:!1,auto_increment:!1,remark:""}]};return Y(R({},Z(k)),{formRef:y,cancel:T,reset:w,addRow:f,deleteRow:V,submit:h})}}),ze=b("\u5220\u9664"),je=b("\u4FDD\u5B58");function Re(e,o,y,i,k,T){const f=d("el-input"),V=d("el-form-item"),h=d("el-col"),w=d("el-option"),n=d("el-select"),B=d("el-row"),C=d("el-checkbox"),F=d("el-button"),r=d("el-table-column"),v=d("el-table"),A=d("el-tab-pane"),U=d("el-tabs"),s=d("el-form"),P=d("el-dialog");return p(),I("div",null,[l(P,{title:"\u521B\u5EFA\u8868",modelValue:e.dialogVisible,"onUpdate:modelValue":o[6]||(o[6]=m=>e.dialogVisible=m),"before-close":e.cancel,width:"90%"},{footer:a(()=>[l(F,{loading:e.btnloading,onClick:o[5]||(o[5]=m=>e.submit()),type:"primary"},{default:a(()=>[je]),_:1},8,["loading"])]),default:a(()=>[l(s,{"label-position":"left",ref:"formRef",model:e.tableData,"label-width":"80px"},{default:a(()=>[l(B,null,{default:a(()=>[l(h,{span:12},{default:a(()=>[l(V,{prop:"tableName",label:"\u8868\u540D"},{default:a(()=>[l(f,{style:{width:"80%"},modelValue:e.tableData.tableName,"onUpdate:modelValue":o[0]||(o[0]=m=>e.tableData.tableName=m),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),l(h,{span:12},{default:a(()=>[l(V,{prop:"tableComment",label:"\u5907\u6CE8"},{default:a(()=>[l(f,{style:{width:"80%"},modelValue:e.tableData.tableComment,"onUpdate:modelValue":o[1]||(o[1]=m=>e.tableData.tableComment=m),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),l(h,{style:{"margin-top":"20px"},span:12},{default:a(()=>[l(V,{prop:"characterSet",label:"\u5B57\u7B26\u96C6"},{default:a(()=>[l(n,{filterable:"",style:{width:"80%"},modelValue:e.tableData.characterSet,"onUpdate:modelValue":o[2]||(o[2]=m=>e.tableData.characterSet=m),size:"small"},{default:a(()=>[(p(!0),I(N,null,L(e.characterSetNameList,m=>(p(),g(w,{key:m,label:m,value:m},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(U,{modelValue:e.activeName,"onUpdate:modelValue":o[4]||(o[4]=m=>e.activeName=m)},{default:a(()=>[l(A,{label:"\u5B57\u6BB5",name:"1"},{default:a(()=>[l(v,{data:e.tableData.fields.res},{default:a(()=>[(p(!0),I(N,null,L(e.tableData.fields.colNames,m=>(p(),g(r,{prop:m.prop,label:m.label,key:m.prop},{default:a(E=>[m.prop==="name"?(p(),g(f,{key:0,size:"small",modelValue:E.row.name,"onUpdate:modelValue":u=>E.row.name=u},null,8,["modelValue","onUpdate:modelValue"])):q("",!0),m.prop==="type"?(p(),g(n,{key:1,filterable:"",size:"small",modelValue:E.row.type,"onUpdate:modelValue":u=>E.row.type=u},{default:a(()=>[(p(!0),I(N,null,L(e.typeList,u=>(p(),g(w,{key:u,value:u},{default:a(()=>[b(M(u),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):q("",!0),m.prop==="value"?(p(),g(f,{key:2,size:"small",modelValue:E.row.value,"onUpdate:modelValue":u=>E.row.value=u},null,8,["modelValue","onUpdate:modelValue"])):q("",!0),m.prop==="length"?(p(),g(f,{key:3,size:"small",modelValue:E.row.length,"onUpdate:modelValue":u=>E.row.length=u},null,8,["modelValue","onUpdate:modelValue"])):q("",!0),m.prop==="notNull"?(p(),g(C,{key:4,size:"small",modelValue:E.row.notNull,"onUpdate:modelValue":u=>E.row.notNull=u},null,8,["modelValue","onUpdate:modelValue"])):q("",!0),m.prop==="pri"?(p(),g(C,{key:5,size:"small",modelValue:E.row.pri,"onUpdate:modelValue":u=>E.row.pri=u},null,8,["modelValue","onUpdate:modelValue"])):q("",!0),m.prop==="auto_increment"?(p(),g(C,{key:6,size:"small",modelValue:E.row.auto_increment,"onUpdate:modelValue":u=>E.row.auto_increment=u},null,8,["modelValue","onUpdate:modelValue"])):q("",!0),m.prop==="remark"?(p(),g(f,{key:7,size:"small",modelValue:E.row.remark,"onUpdate:modelValue":u=>E.row.remark=u},null,8,["modelValue","onUpdate:modelValue"])):q("",!0),m.prop==="action"?(p(),g(F,{key:8,type:"text",size:"small",onClick:H(u=>e.deleteRow(E.$index),["prevent"])},{default:a(()=>[ze]),_:2},1032,["onClick"])):q("",!0)]),_:2},1032,["prop","label"]))),128))]),_:1},8,["data"]),l(B,{style:{"margin-top":"20px"}},{default:a(()=>[l(F,{onClick:o[3]||(o[3]=m=>e.addRow()),type:"text",icon:"plus"})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["model"])]),_:1},8,["modelValue","before-close"])])}var Me=x(Ue,[["render",Re]]),J={DbSqlExecTypeEnum:new Fe().add("UPDATE","UPDATE",1).add("DELETE","DELETE",2).add("INSERT","INSERT",3)};const Pe=W({name:"DbList",components:{DbEdit:Le,CreateTable:Me},setup(){const e=X({dbId:0,db:"",permissions:{saveDb:"db:save",delDb:"db:del"},projects:[],chooseId:null,chooseData:null,query:{pageNum:1,pageSize:10},datas:[],total:0,showDumpInfo:!1,dumpInfo:{id:0,db:"",type:3,tables:[]},sqlExecLogDialog:{title:"",visible:!1,data:[],total:0,query:{dbId:0,db:"",table:"",type:null,pageNum:1,pageSize:12}},rollbackSqlDialog:{visible:!1,sql:""},chooseTableName:"",tableInfoDialog:{loading:!1,visible:!1,infos:[],tableNameSearch:"",tableCommentSearch:""},columnDialog:{visible:!1,columns:[]},indexDialog:{visible:!1,indexs:[]},ddlDialog:{visible:!1,ddl:""},dbEditDialog:{visible:!1,data:null,title:"\u65B0\u589E\u6570\u636E\u5E93"},tableCreateDialog:{visible:!1}});ce(async()=>{i()});const o=Ee(()=>{const u=e.tableInfoDialog.infos,c=e.tableInfoDialog.tableNameSearch,S=e.tableInfoDialog.tableCommentSearch;return!c&&!S?u:u.filter(z=>{let _=!0,t=!0;return c&&(_=z.tableName.toLowerCase().includes(c.toLowerCase())),S&&(t=z.tableComment.includes(S)),_&&t})}),y=u=>{!u||(e.chooseId=u.id,e.chooseData=u)},i=async()=>{let u=await $.dbs.request(e.query);u.list.forEach(c=>{c.popoverSelectDbVisible=!1,c.dbs=c.database.split(" ")}),e.datas=u.list,e.total=u.total},k=u=>{e.query.pageNum=u,i()},T=async(u=!1)=>{e.projects=await se.accountProjects.request(null),u?(e.dbEditDialog.data=null,e.dbEditDialog.title="\u65B0\u589E\u6570\u636E\u5E93\u8D44\u6E90"):(e.dbEditDialog.data=e.chooseData,e.dbEditDialog.title="\u4FEE\u6539\u6570\u636E\u5E93\u8D44\u6E90"),e.dbEditDialog.visible=!0},f=()=>{e.chooseData=null,e.chooseId=null,i()},V=async u=>{try{await oe.confirm("\u786E\u5B9A\u5220\u9664\u8BE5\u5E93?","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}),await $.deleteDb.request({id:u}),Q.success("\u5220\u9664\u6210\u529F"),e.chooseData=null,e.chooseId=null,i()}catch{}},h=async u=>{e.sqlExecLogDialog.title=`${u.name}[${u.host}:${u.port}]`,e.sqlExecLogDialog.query.dbId=u.id,n(),e.sqlExecLogDialog.visible=!0},w=()=>{e.sqlExecLogDialog.visible=!1,e.sqlExecLogDialog.data=[],e.sqlExecLogDialog.total=0,e.sqlExecLogDialog.query.dbId=0,e.sqlExecLogDialog.query.pageNum=1,e.sqlExecLogDialog.query.table="",e.sqlExecLogDialog.query.db="",e.sqlExecLogDialog.query.type=null},n=async()=>{const u=await $.getSqlExecs.request(e.sqlExecLogDialog.query);e.sqlExecLogDialog.data=u.list,e.sqlExecLogDialog.total=u.total},B=u=>{e.sqlExecLogDialog.query.pageNum=u,n()},C=u=>{e.dumpInfo.tables=u.map(c=>c.tableName)},F=u=>{Ce(e.dumpInfo.tables.length>0,"\u8BF7\u9009\u62E9\u8981\u5BFC\u51FA\u7684\u8868");const c=document.createElement("a");c.setAttribute("href",`${De.baseApiUrl}/dbs/${e.dbId}/dump?db=${u}&type=${e.dumpInfo.type}&tables=${e.dumpInfo.tables.join(",")}&token=${he("token")}`),c.click(),e.showDumpInfo=!1},r=async u=>{const c=await $.columnMetadata.request({id:u.dbId,db:u.db,tableName:u.table}),S=c[0].columnName,z=JSON.parse(u.oldValue),_=[];if(u.type==J.DbSqlExecTypeEnum.UPDATE.value)for(let t of z){const D=[];for(let j in t)j!=S&&D.push(`${j} = ${v(t[j])}`);_.push(`UPDATE ${u.table} SET ${D.join(", ")} WHERE ${S} = ${v(t[S])};`)}else if(u.type==J.DbSqlExecTypeEnum.DELETE.value){const t=c.map(D=>D.columnName);for(let D of z){const j=[];for(let ie of t)j.push(v(D[ie]));_.push(`INSERT INTO ${u.table} (${t.join(", ")}) VALUES (${j.join(", ")});`)}}e.rollbackSqlDialog.sql=_.join(` -`),e.rollbackSqlDialog.visible=!0},v=u=>typeof u=="number"?u:`'${u}'`,A=async(u,c)=>{e.tableInfoDialog.loading=!0,e.tableInfoDialog.visible=!0;try{e.tableInfoDialog.infos=await $.tableInfos.request({id:u.id,db:c}),e.dbId=u.id,e.db=c}catch{e.tableInfoDialog.visible=!1}finally{e.tableInfoDialog.loading=!1}},U=()=>{e.showDumpInfo=!1,e.tableInfoDialog.visible=!1,e.tableInfoDialog.infos=[]},s=async u=>{e.chooseTableName=u.tableName,e.columnDialog.columns=await $.columnMetadata.request({id:e.chooseId,db:e.db,tableName:u.tableName}),e.columnDialog.visible=!0},P=async u=>{e.chooseTableName=u.tableName,e.indexDialog.indexs=await $.tableIndex.request({id:e.chooseId,db:e.db,tableName:u.tableName}),e.indexDialog.visible=!0},m=async u=>{e.chooseTableName=u.tableName;const c=await $.tableDdl.request({id:e.chooseId,db:e.db,tableName:u.tableName});e.ddlDialog.ddl=c[0]["Create Table"],e.ddlDialog.visible=!0},E=async u=>{try{const c=u.tableName;await oe.confirm(`\u786E\u5B9A\u5220\u9664'${c}'\u8868?`,"\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}),ne({sql:`DROP TABLE ${c}`,dbId:e.chooseId,db:e.db,runSuccessCallback:async()=>{e.tableInfoDialog.infos=await $.tableInfos.request({id:e.chooseId,db:e.db})}})}catch{}};return Y(R({},Z(e)),{filterTableInfos:o,enums:J,search:i,choose:y,handlePageChange:k,editDb:T,valChange:f,deleteDb:V,onShowSqlExec:h,handleDumpTableSelectionChange:C,dump:F,onBeforeCloseSqlExecDialog:w,handleSqlExecPageChange:B,searchSqlExecLog:n,onShowRollbackSql:r,showTableInfo:A,closeTableInfo:U,showColumns:s,showTableIndex:P,showCreateDdl:m,dropTable:E,formatByteSize:ye})}}),Oe={class:"db-list"},He=b("\u6DFB\u52A0"),Qe=b("\u7F16\u8F91"),Ke=b("\u5220\u9664"),Ye={style:{float:"right"}},Ge=b("\u67E5\u8BE2"),Je=K("i",null,null,-1),We=b("SQL\u6267\u884C\u8BB0\u5F55"),Xe=b("\u5BFC\u51FA"),Ze=b("\u7ED3\u6784"),xe=b("\u6570\u636E"),el=b("\u7ED3\u6784\uFF0B\u6570\u636E"),ll={style:{"text-align":"right"}},ol=b("\u53D6\u6D88"),al=b("\u786E\u5B9A"),tl=b("\u521B\u5EFA\u8868"),ul=b("\u5B57\u6BB5"),nl=b("\u7D22\u5F15"),sl=b("SQL"),il=b("\u5220\u9664"),rl={class:"toolbar"},dl=b("UPDATE"),pl=b("DELETE"),ml=b("INSERT"),bl=b("\u8FD8\u539FSQL");function fl(e,o,y,i,k,T){const f=d("el-button"),V=d("el-option"),h=d("el-select"),w=d("el-radio"),n=d("el-table-column"),B=d("el-tag"),C=d("el-link"),F=d("el-table"),r=d("el-pagination"),v=d("el-row"),A=d("el-card"),U=d("el-radio-group"),s=d("el-form-item"),P=d("el-popover"),m=d("el-input"),E=d("el-dialog"),u=d("db-edit"),c=d("create-table"),S=G("auth"),z=G("waves"),_=G("loading");return p(),I("div",Oe,[l(A,null,{default:a(()=>[O((p(),g(f,{type:"primary",icon:"plus",onClick:o[0]||(o[0]=t=>e.editDb(!0))},{default:a(()=>[He]),_:1})),[[S,e.permissions.saveDb]]),O((p(),g(f,{disabled:e.chooseId==null,onClick:o[1]||(o[1]=t=>e.editDb(!1)),type:"primary",icon:"edit"},{default:a(()=>[Qe]),_:1},8,["disabled"])),[[S,e.permissions.saveDb]]),O((p(),g(f,{disabled:e.chooseId==null,onClick:o[2]||(o[2]=t=>e.deleteDb(e.chooseId)),type:"danger",icon:"delete"},{default:a(()=>[Ke]),_:1},8,["disabled"])),[[S,e.permissions.delDb]]),K("div",Ye,[l(h,{modelValue:e.query.projectId,"onUpdate:modelValue":o[3]||(o[3]=t=>e.query.projectId=t),placeholder:"\u8BF7\u9009\u62E9\u9879\u76EE",filterable:"",clearable:""},{default:a(()=>[(p(!0),I(N,null,L(e.projects,t=>(p(),g(V,{key:t.id,label:`${t.name} [${t.remark}]`,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),O((p(),g(f,{type:"primary",icon:"search",onClick:o[4]||(o[4]=t=>e.search()),class:"ml5"},{default:a(()=>[Ge]),_:1})),[[z]])]),l(F,{data:e.datas,ref:"table",onCurrentChange:e.choose,"show-overflow-tooltip":"",stripe:""},{default:a(()=>[l(n,{label:"\u9009\u62E9",width:"60px"},{default:a(t=>[l(w,{modelValue:e.chooseId,"onUpdate:modelValue":o[5]||(o[5]=D=>e.chooseId=D),label:t.row.id},{default:a(()=>[Je]),_:2},1032,["modelValue","label"])]),_:1}),l(n,{prop:"project",label:"\u9879\u76EE","min-width":"100","show-overflow-tooltip":""}),l(n,{prop:"env",label:"\u73AF\u5883","min-width":"100"}),l(n,{prop:"name",label:"\u540D\u79F0","min-width":"160","show-overflow-tooltip":""}),l(n,{"min-width":"170",label:"host:port","show-overflow-tooltip":""},{default:a(t=>[b(M(`${t.row.host}:${t.row.port}`),1)]),_:1}),l(n,{prop:"type",label:"\u7C7B\u578B","min-width":"90"}),l(n,{prop:"database",label:"\u6570\u636E\u5E93","min-width":"160"},{default:a(t=>[(p(!0),I(N,null,L(t.row.dbs,D=>(p(),g(B,{onClick:j=>e.showTableInfo(t.row,D),effect:"plain",type:"success",size:"small",key:D,style:{cursor:"pointer","margin-left":"3px"}},{default:a(()=>[b(M(D),1)]),_:2},1032,["onClick"]))),128))]),_:1}),l(n,{prop:"username",label:"\u7528\u6237\u540D","min-width":"100"}),l(n,{"min-width":"115",prop:"creator",label:"\u521B\u5EFA\u8D26\u53F7"}),l(n,{"min-width":"160",prop:"createTime",label:"\u521B\u5EFA\u65F6\u95F4","show-overflow-tooltip":""},{default:a(t=>[b(M(e.$filters.dateFormat(t.row.createTime)),1)]),_:1}),l(n,{label:"\u64CD\u4F5C","min-width":"120",fixed:"right"},{default:a(t=>[l(C,{type:"primary",plain:"",size:"small",underline:!1,onClick:D=>e.onShowSqlExec(t.row)},{default:a(()=>[We]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data","onCurrentChange"]),l(v,{style:{"margin-top":"20px"},type:"flex",justify:"end"},{default:a(()=>[l(r,{style:{"text-align":"right"},onCurrentChange:e.handlePageChange,total:e.total,layout:"prev, pager, next, total, jumper","current-page":e.query.pageNum,"onUpdate:current-page":o[6]||(o[6]=t=>e.query.pageNum=t),"page-size":e.query.pageSize},null,8,["onCurrentChange","total","current-page","page-size"])]),_:1})]),_:1}),l(E,{width:"75%",title:`${e.db} \u8868\u4FE1\u606F`,"before-close":e.closeTableInfo,modelValue:e.tableInfoDialog.visible,"onUpdate:modelValue":o[15]||(o[15]=t=>e.tableInfoDialog.visible=t)},{default:a(()=>[l(v,{class:"mb10"},{default:a(()=>[l(P,{visible:e.showDumpInfo,"onUpdate:visible":o[11]||(o[11]=t=>e.showDumpInfo=t),width:470,placement:"right"},{reference:a(()=>[l(f,{class:"ml5",type:"success",size:"small",onClick:o[7]||(o[7]=t=>e.showDumpInfo=!e.showDumpInfo)},{default:a(()=>[Xe]),_:1})]),default:a(()=>[l(s,{label:"\u5BFC\u51FA\u5185\u5BB9: "},{default:a(()=>[l(U,{modelValue:e.dumpInfo.type,"onUpdate:modelValue":o[8]||(o[8]=t=>e.dumpInfo.type=t)},{default:a(()=>[l(w,{label:1,size:"small"},{default:a(()=>[Ze]),_:1}),l(w,{label:2,size:"small"},{default:a(()=>[xe]),_:1}),l(w,{label:3,size:"small"},{default:a(()=>[el]),_:1})]),_:1},8,["modelValue"])]),_:1}),l(s,{label:"\u5BFC\u51FA\u8868: "},{default:a(()=>[l(F,{onSelectionChange:e.handleDumpTableSelectionChange,"max-height":"300",size:"small",data:e.tableInfoDialog.infos},{default:a(()=>[l(n,{type:"selection",width:"45"}),l(n,{property:"tableName",label:"\u8868\u540D","min-width":"150","show-overflow-tooltip":""}),l(n,{property:"tableComment",label:"\u5907\u6CE8","min-width":"150","show-overflow-tooltip":""})]),_:1},8,["onSelectionChange","data"])]),_:1}),K("div",ll,[l(f,{onClick:o[9]||(o[9]=t=>e.showDumpInfo=!1),size:"small"},{default:a(()=>[ol]),_:1}),l(f,{onClick:o[10]||(o[10]=t=>e.dump(e.db)),type:"success",size:"small"},{default:a(()=>[al]),_:1})])]),_:1},8,["visible"]),l(f,{type:"primary",size:"small",onClick:o[12]||(o[12]=t=>e.tableCreateDialog.visible=!0)},{default:a(()=>[tl]),_:1})]),_:1}),O((p(),g(F,{border:"",stripe:"",data:e.filterTableInfos,size:"small"},{default:a(()=>[l(n,{property:"tableName",label:"\u8868\u540D","min-width":"150","show-overflow-tooltip":""},{header:a(()=>[l(m,{modelValue:e.tableInfoDialog.tableNameSearch,"onUpdate:modelValue":o[13]||(o[13]=t=>e.tableInfoDialog.tableNameSearch=t),size:"small",placeholder:"\u8868\u540D: \u8F93\u5165\u53EF\u8FC7\u6EE4",clearable:""},null,8,["modelValue"])]),_:1}),l(n,{property:"tableComment",label:"\u5907\u6CE8","min-width":"150","show-overflow-tooltip":""},{header:a(()=>[l(m,{modelValue:e.tableInfoDialog.tableCommentSearch,"onUpdate:modelValue":o[14]||(o[14]=t=>e.tableInfoDialog.tableCommentSearch=t),size:"small",placeholder:"\u5907\u6CE8: \u8F93\u5165\u53EF\u8FC7\u6EE4",clearable:""},null,8,["modelValue"])]),_:1}),l(n,{prop:"tableRows",label:"Rows","min-width":"70",sortable:"","sort-method":(t,D)=>parseInt(t.tableRows)-parseInt(D.tableRows)},null,8,["sort-method"]),l(n,{property:"dataLength",label:"\u6570\u636E\u5927\u5C0F",sortable:"","sort-method":(t,D)=>parseInt(t.dataLength)-parseInt(D.dataLength)},{default:a(t=>[b(M(e.formatByteSize(t.row.dataLength)),1)]),_:1},8,["sort-method"]),l(n,{property:"indexLength",label:"\u7D22\u5F15\u5927\u5C0F",sortable:"","sort-method":(t,D)=>parseInt(t.indexLength)-parseInt(D.indexLength)},{default:a(t=>[b(M(e.formatByteSize(t.row.indexLength)),1)]),_:1},8,["sort-method"]),l(n,{property:"createTime",label:"\u521B\u5EFA\u65F6\u95F4","min-width":"150"}),l(n,{label:"\u66F4\u591A\u4FE1\u606F","min-width":"100"},{default:a(t=>[l(C,{onClick:H(D=>e.showColumns(t.row),["prevent"]),type:"primary"},{default:a(()=>[ul]),_:2},1032,["onClick"]),l(C,{class:"ml5",onClick:H(D=>e.showTableIndex(t.row),["prevent"]),type:"success"},{default:a(()=>[nl]),_:2},1032,["onClick"]),l(C,{class:"ml5",onClick:H(D=>e.showCreateDdl(t.row),["prevent"]),type:"info"},{default:a(()=>[sl]),_:2},1032,["onClick"])]),_:1}),l(n,{label:"\u64CD\u4F5C","min-width":"80"},{default:a(t=>[l(C,{onClick:H(D=>e.dropTable(t.row),["prevent"]),type:"danger"},{default:a(()=>[il]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[_,e.tableInfoDialog.loading]])]),_:1},8,["title","before-close","modelValue"]),l(E,{width:"90%",title:`${e.sqlExecLogDialog.title} - SQL\u6267\u884C\u8BB0\u5F55`,"before-close":e.onBeforeCloseSqlExecDialog,modelValue:e.sqlExecLogDialog.visible,"onUpdate:modelValue":o[20]||(o[20]=t=>e.sqlExecLogDialog.visible=t)},{default:a(()=>[K("div",rl,[l(m,{modelValue:e.sqlExecLogDialog.query.db,"onUpdate:modelValue":o[16]||(o[16]=t=>e.sqlExecLogDialog.query.db=t),placeholder:"\u8BF7\u8F93\u5165\u6570\u636E\u5E93\u540D",clearable:"",style:{width:"150px"}},null,8,["modelValue"]),l(m,{modelValue:e.sqlExecLogDialog.query.table,"onUpdate:modelValue":o[17]||(o[17]=t=>e.sqlExecLogDialog.query.table=t),placeholder:"\u8BF7\u8F93\u5165\u8868\u540D",clearable:"",class:"ml5",style:{width:"150px"}},null,8,["modelValue"]),l(h,{modelValue:e.sqlExecLogDialog.query.type,"onUpdate:modelValue":o[18]||(o[18]=t=>e.sqlExecLogDialog.query.type=t),placeholder:"\u8BF7\u9009\u62E9\u64CD\u4F5C\u7C7B\u578B",clearable:"",class:"ml5"},{default:a(()=>[(p(!0),I(N,null,L(e.enums.DbSqlExecTypeEnum,t=>(p(),g(V,{key:t.value,label:t.label,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),l(f,{class:"ml5",onClick:e.searchSqlExecLog,type:"success",icon:"search"},null,8,["onClick"])]),l(F,{border:"",stripe:"",data:e.sqlExecLogDialog.data,size:"small"},{default:a(()=>[l(n,{prop:"db",label:"\u6570\u636E\u5E93","min-width":"60","show-overflow-tooltip":""}),l(n,{prop:"table",label:"\u8868","min-width":"60","show-overflow-tooltip":""}),l(n,{prop:"type",label:"\u7C7B\u578B",width:"85","show-overflow-tooltip":""},{default:a(t=>[t.row.type==e.enums.DbSqlExecTypeEnum.UPDATE.value?(p(),g(B,{key:0,color:"#E4F5EB",size:"small"},{default:a(()=>[dl]),_:1})):q("",!0),t.row.type==e.enums.DbSqlExecTypeEnum.DELETE.value?(p(),g(B,{key:1,color:"#F9E2AE",size:"small"},{default:a(()=>[pl]),_:1})):q("",!0),t.row.type==e.enums.DbSqlExecTypeEnum.INSERT.value?(p(),g(B,{key:2,color:"#A8DEE0",size:"small"},{default:a(()=>[ml]),_:1})):q("",!0)]),_:1}),l(n,{prop:"sql",label:"SQL","min-width":"230","show-overflow-tooltip":""}),l(n,{prop:"oldValue",label:"\u539F\u503C","min-width":"150","show-overflow-tooltip":""}),l(n,{prop:"creator",label:"\u6267\u884C\u4EBA","min-width":"60","show-overflow-tooltip":""}),l(n,{prop:"createTime",label:"\u6267\u884C\u65F6\u95F4","show-overflow-tooltip":""},{default:a(t=>[b(M(e.$filters.dateFormat(t.row.createTime)),1)]),_:1}),l(n,{prop:"remark",label:"\u5907\u6CE8","min-width":"60","show-overflow-tooltip":""}),l(n,{label:"\u64CD\u4F5C","min-width":"50",fixed:"right"},{default:a(t=>[t.row.type==e.enums.DbSqlExecTypeEnum.UPDATE.value||t.row.type==e.enums.DbSqlExecTypeEnum.DELETE.value?(p(),g(C,{key:0,type:"primary",plain:"",size:"small",underline:!1,onClick:D=>e.onShowRollbackSql(t.row)},{default:a(()=>[bl]),_:2},1032,["onClick"])):q("",!0)]),_:1})]),_:1},8,["data"]),l(v,{style:{"margin-top":"20px"},type:"flex",justify:"end"},{default:a(()=>[l(r,{style:{"text-align":"right"},onCurrentChange:e.handleSqlExecPageChange,total:e.sqlExecLogDialog.total,layout:"prev, pager, next, total, jumper","current-page":e.sqlExecLogDialog.query.pageNum,"onUpdate:current-page":o[19]||(o[19]=t=>e.sqlExecLogDialog.query.pageNum=t),"page-size":e.sqlExecLogDialog.query.pageSize},null,8,["onCurrentChange","total","current-page","page-size"])]),_:1})]),_:1},8,["title","before-close","modelValue"]),l(E,{width:"55%",title:"\u8FD8\u539FSQL",modelValue:e.rollbackSqlDialog.visible,"onUpdate:modelValue":o[22]||(o[22]=t=>e.rollbackSqlDialog.visible=t)},{default:a(()=>[l(m,{type:"textarea",autosize:{minRows:15,maxRows:30},modelValue:e.rollbackSqlDialog.sql,"onUpdate:modelValue":o[21]||(o[21]=t=>e.rollbackSqlDialog.sql=t),size:"small"},null,8,["modelValue"])]),_:1},8,["modelValue"]),l(E,{width:"40%",title:`${e.chooseTableName} \u5B57\u6BB5\u4FE1\u606F`,modelValue:e.columnDialog.visible,"onUpdate:modelValue":o[23]||(o[23]=t=>e.columnDialog.visible=t)},{default:a(()=>[l(F,{border:"",stripe:"",data:e.columnDialog.columns,size:"small"},{default:a(()=>[l(n,{prop:"columnName",label:"\u540D\u79F0","show-overflow-tooltip":""}),l(n,{width:"120",prop:"columnType",label:"\u7C7B\u578B","show-overflow-tooltip":""}),l(n,{width:"80",prop:"nullable",label:"\u662F\u5426\u53EF\u4E3A\u7A7A","show-overflow-tooltip":""}),l(n,{prop:"columnComment",label:"\u5907\u6CE8","show-overflow-tooltip":""})]),_:1},8,["data"])]),_:1},8,["title","modelValue"]),l(E,{width:"40%",title:`${e.chooseTableName} \u7D22\u5F15\u4FE1\u606F`,modelValue:e.indexDialog.visible,"onUpdate:modelValue":o[24]||(o[24]=t=>e.indexDialog.visible=t)},{default:a(()=>[l(F,{border:"",stripe:"",data:e.indexDialog.indexs,size:"small"},{default:a(()=>[l(n,{prop:"indexName",label:"\u7D22\u5F15\u540D","show-overflow-tooltip":""}),l(n,{prop:"columnName",label:"\u5217\u540D","show-overflow-tooltip":""}),l(n,{prop:"seqInIndex",label:"\u5217\u5E8F\u5217\u53F7","show-overflow-tooltip":""}),l(n,{prop:"indexType",label:"\u7C7B\u578B"}),l(n,{prop:"indexComment",label:"\u5907\u6CE8","min-width":"230","show-overflow-tooltip":""})]),_:1},8,["data"])]),_:1},8,["title","modelValue"]),l(E,{width:"55%",title:`${e.chooseTableName} Create-DDL`,modelValue:e.ddlDialog.visible,"onUpdate:modelValue":o[26]||(o[26]=t=>e.ddlDialog.visible=t)},{default:a(()=>[l(m,{disabled:"",type:"textarea",autosize:{minRows:15,maxRows:30},modelValue:e.ddlDialog.ddl,"onUpdate:modelValue":o[25]||(o[25]=t=>e.ddlDialog.ddl=t),size:"small"},null,8,["modelValue"])]),_:1},8,["title","modelValue"]),l(u,{onValChange:e.valChange,projects:e.projects,title:e.dbEditDialog.title,visible:e.dbEditDialog.visible,"onUpdate:visible":o[27]||(o[27]=t=>e.dbEditDialog.visible=t),db:e.dbEditDialog.data,"onUpdate:db":o[28]||(o[28]=t=>e.dbEditDialog.data=t)},null,8,["onValChange","projects","title","visible","db"]),l(c,{dbId:e.dbId,visible:e.tableCreateDialog.visible,"onUpdate:visible":o[29]||(o[29]=t=>e.tableCreateDialog.visible=t)},null,8,["dbId","visible"])])}var Bl=x(Pe,[["render",fl]]);export{Bl as default}; diff --git a/server/static/static/assets/Enum.1661345446364.js b/server/static/static/assets/Enum.1661345446364.js deleted file mode 100644 index f24854c8..00000000 --- a/server/static/static/assets/Enum.1661345446364.js +++ /dev/null @@ -1 +0,0 @@ -class n{add(t,e,r){return this[t]={label:e,value:r},this}getLabelByValue(t){if(t==null)return"";for(const e in this){const r=this[e];if(r&&r.value===t)return r.label}return""}}export{n as E}; diff --git a/server/static/static/assets/JetBrainsMono-Regular.1661345446364.woff b/server/static/static/assets/JetBrainsMono-Regular.1661345446364.woff deleted file mode 100644 index dc1d85f5..00000000 Binary files a/server/static/static/assets/JetBrainsMono-Regular.1661345446364.woff and /dev/null differ diff --git a/server/static/static/assets/MongoDataOp.1661345446364.css b/server/static/static/assets/MongoDataOp.1661345446364.css deleted file mode 100644 index 4c098eab..00000000 --- a/server/static/static/assets/MongoDataOp.1661345446364.css +++ /dev/null @@ -1,6 +0,0 @@ -.jsoneditor input,.jsoneditor input:not([type]),.jsoneditor input[type=search],.jsoneditor input[type=text],.jsoneditor-modal input,.jsoneditor-modal input:not([type]),.jsoneditor-modal input[type=search],.jsoneditor-modal input[type=text]{height:auto;border:inherit;box-shadow:none;font-size:inherit;box-sizing:inherit;padding:inherit;font-family:inherit;transition:none;line-height:inherit}.jsoneditor input:focus,.jsoneditor input:not([type]):focus,.jsoneditor input[type=search]:focus,.jsoneditor input[type=text]:focus,.jsoneditor-modal input:focus,.jsoneditor-modal input:not([type]):focus,.jsoneditor-modal input[type=search]:focus,.jsoneditor-modal input[type=text]:focus{border:inherit;box-shadow:inherit}.jsoneditor textarea,.jsoneditor-modal textarea{height:inherit}.jsoneditor select,.jsoneditor-modal select{display:inherit;height:inherit}.jsoneditor label,.jsoneditor-modal label{font-size:inherit;font-weight:inherit;color:inherit}.jsoneditor table,.jsoneditor-modal table{border-collapse:collapse;width:auto}.jsoneditor td,.jsoneditor th,.jsoneditor-modal td,.jsoneditor-modal th{padding:0;display:table-cell;text-align:left;vertical-align:inherit;border-radius:inherit}.jsoneditor .autocomplete.dropdown{position:absolute;background:#fff;box-shadow:2px 2px 12px #8080804d;border:1px solid #d3d3d3;overflow-x:hidden;overflow-y:auto;cursor:default;margin:0;padding:5px;text-align:left;outline:0;font-family:consolas,menlo,monaco,Ubuntu Mono,source-code-pro,monospace;font-size:14px}.jsoneditor .autocomplete.dropdown .item{color:#1a1a1a}.jsoneditor .autocomplete.dropdown .item.hover{background-color:#ebebeb}.jsoneditor .autocomplete.hint{color:#a1a1a1;top:4px;left:4px}.jsoneditor-contextmenu-root{position:relative;width:0;height:0}.jsoneditor-contextmenu{position:absolute;box-sizing:content-box;z-index:2}.jsoneditor-contextmenu .jsoneditor-menu{position:relative;left:0;top:0;width:128px;height:auto;background:#fff;border:1px solid #d3d3d3;box-shadow:2px 2px 12px #8080804d;list-style:none;margin:0;padding:0}.jsoneditor-contextmenu .jsoneditor-menu button{position:relative;padding:0 8px 0 0;margin:0;width:128px;height:auto;border:none;cursor:pointer;color:#4d4d4d;background:0 0;font-size:14px;font-family:arial,sans-serif;box-sizing:border-box;text-align:left}.jsoneditor-contextmenu .jsoneditor-menu button::-moz-focus-inner{padding:0;border:0}.jsoneditor-contextmenu .jsoneditor-menu button.jsoneditor-default{width:96px}.jsoneditor-contextmenu .jsoneditor-menu button.jsoneditor-expand{float:right;width:32px;height:24px;border-left:1px solid #e5e5e5}.jsoneditor-contextmenu .jsoneditor-menu li{overflow:hidden}.jsoneditor-contextmenu .jsoneditor-menu li ul{display:none;position:relative;left:-10px;top:0;border:none;box-shadow:inset 0 0 10px #80808080;padding:0 10px;-webkit-transition:all .3s ease-out;-moz-transition:all .3s ease-out;-o-transition:all .3s ease-out;transition:all .3s ease-out}.jsoneditor-contextmenu .jsoneditor-menu li ul .jsoneditor-icon{margin-left:24px}.jsoneditor-contextmenu .jsoneditor-menu li ul li button{padding-left:24px;animation:all ease-in-out 1s}.jsoneditor-contextmenu .jsoneditor-menu li button .jsoneditor-expand{position:absolute;top:0;right:0;width:24px;height:24px;padding:0;margin:0 4px 0 0;background-image:url(./jsoneditor-icons.1661345446364.svg);background-position:0 -72px}.jsoneditor-contextmenu .jsoneditor-icon{position:absolute;top:0;left:0;width:24px;height:24px;border:none;padding:0;margin:0;background-image:url(./jsoneditor-icons.1661345446364.svg)}.jsoneditor-contextmenu .jsoneditor-text{padding:4px 0 4px 24px;word-wrap:break-word}.jsoneditor-contextmenu .jsoneditor-text.jsoneditor-right-margin{padding-right:24px}.jsoneditor-contextmenu .jsoneditor-separator{height:0;border-top:1px solid #e5e5e5;padding-top:5px;margin-top:5px}.jsoneditor-contextmenu button.jsoneditor-remove .jsoneditor-icon{background-position:-24px 0}.jsoneditor-contextmenu button.jsoneditor-append .jsoneditor-icon,.jsoneditor-contextmenu button.jsoneditor-insert .jsoneditor-icon{background-position:0 0}.jsoneditor-contextmenu button.jsoneditor-duplicate .jsoneditor-icon{background-position:-48px 0}.jsoneditor-contextmenu button.jsoneditor-sort-asc .jsoneditor-icon{background-position:-168px 0}.jsoneditor-contextmenu button.jsoneditor-sort-desc .jsoneditor-icon{background-position:-192px 0}.jsoneditor-contextmenu button.jsoneditor-transform .jsoneditor-icon{background-position:-216px 0}.jsoneditor-contextmenu button.jsoneditor-extract .jsoneditor-icon{background-position:0 -24px}.jsoneditor-contextmenu button.jsoneditor-type-string .jsoneditor-icon{background-position:-144px 0}.jsoneditor-contextmenu button.jsoneditor-type-auto .jsoneditor-icon{background-position:-120px 0}.jsoneditor-contextmenu button.jsoneditor-type-object .jsoneditor-icon{background-position:-72px 0}.jsoneditor-contextmenu button.jsoneditor-type-array .jsoneditor-icon{background-position:-96px 0}.jsoneditor-contextmenu button.jsoneditor-type-modes .jsoneditor-icon{background-image:none;width:6px}.jsoneditor-contextmenu li,.jsoneditor-contextmenu ul{box-sizing:content-box;position:relative}.jsoneditor-contextmenu .jsoneditor-menu button:focus,.jsoneditor-contextmenu .jsoneditor-menu button:hover{color:#1a1a1a;background-color:#f5f5f5;outline:0}.jsoneditor-contextmenu .jsoneditor-menu li button.jsoneditor-selected,.jsoneditor-contextmenu .jsoneditor-menu li button.jsoneditor-selected:focus,.jsoneditor-contextmenu .jsoneditor-menu li button.jsoneditor-selected:hover{color:#fff;background-color:#ee422e}.jsoneditor-contextmenu .jsoneditor-menu li ul li button:focus,.jsoneditor-contextmenu .jsoneditor-menu li ul li button:hover{background-color:#f5f5f5}.jsoneditor-modal{max-width:95%;border-radius:2px!important;padding:45px 15px 15px!important;box-shadow:2px 2px 12px #8080804d;color:#4d4d4d;line-height:1.3em}.jsoneditor-modal.jsoneditor-modal-transform{width:600px!important}.jsoneditor-modal .pico-modal-header{position:absolute;box-sizing:border-box;top:0;left:0;width:100%;padding:0 10px;height:30px;line-height:30px;font-family:arial,sans-serif;font-size:11pt;background:#3883fa;color:#fff}.jsoneditor-modal table{width:100%}.jsoneditor-modal table td{padding:3px 0}.jsoneditor-modal table td.jsoneditor-modal-input{text-align:right;padding-right:0;white-space:nowrap}.jsoneditor-modal table td.jsoneditor-modal-actions{padding-top:15px}.jsoneditor-modal table th{vertical-align:middle}.jsoneditor-modal p:first-child{margin-top:0}.jsoneditor-modal a{color:#3883fa}.jsoneditor-modal .jsoneditor-jmespath-block{margin-bottom:10px}.jsoneditor-modal .pico-close{background:0 0!important;font-size:24px!important;top:7px!important;right:7px!important;color:#fff}.jsoneditor-modal input{padding:4px}.jsoneditor-modal input[type=text]{cursor:inherit}.jsoneditor-modal input[disabled]{background:#d3d3d3;color:gray}.jsoneditor-modal .jsoneditor-select-wrapper{position:relative;display:inline-block}.jsoneditor-modal .jsoneditor-select-wrapper:after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid #666;position:absolute;right:8px;top:14px;pointer-events:none}.jsoneditor-modal select{padding:3px 24px 3px 10px;min-width:180px;max-width:350px;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-indent:0;text-overflow:"";font-size:14px;line-height:1.5em}.jsoneditor-modal select::-ms-expand{display:none}.jsoneditor-modal .jsoneditor-button-group input{padding:4px 10px;margin:0;border-radius:0;border-left-style:none}.jsoneditor-modal .jsoneditor-button-group input.jsoneditor-button-first{border-top-left-radius:3px;border-bottom-left-radius:3px;border-left-style:solid}.jsoneditor-modal .jsoneditor-button-group input.jsoneditor-button-last{border-top-right-radius:3px;border-bottom-right-radius:3px}.jsoneditor-modal .jsoneditor-transform-preview{background:#f5f5f5;height:200px}.jsoneditor-modal .jsoneditor-transform-preview.jsoneditor-error{color:#ee422e}.jsoneditor-modal .jsoneditor-jmespath-wizard{line-height:1.2em;width:100%;padding:0;border-radius:3px}.jsoneditor-modal .jsoneditor-jmespath-label{font-weight:700;color:#1e90ff;margin-top:20px;margin-bottom:5px}.jsoneditor-modal .jsoneditor-jmespath-wizard-table{width:100%;border-collapse:collapse}.jsoneditor-modal .jsoneditor-jmespath-wizard-label{font-style:italic;margin:4px 0 2px}.jsoneditor-modal .jsoneditor-inline{position:relative;display:inline-block;width:100%;padding-top:2px;padding-bottom:2px}.jsoneditor-modal .jsoneditor-inline:not(:last-child){padding-right:2px}.jsoneditor-modal .jsoneditor-jmespath-filter{display:flex;flex-wrap:wrap}.jsoneditor-modal .jsoneditor-jmespath-filter-field{width:180px}.jsoneditor-modal .jsoneditor-jmespath-filter-relation{width:100px}.jsoneditor-modal .jsoneditor-jmespath-filter-value{min-width:180px;flex:1}.jsoneditor-modal .jsoneditor-jmespath-sort-field{width:170px}.jsoneditor-modal .jsoneditor-jmespath-sort-order{width:150px}.jsoneditor-modal .jsoneditor-jmespath-select-fields{width:100%}.jsoneditor-modal .selectr-selected{border-color:#d3d3d3;padding:4px 28px 4px 8px}.jsoneditor-modal .selectr-selected .selectr-tag{background-color:#3883fa;border-radius:5px}.jsoneditor-modal table td,.jsoneditor-modal table th{text-align:left;vertical-align:middle;font-weight:400;color:#4d4d4d;border-spacing:0;border-collapse:collapse}.jsoneditor-modal #query,.jsoneditor-modal input,.jsoneditor-modal input[type=text],.jsoneditor-modal input[type=text]:focus,.jsoneditor-modal select,.jsoneditor-modal textarea{background:#fff;border:1px solid #d3d3d3;color:#4d4d4d;border-radius:3px;padding:4px}.jsoneditor-modal #query,.jsoneditor-modal textarea{border-radius:unset}.jsoneditor-modal,.jsoneditor-modal #query,.jsoneditor-modal input,.jsoneditor-modal input[type=text],.jsoneditor-modal option,.jsoneditor-modal select,.jsoneditor-modal table td,.jsoneditor-modal table th,.jsoneditor-modal textarea{font-size:10.5pt;font-family:arial,sans-serif}.jsoneditor-modal #query,.jsoneditor-modal .jsoneditor-transform-preview{font-family:consolas,menlo,monaco,Ubuntu Mono,source-code-pro,monospace;font-size:14px;width:100%;box-sizing:border-box}.jsoneditor-modal input[type=button],.jsoneditor-modal input[type=submit]{background:#f5f5f5;padding:4px 20px}.jsoneditor-modal input,.jsoneditor-modal select{cursor:pointer}.jsoneditor-modal .jsoneditor-button-group.jsoneditor-button-group-value-asc input.jsoneditor-button-asc,.jsoneditor-modal .jsoneditor-button-group.jsoneditor-button-group-value-desc input.jsoneditor-button-desc{background:#3883fa;border-color:#3883fa;color:#fff}.jsoneditor{color:#1a1a1a;border:thin solid #3883fa;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;height:100%;position:relative;padding:0;line-height:100%}div.jsoneditor-default,div.jsoneditor-field,div.jsoneditor-readonly,div.jsoneditor-value{border:1px solid transparent;min-height:16px;min-width:32px;line-height:16px;padding:2px;margin:1px;word-wrap:break-word;float:left}div.jsoneditor-field p,div.jsoneditor-value p{margin:0}div.jsoneditor-value{word-break:break-word}div.jsoneditor-value.jsoneditor-empty:after{content:"value"}div.jsoneditor-value.jsoneditor-string{color:#006000}div.jsoneditor-value.jsoneditor-number{color:#ee422e}div.jsoneditor-value.jsoneditor-boolean{color:#ff8c00}div.jsoneditor-value.jsoneditor-null{color:#004ed0}div.jsoneditor-value.jsoneditor-color-value,div.jsoneditor-value.jsoneditor-invalid{color:#1a1a1a}div.jsoneditor-readonly{min-width:16px;color:gray}div.jsoneditor-empty{border-color:#d3d3d3;border-style:dashed;border-radius:2px}div.jsoneditor-field.jsoneditor-empty:after{content:"field"}div.jsoneditor td{vertical-align:top}div.jsoneditor td.jsoneditor-separator{padding:3px 0;vertical-align:top;color:gray}div.jsoneditor td.jsoneditor-tree{vertical-align:top}div.jsoneditor.busy pre.jsoneditor-preview{background:#f5f5f5;color:gray}div.jsoneditor.busy div.jsoneditor-busy{display:inherit}div.jsoneditor code.jsoneditor-preview{background:0 0}div.jsoneditor.jsoneditor-mode-preview pre.jsoneditor-preview{width:100%;height:100%;box-sizing:border-box;overflow:auto;padding:2px;margin:0;white-space:pre-wrap;word-break:break-all}div.jsoneditor-default{color:gray;padding-left:10px}div.jsoneditor-tree{width:100%;height:100%;position:relative;overflow:auto;background:#fff}div.jsoneditor-tree button.jsoneditor-button{width:24px;height:24px;padding:0;margin:0;border:none;cursor:pointer;background-color:transparent;background-image:url(./jsoneditor-icons.1661345446364.svg)}div.jsoneditor-tree button.jsoneditor-button:focus{background-color:#f5f5f5;outline:#e5e5e5 solid 1px}div.jsoneditor-tree button.jsoneditor-collapsed{background-position:0 -48px}div.jsoneditor-tree button.jsoneditor-expanded{background-position:0 -72px}div.jsoneditor-tree button.jsoneditor-contextmenu-button{background-position:-48px -72px}div.jsoneditor-tree button.jsoneditor-invisible{visibility:hidden;background:0 0}div.jsoneditor-tree button.jsoneditor-dragarea{background-image:url(./jsoneditor-icons.1661345446364.svg);background-position:-72px -72px;cursor:move}div.jsoneditor-tree :focus{outline:0}div.jsoneditor-tree div.jsoneditor-show-more{display:inline-block;padding:3px 4px;margin:2px 0;background-color:#e5e5e5;border-radius:3px;color:gray;font-family:arial,sans-serif;font-size:14px}div.jsoneditor-tree div.jsoneditor-show-more a{display:inline-block;color:gray}div.jsoneditor-tree div.jsoneditor-color{display:inline-block;width:12px;height:12px;margin:4px;border:1px solid grey;cursor:pointer}div.jsoneditor-tree div.jsoneditor-color.jsoneditor-color-readonly{cursor:inherit}div.jsoneditor-tree div.jsoneditor-date{background:#a1a1a1;color:#fff;font-family:arial,sans-serif;border-radius:3px;display:inline-block;padding:3px;margin:0 3px}div.jsoneditor-tree table.jsoneditor-tree{border-collapse:collapse;border-spacing:0;width:100%}div.jsoneditor-tree .jsoneditor-button{display:block}div.jsoneditor-tree .jsoneditor-button.jsoneditor-schema-error{width:24px;height:24px;padding:0;margin:0 4px 0 0;background-image:url(./jsoneditor-icons.1661345446364.svg);background-position:-168px -48px;background-color:transparent}div.jsoneditor-outer{position:static;width:100%;height:100%;margin:0;padding:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}div.jsoneditor-outer.has-nav-bar{margin-top:-26px;padding-top:26px}div.jsoneditor-outer.has-nav-bar.has-main-menu-bar{margin-top:-61px;padding-top:61px}div.jsoneditor-outer.has-status-bar{margin-bottom:-26px;padding-bottom:26px}div.jsoneditor-outer.has-main-menu-bar{margin-top:-35px;padding-top:35px}div.jsoneditor-busy{position:absolute;top:15%;left:0;box-sizing:border-box;width:100%;text-align:center;display:none}div.jsoneditor-busy span{background-color:#ffffab;border:1px solid #fe0;border-radius:3px;padding:5px 15px;box-shadow:0 0 5px #0006}div.jsoneditor-field.jsoneditor-empty:after,div.jsoneditor-value.jsoneditor-empty:after{pointer-events:none;color:#d3d3d3;font-size:8pt}a.jsoneditor-value.jsoneditor-url,div.jsoneditor-value.jsoneditor-url{color:#006000;text-decoration:underline}a.jsoneditor-value.jsoneditor-url{display:inline-block;padding:2px;margin:2px}a.jsoneditor-value.jsoneditor-url:focus,a.jsoneditor-value.jsoneditor-url:hover{color:#ee422e}div.jsoneditor-field.jsoneditor-highlight,div.jsoneditor-field[contenteditable=true]:focus,div.jsoneditor-field[contenteditable=true]:hover,div.jsoneditor-value.jsoneditor-highlight,div.jsoneditor-value[contenteditable=true]:focus,div.jsoneditor-value[contenteditable=true]:hover{background-color:#ffffab;border:1px solid #fe0;border-radius:2px}div.jsoneditor-field.jsoneditor-highlight-active,div.jsoneditor-field.jsoneditor-highlight-active:focus,div.jsoneditor-field.jsoneditor-highlight-active:hover,div.jsoneditor-value.jsoneditor-highlight-active,div.jsoneditor-value.jsoneditor-highlight-active:focus,div.jsoneditor-value.jsoneditor-highlight-active:hover{background-color:#fe0;border:1px solid #ffc700;border-radius:2px}div.jsoneditor-value.jsoneditor-array,div.jsoneditor-value.jsoneditor-object{min-width:16px}div.jsoneditor-tree button.jsoneditor-contextmenu-button.jsoneditor-selected,div.jsoneditor-tree button.jsoneditor-contextmenu-button:focus,div.jsoneditor-tree button.jsoneditor-contextmenu-button:hover,tr.jsoneditor-selected.jsoneditor-first button.jsoneditor-contextmenu-button{background-position:-48px -48px}div.jsoneditor-tree div.jsoneditor-show-more a:focus,div.jsoneditor-tree div.jsoneditor-show-more a:hover{color:#ee422e}.ace-jsoneditor,textarea.jsoneditor-text{min-height:150px}.ace-jsoneditor.ace_editor,textarea.jsoneditor-text.ace_editor{font-family:consolas,menlo,monaco,Ubuntu Mono,source-code-pro,monospace}textarea.jsoneditor-text{width:100%;height:100%;margin:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;outline-width:0;border:none;background-color:#fff;resize:none}tr.jsoneditor-highlight,tr.jsoneditor-selected{background-color:#d3d3d3}tr.jsoneditor-selected button.jsoneditor-contextmenu-button,tr.jsoneditor-selected button.jsoneditor-dragarea{visibility:hidden}tr.jsoneditor-selected.jsoneditor-first button.jsoneditor-contextmenu-button,tr.jsoneditor-selected.jsoneditor-first button.jsoneditor-dragarea{visibility:visible}div.jsoneditor-tree button.jsoneditor-dragarea:focus,div.jsoneditor-tree button.jsoneditor-dragarea:hover,tr.jsoneditor-selected.jsoneditor-first button.jsoneditor-dragarea{background-position:-72px -48px}div.jsoneditor td,div.jsoneditor th,div.jsoneditor tr{padding:0;margin:0}.jsoneditor-popover,.jsoneditor-schema-error,div.jsoneditor td,div.jsoneditor textarea,div.jsoneditor th,div.jsoneditor-field,div.jsoneditor-value,pre.jsoneditor-preview{font-family:consolas,menlo,monaco,Ubuntu Mono,source-code-pro,monospace;font-size:14px;color:#1a1a1a}.jsoneditor-schema-error{cursor:default;display:inline-block;height:24px;line-height:24px;position:relative;text-align:center;width:24px}.jsoneditor-popover{background-color:#4c4c4c;border-radius:3px;box-shadow:0 0 5px #0006;color:#fff;padding:7px 10px;position:absolute;cursor:auto;width:200px}.jsoneditor-popover.jsoneditor-above{bottom:32px;left:-98px}.jsoneditor-popover.jsoneditor-above:before{border-top:7px solid #4c4c4c;bottom:-7px}.jsoneditor-popover.jsoneditor-below{top:32px;left:-98px}.jsoneditor-popover.jsoneditor-below:before{border-bottom:7px solid #4c4c4c;top:-7px}.jsoneditor-popover.jsoneditor-left{top:-7px;right:32px}.jsoneditor-popover.jsoneditor-left:before{border-left:7px solid #4c4c4c;border-top:7px solid transparent;border-bottom:7px solid transparent;content:"";top:19px;right:-14px;left:inherit;margin-left:inherit;margin-top:-7px;position:absolute}.jsoneditor-popover.jsoneditor-right{top:-7px;left:32px}.jsoneditor-popover.jsoneditor-right:before{border-right:7px solid #4c4c4c;border-top:7px solid transparent;border-bottom:7px solid transparent;content:"";top:19px;left:-14px;margin-left:inherit;margin-top:-7px;position:absolute}.jsoneditor-popover:before{border-right:7px solid transparent;border-left:7px solid transparent;content:"";display:block;left:50%;margin-left:-7px;position:absolute}.jsoneditor-text-errors tr.jump-to-line:hover{text-decoration:underline;cursor:pointer}.jsoneditor-schema-error:focus .jsoneditor-popover,.jsoneditor-schema-error:hover .jsoneditor-popover{display:block;animation:fade-in .3s linear 1,move-up .3s linear 1}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.jsoneditor .jsoneditor-validation-errors-container{max-height:130px;overflow-y:auto}.jsoneditor .jsoneditor-validation-errors{width:100%;overflow:hidden}.jsoneditor .jsoneditor-additional-errors{position:absolute;margin:auto;bottom:31px;left:calc(50% - 92px);color:gray;background-color:#ebebeb;padding:7px 15px;border-radius:8px}.jsoneditor .jsoneditor-additional-errors.visible{visibility:visible;opacity:1;transition:opacity 2s linear}.jsoneditor .jsoneditor-additional-errors.hidden{visibility:hidden;opacity:0;transition:visibility 0s 2s,opacity 2s linear}.jsoneditor .jsoneditor-text-errors{width:100%;border-collapse:collapse;border-top:1px solid #ffc700}.jsoneditor .jsoneditor-text-errors td{padding:3px 6px;vertical-align:middle}.jsoneditor .jsoneditor-text-errors td pre{margin:0;white-space:pre-wrap}.jsoneditor .jsoneditor-text-errors tr{background-color:#ffffab}.jsoneditor .jsoneditor-text-errors tr.parse-error{background-color:#ee2e2e70}.jsoneditor-text-errors .jsoneditor-schema-error{border:none;width:24px;height:24px;padding:0;margin:0 4px 0 0;cursor:pointer}.jsoneditor-text-errors tr .jsoneditor-schema-error{background-image:url(./jsoneditor-icons.1661345446364.svg);background-position:-168px -48px;background-color:transparent}.jsoneditor-text-errors tr.parse-error .jsoneditor-schema-error{background-image:url(./jsoneditor-icons.1661345446364.svg);background-position:-25px 0;background-color:transparent}.jsoneditor-anchor{cursor:pointer}.jsoneditor-anchor .picker_wrapper.popup.popup_bottom{top:28px;left:-10px}.fadein{-webkit-animation:fadein .3s;animation:fadein .3s;-moz-animation:fadein .3s;-o-animation:fadein .3s}@keyframes fadein{0%{opacity:0}to{opacity:1}}.jsoneditor-modal input[type=search].selectr-input{border:1px solid #d3d3d3;width:calc(100% - 4px);margin:2px;padding:4px;box-sizing:border-box}.jsoneditor-modal button.selectr-input-clear{right:8px}.jsoneditor-menu{width:100%;height:35px;padding:2px;margin:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;background-color:#3883fa;border-bottom:1px solid #3883fa}.jsoneditor-menu>.jsoneditor-modes>button,.jsoneditor-menu>button{width:26px;height:26px;margin:2px;padding:0;border-radius:2px;border:1px solid transparent;background-color:transparent;background-image:url(./jsoneditor-icons.1661345446364.svg);color:#fff;opacity:.8;font-family:arial,sans-serif;font-size:14px;float:left}.jsoneditor-menu>.jsoneditor-modes>button:hover,.jsoneditor-menu>button:hover{background-color:#fff3;border:1px solid rgba(255,255,255,.4)}.jsoneditor-menu>.jsoneditor-modes>button:active,.jsoneditor-menu>.jsoneditor-modes>button:focus,.jsoneditor-menu>button:active,.jsoneditor-menu>button:focus{background-color:#ffffff4d}.jsoneditor-menu>.jsoneditor-modes>button:disabled,.jsoneditor-menu>button:disabled{opacity:.5;background-color:transparent;border:none}.jsoneditor-menu>button.jsoneditor-collapse-all{background-position:0 -96px}.jsoneditor-menu>button.jsoneditor-expand-all{background-position:0 -120px}.jsoneditor-menu>button.jsoneditor-sort{background-position:-120px -96px}.jsoneditor-menu>button.jsoneditor-transform{background-position:-144px -96px}.jsoneditor.jsoneditor-mode-form>.jsoneditor-menu>button.jsoneditor-sort,.jsoneditor.jsoneditor-mode-form>.jsoneditor-menu>button.jsoneditor-transform,.jsoneditor.jsoneditor-mode-view>.jsoneditor-menu>button.jsoneditor-sort,.jsoneditor.jsoneditor-mode-view>.jsoneditor-menu>button.jsoneditor-transform{display:none}.jsoneditor-menu>button.jsoneditor-undo{background-position:-24px -96px}.jsoneditor-menu>button.jsoneditor-undo:disabled{background-position:-24px -120px}.jsoneditor-menu>button.jsoneditor-redo{background-position:-48px -96px}.jsoneditor-menu>button.jsoneditor-redo:disabled{background-position:-48px -120px}.jsoneditor-menu>button.jsoneditor-compact{background-position:-72px -96px}.jsoneditor-menu>button.jsoneditor-format{background-position:-72px -120px}.jsoneditor-menu>button.jsoneditor-repair{background-position:-96px -96px}.jsoneditor-menu>.jsoneditor-modes{display:inline-block;float:left}.jsoneditor-menu>.jsoneditor-modes>button{background-image:none;width:auto;padding-left:6px;padding-right:6px}.jsoneditor-menu>.jsoneditor-modes>button.jsoneditor-separator,.jsoneditor-menu>button.jsoneditor-separator{margin-left:10px}.jsoneditor-menu a{font-family:arial,sans-serif;font-size:14px;color:#fff;opacity:.8;vertical-align:middle}.jsoneditor-menu a:hover{opacity:1}.jsoneditor-menu a.jsoneditor-poweredBy{font-size:8pt;position:absolute;right:0;top:0;padding:10px}.jsoneditor-navigation-bar{width:100%;height:26px;line-height:26px;padding:0;margin:0;border-bottom:1px solid #d3d3d3;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;color:gray;background-color:#ebebeb;overflow:hidden;font-family:arial,sans-serif;font-size:14px}.jsoneditor-search{font-family:arial,sans-serif;position:absolute;right:4px;top:4px;border-collapse:collapse;border-spacing:0;display:flex}.jsoneditor-search input{color:#1a1a1a;width:120px;border:none;outline:0;margin:1px;line-height:20px;font-family:arial,sans-serif}.jsoneditor-search button{width:16px;height:24px;padding:0;margin:0;border:none;background:url(./jsoneditor-icons.1661345446364.svg);vertical-align:top}.jsoneditor-search button:hover{background-color:transparent}.jsoneditor-search button.jsoneditor-refresh{width:18px;background-position:-99px -73px}.jsoneditor-search button.jsoneditor-next{cursor:pointer;background-position:-124px -73px}.jsoneditor-search button.jsoneditor-next:hover{background-position:-124px -49px}.jsoneditor-search button.jsoneditor-previous{cursor:pointer;background-position:-148px -73px;margin-right:2px}.jsoneditor-search button.jsoneditor-previous:hover{background-position:-148px -49px}.jsoneditor-results{font-family:arial,sans-serif;color:#fff;padding-right:5px;line-height:26px}.jsoneditor-frame{border:1px solid transparent;background-color:#fff;padding:0 2px;margin:0}.jsoneditor-statusbar{line-height:26px;height:26px;color:gray;background-color:#ebebeb;border-top:1px solid #d3d3d3;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:14px}.jsoneditor-statusbar>.jsoneditor-curserinfo-val{margin-right:12px}.jsoneditor-statusbar>.jsoneditor-curserinfo-count{margin-left:4px}.jsoneditor-statusbar>.jsoneditor-validation-error-icon{float:right;width:24px;height:24px;padding:0;margin-top:1px;background-image:url(./jsoneditor-icons.1661345446364.svg);background-position:-168px -48px;cursor:pointer}.jsoneditor-statusbar>.jsoneditor-validation-error-count{float:right;margin:0 4px 0 0;cursor:pointer}.jsoneditor-statusbar>.jsoneditor-parse-error-icon{float:right;width:24px;height:24px;padding:0;margin:1px;background-image:url(./jsoneditor-icons.1661345446364.svg);background-position:-25px 0}.jsoneditor-statusbar .jsoneditor-array-info a{color:inherit}div.jsoneditor-statusbar>.jsoneditor-curserinfo-label,div.jsoneditor-statusbar>.jsoneditor-size-info{margin:0 4px}.jsoneditor-treepath{padding:0 5px;overflow:hidden;white-space:nowrap;outline:0}.jsoneditor-treepath.show-all{word-wrap:break-word;white-space:normal;position:absolute;background-color:#ebebeb;z-index:1;box-shadow:2px 2px 12px #8080804d}.jsoneditor-treepath.show-all span.jsoneditor-treepath-show-all-btn{display:none}.jsoneditor-treepath div.jsoneditor-contextmenu-root{position:absolute;left:0}.jsoneditor-treepath .jsoneditor-treepath-show-all-btn{position:absolute;background-color:#ebebeb;left:0;height:20px;padding:0 3px;cursor:pointer}.jsoneditor-treepath .jsoneditor-treepath-element{margin:1px;font-family:arial,sans-serif;font-size:14px}.jsoneditor-treepath .jsoneditor-treepath-seperator{margin:2px;font-size:9pt;font-family:arial,sans-serif}.jsoneditor-treepath span.jsoneditor-treepath-element:hover,.jsoneditor-treepath span.jsoneditor-treepath-seperator:hover{cursor:pointer;text-decoration:underline}/*! -* Selectr 2.4.0 -* https://github.com/Mobius1/Selectr -* -* Released under the MIT license -*/.selectr-container{position:relative}.selectr-container li{list-style:none}.selectr-hidden{position:absolute;overflow:hidden;clip:rect(0,0,0,0);width:1px;height:1px;margin:-1px;padding:0;border:0 none}.selectr-visible{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;z-index:11}.selectr-desktop.multiple .selectr-visible{display:none}.selectr-desktop.multiple.native-open .selectr-visible{top:100%;min-height:200px!important;height:auto;opacity:1;display:block}.selectr-container.multiple.selectr-mobile .selectr-selected{z-index:0}.selectr-selected{position:relative;z-index:1;box-sizing:border-box;width:100%;padding:7px 28px 7px 14px;cursor:pointer;border:1px solid #999;border-radius:3px;background-color:#fff}.selectr-selected:before{position:absolute;top:50%;right:10px;width:0;height:0;content:"";-o-transform:rotate(0) translate3d(0,-50%,0);-ms-transform:rotate(0) translate3d(0,-50%,0);-moz-transform:rotate(0) translate3d(0,-50%,0);-webkit-transform:rotate(0) translate3d(0,-50%,0);transform:rotate(0) translate3d(0,-50%,0);border-width:4px 4px 0 4px;border-style:solid;border-color:#6c7a86 transparent transparent}.selectr-container.native-open .selectr-selected:before,.selectr-container.open .selectr-selected:before{border-width:0 4px 4px 4px;border-style:solid;border-color:transparent transparent #6c7a86}.selectr-label{display:none;overflow:hidden;width:100%;white-space:nowrap;text-overflow:ellipsis}.selectr-placeholder{color:#6c7a86}.selectr-tags{margin:0;padding:0;white-space:normal}.has-selected .selectr-tags{margin:0 0 -2px}.selectr-tag{list-style:none;position:relative;float:left;padding:2px 25px 2px 8px;margin:0 2px 2px 0;cursor:default;color:#fff;border:medium none;border-radius:10px;background:#acb7bf none repeat scroll 0 0}.selectr-container.multiple.has-selected .selectr-selected{padding:5px 28px 5px 5px}.selectr-options-container{position:absolute;z-index:10000;top:calc(100% - 1px);left:0;display:none;box-sizing:border-box;width:100%;border-width:0 1px 1px;border-style:solid;border-color:transparent #999 #999;border-radius:0 0 3px 3px;background-color:#fff}.selectr-container.open .selectr-options-container{display:block}.selectr-input-container{position:relative;display:none}.selectr-clear,.selectr-input-clear,.selectr-tag-remove{position:absolute;top:50%;right:22px;width:20px;height:20px;padding:0;cursor:pointer;-o-transform:translate3d(0,-50%,0);-ms-transform:translate3d(0,-50%,0);-moz-transform:translate3d(0,-50%,0);-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0);border:medium none;background-color:transparent;z-index:11}.selectr-clear,.selectr-input-clear{display:none}.selectr-container.has-selected .selectr-clear,.selectr-input-container.active .selectr-input-clear{display:block}.selectr-selected .selectr-tag-remove{right:2px}.selectr-clear:after,.selectr-clear:before,.selectr-input-clear:after,.selectr-input-clear:before,.selectr-tag-remove:after,.selectr-tag-remove:before{position:absolute;top:5px;left:9px;width:2px;height:10px;content:" ";background-color:#6c7a86}.selectr-tag-remove:after,.selectr-tag-remove:before{top:4px;width:3px;height:12px;background-color:#fff}.selectr-clear:before,.selectr-input-clear:before,.selectr-tag-remove:before{-o-transform:rotate(45deg);-ms-transform:rotate(45deg);-moz-transform:rotate(45deg);-webkit-transform:rotate(45deg);transform:rotate(45deg)}.selectr-clear:after,.selectr-input-clear:after,.selectr-tag-remove:after{-o-transform:rotate(-45deg);-ms-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.selectr-input-container.active,.selectr-input-container.active .selectr-clear{display:block}.selectr-input{top:5px;left:5px;box-sizing:border-box;width:calc(100% - 30px);margin:10px 15px;padding:7px 30px 7px 9px;border:1px solid #999;border-radius:3px}.selectr-notice{display:none;box-sizing:border-box;width:100%;padding:8px 16px;border-top:1px solid #999;border-radius:0 0 3px 3px;background-color:#fff}.selectr-container.notice .selectr-notice{display:block}.selectr-container.notice .selectr-selected{border-radius:3px 3px 0 0}.selectr-options{position:relative;top:calc(100% + 2px);display:none;overflow-x:auto;overflow-y:scroll;max-height:200px;margin:0;padding:0}.selectr-container.notice .selectr-options-container,.selectr-container.open .selectr-input-container,.selectr-container.open .selectr-options{display:block}.selectr-option{position:relative;display:block;padding:5px 20px;list-style:outside none none;cursor:pointer;font-weight:400}.selectr-options.optgroups>.selectr-option{padding-left:25px}.selectr-optgroup{font-weight:700;padding:0}.selectr-optgroup--label{font-weight:700;margin-top:10px;padding:5px 15px}.selectr-match{text-decoration:underline}.selectr-option.selected{background-color:#ddd}.selectr-option.active{color:#fff;background-color:#5897fb}.selectr-option.disabled{opacity:.4}.selectr-option.excluded{display:none}.selectr-container.open .selectr-selected{border-color:#999 #999 transparent #999;border-radius:3px 3px 0 0}.selectr-container.open .selectr-selected:after{-o-transform:rotate(180deg) translate3d(0,50%,0);-ms-transform:rotate(180deg) translate3d(0,50%,0);-moz-transform:rotate(180deg) translate3d(0,50%,0);-webkit-transform:rotate(180deg) translate3d(0,50%,0);transform:rotate(180deg) translate3d(0,50%,0)}.selectr-disabled{opacity:.6}.has-selected .selectr-placeholder,.selectr-empty{display:none}.has-selected .selectr-label{display:block}.taggable .selectr-selected{padding:4px 28px 4px 4px}.taggable .selectr-selected:after{display:table;content:" ";clear:both}.taggable .selectr-label{width:auto}.taggable .selectr-tags{float:left;display:block}.taggable .selectr-placeholder{display:none}.input-tag{float:left;min-width:90px;width:auto}.selectr-tag-input{border:medium none;padding:3px 10px;width:100%;font-family:inherit;font-weight:inherit;font-size:inherit}.selectr-input-container.loading:after{position:absolute;top:50%;right:20px;width:20px;height:20px;content:"";-o-transform:translate3d(0,-50%,0);-ms-transform:translate3d(0,-50%,0);-moz-transform:translate3d(0,-50%,0);-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0);-o-transform-origin:50% 0 0;-ms-transform-origin:50% 0 0;-moz-transform-origin:50% 0 0;-webkit-transform-origin:50% 0 0;transform-origin:50% 0 0;-moz-animation:.5s linear 0s normal forwards infinite running selectr-spin;-webkit-animation:.5s linear 0s normal forwards infinite running selectr-spin;animation:.5s linear 0s normal forwards infinite running selectr-spin;border-width:3px;border-style:solid;border-color:#aaa #ddd #ddd;border-radius:50%}@-webkit-keyframes selectr-spin{0%{-webkit-transform:rotate(0) translate3d(0,-50%,0);transform:rotate(0) translate3d(0,-50%,0)}to{-webkit-transform:rotate(360deg) translate3d(0,-50%,0);transform:rotate(360deg) translate3d(0,-50%,0)}}@keyframes selectr-spin{0%{-webkit-transform:rotate(0) translate3d(0,-50%,0);transform:rotate(0) translate3d(0,-50%,0)}to{-webkit-transform:rotate(360deg) translate3d(0,-50%,0);transform:rotate(360deg) translate3d(0,-50%,0)}}.selectr-container.open.inverted .selectr-selected{border-color:transparent #999 #999;border-radius:0 0 3px 3px}.selectr-container.inverted .selectr-options-container{border-width:1px 1px 0;border-color:#999 #999 transparent;border-radius:3px 3px 0 0;background-color:#fff}.selectr-container.inverted .selectr-options-container{top:auto;bottom:calc(100% - 1px)}.selectr-container ::-webkit-input-placeholder{color:#6c7a86;opacity:1}.selectr-container ::-moz-placeholder{color:#6c7a86;opacity:1}.selectr-container :-ms-input-placeholder{color:#6c7a86;opacity:1}.selectr-container ::placeholder{color:#6c7a86;opacity:1}div.jsoneditor-menu a.jsoneditor-poweredBy{display:none}.mongo-doc-btns{position:absolute;z-index:2;right:3px;top:2px;max-width:120px} diff --git a/server/static/static/assets/MongoDataOp.1661345446364.js b/server/static/static/assets/MongoDataOp.1661345446364.js deleted file mode 100644 index 32759535..00000000 --- a/server/static/static/assets/MongoDataOp.1661345446364.js +++ /dev/null @@ -1,243 +0,0 @@ -var Zt=Object.defineProperty,Ot=Object.defineProperties;var Dt=Object.getOwnPropertyDescriptors;var Wt=Object.getOwnPropertySymbols;var Kt=Object.prototype.hasOwnProperty,zt=Object.prototype.propertyIsEnumerable;var Ft=(Ie,le,Ge)=>le in Ie?Zt(Ie,le,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Ie[le]=Ge,kt=(Ie,le)=>{for(var Ge in le||(le={}))Kt.call(le,Ge)&&Ft(Ie,Ge,le[Ge]);if(Wt)for(var Ge of Wt(le))zt.call(le,Ge)&&Ft(Ie,Ge,le[Ge]);return Ie},Et=(Ie,le)=>Ot(Ie,Dt(le));import{m as ut}from"./api.16613454463646.js";import{P as Xt}from"./ProjectEnvSelect.1661345446364.js";import{i as Tt,a as Pt,b as Jt}from"./assert.1661345446364.js";import{f as Yt}from"./format.1661345446364.js";import{a4 as Ut,A as Gt,t as _t,q as Mt,r as Ht,o as Qt,a5 as qt,v as ei,_ as Vt,m as ti,d as qe,e as gt,h as tt,l as ii,b as Ye,g as Be,w as We,F as It,j as bt,k as mt,i as Rt,z as ni,E as ft,B as yt}from"./index.1661345446364.js";import"./Api.1661345446364.js";import"./api.16613454463644.js";var jt={exports:{}};/*! - * jsoneditor.js - * - * @brief - * JSONEditor is a web-based tool to view, edit, format, and validate JSON. - * It has various modes such as a tree editor, a code editor, and a plain text - * editor. - * - * Supported browsers: Chrome, Firefox, Safari, Opera, Internet Explorer 8+ - * - * @license - * Licensed 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. - * - * Copyright (c) 2011-2022 Jos de Jong, http://jsoneditoronline.org - * - * @author Jos de Jong, - * @version 9.9.0 - * @date 2022-06-13 - */(function(Ie,le){(function(Ge,it){Ie.exports=it()})(self,function(){return it={897:function(ie,g,X){X.d(g,{x:function(){return O}});var P=X(2602),S=X(9791),N=X(7907);function Z(W,M){for(var j=0;ja.top&&(w=!1),b?0:p.top-s.top);w?(b=f.offsetHeight,this.dom.menu.style.left="0",this.dom.menu.style.top=e+b+"px",this.dom.menu.style.bottom=""):(this.dom.menu.style.left="0",this.dom.menu.style.top="",this.dom.menu.style.bottom="0px"),this.limitHeight&&(s=w?a.bottom-p.bottom-10:p.top-a.top-10,this.dom.list.style.maxHeight=s+"px",this.dom.list.style.overflowY="auto"),this.dom.absoluteAnchor.appendChild(this.dom.root),this.selection=(0,S.getSelection)(),this.anchor=f,setTimeout(function(){n.dom.focusButton.focus()},0),W.visibleMenu&&W.visibleMenu.hide(),W.visibleMenu=this}},{key:"hide",value:function(){this.dom.absoluteAnchor&&(this.dom.absoluteAnchor.destroy(),delete this.dom.absoluteAnchor),this.dom.root.parentNode&&(this.dom.root.parentNode.removeChild(this.dom.root),this.onClose&&this.onClose()),W.visibleMenu===this&&(W.visibleMenu=void 0)}},{key:"_onExpandItem",value:function(f){var m,b=this,w=f===this.expandedItem,p=this.expandedItem;p&&(p.ul.style.height="0",p.ul.style.padding="",setTimeout(function(){b.expandedItem!==p&&(p.ul.style.display="",S.removeClassName)(p.ul.parentNode,"jsoneditor-selected")},300),this.expandedItem=void 0),w||((m=f.ul).style.display="block",m.clientHeight,setTimeout(function(){if(b.expandedItem===f){for(var s=0,a=0;a/gi,` -`))),a.appendChild(n),s.appendChild(a)),s.onclick=function(){m.onFocusLine(p)},j.appendChild(s)}),this.dom.validationErrors=b,this.dom.validationErrorsContainer.appendChild(b),this.dom.additionalErrorsIndication.title=W.length+" errors total",this.dom.validationErrorsContainer.clientHeightP[0].length)||(P=S,N=W,this.options.flex));W++);return P?((Z=P[0].match(/\n.*/g))&&(this.yylineno+=Z.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Z?Z[Z.length-1].length-1:this.yylloc.last_column+P[0].length},this.yytext+=P[0],this.match+=P[0],this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(P[0].length),this.matched+=P[0],Z=this.performAction.call(this,this.yy,this,O[N],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Z||void 0):this._input===""?this.EOF:void this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var P=this.next();return P!==void 0?P:this.lex()},begin:function(P){this.conditionStack.push(P)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(P){this.begin(P)},options:{},performAction:function(P,S,N,Z){switch(N){case 0:break;case 1:return 6;case 2:return S.yytext=S.yytext.substr(1,S.yyleng-2),4;case 3:return 17;case 4:return 18;case 5:return 23;case 6:return 24;case 7:return 22;case 8:return 21;case 9:return 10;case 10:return 11;case 11:return 8;case 12:return 14;case 13:return"INVALID"}},rules:[/^(?:\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/,/^(?:"(?:\\[\\"bfnrt/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/,/^(?:\{)/,/^(?:\})/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?::)/,/^(?:true\b)/,/^(?:false\b)/,/^(?:null\b)/,/^(?:$)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};var X;g.parser=X,g.parse=X.parse.bind(X)},3879:function(ie){function g(){}var X={defaultSelected:!0,width:"auto",disabled:!1,searchable:!0,clearable:!1,sortSelected:!1,allowDeselect:!1,closeOnScroll:!1,nativeDropdown:!1,placeholder:"Select an option...",taggable:!1,tagPlaceholder:"Enter a tag..."},P=(g.prototype={on:function(f,m){this._events=this._events||{},this._events[f]=this._events[f]||[],this._events[f].push(m)},off:function(f,m){this._events=this._events||{},f in this._events&&this._events[f].splice(this._events[f].indexOf(m),1)},emit:function(f){if(this._events=this._events||{},f in this._events)for(var m=0;m"+r.label+""}),P.each(r.children,function(l,o){o.idx=e,n.appendChild(O.call(this,o,n)),e++},this)):(r.idx=e,O.call(this,r),e++)},this),this.config.data&&Array.isArray(this.config.data)&&(w=!(this.data=[]),n=!1,e=0,P.each(this.config.data,function(i,r){S(r,"children")?(w=P.createElement("optgroup",{label:r.text}),n=P.createElement("ul",{class:"selectr-optgroup",role:"group",html:"
  • "+r.text+"
  • "}),P.each(r.children,function(l,o){(p=new Option(o.text,o.value,!1,o.hasOwnProperty("selected")&&o.selected===!0)).disabled=S(o,"disabled"),this.options.push(p),w.appendChild(p),p.idx=e,n.appendChild(O.call(this,p,o)),this.data[e]=o,e++},this)):((p=new Option(r.text,r.value,!1,r.hasOwnProperty("selected")&&r.selected===!0)).disabled=S(r,"disabled"),this.options.push(p),p.idx=e,O.call(this,p,r),this.data[e]=r,e++)},this)),this.setSelected(!0);for(var t=this.navIndex=0;tthis.tree.lastElementChild.idx){this.navIndex=this.tree.lastElementChild.idx;break}if(this.navIndexthis.optsRect.top+this.optsRect.height&&(this.tree.scrollTop=this.tree.scrollTop+(m.top+m.height-(this.optsRect.top+this.optsRect.height))),this.navIndex===this.tree.childElementCount-1&&this.requiresPagination&&W.call(this)):this.navIndex===0?this.tree.scrollTop=0:m.top-this.optsRect.top<0&&(this.tree.scrollTop=this.tree.scrollTop+(m.top-this.optsRect.top)),w&&P.removeClass(w,"active"),P.addClass(this.items[this.navIndex],"active")}else this.navigating=!1}.bind(this),this.events.reset=this.reset.bind(this),(this.config.nativeDropdown||this.mobileDevice)&&(this.container.addEventListener("touchstart",function(m){m.changedTouches[0].target===f.el&&f.toggle()}),(this.config.nativeDropdown||this.mobileDevice)&&this.container.addEventListener("click",function(m){m.preventDefault(),m.stopPropagation(),m.target===f.el&&f.toggle()}),this.el.addEventListener("change",function(m){var b;f.el.multiple?(b=f.getSelectedProperties("idx"),b=function(w,p){for(var s,a=[],n=w.slice(0),e=0;eb?(P.addClass(this.container,"inverted"),this.isInverted=!0):(P.removeClass(this.container,"inverted"),this.isInverted=!1),this.optsRect=P.rect(this.tree)},j.prototype.getOptionByIndex=function(f){return this.options[f]},j.prototype.getOptionByValue=function(f){for(var m=!1,b=0,w=this.options.length;bthis.limit&&1S.EX?((0,w.addClassName)((t=this).frame,"busy"),t.dom.busyContent.innerText=e,setTimeout(function(){n(),(0,w.removeClassName)(t.frame,"busy"),t.dom.busyContent.innerText=""},100)):n()},s.validate=p.validate,s._renderErrors=p._renderErrors,[{mode:"preview",mixin:s,data:"json"}])},6210:function(ie,P,X){X.r(P),X.d(P,{showSortModal:function(){return O}});var P=X(483),S=X.n(P),N=X(7907),Z=X(9791);function O(W,p,j,f){var m=Array.isArray(p)?(0,Z.getChildPaths)(p):[""],b=f&&f.path&&(0,Z.contains)(m,f.path)?f.path:m[0],w=f&&f.direction||"asc",p='
    '+(0,N.Iu)("sort")+"
    "+(0,N.Iu)("sortFieldLabel")+'
    '+(0,N.Iu)("sortDirectionLabel")+'
    ';S()({parent:W,content:p,overlayClass:"jsoneditor-modal-overlay",overlayStyles:{backgroundColor:"rgb(1,1,1)",opacity:.3},modalClass:"jsoneditor-modal jsoneditor-modal-sort"}).afterCreate(function(s){var a=s.modalElem().querySelector("form"),n=s.modalElem().querySelector("#ok"),e=s.modalElem().querySelector("#field"),t=s.modalElem().querySelector("#direction");function i(r){t.value=r,t.className="jsoneditor-button-group jsoneditor-button-group-value-"+t.value}m.forEach(function(r){var l,o=document.createElement("option");o.text=(l=r)===""?"@":l[0]==="."?l.slice(1):l,o.value=r,e.appendChild(o)}),e.value=b||m[0],i(w||"asc"),t.onclick=function(r){i(r.target.getAttribute("data-value"))},n.onclick=function(r){r.preventDefault(),r.stopPropagation(),s.close(),j({path:e.value,direction:t.value})},a&&(a.onsubmit=n.onclick)}).afterClose(function(s){s.destroy()}).show()}},2558:function(ie,S,X){X.r(S),X.d(S,{showTransformModal:function(){return b}});var S=X(483),P=X.n(S),S=X(3879),N=X.n(S),Z=X(7907);function O(w){return(O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p})(w)}function W(w,p,s,a){if(typeof w=="boolean"||w instanceof Boolean||w===null||typeof w=="number"||w instanceof Number||typeof w=="string"||w instanceof String||w instanceof Date)return JSON.stringify(w);if(Array.isArray(w)){for(var n=w,e=p,t=s,i=a,r=e?t+e:void 0,l=e?`[ -`:"[",o=0;oi)return l+"..."}return l+=e?` -`+t+"]":"]"}if(w&&O(w)==="object"){var h,y=w,v=p,t=s,d=a,u=v?t+v:void 0,A=!0,x=v?`{ -`:"{";if(typeof y.toJSON=="function")return W(y.toJSON(),v,t,d);for(h in y)if(function(L,k){return Object.prototype.hasOwnProperty.call(L,k)}(y,h)){var I=y[h];if(A?A=!1:x+=v?`, -`:",",(x=(x+=v?u+'"'+h+'": ':'"'+h+'":')+W(I,v,u,d)).length>d)return x+"..."}return x+=v?` -`+t+"}":"}"}}function M(w,p){for(var s="";0JMESPath query to filter, sort, or transform the JSON data.
    To learn JMESPath, go to the interactive tutorial.';function b(r){var p=r.container,s=r.json,a=r.queryDescription,a=a===void 0?m:a,n=r.createQuery,e=r.executeQuery,t=r.onTransform,i=s,r='