mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-21 02:29:23 +00:00
minor changes
This commit is contained in:
parent
61c220ca66
commit
4d6d005030
3 changed files with 37 additions and 4 deletions
|
|
@ -69,7 +69,7 @@
|
|||
|
||||
function appCacheProcessing(){
|
||||
var lAppCache = srv.AppCache,
|
||||
|
||||
|
||||
lFiles = [
|
||||
{'//themes.googleusercontent.com/static/fonts/droidsansmono/v4/ns-m2xQYezAtqh7ai59hJUYuTAAIFFn5GTWtryCmBQ4.woff' : './font/DroidSansMono.woff'},
|
||||
{'//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js' : './lib/client/jquery.js'}];
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ var CloudCommander, Util, DOM, $, Github, cb;
|
|||
};
|
||||
|
||||
GithubStore.Login = function(pToken){
|
||||
cloudcmd.Storage.Github = GithubLocal = new Github({
|
||||
cloudcmd.Storage.Github = Github = GithubLocal = new Github({
|
||||
token : pToken,
|
||||
auth : 'oauth'
|
||||
});
|
||||
|
|
|
|||
|
|
@ -81,8 +81,8 @@
|
|||
|
||||
this.show = function(username, cb) {
|
||||
var command = username ? "/users/"+username : "/user";
|
||||
|
||||
_request("GET", command, null, function(err, res) {
|
||||
|
||||
_request("GET", "/users/"+username, null, function(err, res) {
|
||||
cb(err, res);
|
||||
});
|
||||
};
|
||||
|
|
@ -113,6 +113,24 @@
|
|||
cb(err, res);
|
||||
});
|
||||
};
|
||||
|
||||
// Follow user
|
||||
// -------
|
||||
|
||||
this.follow = function(username, cb) {
|
||||
_request("PUT", "/user/following/"+username, null, function(err, res) {
|
||||
cb(err, res);
|
||||
});
|
||||
};
|
||||
|
||||
// Unfollow user
|
||||
// -------
|
||||
|
||||
this.unfollow = function(username, cb) {
|
||||
_request("DELETE", "/user/following/"+username, null, function(err, res) {
|
||||
cb(err, res);
|
||||
});
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
|
@ -419,6 +437,21 @@
|
|||
});
|
||||
};
|
||||
|
||||
// Create the gist
|
||||
// --------
|
||||
// {
|
||||
// "description": "the description for this gist",
|
||||
// "public": true,
|
||||
// "files": {
|
||||
// "file1.txt": {
|
||||
// "content": "String file contents"
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
this.create = function(options, cb){
|
||||
_request("POST", "/gists", options, cb);
|
||||
};
|
||||
|
||||
// Delete the gist
|
||||
// --------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue