← Prev:Register iOS app for Google Sign-in | 🏠 | Next:Add Google Sing-in for iOS→ |
---|
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 { APP_CONSTANTS } from '../../config/app_constants'; | |
import getResponse from '../../utils/responseUtils'; | |
import * as AWS from "aws-sdk"; | |
const dynamoDb = new AWS.DynamoDB.DocumentClient({ | |
'region': 'us-east-1' | |
}); | |
export async function main(event, context, callback) { | |
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
{ | |
"pathParameters": { | |
"id": "replace-this-with-the-id-of-an-item-you-have-in-your-dynamoDb-table" | |
}, | |
"requestContext": { | |
"identity": { | |
"cognitoIdentityId": "TEST-LOCAL-USER-A" | |
} | |
} | |
} |
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 React from "react"; | |
import PropTypes from "prop-types"; | |
/** | |
* | |
* A Test component created to test React Styleguidist documentation | |
* @export | |
* @class TestDocumentationBuilding | |
* @extends {React.Component} | |
*/ |
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 React from "react"; | |
import logo from "../assets/images/logo.svg"; | |
import "./App.css"; | |
import TestDocumentationBuilding from "../components"; | |
function App() { | |
return ( | |
<div className="App"> | |
<header className="App-header"> | |
<img src={logo} className="App-logo" alt="logo" /> |
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 React from "react"; | |
import PropTypes from "prop-types"; | |
/** | |
* | |
* Button that counts how many times it was pressed and exposes a `@public` method to reset itself. | |
* @export | |
* @class TestDocumentationBuilding | |
* @extends {React.Component} | |
*/ |
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 = { | |
components: ["src/**/*.{jsx,tsx}"], | |
ignore: [ | |
"**/index.{js,jsx,ts,tsx}", | |
"**/__tests__/**", | |
"**/*.test.{js,jsx,ts,tsx}", | |
"**/*.spec.{js,jsx,ts,tsx}", | |
"**/*.d.ts" | |
] | |
}; |
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
// Define our themes: one for day and one for night | |
export const dayTheme = { | |
appBG: "#37d8e6", | |
normalText: "#ffdd00", | |
hlText: "#f1c40f", //Highlighted Text | |
primary: { | |
bg: "#ddd", | |
text: "#000" | |
} | |
}; |
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 styled from "@emotion/styled"; | |
export const ContentsDiv = styled("div")` | |
background-color: ${props => props.theme.contentsBG || "#666"}; | |
color: ${props => props.theme.normalText || "#ddd"}; | |
padding: 10px; | |
`; |
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 const commonTheme = { | |
primary: { | |
bg: "#ddd", | |
textColor: "#000" | |
}, | |
warning: { | |
bg: "#f4d142", | |
textColor: "#000" | |
} | |
}; |