This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.createSchemaCustomization = ({ actions, schema }) => { | |
actions.createTypes([ | |
` | |
interface StoreProducts @nodeInterface { | |
id: ID! | |
productTitle: String | |
productId: String | |
printfulProduct: PrintfulProduct | |
currency: String |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { graphql, useStaticQuery } from 'gatsby'; | |
const usePrintfulProducts = () => { | |
const { allStoreProducts } = useStaticQuery( | |
graphql` | |
query usePrintfulProducts { | |
allStoreProducts(filter: { productId: { ne: null } }) { | |
nodes { | |
productId | |
currency |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const storeProductsCollection = [ | |
{ | |
label: 'Store', | |
name: 'storeProducts', | |
editor: { preview: false }, | |
format: 'json', | |
files: [ | |
{ | |
label: 'Products', | |
name: 'productsList', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.createSchemaCustomization = ({ actions, schema }) => { | |
actions.createTypes([ | |
` | |
type StoreProductsJson implements Node { | |
product: [StoreProductsJsonProduct] | |
} | |
type StoreProductsJsonProduct { | |
title: String | |
isActive: Boolean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { graphql, useStaticQuery } from 'gatsby'; | |
const usePrintfulProductsInCms = () => { | |
const { allStoreProducts } = useStaticQuery( | |
graphql` | |
query usePrintfulProductsInCms { | |
allStoreProducts { | |
nodes { | |
productId | |
currency |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
buttonSkinData, | |
buttonSizeData, | |
buttonBtnTypeData, | |
buttonTypeData, | |
buttonTargetData, | |
} from '@luigiclaudio/ga-baseline-ui/button'; | |
import { iconSetData } from '@luigiclaudio/ga-baseline-ui/icon'; | |
export default function (config = {}, collections = []) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
exports.onPostBuild = async ({ graphql }) => { | |
await graphql(` | |
{ | |
activeAds: allStoreProducts(filter: { cms: { isAdvertised: { eq: true } } }) { | |
nodes { | |
productId | |
cms { | |
title |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useEffect } from 'react'; | |
import { get } from 'lodash'; | |
import { navigate } from 'gatsby'; | |
import { useLoading } from '@luigiclaudio/ga-baseline-ui/helpers'; | |
import { Identity } from '@luigiclaudio/ga-auth-theme'; | |
const useUser = () => { | |
const { user, getFreshJWT, logoutUser } = Identity.useIdentityContext(); | |
const [isLoading, load] = useLoading(); | |
const tokenObject = get(user, 'token'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
D:\Files\dev\ga-hounderly [master ≡]> netlify build | |
| |
──────────────────────────────────────────────────────────────── | |
Netlify Build | |
──────────────────────────────────────────────────────────────── | |
| |
> Version | |
@netlify/build 9.19.1 | |
| |
> Flags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[build] | |
command = 'npm run prebuild-retailers && npm run process-retailer-images && npm run prebuild-identity-signup && npm run prebuild-customer-portal && yarn run build --verbose' | |
functions = 'functions' | |
publish = 'public' | |
[build.environment] | |
NODE_OPTIONS = '--max_old_space_size=8192' | |
YARN_VERSION = '1.22.10' | |
NODE_VERSION = "14.15.0" |
OlderNewer