Skip to content

Commit 7ef9ee0

Browse files
authored
Initial commit
0 parents  commit 7ef9ee0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+12629
-0
lines changed

.env.example

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
AUTH_SECRET="secretkey"
2+
AUTH_URL=http://localhost:3000
3+
BASE_URL=http://localhost:3000
4+
5+
AUTH_DISCORD_ID=
6+
AUTH_DISCORD_SECRET=

.github/workflows/auto-labels.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: ⚙️ Auto Label Setup
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
reset-and-create-labels:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
issues: write
11+
steps:
12+
- uses: actions/github-script@v7
13+
with:
14+
script: |
15+
const existingLabels = await github.rest.issues.listLabelsForRepo({
16+
owner: context.repo.owner,
17+
repo: context.repo.repo
18+
});
19+
20+
for (const label of existingLabels.data) {
21+
try {
22+
await github.rest.issues.deleteLabel({
23+
owner: context.repo.owner,
24+
repo: context.repo.repo,
25+
name: label.name
26+
});
27+
console.log(`Label '${label.name}' removida com sucesso.`);
28+
} catch (error) {
29+
console.error(`Erro ao remover a label '${label.name}':`, error);
30+
}
31+
}
32+
33+
const labels = [
34+
{ "name": "bug", "color": "d73a4a", "description": "Referente a um problema a ser consertado" },
35+
{ "name": "configuração", "color": "0E8A16", "description": "Referente a ajustes nos ambiente de código e suas ferramentas" },
36+
{ "name": "documentação", "color": "0075ca", "description": "Referente à criação ou modificação da documentação" },
37+
{ "name": "funcionalidade", "color": "DC28A0", "description": "Referente ao desenvolvimento de uma nova funcionalidade" },
38+
{ "name": "hotfix", "color": "B60205", "description": "Referente a uma alteração que precisa ser resolvida em produção urgentemente" },
39+
{ "name": "implantação", "color": "5319E7", "description": "Referente à implantação do código em um servidor remoto" },
40+
{ "name": "melhoria", "color": "AFDB9B", "description": "Referente a melhorias realizadas em funcionalidades da aplicação" },
41+
{ "name": "teste", "color": "0E8A16", "description": "Referente à implementação de testes" }
42+
];
43+
44+
for (const label of labels) {
45+
try {
46+
await github.rest.issues.createLabel({
47+
owner: context.repo.owner,
48+
repo: context.repo.repo,
49+
name: label.name,
50+
description: label.description || '',
51+
color: label.color
52+
});
53+
console.log(`Label '${label.name}' criada com sucesso.`);
54+
} catch (error) {
55+
if (error.status === 422) {
56+
console.log(`Label '${label.name}' já existe. Pulando.`);
57+
} else {
58+
console.error(`Erro ao criar a label '${label.name}':`, error);
59+
throw error; // Para a execução caso um erro inesperado ocorra
60+
}
61+
}
62+
}

.gitignore

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.*
7+
.yarn/*
8+
!.yarn/patches
9+
!.yarn/plugins
10+
!.yarn/releases
11+
!.yarn/versions
12+
13+
# testing
14+
/coverage
15+
16+
# next.js
17+
/.next/
18+
/out/
19+
20+
# production
21+
/build
22+
23+
# misc
24+
.DS_Store
25+
*.pem
26+
27+
# debug
28+
npm-debug.log*
29+
yarn-debug.log*
30+
yarn-error.log*
31+
.pnpm-debug.log*
32+
33+
# env files (can opt-in for committing if needed)
34+
.env*
35+
!.env.example
36+
37+
# vercel
38+
.vercel
39+
40+
# typescript
41+
*.tsbuildinfo
42+
next-env.d.ts

.husky/pre-commit

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
echo "Checking for linting errors..."
2+
3+
npm run lint-staged ||
4+
(echo "Linting errors found. Please fix them before committing." && exit 1)
5+
6+
echo "Done"

.prettierrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"singleQuote": false,
3+
"semi": true,
4+
"trailingComma": "none",
5+
"tabWidth": 4,
6+
"endOfLine": "crlf",
7+
"printWidth": 80
8+
}

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"]
3+
}

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"editor.formatOnSave": true,
3+
"editor.defaultFormatter": "esbenp.prettier-vscode"
4+
}

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
2+
3+
## Getting Started
4+
5+
First, run the development server:
6+
7+
```bash
8+
npm run dev
9+
# or
10+
yarn dev
11+
# or
12+
pnpm dev
13+
# or
14+
bun dev
15+
```
16+
17+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
18+
19+
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
20+
21+
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
22+
23+
## Learn More
24+
25+
To learn more about Next.js, take a look at the following resources:
26+
27+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
28+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
29+
30+
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
31+
32+
## Deploy on Vercel
33+
34+
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
35+
36+
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
37+
"# ecommerce"
38+
"# ecommerce"

__tests__/primary-button.test.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { render, screen } from "@testing-library/react";
2+
import PrimaryButton from "@/components/primary-button";
3+
4+
describe("PrimaryButton", () => {
5+
it("renders children as button content", () => {
6+
render(<PrimaryButton onClick={() => {}}>Click Me</PrimaryButton>);
7+
const button = screen.getByRole("button");
8+
expect(button).toHaveTextContent("Click Me");
9+
});
10+
});

components.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "new-york",
4+
"rsc": true,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "tailwind.config.ts",
8+
"css": "src/app/globals.css",
9+
"baseColor": "zinc",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"aliases": {
14+
"components": "@/components",
15+
"utils": "@/lib/utils",
16+
"ui": "@/components/ui",
17+
"lib": "@/lib",
18+
"hooks": "@/hooks"
19+
},
20+
"iconLibrary": "lucide"
21+
}

0 commit comments

Comments
 (0)