kopia lustrzana https://github.com/backface/turtlestitch
commit
dad8875afd
21
cloud.js
21
cloud.js
|
@ -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,
|
||||||
|
|
Ładowanie…
Reference in New Issue