Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
ed7d5bd
init: react components task
Seala11 Sep 24, 2022
ade7c84
feat: add sass
Seala11 Sep 24, 2022
ed38f6a
feat: add app folder structure
Seala11 Sep 24, 2022
445ff0b
feat: add header with routes
Seala11 Sep 24, 2022
b069c43
feat: add 404 styles
Seala11 Sep 24, 2022
435e305
feat: add footer
Seala11 Sep 24, 2022
fa3657a
feat: add about us page
Seala11 Sep 25, 2022
257c3e7
feat: add cards list
Seala11 Sep 25, 2022
f6a4ad9
feat: add search bar
Seala11 Sep 25, 2022
4366af9
feat; add search filter
Seala11 Sep 26, 2022
e67d871
fix: search filter
Seala11 Sep 26, 2022
1ce0c14
feat: scripts update
Seala11 Sep 26, 2022
6d470c0
docs: readme update
Seala11 Sep 26, 2022
1fbc0c5
feat: add test for the search bar
Seala11 Sep 27, 2022
0f254fc
feat: add tests for card list
Seala11 Sep 27, 2022
b722c11
feat: add test for app component
Seala11 Sep 27, 2022
9ea7e5e
feat: add local storage tests
Seala11 Sep 27, 2022
5fd67ed
feat: add home page tests
Seala11 Sep 27, 2022
3634820
refactor: home page tests
Seala11 Sep 27, 2022
ac59a8c
feat: add netlify redirect config file
Seala11 Sep 27, 2022
07fa977
feat: add husky configs
Seala11 Sep 28, 2022
855cd45
feat: colors style update
Seala11 Sep 29, 2022
d65ea75
feat: add responsive tablet layout
Seala11 Sep 29, 2022
62790f1
feat: husky config update
Seala11 Sep 29, 2022
55a287e
refactor: card component
Seala11 Sep 29, 2022
198ce4f
refactor: card list test
Seala11 Sep 30, 2022
8d2a328
refactor: search bar tests
Seala11 Sep 30, 2022
d53637c
refactor: home page tests
Seala11 Sep 30, 2022
54b340e
refactor: app component tests
Seala11 Sep 30, 2022
2a67fb1
feat: add form page
Seala11 Oct 4, 2022
41c6162
fix: header shifting left with scroll bar
Seala11 Oct 4, 2022
9f14534
feat: add form draft
Seala11 Oct 4, 2022
213b815
feat: update form inputs
Seala11 Oct 4, 2022
0c7f916
feat: add errors validation
Seala11 Oct 5, 2022
9bd5294
feat: add form submit errors tests
Seala11 Oct 5, 2022
5fa637f
feat: add form style
Seala11 Oct 5, 2022
6131a98
refactor: split components
Seala11 Oct 5, 2022
005a7fc
feat: add form cards draft
Seala11 Oct 6, 2022
faccac7
refactor: data form types and form tests
Seala11 Oct 6, 2022
9dc4b31
feat: add cards style
Seala11 Oct 6, 2022
63e9f2b
feat: add reset form after submitting the card
Seala11 Oct 7, 2022
318981f
feat: add tests for form card list and cards
Seala11 Oct 7, 2022
f98e950
refactor: form tests
Seala11 Oct 8, 2022
10177a2
feat: add form page test
Seala11 Oct 8, 2022
590f31b
refactor: form card test
Seala11 Oct 8, 2022
321442e
feat: add form responsive layout
Seala11 Oct 9, 2022
6b5ae3b
feat: add success submit form message
Seala11 Oct 9, 2022
cfd7f60
feat: form card test update
Seala11 Oct 9, 2022
be31679
fix: form message display
Seala11 Oct 9, 2022
3f461b3
refactor: remove unused type
Seala11 Oct 9, 2022
028fd84
fix: form page submit complete form test
Seala11 Oct 10, 2022
b925e7c
feat: add fetch api on home page
Seala11 Oct 12, 2022
de93a30
feat: add search handlers
Seala11 Oct 12, 2022
77ebccc
feat: add focus on search input
Seala11 Oct 12, 2022
0e0c93d
feat: add api calls tests
Seala11 Oct 13, 2022
94bdcd2
feat: add popup
Seala11 Oct 13, 2022
de4df08
feat: remove unnecessary images
Seala11 Oct 13, 2022
89b925c
feat: add popup tests
Seala11 Oct 13, 2022
bb80690
feat: add home page tests
Seala11 Oct 13, 2022
091cb32
feat: add responsive layout for home card list
Seala11 Oct 14, 2022
450a2cb
feat: add responsive popup layout
Seala11 Oct 14, 2022
bb7caf8
feat: add popup animation
Seala11 Oct 15, 2022
e5b29f1
feat: add loading animation
Seala11 Oct 15, 2022
e294044
refactor: card list tests
Seala11 Oct 15, 2022
3dd5177
fix: mobile search bar autofocus
Seala11 Oct 17, 2022
46e9092
fix: card display with no title or subtitle
Seala11 Oct 17, 2022
5690686
refactor: add getSnapshotBeforeUpdate for scroll position update
Seala11 Oct 17, 2022
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
49 changes: 49 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:react-hooks/recommended",
"plugin:prettier/recommended"
],
"env": {
"browser": true,
"es6": true,
"jest": true,
"node": true
},
"root": true,
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "react", "prettier", "react-hooks"],
"rules": {
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"comma-dangle": ["error", "only-multiline"],
"react/prop-types": "off",
"react/display-name": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"prettier/prettier": ["error", { "endOfLine": "auto" }],
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/ban-ts-comment": "error",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-var-reqiures": "off",
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off"
},
"settings": {
"react": {
"pragma": "React",
"version": "detect"
}
}
}
117 changes: 18 additions & 99 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,104 +1,23 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-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/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# Optional npm cache directory
.npm
# dependencies
/node_modules
/.pnp
.pnp.js

# Optional eslint cache
.eslintcache
# testing
/coverage

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

# Optional REPL history
.node_repl_history
# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

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

# Next.js build output
.next

# 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

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port
npm-debug.log*
yarn-debug.log*
yarn-error.log*
6 changes: 6 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

exec >/dev/tty 2>&1

npx lint-staged
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
react-app-env.d.ts
9 changes: 9 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"endOfLine": "auto",
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"printWidth": 100,
"arrowParens": "always"
}
45 changes: 43 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,43 @@
# seala11-REACT2022Q3
Private repository for @seala11
# React Components

## Setup and Running

### Install dependencies:

```bash
$ npm install
```

### Running the app in the development mode

```bash
$ npm run start
```

### Prepare for production

```bash
$ npm run build
```

### Linter check

```bash
$ npm run lint
```

### Run tests

```bash
$ npm run test
```

### Prittier

```bash
// check
$ npm run format

// fix
$ npm run format-fix
```
4 changes: 4 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
Loading