Add Github Token
This commit is contained in:
parent
460662a8b9
commit
6eaf2f52e9
4 changed files with 9 additions and 5 deletions
|
@ -79,6 +79,7 @@ export default {
|
|||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
@import "../../../node_modules/highlight.js/styles/monokai-sublime";
|
||||
@import "../scss/init/colors";
|
||||
@import "../scss/init/extends";
|
||||
@import "../scss/init/mixins";
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
<div class="xs12" v-if="jsonData">
|
||||
<p>Success! Here is the response for <strong>lbry://{{ address }}</strong>:</p>
|
||||
<pre class="json-example"><code class="json"><span v-html="highlight('json',jsonData)"></span></code></pre>
|
||||
<pre><code class="json"><span v-html="highlight('json',jsonData)"></span></code></pre>
|
||||
<a href="#" class="__button-black" v-on:click="goTo(2)">Go to next step</a>
|
||||
</div>
|
||||
|
||||
|
@ -122,6 +122,4 @@ export default {
|
|||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
@import "../../../node_modules/highlight.js/styles/monokai-sublime";
|
||||
@import '../scss/variables';
|
||||
</style>
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
<div class="xs12" v-if="jsonData">
|
||||
<p>Success! Here is the response:</p>
|
||||
<pre class="json-example"><code class="json"><span v-html="highlight('json',jsonData)"></span></code></pre>
|
||||
<pre><code class="json"><span v-html="highlight('json',jsonData)"></span></code></pre>
|
||||
</div>
|
||||
|
||||
<template v-if="!isLoading && !jsonData">
|
||||
|
@ -125,7 +125,6 @@ export default {
|
|||
|
||||
<style lang="scss">
|
||||
|
||||
@import "../../../node_modules/highlight.js/styles/monokai-sublime";
|
||||
@import '../scss/variables';
|
||||
|
||||
#step3-page {
|
||||
|
|
|
@ -17,6 +17,12 @@ var cors = require('cors');
|
|||
var CronJob = require('cron').CronJob;
|
||||
// Github API
|
||||
var octokit = require('@octokit/rest')();
|
||||
if(typeof process.env.GITHUB_OAUTH_TOKEN != 'undefined') {
|
||||
octokit.authenticate({
|
||||
type: 'oauth',
|
||||
token: process.env.GITHUB_OAUTH_TOKEN
|
||||
});
|
||||
}
|
||||
// Redis
|
||||
var redis = require("redis"),
|
||||
redisClient = redis.createClient(process.env.REDISCLOUD_URL);
|
||||
|
|
Loading…
Add table
Reference in a new issue