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

Final code review #66

Open
wants to merge 276 commits into
base: final-code-review
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
276 commits
Select commit Hold shift + click to select a range
b59014f
Merge pull request #8 from MrPaschenko/top-5
akaeyuhi Mar 29, 2021
4841713
Update README.md
yaroshchuk8 Mar 30, 2021
331ab6d
Update README.md
yaroshchuk8 Mar 30, 2021
7603cb5
Update issue templates
MrPaschenko Mar 30, 2021
60284d2
Delete .github directory
MrPaschenko Mar 30, 2021
c0f0ab9
fixed link
MrPaschenko Mar 30, 2021
90cb319
Add files via upload
ILabiak Mar 31, 2021
0a1e0c5
Update index.js
ILabiak Mar 31, 2021
36eedb9
Api module
akaeyuhi Mar 31, 2021
961f004
Updated index.js to use new module
akaeyuhi Mar 31, 2021
78b1f9f
Update api.js
akaeyuhi Mar 31, 2021
c7ac226
Added static from method
akaeyuhi Mar 31, 2021
a785f40
Merge pull request #11 from MrPaschenko/api-module
akaeyuhi Mar 31, 2021
51a202a
Add module to resolve conflict
akaeyuhi Mar 31, 2021
c4192c2
Updated module to use new feature
akaeyuhi Mar 31, 2021
5394c9e
Resolved conflict in index.js
akaeyuhi Mar 31, 2021
faa7527
Merge branch 'master' into 24h-currency-volume
akaeyuhi Mar 31, 2021
cfb2341
Update index.js
akaeyuhi Mar 31, 2021
1a3bd3a
добавил ссылку на требования к курсовым работам
MrPaschenko Mar 31, 2021
6c92047
Revert "добавил ссылку на требования к курсовым работам"
akaeyuhi Mar 31, 2021
f64cb90
Add files via upload
ILabiak Apr 1, 2021
554f1a4
Update api.js
akaeyuhi Apr 1, 2021
81c6afe
Merge pull request #10 from MrPaschenko/24h-currency-volume
akaeyuhi Apr 1, 2021
0a05d14
Add files via upload
ILabiak Apr 2, 2021
e634965
Убрать отключение линтера
akaeyuhi Apr 2, 2021
0fa1f82
Merge pull request #20 from MrPaschenko/saving-results-to-txt-file
akaeyuhi Apr 2, 2021
9b0a586
Фикс CLRF
akaeyuhi Apr 2, 2021
24f9487
Update api.js
akaeyuhi Apr 2, 2021
c07c907
Update api.js
akaeyuhi Apr 2, 2021
059c549
Merge pull request #21 from MrPaschenko/error-handling
MrPaschenko Apr 2, 2021
00e63a4
Цветной вывод
ILabiak Apr 3, 2021
db8a91a
Optimize request function
akaeyuhi Apr 6, 2021
56321ae
Merge pull request #22 from MrPaschenko/colorful-output
akaeyuhi Apr 15, 2021
1fa4343
Add parser.py, add *.txt to gitignore
akaeyuhi Apr 15, 2021
45c383e
Add sys.stdout.flush()
akaeyuhi Apr 15, 2021
f1f3c76
Connected parser.py to index.js
akaeyuhi Apr 15, 2021
07738e1
Merge pull request #23 from MrPaschenko/nbu-parser
akaeyuhi Apr 15, 2021
4f51094
Fix typo
akaeyuhi Apr 15, 2021
199f6ca
Update themes.md
akaeyuhi Apr 15, 2021
33e6dd2
Update themes.md
akaeyuhi Apr 15, 2021
c552057
Delete index.ts
akaeyuhi Apr 15, 2021
9b6f1df
Delete tsconfig.json
akaeyuhi Apr 15, 2021
e54a6ad
Add package.json
akaeyuhi Apr 15, 2021
b7a5daf
Moved api and parser to /src/
akaeyuhi Apr 15, 2021
588b965
posRequest function, base method for wallet class
akaeyuhi Apr 18, 2021
c4d4ef3
Remove wrapped function to promised.js
akaeyuhi Apr 18, 2021
0e5f165
Fixed path
akaeyuhi Apr 18, 2021
290904f
Create wallet.js, moved class Wallet to wallet.js
akaeyuhi Apr 18, 2021
7aceaf4
Rename api.js to crypto.js
akaeyuhi Apr 18, 2021
3baed39
Fix typo
akaeyuhi Apr 18, 2021
baf35b7
Added import wallet to index.js
akaeyuhi Apr 18, 2021
ebc0ca0
Update wallet.js
akaeyuhi Apr 18, 2021
437ec9b
Merge pull request #25 from MrPaschenko/post-wallet
akaeyuhi Apr 18, 2021
8b4093f
Simple menu update
akaeyuhi Apr 18, 2021
2727e20
Merge pull request #26 from MrPaschenko/improve-menu
akaeyuhi Apr 18, 2021
2b6e8a9
Fix process.exit()
akaeyuhi Apr 19, 2021
55027c8
Modified "Create wallet" feature
ILabiak Apr 19, 2021
3e13106
Modified "Create wallet" feature
ILabiak Apr 19, 2021
1f391c1
eslint fixes, deleted blank paragraphs
MrPaschenko Apr 20, 2021
75329df
Menu punctuation fix
MrPaschenko Apr 20, 2021
e8fe226
Merge branch 'master' into edit_createWallet_feature
akaeyuhi Apr 22, 2021
d179656
Fixed code to be approved
akaeyuhi Apr 22, 2021
0fac263
Added private fields
akaeyuhi Apr 22, 2021
42eec35
Update wallet.js
akaeyuhi Apr 22, 2021
e03e0e2
Merge pull request #28 from MrPaschenko/edit_createWallet_feature
akaeyuhi Apr 22, 2021
e930f32
Update README.md
MrPaschenko Apr 24, 2021
331374f
Initial code to make unit tests
ILabiak Apr 25, 2021
5f7a9b1
Fixed methods to be used with assert
akaeyuhi Apr 25, 2021
4486d2e
Wrote initial test
akaeyuhi Apr 25, 2021
3c25755
Fixed index.js to use methods correctly
akaeyuhi Apr 25, 2021
bed8446
Added test script
akaeyuhi Apr 25, 2021
725157d
Update README.md
MrPaschenko May 4, 2021
aa8749a
Added credits
MrPaschenko May 4, 2021
e6c062b
Added "Contributing" paragraph
MrPaschenko May 4, 2021
f123006
Merge pull request #30 from MrPaschenko/readme
MrPaschenko May 5, 2021
d5773f0
Made 'BTC address balance' feature
ILabiak May 7, 2021
933eef6
Modified the feature
ILabiak May 7, 2021
ee1ca12
Merge pull request #31 from MrPaschenko/btc-address-balance
ILabiak May 11, 2021
61e41ec
eslint fixes, added monobank exchange rates
MrPaschenko May 16, 2021
9752470
added description of feature to readme
MrPaschenko May 16, 2021
9352136
currency code instead of number is shown now
MrPaschenko May 16, 2021
8a137e5
date in international format instead of unix time is shown now
MrPaschenko May 16, 2021
8dfbb91
updated readme
MrPaschenko May 16, 2021
1cb08d1
wrong month fix
MrPaschenko May 16, 2021
0b22f81
added missing currencies
MrPaschenko May 16, 2021
6921bcd
fixed readme
MrPaschenko May 16, 2021
736085d
three dots are migrating
MrPaschenko May 16, 2021
5ee7f76
Updated Readme.md
ILabiak May 16, 2021
7d629be
fixed conflicts
MrPaschenko May 16, 2021
fe3ddce
Merge branch 'master' into monobank-exchange-rates
MrPaschenko May 16, 2021
5630e2b
formatted json
MrPaschenko May 16, 2021
ca9baad
Merge remote-tracking branch 'origin/monobank-exchange-rates' into mo…
MrPaschenko May 16, 2021
de63b81
Created function cryptoNews in crypto.js and called it in index.js
yaroshchuk8 May 16, 2021
48db730
Deleted commented shit.
yaroshchuk8 May 16, 2021
ea928df
Modified cryptoNews function in crypto.js
yaroshchuk8 May 16, 2021
d56cdcd
now using request module from promised.js, also fixed bug with "Clear…
MrPaschenko May 17, 2021
83ce6be
Modified cryptoNews()
yaroshchuk8 May 17, 2021
da9a0d7
Resolved conflicts in index.js
yaroshchuk8 May 17, 2021
c7d9f40
Merge branch 'master' into crypto_news
akaeyuhi May 17, 2021
a15a5ca
Fix switch in genWalletFeature()
akaeyuhi May 17, 2021
0caea48
fix typo
akaeyuhi May 17, 2021
35c0662
menu() now uses array instead of switch
akaeyuhi May 17, 2021
a5ae6cc
Merge branch 'master' into Unit-tests
akaeyuhi May 17, 2021
266fd35
Modified cryptoNews() in crypto.js (according to code review).
yaroshchuk8 May 18, 2021
e445509
Merge pull request #38 from MrPaschenko/crypto_news
yaroshchuk8 May 18, 2021
28e029b
Merge branch 'master' of https://github.com/MrPaschenko/op-coursework
akaeyuhi May 18, 2021
5ca955b
Fix features array
akaeyuhi May 18, 2021
e97d8ee
Merge branch 'master' into monobank-exchange-rates
akaeyuhi May 18, 2021
19bf156
Create CODE_OF_CONDUCT.md
MrPaschenko May 18, 2021
77b29de
Create CONTRIBUTING.md
MrPaschenko May 18, 2021
ae12812
added privatbank exchange rates
MrPaschenko May 21, 2021
003bfe4
added description of privatbank exchange rates feature to readme
MrPaschenko May 21, 2021
84b8901
deleted excessive variable
MrPaschenko May 21, 2021
a7c7826
Fixed encoding problem in cryptoNews()
yaroshchuk8 May 22, 2021
5dcfa60
Fixed encoding problem in cryptoNews()
yaroshchuk8 May 22, 2021
4df18d6
Eslint fixes
yaroshchuk8 May 22, 2021
de8508c
Modified decodeString() in promised.js (according to code review)
yaroshchuk8 May 23, 2021
acf9347
Modified decodeString() in promised.js
yaroshchuk8 May 23, 2021
37331d0
Modified regExp[] and decodeString() in promised.js
yaroshchuk8 May 23, 2021
523d6d3
Merge pull request #41 from MrPaschenko/privatbank-exchange-rates
MrPaschenko May 24, 2021
2fca1db
Merge branch 'master' into crypto-news
MrPaschenko May 24, 2021
30fbaa1
Merge pull request #43 from MrPaschenko/crypto-news
MrPaschenko May 24, 2021
5581fa3
Added crypto fees feature
ILabiak May 24, 2021
6d25a8f
small change.
ILabiak May 24, 2021
ace1845
Create otherCurrency.js
akaeyuhi May 25, 2021
99ad8eb
Move feature functions to otherCurrency.js
akaeyuhi May 25, 2021
d071a86
Import features into index.js
akaeyuhi May 25, 2021
c9a53a6
Delete unuseful comm
akaeyuhi May 25, 2021
caefee2
Optimize request in cryptoNews()
akaeyuhi May 25, 2021
760b985
Move methods from crypto to otherCurrency
akaeyuhi May 25, 2021
9d3ff8b
Fix imports
akaeyuhi May 25, 2021
5a9b8f5
Move writeFile to promised.js, add wrappers in otherCurrency
akaeyuhi May 25, 2021
cd7a0f2
Fix imports in crypto.js
akaeyuhi May 25, 2021
9242816
Add functions to exports
akaeyuhi May 25, 2021
387d4e8
Fix index.js according to new file structure
akaeyuhi May 25, 2021
f49c96a
Rename otherCurrency to exchanges
akaeyuhi May 25, 2021
231ac0e
Fix path
akaeyuhi May 25, 2021
b9f1d85
Merge pull request #46 from MrPaschenko/fix-var-class
akaeyuhi May 25, 2021
b86c99e
Merge branch 'Unit-tests' into master
akaeyuhi May 25, 2021
e976673
Merge branch 'crypto-fees' into master
akaeyuhi May 25, 2021
4d4e0a5
Fixed CLRF and dublicates
akaeyuhi May 25, 2021
f3b79cc
Fix merge bug
akaeyuhi May 25, 2021
5e09268
Delete unused wrap
akaeyuhi May 25, 2021
0ff1bdf
Fix fee rates
akaeyuhi May 25, 2021
32b72e3
Move feesRate to exchanges.js
akaeyuhi May 25, 2021
3a46bab
Fixed conflict which appeared after merge
akaeyuhi May 25, 2021
972435f
Small code review fixes
akaeyuhi May 25, 2021
59c89fc
Merge pull request #50 from MrPaschenko/fix-fee
akaeyuhi May 25, 2021
aa2b259
eslint fixes, added empty paragraphs between class methods, deleted e…
MrPaschenko May 25, 2021
0c33fd5
Define objWrapper function
akaeyuhi May 26, 2021
b50fa34
Fix class wrapper, add handler to exports
akaeyuhi May 26, 2021
a7bf909
Add length check
akaeyuhi May 26, 2021
865cdc1
Add custom handlers support
akaeyuhi May 26, 2021
1ac911c
Fix context errors
akaeyuhi May 26, 2021
329b21b
Improve class handler
akaeyuhi May 26, 2021
008046e
Improve postRequest error handling
akaeyuhi May 26, 2021
2f8ebca
Eslint fix
akaeyuhi May 26, 2021
08d2202
Change name to classWrapper
akaeyuhi May 26, 2021
f1d5157
Small fixes
akaeyuhi May 26, 2021
ee7754d
Wrap writeFile
akaeyuhi May 26, 2021
1d335f6
currencyCodeNumber
MrPaschenko May 27, 2021
8f74ce4
fixed regex for letters
MrPaschenko May 27, 2021
356b3e5
added loop
MrPaschenko May 27, 2021
cf1687b
deleted unnecessary returns
MrPaschenko May 27, 2021
9487a39
Created transaction-info branch and transactionInfo() in crypto.js
yaroshchuk8 May 27, 2021
3b33eb4
added function description to readme
MrPaschenko May 27, 2021
ffdb16d
fixed
MrPaschenko May 27, 2021
386e44a
Modified transactionInfo()
yaroshchuk8 May 27, 2021
84d7db5
Create codeql-analysis.yml
MrPaschenko May 27, 2021
451dce8
Delete .github/workflows directory
MrPaschenko May 27, 2021
6206899
Modified transactionInfo()
yaroshchuk8 May 27, 2021
0347274
eslint
yaroshchuk8 May 27, 2021
0d0147b
Modified transactionInfo()
yaroshchuk8 May 27, 2021
2aca14d
Modified transactionInfo()
yaroshchuk8 May 27, 2021
89da9de
Modified transactionInfo()
yaroshchuk8 May 27, 2021
95813c5
Modified readme (-.-)
yaroshchuk8 May 27, 2021
474035b
Prettier fixes
akaeyuhi May 27, 2021
23f226c
Revert "deleted unnecessary returns"
MrPaschenko May 28, 2021
f00cac0
deleted double spaces and added empty paragraphs
MrPaschenko May 28, 2021
3ed71fd
added error handling if there is no match in codesList.json with ente…
MrPaschenko May 28, 2021
eff25f9
added .js to the file path
MrPaschenko May 28, 2021
25254e2
added console.log
MrPaschenko May 28, 2021
25b648a
Merge remote-tracking branch 'origin/currency-code-number' into curre…
MrPaschenko May 28, 2021
5a66625
changed to conditional (ternary) operator
MrPaschenko May 28, 2021
889d4fa
Merge pull request #52 from MrPaschenko/object-try-catch
akaeyuhi May 29, 2021
84571e3
Merge branch 'master' into currency-code-number
MrPaschenko May 29, 2021
9bd2690
Merge pull request #54 from MrPaschenko/currency-code-number
MrPaschenko May 29, 2021
356797b
Merge pull request #51 from MrPaschenko/clean-up-code
MrPaschenko May 29, 2021
1db76a3
Merge branch 'transaction-info' into master
akaeyuhi May 29, 2021
55cbd1c
Merge pull request #57 from MrPaschenko/master
akaeyuhi May 29, 2021
0018093
Update README.md
ILabiak May 29, 2021
a793fa2
added alternative source of nbu exchange rates (API)
MrPaschenko May 29, 2021
4b2288c
updated README.md
MrPaschenko May 29, 2021
ccfc11c
Merge pull request #58 from MrPaschenko/nbu-alternative
MrPaschenko May 29, 2021
d1d235a
created obj with colors in promised.js and export it to other files
MrPaschenko May 29, 2021
520d89d
Merge pull request #59 from MrPaschenko/colors-object
MrPaschenko May 30, 2021
c0aec70
Merge pull request #61 from MrPaschenko/master
yaroshchuk8 May 31, 2021
bace0c0
Moved transactionInfo() from crypto.js into exchanges.js (according o…
yaroshchuk8 May 31, 2021
e785338
Modified transactionInfo (quotes and hashDefaultLength constant)
yaroshchuk8 May 31, 2021
8278997
Modified transactionInfo
yaroshchuk8 May 31, 2021
729bf4d
Modified transactionInfo (eslint)
yaroshchuk8 May 31, 2021
2fcd653
Modified cryptoNews (magic number and stuff)
yaroshchuk8 May 31, 2021
36d9fb4
Modified cryptoNews and transactionInfo
yaroshchuk8 May 31, 2021
f43bcab
Modified transaction info(replaced for with for of) and cryptoNews (a…
yaroshchuk8 May 31, 2021
4b93e02
Modified transaction info (removed choiceNumbers[])
yaroshchuk8 May 31, 2021
0d6a0ff
Modified cryptoNews
yaroshchuk8 May 31, 2021
f4695a8
Modified cryptoNews (replaced loop with array.filer&map)
yaroshchuk8 May 31, 2021
add5363
Merge pull request #62 from MrPaschenko/transaction-info
yaroshchuk8 May 31, 2021
b60c736
minimized if statement and deleted excessive back quotes
MrPaschenko May 31, 2021
7f1e16f
Fix index.js according to code review
akaeyuhi Jun 1, 2021
a083008
Merge pull request #63 from MrPaschenko/currencyCodeNumber-enhancement
MrPaschenko Jun 1, 2021
f1ca9d9
updated .eslintrc.jsonm added .eslintignore and .prettierrc
MrPaschenko Jun 1, 2021
70ff994
applied eslint & prettier rules
MrPaschenko Jun 1, 2021
e9ddd9b
Merge branch 'master' into code-style
MrPaschenko Jun 1, 2021
d8a04e5
Merge pull request #64 from MrPaschenko/code-style
yaroshchuk8 Jun 1, 2021
41f9091
Eslint
yaroshchuk8 Jun 1, 2021
5147907
Testing stuff
yaroshchuk8 Jun 1, 2021
802e678
Testing stuff
yaroshchuk8 Jun 1, 2021
2c98638
Tests for transactionInfo(12) are done
yaroshchuk8 Jun 2, 2021
c4bbd9a
little corrections in names
yaroshchuk8 Jun 2, 2021
6cb3669
Modified tests (12)
yaroshchuk8 Jun 2, 2021
a85dccf
Created cryptoNews test (8) + modified cryptoNews
yaroshchuk8 Jun 2, 2021
f93cf13
Modified transactionInfo tests (12)
yaroshchuk8 Jun 2, 2021
17474de
Tests for cryptoNews(8) are done + Little change in handler(promised.js)
yaroshchuk8 Jun 3, 2021
d240d63
Test for feesRate(10) is done + Change in feesRate return
yaroshchuk8 Jun 3, 2021
cee5635
Changed error output in handler(promised.js)
yaroshchuk8 Jun 3, 2021
b5adf37
Update colors
akaeyuhi Jun 3, 2021
a7c1a2b
Add reset color
akaeyuhi Jun 3, 2021
a595b48
Tests for currencyPriceVolume(3) are done
yaroshchuk8 Jun 3, 2021
2583b08
Created test for currencyToCrypto(1) + Commented safeWrite in currenc…
yaroshchuk8 Jun 3, 2021
73d7861
Fixed link in readme
MrPaschenko Jun 3, 2021
bd23556
Fixed links in readme
MrPaschenko Jun 3, 2021
b696b29
Tests for currencyToCrypto(1) are done
yaroshchuk8 Jun 3, 2021
bd0544e
Added spaces and dots
MrPaschenko Jun 3, 2021
8622616
lil correction
yaroshchuk8 Jun 3, 2021
766a45b
Tests for topFiveCurrencies(2) are done + Commented safeWrite in topF…
yaroshchuk8 Jun 3, 2021
158e338
Tests for genWalletFeature(5) are done + Modified genWalletFeature(ex…
yaroshchuk8 Jun 3, 2021
701af4c
Tests for btcAdrBalance(6) are done + Modified btcAdrBalance(exchange…
yaroshchuk8 Jun 3, 2021
87e09d7
Test for monoExchange(7) is done + Modified monoExchange(exchanges.js)
yaroshchuk8 Jun 3, 2021
e4c529e
Tests for privatExchange(9) are ready + Modified privatExchange(excha…
yaroshchuk8 Jun 3, 2021
eeb60c8
Tests for currencyCodeNumber(11) are done + Modified currencyCodeNumb…
yaroshchuk8 Jun 3, 2021
83d67be
Test for nbuAlternative(11) is done + Modified nbuAlternative(exchang…
yaroshchuk8 Jun 3, 2021
f1bbe5f
Modified readme -.-
yaroshchuk8 Jun 3, 2021
ff40d76
Merge pull request #65 from MrPaschenko/unit-testing
yaroshchuk8 Jun 3, 2021
00df24a
Update README.md
MrPaschenko Jun 4, 2021
0a7e1d1
Update README.md
MrPaschenko Jun 4, 2021
b5b9bc4
Updated package.json
MrPaschenko Jun 4, 2021
dde7c86
Merge remote-tracking branch 'origin/master' into master
MrPaschenko Jun 4, 2021
1d81934
Update README.md
kreslavskiy Apr 22, 2022
396bb1d
Merge pull request #67 from kreslavskiy/patch-1
MrPaschenko Apr 22, 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
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
162 changes: 162 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2020
},
"rules": {
"indent": ["error", 2],
"linebreak-style": ["error", "unix"],
"quotes": [
"error",
"single",
{
"allowTemplateLiterals": true
}
],
"semi": ["error", "always"],
"no-loop-func": ["error"],
"block-spacing": ["error", "always"],
"camelcase": ["error"],
"eqeqeq": ["error", "always"],
"strict": ["error", "global"],
"brace-style": [
"error",
"1tbs",
{
"allowSingleLine": true
}
],
"comma-style": ["error", "last"],
"comma-spacing": [
"error",
{
"before": false,
"after": true
}
],
"eol-last": ["error"],
"func-call-spacing": ["error", "never"],
"key-spacing": [
"error",
{
"beforeColon": false,
"afterColon": true,
"mode": "minimum"
}
],
"keyword-spacing": [
"error",
{
"before": true,
"after": true,
"overrides": {
"function": {
"after": false
}
}
}
],
"max-len": [
"error",
{
"code": 80,
"ignoreUrls": true
}
],
"max-nested-callbacks": [
"error",
{
"max": 7
}
],
"new-cap": [
"error",
{
"newIsCap": true,
"capIsNew": false,
"properties": true
}
],
"new-parens": ["error"],
"no-lonely-if": ["error"],
"no-trailing-spaces": ["error"],
"no-unneeded-ternary": ["error"],
"no-whitespace-before-property": ["error"],
"object-curly-spacing": ["error", "always"],
"operator-assignment": ["error", "always"],
"operator-linebreak": ["error", "after"],
"semi-spacing": [
"error",
{
"before": false,
"after": true
}
],
"space-before-blocks": ["error", "always"],
"space-before-function-paren": [
"error",
{
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}
],
"space-in-parens": ["error", "never"],
"space-infix-ops": ["error"],
"space-unary-ops": [
"error",
{
"words": true,
"nonwords": false,
"overrides": {
"typeof": false
}
}
],
"no-unreachable": ["error"],
"no-global-assign": ["error"],
"no-self-compare": ["error"],
"no-unmodified-loop-condition": ["error"],
"no-constant-condition": [
"error",
{
"checkLoops": false
}
],
"no-console": ["off"],
"no-useless-concat": ["error"],
"no-useless-escape": ["error"],
"no-shadow-restricted-names": ["error"],
"no-use-before-define": [
"error",
{
"functions": false
}
],
"arrow-parens": ["error", "as-needed"],
"arrow-body-style": ["error", "as-needed"],
"arrow-spacing": ["error"],
"no-confusing-arrow": [
"error",
{
"allowParens": true
}
],
"no-useless-computed-key": ["error"],
"no-useless-rename": ["error"],
"no-var": ["error"],
"object-shorthand": ["error", "always"],
"prefer-arrow-callback": ["error"],
"prefer-const": ["error"],
"prefer-numeric-literals": ["error"],
"prefer-rest-params": ["error"],
"prefer-spread": ["error"],
"rest-spread-spacing": ["error", "never"],
"template-curly-spacing": ["error", "never"]
}
}
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Project exclude paths
/.idea/
/node_modules/
tsconfig.json
*.txt
10 changes: 10 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"singleQuote": true,
"trailingComma": "es5",
"overrides": [
{
"files": ".prettierrc",
"options": { "parser": "json" }
}
]
}
128 changes: 128 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
# Contributor Covenant Code of Conduct

## Our Pledge

We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, religion, or sexual identity
and orientation.

We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.

## Our Standards

Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
overall community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities

Community leaders are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in
response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.

Community leaders have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, and will communicate reasons for moderation
decisions when appropriate.

## Scope

This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official e-mail address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
https://t.me/MrPaschenko.
All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
reporter of any incident.

## Enforcement Guidelines

Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct:

### 1. Correction

**Community Impact**: Use of inappropriate language or other behavior deemed
unprofessional or unwelcome in the community.

**Consequence**: A private, written warning from community leaders, providing
clarity around the nature of the violation and an explanation of why the
behavior was inappropriate. A public apology may be requested.

### 2. Warning

**Community Impact**: A violation through a single incident or series
of actions.

**Consequence**: A warning with consequences for continued behavior. No
interaction with the people involved, including unsolicited interaction with
those enforcing the Code of Conduct, for a specified period of time. This
includes avoiding interactions in community spaces as well as external channels
like social media. Violating these terms may lead to a temporary or
permanent ban.

### 3. Temporary Ban

**Community Impact**: A serious violation of community standards, including
sustained inappropriate behavior.

**Consequence**: A temporary ban from any sort of interaction or public
communication with the community for a specified period of time. No public or
private interaction with the people involved, including unsolicited interaction
with those enforcing the Code of Conduct, is allowed during this period.
Violating these terms may lead to a permanent ban.

### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
the community.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.0, available at
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.

Community Impact Guidelines were inspired by [Mozilla's code of conduct
enforcement ladder](https://github.com/mozilla/diversity).

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see the FAQ at
https://www.contributor-covenant.org/faq. Translations are available at
https://www.contributor-covenant.org/translations.
3 changes: 3 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
If you have any ideas of how to improve the program, feel free to add new Issues on [Issues page](https://github.com/MrPaschenko/op-coursework/issues).

You can also create Pull Requests on [Pull Requests page](https://github.com/MrPaschenko/op-coursework/pulls), if you are famliar with JavaScript and Node.js.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (C) 2021 Dmytro Pashchenko, Ivan Labiak, Andrii Vostrikov, Vladyslav Yaroshchuk

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading