Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion gatsby-browser.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import { ApolloProvider } from "@apollo/react-hooks"
import React from "react"

import { AppContextProvider } from "./src/app-context"
import client from "./src/client"

export const wrapRootElement = ({ element }) => {
return <AppContextProvider>{element}</AppContextProvider>
return (
<ApolloProvider client={client}>
<AppContextProvider>{element}</AppContextProvider>
</ApolloProvider>
)
}
18 changes: 18 additions & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,24 @@ module.exports = {
disallow: "/bydeau",
userAgent: "*",
},
{
allow: "/",
crawlDelay: 10,
disallow: "/addresses",
userAgent: "*",
},
{
allow: "/",
crawlDelay: 10,
disallow: "/address-editor",
userAgent: "*",
},
{
allow: "/",
crawlDelay: 10,
disallow: "/orders",
userAgent: "*",
},
],
},
resolve: "gatsby-plugin-robots-txt",
Expand Down
13 changes: 13 additions & 0 deletions gatsby-ssr.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { ApolloProvider } from "@apollo/react-hooks"
import React from "react"

import { AppContextProvider } from "./src/app-context"
import client from "./src/client"

export const wrapRootElement = ({ element }) => {
return (
<ApolloProvider client={client}>
<AppContextProvider>{element}</AppContextProvider>
</ApolloProvider>
)
}
40 changes: 25 additions & 15 deletions graphql-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6186,10 +6186,10 @@ export type Query = {
allShopifyProduct: ShopifyProductConnection;
shopifyPage?: Maybe<ShopifyPage>;
allShopifyPage: ShopifyPageConnection;
shopifyBlog?: Maybe<ShopifyBlog>;
allShopifyBlog: ShopifyBlogConnection;
shopifyCollection?: Maybe<ShopifyCollection>;
allShopifyCollection: ShopifyCollectionConnection;
shopifyBlog?: Maybe<ShopifyBlog>;
allShopifyBlog: ShopifyBlogConnection;
contentfulAsset?: Maybe<ContentfulAsset>;
allContentfulAsset: ContentfulAssetConnection;
contentfulBlockRichTextContentRichTextNode?: Maybe<ContentfulBlockRichTextContentRichTextNode>;
Expand Down Expand Up @@ -6523,44 +6523,44 @@ export type QueryAllShopifyPageArgs = {
};


export type QueryShopifyBlogArgs = {
export type QueryShopifyCollectionArgs = {
id?: Maybe<StringQueryOperatorInput>;
parent?: Maybe<NodeFilterInput>;
children?: Maybe<NodeFilterListInput>;
internal?: Maybe<InternalFilterInput>;
description?: Maybe<StringQueryOperatorInput>;
descriptionHtml?: Maybe<StringQueryOperatorInput>;
handle?: Maybe<StringQueryOperatorInput>;
title?: Maybe<StringQueryOperatorInput>;
url?: Maybe<StringQueryOperatorInput>;
updatedAt?: Maybe<DateQueryOperatorInput>;
shopifyId?: Maybe<StringQueryOperatorInput>;
products?: Maybe<ShopifyProductFilterListInput>;
};


export type QueryAllShopifyBlogArgs = {
filter?: Maybe<ShopifyBlogFilterInput>;
sort?: Maybe<ShopifyBlogSortInput>;
export type QueryAllShopifyCollectionArgs = {
filter?: Maybe<ShopifyCollectionFilterInput>;
sort?: Maybe<ShopifyCollectionSortInput>;
skip?: Maybe<Scalars['Int']>;
limit?: Maybe<Scalars['Int']>;
};


export type QueryShopifyCollectionArgs = {
export type QueryShopifyBlogArgs = {
id?: Maybe<StringQueryOperatorInput>;
parent?: Maybe<NodeFilterInput>;
children?: Maybe<NodeFilterListInput>;
internal?: Maybe<InternalFilterInput>;
description?: Maybe<StringQueryOperatorInput>;
descriptionHtml?: Maybe<StringQueryOperatorInput>;
handle?: Maybe<StringQueryOperatorInput>;
title?: Maybe<StringQueryOperatorInput>;
updatedAt?: Maybe<DateQueryOperatorInput>;
url?: Maybe<StringQueryOperatorInput>;
shopifyId?: Maybe<StringQueryOperatorInput>;
products?: Maybe<ShopifyProductFilterListInput>;
};


export type QueryAllShopifyCollectionArgs = {
filter?: Maybe<ShopifyCollectionFilterInput>;
sort?: Maybe<ShopifyCollectionSortInput>;
export type QueryAllShopifyBlogArgs = {
filter?: Maybe<ShopifyBlogFilterInput>;
sort?: Maybe<ShopifyBlogSortInput>;
skip?: Maybe<Scalars['Int']>;
limit?: Maybe<Scalars['Int']>;
};
Expand Down Expand Up @@ -9884,6 +9884,16 @@ export type BydeauPageQuery = { shopifyCollection?: Maybe<{ products?: Maybe<Arr
)>>> }
)>>> }> };

export type LoginBgImageQueryVariables = Exact<{ [key: string]: never; }>;


export type LoginBgImageQuery = { file?: Maybe<{ childImageSharp?: Maybe<{ fluid?: Maybe<GatsbyImageSharpFluid_WithWebp_TracedSvgFragment> }> }> };

export type RegisterBgImageQueryVariables = Exact<{ [key: string]: never; }>;


export type RegisterBgImageQuery = { file?: Maybe<{ childImageSharp?: Maybe<{ fluid?: Maybe<GatsbyImageSharpFluid_WithWebp_TracedSvgFragment> }> }> };

export type BlogPostsPageQueryVariables = Exact<{ [key: string]: never; }>;


Expand Down
141 changes: 135 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
"version": "0.2.0",
"author": "Kyle Mathews <mathews.kyle@gmail.com>",
"dependencies": {
"@apollo/react-hooks": "^3.1.5",
"@contentful/rich-text-react-renderer": "^13.4.0",
"@emotion/core": "^10.0.27",
"@mdx-js/react": "^1.5.5",
"apollo-boost": "^0.4.9",
"disqus-react": "^1.0.8",
"gatsby": "^2.19.25",
"gatsby-image": "^2.2.39",
Expand All @@ -33,6 +35,7 @@
"gatsby-source-filesystem": "^2.1.46",
"gatsby-source-shopify": "^3.0.43",
"gatsby-transformer-sharp": "^2.3.13",
"isomorphic-fetch": "^2.2.1",
"mailgun-js": "^0.22.0",
"moment": "^2.24.0",
"pdfkit": "^0.11.0",
Expand All @@ -58,6 +61,7 @@
"use-query-params": "^0.6.0"
},
"devDependencies": {
"@types/isomorphic-fetch": "0.0.35",
"@types/lodash": "^4.14.149",
"@types/node": "^13.7.0",
"@types/qrcode.react": "^1.0.0",
Expand Down
Loading