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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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