diff options
| author | Kamran Ahmed <kamranahmed.se@gmail.com> | 2016-03-25 19:01:24 +0400 |
|---|---|---|
| committer | Kamran Ahmed <kamranahmed.se@gmail.com> | 2016-03-25 19:01:24 +0400 |
| commit | 44cd7f20d9bd1f0e79b853a5cb7f8c78558dac2f (patch) | |
| tree | f89be83982876c6f7affcb4912d4379f2558a369 | |
| parent | Add options page, token caching etc (diff) | |
| download | githunt-44cd7f20d9bd1f0e79b853a5cb7f8c78558dac2f.tar.gz | |
Exception handling
| -rw-r--r-- | css/main.css | 6 | ||||
| -rw-r--r-- | js/main.js | 4 | ||||
| -rw-r--r-- | options.html | 2 |
3 files changed, 9 insertions, 3 deletions
diff --git a/css/main.css b/css/main.css index defbebe..aa157ac 100644 --- a/css/main.css +++ b/css/main.css @@ -47,6 +47,12 @@ a { outline: none; } +.quote-item a { + border-bottom: 1px solid #0B0BBD; + padding-bottom: 6px; + color: blue; +} + .active { background: #CECECE; } @@ -229,12 +229,12 @@ function HubTab() { message = error.message || ''; if (message && message.toLowerCase() == 'bad credentials') { - $('.main-content').replaceWith('<h3 class="quote-item error-quote">Oops! Seems to be a problem with your API token. Could you verify the token in `Githunt Options`.</h3>'); + $('.main-content').replaceWith('<h3 class="quote-item error-quote">Oops! Seems to be a problem with your API token. Could you verify the API token you entered in extension options.</h3>'); // Reset the token filterStorage.getStorage().removeItem(tokenStorageKey); } else if (message && (message.indexOf('rate limit') !== -1)) { - $('.main-content').replaceWith('<h3 class="quote-item error-quote">Oops! Seems like you did not set the API token. Wait an hour for github to refresh your rate limit or better add a token in `Githunt Options` to hunt more.</h3>'); + $('.main-content').replaceWith('<h3 class="quote-item error-quote">Oops! Seems like you did not set the API token. Wait another hour for github to refresh your rate limit or better add a token in `Githunt Options` to hunt more.</h3>'); } else { $('.main-content').replaceWith('Oops! Could you please refresh the page.'); } diff --git a/options.html b/options.html index a28b950..9b70953 100644 --- a/options.html +++ b/options.html @@ -21,7 +21,7 @@ <div class="options-content"> - <p class="quote-item">To make sure that you keep hunting smoothly, you may <a href="https://github.com/settings/tokens" target="_blank">generate and add a personal API token</a> to override the Rate Limit imposed by Github</p> + <p class="quote-item">To make sure that you keep hunting smoothly, you may <a href="https://github.com/settings/tokens" target="_blank">generate a token</a> and add it below to override the Rate Limit imposed by Github</p> <h3 style="margin: 30px 5px 10px;">Add API Token</h3> <input type="text" name="githunt_token" class="githunt_token btn" style="width: 300px;" /> |
