Skip to content

Commit

Permalink
Merge pull request #5 from fga-eps-mds/gerenciar_usuarios
Browse files Browse the repository at this point in the history
Gerenciar usuarios
  • Loading branch information
Matheusafonsouza authored Dec 8, 2024
2 parents 488c53a + ff9e6f5 commit 8f98925
Show file tree
Hide file tree
Showing 53 changed files with 8,071 additions and 1,449 deletions.
9 changes: 8 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
"presets": [
["@babel/preset-env", { "targets": { "esmodules": true } }], // It's the name of the lib you installed
["@babel/preset-react", { "runtime": "automatic" }], // It's the name of the lib you installed
"@babel/preset-typescript" // It's the name of the lib you installed
"@babel/preset-typescript", // It's the name of the lib you installed
[
"babel-preset-vite",
{
"env": true,
"glob": false
}
]
]
}
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VITE_API_BASE_URL=http://localhost:3000
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
dist/
10 changes: 10 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

{
"trailingComma": "all",
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"printWidth": 120,
"bracketSpacing": true,
"endOfLine": "lf"
}
3 changes: 3 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
</head>
<body>
<div id="root"></div>
Expand Down
3 changes: 3 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@ export default {
],
],
testMatch: ['<rootDir>/test/**/*.(test|spec).ts?(x)'],
transform: {
"^.+\\.[t|j]sx?$": "babel-jest",
},
};
12 changes: 12 additions & 0 deletions jest.setup.ts
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
import "@testing-library/jest-dom";

if (
typeof globalThis.TextEncoder === "undefined" ||
typeof globalThis.TextDecoder === "undefined"
) {
const utils = require("util");
globalThis.TextEncoder = utils.TextEncoder;
globalThis.TextDecoder = utils.TextDecoder;
globalThis.Uint8Array = Uint8Array;
}

global.structuredClone = (val) => JSON.parse(JSON.stringify(val))
Loading

0 comments on commit 8f98925

Please sign in to comment.