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

RS clone: Meowse code #27

Open
wants to merge 211 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
211 commits
Select commit Hold shift + click to select a range
2a2de50
init: start project
PronkoEvgeniya Aug 10, 2022
e026554
feat: add lint-staged configurations
PronkoEvgeniya Aug 11, 2022
6e3c875
fix: chsnge lint-staged configurations
PronkoEvgeniya Aug 11, 2022
a360b49
fix: change lint-staged config js to ts
PronkoEvgeniya Aug 11, 2022
f038eb6
fix: remove lint-staged and husky
PronkoEvgeniya Aug 11, 2022
f9fbdf5
test autodeploy
PronkoEvgeniya Aug 11, 2022
5c7216b
fix: delete test functions
PronkoEvgeniya Aug 11, 2022
8c910e0
Merge pull request #1 from PronkoEvgeniya/dev_jen
Ilya758 Aug 11, 2022
d6a8477
feat: create a json for text trainer
VoitehovichXenia Aug 16, 2022
fe44fdf
refactor: replace text trainer data
VoitehovichXenia Aug 16, 2022
9095e01
feat: add main layout and test husky
PronkoEvgeniya Aug 17, 2022
d41a0af
Merge pull request #2 from PronkoEvgeniya/dev_jen
VoitehovichXenia Aug 17, 2022
5349f90
Merge branch 'development' of https://github.com/PronkoEvgeniya/meows…
VoitehovichXenia Aug 17, 2022
b71e67e
feat: add startPage layout
Kr1s10 Aug 17, 2022
a95445d
feat: add homePage layout
Kr1s10 Aug 17, 2022
17e68d1
feat: add translatePage layout
Kr1s10 Aug 17, 2022
a4b9bf3
feat: add aboutPage layout
Kr1s10 Aug 17, 2022
f0447cd
Merge pull request #3 from PronkoEvgeniya/dev_kr1s
PronkoEvgeniya Aug 17, 2022
5012426
fix: upload husky.sh
PronkoEvgeniya Aug 18, 2022
6f49a4f
feat: add routing for audio trainer
Kr1s10 Aug 18, 2022
7f2f6ae
feat: add plain layout of text trainer
VoitehovichXenia Aug 19, 2022
b66bd79
feat: add lesson changing on the text trainer page
VoitehovichXenia Aug 19, 2022
fb0448b
Merge pull request #4 from PronkoEvgeniya/dev_kr1s
VoitehovichXenia Aug 19, 2022
9cda161
feat: add popup for authorization
Kr1s10 Aug 19, 2022
26a8614
feat: add all svg icons in Sprite.tsx
PronkoEvgeniya Aug 20, 2022
687735f
Merge pull request #6 from PronkoEvgeniya/dev_jen
VoitehovichXenia Aug 20, 2022
3aa5a31
Merge branch 'development' of https://github.com/PronkoEvgeniya/meows…
VoitehovichXenia Aug 20, 2022
a1bb5c8
feat: add routes and text trainer basic layout
VoitehovichXenia Aug 20, 2022
bf3bcc4
fix: header.tsx
Kr1s10 Aug 20, 2022
98d1432
fix: resolve conflicts
Kr1s10 Aug 20, 2022
e90f5a0
Merge pull request #5 from PronkoEvgeniya/dev_kr1s
VoitehovichXenia Aug 20, 2022
6e55b71
feat: add processing user input at text-trainer
VoitehovichXenia Aug 20, 2022
0509c5f
Merge branch 'development' of https://github.com/PronkoEvgeniya/meows…
VoitehovichXenia Aug 20, 2022
0b0e838
refactor: replace interfaces and remove unnecessary reducer
VoitehovichXenia Aug 21, 2022
29d29b7
Merge pull request #7 from PronkoEvgeniya/dev_xenia
Kr1s10 Aug 21, 2022
e003dc6
feat: add tutorial steps
Kr1s10 Aug 21, 2022
215cfb7
feat: add testPage
Kr1s10 Aug 22, 2022
4c2f0d6
feat: add routing for game & account pages
Kr1s10 Aug 22, 2022
f438d3b
feat: add translator
Kr1s10 Aug 22, 2022
d2b485c
Merge pull request #8 from PronkoEvgeniya/dev_kr1s
PronkoEvgeniya Aug 22, 2022
4b9ee05
refactor: reorginize json for text trainer
VoitehovichXenia Aug 22, 2022
fb47f20
refactor: change field validation and result check at text trainer
VoitehovichXenia Aug 22, 2022
23d5c6c
Merge branch 'development' of https://github.com/PronkoEvgeniya/meows…
VoitehovichXenia Aug 22, 2022
113ebd3
feat: add translate for both sides
Kr1s10 Aug 23, 2022
caecc7e
Merge pull request #9 from PronkoEvgeniya/dev_xenia
Kr1s10 Aug 23, 2022
72b5312
fix: resolve conflicts in app/store/index.ts
Kr1s10 Aug 23, 2022
965ad4a
fix: eliminate incorrect answers in text.json
VoitehovichXenia Aug 23, 2022
d7fb0e1
feat: change output textarea to spans in translator
Kr1s10 Aug 24, 2022
7f312a8
Merge pull request #10 from PronkoEvgeniya/dev_kr1s
VoitehovichXenia Aug 24, 2022
0fd1e0f
feat: add supportion of lesson status and score saving to LS
VoitehovichXenia Aug 24, 2022
95d965f
refactor: unify score for all lessons at text.json
VoitehovichXenia Aug 24, 2022
7a844fe
Merge branch 'development' of https://github.com/PronkoEvgeniya/meows…
VoitehovichXenia Aug 24, 2022
54b8830
feat: add translate content of site
Kr1s10 Aug 25, 2022
8544ab1
fix: remove server loading for translations & add local loading
Kr1s10 Aug 25, 2022
41bfc64
feat: add automatic validation and highlighting demo
VoitehovichXenia Aug 25, 2022
0675dfd
Merge pull request #11 from PronkoEvgeniya/dev_kr1s
PronkoEvgeniya Aug 25, 2022
d942326
feat: add audio assets and json
PronkoEvgeniya Aug 25, 2022
3ee75d0
feat: assets for ru testing
PronkoEvgeniya Aug 25, 2022
c9c9a24
feat: add json for en audio lessons
PronkoEvgeniya Aug 26, 2022
035951b
feat: add result page rendering after completion of lesson
VoitehovichXenia Aug 26, 2022
e70916e
Merge branch 'development' of https://github.com/PronkoEvgeniya/meows…
VoitehovichXenia Aug 26, 2022
0f7dc04
refactor: change translation for result page
VoitehovichXenia Aug 26, 2022
9754849
refactor: remove linter issues
VoitehovichXenia Aug 26, 2022
513bd0c
feat: add assets for eng testing
PronkoEvgeniya Aug 26, 2022
72d7f5d
feat: add different messages when re-passing lesson
VoitehovichXenia Aug 26, 2022
9d7a5fb
refactor: apply prettier
VoitehovichXenia Aug 26, 2022
2202453
Merge pull request #12 from PronkoEvgeniya/dev_jen
Kr1s10 Aug 26, 2022
e2074b5
feat: add EN version text.json without descriptions
Kr1s10 Aug 26, 2022
460659d
Merge branch 'development' of github.com:PronkoEvgeniya/meowse-code i…
Kr1s10 Aug 26, 2022
a339126
Merge pull request #13 from PronkoEvgeniya/dev_xenia
Kr1s10 Aug 27, 2022
24bd4c3
refactor: take func out of handler and remove unused constant
Kr1s10 Aug 28, 2022
422b499
fix: fix conflict in types/constants.ts
Kr1s10 Aug 28, 2022
b86f768
feat: add separate inputs instead textarea in text trainer
VoitehovichXenia Aug 28, 2022
1c952f1
Merge branch 'development' of https://github.com/PronkoEvgeniya/meows…
VoitehovichXenia Aug 28, 2022
f2b0e58
feat: add layout header, footer and sidebar
PronkoEvgeniya Aug 28, 2022
2206337
Merge branch 'development' of https://github.com/PronkoEvgeniya/meows…
PronkoEvgeniya Aug 28, 2022
ccaa02b
refactor: update prettierignore
VoitehovichXenia Aug 29, 2022
22d0c1f
refactor: update json for text trainer
VoitehovichXenia Aug 29, 2022
0c8e99d
fix: eliminate bugs in separate inputs usage
VoitehovichXenia Aug 29, 2022
d3fba12
refactor: update russian version of text trainer json
VoitehovichXenia Aug 29, 2022
612b917
feat: add english version of text trainer json
VoitehovichXenia Aug 29, 2022
23c4bd6
refactor: change result phrases
VoitehovichXenia Aug 29, 2022
b1364c9
feat: render random test
Kr1s10 Aug 29, 2022
400180c
feat: add testing mode
Kr1s10 Aug 30, 2022
89d1df5
Merge pull request #14 from PronkoEvgeniya/dev_xenia
Kr1s10 Aug 30, 2022
a1e9e4b
Merge branch 'development' of github.com:PronkoEvgeniya/meowse-code i…
Kr1s10 Aug 30, 2022
262f5d1
Merge pull request #15 from PronkoEvgeniya/dev_kr1s
PronkoEvgeniya Aug 30, 2022
3b5897d
feat: extended lesson components for audio trainer
VoitehovichXenia Aug 30, 2022
188b9e9
Merge branch 'development' of https://github.com/PronkoEvgeniya/meows…
VoitehovichXenia Aug 30, 2022
0637032
fix: resolved not obvious conflict in constants
VoitehovichXenia Aug 30, 2022
5c723f4
Merge pull request #16 from PronkoEvgeniya/dev_xenia
Kr1s10 Aug 30, 2022
9dae5cf
feat: add auth request functions
PronkoEvgeniya Aug 30, 2022
736b603
Merge branch 'development' of https://github.com/PronkoEvgeniya/meows…
PronkoEvgeniya Aug 30, 2022
86b45cb
Merge pull request #17 from PronkoEvgeniya/dev_jen
Kr1s10 Aug 30, 2022
6f23704
feat: add language support to both simulators
VoitehovichXenia Aug 30, 2022
e4ef46a
feat: add translation to lesson content
VoitehovichXenia Aug 30, 2022
3070441
feat: add supportion to save result for en and ru versions
VoitehovichXenia Aug 31, 2022
a291885
refactor: use AudioBtn component instead plain JSX in audio simulator
VoitehovichXenia Aug 31, 2022
20d3bd7
Merge pull request #18 from PronkoEvgeniya/dev_xenia
Kr1s10 Aug 31, 2022
1e96dc5
feat: add assets for mascot
PronkoEvgeniya Aug 31, 2022
e917b79
feat: add authorization & registration
Kr1s10 Sep 1, 2022
1b3cfe2
feat: add route for 404
Kr1s10 Sep 1, 2022
8805b9e
refactor: take out constants from components
VoitehovichXenia Sep 2, 2022
f80f530
feat: add mini game
VoitehovichXenia Sep 2, 2022
06170e0
Merge branch 'development' of https://github.com/PronkoEvgeniya/meows…
VoitehovichXenia Sep 2, 2022
ca43ed1
Merge pull request #19 from PronkoEvgeniya/dev_kr1s
VoitehovichXenia Sep 2, 2022
9f647e5
Merge branch 'development' of https://github.com/PronkoEvgeniya/meows…
VoitehovichXenia Sep 2, 2022
81435f2
fix: eliminate bug in sidebar translations
VoitehovichXenia Sep 2, 2022
a52dd46
feat: add assets
PronkoEvgeniya Sep 2, 2022
a29b21c
feat: add assets
PronkoEvgeniya Sep 2, 2022
cf60b64
fix: fix 404 route & comments
Kr1s10 Sep 2, 2022
c50c9eb
Merge pull request #20 from PronkoEvgeniya/dev_xenia
Kr1s10 Sep 2, 2022
0988643
Merge branch 'development' into dev_jen
Kr1s10 Sep 2, 2022
a7c51c1
Merge pull request #21 from PronkoEvgeniya/dev_jen
Kr1s10 Sep 2, 2022
7561a7a
fix: resolve conflicts
Kr1s10 Sep 2, 2022
958b766
feat: add toml
Kr1s10 Sep 2, 2022
c56f15b
fix: toml
Kr1s10 Sep 2, 2022
1277982
feat: add avatar assets
PronkoEvgeniya Sep 2, 2022
bf5d741
Merge branch 'development' of https://github.com/PronkoEvgeniya/meows…
PronkoEvgeniya Sep 2, 2022
302a031
feat: add avatar assets and icons for theme btn
PronkoEvgeniya Sep 2, 2022
7e5acb4
fix: webpack warning
PronkoEvgeniya Sep 2, 2022
239ba89
Merge pull request #23 from PronkoEvgeniya/dev_jen
Kr1s10 Sep 2, 2022
1dc2489
Merge branch 'development' of github.com:PronkoEvgeniya/meowse-code i…
Kr1s10 Sep 2, 2022
2c9b7ea
feat: add userSlice & fix path, add buttons for login & signup
Kr1s10 Sep 3, 2022
4b81f30
feat: add logout & change account settings
Kr1s10 Sep 3, 2022
1d7d392
feat: adaptive sidebar
PronkoEvgeniya Sep 3, 2022
5d253c6
feat: layout aboutpage
PronkoEvgeniya Sep 3, 2022
9909d67
feat: layout translator
PronkoEvgeniya Sep 4, 2022
cfc7608
feat: add secure routes
Kr1s10 Sep 4, 2022
fe16e8d
feat: layout tutorial
PronkoEvgeniya Sep 4, 2022
64162dd
feat: add styles for lesson select component
VoitehovichXenia Sep 4, 2022
999c2c4
feat: add styles for both trainers
VoitehovichXenia Sep 4, 2022
6442f41
Merge branch 'development' of https://github.com/PronkoEvgeniya/meows…
VoitehovichXenia Sep 4, 2022
e6662dd
feat: add mascot to trainers
VoitehovichXenia Sep 4, 2022
42e533b
Merge pull request #24 from PronkoEvgeniya/dev_jen
Kr1s10 Sep 4, 2022
bc13806
fix: resolve conflicts
Kr1s10 Sep 4, 2022
54f407e
feat: add assets
VoitehovichXenia Sep 4, 2022
cdf260d
Merge pull request #22 from PronkoEvgeniya/dev_kr1s
VoitehovichXenia Sep 4, 2022
55229db
fix: about page layout
PronkoEvgeniya Sep 4, 2022
5568e36
Merge branch 'development' of https://github.com/PronkoEvgeniya/meows…
PronkoEvgeniya Sep 4, 2022
15547fc
feat: add functional for toggle theme & fix bugs
Kr1s10 Sep 4, 2022
ed1dd1a
Merge branch 'development' of github.com:PronkoEvgeniya/meowse-code i…
Kr1s10 Sep 4, 2022
e8ef10b
fix: start page layout
PronkoEvgeniya Sep 4, 2022
4130711
fix: remove sidebar button disabled
Kr1s10 Sep 4, 2022
f57f9b6
Merge pull request #25 from PronkoEvgeniya/dev_kr1s
PronkoEvgeniya Sep 4, 2022
8c3be90
Merge branch 'development' of https://github.com/PronkoEvgeniya/meows…
PronkoEvgeniya Sep 4, 2022
7829393
feat: modal-window layout
PronkoEvgeniya Sep 5, 2022
d7ab81f
fix: bug with failed token, set sertificate on server
Kr1s10 Sep 5, 2022
acd64c5
feat: add account page layout
PronkoEvgeniya Sep 5, 2022
0bbcee7
fix: replace sertificate -> certificate
Kr1s10 Sep 5, 2022
51b7dff
refactor: change styles for custom select
VoitehovichXenia Sep 5, 2022
99ebe02
Merge branch 'development' of https://github.com/PronkoEvgeniya/meows…
VoitehovichXenia Sep 5, 2022
1381d93
refactor: update styles
VoitehovichXenia Sep 5, 2022
e417c0a
feat: add styles for mini game
VoitehovichXenia Sep 5, 2022
a8ad7e9
feat: account layout
PronkoEvgeniya Sep 5, 2022
8ebddcf
feat: add styles for result page
VoitehovichXenia Sep 5, 2022
1cc3cc7
fix: eliminate bug with incorrect lesson score updating
VoitehovichXenia Sep 5, 2022
4f74b01
Merge pull request #28 from PronkoEvgeniya/dev_xenia
Kr1s10 Sep 5, 2022
b9f7dab
Merge pull request #26 from PronkoEvgeniya/dev_kr1s
VoitehovichXenia Sep 5, 2022
d45e257
fix: icons on start page
PronkoEvgeniya Sep 5, 2022
b80a51d
fix: bug with sidebar
Kr1s10 Sep 5, 2022
165212c
Merge branch 'development' of github.com:PronkoEvgeniya/meowse-code i…
Kr1s10 Sep 5, 2022
b962a8a
fix: eliminate bug with incorrect train result render
VoitehovichXenia Sep 5, 2022
a1a1b74
feat: add certificates
Kr1s10 Sep 5, 2022
232cd7f
Merge pull request #29 from PronkoEvgeniya/dev_xenia
Kr1s10 Sep 5, 2022
b2ae01d
Merge branch 'development' of github.com:PronkoEvgeniya/meowse-code i…
Kr1s10 Sep 5, 2022
8c4359d
Merge pull request #30 from PronkoEvgeniya/dev_kr1s
VoitehovichXenia Sep 5, 2022
8d26690
fix: save changes before update
PronkoEvgeniya Sep 5, 2022
e638951
feat: add adaptive design for trainers and mini game
VoitehovichXenia Sep 5, 2022
b9880b7
feat: add leaderboard
Kr1s10 Sep 5, 2022
f3d70cf
Merge branch 'development' of https://github.com/PronkoEvgeniya/meows…
VoitehovichXenia Sep 5, 2022
b8db512
Merge pull request #31 from PronkoEvgeniya/dev_xenia
Kr1s10 Sep 5, 2022
94d0cc2
refactor: update prettierignore
VoitehovichXenia Sep 5, 2022
01a747b
fix: eliminate bug with reseting timer when route changes
VoitehovichXenia Sep 5, 2022
7319e7f
Merge branch 'development' of https://github.com/PronkoEvgeniya/meows…
VoitehovichXenia Sep 5, 2022
a49a24e
feat: add testing layout
PronkoEvgeniya Sep 5, 2022
7e67bef
Merge branch 'development' of https://github.com/PronkoEvgeniya/meows…
PronkoEvgeniya Sep 5, 2022
49bf699
Merge pull request #32 from PronkoEvgeniya/dev_kr1s
PronkoEvgeniya Sep 5, 2022
9aa0895
fix: conflict solution
PronkoEvgeniya Sep 5, 2022
858af2e
fix: eliminate bug with input focus in trainers
VoitehovichXenia Sep 5, 2022
ac9ca61
feat: add reauthorized popup layout
PronkoEvgeniya Sep 5, 2022
de4bc1a
fix: remove scroll on the small screens
VoitehovichXenia Sep 5, 2022
af97df4
Merge branch 'development' of https://github.com/PronkoEvgeniya/meows…
VoitehovichXenia Sep 5, 2022
9577eb3
fix: footer, profile, modal reauth
PronkoEvgeniya Sep 5, 2022
a1cac47
fix: global fix paddings in main content
PronkoEvgeniya Sep 5, 2022
e1ed448
Merge pull request #33 from PronkoEvgeniya/dev_jen
Kr1s10 Sep 5, 2022
2859d63
Merge branch 'development' of https://github.com/PronkoEvgeniya/meows…
VoitehovichXenia Sep 5, 2022
6ac74fe
feat: add dependence of completed lessons, safe score & completed les…
Kr1s10 Sep 5, 2022
a433275
Merge branch 'development' of github.com:PronkoEvgeniya/meowse-code i…
Kr1s10 Sep 5, 2022
2eb5b4b
fix: remove console.log
Kr1s10 Sep 5, 2022
6b211eb
fix: remove undefined
Kr1s10 Sep 5, 2022
42699f7
fix: update adaptive layout
VoitehovichXenia Sep 5, 2022
c467824
fix: remove hash in footer link
Kr1s10 Sep 5, 2022
67555f8
fix: adaptive layout
VoitehovichXenia Sep 5, 2022
f7b71cb
refactor: apply prettier
VoitehovichXenia Sep 5, 2022
fab5437
refactor: pretify layout
VoitehovichXenia Sep 5, 2022
0514d59
fix: layout
PronkoEvgeniya Sep 5, 2022
adab452
Merge pull request #35 from PronkoEvgeniya/dev_kr1s
PronkoEvgeniya Sep 5, 2022
2ad86f3
Merge pull request #34 from PronkoEvgeniya/dev_xenia
PronkoEvgeniya Sep 5, 2022
6429292
feat: conflict solution
PronkoEvgeniya Sep 5, 2022
db75442
Merge pull request #36 from PronkoEvgeniya/dev_jen
Kr1s10 Sep 5, 2022
31a37e6
fix: infinity request on server
Kr1s10 Sep 8, 2022
b92b06e
Merge pull request #37 from PronkoEvgeniya/dev_kr1s
VoitehovichXenia Sep 11, 2022
910e99b
fix: layout bugs in dark-theme and adaptive
PronkoEvgeniya Sep 13, 2022
29693da
fix: layout
PronkoEvgeniya Sep 13, 2022
0d987d4
Merge pull request #38 from PronkoEvgeniya/dev_jen
Kr1s10 Sep 13, 2022
ce9c247
fix: change backend url
Kr1s10 Sep 20, 2023
ae7b981
Merge branch 'development' of https://github.com/PronkoEvgeniya/meows…
Kr1s10 Oct 19, 2023
9dc9b7c
fix: change backend url 2.0
Kr1s10 Oct 19, 2023
e6ec41e
fix: visabillity text on game timer in dark mode
Kr1s10 Oct 19, 2023
9e74b70
Merge pull request #39 from PronkoEvgeniya/dev_kr1s
Kr1s10 Oct 19, 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
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
react-app-env.d
47 changes: 47 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:react-hooks/recommended",
"plugin:prettier/recommended"
],
"plugins": ["@typescript-eslint", "react", "prettier", "react-hooks"],
"parserOptions": {
"ecmaVersion": 11,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"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-ignore": "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"
}
},
"env": {
"browser": true,
"es6": true,
"jest": true
},
"root": true
}
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
36 changes: 36 additions & 0 deletions .husky/_/husky.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/usr/bin/env sh
if [ -z "$husky_skip_init" ]; then
debug () {
if [ "$HUSKY_DEBUG" = "1" ]; then
echo "husky (debug) - $1"
fi
}

readonly hook_name="$(basename -- "$0")"
debug "starting $hook_name..."

if [ "$HUSKY" = "0" ]; then
debug "HUSKY env variable is set to 0, skipping hook"
exit 0
fi

if [ -f ~/.huskyrc ]; then
debug "sourcing ~/.huskyrc"
. ~/.huskyrc
fi

readonly husky_skip_init=1
export husky_skip_init
sh -e "$0" "$@"
exitCode="$?"

if [ $exitCode != 0 ]; then
echo "husky - $hook_name hook exited with code $exitCode (error)"
fi

if [ $exitCode = 127 ]; then
echo "husky - command not found in PATH=$PATH"
fi

exit $exitCode
fi
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run lint
14 changes: 14 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
dist
node_modules
package
package-lock
webpack.config

*.png
*.gif
*.svg
*.jpeg
*.jpg
*.ico
*.mp3
*.pdf
9 changes: 9 additions & 0 deletions .prettierrc.json
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"
}
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