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 { createRemoteFileNode } = require(`gatsby-source-filesystem`) | |
// Note that WPGraphQL_MediaItem depends on your gatsby-source-graphql typeName which is set in the config | |
exports.createResolvers = ({ | |
actions, | |
cache, | |
createNodeId, | |
createResolvers, | |
store, |
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 loadable from '@loadable/component'; | |
const AcfComponents = { | |
Hero: loadable(() => import('../Hero/Hero')), | |
Grid: loadable(() => import('../Grid/Grid')), | |
}; | |
export default AcfComponents; |
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
export default class PDF { | |
constructor(name, { padding = [20, 25, 20, 25], width = 210, height = 297, defaultFontSize = 12, debug = false }) { | |
const jsPDF = require("jspdf") | |
require("jspdf-autotable") | |
this._name = name | |
this._width = width | |
this._height = height | |
this._padding = padding | |
this._defaultFontSize = defaultFontSize |