分布式调度框架。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
251 KiB

webpackJsonp([23],{1014:function(e,t,n){"use strict";t.__esModule=!0;t.handlerSuffix={".txt":"textile",".log":"textile",".sh":"shell",".conf":"textile",".cfg":"textile",".py":"python",".java":"textile",".sql":"sql",".hql":"sql",".xml":"xml"}},1015:function(e,t,n){"use strict";t.__esModule=!0,t.default={name:"no-type"}},1053:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1015),i=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,function(){return r[e]})}(o);var a=n(1056);var s=function(e){n(1054)},l=n(29)(i.a,a.a,!1,s,null,null);t.default=l.exports},1054:function(e,t,n){var r=n(1055);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(35)("2c02ac1c",r,!0,{})},1055:function(e,t,n){(e.exports=n(34)(!1)).push([e.i,".no-type-model{text-align:center;padding-top:160px}.no-type-model>p{padding-top:10px;color:#666}",""])},1056:function(e,t,n){"use strict";var r={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"no-type-model"},[t("img",{attrs:{src:n(1057),alt:""}}),this._v(" "),t("p",[this._v(this._s(this.$t("Online viewing type is not supported")))])])},staticRenderFns:[]};t.a=r},1057:function(e,t,n){e.exports=n.p+"images/down_error.png?4339cb288e29d420babb7d7c848b9093"},1108:function(e,t,n){"use strict";t.__esModule=!0;var r=m(n(30)),i=n(123),o=m(n(1053)),a=n(925),s=m(n(851)),l=n(1014),c=n(863),u=n(879),d=m(n(701)),f=m(n(227)),h=m(n(696)),p=m(n(697));function m(e){return e&&e.__esModule?e:{default:e}}var g=void 0;t.default={name:"file-details",data:function(){return{name:"",isNoType:!0,isLoading:!1,filtTypeArr:a.filtTypeArr,loadingIndex:0,mode:"python",isData:!0,size:null,msg:""}},props:{},methods:Object.assign({},(0,i.mapActions)("resource",["getViewResources","updateContent"]),{_go:function(){this.$router.push({name:"file"})},_downloadFile:function(){(0,c.downloadFile)("/escheduler/resources/download",{id:this.$route.params.id})},_getViewResources:function(){var e=this;this.isLoading=!0,this.isData=!0,this.msg="",this.getViewResources(this._rtParam).then(function(t){e.name=t.data.alias.split(".")[0],t.data?(e.isData=!0,e._handlerEditor().setValue(t.data.content),g.lineCount()<1e3&&(e.isData=!1),setTimeout(function(){$(".code-mirror-model").scrollTop(12).scrollLeft(0)},200)):e.isData=!1,e.isLoading=!1}).catch(function(t){e.msg=t.msg||"error",e.$message.error(t.msg||""),e.isLoading=!1})},_onUp:r.default.debounce(function(){this.loadingIndex=this.loadingIndex-2,this._editorOff(),this._getViewResources()},1e3,{leading:!1,trailing:!0}),_onDown:r.default.debounce(function(){this.loadingIndex=this.loadingIndex+2,this._editorOff(),this._getViewResources()},1e3,{leading:!1,trailing:!0}),_editorOff:function(){g=null,$(".CodeMirror").remove()},_handlerEditor:function(){var e=this,t=$(".home-main").height()-160;return(g=(0,s.default)("code-details-mirror",{mode:this.mode})).display.wrapper.style.height=t+"px",this.scroll=function(n){var r=n.doc,i=r.scrollTop,o=r.height;i+t>o&&e.isData&&e._onDown(),i<2&&e.loadingIndex>0&&e._onUp()},g.on("scroll",this.scroll),g}}),watch:{},created:function(){var e=r.default.split(f.default.getItem("file"),"|",2),t=e[0],n=e[1],i=t.lastIndexOf("."),o=t.substring(i,t.length);this.mode=l.handlerSuffix[o],this.size=(0,u.bytesToSize)(parseInt(n)),this.isNoType=r.default.includes(this.filtTypeArr,r.default.trimStart(o,"."))},mounted:function(){this.isNoType&&this._getViewResources()},destroyed:function(){g&&(g.toTextArea(),g.off($(".code-details-mirror"),"scroll",this.scroll))},computed:{_rtParam:function(){return{id:this.$route.params.id,skipLineNum:parseInt(""+(this.loadingIndex?this.loadingIndex+"000":0)),limit:parseInt((this.loadingIndex?this.loadingIndex+2:2)+"000")}}},components:{mListConstruction:p.default,mNoType:o.default,mSpin:d.default,mNoData:h.default}}},1218:function(e,t,n){var r=n(1219);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(35)("c3885f24",r,!0,{})},1219:function(e,t,n){(e.exports=n(34)(!1)).push([e.i,".file-details-content{width:100%;background:#fff;padding-botto
//# sourceMappingURL=23.bb2b238.js.map