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";
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// U T I L
|
||||||
|
|
||||||
import markdown from "../markdown";
|
import markdown from "../markdown";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// E X P O R T
|
||||||
|
|
||||||
export default () => `
|
export default () => `
|
||||||
<div class="ecosystem__module applications">
|
<div class="ecosystem__module applications">
|
||||||
<span class="__close" data-action="close">×</span>
|
<span class="__close" data-action="close">×</span>
|
||||||
|
|
|
@ -1,7 +1,15 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// U T I L
|
||||||
|
|
||||||
import markdown from "../markdown";
|
import markdown from "../markdown";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// E X P O R T
|
||||||
|
|
||||||
export default () => `
|
export default () => `
|
||||||
<div class="ecosystem__module lbry">
|
<div class="ecosystem__module lbry">
|
||||||
<span class="__close" data-action="close">×</span>
|
<span class="__close" data-action="close">×</span>
|
||||||
|
|
|
@ -1,7 +1,15 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// U T I L
|
||||||
|
|
||||||
import markdown from "../markdown";
|
import markdown from "../markdown";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// E X P O R T
|
||||||
|
|
||||||
export default () => `
|
export default () => `
|
||||||
<div class="ecosystem__module lbrycrd">
|
<div class="ecosystem__module lbrycrd">
|
||||||
<span class="__close" data-action="close">×</span>
|
<span class="__close" data-action="close">×</span>
|
||||||
|
|
|
@ -1,7 +1,15 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// U T I L
|
||||||
|
|
||||||
import markdown from "../markdown";
|
import markdown from "../markdown";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// E X P O R T
|
||||||
|
|
||||||
export default () => `
|
export default () => `
|
||||||
<div class="ecosystem__submodule chainquery">
|
<div class="ecosystem__submodule chainquery">
|
||||||
<h3 class="ecosystem__submodule__title" data-action="openSubmodule" data-target="chainquery">chainquery</h3>
|
<h3 class="ecosystem__submodule__title" data-action="openSubmodule" data-target="chainquery">chainquery</h3>
|
||||||
|
|
|
@ -1,14 +1,22 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// U T I L
|
||||||
|
|
||||||
import markdown from "../markdown";
|
import markdown from "../markdown";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// E X P O R T
|
||||||
|
|
||||||
export default () => `
|
export default () => `
|
||||||
<div class="ecosystem__submodule lighthouse">
|
<div class="ecosystem__submodule lighthouse">
|
||||||
<h3 class="ecosystem__submodule__title" data-action="openSubmodule" data-target="lighthouse">lighthouse</h3>
|
<h3 class="ecosystem__submodule__title" data-action="openSubmodule" data-target="lighthouse">lighthouse</h3>
|
||||||
|
|
||||||
<div class="ecosystem__submodule__description">
|
<div class="ecosystem__submodule__description">
|
||||||
<div class="ecosystem__submodule__markdown">
|
<div class="ecosystem__submodule__markdown">
|
||||||
${markdown("./documents/partials/overview/lighthouse.md")}a
|
${markdown("./documents/partials/overview/lighthouse.md")}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul class="__parents">
|
<ul class="__parents">
|
||||||
|
|
|
@ -1,7 +1,15 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// U T I L
|
||||||
|
|
||||||
import markdown from "../markdown";
|
import markdown from "../markdown";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// E X P O R T
|
||||||
|
|
||||||
export default () => `
|
export default () => `
|
||||||
<div class="ecosystem__submodule reflector">
|
<div class="ecosystem__submodule reflector">
|
||||||
<h3 class="ecosystem__submodule__title" data-action="openSubmodule" data-target="reflector">reflector</h3>
|
<h3 class="ecosystem__submodule__title" data-action="openSubmodule" data-target="reflector">reflector</h3>
|
||||||
|
|
|
@ -1,7 +1,15 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// U T I L
|
||||||
|
|
||||||
import markdown from "../markdown";
|
import markdown from "../markdown";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// E X P O R T
|
||||||
|
|
||||||
export default () => `
|
export default () => `
|
||||||
<div class="ecosystem__submodule wallet">
|
<div class="ecosystem__submodule wallet">
|
||||||
<h3 class="ecosystem__submodule__title" data-action="openSubmodule" data-target="wallet">wallet server</h3>
|
<h3 class="ecosystem__submodule__title" data-action="openSubmodule" data-target="wallet">wallet server</h3>
|
||||||
|
|
|
@ -7,13 +7,14 @@
|
||||||
const async = require("async");
|
const async = require("async");
|
||||||
const color = require("colorette");
|
const color = require("colorette");
|
||||||
const local = require("app-root-path").require;
|
const local = require("app-root-path").require;
|
||||||
const octokit = require("@octokit/rest")();
|
const Octokit = require("@octokit/rest");
|
||||||
const redis = require("redis");
|
const redis = require("redis");
|
||||||
|
|
||||||
// U T I L S
|
// U T I L S
|
||||||
|
|
||||||
const messageSlack = local("/app/helpers/slack");
|
const messageSlack = local("/app/helpers/slack");
|
||||||
const relativeDate = local("/app/modules/relative-date");
|
const relativeDate = local("/app/modules/relative-date");
|
||||||
|
let octokit;
|
||||||
|
|
||||||
String.prototype.escape = function() {
|
String.prototype.escape = function() {
|
||||||
const tagsToReplace = {
|
const tagsToReplace = {
|
||||||
|
@ -30,14 +31,8 @@ String.prototype.escape = function() {
|
||||||
let client;
|
let client;
|
||||||
|
|
||||||
if (typeof process.env.GITHUB_OAUTH_TOKEN !== "undefined") {
|
if (typeof process.env.GITHUB_OAUTH_TOKEN !== "undefined") {
|
||||||
// new octokit({
|
octokit = new Octokit({
|
||||||
// auth: `token ${process.env.GITHUB_OAUTH_TOKEN}`
|
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
|
|
||||||
});
|
});
|
||||||
} else process.stdout.write(`${color.red("[missing]")} GitHub token`);
|
} else process.stdout.write(`${color.red("[missing]")} GitHub token`);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue