Lines Matching refs:path

340 				var path = tokens.slice(refPos + 1, tokens.length).join('/');
342 (!isFolder ? 'files/' + encodeURIComponent(path) + '?ref=' + ref : (checkRepo ?
343 'branches?per_page=1&page=1&ref=' + ref : 'tree?path=' + path + '&ref=' + ref));
379 GitLabClient.prototype.getFile = function(path, success, error, asLibrary, checkExists, knownRefPos) argument
383 this.getRefIndex(path.split('/'), false, mxUtils.bind(this, function(tokens, refPos)
389 path = tokens.slice(refPos + 1, tokens.length).join('/');
390 var binary = /\.png$/i.test(path);
393 if (!checkExists && (/\.v(dx|sdx?)$/i.test(path) || /\.gliffy$/i.test(path) ||
394 /\.pdf$/i.test(path) || (!this.ui.useCanvasForExport && binary)))
402 '/repository/files/' + encodeURIComponent(path) + '?ref=' + ref;
403 var tokens = path.split('/');
404 var name = (tokens.length > 0) ? tokens[tokens.length - 1] : path;
433 '/repository/files/' + encodeURIComponent(path) + '?ref=' + ref;
539 path = tokens.slice(refPos + 1, tokens.length).join('/');
541 if (path.length > 0)
543 path = path + '/';
546 path = path + filename;
548 …this.checkExists(org + '/' + repo + '/' + ref + '/' + path, true, mxUtils.bind(this, function(chec…
556 var htmlUrl = gitLabUrl + org + '/' + repo + '/blob/' + ref + '/' + path;
557 var downloadUrl = gitLabUrl + org + '/' + repo + '/raw/' + ref + '/' + path + '?inline=false';
560 'path': path, 'html_url': htmlUrl, 'download_url': downloadUrl, 'refPos': refPos,
572 …this.writeFile(org, repo, ref, path, message, data, last_commit_id, mxUtils.bind(this, function(re…
605 GitLabClient.prototype.checkExists = function(path, askReplace, fn) argument
607 this.getFile(path, mxUtils.bind(this, function(file)
613 this.ui.confirm(mxResources.get('replaceIt', [path]), function()
641 GitLabClient.prototype.writeFile = function(org, repo, ref, path, message, data, last_commit_id, su… argument
653 path: encodeURIComponent(path), property in GitLabClient.writeFile.entity
667 …rojects/' + encodeURIComponent(org + '/' + repo) + '/repository/files/' + encodeURIComponent(path);
688 var path = file.meta.path;
692 …this.writeFile(org, repo, ref, path, message, data, last_commit_id, mxUtils.bind(this, function(re…
698 this.getFile(org + '/' + repo + '/' + ref + '/' + path, mxUtils.bind(this, function(tempFile)
714 if (this.ui.useCanvasForExport && /(\.png)$/i.test(path))
734 this.getFile(org + '/' + repo + '/' + ref + '/' + path, mxUtils.bind(this, function(tempFile)
759 fn = (fn != null) ? fn : mxUtils.bind(this, function(path) argument
761 this.ui.loadFile('A' + encodeURIComponent(path));
775 var path = null;
806 fn(org + '/' + repo + '/' + encodeURIComponent(ref) + '/' + path);
847 path = null;
856 path = null;
861 if (path != null && path.length > 0)
863 var tokens = path.split('/');
872 path = tokens.slice(0, index + 1).join('/');
893 path = null;
918 …'/repository/tree?path=' + path + '&ref=' + ref + '&per_page=' + pageSize + '&page=' + page, null,…
955 if (path == '')
957 path = null;
962 var tokens = path.split('/');
963 path = tokens.slice(0, tokens.length - 1).join('/');
1005 path = file.path;
1011 fn(org + '/' + repo + '/' + ref + '/' + file.path);
1093 path = null;
1107 path = '';
1123 path = '';
1269 path = null;
1314 repo = repository.path;
1315 path = '';
1347 repo = project.path;
1348 path = '';