Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
386 commits
Select commit Hold shift + click to select a range
3b11af8
feat: add style page
May 23, 2024
c811107
feat: add style page
May 23, 2024
23ec611
feat: add style page
May 23, 2024
2c4fabe
fix: fix main block height issue
Friday-13 May 23, 2024
d27a66a
feat(header): add catalogue, about, profile buttons
dashaborzova May 24, 2024
3830aaa
feat(header): add cart button
dashaborzova May 24, 2024
4dc181b
fix(email-validator): add trim() to regex value
dashaborzova May 24, 2024
8d9348f
refactor: add and use util for email field input creating
Friday-13 May 24, 2024
b3f2855
refactor: create util for password field, use it for login and regist…
Friday-13 May 25, 2024
71d76fd
refactor: add util for name filed, apply it for registration page
Friday-13 May 25, 2024
d5f232e
feat: add main structure
Golosova76 May 25, 2024
5a96fc2
feat: add product-title
Golosova76 May 25, 2024
05f8484
refactor: create util for datepicker, use it in registration page
Friday-13 May 25, 2024
6c090f4
refactor: registration page refactoring
Friday-13 May 25, 2024
a3fa5e8
refactor(login): change email input type from email to text
dashaborzova May 25, 2024
b47a265
Merge pull request #139 from Friday-13/RSS-ECOMM-3_21
InStageTwo May 25, 2024
1a1e654
Merge pull request #140 from Friday-13/feat/ui-instruments
Friday-13 May 25, 2024
8e363ff
Merge branch 'release/catalog-product-profile' into header_navigation
InStageTwo May 25, 2024
26206fd
Merge pull request #141 from Friday-13/header_navigation
InStageTwo May 25, 2024
d05743f
feat(user profile): add user-page file
dashaborzova May 25, 2024
5c7fac3
feat: add products API
Golosova76 May 26, 2024
fa052c6
feat: add style product title
Golosova76 May 26, 2024
bab4092
feat: add page view, add page to router
Friday-13 May 27, 2024
31d450f
refactor: refactor products API
Golosova76 May 27, 2024
f26cd8f
feat: add card and catalog grid layout
Friday-13 May 27, 2024
66471a1
refactor: refactor products API
Golosova76 May 27, 2024
a16c904
refactor: refactor products API
Golosova76 May 28, 2024
653b9ba
feat: add img product
May 28, 2024
6437b1f
feat: add style product card
Golosova76 May 29, 2024
f0bea42
refactor: rework product card
Friday-13 May 29, 2024
01633e2
feat: add style product card
May 29, 2024
fcdbfd8
test: correct header test
Friday-13 May 29, 2024
2cc27e0
Merge branch 'feat/display-page-product' of github.com:Friday-13/eCom…
Friday-13 May 29, 2024
edd70ab
feat: add slider
May 29, 2024
e66c2e2
feat: add navigation and pagination slider
Golosova76 May 29, 2024
9eb4603
feat: add products fetching and displaying them in cards
Friday-13 May 29, 2024
d95aa49
feat: add product price and discounted price into product card
Friday-13 May 29, 2024
b2321ba
Merge pull request #142 from Friday-13/feat/RSS-ECOMM-3_01
Friday-13 May 30, 2024
b7bb9d7
Merge pull request #143 from Friday-13/feat/RSS-ECOMM-3_02
Friday-13 May 30, 2024
a81466b
fix: fir import issue in login page
Friday-13 May 30, 2024
b946e65
Merge branch 'feat/display-page-product' of github.com:Friday-13/eCom…
Friday-13 May 30, 2024
6c99ac9
style: apply prettier to styles
Friday-13 May 30, 2024
26b20fd
feat: add style product card
May 30, 2024
f5366ad
feat: add style slider
Golosova76 May 30, 2024
2acd058
Merge pull request #144 from Friday-13/feat/display-page-product
Golosova76 May 30, 2024
5255546
Merge branch 'release/catalog-product-profile' of github.com:Friday-1…
Friday-13 May 30, 2024
b7e0838
Merge pull request #145 from Friday-13/feat/catalog-page
Friday-13 May 30, 2024
c221fa8
feat: add control barr for catalog page, add filter and sorting buttons
Friday-13 May 30, 2024
671c1be
feat: add modal window for filters
Friday-13 May 30, 2024
e010395
feat: add style slider
May 31, 2024
119285e
feat: add brend img
May 31, 2024
77d6acb
feat: add slider controls for price and piece count filters
Friday-13 May 31, 2024
398252c
feat: add prices and discounted price
Golosova76 Jun 1, 2024
425d9e7
feat: add price filter
Friday-13 Jun 1, 2024
a8de201
Merge pull request #146 from Friday-13/feat/display-page-product
Golosova76 Jun 1, 2024
d87a4cf
feat: add piece count filter
Friday-13 Jun 1, 2024
4b1c404
refactor: remove old comments
Friday-13 Jun 1, 2024
1ea6581
feat: add reset filter button
Friday-13 Jun 1, 2024
4f523a6
feat: add chips with applyed filters description
Friday-13 Jun 1, 2024
e262cf3
Merge pull request #147 from Friday-13/feat/RSS-ECOMM-3_03
Friday-13 Jun 1, 2024
c9391c4
Merge branch 'feat/catalog-page' of github.com:Friday-13/eCommerce-Ap…
Friday-13 Jun 1, 2024
bf31f13
Merge branch 'release/catalog-product-profile' of github.com:Friday-1…
Friday-13 Jun 1, 2024
303ea31
feat: add modal
Golosova76 Jun 1, 2024
91e50ae
feat: add modal slider
Golosova76 Jun 1, 2024
102abc0
feat: add sorting functionality
Friday-13 Jun 2, 2024
7214cbd
feat: add modal close
Golosova76 Jun 2, 2024
76580ff
feat: add adaptive modal
Golosova76 Jun 2, 2024
f5a6735
feat: add close modal
Golosova76 Jun 2, 2024
00daf1a
feat: add block scroll
Golosova76 Jun 2, 2024
4362a01
feat: add style navbar button
Golosova76 Jun 2, 2024
854ee0c
feat: add style navbar button
Golosova76 Jun 2, 2024
ccc5769
Merge pull request #148 from Friday-13/feat/RSS-ECOMM-3_04
Friday-13 Jun 2, 2024
e45bc0f
feat: add style slider
Golosova76 Jun 2, 2024
cf54125
feat: add style slider
Golosova76 Jun 2, 2024
a499073
Merge branch 'feat/catalog-page' of github.com:Friday-13/eCommerce-Ap…
Golosova76 Jun 2, 2024
f4dcacf
feat: add search product functionality
Friday-13 Jun 2, 2024
381e647
feat: add style burger
Golosova76 Jun 2, 2024
387e0b1
feat: add clear icon for search field
Friday-13 Jun 2, 2024
d81dcfa
refactor: rewrite search input like view
Friday-13 Jun 2, 2024
7116436
refactor: implement separate view for dropdown
Friday-13 Jun 2, 2024
20a8417
feat: prepare drop-down for category list
Friday-13 Jun 2, 2024
c197da2
feat: add category query function, category model and parse function
Friday-13 Jun 2, 2024
4f58208
feat: add category navigation
Friday-13 Jun 2, 2024
69007c4
feat: add style modal slider
Jun 3, 2024
fecc40b
feat: implement breadcrumbs for active category
Friday-13 Jun 3, 2024
484a7b9
Merge pull request #149 from Friday-13/feat/RSS-ECOMM-3_05
Friday-13 Jun 3, 2024
c16814d
Merge branch 'feat/catalog-page' of github.com:Friday-13/eCommerce-Ap…
Friday-13 Jun 3, 2024
1838c12
Merge pull request #151 from Friday-13/feat/RSS-ECOMM-3_08
Friday-13 Jun 3, 2024
86c78ff
Merge pull request #152 from Friday-13/feat/modal-with-slider
Golosova76 Jun 3, 2024
99f30a6
Merge branch 'release/catalog-product-profile' of github.com:Friday-1…
Friday-13 Jun 3, 2024
44b08f2
feat: add routing product brend
Jun 3, 2024
8154f5f
Merge branch 'feat/RSS-ECOMM-3_19' of github.com:Friday-13/eCommerce-…
Friday-13 Jun 3, 2024
ee4735d
feat: add hover effect to product card
Friday-13 Jun 3, 2024
3eae8d6
feat: add pointer to card details icon
Friday-13 Jun 3, 2024
a312642
feat: add trimm content into cards
Friday-13 Jun 3, 2024
ad839eb
feat: add routing hash
Golosova76 Jun 3, 2024
caba154
feat: Display user information
dashaborzova Jun 3, 2024
673d209
feat: add routing hash
Golosova76 Jun 3, 2024
16d7249
feat: display user information
dashaborzova Jun 3, 2024
c4d2e5b
feat: display user information
dashaborzova Jun 3, 2024
bdb74d6
feat: add price aligment on cards
Friday-13 Jun 3, 2024
dc1ba58
Merge branch 'RSS-ECOMM-3_14' of github.com:Friday-13/eCommerce-Appli…
Friday-13 Jun 3, 2024
7d58a75
refactor(profile page): resolve conflicts
dashaborzova Jun 3, 2024
2b8853f
Merge pull request #155 from Friday-13/RSS-ECOMM-3_14
InStageTwo Jun 3, 2024
fc8347b
feat: add go to product details button into card description
Friday-13 Jun 3, 2024
804b1ff
Merge pull request #154 from Friday-13/feat/RSS-ECOMM-3_19
Golosova76 Jun 3, 2024
6498401
Merge pull request #156 from Friday-13/feat/RSS-ECOMM-3_06
Friday-13 Jun 3, 2024
8df97a5
Merge branch 'release/catalog-product-profile' of github.com:Friday-1…
Friday-13 Jun 3, 2024
8dbe8b0
fix: replace old vesion routing
Friday-13 Jun 3, 2024
337e708
Merge pull request #157 from Friday-13/feat/catalog-page
Friday-13 Jun 3, 2024
7a2963d
feat(profile page): add profile page
dashaborzova Jun 3, 2024
ee19c6f
refactor(header): change catalogue to catalog
dashaborzova Jun 3, 2024
79f26f8
Merge pull request #158 from Friday-13/feat/user-profile
InStageTwo Jun 3, 2024
9c15d70
feat: add routing profile
Jun 4, 2024
e0c7471
fix: resize catalog images
Friday-13 Jun 4, 2024
163dc5e
refactor: add app.ts change
Jun 4, 2024
51a9f45
feat: add updating user details
Jun 4, 2024
1decef0
refactor: add app.ts change
Golosova76 Jun 5, 2024
ef746ad
Merge pull request #159 from Friday-13/feat/refactor-products
Golosova76 Jun 5, 2024
db11c8b
Merge pull request #160 from Friday-13/feat/RSS-ECOMM-3_15
Golosova76 Jun 5, 2024
6e4812b
refactor: refactor slider
Jun 5, 2024
23652da
refactor: refactor modal slider
Jun 5, 2024
d6f690e
refactor: refactor modal slider
Jun 5, 2024
5357aea
Merge pull request #161 from Friday-13/refactor/slider-modal
Golosova76 Jun 5, 2024
d02e3b5
Merge pull request #94 from Friday-13/release/login-registration-main
Friday-13 Jun 8, 2024
54845cd
Merge branch 'develop' of github.com:Friday-13/eCommerce-Application …
Friday-13 Jun 8, 2024
fc607ad
Merge pull request #153 from Friday-13/release/catalog-product-profile
Friday-13 Jun 8, 2024
347bca0
refactor: add refactor API request
Golosova76 Jun 9, 2024
21d6d2d
refactor: add refactor API request
Golosova76 Jun 9, 2024
20c2bc1
feat: add button add cart
Golosova76 Jun 9, 2024
597f6a7
feat: add create cart user
Jun 10, 2024
64225e6
feat(main page): add card component
dashaborzova Jun 11, 2024
52d0ba7
refactor(card component): change input value argument
dashaborzova Jun 11, 2024
c269044
refactor(card component): modify card compomemt for further use, make…
dashaborzova Jun 11, 2024
bd43244
feat: add anonym cart products
Golosova76 Jun 11, 2024
02f9922
refactor: add special view for page, refactor catalog page
Friday-13 Jun 11, 2024
ee29b1e
feat: add register cart products
Golosova76 Jun 12, 2024
e70f198
feat: add simple layout scheme for basket page
Friday-13 Jun 12, 2024
5684975
feat: add register cart products
Golosova76 Jun 12, 2024
43dab2f
Merge pull request #204 from Friday-13/feat/RSS-ECOMM-4_07
Golosova76 Jun 12, 2024
561807e
Merge pull request #205 from Friday-13/feat/add-remove-product-cart
Golosova76 Jun 12, 2024
8715d65
fix: add id's for inputs in sign up page
Friday-13 Jun 12, 2024
7b22c97
Merge pull request #206 from Friday-13/feat/RSS-ECOMM-4_10
Friday-13 Jun 12, 2024
80cdab6
refactor(card component): divide card component structure into basic …
dashaborzova Jun 12, 2024
49690f1
Merge branch 'release/basket-about_us' of github.com:Friday-13/eComme…
Friday-13 Jun 12, 2024
968ce55
Merge pull request #203 from Friday-13/RSS-ECOMM-4_16
InStageTwo Jun 12, 2024
3b9bfa3
feat(header): implement about us and cart page icon
dashaborzova Jun 12, 2024
b520c80
fix(header): change header.test to pass
dashaborzova Jun 12, 2024
2e2913b
fix(header): header.test fix
dashaborzova Jun 12, 2024
a47ff0c
fix(header): changed about us string into group
dashaborzova Jun 12, 2024
c7bd328
fix(header): changed cart into shopping cart to pass
dashaborzova Jun 12, 2024
2056539
Merge pull request #207 from Friday-13/RSS-ECOMM-4_23
InStageTwo Jun 14, 2024
7acec88
feat: add draft realization of separate flow work
Friday-13 Jun 14, 2024
865ad6b
feat(about us page): add draft member cards
dashaborzova Jun 14, 2024
fe1bfda
feat: add one entery point for every root for different flow
Friday-13 Jun 15, 2024
2895a6b
refactor: remove unused files
Friday-13 Jun 15, 2024
cbf3a76
fix: add removing token and user name from local storage on logout
Friday-13 Jun 15, 2024
37fe978
Merge branch 'release/basket-about_us' of github.com:Friday-13/eComme…
Friday-13 Jun 15, 2024
3a4217e
feat: add interface cart
Golosova76 Jun 15, 2024
af61950
Merge pull request #208 from Friday-13/feat/token-authorization
Friday-13 Jun 15, 2024
3433a0b
feat: add cart in page
Golosova76 Jun 16, 2024
17cb821
feat: add cart in page
Golosova76 Jun 16, 2024
2c029bd
feat: add pagination view, config pagination layout
Friday-13 Jun 16, 2024
18ddb39
feat: add styles cart page
Golosova76 Jun 16, 2024
ad89208
feat(about us): add collaboration and contribution sections
dashaborzova Jun 16, 2024
2bcbaa2
feat: add pagination feature
Friday-13 Jun 16, 2024
a7a85d9
refactor: refactor api work
Golosova76 Jun 17, 2024
d449bc9
feat(about us page): add rsschool logo
dashaborzova Jun 17, 2024
dc5ce62
Merge branch 'release/basket-about_us' of https://github.com/Friday-1…
dashaborzova Jun 17, 2024
4263f6a
feat(about us page): add bio item
dashaborzova Jun 17, 2024
ebb1833
Merge pull request #209 from Friday-13/feat/RSS-ECOMM-4_03
Friday-13 Jun 17, 2024
b4e3192
feat: add block button add to cart
Jun 17, 2024
b6be0ef
feat: add styles cart page
Jun 17, 2024
f52381d
feat: add add to cart button into product card
Friday-13 Jun 17, 2024
91a4ec4
feat(about us page): add contributions, change images
dashaborzova Jun 17, 2024
b7764ba
feat(about us page): add contributions, change images
dashaborzova Jun 17, 2024
3b48233
Merge pull request #210 from Friday-13/RSS-ECOMM-4_19
InStageTwo Jun 17, 2024
2b002b4
Merge branch 'release/basket-about_us' of github.com:Friday-13/eComme…
Friday-13 Jun 17, 2024
bbd542b
Merge branch 'release/basket-about_us' of github.com:Friday-13/eComme…
Friday-13 Jun 17, 2024
3459062
Merge branch 'feat/add-remove-product-cart' of github.com:Friday-13/e…
Friday-13 Jun 17, 2024
982e258
feat: add empty cart message with link to catalog page
Friday-13 Jun 17, 2024
dd57412
Merge pull request #212 from Friday-13/feat/RSS-ECOMM-4_14
Friday-13 Jun 17, 2024
0e2fa90
Merge branch 'release/basket-about_us' of github.com:Friday-13/eComme…
Friday-13 Jun 17, 2024
60aff53
Merge branch 'feat/catalog-page' of github.com:Friday-13/eCommerce-Ap…
Friday-13 Jun 17, 2024
844cfe9
feat: add update total price method
Friday-13 Jun 17, 2024
3b88a77
feat: show discounted price only when discount applyed
Friday-13 Jun 18, 2024
0c031cc
feat: add fetching actual promocodes to main
Friday-13 Jun 18, 2024
a8a49e9
feat: add register user
Jun 18, 2024
5586435
Merge pull request #213 from Friday-13/feat/RSS-ECOMM-4_16
Friday-13 Jun 18, 2024
3f8b300
Merge branch 'feat/basket-page' of github.com:Friday-13/eCommerce-App…
Jun 18, 2024
fe5d817
Merge pull request #214 from Friday-13/feat/add-remove-product-cart
Golosova76 Jun 18, 2024
1c48691
feat: add delete product
Jun 18, 2024
c1f0ef4
feat: add delete product
Golosova76 Jun 18, 2024
c303856
Merge branch 'feat/add-remove-product-cart' of github.com:Friday-13/e…
Friday-13 Jun 18, 2024
8ce09a7
feat: add updating anonymus cart, add creating anonymus cart
Friday-13 Jun 18, 2024
f1a81a7
feat: add removing product from anonymus cart
Friday-13 Jun 18, 2024
f2f3379
feat: add creating castomer cart
Friday-13 Jun 19, 2024
8474c24
feat: add cart merging
Friday-13 Jun 19, 2024
17719b3
refactor: refactor style about us page
Jun 19, 2024
29c2660
feat: add adaptive page about
Jun 19, 2024
afc6719
refactor: refactor basket api on packet content
Friday-13 Jun 19, 2024
bd0ac6d
feat: add count digits
Jun 19, 2024
3d82ae4
feat: add jest test cookie
Jun 19, 2024
0bffbbd
feat: add promocodes applying
Friday-13 Jun 19, 2024
7d9ce37
fix: load basket only after cart creating
Friday-13 Jun 19, 2024
ae81290
feat: add updating summary on removing
Friday-13 Jun 19, 2024
780a529
refactor: make cartdata optional
Friday-13 Jun 19, 2024
7fe6092
refactor: return Cartdata value
Friday-13 Jun 19, 2024
d0ee88f
feat: change product per page number
Friday-13 Jun 19, 2024
80a3624
Merge branch 'feat/catalog-page' of github.com:Friday-13/eCommerce-Ap…
Friday-13 Jun 19, 2024
210e224
Merge pull request #215 from Friday-13/feat/RSS-ECOMM-4_01
Friday-13 Jun 19, 2024
b077303
Merge pull request #216 from Friday-13/feat/catalog-page
Friday-13 Jun 19, 2024
b7f6d81
Merge branch 'release/basket-about_us' of github.com:Friday-13/eComme…
Friday-13 Jun 19, 2024
62b08c6
Merge pull request #217 from Friday-13/fix/basket-configuration
Friday-13 Jun 19, 2024
de9094b
Merge branch 'feat/add-remove-product-cart' of github.com:Friday-13/e…
Friday-13 Jun 19, 2024
683e41e
feat: add adding product from catalog
Friday-13 Jun 19, 2024
2c0a0fd
feat: add checking if current product is already inside the cart
Friday-13 Jun 19, 2024
927e75c
feat: add adding/removing product quantity
Friday-13 Jun 19, 2024
cdb23cd
refactor: rewrire product page with current-cart implementation
Friday-13 Jun 19, 2024
87705a6
feat: add clear cart layout
Friday-13 Jun 19, 2024
45bf9fb
feat: add removing cart and creatin new
Friday-13 Jun 19, 2024
407ecab
fix: fix export error
Friday-13 Jun 19, 2024
6c919e6
feat: add hiding/showing submit block on summary
Friday-13 Jun 19, 2024
8e5646a
feat: add updating cart view after delating products
Friday-13 Jun 19, 2024
469f9e9
Merge pull request #218 from Friday-13/feat/basket-page
Golosova76 Jun 19, 2024
8dfae6f
feat(profile): add editing personal info via api
dashaborzova Jun 24, 2024
4325f77
feat: add delete button product
Golosova76 Jun 25, 2024
2780e2a
feat: add parallax effect to main page, add section with store name a…
Friday-13 Jun 25, 2024
f749a19
refactor: apply prettier to styles
Friday-13 Jun 25, 2024
295817b
test: fix cookie test
Friday-13 Jun 25, 2024
7aa8d1c
Merge pull request #219 from Friday-13/feat/delete-button-page-product
Friday-13 Jun 25, 2024
a47b45a
feat: add remove product from cart functionality to product page
Friday-13 Jun 25, 2024
3d83156
Merge pull request #221 from Friday-13/feat/main-enhancement
Friday-13 Jun 25, 2024
9bba9e7
fix: fix locking body after checkout between pages
Friday-13 Jun 25, 2024
570ce23
fix: add updating empty cart message for anonymus cart
Friday-13 Jun 25, 2024
8c21666
feat(profile): password change
dashaborzova Jun 25, 2024
7573cb1
fix: fix total price calculating, add quantity influence
Friday-13 Jun 25, 2024
60fa278
fix: remove the entire quantity of a product from the product page
Friday-13 Jun 25, 2024
45f8dc4
Merge branch 'release/basket-about_us' of github.com:Friday-13/eComme…
Friday-13 Jun 25, 2024
b473efc
fix: add relogin after changing password
Friday-13 Jun 26, 2024
56e7f99
feat: turn off client logger
Friday-13 Jun 26, 2024
041ab38
feat(profile): add password change
dashaborzova Jun 26, 2024
4c1e2e4
Merge pull request #222 from Friday-13/fix/basket-page
Friday-13 Jun 26, 2024
ca2fde6
Merge branch 'release/basket-about_us' of https://github.com/Friday-1…
dashaborzova Jun 26, 2024
edd27fc
Merge pull request #223 from Friday-13/profile/refactor
InStageTwo Jun 26, 2024
e693bac
feat: add card style to product-page
Friday-13 Jun 26, 2024
0ee0b17
docs(readme): add lego in description and materilize
dashaborzova Jun 27, 2024
27993d9
Merge pull request #224 from Friday-13/final-readme
Friday-13 Jun 27, 2024
befe0bd
Merge pull request #211 from Friday-13/release/basket-about_us
Friday-13 Jun 27, 2024
cb50b6d
fix: scss style fix
Friday-13 Jun 27, 2024
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
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
root = true

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

