diff --git a/brcc-console/src/main/resources/static/css/chunk-9b4b3512.4c3463b9.css b/brcc-console/src/main/resources/static/css/chunk-9b4b3512.4c3463b9.css deleted file mode 100644 index afa34b6..0000000 --- a/brcc-console/src/main/resources/static/css/chunk-9b4b3512.4c3463b9.css +++ /dev/null @@ -1 +0,0 @@ -textarea[data-v-ef6f83d6]{min-width:100%;min-height:400px;background-color:#d5f1e4}.save-btn[data-v-ef6f83d6]{float:right;margin-bottom:16px}.editable-row-operations a[data-v-ef6f83d6]{margin-right:8px} \ No newline at end of file diff --git a/brcc-console/src/main/resources/static/css/chunk-a9519794.1a06062b.css b/brcc-console/src/main/resources/static/css/chunk-a9519794.1a06062b.css new file mode 100644 index 0000000..37afb9e --- /dev/null +++ b/brcc-console/src/main/resources/static/css/chunk-a9519794.1a06062b.css @@ -0,0 +1 @@ +textarea[data-v-8774ac68]{min-width:100%;min-height:400px;background-color:#d5f1e4}.save-btn[data-v-8774ac68]{float:right;margin-bottom:16px}.editable-row-operations a[data-v-8774ac68]{margin-right:8px}.add-form[data-v-8774ac68]{margin-top:10px}.add-form .ant-form[data-v-8774ac68]{display:flex;justify-content:space-between} diff --git a/brcc-console/src/main/resources/static/index.html b/brcc-console/src/main/resources/static/index.html index fba7761..9539756 100644 --- a/brcc-console/src/main/resources/static/index.html +++ b/brcc-console/src/main/resources/static/index.html @@ -1,6 +1,6 @@ -配置中心平台
\ No newline at end of file +} diff --git a/brcc-console/src/main/resources/static/js/app.fc7b642e.js b/brcc-console/src/main/resources/static/js/app.17297f24.js similarity index 97% rename from brcc-console/src/main/resources/static/js/app.fc7b642e.js rename to brcc-console/src/main/resources/static/js/app.17297f24.js index b95fd0f..6eab789 100644 --- a/brcc-console/src/main/resources/static/js/app.fc7b642e.js +++ b/brcc-console/src/main/resources/static/js/app.17297f24.js @@ -1 +1 @@ -(function(e){function t(t){for(var r,a,u=t[0],i=t[1],s=t[2],l=0,d=[];l1&&void 0!==arguments[1]?arguments[1]:[];localStorage.setItem("rcc-info",JSON.stringify(de(de({},JSON.parse(localStorage.getItem("rcc-info"))),{},{productId:t[0]?t[0].id:"",productName:t[0]?t[0].name:"",projectId:t[1]?t[1].id:"",projectName:t[1]?t[1].name:"",environmentId:t[2]?t[2].id:"",environmentName:t[2]?t[2].name:"",versionId:t[3]?t[3].id:"",versionName:t[3]?t[3].name:"",groupId:t[4]?t[4].id:"",groupName:t[4]?t[4].name:""})))},handleSearch:function(e){switch(e.preventDefault(),this.value.length){case 0:this.$router.push({path:"/index"});break;case 1:this.$router.push({path:"/listProject",query:{productId:this.value[0]}});break;case 2:this.$router.push({path:"/listEnv",query:{projectId:this.value[1]}});break;case 3:this.$router.push({path:"/listVersion",query:{environmentId:this.value[2]}});break;case 4:this.$router.push({path:"/listConfigGroup",query:{versionId:this.value[3]}});break;case 5:this.$router.push({path:"/listConfigItem",query:{groupId:this.value[4]}});break;default:break}},getTreeInfo:function(){var e=this;this.$api.config.getTreeData().then((function(t){e.options=t.data}))},search:function(){this.$router.push({path:"/listConfigAll",query:de({},this.form.getFieldsValue())})},handleRestPassword:function(){this.usermodal={show:!0,title:"重置密码",option:"restpwd",name:localStorage.getItem("rcc-name"),role:void 0,loading:!1}}}},pe=fe,me=(n("a9ad"),Object(W["a"])(pe,re,ae,!1,null,"6d889046",null)),he=me.exports,ge=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},ve=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"footer"},[n("p",[e._v("© 2020-2021 Baidu.com 百度公司版权所有")])])}],be={name:"rcc-footer"},ye=be,ke=(n("e837"),Object(W["a"])(ye,ge,ve,!1,null,"59b4f234",null)),we=ke.exports,je={components:{"rcc-header":he,"rcc-footer":we},computed:{key:function(){return this.$route.name?this.$route.name+ +new Date:this.$route+new Date}}},Oe=je,Pe=(n("b013"),Object(W["a"])(Oe,te,ne,!1,null,null,null)),$e=Pe.exports;A.a.use(ee.a);var Ce=[{path:"/index",name:"index",component:function(){return n.e("chunk-51bf70ef").then(n.bind(null,"d504"))}},{path:"/productLine",name:"productLine",component:function(){return n.e("chunk-5c8ab560").then(n.bind(null,"5ca2"))}},{path:"/productLine/roleManage",name:"roleManage",component:function(){return n.e("chunk-0ee9414f").then(n.bind(null,"d5c7"))}},{path:"/listProject",name:"listProject",component:function(){return n.e("chunk-10a6e784").then(n.bind(null,"83fb"))}},{path:"/listEnv",name:"listEnv",component:function(){return n.e("chunk-3b148d26").then(n.bind(null,"866e"))}},{path:"/listVersion",name:"listVersion",component:function(){return n.e("chunk-056bdad4").then(n.bind(null,"6b71"))}},{path:"/listConfigGroup",name:"listConfigGroup",component:function(){return n.e("chunk-2d0ce830").then(n.bind(null,"6088"))}},{path:"/listConfigItem",name:"listConfigItem",component:function(){return n.e("chunk-9b4b3512").then(n.bind(null,"c4a1"))}},{path:"/listConfigAll",name:"listConfigAll",component:function(){return n.e("chunk-87016a40").then(n.bind(null,"cdd5"))}},{path:"/listUser",name:"listUser",component:function(){return n.e("chunk-2d0cf311").then(n.bind(null,"6353"))}},{path:"/listLog",name:"listLog",component:function(){return n.e("chunk-605c7b54").then(n.bind(null,"dd24"))}},{path:"/listInstance",name:"listInstance",component:function(){return n.e("chunk-2d2107ff").then(n.bind(null,"b7c7"))}}],Ie=new ee.a({routes:[{path:"/",redirect:"/login",component:function(){return n.e("chunk-fd434c7a").then(n.bind(null,"a55b"))}},{path:"/login",name:"login",component:function(){return n.e("chunk-fd434c7a").then(n.bind(null,"a55b"))}},{path:"/listProject",component:$e,children:Ce},{path:"/sysMonitor.html",name:"sysMonitor",component:function(){return n.e("chunk-2d0b60c8").then(n.bind(null,"1c00"))}},{path:"/404",component:function(){return n.e("chunk-2d0e95df").then(n.bind(null,"8cdb"))}},{path:"*",redirect:"/404"}]}),Se=Ie,xe=n("cebe"),_e=n.n(xe),Ee={405:"无权限访问。",403:"未登录!",500:"服务器发生错误,请检查服务器。",100101:"参数错误!"},Le=document.cookie,De="";switch("production"){case"development":De="/api";break;case"pre":De="/pre";break;case"production":De=Le.includes("pre=1")?"/pre":"";break}var Ve=_e.a.create({baseURL:De,timeout:5e3,withCredentials:!0});Ve.interceptors.request.use((function(e){return e.headers["rcc-ts"]=(new Date).getTime(),localStorage["rcc-token"]&&(e.headers["rcc-token"]=localStorage["rcc-token"]),e}),(function(e){return Promise.reject(e)})),Ve.interceptors.response.use((function(e){return e.data}),(function(e){var t=e.response;if(t&&t.status){var n=Ee[t.status]||t.statusText,r=t.status,a=t.data;T["a"].error({message:"请求错误 "+r+": "+a.path,description:n})}else t||T["a"].error({description:"您的网络发生异常,无法连接服务器",message:"网络异常"});return Promise.reject(t)}));var Te=Ve,Ne={getIndexInfo:function(){return Te.get("/index/notice")},getLogList:function(e){return Te.get("/logs/list",{params:e})},getMenuList:function(e,t){return Te.get("/parent/"+e+"/"+t)}},qe={getUserInfo:function(){return Te.get("/user/profile")},getUserRoles:function(e,t,n){return Te.get("/environment/listByUser/"+e+"/"+t+"/"+n)},addUser:function(e,t,n){return Te.post("/project/addMember/"+e+"/"+t,n)},getUserList:function(e){return Te.get("/admin/queryUser",{params:e})},addAdmin:function(e){return Te.post("/admin/addAdmin",e)},updateAdmin:function(e,t){return Te.post("/admin/updateAdmin/"+e,t)},resetPassword:function(e){return Te.post("/admin/resetPassword",e)},deleteAdmin:function(e){return Te.post("/admin/delAdmin/"+e)}},Ae={getConfigList:function(e){return Te.get("/item/list",{params:e})},addConfig:function(e){return Te.post("/item/save",e)},batchConfig:function(e){return Te.post("/item/batchSave",e)},updateConfig:function(e){return Te.post("/item/save",e)},deleteConfig:function(e){return Te.post("/item/delete/"+e)},getItemQuery:function(e){return Te.get("/item/query",{params:e})},getTreeData:function(){return Te.get("/group/findTreeInfo")}},Me={getEnvList:function(e){return Te.get("/environment/list",{params:e})},addEnv:function(e){return Te.post("/environment/save",e)},updateEnv:function(e){return Te.post("/environment/save",e)},deleteEnv:function(e){return Te.post("/environment/delete/"+e)}},Fe={getProductList:function(e){return Te.get("/product/myProduct",{params:e})},addProductMember:function(e,t){return Te.post("/product/addMember/"+e,t)},updateProduct:function(e){return Te.post("/product/save",e)}},Ue={getProjectList:function(e){return Te.get("/project/list",{params:e})},addProject:function(e){return Te.post("/project/save",e)},updateProject:function(e){return Te.post("/project/save",e)},deleteProject:function(e){return Te.post("/project/delete/"+e)},getUserList:function(e){return Te.get("/project/getMemberList",{params:e})},deleteProjectMember:function(e,t,n){return Te.post("/project/delMember/"+e+"/"+t,n)},updateProjectRef:function(e,t){return Te.post("/project/"+e+"/ref",t)}},Re={getVersionList:function(e){return Te.get("/version/list",{params:e})},addVersion:function(e){return Te.post("/version/save",e)},updateVersion:function(e){return Te.post("/version/save",e)},deleteVersion:function(e){return Te.post("/version/delete/"+e)},copyVersion:function(e){return Te.post("/version/copy",e)},getMyVersions:function(e){return Te.get("/version/myVersionTree",{params:e})},getChangeLogs:function(e,t){return Te.get("/version/"+e+"/getChangeLogs",{params:t})},pushChange:function(e){return Te.post("/version/pushChange/"+e)},getInstance:function(e){return Te.get("/instance/list",{params:e})},deleteInstance:function(e){return Te.post("/instance/delete/"+e)}},Ge={getGroupList:function(e){return Te.get("/group/list",{params:e})},addGroup:function(e){return Te.post("/group/save",e)},updateGroup:function(e){return Te.post("/group/save",e)},deleteGroup:function(e){return Te.post("/group/delete/"+e)}},Je={login:function(e){return Te.post("/user/login",e)},logOut:function(){return Te.get("/user/logout")}},Be={index:Ne,role:qe,login:Je,config:Ae,env:Me,product:Fe,version:Re,group:Ge,project:Ue};n("f5df"),n("202f");A.a.prototype.$message=N["a"],A.a.prototype.$notification=T["a"],A.a.prototype.$info=V["a"].info,A.a.prototype.$success=V["a"].success,A.a.prototype.$error=V["a"].error,A.a.prototype.$warning=V["a"].warning,A.a.prototype.$confirm=V["a"].confirm,A.a.use(D["a"]),A.a.use(L["a"]),A.a.use(E["a"]),A.a.use(_["a"]),A.a.use(x["a"]),A.a.use(S["a"]),A.a.use(I["a"]),A.a.use(C["a"]),A.a.use($["a"]),A.a.use(P["a"]),A.a.use(O["a"]),A.a.use(j["a"]),A.a.use(w["a"]),A.a.use(k["a"]),A.a.use(y["a"]),A.a.use(b["a"]),A.a.use(v["b"]),A.a.use(g["b"]),A.a.use(h["a"]),A.a.use(V["a"]),A.a.use(m["a"]),A.a.use(p["a"]),A.a.use(f["a"]),A.a.use(d["a"]),A.a.use(l["a"]),A.a.use(s["a"]),A.a.use(i["b"]),A.a.use(u["a"]),A.a.use(c["a"]),A.a.use(o["a"]),A.a.use(a["a"]),A.a.use(r["a"]),A.a.config.productionTip=!1,A.a.prototype.$api=Be;var He=ee.a.prototype.push;ee.a.prototype.push=function(e){return He.call(this,e).catch((function(e){return e}))},new A.a({router:Se,render:function(e){return e(Y)}}).$mount("#app")},"5c48":function(e,t,n){},6389:function(e,t){e.exports=VueRouter},"7c55":function(e,t,n){"use strict";n("5c48")},"86fd":function(e,t,n){},"8bbf":function(e,t){e.exports=Vue},a1ea:function(e,t,n){},a9ad:function(e,t,n){"use strict";n("aca0")},aca0:function(e,t,n){},b013:function(e,t,n){"use strict";n("86fd")},cebe:function(e,t){e.exports=axios},cf05:function(e,t,n){e.exports=n.p+"img/logo.587c3748.png"},daa0:function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-modal",{attrs:{title:e.usermodal.title,visible:e.usermodal.show,"mask-closable":!1,"confirm-loading":e.usermodal.loading},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-form",{attrs:{layout:"horizontal",form:e.form}},["restpwd"!=e.usermodal.option?n("a-form-item",{attrs:{"label-col":{span:4},"wrapper-col":{span:18},label:"用户名"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,message:"用户名必填",type:"string"}],initialValue:e.usermodal.name}],expression:"[\n 'name',\n {\n rules: [{\n required: true,\n message: '用户名必填',\n type: 'string'\n }],\n initialValue: usermodal.name\n }\n ]"}],attrs:{placeholder:"请输入用户名"}})],1):e._e(),"restpwd"!=e.usermodal.option?n("a-form-item",{attrs:{"label-col":{span:4},"wrapper-col":{span:18},label:"角色"}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["role",{rules:[{required:!0,message:"请选择角色!"}],initialValue:e.usermodal.role}],expression:"[\n 'role',\n {\n rules: [{\n required: true,\n message: '请选择角色!'\n }],\n initialValue: usermodal.role\n }\n ]"}],attrs:{placeholder:"请选择角色"}},[n("a-select-option",{attrs:{value:0}},[e._v("普通")]),n("a-select-option",{attrs:{value:1}},[e._v("工程")]),n("a-select-option",{attrs:{value:2}},[e._v("产品线")]),n("a-select-option",{attrs:{value:3}},[e._v("系统管理员")])],1)],1):e._e(),n("a-form-item",{directives:[{name:"show",rawName:"v-show",value:"edit"!=e.usermodal.option,expression:"usermodal.option != 'edit'"}],attrs:{"label-col":{span:4},"wrapper-col":{span:18},label:"密码"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["password"],expression:"['password']"}],attrs:{type:"password",placeholder:"请输入密码"}})],1)],1)],1)],1)},a=[],o=(n("1c01"),n("58b2"),n("8e6e"),n("f3e2"),n("d25f"),n("ac6a"),n("456d"),n("7f7f"),n("bd86")),c=(n("96cf"),n("3b8d"));function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=0;return e.split("").reduce((function(e,r){var a=r.charCodeAt(0);return n+=a>=0&&a<=128?1:2,n<=t?e+r:e}),"")},o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.split("").reduce((function(e,t){var n=t.charCodeAt(0);return n>=0&&n<=128?e+1:e+2}),0)};function c(){var e=window.location.hash,t={};if(-1!==e.indexOf("?")){for(var n=e.indexOf("?")+1,r=e.substr(n),a=r.split("&"),o=0;o1&&void 0!==arguments[1]?arguments[1]:[];localStorage.setItem("rcc-info",JSON.stringify(de(de({},JSON.parse(localStorage.getItem("rcc-info"))),{},{productId:t[0]?t[0].id:"",productName:t[0]?t[0].name:"",projectId:t[1]?t[1].id:"",projectName:t[1]?t[1].name:"",environmentId:t[2]?t[2].id:"",environmentName:t[2]?t[2].name:"",versionId:t[3]?t[3].id:"",versionName:t[3]?t[3].name:"",groupId:t[4]?t[4].id:"",groupName:t[4]?t[4].name:""})))},handleSearch:function(e){switch(e.preventDefault(),this.value.length){case 0:this.$router.push({path:"/index"});break;case 1:this.$router.push({path:"/listProject",query:{productId:this.value[0]}});break;case 2:this.$router.push({path:"/listEnv",query:{projectId:this.value[1]}});break;case 3:this.$router.push({path:"/listVersion",query:{environmentId:this.value[2]}});break;case 4:this.$router.push({path:"/listConfigGroup",query:{versionId:this.value[3]}});break;case 5:this.$router.push({path:"/listConfigItem",query:{groupId:this.value[4]}});break;default:break}},getTreeInfo:function(){var e=this;this.$api.config.getTreeData().then((function(t){e.options=t.data}))},search:function(){this.$router.push({path:"/listConfigAll",query:de({},this.form.getFieldsValue())})},handleRestPassword:function(){this.usermodal={show:!0,title:"重置密码",option:"restpwd",name:localStorage.getItem("rcc-name"),role:void 0,loading:!1}}}},pe=fe,me=(n("a9ad"),Object(W["a"])(pe,re,ae,!1,null,"6d889046",null)),he=me.exports,ge=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},ve=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"footer"},[n("p",[e._v("© 2020-2021 Baidu.com 百度公司版权所有")])])}],be={name:"rcc-footer"},ye=be,ke=(n("e837"),Object(W["a"])(ye,ge,ve,!1,null,"59b4f234",null)),we=ke.exports,je={components:{"rcc-header":he,"rcc-footer":we},computed:{key:function(){return this.$route.name?this.$route.name+ +new Date:this.$route+new Date}}},Oe=je,Pe=(n("b013"),Object(W["a"])(Oe,te,ne,!1,null,null,null)),$e=Pe.exports;A.a.use(ee.a);var Ce=[{path:"/index",name:"index",component:function(){return n.e("chunk-51bf70ef").then(n.bind(null,"d504"))}},{path:"/productLine",name:"productLine",component:function(){return n.e("chunk-5c8ab560").then(n.bind(null,"5ca2"))}},{path:"/productLine/roleManage",name:"roleManage",component:function(){return n.e("chunk-0ee9414f").then(n.bind(null,"d5c7"))}},{path:"/listProject",name:"listProject",component:function(){return n.e("chunk-10a6e784").then(n.bind(null,"83fb"))}},{path:"/listEnv",name:"listEnv",component:function(){return n.e("chunk-3b148d26").then(n.bind(null,"866e"))}},{path:"/listVersion",name:"listVersion",component:function(){return n.e("chunk-056bdad4").then(n.bind(null,"6b71"))}},{path:"/listConfigGroup",name:"listConfigGroup",component:function(){return n.e("chunk-2d0ce830").then(n.bind(null,"6088"))}},{path:"/listConfigItem",name:"listConfigItem",component:function(){return n.e("chunk-a9519794").then(n.bind(null,"c4a1"))}},{path:"/listConfigAll",name:"listConfigAll",component:function(){return n.e("chunk-87016a40").then(n.bind(null,"cdd5"))}},{path:"/listUser",name:"listUser",component:function(){return n.e("chunk-2d0cf311").then(n.bind(null,"6353"))}},{path:"/listLog",name:"listLog",component:function(){return n.e("chunk-605c7b54").then(n.bind(null,"dd24"))}},{path:"/listInstance",name:"listInstance",component:function(){return n.e("chunk-2d2107ff").then(n.bind(null,"b7c7"))}}],Ie=new ee.a({routes:[{path:"/",redirect:"/login",component:function(){return n.e("chunk-fd434c7a").then(n.bind(null,"a55b"))}},{path:"/login",name:"login",component:function(){return n.e("chunk-fd434c7a").then(n.bind(null,"a55b"))}},{path:"/listProject",component:$e,children:Ce},{path:"/sysMonitor.html",name:"sysMonitor",component:function(){return n.e("chunk-2d0b60c8").then(n.bind(null,"1c00"))}},{path:"/404",component:function(){return n.e("chunk-2d0e95df").then(n.bind(null,"8cdb"))}},{path:"*",redirect:"/404"}]}),Se=Ie,xe=n("cebe"),_e=n.n(xe),Ee={405:"无权限访问。",403:"未登录!",500:"服务器发生错误,请检查服务器。",100101:"参数错误!"},Le=document.cookie,De="";switch("production"){case"development":De="/api";break;case"pre":De="/pre";break;case"production":De=Le.includes("pre=1")?"/pre":"";break}var Ve=_e.a.create({baseURL:De,timeout:5e3,withCredentials:!0});Ve.interceptors.request.use((function(e){return e.headers["rcc-ts"]=(new Date).getTime(),localStorage["rcc-token"]&&(e.headers["rcc-token"]=localStorage["rcc-token"]),e}),(function(e){return Promise.reject(e)})),Ve.interceptors.response.use((function(e){return e.data}),(function(e){var t=e.response;if(t&&t.status){var n=Ee[t.status]||t.statusText,r=t.status,a=t.data;T["a"].error({message:"请求错误 "+r+": "+a.path,description:n})}else t||T["a"].error({description:"您的网络发生异常,无法连接服务器",message:"网络异常"});return Promise.reject(t)}));var Te=Ve,Ne={getIndexInfo:function(){return Te.get("/index/notice")},getLogList:function(e){return Te.get("/logs/list",{params:e})},getMenuList:function(e,t){return Te.get("/parent/"+e+"/"+t)}},qe={getUserInfo:function(){return Te.get("/user/profile")},getUserRoles:function(e,t,n){return Te.get("/environment/listByUser/"+e+"/"+t+"/"+n)},addUser:function(e,t,n){return Te.post("/project/addMember/"+e+"/"+t,n)},getUserList:function(e){return Te.get("/admin/queryUser",{params:e})},addAdmin:function(e){return Te.post("/admin/addAdmin",e)},updateAdmin:function(e,t){return Te.post("/admin/updateAdmin/"+e,t)},resetPassword:function(e){return Te.post("/admin/resetPassword",e)},deleteAdmin:function(e){return Te.post("/admin/delAdmin/"+e)}},Ae={getConfigList:function(e){return Te.get("/item/list",{params:e})},addConfig:function(e){return Te.post("/item/save",e)},batchConfig:function(e){return Te.post("/item/batchSave",e)},updateConfig:function(e){return Te.post("/item/save",e)},deleteConfig:function(e){return Te.post("/item/delete/"+e)},getItemQuery:function(e){return Te.get("/item/query",{params:e})},getTreeData:function(){return Te.get("/group/findTreeInfo")}},Me={getEnvList:function(e){return Te.get("/environment/list",{params:e})},addEnv:function(e){return Te.post("/environment/save",e)},updateEnv:function(e){return Te.post("/environment/save",e)},deleteEnv:function(e){return Te.post("/environment/delete/"+e)}},Fe={getProductList:function(e){return Te.get("/product/myProduct",{params:e})},addProductMember:function(e,t){return Te.post("/product/addMember/"+e,t)},updateProduct:function(e){return Te.post("/product/save",e)}},Ue={getProjectList:function(e){return Te.get("/project/list",{params:e})},addProject:function(e){return Te.post("/project/save",e)},updateProject:function(e){return Te.post("/project/save",e)},deleteProject:function(e){return Te.post("/project/delete/"+e)},getUserList:function(e){return Te.get("/project/getMemberList",{params:e})},deleteProjectMember:function(e,t,n){return Te.post("/project/delMember/"+e+"/"+t,n)},updateProjectRef:function(e,t){return Te.post("/project/"+e+"/ref",t)}},Re={getVersionList:function(e){return Te.get("/version/list",{params:e})},addVersion:function(e){return Te.post("/version/save",e)},updateVersion:function(e){return Te.post("/version/save",e)},deleteVersion:function(e){return Te.post("/version/delete/"+e)},copyVersion:function(e){return Te.post("/version/copy",e)},getMyVersions:function(e){return Te.get("/version/myVersionTree",{params:e})},getChangeLogs:function(e,t){return Te.get("/version/"+e+"/getChangeLogs",{params:t})},pushChange:function(e){return Te.post("/version/pushChange/"+e)},getInstance:function(e){return Te.get("/instance/list",{params:e})},deleteInstance:function(e){return Te.post("/instance/delete/"+e)}},Ge={getGroupList:function(e){return Te.get("/group/list",{params:e})},addGroup:function(e){return Te.post("/group/save",e)},updateGroup:function(e){return Te.post("/group/save",e)},deleteGroup:function(e){return Te.post("/group/delete/"+e)}},Je={login:function(e){return Te.post("/user/login",e)},logOut:function(){return Te.get("/user/logout")}},Be={index:Ne,role:qe,login:Je,config:Ae,env:Me,product:Fe,version:Re,group:Ge,project:Ue};n("f5df"),n("202f");A.a.prototype.$message=N["a"],A.a.prototype.$notification=T["a"],A.a.prototype.$info=V["a"].info,A.a.prototype.$success=V["a"].success,A.a.prototype.$error=V["a"].error,A.a.prototype.$warning=V["a"].warning,A.a.prototype.$confirm=V["a"].confirm,A.a.use(D["a"]),A.a.use(L["a"]),A.a.use(E["a"]),A.a.use(_["a"]),A.a.use(x["a"]),A.a.use(S["a"]),A.a.use(I["a"]),A.a.use(C["a"]),A.a.use($["a"]),A.a.use(P["a"]),A.a.use(O["a"]),A.a.use(j["a"]),A.a.use(w["a"]),A.a.use(k["a"]),A.a.use(y["a"]),A.a.use(b["a"]),A.a.use(v["b"]),A.a.use(g["b"]),A.a.use(h["a"]),A.a.use(V["a"]),A.a.use(m["a"]),A.a.use(p["a"]),A.a.use(f["a"]),A.a.use(d["a"]),A.a.use(l["a"]),A.a.use(s["a"]),A.a.use(i["b"]),A.a.use(u["a"]),A.a.use(c["a"]),A.a.use(o["a"]),A.a.use(a["a"]),A.a.use(r["a"]),A.a.config.productionTip=!1,A.a.prototype.$api=Be;var He=ee.a.prototype.push;ee.a.prototype.push=function(e){return He.call(this,e).catch((function(e){return e}))},new A.a({router:Se,render:function(e){return e(Y)}}).$mount("#app")},"5c48":function(e,t,n){},6389:function(e,t){e.exports=VueRouter},"7c55":function(e,t,n){"use strict";n("5c48")},"86fd":function(e,t,n){},"8bbf":function(e,t){e.exports=Vue},a1ea:function(e,t,n){},a9ad:function(e,t,n){"use strict";n("aca0")},aca0:function(e,t,n){},b013:function(e,t,n){"use strict";n("86fd")},cebe:function(e,t){e.exports=axios},cf05:function(e,t,n){e.exports=n.p+"img/logo.587c3748.png"},daa0:function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-modal",{attrs:{title:e.usermodal.title,visible:e.usermodal.show,"mask-closable":!1,"confirm-loading":e.usermodal.loading},on:{ok:e.handleOk,cancel:e.handleCancel}},[n("a-form",{attrs:{layout:"horizontal",form:e.form}},["restpwd"!=e.usermodal.option?n("a-form-item",{attrs:{"label-col":{span:4},"wrapper-col":{span:18},label:"用户名"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,message:"用户名必填",type:"string"}],initialValue:e.usermodal.name}],expression:"[\n 'name',\n {\n rules: [{\n required: true,\n message: '用户名必填',\n type: 'string'\n }],\n initialValue: usermodal.name\n }\n ]"}],attrs:{placeholder:"请输入用户名"}})],1):e._e(),"restpwd"!=e.usermodal.option?n("a-form-item",{attrs:{"label-col":{span:4},"wrapper-col":{span:18},label:"角色"}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["role",{rules:[{required:!0,message:"请选择角色!"}],initialValue:e.usermodal.role}],expression:"[\n 'role',\n {\n rules: [{\n required: true,\n message: '请选择角色!'\n }],\n initialValue: usermodal.role\n }\n ]"}],attrs:{placeholder:"请选择角色"}},[n("a-select-option",{attrs:{value:0}},[e._v("普通")]),n("a-select-option",{attrs:{value:1}},[e._v("工程")]),n("a-select-option",{attrs:{value:2}},[e._v("产品线")]),n("a-select-option",{attrs:{value:3}},[e._v("系统管理员")])],1)],1):e._e(),n("a-form-item",{directives:[{name:"show",rawName:"v-show",value:"edit"!=e.usermodal.option,expression:"usermodal.option != 'edit'"}],attrs:{"label-col":{span:4},"wrapper-col":{span:18},label:"密码"}},[n("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["password"],expression:"['password']"}],attrs:{type:"password",placeholder:"请输入密码"}})],1)],1)],1)],1)},a=[],o=(n("1c01"),n("58b2"),n("8e6e"),n("f3e2"),n("d25f"),n("ac6a"),n("456d"),n("7f7f"),n("bd86")),c=(n("96cf"),n("3b8d"));function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=0;return e.split("").reduce((function(e,r){var a=r.charCodeAt(0);return n+=a>=0&&a<=128?1:2,n<=t?e+r:e}),"")},o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.split("").reduce((function(e,t){var n=t.charCodeAt(0);return n>=0&&n<=128?e+1:e+2}),0)};function c(){var e=window.location.hash,t={};if(-1!==e.indexOf("?")){for(var n=e.indexOf("?")+1,r=e.substr(n),a=r.split("&"),o=0;o0?arguments[0]:void 0)}}),{add:function(t){return r.def(a(this,i),t=0===t?0:t,t)}},r)},"5dbc":function(t,e,n){var r=n("d3f4"),a=n("8b97").set;t.exports=function(t,e,n){var i,o=e.constructor;return o!==n&&"function"==typeof o&&(i=o.prototype)!==n.prototype&&r(i)&&a&&a(t,i),t}},"5df3":function(t,e,n){"use strict";var r=n("02f4")(!0);n("01f9")(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},"67ab":function(t,e,n){var r=n("ca5a")("meta"),a=n("d3f4"),i=n("69a8"),o=n("86cc").f,c=0,s=Object.isExtensible||function(){return!0},u=!n("79e5")((function(){return s(Object.preventExtensions({}))})),f=function(t){o(t,r,{value:{i:"O"+ ++c,w:{}}})},d=function(t,e){if(!a(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!s(t))return"F";if(!e)return"E";f(t)}return t[r].i},l=function(t,e){if(!i(t,r)){if(!s(t))return!0;if(!e)return!1;f(t)}return t[r].w},p=function(t){return u&&h.NEED&&s(t)&&!i(t,r)&&f(t),t},h=t.exports={KEY:r,NEED:!1,fastKey:d,getWeak:l,onFreeze:p}},"6d67":function(t,e,n){"use strict";var r=n("5ca1"),a=n("0a49")(1);r(r.P+r.F*!n("2f21")([].map,!0),"Array",{map:function(t){return a(this,t,arguments[1])}})},7514:function(t,e,n){"use strict";var r=n("5ca1"),a=n("0a49")(5),i="find",o=!0;i in[]&&Array(1)[i]((function(){o=!1})),r(r.P+r.F*o,"Array",{find:function(t){return a(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(i)},"75fc":function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var r=n("a745"),a=n.n(r),i=n("db2a");function o(t){if(a()(t))return Object(i["a"])(t)}var c=n("67bb"),s=n.n(c),u=n("c8bb"),f=n.n(u),d=n("774e"),l=n.n(d);function p(t){if("undefined"!==typeof s.a&&f()(Object(t)))return l()(t)}var h=n("e630");function v(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(t){return o(t)||p(t)||Object(h["a"])(t)||v()}},"8b97":function(t,e,n){var r=n("d3f4"),a=n("cb7c"),i=function(t,e){if(a(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(a){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},a986:function(t,e,n){"use strict";n("3359")},b39a:function(t,e,n){var r=n("d3f4");t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},c26b:function(t,e,n){"use strict";var r=n("86cc").f,a=n("2aeb"),i=n("dcbc"),o=n("9b43"),c=n("f605"),s=n("4a59"),u=n("01f9"),f=n("d53b"),d=n("7a56"),l=n("9e1e"),p=n("67ab").fastKey,h=n("b39a"),v=l?"_s":"size",m=function(t,e){var n,r=p(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,u){var f=t((function(t,r){c(t,f,e,"_i"),t._t=e,t._i=a(null),t._f=void 0,t._l=void 0,t[v]=0,void 0!=r&&s(r,n,t[u],t)}));return i(f.prototype,{clear:function(){for(var t=h(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[v]=0},delete:function(t){var n=h(this,e),r=m(n,t);if(r){var a=r.n,i=r.p;delete n._i[r.i],r.r=!0,i&&(i.n=a),a&&(a.p=i),n._f==r&&(n._f=a),n._l==r&&(n._l=i),n[v]--}return!!r},forEach:function(t){h(this,e);var n,r=o(t,arguments.length>1?arguments[1]:void 0,3);while(n=n?n.n:this._f){r(n.v,n.k,this);while(n&&n.r)n=n.p}},has:function(t){return!!m(h(this,e),t)}}),l&&r(f.prototype,"size",{get:function(){return h(this,e)[v]}}),f},def:function(t,e,n){var r,a,i=m(t,e);return i?i.v=n:(t._l=i={i:a=p(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=i),r&&(r.n=i),t[v]++,"F"!==a&&(t._i[a]=i)),t},getEntry:m,setStrong:function(t,e,n){u(t,e,(function(t,n){this._t=h(t,e),this._k=n,this._l=void 0}),(function(){var t=this,e=t._k,n=t._l;while(n&&n.r)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?f(0,"keys"==e?n.k:"values"==e?n.v:[n.k,n.v]):(t._t=void 0,f(1))}),n?"entries":"values",!n,!0),d(e)}}},c4a1:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-card",{attrs:{bordered:!1}},[n("section",{staticClass:"add-btn"},[n("a-breadcrumb",{staticClass:"title"},[n("a-breadcrumb-item",{staticClass:"font-menu"},[n("a",{attrs:{href:"javascript:;"},on:{click:function(e){return t.routerTo("/index")}}},[t._v("首页")])]),n("a-breadcrumb-item",[n("a",{attrs:{href:"javascript:;"},on:{click:function(e){return t.routerTo("/productLine")}}},[t._v(t._s(t.productName)+"-产品线")])]),n("a-breadcrumb-item",[n("a",{attrs:{href:"javascript:;"},on:{click:function(e){return t.routerTo("/listProject?productId="+t.productId)}}},[t._v(t._s(t.projectName)+"-工程")])]),n("a-breadcrumb-item",[n("a",{attrs:{href:"javascript:;"},on:{click:function(e){return t.routerTo("/listEnv?projectId="+t.projectId)}}},[t._v(t._s(t.environmentName)+"-环境")])]),n("a-breadcrumb-item",[n("a",{attrs:{href:"javascript:;"},on:{click:function(e){return t.routerTo("/listVersion?environmentId="+t.environmentId)}}},[t._v(t._s(t.versionName)+"-版本")])]),n("a-breadcrumb-item",[n("a",{attrs:{href:"javascript:;"},on:{click:function(e){return t.routerTo("/listConfigGroup?versionId="+t.versionId)}}},[t._v(t._s(t.groupName)+"-分组")])]),n("a-breadcrumb-item",[t._v("\n 配置项列表\n ")])],1)],1),n("a-divider",{staticClass:"divider"}),n("section",{staticClass:"content"},[[n("a-tabs",{staticClass:"mt-10",attrs:{type:"card"}},[n("a-tab-pane",{key:"1",attrs:{tab:"逐条维护","default-active-key":""}},[[n("a-table",{attrs:{pagination:!1,loading:t.loading,columns:t.columns,"data-source":t.tableData,"row-key":function(t){return t.key}},scopedSlots:t._u([t._l(["name","val","memo"],(function(e){return{key:e,fn:function(r,a,i){return[n("div",{key:e},[a.editable||a.add?n("a-input",{staticStyle:{margin:"-5px 0"},attrs:{value:r},on:{change:function(n){return t.handleChange(n.target.value,a,e,i)}}}):[n("span",{staticStyle:{"word-break":"break-all"}},[t._v(t._s(r))])]],2)]}}})),{key:"operation",fn:function(e,r,a){return[r.add?n("div",[n("a-icon",{attrs:{type:"minus-circle-o"},on:{click:function(){return t.removeAddLine(a)}}})],1):n("div",{staticClass:"editable-row-operations"},[r.editable?n("span",[n("a",{on:{click:function(){return t.save(r,a)}}},[t._v("保存")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-popconfirm",{attrs:{title:"确认取消?","cancel-text":"取消","ok-text":"确认"},on:{confirm:function(){return t.cancel(r,a)}}},[n("a",[t._v("取消")])])],1):n("span",[t.canManage?n("a",{on:{click:function(){return t.edit(r,a)}}},[t._v("编辑")]):t._e(),n("a-divider",{attrs:{type:"vertical"}}),t.canManage?n("a-popconfirm",{attrs:{title:"确定要删除吗?"},on:{confirm:function(e){return t.handleDelete(r)}}},[n("a",{attrs:{href:"javascript:;",type:"primary"}},[t._v(" 删除 ")])]):t._e()],1)])]}}],null,!0)})],n("div",{staticClass:"add-form"},[n("a-form",{attrs:{layout:"inline",form:t.form}},[n("span",[n("a-form-item",[t.canManage?n("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:t.addNewData}},[t._v("新增配置")]):t._e()],1)],1),t.isAdd?n("span",[n("a-form-item",[n("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.add()}}},[t._v("提交")])],1),n("a-form-item",[n("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.cancelAdd()}}},[t._v("取消")])],1)],1):t._e()])],1)],2),n("a-tab-pane",{key:"2",attrs:{tab:"批量维护"}},[t.canManage?n("a-button",{staticClass:"save-btn",attrs:{type:"primary"},on:{click:function(e){return t.addList()}}},[t._v("保存修改")]):t._e(),[n("a-textarea",{attrs:{placeholder:"在此贴入配置项,每行一条"},model:{value:t.changeData,callback:function(e){t.changeData=e},expression:"changeData"}})]],2)],1)]],2)],1)},a=[],i=(n("1c01"),n("58b2"),n("8e6e"),n("f3e2"),n("456d"),n("57e7"),n("28a5"),n("75fc")),o=(n("ac6a"),n("5df3"),n("4f7f"),n("d25f"),n("7f7f"),n("bd86")),c=(n("6d67"),n("96cf"),n("3b8d"));n("7514");function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e * this method is call back by {@link ApplicationContextAware} interface.
diff --git a/doc/img/brcc-install-manage-enter.png b/doc/img/brcc-install-manage-enter.png new file mode 100644 index 0000000..fea2f64 Binary files /dev/null and b/doc/img/brcc-install-manage-enter.png differ diff --git a/doc/img/brcc-instance.png b/doc/img/brcc-instance.png new file mode 100644 index 0000000..c825310 Binary files /dev/null and b/doc/img/brcc-instance.png differ diff --git a/doc/java-sdk-guide.md b/doc/java-sdk-guide.md index 3b57954..2f2bbe6 100644 --- a/doc/java-sdk-guide.md +++ b/doc/java-sdk-guide.md @@ -34,13 +34,24 @@ rcc: log-properties: true enable-update-callback: true ``` -- rcc.cc-server-url: 配置中心服务地址 -- rcc.project-name: 请求的工程名称 -- rcc.cc-password: 请求的工程ApiPassword -- rcc.env-name: 请求的环境名称 -- rcc.cc-version-name: 请求的版本名称 -- rcc.log-properties: 是否打印配置 -- rcc.enable-update-callback: 是否启用自动更新 +| 配置属性名称 | 默认值 | 必填 | 描述 | +| :-----| :----: | :----: | :---- | +| rcc.cc-server-url | null | 是 | 配置中心服务地址 | +| rcc.project-name | null | 是 | 工程名称 | +| rcc.cc-password | null | 是 | 工程的api密码, 创建工程时指定 | +| rcc.env-name | null | 是 | 请求的环境名称 | +| rcc.cc-version-name | null | 是 | 版本名称 | +| rcc.log-properties | false | 否 | 是否在日志中打印配置 | +| rcc.enable-update-callback | false | 是 | 否启用自动更新 | +| rcc.callback-interval | 2000 | 否 | 心跳探测频率(ms) | +| rcc.connection-timeout | 3000 | 否 | 链接超时时间(ms) | +| rcc.read-timeout | 10000 | 否 | 读超时时间(ms) | +| rcc.app-name | null | 否 | 实例上报,采集应用名称 | +| rcc.container-id-env-name | hostname | 否 | 实例容器ID上报,容器ID对应的环境变量 | +| rcc.idc-env-name | null | 否 | 实例机房信息上报,机房名称对应的环境变量 | +| rcc.use-only-site-local-interfaces | false | 否 | 实例IP上报,是否只允许上报局域网IP | +| rcc.preferred-networks | null | 否 | 上报IP来源网卡(如en0)列表,英文逗号分隔 | +| rcc.ignored-interfaces | null | 否 | 实例IP上报,上报IP来源忽略网卡列表,英文逗号分隔 | ## 自动更新配置 diff --git a/doc/manage-guide.md b/doc/manage-guide.md index a23b8f1..bd95b39 100644 --- a/doc/manage-guide.md +++ b/doc/manage-guide.md @@ -100,6 +100,12 @@ b. 用户管理界面 (管理员用户,重置指定用户的密码) ![版本管理](img/version-change-log.png) +- 实例管理 + +![版本管理](img/brcc-install-manage-enter.png) + +![版本管理](img/brcc-instance.png) + ## 2.4 分组管理 ![分组管理](img/group-list.png) diff --git a/start.sh b/start.sh index 420f3eb..900c1ca 100644 --- a/start.sh +++ b/start.sh @@ -3,7 +3,7 @@ JAVA_FILE=./brcc-server/target/brcc-server.jar PID=$(jps -ml | grep "$JAVA_FILE" | awk '{print $1}') if [ "$PID" != "" ] ; then - echo 'will kill the pid $PID' + echo "will kill the pid $PID" kill -9 $PID; fi sleep 5