Updated GitHub module usage, formatting, typo
This commit is contained in:
parent
7cc2fb87d5
commit
c28a14d907
8 changed files with 63 additions and 12 deletions
|
@ -1,7 +1,15 @@
|
|||
"use strict";
|
||||
|
||||
|
||||
|
||||
// U T I L
|
||||
|
||||
import markdown from "../markdown";
|
||||
|
||||
|
||||
|
||||
// E X P O R T
|
||||
|
||||
export default () => `
|
||||
<div class="ecosystem__module applications">
|
||||
<span class="__close" data-action="close">×</span>
|
||||
|
|
|
@ -1,7 +1,15 @@
|
|||
"use strict";
|
||||
|
||||
|
||||
|
||||
// U T I L
|
||||
|
||||
import markdown from "../markdown";
|
||||
|
||||
|
||||
|
||||
// E X P O R T
|
||||
|
||||
export default () => `
|
||||
<div class="ecosystem__module lbry">
|
||||
<span class="__close" data-action="close">×</span>
|
||||
|
@ -17,7 +25,7 @@ export default () => `
|
|||
<span><a href="https://github.com/lbryio/types">lbryschema</a></span>
|
||||
</div>
|
||||
</h2>
|
||||
|
||||
|
||||
<div class="ecosystem__module__details">
|
||||
${markdown("./documents/partials/overview/lbrysdk.md")}
|
||||
</div>
|
||||
|
|
|
@ -1,7 +1,15 @@
|
|||
"use strict";
|
||||
|
||||
|
||||
|
||||
// U T I L
|
||||
|
||||
import markdown from "../markdown";
|
||||
|
||||
|
||||
|
||||
// E X P O R T
|
||||
|
||||
export default () => `
|
||||
<div class="ecosystem__module lbrycrd">
|
||||
<span class="__close" data-action="close">×</span>
|
||||
|
|
|
@ -1,7 +1,15 @@
|
|||
"use strict";
|
||||
|
||||
|
||||
|
||||
// U T I L
|
||||
|
||||
import markdown from "../markdown";
|
||||
|
||||
|
||||
|
||||
// E X P O R T
|
||||
|
||||
export default () => `
|
||||
<div class="ecosystem__submodule chainquery">
|
||||
<h3 class="ecosystem__submodule__title" data-action="openSubmodule" data-target="chainquery">chainquery</h3>
|
||||
|
@ -10,7 +18,7 @@ export default () => `
|
|||
<div class="ecosystem__submodule__markdown">
|
||||
${markdown("./documents/partials/overview/chainquery.md")}
|
||||
</div>
|
||||
|
||||
|
||||
<ul class="__parents">
|
||||
<li class="__parent green" data-action="open" data-target="applications">Applications</li>
|
||||
<li class="__parent red" data-action="open" data-target="lbrycrd">Blockchain</li>
|
||||
|
|
|
@ -1,14 +1,22 @@
|
|||
"use strict";
|
||||
|
||||
|
||||
|
||||
// U T I L
|
||||
|
||||
import markdown from "../markdown";
|
||||
|
||||
|
||||
|
||||
// E X P O R T
|
||||
|
||||
export default () => `
|
||||
<div class="ecosystem__submodule lighthouse">
|
||||
<h3 class="ecosystem__submodule__title" data-action="openSubmodule" data-target="lighthouse">lighthouse</h3>
|
||||
|
||||
<div class="ecosystem__submodule__description">
|
||||
<div class="ecosystem__submodule__markdown">
|
||||
${markdown("./documents/partials/overview/lighthouse.md")}a
|
||||
${markdown("./documents/partials/overview/lighthouse.md")}
|
||||
</div>
|
||||
|
||||
<ul class="__parents">
|
||||
|
|
|
@ -1,7 +1,15 @@
|
|||
"use strict";
|
||||
|
||||
|
||||
|
||||
// U T I L
|
||||
|
||||
import markdown from "../markdown";
|
||||
|
||||
|
||||
|
||||
// E X P O R T
|
||||
|
||||
export default () => `
|
||||
<div class="ecosystem__submodule reflector">
|
||||
<h3 class="ecosystem__submodule__title" data-action="openSubmodule" data-target="reflector">reflector</h3>
|
||||
|
|
|
@ -1,7 +1,15 @@
|
|||
"use strict";
|
||||
|
||||
|
||||
|
||||
// U T I L
|
||||
|
||||
import markdown from "../markdown";
|
||||
|
||||
|
||||
|
||||
// E X P O R T
|
||||
|
||||
export default () => `
|
||||
<div class="ecosystem__submodule wallet">
|
||||
<h3 class="ecosystem__submodule__title" data-action="openSubmodule" data-target="wallet">wallet server</h3>
|
||||
|
|
|
@ -7,13 +7,14 @@
|
|||
const async = require("async");
|
||||
const color = require("colorette");
|
||||
const local = require("app-root-path").require;
|
||||
const octokit = require("@octokit/rest")();
|
||||
const Octokit = require("@octokit/rest");
|
||||
const redis = require("redis");
|
||||
|
||||
// U T I L S
|
||||
|
||||
const messageSlack = local("/app/helpers/slack");
|
||||
const relativeDate = local("/app/modules/relative-date");
|
||||
let octokit;
|
||||
|
||||
String.prototype.escape = function() {
|
||||
const tagsToReplace = {
|
||||
|
@ -30,14 +31,8 @@ String.prototype.escape = function() {
|
|||
let client;
|
||||
|
||||
if (typeof process.env.GITHUB_OAUTH_TOKEN !== "undefined") {
|
||||
// new octokit({
|
||||
// auth: `token ${process.env.GITHUB_OAUTH_TOKEN}`
|
||||
// });
|
||||
// https://github.com/octokit/rest.js/issues/1207
|
||||
|
||||
octokit.authenticate({
|
||||
type: "oauth",
|
||||
token: process.env.GITHUB_OAUTH_TOKEN
|
||||
octokit = new Octokit({
|
||||
auth: `token ${process.env.GITHUB_OAUTH_TOKEN}`
|
||||
});
|
||||
} else process.stdout.write(`${color.red("[missing]")} GitHub token`);
|
||||
|
||||
|
|
Loading…
Reference in a new issue