Housekeeping, fix security vulnerabilities

This commit is contained in:
Angelos Chalaris
2019-08-19 11:18:37 +03:00
parent 3ed60da1cd
commit 6281883952
25 changed files with 6439 additions and 6760 deletions

View File

@ -67,7 +67,6 @@ export const archivePageQuery = graphql`
totalCount
edges {
node {
excerpt(pruneLength: 400)
id
html
rawMarkdownBody

View File

@ -12,7 +12,6 @@ import SimpleCard from '../components/SimpleCard';
// ===================================================
const GlossaryPage = props => {
const posts = props.data.snippetDataJson.data;
console.log(posts);
React.useEffect(() => {
props.dispatch(pushNewPage('Glossary', props.path));

View File

@ -14,7 +14,6 @@ import { getRawCodeBlocks as getCodeBlocks } from '../util';
// Home page (splash and search)
// ===================================================
const IndexPage = props => {
console.log(props);
const snippets = props.data.snippetDataJson.data.map(snippet => ({
title: snippet.title,
html: props.data.allMarkdownRemark.edges.find(

View File

@ -17,7 +17,6 @@ import SimpleCard from '../components/SimpleCard';
// Snippet list page
// ===================================================
const ListPage = props => {
console.log(props);
const snippets = props.data.snippetDataJson.data.map(snippet => ({
title: snippet.title,
html: props.data.allMarkdownRemark.edges.find(
@ -52,8 +51,6 @@ const ListPage = props => {
).node.rawMarkdownBody,
).code,
}));
console.log(snippets);
console.log(archivedSnippets);
const tags = snippets.reduce((acc, snippet) => {
if (!snippet.tags) return acc;
const primaryTag = snippet.tags[0];