Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
f0bb0cb
chore: add logo
srdmatheus Feb 8, 2024
6f8c78b
chore: add color & fonts variables
srdmatheus Feb 8, 2024
37ec8ea
feat: add initial folder structure
srdmatheus Feb 8, 2024
5759209
feat: add initial folder structure
srdmatheus Feb 8, 2024
037793d
Merge branch 'chore/folder-structure' of https://github.com/AppMorada…
srdmatheus Feb 8, 2024
1445208
Merge pull request #2 from AppMorada/chore/folder-structure
devjoselima Feb 8, 2024
b30137a
feat: Criação dos inputs, cadastro de morador/condomínio.
mfjack Feb 16, 2024
5ef8749
feat: criação do componente Input
mfjack Feb 20, 2024
32d9fe0
chore: add react-hook-form
mfjack Feb 20, 2024
54fc246
feat: controle dos input registro de condominio com react-hook-form
mfjack Feb 20, 2024
edaad3b
fix: Os inputs estavam retornando vazio
mfjack Feb 20, 2024
8c8f68e
chore: add zod
mfjack Feb 21, 2024
d3fd46e
feat: Foi add validação dos inputs CondominiumRegisterPage com zod
mfjack Feb 21, 2024
d128e8c
chore: add react-icons
mfjack Feb 22, 2024
186bd33
feat: add botão que mostra/esconde a senha digitada no input
mfjack Feb 22, 2024
31519a0
feat:add controle dos inputs com react-hooks-form ResidentRegisterPage
cairocarrilho Feb 22, 2024
2174ccf
feat: finalização das telas CondominiumRegisterPage, ResidentRegister…
mfjack Feb 23, 2024
604ab90
feat: criação do componente Button
mfjack Feb 29, 2024
049e424
fix: componente Input
mfjack Feb 29, 2024
d2ae90a
feat: criação do componente Logo
mfjack Feb 29, 2024
6d3c0be
feat: criação do componente PasswordInput
mfjack Feb 29, 2024
a8791de
feat: criação do componente linkLogin
mfjack Feb 29, 2024
66234ed
feat: atualização das páginas condominio e morador com components criado
mfjack Feb 29, 2024
4f60280
feat: remoção dos default nos components
mfjack Feb 29, 2024
c7e5515
feat: tipagem diretamento com zod
mfjack Feb 29, 2024
d8ea6fa
style: style components linkLogin e Input
mfjack Feb 29, 2024
557e7d3
feat: mudança da forma de tipagem dos componentes
mfjack Feb 29, 2024
6cea5f5
feat: melhorando os components add ref
mfjack Feb 29, 2024
a9acd94
style: add font nevermind and style components
mfjack Feb 29, 2024
fe64472
feat: add Heroicons
mfjack Feb 29, 2024
684114f
style: modificações de estilos nos componentes input, label, button
mfjack Mar 1, 2024
7404f29
feat: criação de um componente modal
mfjack Mar 1, 2024
411c97b
feat: add modal confirmaçaõ de registro de condo
mfjack Mar 1, 2024
76e595d
feat: add modal registro para novo usuario
mfjack Mar 1, 2024
0845c1c
chore: add tailwind merge
mfjack Mar 1, 2024
78ab92c
chore: add font Never Mind no projeto
mfjack Mar 1, 2024
11078f4
feat: add tw-merge nos componentes button e logo
mfjack Mar 1, 2024
b699068
fix: corrigindo o tipo de fonte do projeto
mfjack Mar 1, 2024
3a2e9e7
style: add responsividade do form
mfjack Mar 1, 2024
73471e0
feat: add input de confirmar senha nas páginas de registro
mfjack Mar 4, 2024
38c4f14
fix: confirm password
mfjack Mar 4, 2024
8c89926
feat: add button voltar nas páginas de registro
mfjack Mar 4, 2024
2f35384
feat: add rota loginPage
mfjack Mar 4, 2024
88627ac
feat: finalizado tela de cadastro condominio/morador
mfjack Mar 4, 2024
c03ddcf
fix: corrects the word "confirmar"
srdmatheus Mar 4, 2024
d1bd8da
Merge pull request #3 from AppMorada/tela-de-cadastro
srdmatheus Mar 5, 2024
079c784
chore: add pull request template
NicolasCBV Mar 7, 2024
70acb27
chore: add issues template
NicolasCBV Mar 7, 2024
1d76241
Merge pull request #4 from AppMorada/chore/pull-request-templates
srdmatheus Mar 7, 2024
7642d1f
chore: config `husky` & `lint-staged`
srdmatheus Mar 4, 2024
cce42d5
ci(dependencies): add commitizen, commitlint and fix some bugs on lin…
NicolasCBV Mar 7, 2024
d542498
Merge pull request #5 from AppMorada/chore/issues-templates
srdmatheus Mar 7, 2024
b3d4fe4
chore: husky and lint staged config
NicolasCBV Mar 7, 2024
fd49042
chore: add framer motion
srdmatheus Mar 20, 2024
2ae2c7e
chore: add cva for tailwind
srdmatheus Mar 21, 2024
5021707
feat: add dropdown menu component
srdmatheus Mar 21, 2024
bc3b8eb
refactor: add cva to button component
srdmatheus Mar 21, 2024
fd7a494
feat: add icon component
srdmatheus Mar 21, 2024
741c31b
feat: add header component
srdmatheus Mar 21, 2024
a2c9168
feat: add hero to homepage
srdmatheus Mar 21, 2024
94fab89
refactor: add types to navbar section
srdmatheus Mar 21, 2024
9460f02
ci(docker): add docker images
NicolasCBV Mar 29, 2024
82e3b88
fix(docker): adicionar arquivo de build do gcp
NicolasCBV Mar 29, 2024
56af3d4
Merge pull request #8 from AppMorada/feature/add-docker
srdmatheus Mar 29, 2024
0dc2c97
feat(workflows): adicionar workflow do docker
NicolasCBV Mar 29, 2024
7079859
Merge pull request #7 from AppMorada/feat/home
mfjack Mar 30, 2024
d0b87cb
fix(workflows): fix dockerfile reference
NicolasCBV Mar 30, 2024
7b8dae5
fix(builds): fix multiple lockfiles
NicolasCBV Mar 30, 2024
428f3d6
chore(deps-dev): bump eslint-plugin-react from 7.33.2 to 7.34.1
dependabot[bot] Mar 30, 2024
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
35 changes: 35 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# dependencies
/node_modules
/.pnp
.pnpm-store
.pnp.js
.yarn/install-state.gz

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Bug report
about: Informe o bug que você encontrou
title: "[BUG] <título do bug>"
labels: bug
assignees: srdmatheus, mfjack

