Skip to content
This repository was archived by the owner on Jan 26, 2020. It is now read-only.

Commit 4294283

Browse files
committed
filename modifications
1 parent 19c4abe commit 4294283

File tree

6 files changed

+14
-15
lines changed

6 files changed

+14
-15
lines changed
File renamed without changes.

firefox/data/jquery-2.2.3.min.js

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

firefox/data/jquery1.7.2.js

Lines changed: 0 additions & 4 deletions
This file was deleted.

firefox/data/get-text.js renamed to firefox/data/script.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ var events = [];
33
var ei = 0;
44
var traverse = 0;
55
function createCookie(name, value, days) {
6+
67
var expires;
78

89
if (days) {
@@ -33,13 +34,13 @@ function eraseCookie(name) {
3334
function formateventobj(obj,type)
3435
{
3536
if (type == "WatchEvent") {
36-
return '<span class="link" ref="https://github.com/'+obj['actor']['login']+'">'+obj['actor']['login'] + '</span> starred the repository <span class="link" ref="https://github.com/'+obj['repo']['name']+'">' + obj['repo']['name'] +'</span>';
37+
return '<span class="link" ref="https://github.com/'+obj['actor']['login']+'">'+obj['actor']['login'] + '</span><br> starred the repository <br><span class="link" ref="https://github.com/'+obj['repo']['name']+'">' + obj['repo']['name'] +'</span>';
3738
}
3839
else if (type == "ForkEvent") {
39-
return '<span class="link" ref="https://github.com/'+obj['actor']['login']+'">' + obj['actor']['login'] + '</span> forked the repository ' + obj['repo']['name'] + '</span>';
40+
return '<span class="link" ref="https://github.com/'+obj['actor']['login']+'">' + obj['actor']['login'] + '</span><br> forked the repository <br>' + obj['repo']['name'] + '</span>';
4041
}
4142
else if (type == "PushEvent") {
42-
return '<span class="link" ref="https://github.com/'+obj['actor']['login']+'">' + obj['actor']['login'] + '</span> pushed changes to the repository ' + obj['repo']['name'] + '</span>';
43+
return '<span class="link" ref="https://github.com/'+obj['actor']['login']+'">' + obj['actor']['login'] + '</span><br> pushed changes to the repository <br>' + obj['repo']['name'] + '</span>';
4344
}
4445
}
4546

@@ -51,7 +52,6 @@ function buildhome(u,t)
5152
dataType:'json',
5253
data:{user:u,token:t},
5354
success:function(r){
54-
console.log(r);
5555
$('#wrapper').prepend('<img id="myimg" src="'+r['avatar_url']+'"/>');
5656
$('#wrapper').find('#myimg').load(function(){
5757
$('#loader,#wall,#footer').fadeOut().remove();
@@ -72,9 +72,8 @@ $("#wrapper").on('click','#btn',function(){
7272
type:'post',
7373
dataType:'json',
7474
data:{user:u,token:$('#cred').val()},
75-
success:function(r){
76-
console.log(r);
77-
if (r instanceof Object) {
75+
success:function(r) {
76+
if (r instanceof Object) {
7877
$('#wall').css('top',0);
7978
$('#wrapper').append('<input type="text" id="username" placeholder="Username"/></br><input type="password" id="cred" placeholder="Password"/><div id="btn">Go!</div>');
8079
}

firefox/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ var button = ToggleButton({
1919
var panel = panels.Panel({
2020
width:220,
2121
height:300,
22-
contentURL: self.data.url("text-entry.html"),
23-
contentScriptFile: [self.data.url("jquery1.7.2.js"),self.data.url("get-text.js")],
22+
contentURL: self.data.url("addon.html"),
23+
contentScriptFile: [self.data.url("jquery-2.2.3.min.js"),self.data.url("script.js")],
2424
onHide: handleHide
2525
});
2626

@@ -59,7 +59,7 @@ function handleChange(state) {
5959
position: button
6060
});
6161
panel.port.emit("show");
62-
62+
6363
}
6464
}
6565

firefox/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"title": "MiniGithub",
33
"name": "minigithub",
4-
"version": "0.0.1",
4+
"version": "0.0.2",
55
"description": "Github Notifier",
66
"main": "index.js",
77
"author": "Mayank Badola",

0 commit comments

Comments
 (0)