Título
Inscreva-se nos cursos
Descrição
O aluno acessa o sistema e visualiza os cursos atualmente disponíveis para ele se matricular. Em seguida, ele seleciona os cursos e se inscreve neles.
ator principal
export function generateLightColor(): string { | |
// Generate random RGB values for light colors | |
const red = Math.floor(150 + Math.random() * 105); // Range: 150-255 | |
const green = Math.floor(150 + Math.random() * 105); // Range: 150-255 | |
const blue = Math.floor(150 + Math.random() * 105); // Range: 150-255 | |
// Convert RGB to hex | |
return `#${((1 << 24) + (red << 16) + (green << 8) + blue).toString(16).slice(1)}`; | |
} |
const REGEX_HELPER = { | |
ALL_NON_DOT_DIGITS: /[^0-9.-]+/g, | |
ALL_NON_NUMBERS: /\D+/g, | |
ANY_EACH_UPPERCASE_LETTER: /([A-Z])/g, | |
NUMBER_WITH_PX_SUFFIX: /(-?\d+)px/, | |
ONLY_ALLOWED_CHARACTERS: /^[A-Za-z0-9/;&\-_ ]+$/, | |
ONLY_ALPHANUMERIC_AND_SPECIAL_CHARS: /^[A-Za-z0-9/\-_@!#$% ]+$/, | |
ONLY_POSITIVE_DECIMAL: /^\d+(\.\d{0,2})?$/, | |
ONLY_POSITIVE_INTEGER_NUMBERS: /^\d+$/, | |
ONLY_POSITIVE_INTEGER_NUMBERS_WITHOUT_LEADING_ZERO: /^[1-9]\d*$/, |
` | |
15 MAI Picpay *Enel Distribu - Parcela 4/5 R$ 26,46 | |
21 MAI Brisanet*Internet R$ 94,99 | |
22 MAI Pagamento em 22 MAI -R$ 1.160,77 | |
22 MAI Saldo restante da fatura anterior R$ 0,00 | |
22 MAI Saldo restante da fatura anterior R$ 0,00 | |
24 MAI Mercadinho e Hortifrut R$ 4,50 | |
24 MAI Angela Maria Morais S R$ 14,36 | |
24 MAI Mercantil Mundinho R$ 9,61 | |
24 MAI Google Adobe Inc R$ 7,99 |
interface TableRow { | |
id: number, | |
fa: { | |
qty: number | |
}, | |
fd: { | |
qty: number | |
}, | |
ka: { | |
qty: number |
const a = [1,2,3,4,5,6,7,8] | |
const newarr=[] | |
const cols = 4 | |
const interactions = a.length/cols | |
let index = 0 | |
console.log(interactions) | |
for (let i = 0; i < interactions;i++) { |
[alias] | |
s = !git status -s | |
c = !git add . && commit -m | |
l = !git log --pretty=format:'%C(blue)%h%C(red)%d %C(white)%s - %C(cyan)%cn, %C(green)%cr' |
const a = [1,2,3] | |
const b = [1,4,5] | |
// using find instead includes | |
const inter = a.filter(x => b.find(x1 => x1 == x)); | |
const diff = a.filter(x => !b.find(x1 => x1 == x)); | |
const simtricDiff = a.filter(x => !b.find(x1 => x1 == x)).concat(b.filter(x => !a.find(x1 => x1 == x))); | |
inter // [ 1 ] |
import { Button, Container } from "@chakra-ui/react"; | |
import { | |
QueryClient, | |
QueryClientProvider, | |
useInfiniteQuery, | |
} from "@tanstack/react-query"; | |
const client = new QueryClient(); | |
const fetchProjects = async (skip: number): Promise<Response> => { |
Título
Inscreva-se nos cursos
Descrição
O aluno acessa o sistema e visualiza os cursos atualmente disponíveis para ele se matricular. Em seguida, ele seleciona os cursos e se inscreve neles.
ator principal
import { fireEvent, render, screen } from "@testing-library/react"; | |
import axios from "axios"; | |
import { getUser } from "./api"; | |
import App from "./App"; | |
jest.mock("axios"); | |
const api = axios as jest.Mocked<typeof axios>; | |
// app.test.tsx | |
test("renders learn react link", async () => { |