[*.js]
quote_type = single

[*.md]
trim_trailing_whitespace = false

[*.json]
insert_final_newline = false
6 changes: 6 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
VITE_CTP_PROJECT_KEY=codecraft
VITE_CTP_CLIENT_SECRET=8H8kfJOI5DqnRMIobl37_gBx63Kjj37s
VITE_CTP_CLIENT_ID=XThWm-pvlubjsXcJbrBlY0c0
VITE_CTP_AUTH_URL=https://auth.europe-west1.gcp.commercetools.com
VITE_CTP_API_URL=https://api.europe-west1.gcp.commercetools.com
VITE_CTP_SCOPES=manage_project:codecraft manage_api_clients:codecraft view_api_clients:codecraft view_audit_log:codecraft
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
__mocks__/*
67 changes: 67 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
module.exports = {
env: {
browser: true,
commonjs: true,
es2021: true,
node: true,
},
ignorePatterns: [
'.eslintrc.cjs',
'jest.config.cjs',
'**/node_modules/**',
'commitlint.config.cjs',
],
parser: '@typescript-eslint/parser',
extends: [
'airbnb-base',
'airbnb-typescript/base',
'plugin:prettier/recommended',
'plugin:@typescript-eslint/recommended',
],
overrides: [
{
env: {
node: true,
},
files: ['.eslintrc.{js,cjs}'],
parserOptions: {
sourceType: 'script',
},
},
],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: './tsconfig.json',
tsconfigRootDir: __dirname,
},
rules: {
'prettier/prettier': [
'error',
{
endOfLine: 'auto',
},
],
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: true,
},
],
'@typescript-eslint/dot-notation': 'error',
'no-underscore-dangle': 'off',
},
settings: {
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx'],
},
'import/resolver': {
typescript: { alwaysTryTypes: true },
node: {
extensions: ['.js', '.jsx', '.json', '.scss', '.html', '.ts', '.tsx'],
},
},
},
plugins: ['@typescript-eslint', 'prettier'],
noInlineConfig: false,
};
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Related task(s)/issue(s) :link:

- [link](https://github.com/)
- [link](https://github.com/)

## Description :clipboard:

Expand Down
115 changes: 115 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
# 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

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# 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 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

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
.ntvs
*.njsproj
*.sln
*.sw?
2 changes: 2 additions & 0 deletions .husky/_/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env sh
. "${0%/*}/h"
20 changes: 20 additions & 0 deletions .husky/_/h
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env sh
[ "$HUSKY" = "2" ] && set -x
h="${0##*/}"
s="${0%/*/*}/$h"

