Lines Matching refs:path

378 GitHubClient.prototype.getLibrary = function(path, success, error)  argument
380 this.getFile(path, success, error, true);
386 GitHubClient.prototype.getSha = function(org, repo, path, ref, success, error) argument
391 '/contents/' + path + '?ref=' + ref + rnd, null, 'HEAD');
409 GitHubClient.prototype.getFile = function(path, success, error, asLibrary, checkExists) argument
413 var tokens = path.split('/');
417 path = tokens.slice(3, tokens.length).join('/');
418 var binary = /\.png$/i.test(path);
421 if (!checkExists && (/\.v(dx|sdx?)$/i.test(path) || /\.gliffy$/i.test(path) ||
422 /\.pdf$/i.test(path) || (!this.ui.useCanvasForExport && binary)))
428 '/contents/' + path + '?ref=' + ref;
430 tokens = path.split('/');
431 var name = (tokens.length > 0) ? tokens[tokens.length - 1] : path;
444 '/contents/' + path + '?ref=' + ref + rnd, null, 'GET');
469 'path': data.path, 'sha': data.sha, 'html_url': data.html_url, property in GitHubClient.createGitHubFile.meta
533 var path = tokens.slice(3, tokens.length).join('/');
535 if (path.length > 0)
537 path = path + '/';
540 path = path + filename;
542 …this.checkExists(org + '/' + repo + '/' + ref + '/' + path, true, mxUtils.bind(this, function(chec…
550 'name': filename, 'path': path, 'sha': sha, isNew: true}));
561 this.writeFile(org, repo, ref, path, message, data, sha, mxUtils.bind(this, function(req)
608 GitHubClient.prototype.writeFile = function(org, repo, ref, path, message, data, sha, success, erro… argument
619 path: path, property in GitHubClient.writeFile.entity
631 '/contents/' + path, JSON.stringify(entity), 'PUT');
655 GitHubClient.prototype.checkExists = function(path, askReplace, fn) argument
657 var tokens = path.split('/');
661 path = tokens.slice(3, tokens.length).join('/');
663 this.getSha(org, repo, path, ref, mxUtils.bind(this, function(sha)
669 this.ui.confirm(mxResources.get('replaceIt', [path]), function()
705 var path = file.meta.path;
709 this.writeFile(org, repo, ref, path, message, data, sha,
722 if (this.ui.useCanvasForExport && /(\.png)$/i.test(path))
740 this.getSha(org, repo, path, ref, mxUtils.bind(this, function(sha)
773 fn = (fn != null) ? fn : mxUtils.bind(this, function(path) argument
775 this.ui.loadFile('H' + encodeURIComponent(path));
789 var path = null;
820 fn(org + '/' + repo + '/' + encodeURIComponent(ref) + '/' + path);
861 path = null;
870 path = null;
875 if (path != null && path.length > 0)
877 var tokens = path.split('/');
886 path = tokens.slice(0, index + 1).join('/');
908 path = null;
933 '/contents/' + path + '?ref=' + encodeURIComponent(ref) +
971 if (path == '')
973 path = null;
978 var tokens = path.split('/');
979 path = tokens.slice(0, tokens.length - 1).join('/');
1021 path = file.path;
1027 fn(org + '/' + repo + '/' + encodeURIComponent(ref) + '/' + file.path);
1110 path = null;
1124 path = '';
1140 path = '';
1232 path = null;
1246 path = '';
1283 path = '';