-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
119 changed files
with
17,666 additions
and
2,702 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
.idea/* | ||
*.zip | ||
.hgignore | ||
.gitignore | ||
.git/* | ||
.hg/* | ||
tmp/* | ||
build/* | ||
node_modules/* | ||
fontello/* | ||
twitch_now.zip | ||
/fontello-39648cf2/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +0,0 @@ | ||
[submodule "chrome-platform-analytics"] | ||
path = chrome-platform-analytics | ||
url = [email protected]:GoogleChrome/chrome-platform-analytics.git | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
var providerOpts = { | ||
api : "https://api.twitch.tv/kraken/oauth2/authorize", | ||
response_type: 'code', | ||
client_id : 'b4sj5euottb8mm7pc1lfvi84kvzxqxk', | ||
client_secret: '2m42qpmxfy5l2ik4c93s0qco4vzfgr0', | ||
api_scope : 'user_follows_edit user_read', | ||
redirect_uri : 'http://ndragomirov.github.io/twitch.html' | ||
}; | ||
|
||
var twitchOauth = OAuth2.addAdapter({ | ||
id : 'twitch', | ||
codeflow: { | ||
method: "POST", | ||
url : "https://api.twitch.tv/kraken/oauth2/token" | ||
}, | ||
opts : providerOpts | ||
}); | ||
|
||
chrome.runtime.onMessage.addListener(function (msg){ | ||
if ( msg.id == "OAUTH2_AUTH" ) { | ||
twitchOauth.authorize(function (){}) | ||
} | ||
}) | ||
|
||
chrome.runtime.onMessage.addListener(function (msg){ | ||
if ( msg.id == "OAUTH2_TOKEN_GET" ) { | ||
chrome.runtime.sendMessage({id: "OAUTH2_TOKEN", value: twitchOauth.getAccessToken()}); | ||
} | ||
}) | ||
|
||
chrome.runtime.onMessage.addListener(function (msg){ | ||
if ( msg.id == "OAUTH2_REVOKE" ) { | ||
twitchOauth.clearAccessToken(); | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!DOCTYPE HTML> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<script type="text/javascript" src="../../lib/3rd/jquery.js"></script> | ||
<script type="text/javascript" src="../../lib/3rd/underscore.js"></script> | ||
<script type="text/javascript" src="../../lib/3rd/backbone.js"></script> | ||
<script type="text/javascript" src="../oauth2/oauth2.js"></script> | ||
<script type="text/javascript" src="../oauth2/adapters/twitch.js"></script> | ||
<script type="text/javascript" src="../../lib/twitch-api.js"></script> | ||
<script type="text/javascript" src="../../lib/app.js"></script> | ||
</head> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!DOCTYPE HTML> | ||
<html> | ||
<head> | ||
<link rel="stylesheet" href="../../css/reset.css"> | ||
<link rel="stylesheet" href="../../css/notification.css"> | ||
</head> | ||
<body> | ||
<img class="logo" src="../../css/img/footer_glitch_dark.png"> | ||
|
||
<div id="output"> | ||
<div class="streams"></div> | ||
<div class="more"></div> | ||
</div> | ||
<script type="text/javascript" src="../../lib/3rd/jquery.js"></script> | ||
<script type="text/javascript" src="../../lib/3rd/handlebars.js"></script> | ||
<script type="text/javascript" src="../../lib/3rd/underscore.js"></script> | ||
<script type="text/javascript" src="../../lib/3rd/backbone.js"></script> | ||
<script type="text/javascript" src="../../lib/3rd/i18n.js"></script> | ||
<script type="text/javascript" src="../../../common/dist/templates.js"></script> | ||
<script type="text/javascript" src="../../lib/notification.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
(function (){ | ||
var scripts = [ | ||
"common/lib/utils.js", | ||
"common/lib/3rd/jquery.js", | ||
"common/lib/3rd/baron.js", | ||
"common/lib/3rd/bootstrap.js", | ||
"common/lib/3rd/underscore.js", | ||
"common/lib/3rd/backbone.js", | ||
"common/lib/3rd/handlebars.js", | ||
"common/lib/3rd/prettydate.js", | ||
"common/lib/3rd/i18n.js", | ||
"common/dist/templates.js", | ||
"common/lib/handlebars-helpers.js", | ||
"common/lib/popup.js", | ||
"common/lib/routes.js", | ||
"common/lib/init.js", | ||
]; | ||
|
||
scripts = scripts.map(function (v){ | ||
return "<script src='" + chrome.runtime.getURL(v) + "'></script>"; | ||
}).join(''); | ||
|
||
document.write(scripts); | ||
})(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"name" : "Twitch Now", | ||
"version" : "1.1.78", | ||
"default_locale" : "en", | ||
"manifest_version" : 2, | ||
"description" : "Explore games & track your favorite streams on Twitch", | ||
"background" : { | ||
"scripts": [ | ||
"common/lib/3rd/jquery.js", | ||
"common/lib/3rd/underscore.js", | ||
"common/lib/3rd/backbone.js", | ||
"common/lib/utils.js", | ||
"common/lib/oauth2.js", | ||
"background.js", | ||
"common/lib/twitch-api.js", | ||
"common/lib/app.js" | ||
] | ||
}, | ||
"minimum_chrome_version" : "29", | ||
"content_security_policy" : "script-src 'self' https://connect.facebook.net https://ssl.google-analytics.com https://platform.twitter.com; object-src 'self'", | ||
"icons" : { | ||
"16" : "common/icons/32_1.png", | ||
"48" : "common/icons/48_1.png", | ||
"128": "common/icons/128_1.png" | ||
}, | ||
"web_accessible_resources": ["common/*", "css/*", "dist/*", "oauth2/*", "lib/*"], | ||
"browser_action" : { | ||
"default_icon" : { | ||
"19": "common/icons/19_2.png", | ||
"38": "common/icons/38_2.png" | ||
}, | ||
"default_popup": "common/html/popup.html" | ||
}, | ||
"permissions" : ["storage", "background", "https://*/*", "http://*/*", "notifications", "tabs"] | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
.scroller { | ||
height: 100%; | ||
overflow-y: scroll; | ||
/* -webkit-overflow-scrolling: touch; *//* uncomment to accelerate scrolling on iOS */ | ||
} | ||
|
||
.scroller::-webkit-scrollbar { | ||
/* Preventing webkit cross-direction scrolling bug */ | ||
width: 0; | ||
} | ||
|
||
.baron .scroller__bar { | ||
display: block; | ||
} | ||
|
||
.scroller__bar { | ||
position: absolute; | ||
z-index: 1; | ||
right: 0; | ||
width: 10px; | ||
border-radius: 10px; | ||
background: rgba(255, 255, 255, 0.6); | ||
display: none; | ||
} | ||
|
||
.scroller__bar:active { | ||
background: rgba(255, 255, 255, 1); | ||
} | ||
|
Oops, something went wrong.