text: (window.webpackJsonp=window.webpackJsonp||[]).push([[100],{1104:function(t,n,e){t.exports={}},2385:function(t,n,e){"use strict";e(1104)},2720:function(t,n,e){"use strict";e.r(n);e(43),e(55),e(8),e(66),e(67);var o=e(11),c=e.n(o),l=e(103),r=e.n(l),d={name:"LinuxCommand",data:function(){return{geting:!0,data:{},searchVal:"",command:null,commandData:null,readCommand:!1}},computed:{searchResults:function(){var t=this;return Object.keys(this.data).filter((function(n){return t.data[n].n.toString().toLowerCase().indexOf(t.searchVal.toLowerCase())>=0}))},content:function(){return this.commandData?r()(this.commandData,{breaks:!0}):""}},mounted:function(){if(this.$db.read(),this.$db.data.linux_command){var t=c()(),n=this.$db.data.linux_command.time;t.diff(c.a.unix(n),"day")>1?this.getData():(this.data=this.$db.data.linux_command.data,this.geting=!1)}else this.getData()},methods:{getData:function(){var t=this;this.$axios.get("https://unpkg.com/linux-command@1.2.5/dist/data.json").then((function(n){t.data=n.data,t.$db.data.linux_command={time:c()().unix(),data:n.data},t.$db.write(),t.geting=!1})).catch((function(n){t.$notify.error({title:"获取数据失败，请刷新页面重试",message:n}),t.geting=!1}))},query:function(t){var n=this;this.clear(),this.$store.commit("SET_STORE",{key:"globalLoading",value:!0}),this.$axios.get("https://unpkg.com/linux-command/command/".concat(t,".md")).then((function(e){n.commandData=e.data,n.command=t,n.$store.commit("SET_STORE",{key:"globalLoading",value:!1}),n.readCommand=!0})).catch((function(t){n.$notify.error({title:"查询失败",message:t}),n.$store.commit("SET_STORE",{key:"globalLoading",value:!1})}))},clear:function(){this.command="",this.commandData=""}}},m=(e(2385),e(2)),h=function(t){t.exports.head={meta:[{hid:"keywords",keywords:"Linux命令查询,MikuTools,Ice-Hazymoon,在线工具"},{hid:"description",description:"在线Linux命令查询"}],title:"Linux 命令查询 - MikuTools"},t.options.toolsMeta={name:"Linux 命令查询",path:"/linux_command",head:{meta:[{hid:"keywords",keywords:"Linux命令查询,MikuTools,Ice-Hazymoon,在线工具"},{hid:"description",description:"在线Linux命令查询"}],title:"Linux 命令查询 - MikuTools"},show:!0,key:"development"}},component=Object(m.a)(d,(function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"linux_command"},[e("el-dialog",{attrs:{title:t.command+" 命令详情",visible:t.readCommand,width:"800px",fullscreen:t.$store.state.isMobile,top:"50px"},on:{"update:visible":function(n){t.readCommand=n}}},[e("div",{staticClass:"content typo",domProps:{innerHTML:t._s(t.content)}})]),e("nya-container",{attrs:{title:"Linux 命令查询"}},[e("div",{staticClass:"nya-subtitle"},[t._v("\n            "+t._s(t.geting?"获取数据中···":"请输入要查询的命令")+"\n        ")]),e("el-input",{attrs:{placeholder:"alias",disabled:t.geting,autofocus:"",clearable:""},model:{value:t.searchVal,callback:function(n){t.searchVal=n},expression:"searchVal"}}),e("div",{directives:[{name:"show",rawName:"v-show",value:t.searchVal,expression:"searchVal"}],staticClass:"nya-subtitle mt-15"},[t._v("\n            搜索结果（点击查看详情）\n        ")]),e("ul",{directives:[{name:"show",rawName:"v-show",value:t.searchVal,expression:"searchVal"}],staticClass:"nya-list search-list"},[t.searchVal&&!t.searchResults.length?e("li",[e("b",[t._v("没有结果")])]):t._e(),t._l(t.searchResults,(function(n,o){return e("li",{key:o,on:{click:function(e){return t.query(n)}}},[e("b",[t._v(t._s(t.data[n].n))]),t._v("："+t._s(t.data[n].d)+"\n            ")])}))],2)],1),e("nya-container",{attrs:{title:"说明"}},[e("ul",{staticClass:"nya-list"},[e("li",[t._v("\n                数据来自 "),e("a",{attrs:{href:"https://github.com/jaywcjlove/linux-command",target:"_blank",rel:"noopener noreferrer"}},[t._v("\n                    jaywcjlove/linux-command\n                ")])]),e("li",[t._v("部分地区无法访问unpkg的cdn，如果出现网络错误请自行更换环境使用")])])])],1)}),[],!1,null,null,null);"function"==typeof h&&h(component);n.default=component.exports}}]);