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
{ | |
// Specifies the style of the gravatar default (fallback) images | |
// - identicon: A geometric pattern | |
// - mp: A simple, cartoon-style silhouetted outline of a person (does not vary by email hash) | |
// - monsterid: A monster with different colors, faces, etc | |
// - retro: 8-bit arcade-style pixelated faces | |
// - robohash: A robot with different colors, faces, etc | |
// - wavatar: A face with differing features and backgrounds | |
"gitlens.defaultGravatarsStyle": "robohash", |
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 testeEnviarEmail() { | |
var e = { | |
namedValues: { | |
"email": ["jonathasborges0@gmail.com"], | |
"assunto": ["Testando conteudo do assunto"], | |
"mensagem": ["testando o Corpo da mensagem"] | |
} | |
}; | |
enviarEmailDeConfirmacao(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
function doGet(e){ | |
return ContentService.createTextOutput("Backend do formulario v0.0.2").setMimeType(ContentService.MimeType.TEXT); | |
} | |
function doPost(e) { | |
var URL_ACTION = 'https://docs.google.com/forms/u/0/d/e/ID_DO_SEU_GOOGLE_FORMS/formResponse'; | |
var EMAIL_ID = 'entry.20457302'; | |
var SUBJECT_ID = 'entry.59777055'; | |
var MESSAGE_ID = 'entry.20138404'; |
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
// FormComponent.jsx | |
import React, { useState } from 'react'; | |
import TextField from '@mui/material/TextField'; | |
import Button from '@mui/material/Button'; | |
import { useFormik } from 'formik'; | |
import * as yup from 'yup'; | |
const validationSchema = yup.object({ | |
email: yup.string().email('Digite um email válido').required('Email é obrigatório'), |
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, { useState } from 'react' | |
import { useSnackbar } from 'notistack'; | |
import { Button, CircularProgress, Grid } from '@mui/material'; | |
import { IEmail, sendEmail } from '../../module/gmail'; | |
interface ContactProps { | |
children?: React.ReactNode; | |
} | |
export const fromDefault = "Juliana Rodrigues Mensagem Automatica <julianasouzarodrigues.adv@gmail.com>"; // O remetente sempre sera o email que foi utilizado para obter o REFRESH_TOKEN |
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 axios from "axios"; | |
import { CLIENT_ID, CLIENT_SECRET, REFRESH_TOKEN } from "./credentials"; | |
export interface IEmail { | |
lead: string; | |
from: string, | |
to: string, | |
subject: string, | |
body: string, | |
cc?: 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 React, { useState } from "react"; | |
import Autocomplete, { | |
AutocompleteRenderInputParams, | |
} from "@mui/material/Autocomplete"; | |
import { Checkbox, IconButton, Grid, Typography, Box } from "@mui/material"; | |
import TextField from "@mui/material/TextField"; | |
import { useTheme } from "@material-ui/core"; | |
import { ArrowDownSelectIcon } from "@components/Icons"; |
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
version: '3' | |
services: | |
db: | |
restart: always | |
image: mysql:5.7 | |
command: --default-authentication-plugin=mysql_native_password | |
volumes: | |
- db_data:/var/lib/mysql | |
environment: |
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, { useState } from "react"; | |
import { Checkbox, FormControl, FormControlLabel, Grid, InputAdornment, InputLabel, TextField, Typography } from "@mui/material"; | |
import { CheckBoxChecked, CheckBoxUnChecked } from "@components/Icons"; | |
interface TextFieldCheckBoxProps { | |
id?: string; | |
name: string; | |
label?: string; | |
value: string; | |
options: 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 { useState, useMemo, useCallback, useEffect } from "react"; | |
import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown"; | |
import { | |
FormControl, | |
Select, | |
MenuItem, | |
Checkbox, | |
Typography, | |
ListItemText, | |
} from "@mui/material"; |
NewerOlder