From 4c976fa77e2ac208aaf904493d2759889ded027c Mon Sep 17 00:00:00 2001 From: benweet Date: Tue, 30 Apr 2013 00:19:54 +0100 Subject: [PATCH] Added Gist provider --- cache.manifest | 2 +- css/main-min.css | 6 ++- css/main.css | 3 +- github-oauth-client.html | 2 +- index.html | 103 +++++++++++++++++++++++---------------- js/config.js | 1 + js/core.js | 8 +++ js/gist-provider.js | 33 +++++++++++++ js/github-helper.js | 39 +++++++++++++++ js/main-min.js | 2 +- js/publisher.js | 19 +++++--- 11 files changed, 164 insertions(+), 54 deletions(-) create mode 100644 js/gist-provider.js diff --git a/cache.manifest b/cache.manifest index 2c6da2c8..a2b29039 100644 --- a/cache.manifest +++ b/cache.manifest @@ -1 +1 @@ -CACHE MANIFEST # v18 CACHE: index.html css/main-min.css js/main-min.js js/require.js img/ajax-loader.gif img/glyphicons-halflings.png img/glyphicons-halflings-white.png img/icons.png img/stackedit-32.ico img/stackedit-promo.png NETWORK: * +CACHE MANIFEST # v19 CACHE: index.html css/main-min.css js/main-min.js js/require.js img/ajax-loader.gif img/glyphicons-halflings.png img/glyphicons-halflings-white.png img/icons.png img/stackedit-32.ico img/stackedit-promo.png NETWORK: * diff --git a/css/main-min.css b/css/main-min.css index 1cbf8070..732443fd 100644 --- a/css/main-min.css +++ b/css/main-min.css @@ -5541,7 +5541,8 @@ hr { height: 16px; background-position: -37px 0; } -.icon-github { +.icon-github, +.icon-gist { background-image: url("../img/icons.png") !important; width: 16px; height: 16px; @@ -5613,7 +5614,8 @@ hr { z-index: 1050 !important; } #modal-settings textarea { - height: 180px; + height: 80px; + max-width: 206px; } .tooltip-inner { text-align: left; diff --git a/css/main.css b/css/main.css index f8dff3c6..5006064c 100644 --- a/css/main.css +++ b/css/main.css @@ -246,7 +246,8 @@ hr { background-position: -37px 0; } -.icon-github { +.icon-github, +.icon-gist { background-image: url("../img/icons.png") !important; width: 16px; height: 16px; diff --git a/github-oauth-client.html b/github-oauth-client.html index 7609c23e..e8f83c92 100644 --- a/github-oauth-client.html +++ b/github-oauth-client.html @@ -14,7 +14,7 @@ var code = getParameter("code"); if (client_id) { window.location.href = "https://github.com/login/oauth/authorize?client_id=" - + client_id + "&scope=repo"; + + client_id + "&scope=repo,gist"; } else { if (code) { localStorage["githubCode"] = code; diff --git a/index.html b/index.html index db2c1593..7def908a 100644 --- a/index.html +++ b/index.html @@ -88,17 +88,7 @@