-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintcache
1 lines (1 loc) · 16.3 KB
/
.eslintcache
1
[{"/home/alexandre/Estagio/financeiro-app/src/index.tsx":"1","/home/alexandre/Estagio/financeiro-app/src/graphql/queries.ts":"2","/home/alexandre/Estagio/financeiro-app/src/pages/SignUp.tsx":"3","/home/alexandre/Estagio/financeiro-app/src/components/Data.tsx":"4","/home/alexandre/Estagio/financeiro-app/src/components/RecoverPasswordStepOne.tsx":"5","/home/alexandre/Estagio/financeiro-app/src/pages/Resumo.tsx":"6","/home/alexandre/Estagio/financeiro-app/src/pages/ConfirmSignUp.tsx":"7","/home/alexandre/Estagio/financeiro-app/src/layouts/MainLayout.tsx":"8","/home/alexandre/Estagio/financeiro-app/src/components/EditarDialog.tsx":"9","/home/alexandre/Estagio/financeiro-app/src/components/Drawer.tsx":"10","/home/alexandre/Estagio/financeiro-app/src/components/Footer.tsx":"11","/home/alexandre/Estagio/financeiro-app/src/components/RegistrarDialog.tsx":"12","/home/alexandre/Estagio/financeiro-app/src/components/RemoveDialog.tsx":"13","/home/alexandre/Estagio/financeiro-app/src/contexts/AppContext.tsx":"14","/home/alexandre/Estagio/financeiro-app/src/layouts/AuthLayout.tsx":"15","/home/alexandre/Estagio/financeiro-app/src/pages/Grafico.tsx":"16","/home/alexandre/Estagio/financeiro-app/src/pages/Login.tsx":"17","/home/alexandre/Estagio/financeiro-app/src/pages/Relatorio.tsx":"18","/home/alexandre/Estagio/financeiro-app/src/router/Router.tsx":"19","/home/alexandre/Estagio/financeiro-app/src/App.tsx":"20","/home/alexandre/Estagio/financeiro-app/src/pages/RecoverPassword.tsx":"21","/home/alexandre/Estagio/financeiro-app/src/graphql/subscriptions.ts":"22","/home/alexandre/Estagio/financeiro-app/src/graphql/mutations.ts":"23","/home/alexandre/Estagio/financeiro-app/src/components/NumberFormatCustom.tsx":"24","/home/alexandre/Estagio/financeiro-app/src/pages/Lista.tsx":"25","/home/alexandre/Estagio/financeiro-app/src/components/Header.tsx":"26","/home/alexandre/Estagio/financeiro-app/src/aws-exports.js":"27","/home/alexandre/Estagio/financeiro-app/src/components/RecoverPasswordStepTwo.tsx":"28","/home/alexandre/Estagio/financeiro-app/src/reportWebVitals.ts":"29"},{"size":557,"mtime":1607949766090,"results":"30","hashOfConfig":"31"},{"size":717,"mtime":1607642356548,"results":"32","hashOfConfig":"31"},{"size":6062,"mtime":1607956797920,"results":"33","hashOfConfig":"31"},{"size":4807,"mtime":1608038255667,"results":"34","hashOfConfig":"31"},{"size":3270,"mtime":1607956313360,"results":"35","hashOfConfig":"31"},{"size":3503,"mtime":1607968402630,"results":"36","hashOfConfig":"31"},{"size":4671,"mtime":1607956625530,"results":"37","hashOfConfig":"31"},{"size":2806,"mtime":1613498124750,"results":"38","hashOfConfig":"31"},{"size":5405,"mtime":1608564418050,"results":"39","hashOfConfig":"31"},{"size":3179,"mtime":1607949899610,"results":"40","hashOfConfig":"31"},{"size":1826,"mtime":1607949738030,"results":"41","hashOfConfig":"31"},{"size":4748,"mtime":1608564274110,"results":"42","hashOfConfig":"31"},{"size":1621,"mtime":1607955265510,"results":"43","hashOfConfig":"31"},{"size":6773,"mtime":1607967855670,"results":"44","hashOfConfig":"31"},{"size":468,"mtime":1607949747760,"results":"45","hashOfConfig":"31"},{"size":8984,"mtime":1608038890467,"results":"46","hashOfConfig":"31"},{"size":5034,"mtime":1607957344730,"results":"47","hashOfConfig":"31"},{"size":7346,"mtime":1608038411977,"results":"48","hashOfConfig":"31"},{"size":2757,"mtime":1608040409587,"results":"49","hashOfConfig":"31"},{"size":384,"mtime":1607949764140,"results":"50","hashOfConfig":"31"},{"size":3878,"mtime":1607695090086,"results":"51","hashOfConfig":"31"},{"size":862,"mtime":1607642356548,"results":"52","hashOfConfig":"31"},{"size":1096,"mtime":1607642356548,"results":"53","hashOfConfig":"31"},{"size":732,"mtime":1607694948036,"results":"54","hashOfConfig":"31"},{"size":6734,"mtime":1608046286187,"results":"55","hashOfConfig":"31"},{"size":1970,"mtime":1608037187927,"results":"56","hashOfConfig":"31"},{"size":956,"mtime":1613496398190,"results":"57","hashOfConfig":"31"},{"size":3292,"mtime":1607956381900,"results":"58","hashOfConfig":"31"},{"size":416,"mtime":1607642356548,"results":"59","hashOfConfig":"31"},{"filePath":"60","messages":"61","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"62"},"1vow3rf",{"filePath":"63","messages":"64","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"65"},{"filePath":"66","messages":"67","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"68","usedDeprecatedRules":"62"},{"filePath":"69","messages":"70","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"71"},{"filePath":"72","messages":"73","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"74"},{"filePath":"75","messages":"76","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"62"},{"filePath":"77","messages":"78","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"62"},{"filePath":"79","messages":"80","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"81","messages":"82","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"83","messages":"84","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"85","messages":"86","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"87"},{"filePath":"88","messages":"89","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"90","messages":"91","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"74"},{"filePath":"92","messages":"93","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"94","messages":"95","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"71"},{"filePath":"96","messages":"97","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"62"},{"filePath":"98","messages":"99","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"100"},{"filePath":"101","messages":"102","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"103","messages":"104","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"105","messages":"106","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"107","messages":"108","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"100"},{"filePath":"109","messages":"110","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"100"},{"filePath":"111","messages":"112","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"113"},{"filePath":"114","messages":"115","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"116","messages":"117","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"100"},{"filePath":"118","messages":"119","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"113"},{"filePath":"120","messages":"121","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"122","messages":"123","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"124","messages":"125","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/home/alexandre/Estagio/financeiro-app/src/index.tsx",[],[],"/home/alexandre/Estagio/financeiro-app/src/graphql/queries.ts",[],[],"/home/alexandre/Estagio/financeiro-app/src/pages/SignUp.tsx",["126"],"import { FC, useContext, useState } from 'react'\nimport Avatar from '@material-ui/core/Avatar'\nimport Button from '@material-ui/core/Button'\nimport CssBaseline from '@material-ui/core/CssBaseline'\nimport TextField from '@material-ui/core/TextField'\nimport { Link, useHistory } from 'react-router-dom'\nimport Grid from '@material-ui/core/Grid'\nimport AccountCircleIcon from '@material-ui/icons/AccountCircle'\nimport Typography from '@material-ui/core/Typography'\nimport { makeStyles } from '@material-ui/core/styles'\nimport Container from '@material-ui/core/Container'\nimport { Auth } from 'aws-amplify'\nimport { useForm } from 'react-hook-form'\nimport { AppContext } from '../contexts/AppContext'\nimport { colors } from '@material-ui/core'\nimport InputMask from 'react-input-mask'\nimport CircularProgress from '@material-ui/core/CircularProgress'\n\nconst useStyles = makeStyles((theme) => ({\n paper: {\n marginTop: theme.spacing(4),\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center'\n },\n avatar: {\n margin: theme.spacing(1),\n backgroundColor: theme.palette.primary.main\n },\n form: {\n width: '100%', // Fix IE 11 issue.\n marginTop: theme.spacing(1)\n },\n submit: {\n margin: theme.spacing(3, 0, 2)\n }\n}))\n\ntype FormData = {\n telefone: string\n password: string\n firstName: string\n lastName: string\n email: string\n remember: boolean\n}\n\nconst SignUp: FC = () => {\n const [loading, setLoading] = useState(false)\n const [error, setError] = useState(null)\n const context = useContext(AppContext)\n\n const { register, handleSubmit } = useForm<FormData>()\n\n const history = useHistory()\n\n const onSubmit = (data: FormData) => {\n const { telefone, password, firstName, lastName, email } = data\n const phone = '+55' + telefone.replace(/[^\\d]/g, '')\n const attributes = {\n email: email,\n name: firstName + ' ' + lastName,\n phone_number: phone\n }\n setLoading(true)\n\n Auth.signUp({\n username: phone,\n password,\n attributes\n })\n .then((user) => {\n context.setUser({ username: user.user.getUsername(), password })\n\n history.push('/confirm-signup')\n })\n .catch((err) => {\n setError(err.message)\n\n console.log(err)\n })\n .finally(() => {\n setLoading(false)\n })\n }\n const classes = useStyles()\n\n return (\n <Container component=\"main\" maxWidth=\"xs\">\n <CssBaseline />\n <div className={classes.paper}>\n <Avatar className={classes.avatar}>\n <AccountCircleIcon />\n </Avatar>\n <Typography component=\"h1\" variant=\"h5\">\n Cadastrar\n </Typography>\n <form\n onSubmit={handleSubmit(onSubmit)}\n className={classes.form}\n noValidate>\n <Grid container spacing={2}>\n <Grid item xs={12} sm={6}>\n <TextField\n autoComplete=\"fname\"\n name=\"firstName\"\n variant=\"outlined\"\n required\n fullWidth\n id=\"firstName\"\n label=\"Primeiro Nome\"\n autoFocus\n inputRef={register({\n required: true\n })}\n />\n </Grid>\n <Grid item xs={12} sm={6}>\n <TextField\n variant=\"outlined\"\n required\n fullWidth\n id=\"lastName\"\n label=\"Último Nome\"\n name=\"lastName\"\n autoComplete=\"lname\"\n inputRef={register({\n required: true\n })}\n />\n </Grid>\n <Grid item xs={12}>\n <TextField\n variant=\"outlined\"\n required\n fullWidth\n id=\"email\"\n label=\"Email\"\n name=\"email\"\n autoComplete=\"email\"\n inputRef={register({\n required: true\n })}\n />\n </Grid>\n <Grid item xs={12}>\n <InputMask\n mask=\"(99) 99999-9999\"\n maskPlaceholder={null}\n disabled={false}>\n {() => (\n <TextField\n variant=\"outlined\"\n margin=\"normal\"\n required\n fullWidth\n id=\"telefone\"\n label=\"Número de Telefone\"\n name=\"telefone\"\n autoComplete=\"telefone\"\n inputProps={{\n inputMode: 'numeric'\n }}\n inputRef={register({\n required: true\n })}\n />\n )}\n </InputMask>\n </Grid>\n <Grid item xs={12}>\n <TextField\n variant=\"outlined\"\n required\n fullWidth\n name=\"password\"\n label=\"Senha\"\n type=\"password\"\n id=\"password\"\n autoComplete=\"current-password\"\n inputRef={register({\n required: true\n })}\n />\n </Grid>\n </Grid>\n <Button\n type=\"submit\"\n fullWidth\n variant=\"contained\"\n color=\"primary\"\n className={classes.submit}\n disabled={loading}\n startIcon={loading && <CircularProgress size={14} />}>\n Cadastrar\n </Button>\n </form>\n <Grid container>\n <Grid item container justify=\"center\">\n <Typography\n component={Link}\n to=\"/login\"\n variant=\"body2\"\n style={{ textDecoration: 'none', color: colors.indigo[400] }}>\n Retornar para o login\n </Typography>\n </Grid>\n </Grid>\n </div>\n </Container>\n )\n}\n\nexport default SignUp\n","/home/alexandre/Estagio/financeiro-app/src/components/Data.tsx",[],[],"/home/alexandre/Estagio/financeiro-app/src/components/RecoverPasswordStepOne.tsx",[],[],"/home/alexandre/Estagio/financeiro-app/src/pages/Resumo.tsx",[],"/home/alexandre/Estagio/financeiro-app/src/pages/ConfirmSignUp.tsx",[],"/home/alexandre/Estagio/financeiro-app/src/layouts/MainLayout.tsx",[],"/home/alexandre/Estagio/financeiro-app/src/components/EditarDialog.tsx",[],"/home/alexandre/Estagio/financeiro-app/src/components/Drawer.tsx",[],"/home/alexandre/Estagio/financeiro-app/src/components/Footer.tsx",[],[],"/home/alexandre/Estagio/financeiro-app/src/components/RegistrarDialog.tsx",[],"/home/alexandre/Estagio/financeiro-app/src/components/RemoveDialog.tsx",[],"/home/alexandre/Estagio/financeiro-app/src/contexts/AppContext.tsx",[],"/home/alexandre/Estagio/financeiro-app/src/layouts/AuthLayout.tsx",[],"/home/alexandre/Estagio/financeiro-app/src/pages/Grafico.tsx",[],"/home/alexandre/Estagio/financeiro-app/src/pages/Login.tsx",[],[],"/home/alexandre/Estagio/financeiro-app/src/pages/Relatorio.tsx",["127"],"/home/alexandre/Estagio/financeiro-app/src/router/Router.tsx",[],"/home/alexandre/Estagio/financeiro-app/src/App.tsx",[],"/home/alexandre/Estagio/financeiro-app/src/pages/RecoverPassword.tsx",[],"/home/alexandre/Estagio/financeiro-app/src/graphql/subscriptions.ts",[],"/home/alexandre/Estagio/financeiro-app/src/graphql/mutations.ts",[],[],"/home/alexandre/Estagio/financeiro-app/src/components/NumberFormatCustom.tsx",[],"/home/alexandre/Estagio/financeiro-app/src/pages/Lista.tsx",[],"/home/alexandre/Estagio/financeiro-app/src/components/Header.tsx",[],"/home/alexandre/Estagio/financeiro-app/src/aws-exports.js",[],"/home/alexandre/Estagio/financeiro-app/src/components/RecoverPasswordStepTwo.tsx",[],"/home/alexandre/Estagio/financeiro-app/src/reportWebVitals.ts",[],{"ruleId":"128","severity":1,"message":"129","line":50,"column":10,"nodeType":"130","messageId":"131","endLine":50,"endColumn":15},{"ruleId":"128","severity":1,"message":"132","line":10,"column":8,"nodeType":"130","messageId":"131","endLine":10,"endColumn":18},"no-unused-vars","'error' is assigned a value but never used.","Identifier","unusedVar","'CreateIcon' is defined but never used."]