[ ! -f "$s" ] && exit 0

for f in "${XDG_CONFIG_HOME:-$HOME/.config}/husky/init.sh" "$HOME/.huskyrc"; do
# shellcheck disable=SC1090
[ -f "$f" ] && . "$f"
done

[ "${HUSKY-}" = "0" ] && exit 0

sh -e "$s" "$@"
c=$?

[ $c != 0 ] && echo "husky - $h script failed (code $c)"
[ $c = 127 ] && echo "husky - command not found in PATH=$PATH"
exit $c
Empty file added .husky/_/husky.sh
Empty file.
20 changes: 20 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env sh

# Запустить Prettier для форматирования файлов
echo "Running Prettier..."
npm run format

# Запустить ESLint для проверки JavaScript и TypeScript файлов
echo "Running ESLint..."
npm run lint:js

# Запустить Stylelint для проверки CSS и SCSS файлов
echo "Running Stylelint..."
npm run lint:css

# Проверка коммита с использованием commitlint
echo "Validating commit message..."
git log -1 --pretty=%B | npx commitlint


echo "Pre-commit hook is running"
5 changes: 5 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env sh

# Запуск тестов Jest
echo "Running Jest..."
npm run jest:test
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
build
dist
# Ignore all HTML files:
**/*.html
28 changes: 28 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"bracketSpacing": true,
"printWidth": 80,
"overrides": [
{
"files": "*.css",
"options": {
"singleQuote": false
}
},
{
"files": "*.scss",
"options": {
"singleQuote": false
}
},
{
"files": "*.html",
"options": {
"singleQuote": false
}
}
]
}
6 changes: 6 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules
bin
dist
*.*
!*.css
!*.scss
49 changes: 49 additions & 0 deletions .stylelintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
import { propertyGroups } from 'stylelint-config-clean-order';

const propertiesOrder = propertyGroups.map((properties) => ({
noEmptyLineBetween: true,
emptyLineBefore: 'never', // Don't add empty lines between order groups.
properties,
}));

export default {
extends: [
'stylelint-config-standard',
'stylelint-config-standard-scss',
'stylelint-config-clean-order',
],
plugins: [
'stylelint-scss',
'stylelint-order',
'stylelint-declaration-block-no-ignored-properties',
],
rules: {
'order/order': [
[
'custom-properties',
'dollar-variables',
'at-rules',
'declarations',
{
type: 'at-rule',
name: 'supports',
},
'rules',
{
type: 'at-rule',
name: 'media',
},
],
{ severity: 'warning' },
],
'plugin/declaration-block-no-ignored-properties': true,
'order/properties-alphabetical-order': null,
'order/properties-order': [
propertiesOrder,
{
severity: 'warning',
unspecified: 'bottomAlphabetical',
},
],
},
};
Loading