UNPKG

@zklogic/draw.io

Version:

Draw.IO - Graph Editor integration in Angular-cli

1 lines 891 B
GitLabFile=function(t,e,i){GitHubFile.call(this,t,e,i),this.peer=this.ui.gitLab},mxUtils.extend(GitLabFile,GitHubFile),GitLabFile.prototype.share=function(){this.ui.editor.graph.openLink(DRAWIO_GITLAB_URL+"/"+encodeURIComponent(this.meta.org)+"/"+encodeURIComponent(this.meta.repo)+"/-/project_members")},GitLabFile.prototype.getId=function(){return this.meta.org+"/"+(null!=this.meta.repo?encodeURIComponent(this.meta.repo)+"/"+(null!=this.meta.ref?this.meta.ref+(null!=this.meta.path?"/"+this.meta.path:""):""):"")},GitLabFile.prototype.getHash=function(){return encodeURIComponent("A"+this.getId())},GitLabFile.prototype.isConflict=function(t){return null!=t&&400==t.status},GitLabFile.prototype.getMode=function(){return App.MODE_GITLAB},GitLabFile.prototype.getDescriptorEtag=function(t){return t.last_commit_id},GitLabFile.prototype.setDescriptorEtag=function(t,e){t.last_commit_id=e};