Files
ZERO_CODE/ZeroCodeProject/main/client/node_modules/.cache/babel-loader/d842bac9dd9b743d0b60a1869f00e4d08cbb290bce86e7e2b5b2dbad001e1760.json

1 line
9.2 KiB
JSON
Raw Normal View History

2026-01-11 00:11:34 +08:00
{"ast":null,"code":"var render = function render() {\n var _vm = this,\n _c = _vm._self._c,\n _setup = _vm._self._setupProxy;\n return _c(\"div\", {\n staticClass: \"python_scan_main\"\n }, [_c(\"el-descriptions\", {\n attrs: {\n title: \"WAF状态\"\n }\n }, [_c(\"el-descriptions-item\", {\n attrs: {\n label: \"mod_security是否安装\"\n }\n }, [_vm.waf_status.modsecurity_installed ? _c(\"el-tag\", {\n attrs: {\n type: \"success\"\n }\n }, [_vm._v(\"已经安装\")]) : _c(\"el-tag\", {\n attrs: {\n type: \"danger\"\n }\n }, [_vm._v(\"未安装\")])], 1), _c(\"el-descriptions-item\", {\n attrs: {\n label: \"mod_security是否配置\"\n }\n }, [_vm.waf_status.modsecurity_config ? _c(\"el-tag\", {\n attrs: {\n type: \"success\"\n }\n }, [_vm._v(\"已经安装\")]) : _c(\"el-tag\", {\n attrs: {\n type: \"danger\"\n }\n }, [_vm._v(\"未安装\")])], 1), _c(\"el-descriptions-item\", {\n attrs: {\n label: \"owasp_crs是否安装\"\n }\n }, [_vm.waf_status.owasp_crs ? _c(\"el-tag\", {\n attrs: {\n type: \"success\"\n }\n }, [_vm._v(\"已经安装\")]) : _c(\"el-tag\", {\n attrs: {\n type: \"danger\"\n }\n }, [_vm._v(\"未安装\")])], 1)], 1), _c(\"div\", [_c(\"el-button\", {\n attrs: {\n type: \"success\"\n },\n on: {\n click: _vm.install_waf\n }\n }, [_vm._v(\"安装WAF\")]), _c(\"el-button\", {\n attrs: {\n type: \"info\"\n },\n on: {\n click: _vm.get_waf_info\n }\n }, [_vm._v(\"刷新WAF状态\")])], 1), _c(\"el-descriptions\", {\n staticStyle: {\n \"margin-top\": \"10px\"\n },\n attrs: {\n title: \"防火墙\"\n }\n }, [_c(\"el-descriptions-item\", {\n attrs: {\n label: \"防火墙是否启动\"\n }\n }, [_vm.ufw_status ? _c(\"el-tag\", {\n attrs: {\n type: \"success\"\n }\n }, [_vm._v(\"已启动\")]) : _c(\"el-tag\", {\n attrs: {\n type: \"danger\"\n }\n }, [_vm._v(\"未启动\")])], 1)], 1), _c(\"div\", [_c(\"el-button\", {\n attrs: {\n type: \"success\"\n },\n on: {\n click: _vm.install_waf\n }\n }, [_vm._v(\"启动防火墙\")]), _c(\"el-button\", {\n attrs: {\n type: \"info\"\n },\n on: {\n click: _vm.get_waf_info\n }\n }, [_vm._v(\"刷新防火墙状态\")])], 1)], 1);\n};\nvar staticRenderFns = [];\nrender._withStripped = true;\nexport { render, staticRenderFns };","map":{"version":3,"names":["render","_vm","_c","_self","_setup","_setupProxy","staticClass","attrs","title","label","waf_status","modsecurity_installed","type","_v","modsecurity_config","owasp_crs","on","click","install_waf","get_waf_info","staticStyle","ufw_status","staticRenderFns","_withStripped"],"sources":["/Users/xubincheng/Desktop/job/zero_code_all/zero_project/ZeroCodeProject/main/client/src/components/defend/defend.vue"],"sourcesContent":["var render = function render() {\n var _vm = this,\n _c = _vm._self._c,\n _setup = _vm._self._setupProxy\n return _c(\n \"div\",\n { staticClass: \"python_scan_main\" },\n [\n _c(\n \"el-descriptions\",\n { attrs: { title: \"WAF状态\" } },\n [\n _c(\n \"el-descriptions-item\",\n { attrs: { label: \"mod_security是否安装\" } },\n [\n _vm.waf_status.modsecurity_installed\n ? _c(\"el-tag\", { attrs: { type: \"success\" } }, [\n _vm._v(\"已经安装\"),\n ])\n : _c(\"el-tag\", { attrs: { type: \"danger\" } }, [\n _vm._v(\"未安装\"),\n ]),\n ],\n 1\n ),\n _c(\n \"el-descriptions-item\",\n { attrs: { label: \"mod_security是否配置\" } },\n [\n _vm.waf_status.modsecurity_config\n ? _c(\"el-tag\", { attrs: { type: \"success\" } }, [\n _vm._v(\"已经安装\"),\n ])\n : _c(\"el-ta