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 checkPageForText = (page, text) => { | |
https.get(page, resp => { | |
let data = '' | |
resp.on('data', chunk => (data += chunk)) | |
resp.on('end', () => { | |
if (data.includes(text)) { | |
console.log(chalk.green(`${text} exists on ${page}`)) | |
} else { | |
console.log(chalk.red(`${text} not found on ${page}`)) | |
} |
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
{ | |
"workbench.colorCustomizations": { | |
"[One Dark Pro]": { | |
"editor.background": "#151d27", | |
"editor.foreground": "#efefef", | |
"sideBar.background": "#1c2530", | |
} | |
}, | |
"workbench.startupEditor": "newUntitledFile", | |
"workbench.iconTheme": "material-icon-theme", |
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
<CurrencyFieldType label="Title Field" default="CAD" /> |
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
<ColorFieldType label="Title Field" /> | |
<ColorFieldType label="Default to Orange Field" default="#ff9920" /> |
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
<WithLoader condition={condition.to.render.children} height={optional} width={optional}> | |
<ChildComponentToRender /> | |
</WithLoader> |
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 class CollapsibleCard extends Component { | |
static defaultProps = { | |
isCollapsed: false, | |
header: 'Header Required', | |
body: 'body required', | |
footer: '' | |
} | |
state = { | |
isCollapsed: false | |
} |
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
<CollapsibleCard header="Collapse Me" footer="this is a footer"> | |
<p>This is the body</p> | |
</CollapsibleCard> | |
<CollapsibleCard header="Default Collapsed" collapsed > | |
<h3>A whole component! look at that!</h3> | |
<GithubEmbed /> | |
</CollapsibleCard> |