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'; | |
interface Props { | |
children?: React.ReactNode; | |
} | |
const Component: React.FC<Props> = ({ children, ...props }) => { | |
return ( | |
<>{children}</> | |
) |
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
Show hidden characters
"React Componet default ArrowFunction" : { | |
"prefix": "rfx", | |
"body" : [ | |
"import React from 'react';\n", | |
"interface Props {", | |
"\tchildren?: React.ReactNode;", | |
"}\n", | |
"const Component: React.FC<Props> = ({ children, ...props }) => {", | |
"\treturn (", | |
"\t\t<>{children}</>", |
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 { Box, Button, Drawer, DrawerProps } from "@material-ui/core"; | |
import { createStyles, makeStyles, Theme } from "@material-ui/core/styles"; | |
type Anchor = "top" | "left" | "bottom" | "right"; | |
interface ButtomDrawer extends DrawerProps { | |
label: string; | |
anchortype: Anchor; | |
} |
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
<main> | |
<!-- sign-up section --> | |
<section class="sign-up"> | |
<!-- the form itself --> | |
<form class="sign-up__form" action="" method="post" novalidate> | |
<div class="form__input"> | |
<input class="" type="text" name="nome" id="nome" placeholder="Nome" value="" required> | |
<span class="warning-icon">!</span> | |
<p class="warning">O campo não pode estar vazio</p> | |
</div> |
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
<main> | |
<!-- sign-up section --> | |
<section class="sign-up"> | |
<!-- the form itself --> | |
<form class="sign-up__form" action="" method="post" novalidate> | |
<div class="form__input"> | |
<input class="" type="text" name="nome" id="nome" placeholder="Nome" value="" required> | |
<span class="warning-icon">!</span> | |
<p class="warning">O campo não pode estar vazio</p> | |
</div> |
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 sendData = async () => { | |
const url = 'https://pontual.cvcrm.com.br/api/cvio/lead'; | |
var request = new Request(url, { | |
method: "POST", | |
header: [ | |
{ | |
key: "email", | |
value: "melqui@rtimoveis.com", | |
type: "text" |
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
create table cliente ( | |
login SERIAL PRIMARY KEY, | |
nome_cli varchar (40) not null, | |
sobrenome_cli varchar (40) not null, | |
log_end_cli varchar (80) not null, | |
cid_end_cli varchar (40) not null, | |
uf_end_cli varchar (10) not null, | |
tel_cli varchar (30) not null, | |
email_cli varchar (40) not null, | |
senha_cli varchar (40) not 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
import { | |
Grid, | |
Paper, | |
Avatar, | |
TextField, | |
Button, | |
Typography, | |
Link, | |
Box, | |
} from "@mui/material"; |
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
CREATE DATABASE escola | |
WITH | |
OWNER = postgres | |
ENCODING = 'UTF8' | |
CONNECTION LIMIT = -1 | |
IS_TEMPLATE = False; | |
CREATE SCHEMA escola AUTHORIZATION postgres; | |
CREATE SCHEMA IF NOT EXISTS escola; |
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
create table professor ( | |
id_prof int generated always as identity, | |
nome_prof varchar (20) not null, | |
titulacao varchar (40) not null, | |
constraint tipo_titulo check (titulacao in ('assistente','associado','titular')) | |
); | |
create table prof_audit ( | |
id_prof_audit int generated always as identity, | |
id_prof int not null, |