Housekeeping, fix security vulnerabilities
This commit is contained in:
@ -67,7 +67,6 @@ export const archivePageQuery = graphql`
|
||||
totalCount
|
||||
edges {
|
||||
node {
|
||||
excerpt(pruneLength: 400)
|
||||
id
|
||||
html
|
||||
rawMarkdownBody
|
||||
|
||||
@ -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));
|
||||
|
||||
@ -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(
|
||||
|
||||
@ -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];
|
||||
|
||||
Reference in New Issue
Block a user