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
module.exports = { | |
content: [ | |
'./src/**/*.{js,jsx,ts,tsx}', | |
'./public/index.html', //optional if you want to add tailwind to your index.html page | |
'node_modules/@yext/answers-react-components/lib/components/**/*.{js,ts,jsx,tsx}' | |
], | |
theme: { | |
extend: { | |
colors: { | |
'primary': '#2563eb', |
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
{{> cards/card_component componentName='document-standard' }} | |
class document-standardCardComponent extends BaseCard['document-standard'] { | |
constructor(config = {}, systemConfig = {}) { | |
super(config, systemConfig); | |
} | |
/** | |
* This returns an object that will be called `card` | |
* in the template. Put all mapping logic here. |
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
'use strict'; | |
// load AWS SDK module, which is always included in the runtime environment | |
const AWS = require('aws-sdk'); | |
// define the Guru API as a "service" | |
const svc = new AWS.Service({ | |
//Guru base URL | |
endpoint: 'https://api.getguru.com/api/v1', |
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.handler = function(event, context, callback) { | |
svc.getCard({ | |
query: 'espp', | |
apikey: 'kEY' | |
}, (err, data) => { | |
if (err) { | |
console.log('whoops'); | |
return callback(err); | |
} |