Skip to content
Permalink
Browse files

Update all dependancies to latest versions

  • Loading branch information...
jamesdanylik committed Aug 4, 2019
1 parent 472b102 commit 26288baf8d71ea4f0228f7c49d3efa78c41df781
@@ -18,3 +18,7 @@ It also utilize several source plugins which I've implmented myself and made ava

Travis-CI makes builds daily and on-commit, before depoying the resulting site to [james.danylik.com](https://james.danylik.com). (Or will; this is still being worked on at this phase!)

Needs this kernel option set for tests to work:
```bash
sudo sysctl -w kernel.unprivileged_userns_clone=1
```
@@ -62,7 +62,8 @@ module.exports = {
color: config.themeColor
}
},
"gatsby-plugin-sharp",
"gatsby-plugin-sharp",
"gatsby-transformer-sharp",
"gatsby-plugin-catch-links",
"gatsby-plugin-twitter",
"gatsby-plugin-sitemap",
@@ -8,32 +8,32 @@
"chart.js": "^2.7.2",
"csv-parse": "^2.5.0",
"es6-promise": "^4.2.4",
"gatsby": "next",
"gatsby-image": "next",
"gatsby-plugin-catch-links": "next",
"gatsby-plugin-feed": "next",
"gatsby-plugin-google-analytics": "next",
"gatsby-plugin-lodash": "next",
"gatsby-plugin-manifest": "next",
"gatsby-plugin-nprogress": "next",
"gatsby-plugin-offline": "next",
"gatsby-plugin-react-helmet": "next",
"gatsby-plugin-sharp": "next",
"gatsby-plugin-sitemap": "next",
"gatsby-plugin-twitter": "next",
"gatsby-remark-autolink-headers": "next",
"gatsby-remark-copy-linked-files": "next",
"gatsby-remark-images": "next",
"gatsby-remark-prismjs": "next",
"gatsby-remark-responsive-iframe": "next",
"gatsby": "^2.13.50",
"gatsby-image": "^2.2.8",
"gatsby-plugin-catch-links": "^2.1.2",
"gatsby-plugin-feed": "^2.3.6",
"gatsby-plugin-google-analytics": "^2.1.6",
"gatsby-plugin-lodash": "^3.1.2",
"gatsby-plugin-manifest": "^2.2.4",
"gatsby-plugin-nprogress": "^2.1.2",
"gatsby-plugin-offline": "^2.2.4",
"gatsby-plugin-react-helmet": "^3.1.3",
"gatsby-plugin-sharp": "^2.2.9",
"gatsby-plugin-sitemap": "^2.2.5",
"gatsby-plugin-twitter": "^2.1.2",
"gatsby-remark-autolink-headers": "^2.1.3",
"gatsby-remark-copy-linked-files": "^2.1.4",
"gatsby-remark-images": "^3.1.7",
"gatsby-remark-prismjs": "^3.3.4",
"gatsby-remark-responsive-iframe": "^2.2.4",
"gatsby-source-anilist": "^0.1.0",
"gatsby-source-filesystem": "next",
"gatsby-source-filesystem": "^2.1.8",
"gatsby-source-git-commit": "^0.0.5",
"gatsby-source-lastfm": "^0.1.2",
"gatsby-source-npms": "^0.0.1",
"gatsby-source-steam": "^0.1.0",
"gatsby-transformer-remark": "next",
"gatsby-transformer-sharp": "next",
"gatsby-transformer-remark": "^2.6.10",
"gatsby-transformer-sharp": "^2.2.5",
"google-palette": "^1.1.0",
"isomorphic-fetch": "^2.2.1",
"lodash": "^4.17.4",
@@ -2,7 +2,7 @@ import React, { Component } from "react";
import { graphql } from "gatsby";

export const testAnilist = graphql`
fragment TestAnilist on RootQueryType {
fragment TestAnilist on Query {
allAnilistMedialistcollection {
edges {
node {
@@ -2,7 +2,7 @@ import React, { Component } from "react";
import { graphql } from "gatsby";

export const testGitcommit = graphql`
fragment TestGitcommit on RootQueryType {
fragment TestGitcommit on Query {
allGitCommit {
edges {
node {
@@ -2,7 +2,7 @@ import React, { Component } from "react";
import { graphql } from "gatsby";

export const testGoodreads = graphql`
fragment TestGoodreads on RootQueryType {
fragment TestGoodreads on Query {
allGoodreadsShelf {
edges {
node {
@@ -2,7 +2,7 @@ import React, { Component } from "react";
import { graphql } from "gatsby";

export const testLastFM = graphql`
fragment TestLastfm on RootQueryType {
fragment TestLastfm on Query {
allLastfmPlayback {
edges {
node {
@@ -2,7 +2,7 @@ import React from "react";
import { graphql } from "gatsby";

export const testNpms = graphql`
fragment TestNpms on RootQueryType {
fragment TestNpms on Query {
allNpmsPackage {
edges {
node {
@@ -2,7 +2,7 @@ import React, { Component } from "react";
import { graphql } from "gatsby";

export const testSteam = graphql`
fragment TestSteam on RootQueryType {
fragment TestSteam on Query {
allSteamGame {
edges {
node {
@@ -4,48 +4,12 @@ import config from "../../data/SiteConfig";
import "./index.css";

export default class MainLayout extends React.Component {
getLocalTitle() {
function capitalize(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
}
const pathPrefix = config.pathPrefix ? config.pathPrefix : "/";
const currentPath = this.props.location.pathname
.replace(pathPrefix, "")
.replace("/", "");
let title = "";
if (currentPath === "") {
title = "Home";
} else if (currentPath === "tags/") {
title = "Tags";
} else if (currentPath === "categories/") {
title = "Categories";
} else if (currentPath === "about/") {
title = "About";
} else if (currentPath.indexOf("posts")) {
title = "Article";
} else if (currentPath.indexOf("tags/")) {
const tag = currentPath
.replace("tags/", "")
.replace("/", "")
.replace("-", " ");
title = `Tagged in ${capitalize(tag)}`;
} else if (currentPath.indexOf("categories/")) {
const category = currentPath
.replace("categories/", "")
.replace("/", "")
.replace("-", " ");
title = `${capitalize(category)}`;
}
return title;
}
render() {
const { children } = this.props;
return (
<div>
<Helmet>
<title>{`${config.siteTitle} | ${this.getLocalTitle()}`}</title>
<meta name="description" content={config.siteDescription} />
<html lang="en" />
</Helmet>
{children}
</div>
@@ -13,8 +13,9 @@ import "./post.css";

export default class PostTemplate extends React.Component {
render() {
const { slug } = this.props.pageContext;
const postNode = this.props.data.markdownRemark;
const { data, pageContext } = this.props;
const { slug } = pageContext;
const postNode = data.markdownRemark;
const post = postNode.frontmatter;
if (!post.id) {
post.id = slug;
@@ -23,7 +24,7 @@ export default class PostTemplate extends React.Component {
post.category_id = config.postDefaultCategoryID;
}
return (
<Layout location={this.props.location}>
<Layout>
<div>
<Helmet>
<title>{`${post.title} | ${config.siteTitle}`}</title>
@@ -60,10 +61,6 @@ export const pageQuery = graphql`
tags
}
fields {
nextTitle
nextSlug
prevTitle
prevSlug
slug
date
}

0 comments on commit 26288ba

Please sign in to comment.
You can’t perform that action at this time.