Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 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
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