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 * as React from "react"; | |
import styled from "styled-components"; | |
/** Theme */ | |
import { Colors } from "../Theme"; | |
type ErrorMessageProps = { | |
errorMessage: string | null; | |
}; |
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
/** | |
* API Request | |
* @param endPoint - api endpoint | |
* @param httpMethod - the http method defining the type of request (POST/GET/PUT/PATCH) | |
* @param bodyParams - object with properties being passed with the request | |
*/ | |
export const apiRequest = async ( | |
endPoint: string, | |
httpMethod: string, |
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 * as React from "react"; | |
import { Row, Col, Button } from "reactstrap"; | |
import { withToastManager } from "react-toast-notifications"; | |
import StripeCheckout from "react-stripe-checkout"; | |
import ErrorMessage from "./ErrorMessage"; | |
import useErrorHandler from "./ErrorHandler"; | |
/** Styling */ | |
import { | |
CurrencySymbol, |
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 "styled-components"; | |
export const Wrapper = styled.div` | |
height: 100vh; | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
& button { | |
background: rgba(51, 51, 255, 1) !important; | |
} |
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 * as React from "react"; | |
import { | |
AuthenticationDetails, | |
CognitoUserPool, | |
CognitoUserAttribute, | |
CognitoUser, | |
CognitoUserSession, | |
} from "amazon-cognito-identity-js"; | |
import moment from "moment"; | |
/** Utils */ |
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
{ | |
"players": [ | |
{ | |
"id": "1", | |
"firstName": "Lebron", | |
"lastName": "James", | |
"teamId": "2" | |
}, | |
{ | |
"id": "2", |
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 https = require('https'); | |
const STATUS_GIF = { | |
started: 'https://media.giphy.com/media/tXLpxypfSXvUc/giphy.gif', // rocket launching | |
succeeded: 'https://media.giphy.com/media/MYDMiSizWs5sjJRHFA/giphy.gif', // micheal jordan celebrating | |
failed: 'https://media.giphy.com/media/d2lcHJTG5Tscg/giphy.gif', // anthony anderson crying | |
canceled: 'https://media.giphy.com/media/IzXmRTmKd0if6/giphy.gif', // finger pressing abort button | |
} | |
// Get project issues from Snyk |
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
# GitHub secret | |
data "aws_secretsmanager_secret" "github_secret" { | |
name = var.github_secret_name | |
} | |
data "aws_secretsmanager_secret_version" "github_token" { | |
secret_id = data.aws_secretsmanager_secret.github_secret.id | |
} | |
# Docker secrets |
OlderNewer