Merge pull request #2019 from bromagosa/newer-cloud

Another slip
upd4.2
Jens Mönig 2018-02-14 07:05:30 +01:00 zatwierdzone przez GitHub
commit dad8875afd
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 10 dodań i 11 usunięć

Wyświetl plik

@ -482,7 +482,7 @@ Cloud.prototype.getThumbnail = function (
this[username ? 'request' : 'withCredentialsRequest']( this[username ? 'request' : 'withCredentialsRequest'](
'GET', 'GET',
'/projects/' + '/projects/' +
(encodeURIComponent(username) || '%username') + (username ? encodeURIComponent(username) : '%username') +
'/' + '/' +
encodeURIComponent(projectName) + encodeURIComponent(projectName) +
'/thumbnail', '/thumbnail',
@ -543,7 +543,8 @@ Cloud.prototype.deleteProject = function (
) { ) {
this[username ? 'request' : 'withCredentialsRequest']( this[username ? 'request' : 'withCredentialsRequest'](
'DELETE', 'DELETE',
'/projects/' + (encodeURIComponent(username) || '%username') + '/' + encodeURIComponent(projectName), '/projects/' + (username ? encodeURIComponent(username) : '%username') +
'/' + encodeURIComponent(projectName),
onSuccess, onSuccess,
onError, onError,
'Could not delete project' 'Could not delete project'
@ -559,7 +560,7 @@ Cloud.prototype.shareProject = function (
this[username ? 'request' : 'withCredentialsRequest']( this[username ? 'request' : 'withCredentialsRequest'](
'POST', 'POST',
'/projects/' + '/projects/' +
(encodeURIComponent(username) || '%username') + (username ? encodeURIComponent(username) : '%username') +
'/' + encodeURIComponent(projectName) + '/' + encodeURIComponent(projectName) +
'/metadata?ispublic=true', '/metadata?ispublic=true',
onSuccess, onSuccess,
@ -577,8 +578,8 @@ Cloud.prototype.unshareProject = function (
this[username ? 'request' : 'withCredentialsRequest']( this[username ? 'request' : 'withCredentialsRequest'](
'POST', 'POST',
'/projects/' + '/projects/' +
(encodeURIComponent(username) || '%username') + '/' + (username ? encodeURIComponent(username) : '%username') +
encodeURIComponent(projectName) + '/' + encodeURIComponent(projectName) +
'/metadata?ispublic=false&ispublished=false', '/metadata?ispublic=false&ispublished=false',
onSuccess, onSuccess,
onError, onError,
@ -595,9 +596,8 @@ Cloud.prototype.publishProject = function (
this[username ? 'request' : 'withCredentialsRequest']( this[username ? 'request' : 'withCredentialsRequest'](
'POST', 'POST',
'/projects/' + '/projects/' +
(encodeURIComponent(username) || '%username') + (username ? encodeURIComponent(username) : '%username') +
'/' + '/' + encodeURIComponent(projectName) +
encodeURIComponent(projectName) +
'/metadata?ispublished=true', '/metadata?ispublished=true',
onSuccess, onSuccess,
onError, onError,
@ -614,9 +614,8 @@ Cloud.prototype.unpublishProject = function (
this[username ? 'request' : 'withCredentialsRequest']( this[username ? 'request' : 'withCredentialsRequest'](
'POST', 'POST',
'/projects/' + '/projects/' +
(encodeURIComponent(username) || '%username') + (username ? encodeURIComponent(username) : '%username') +
'/' + '/' + encodeURIComponent(projectName) +
encodeURIComponent(projectName) +
'/metadata?ispublished=false', '/metadata?ispublished=false',
onSuccess, onSuccess,
onError, onError,