text: (function(t){function e(e){for(var o,s,i=e[0],c=e[1],l=e[2],p=0,f=[];p<i.length;p++)s=i[p],Object.prototype.hasOwnProperty.call(r,s)&&r[s]&&f.push(r[s][0]),r[s]=0;for(o in c)Object.prototype.hasOwnProperty.call(c,o)&&(t[o]=c[o]);u&&u(e);while(f.length)f.shift()();return a.push.apply(a,l||[]),n()}function n(){for(var t,e=0;e<a.length;e++){for(var n=a[e],o=!0,i=1;i<n.length;i++){var c=n[i];0!==r[c]&&(o=!1)}o&&(a.splice(e--,1),t=s(s.s=n[0]))}return t}var o={},r={app:0},a=[];function s(e){if(o[e])return o[e].exports;var n=o[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,s),n.l=!0,n.exports}s.m=t,s.c=o,s.d=function(t,e,n){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},s.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(s.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)s.d(n,o,function(e){return t[e]}.bind(null,o));return n},s.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="/";var i=window["webpackJsonp"]=window["webpackJsonp"]||[],c=i.push.bind(i);i.push=e,i=i.slice();for(var l=0;l<i.length;l++)e(i[l]);var u=c;a.push([0,"chunk-vendors"]),n()})({0:function(t,e,n){t.exports=n("56d7")},"034f":function(t,e,n){"use strict";var o=n("85ec"),r=n.n(o);r.a},"08f8":function(t,e,n){"use strict";var o=n("1aae"),r=n.n(o);r.a},"1aae":function(t,e,n){},"56d7":function(t,e,n){"use strict";n.r(e);n("e260"),n("e6cf"),n("cca6"),n("a79d");var o=n("2b0e"),r=(n("d3b7"),n("bc3a")),a=n.n(r),s={},i=a.a.create(s);i.interceptors.request.use((function(t){return t}),(function(t){return Promise.reject(t)})),i.interceptors.response.use((function(t){return t}),(function(t){return Promise.reject(t)})),Plugin.install=function(t,e){t.axios=i,window.axios=i,Object.defineProperties(t.prototype,{axios:{get:function(){return i}},$axios:{get:function(){return i}}})},o["default"].use(Plugin);Plugin;var c=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{attrs:{id:"app"}},[o("img",{attrs:{src:n("cf05")}}),o("UI",{attrs:{msg:"An Nginx UI"}})],1)},l=[],u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"hello"},[n("h1",[t._v(t._s(t.msg))]),n("p",[t._v(" Help you manage nginx service ")]),n("el-row",[n("el-button",{attrs:{type:"primary",plain:""},on:{click:t.start}},[t._v("启动服务")]),n("el-button",{attrs:{type:"success",plain:""},on:{click:t.restart}},[t._v("重启服务")]),n("el-button",{attrs:{type:"info",plain:""},on:{click:t.close}},[t._v("关闭服务")])],1),n("br"),n("el-row",[n("el-input",{staticClass:"path",attrs:{placeholder:"请输入地址"},model:{value:t.inpath,callback:function(e){t.inpath=e},expression:"inpath"}},[n("template",{slot:"prepend"},[t._v("Nginx地址")])],2),n("span",{staticStyle:{padding:"0 5px 5px 0"}}),n("el-button",{attrs:{type:"warning",plain:""},on:{click:t.sendconf}},[t._v("应用配置")])],1),n("br"),n("el-card",{staticClass:"box-card"},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("span",[t._v("操作信息")])]),n("div",{staticClass:"card"},[t._v(" "+t._s(t.log)+" ")])])],1)},p=[],f=n("5c96"),d=n.n(f),g={name:"UI",data:function(){return{log:"there is no output now",inpath:""}},props:{msg:String},watch:{inpath:function(){}},methods:{start:function(){a.a.post("/api",{do:"start"}).then((function(t){console.log(t),0===t.data.code?f["MessageBox"].alert("Nginx启动成功"):f["MessageBox"].alert("Nginx服务启动失败，请检查端口占用")}))},restart:function(){a.a.post("/api",{do:"restart"}).then((function(t){console.log(t),0===t.data.code?f["MessageBox"].alert("Nginx重启完成"):f["MessageBox"].alert("Nginx服务启动失败，请检查端口占用")}))},close:function(){a.a.post("/api",{do:"stop"}).then((function(t){console.log(t),0===t.data.code?f["MessageBox"].alert("Nginx已停止"):f["MessageBox"].alert("Nginx服务停止失败")}))},sendconf:function(){var t=this,e=t.inpath,n={do:"conf",path:e};console.log(e),a.a.post("/api",n).then((function(e){console.log(e),t.log=e.data,e.data.code?f["MessageBox"].alert("Nginx路径修改完成"):f["MessageBox"].alert("修改失败")}))}}},h=g,v=(n("08f8"),n("2877")),x=Object(v["a"])(h,u,p,!1,null,"0a193410",null),b=x.exports,m={name:"app",components:{UI:b}},y=m,_=(n("034f"),Object(v["a"])(y,c,l,!1,null,null,null)),w=_.exports;n("0fae");o["default"].use(d.a),o["default"].config.productionTip=!1,a.a.defaults.timeout=1e4,a.a.defaults.baseURL="/",new o["default"]({render:function(t){return t(w)}}).$mount("#app")},"85ec":function(t,e,n){},cf05:function(t,e,n){t.exports=n.p+"static/img/logo.82b9c7a5.png"}});