Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: admin setup and users page #6

Merged
merged 1 commit into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
11 changes: 0 additions & 11 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,16 @@
# Solve Documentação (texto)


## Issues

- Resolve (# numero )

## Descrição

Descrição

## Tipos de mudança

- [ ] Bugfix
- [ ] Melhoria de funcionalidade
- [ ] Nova funcionalidade
- [] Documentação

## Checklist

- [] Lint e testes passaram localmente com minhas mudanças
- [] Eu adicionei testes que provam que minha correção é eficaz ou que minha feature funciona
- [] Adicionei informações necessárias na documentação (se precisar)

## Observações adicionais

Nenhuma constatação
5 changes: 0 additions & 5 deletions .github/workflows/metrics.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
name: Export de métricas

on:
pull_request:
branches:
- main
- develop
types: [ closed ]

jobs:
release:
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'NOT RELEASE') == false
Expand All @@ -31,13 +29,10 @@ jobs:
echo DEVELOP=${{ contains(github.event.pull_request.labels.*.name, 'DEVELOP') }} >> ./sonar_scripts/.env
echo REPO=${{ github.event.repository.name }} >> ./sonar_scripts/.env
echo REPO_DOC=${{ secrets.LIVRO_LIVRE_REPO_DOC }} >> ./sonar_scripts/.env

- name: Criar diretório
run: mkdir -p analytics-raw-data

- name: Coletar métricas no SonarCloud
run: python ./sonar_scripts/parser.py

- name: Envia métricas para repo de Docs
run: |
git config --global user.email "${{secrets.LIVRO_LIVRE_USER_EMAIL}}"
Expand Down
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
Loading