---

**Descreva o bug**
Descreva de maneira precisa o que é este bug

**Como reproduzir**
Passos para detectar o bug:
1. Vá para '...'
2. Clique em '....'
3. Veja o erro

**Comportamento esperado**
Uma descrição clara a concisa sobre o que era esperado que acontecesse.

**Prints**
Se aplicável, adicione prints para ajudar no processo.

**Informações do hardware:**
- OS: [Windows, MacOS, etc]
- Navegador [chrome, safari, etc]
- Versão [21, 22, etc]

**Contexto adicional**
Adicione qualquer contexto adicional do problema aqui, se necessário.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/new_feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Nova funcionalidade
about: Sugira uma nova funcionalidade
title: "[FEATURE] <título da funcionalidade>"
labels: enhancement
assignees: srdmatheus, mfjack

---

**A sua funcionalidade é relacionada a algum problema que você encontrou? Descreva-o**
Descreva aqui, se necessário, o que te frustrou no sistema de maneira clara e concisa.

**Descreva a funcionalidade que você sugere**
Descreva aqui a funcionalidade que você cogitou adicionar no sistema. Seja direto ao ponto.

**Descreva outras alternativas que você pensou**
Descreva outras alternativas que você pode ter pensado

**Contexto adicional**
Adicione aqui, um contexto adicional, caso necessário.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: 'github-actions'
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
10 changes: 10 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## Resuma o seu PR em até 5 linhas:

## Selecione o tipo de mudanças feitas:
- [ ] Bug fix
- [ ] Novas funcionalidades
- [ ] Atualização da documentação
- [ ] Atualização dos testes
- [ ] Modificações relacionadas a CI/CD

## Este PR gera alguma breaking change? Se sim, onde?
31 changes: 31 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CD - Deploy application in development stage on Dockerhub

on:
push:
branches:
- "main"
- "release"

jobs:
dockerhub:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
id: git-clone
name: Cloning repository

- name: Docker hub login
id: docker-hub-login
uses: docker/login-action@v3
with:
username: ${{secrets.DOCKER_HUB_USERNAME}}
password: ${{secrets.DOCKER_HUB_PASSWORD}}

- uses: docker/build-push-action@v5
name: Build and push app image
id: build-and-push-app
with:
context: .
file: Dockerfile
push: true
tags: ${{secrets.DOCKER_APP_IMAGE_TAG}}-alpha
39 changes: 39 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI - Tests & Lint

on:
push:
branches:
- "*"
- "!main"

jobs:
eslint:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macos-latest, ubuntu-latest ]
steps:
- uses: actions/checkout@v4
id: git-clone
name: Cloning repository

- uses: pnpm/action-setup@v3
id: install-pnpm
name: Installing PNPM
with:
version: 8

- name: Install Node.js
uses: actions/setup-node@v4
id: set-nodejs
with:
node-version: 20.x
cache: "pnpm"

- name: Install dependencies
id: set-deps
run: pnpm install --frozen-lockfile

- name: Run Eslint
id: eslint
run: pnpm run lint
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# dependencies
/node_modules
/.pnp
.pnpm-store
.pnp.js
.yarn/install-state.gz

