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

Desafio Frontend Loggi - Amanda Albuquerque #24

Closed
wants to merge 42 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
81b499b
feat(core): setup Next.js and Material UI bootstrap
Nov 3, 2023
398ec45
feat(core): add lint and prettier configs
Nov 3, 2023
da72425
feat(core): add config prettier and Header component at RootLayout
Nov 3, 2023
79f7024
feat(components): refactor Header components
Nov 4, 2023
379e493
feat(components): refactor Footer components
Nov 4, 2023
14d0454
feat(app): refactor file structure
Nov 4, 2023
e7a2ed0
feat(core): add logo svg
Nov 4, 2023
986230f
feat(component): refactor ThemeRegistry
Nov 4, 2023
f67f1e7
feat(components): refactor Footer components
Nov 4, 2023
c3ee616
feat(components): refactor Header components
Nov 4, 2023
348a0b4
feat(components): add InstallAppBanner components
Nov 4, 2023
77281e1
feat(components): refactor HightlightBanner components
Nov 4, 2023
cac581f
feat(public): add stores svg
Nov 4, 2023
42c6a06
feat(core): refactor styles structure
Nov 4, 2023
79b8dd3
feat(components): refactor styles in Footer, Form and Headeer
Nov 4, 2023
199fb8a
feat(components): refactor AccountMenu component and add snapshot test
Nov 6, 2023
85066ad
feat(components): refactor AppStoreIcon component and add snapshot test
Nov 6, 2023
e704e35
feat(components): refactor Button component and add snapshot test
Nov 6, 2023
b3fe909
feat(components): refactor Copyright component and add snapshot test
Nov 6, 2023
1df8462
feat(components): refactor Footer component and add snapshot test
Nov 6, 2023
0485f99
feat(components): refactor FormInput component and add snapshot test
Nov 6, 2023
cf834c1
feat(components): refactor Header component and add snapshot test
Nov 6, 2023
ef5c9bd
feat(components): refactor HighlightBanner component and add snapshot…
Nov 6, 2023
62fde36
feat(components): refactor InstallAppBanner component and add snapsho…
Nov 6, 2023
706cf39
feat(components): refactor Link component and add snapshot test
Nov 6, 2023
18cbc44
feat(components): add LoggedInContent component
Nov 6, 2023
00b9a63
feat(components): add LoggedOutContent component
Nov 6, 2023
dc5255d
feat(components): add LogoIcon component and add snapshot test
Nov 6, 2023
38d1eb4
feat(components): add MenuMobile component and add snapshot test
Nov 6, 2023
6b96922
feat(components): add Navigation component and add snapshot test
Nov 6, 2023
f5a5ce0
feat(components): add PlayStoreIcon component and add snapshot test
Nov 6, 2023
8671c88
feat(components): add SearchPackage component and add snapshot test
Nov 6, 2023
e11db40
feat(components): refactor themeContext component
Nov 6, 2023
583a776
feat(core): add test config (jest/test-library)
Nov 6, 2023
b791bb8
fix(components): refactor Header component
Nov 6, 2023
3b67448
fix(components): update snapshots and refactor same styles
Nov 6, 2023
9ddbfe1
fix(compinents): remove comments
Nov 6, 2023
a4c0f12
feat(core): add Sentry, LightHouse, Cypress and refactor readme
Nov 6, 2023
2ffc72c
feat(core): add Docker to developement and coverage at scripts
Nov 6, 2023
0d1b6d6
fix(core): remove lint ckeck in build
Nov 6, 2023
35b03fb
fix(core): add sentry files config and update README.md
Nov 6, 2023
ecf405b
fix(core): add .env sample
Nov 6, 2023
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
22 changes: 22 additions & 0 deletions docs/package-tracker/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 2

[*.js]
indent_size = 2

[*.md]
trim_trailing_whitespace = true

[dist/**]
[node_modules/**]
[build/**]




3 changes: 3 additions & 0 deletions docs/package-tracker/.env-sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
REACT_APP_API_KEY=
REACT_APP_API_URL=
SENTRY_KEY=
3 changes: 3 additions & 0 deletions docs/package-tracker/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["eslint:recommended", "plugin:prettier/recommended", "next"]
}
130 changes: 130 additions & 0 deletions docs/package-tracker/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp
.cache

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
7 changes: 7 additions & 0 deletions docs/package-tracker/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"singleQuote": true,
"semi": true,
"tabWidth": 2,
"useTabs": false,
"trailingComma": "all"
}
3 changes: 3 additions & 0 deletions docs/package-tracker/.sentryclirc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[defaults]
org=your-organization
project=your-project
15 changes: 15 additions & 0 deletions docs/package-tracker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM node:18-alpine

WORKDIR /app

COPY package.json ./

RUN npm install

COPY . .

RUN npm run build

EXPOSE 3000

CMD ["npm", "start"]
34 changes: 34 additions & 0 deletions docs/package-tracker/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
DOCKER_IMAGE_NAME = packer-tracker
DOCKER_CONTAINER_NAME = packer-tracker-container

APP_PORT= 3000
DOCKER_PORT= 3000

all: build run

build:
docker build -t $(DOCKER_IMAGE_NAME) .

run:
docker run -d --name $(DOCKER_CONTAINER_NAME) -p $(DOCKER_PORT):$(APP_PORT) $(DOCKER_IMAGE_NAME)

stop:
docker stop $(DOCKER_CONTAINER_NAME)
docker rm $(DOCKER_CONTAINER_NAME)

clean: stop
docker rmi $(DOCKER_IMAGE_NAME)

dev:
docker run -d --name $(DOCKER_CONTAINER_NAME) -p $(DOCKER_PORT):$(APP_PORT) $(DOCKER_IMAGE_NAME) npm run dev

exec:
docker exec -it $(DOCKER_CONTAINER_NAME) $(CMD)

lint:
make exec CMD="npm run lint"

test:
make exec CMD="npm test"

.PHONY: build run stop clean dev exec lint test
Loading