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
/** | |
* @NOTE | |
* Before v3, all Mailgun email templates belonged to a separate folder in the codebase. | |
* The templates were then compiled into HTML and uploaded via Mailgun's API. This made version control a pain in production. | |
* It also made previewing templates difficult. | |
* | |
* Later versions of Q3 offer an in-app email editor. | |
* To use this feature, you'll need to migrate your email templates from the file system to the database. | |
* You can write a script to accomplish this task. | |
* |
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
function getAppRoot() { | |
return document.getElementById('___gatsby') | |
} | |
function withErrorSuppression(fn) { | |
return function() { | |
try { fn(); } catch (e) {} | |
} | |
} |
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
{ | |
"brand": "3merge", | |
"color": "#49ec1c", | |
"description": "Sample Q3 setup json", | |
"favicon": "https://avatars.githubusercontent.com/u/12897090?s=200&v=4", | |
"lng": "en", | |
"logo": "https://uploads-ssl.webflow.com/5f620c85bd4f6828cc8f637b/5f620cd411cb5e449a1db5cb_combined_logo_2-p-500.png", | |
"name": "Q3", | |
"resources": { | |
"descriptions": { |
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
{ | |
"singleQuote": true, | |
"trailingComma": "all", | |
"arrowParens": "always", | |
"printWidth": 60, | |
"proseWrap": "always", | |
"quoteProps": "preserve" | |
} |
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 { GraphQLScalarType } from 'graphql'; | |
import { Kind } from 'graphql/language'; | |
import { ObjectId } from 'mongodb'; | |
export default new GraphQLScalarType({ | |
name: 'ID', | |
description: 'MongoDB ObjectID string type', | |
serialize: value => value.toString(), | |
parseValue: value => ObjectId(value), |