Expand All @@ -27,6 +28,10 @@ yarn-error.log*

# local env files
.env*.local
.env
.env.dev
.env.test
.env.prod

# vercel
.vercel
Expand Down
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx --no -- commitlint --edit ${1}
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
68 changes: 34 additions & 34 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
{
"tabWidth": 4,
"semi": false,
"singleQuote": true,
"trailingComma": "none",
"importOrder": [
"^(react/(.*)$)|^(react$)",
"^(next/(.*)$)|^(next$)",
"",
"<THIRD_PARTY_MODULES>",
"",
"^types$",
"^@/env(.*)$",
"^@/types/(.*)$",
"^@/config/(.*)$",
"^@/lib/(.*)$",
"^@/hooks/(.*)$",
"^@/components/ui/(.*)$",
"^@/components/app/(.*)$",
"^@/components/(.*)$",
"^@/styles/(.*)$",
"^@/app/(.*)$",
"",
"^[./]"
],
"importOrderSeparation": false,
"importOrderSortSpecifiers": true,
"importOrderBuiltinModulesToTop": true,
"importOrderParserPlugins": ["typescript", "jsx", "decorators-legacy"],
"importOrderMergeDuplicateImports": true,
"importOrderCombineTypeAndValueImports": true,
"plugins": [
"@ianvs/prettier-plugin-sort-imports",
"prettier-plugin-tailwindcss"
]
"tabWidth": 2,
"semi": false,
"singleQuote": true,
"trailingComma": "none",
"importOrder": [
"^(react/(.*)$)|^(react$)",
"^(next/(.*)$)|^(next$)",
"",
"<THIRD_PARTY_MODULES>",
"",
"^types$",
"^@/env(.*)$",
"^@/types/(.*)$",
"^@/config/(.*)$",
"^@/lib/(.*)$",
"^@/hooks/(.*)$",
"^@/components/ui/(.*)$",
"^@/components/app/(.*)$",
"^@/components/(.*)$",
"^@/styles/(.*)$",
"^@/app/(.*)$",
"",
"^[./]"
],
"importOrderSeparation": false,
"importOrderSortSpecifiers": true,
"importOrderBuiltinModulesToTop": true,
"importOrderParserPlugins": ["typescript", "jsx", "decorators-legacy"],
"importOrderMergeDuplicateImports": true,
"importOrderCombineTypeAndValueImports": true,
"plugins": [
"@ianvs/prettier-plugin-sort-imports",
"prettier-plugin-tailwindcss"
]
}
46 changes: 46 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
FROM alpine:3.19.1 AS base
LABEL maintainer="Nícolas Basilio"

RUN mkdir -p /usr/node/app
WORKDIR /usr/node/app

RUN apk add --no-cache npm=10.2.5-r0 nodejs=20.11.1-r0 && \
rm -rf /var/cache/apk/*

ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"

COPY package.json .
COPY pnpm-lock.yaml .
COPY ./public ./public

#---------- mid stage ------------
FROM base AS mid_stage
COPY src ./src
RUN npm install -g pnpm@8.15.5

#---------- prod deps ------------
FROM mid_stage AS prod_deps
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile

#--------- build stage -----------
FROM mid_stage AS builder

RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile

COPY . .
RUN pnpm run build --no-lint

#------- release stage -----------
FROM base

COPY --from=prod_deps /usr/node/app/node_modules ./node_modules
COPY --from=builder /usr/node/app/.next ./.next

ENV PORT=8080

VOLUME ["/usr/node/app/node_modules"]
CMD [ "npm", "start", "-p ${PORT}" ]

EXPOSE 8080

15 changes: 15 additions & 0 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
steps:
- name: 'gcr.io/cloud-builders/docker'
automapSubstitutions: true
args: [
'build',
'-t', 'southamerica-east1-docker.pkg.dev/$PROJECT_ID/frontend/frontend:latest',
'-f', './Dockerfile.prod',
'.'
]
env:
- 'DOCKER_BUILDKIT=1'
images:
- 'southamerica-east1-docker.pkg.dev/$PROJECT_ID/frontend/frontend:latest'
options:
logging: CLOUD_LOGGING_ONLY
3 changes: 3 additions & 0 deletions commitlint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default {
extends: ['@commitlint/config-conventional']
};
11 changes: 11 additions & 0 deletions dev.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM node:lts-bullseye-slim
LABEL maintainer="Nícolas Basilio"

ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"

WORKDIR /home/node/app

RUN npm install pnpm -g

CMD [ "tail", "-f", "/dev/null" ]
11 changes: 11 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: "3"

services:
frontend:
build:
dockerfile: Dockerfile
context: .
ports:
- "8080:8080"
volumes:
- .:/home/node/app
4 changes: 2 additions & 2 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** @type {import('next').NextConfig} */
const nextConfig = {};
const nextConfig = {}

export default nextConfig;
export default nextConfig
Loading