Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
439 commits
Select commit Hold shift + click to select a range
09c3b35
fix: make Account icon in header clickable on mobile devices
eugenebalts Aug 22, 2023
9783742
feat: implement get user after reload page
asuponev Aug 24, 2023
bdb9ab0
fix: correct set isAuth in state
asuponev Aug 24, 2023
3cbbc2d
refactor: remove unnecessary methods in HeaderUser class
asuponev Aug 24, 2023
6ba88b1
refactor: remove unnecessary lines in header-user.ts
asuponev Aug 24, 2023
0bfa24b
fix: implement handle error for getUser
asuponev Aug 24, 2023
2aa4934
Merge pull request #94 from this-is-this-team/68-get_user_after_reload
asuponev Aug 24, 2023
b12e386
Merge branch 'release/login-registration-main' of https://github.com/…
asuponev Aug 24, 2023
1db7c09
fix: implement close dropdown on mobile devices
asuponev Aug 24, 2023
06f764e
fix: add listener on body when dropdown opened and remove listener wh…
asuponev Aug 24, 2023
4ac179d
Merge pull request #92 from this-is-this-team/72-fix_account_dropdown…
asuponev Aug 24, 2023
8b894bc
refactor: change arguments for Breadcrumbs component
asuponev Aug 25, 2023
85d0b94
test: add testing of breadcrumbs component
asuponev Aug 25, 2023
1728eb1
test: add tests for a Input component
MaxLisyanskiy Aug 25, 2023
1b12e1d
test: add types
MaxLisyanskiy Aug 25, 2023
f89bd98
test: add tests for a Notification component
MaxLisyanskiy Aug 25, 2023
baa6fab
Merge pull request #97 from this-is-this-team/77-testing_of_notificat…
asuponev Aug 25, 2023
bb0e60b
Merge pull request #96 from this-is-this-team/76-testing_of_input_com…
asuponev Aug 25, 2023
ad00508
Merge pull request #95 from this-is-this-team/73-testing_of_breadcrum…
asuponev Aug 25, 2023
ac24fc3
test: add tests for Banner component
eugenebalts Aug 25, 2023
ff70e61
Merge pull request #98 from this-is-this-team/71-testing_of_banner_co…
asuponev Aug 25, 2023
4c1eae4
test: add tests for footer component
eugenebalts Aug 25, 2023
4c5e9fa
Merge pull request #99 from this-is-this-team/74-testing_of_footer_co…
asuponev Aug 25, 2023
eadd141
Merge pull request #62 from this-is-this-team/release/login-registrat…
asuponev Aug 25, 2023
56e3efb
refactor: rename functions apiRoot by type flow
asuponev Aug 25, 2023
2f2bc73
chore: update fonts options in variables.scss
asuponev Aug 25, 2023
acf1658
chore: update bg-images
asuponev Aug 25, 2023
9e37d8f
feat: add catalog page
asuponev Aug 25, 2023
b6f871b
feat: implement display product list on catalog page
asuponev Aug 25, 2023
24b6597
feat: add placeholder image for product-card
asuponev Aug 27, 2023
62d43cb
fix: implement lazy loading routing
asuponev Aug 27, 2023
307a224
refactor: remove unneeded code for forms reset
asuponev Aug 27, 2023
321d182
refactor: rename apirRoot functions
asuponev Aug 27, 2023
7c3e64c
feat: add placeholder text to product-list when products are not avai…
asuponev Aug 27, 2023
6327d31
Merge pull request #100 from this-is-this-team/79-display_product_list
asuponev Aug 28, 2023
efaa1e4
feat: add routing for navigation between Catalog page, Product detail…
MaxLisyanskiy Aug 28, 2023
c15f078
feat: add routing for navigation to User Profile page
MaxLisyanskiy Aug 28, 2023
faaa7ed
feat: add User Profile links
MaxLisyanskiy Aug 28, 2023
bbd4a80
feat: add account-middleware & change auth-middleware
MaxLisyanskiy Aug 28, 2023
13165e1
feat: add subcategory route
MaxLisyanskiy Aug 28, 2023
d9f001c
Merge pull request #101 from this-is-this-team/91-routing_implementation
MaxLisyanskiy Aug 29, 2023
8e2f131
feat: display needed info on product card
asuponev Aug 30, 2023
c9a80db
fix: save date of birth when registering
asuponev Aug 30, 2023
b6f5a94
refactor: cardMedia part make as link for redirect to Product Page
asuponev Aug 31, 2023
5b354e9
feat: create function for get product by id
eugenebalts Aug 31, 2023
3054886
feat: create general structure of product form
eugenebalts Aug 31, 2023
d9dee01
feat: create main information about product
eugenebalts Aug 31, 2023
a72cfe1
Merge pull request #102 from this-is-this-team/80-catalog_enhancements
asuponev Aug 31, 2023
be8658c
Merge pull request #104 from this-is-this-team/103-save_date_of_birth…
asuponev Aug 31, 2023
dd3270c
feat: draw routes and rest-info about product
eugenebalts Aug 31, 2023
2b6cac0
feat: add showLogoutBtn in breadcrumbs
MaxLisyanskiy Sep 1, 2023
dda7812
fix: change header z-index
MaxLisyanskiy Sep 1, 2023
459754b
feat: add List component
MaxLisyanskiy Sep 1, 2023
e5b8db3
feat: add account-details component
MaxLisyanskiy Sep 1, 2023
5e34da1
feat: add ListDataType
MaxLisyanskiy Sep 1, 2023
eb55106
fix: change addresses keyName
MaxLisyanskiy Sep 1, 2023
320bc03
refactor: change listItem tag and styles
MaxLisyanskiy Sep 1, 2023
55e03ff
fix: add header border-bottom
MaxLisyanskiy Sep 1, 2023
e3dee9a
feat: add account-addresses component
MaxLisyanskiy Sep 1, 2023
7ca52bf
feat: add adaptive for account-details component
MaxLisyanskiy Sep 1, 2023
b5571bc
feat: add account-page
MaxLisyanskiy Sep 1, 2023
bc1e321
feat: add account-page route
MaxLisyanskiy Sep 1, 2023
362813d
refactor: correct imports
MaxLisyanskiy Sep 1, 2023
cea751e
init: start details-edit issue
MaxLisyanskiy Sep 1, 2023
c273fab
feat: add default addresses sup
MaxLisyanskiy Sep 1, 2023
dec0f4c
Merge pull request #105 from this-is-this-team/83-create_user_profile…
MaxLisyanskiy Sep 2, 2023
c9dea5f
Merge branch 'release/catalog-product-profile' of https://github.com/…
MaxLisyanskiy Sep 2, 2023
d797d9d
feat: add adaptive rules
eugenebalts Sep 2, 2023
00747b2
feat: add getProductName method and change building structure
eugenebalts Sep 2, 2023
daef8b5
feat: create product-page and add routes
eugenebalts Sep 2, 2023
7917e23
fix: delete product page from index.ts
eugenebalts Sep 2, 2023
0a7a875
fix: back changes
eugenebalts Sep 2, 2023
b45f743
fix: replace request to get user by id to product page
eugenebalts Sep 2, 2023
1ce3055
refactor: add types for methods
eugenebalts Sep 2, 2023
926b879
Merge branch 'release/catalog-product-profile' into 75-display_produc…
eugenebalts Sep 2, 2023
59897c6
fix: delete product-page from index.ts
eugenebalts Sep 2, 2023
9be21d7
Merge pull request #106 from this-is-this-team/75-display_product_inf…
eugenebalts Sep 2, 2023
d367238
feat: add popup-password component
MaxLisyanskiy Sep 2, 2023
079ba71
feat: add new Button types styles
MaxLisyanskiy Sep 2, 2023
d2af0f4
feat: add functionality to change user data
MaxLisyanskiy Sep 2, 2023
65f30a6
chore: add new types and style variable
MaxLisyanskiy Sep 2, 2023
fab6695
feat: add edit mode for account page
MaxLisyanskiy Sep 2, 2023
d5fff78
Merge branch 'release/catalog-product-profile' of https://github.com/…
MaxLisyanskiy Sep 2, 2023
587999d
fix: replace token after password change
MaxLisyanskiy Sep 2, 2023
846e7f4
refactor: some changes with imports
MaxLisyanskiy Sep 2, 2023
2199282
feat: implement category and breadcrumb navigation in shop
asuponev Sep 2, 2023
5a5f6d4
feat: implement check category and redirect to 404 when category not …
asuponev Sep 3, 2023
565f1fd
chore: add different photos for different category pages
asuponev Sep 3, 2023
4ac283c
feat: add link to product in product-card
asuponev Sep 3, 2023
22c840b
refactor: add Function Types in category-list and catalog-page
asuponev Sep 3, 2023
aeda6a5
chore: add links to categories in header and footer
asuponev Sep 3, 2023
0e05915
Merge pull request #107 from this-is-this-team/86-edit_user_profile_i…
asuponev Sep 3, 2023
298c895
Merge pull request #109 from this-is-this-team/81-category_navigation…
asuponev Sep 3, 2023
0f4256d
refactor: rename hero-shop to shop-hero component
asuponev Sep 3, 2023
e711a95
feat: add AddressesPage route
MaxLisyanskiy Sep 3, 2023
eec61ba
feat: add account-addresses page link in button
MaxLisyanskiy Sep 3, 2023
df69953
refactor: add new link type and delete unused type
MaxLisyanskiy Sep 3, 2023
b109a35
refactor: change bg for form-password
MaxLisyanskiy Sep 3, 2023
2d6598a
refactor: change styles for some buttons and add new
MaxLisyanskiy Sep 3, 2023
e810e45
refactor: change styles for some links
MaxLisyanskiy Sep 3, 2023
9c0ca2f
feat: create function for price formatting
eugenebalts Sep 3, 2023
73b2d4a
feat: implement filters block in shop
asuponev Sep 3, 2023
52bfe10
feat: draw product price
eugenebalts Sep 3, 2023
a4ad6af
feat: apply formatting price function for product-cards
eugenebalts Sep 3, 2023
8d4fca1
refactor: rename and change account-mode type
MaxLisyanskiy Sep 3, 2023
e38b578
feat: make redirect to 404 if there is no product with written id
eugenebalts Sep 3, 2023
9f1bb7b
feat: implement filter products with commercetools
asuponev Sep 3, 2023
33b5517
feat: implement sort products in shop
asuponev Sep 3, 2023
60be2e1
fix: reset sort when user select "not selected" option
asuponev Sep 3, 2023
f662465
feat: realize parseUrl function to check is correct path to product
eugenebalts Sep 3, 2023
52a5cde
feat: add rules for user-title
eugenebalts Sep 3, 2023
1473284
feat: add removeAddress service
MaxLisyanskiy Sep 3, 2023
17f469a
feat: add Sup component
MaxLisyanskiy Sep 3, 2023
cf2c21d
feat: add Sup component with component
MaxLisyanskiy Sep 3, 2023
6f291fe
refactor: add function types in select.ts
asuponev Sep 4, 2023
826b215
Merge pull request #110 from this-is-this-team/85-filtering_sorting_i…
asuponev Sep 4, 2023
15e97cb
Merge pull request #112 from this-is-this-team/82-display_product_price
asuponev Sep 4, 2023
183ef05
feat: add Select component
MaxLisyanskiy Sep 4, 2023
5c15c05
Merge branch 'release/catalog-product-profile' of https://github.com/…
MaxLisyanskiy Sep 4, 2023
4cea25d
feat: install swiper
eugenebalts Sep 4, 2023
9460915
Merge branch 'release/catalog-product-profile' into 89-create_image_s…
eugenebalts Sep 4, 2023
434fbcc
feat: add new address functionality
MaxLisyanskiy Sep 4, 2023
b97866b
feat: crete draft of slider
eugenebalts Sep 4, 2023
c0dee87
feat: add change address
MaxLisyanskiy Sep 4, 2023
9607321
feat: create product-slider
eugenebalts Sep 4, 2023
590d7fb
fix: change type string in address-list
MaxLisyanskiy Sep 4, 2023
0e90013
feat: implement searching products in shop
asuponev Sep 4, 2023
212e319
feat: add adaprive rules for width of element
eugenebalts Sep 4, 2023
f621c41
feat: implement reset search
asuponev Sep 4, 2023
17d1dde
fix: change saving default address and address type
MaxLisyanskiy Sep 4, 2023
6db6656
fix: correct reset search input
asuponev Sep 4, 2023
e7f3f29
fix: fix breadcrumbs wrap
eugenebalts Sep 4, 2023
3241391
fix: use const from variables.scss instead media query
eugenebalts Sep 4, 2023
ac946df
Merge pull request #113 from this-is-this-team/84-edit_user_addresses…
asuponev Sep 4, 2023
b73ad3d
Merge pull request #116 from this-is-this-team/87-searching_in_shop
asuponev Sep 4, 2023
1919460
fix: change width of product-elems
eugenebalts Sep 4, 2023
af2c618
refactor: change adaptive for input and form blocks
MaxLisyanskiy Sep 4, 2023
fc310c0
fix: fix width of elements and and opacity to sliders buttons
eugenebalts Sep 4, 2023
5731a7a
Merge pull request #115 from this-is-this-team/89-create_image_slider
asuponev Sep 4, 2023
40130ac
Merge pull request #118 from this-is-this-team/108-fix_responsive_forms
MaxLisyanskiy Sep 4, 2023
8adf5b4
fix: add unsubscribe from shopStore before render shopPage
asuponev Sep 5, 2023
1ec2136
Merge pull request #119 from this-is-this-team/117-unsubscribe_on_sho…
asuponev Sep 5, 2023
80ae313
chore: add styles for prices like in Figma layout
asuponev Sep 5, 2023
1818963
feat: add new sort option
asuponev Sep 5, 2023
ed2c927
feat: implement modal slider and refactor: make code more readable
eugenebalts Sep 5, 2023
8a83c1f
fix: save search value in input when switching pages
asuponev Sep 5, 2023
1c838a7
Merge pull request #121 from this-is-this-team/120-add_sorting_by_tit…
asuponev Sep 5, 2023
daefe57
feat: add new style for cursor in slider
eugenebalts Sep 5, 2023
f9e73ea
fix: fix modal slider bug after loop
eugenebalts Sep 5, 2023
201699b
Merge pull request #138 from this-is-this-team/90-enlarged_image_moda…
asuponev Sep 5, 2023
dc6eed0
Merge pull request #139 from this-is-this-team/137-save_search_value_…
asuponev Sep 5, 2023
72827cc
Merge pull request #111 from this-is-this-team/release/catalog-produc…
asuponev Sep 6, 2023
75e71d9
feat: add basket page & route and change links to this page
MaxLisyanskiy Sep 6, 2023
cbbd9d5
feat: add about-us page & route and change links to this page
MaxLisyanskiy Sep 6, 2023
bb8ac1f
Merge pull request #140 from this-is-this-team/135-basket_about_us_ro…
MaxLisyanskiy Sep 7, 2023
4725770
chore: change success color
asuponev Sep 8, 2023
192748b
refactor: remove JSON.parse operation
asuponev Sep 8, 2023
5276d5d
feat: create anonymous cart with saving tokenAnon in LS
asuponev Sep 8, 2023
c058856
feat: implement add to cart
asuponev Sep 8, 2023
1c0513b
feat: add check for anonymous session at login
asuponev Sep 8, 2023
e5513ef
feat: add visual loading status for product card
asuponev Sep 8, 2023
152cec7
feat: create basket page with empty cart message
eugenebalts Sep 9, 2023
60f766d
fix: back building structure of basket section
eugenebalts Sep 9, 2023
0e88449
refactor: add function return type
asuponev Sep 9, 2023
073d920
feat: put basket-empty component into a separate module
eugenebalts Sep 10, 2023
9ab07fa
Merge pull request #141 from this-is-this-team/123-shopping_cart_inte…
MaxLisyanskiy Sep 10, 2023
13980c7
Merge pull request #142 from this-is-this-team/130-display_empty_cart…
MaxLisyanskiy Sep 10, 2023
d905866
feat: add infinite products loading
MaxLisyanskiy Sep 11, 2023
bce4a02
feat: add about-us list with members
MaxLisyanskiy Sep 11, 2023
04b4ba2
feat: add about-us collaboration section
MaxLisyanskiy Sep 11, 2023
e357f95
feat: draw button depending on the cart state
eugenebalts Sep 11, 2023
a7233dd
chore: update toast notification styles
asuponev Sep 11, 2023
9dd3679
refactor: replace function isProductInCart to a separate file
eugenebalts Sep 11, 2023
08839f8
feat: create adding product to cart after click function
eugenebalts Sep 11, 2023
30f6b0b
refactor: separate basket-page methods
asuponev Sep 11, 2023
0e216f0
feat: display product info and price on product page
asuponev Sep 11, 2023
fd40861
feat: create function to remove product from cart
eugenebalts Sep 12, 2023
610ea43
refactor: replace the isProductInCart function call to function where…
eugenebalts Sep 12, 2023
d63fd32
feat: catch Add to / Remove from - cart errors
eugenebalts Sep 12, 2023
040cdd7
fix: change catalog section
MaxLisyanskiy Sep 12, 2023
53a5147
Merge pull request #144 from this-is-this-team/133-introduction_to_th…
MaxLisyanskiy Sep 12, 2023
e6e6759
feat: add about-us rsschool link and text
MaxLisyanskiy Sep 12, 2023
c6d2b26
refactor: replace component basket-empty into separate container
asuponev Sep 12, 2023
4c4aa2d
feat: implement display basket items
asuponev Sep 12, 2023
d8a2212
feat: implement section total on cart page
asuponev Sep 12, 2023
f6b3658
feat: implement cart-store
asuponev Sep 12, 2023
b0f9d1d
chore: add adaptive styles for basket-items
asuponev Sep 12, 2023
8b841a8
refactor: update cart-store
asuponev Sep 12, 2023
1700613
feat: implement get cart func
asuponev Sep 12, 2023
aedc8cc
feat: implement basket page main layout
asuponev Sep 12, 2023
d144ee3
feat: add subscribe for cart-icon in header
asuponev Sep 12, 2023
395b391
Merge pull request #143 from this-is-this-team/124-lazy_loading_pagin…
MaxLisyanskiy Sep 13, 2023
96b46b5
Merge pull request #145 from this-is-this-team/125-add_remove_product…
asuponev Sep 13, 2023
67a39fe
Merge branch 'release/basket-about_us' of https://github.com/elsuppo/…
asuponev Sep 13, 2023
d59894b
fix: update store when user redirected to basket page
asuponev Sep 13, 2023
51db9e2
fix: correct update cart icon in header
asuponev Sep 13, 2023
1572581
fix: implement update anonToken using refreshToken
asuponev Sep 13, 2023
10eaa84
feat: update UI elements using cartStore
asuponev Sep 13, 2023
17080a4
refactor: remove unneeded console.log
asuponev Sep 13, 2023
892a825
chore: update styles on about-us page
asuponev Sep 13, 2023
0285631
Merge pull request #146 from this-is-this-team/134-rs_school_logo_and…
MaxLisyanskiy Sep 14, 2023
1bfde93
Merge pull request #147 from this-is-this-team/126-display_basket_items
eugenebalts Sep 14, 2023
c7e80d7
feat: add promo-code in basket-total
MaxLisyanskiy Sep 14, 2023
86ac091
feat: add promo-code list in main-page
MaxLisyanskiy Sep 14, 2023
a32614c
refactor: change expirationDate in promoCodes
MaxLisyanskiy Sep 14, 2023
0c3446c
fix: add change token getDiscountCode
MaxLisyanskiy Sep 14, 2023
3bd8070
fix: change promo-codes actions adaptive
MaxLisyanskiy Sep 14, 2023
a04b59e
refactor: remove temporarySection in main page
MaxLisyanskiy Sep 14, 2023
c3f6f77
refactor: add return type & change createBasketDiscountTotal
MaxLisyanskiy Sep 14, 2023
9806d7f
feat: add remove discount btn and functions
MaxLisyanskiy Sep 15, 2023
e394e98
refactor: replace basket services
MaxLisyanskiy Sep 15, 2023
b9a8e82
feat: add change cart item quantity
MaxLisyanskiy Sep 15, 2023
dc0cb09
fix: add a check for an existing promo code
MaxLisyanskiy Sep 15, 2023
c588c88
feat: remove value in promo-code input
MaxLisyanskiy Sep 15, 2023
c836e13
fix: add cleansing currentPromoCode when deleting
MaxLisyanskiy Sep 15, 2023
8f3a59c
refactor: change BASE_PRODUCT_LIMIT
MaxLisyanskiy Sep 15, 2023
ea0747b
Merge pull request #148 from this-is-this-team/131-apply_promo_code_a…
MaxLisyanskiy Sep 15, 2023
274f0c8
Merge branch 'release/basket-about_us' of https://github.com/this-is-…
MaxLisyanskiy Sep 15, 2023
50f1063
fix: change basket-total fields and values
MaxLisyanskiy Sep 15, 2023
7051a02
Merge pull request #152 from this-is-this-team/151_change_basket_tota…
asuponev Sep 16, 2023
a784523
feat: limit maximum product quantity
eugenebalts Sep 16, 2023
6cda47e
Merge pull request #149 from this-is-this-team/127-modify_product_qua…
MaxLisyanskiy Sep 16, 2023
c527540
fix: correct remove selected line item
asuponev Sep 17, 2023
623b210
refactor: remove unneeded variable from cartStore
asuponev Sep 17, 2023
57ec312
feat: implement remove item from cart
asuponev Sep 17, 2023
15adc24
feat: implement recalculate total price
asuponev Sep 17, 2023
fc35902
refactor: remove unneeded console.log
asuponev Sep 17, 2023
5f99a7d
feat: connect quantity elements with cartStore
asuponev Sep 17, 2023
ca81494
Merge pull request #153 from this-is-this-team/128-remove_product_fro…
asuponev Sep 17, 2023
1d222db
feat: create function to remove cart
eugenebalts Sep 18, 2023
bcb3563
feat: add clear cart button
eugenebalts Sep 18, 2023
4d98491
Merge pull request #155 from this-is-this-team/132-clear_shopping_cart
asuponev Sep 18, 2023
898d288
chore: header enhancements
asuponev Sep 18, 2023
d958db4
refactor: add return type for methods
asuponev Sep 18, 2023
3f53054
fix: fix cart cleaning after switch tokenAnon to token
eugenebalts Sep 18, 2023
765589a
Merge pull request #156 from this-is-this-team/136-header_enhancement
asuponev Sep 18, 2023
1e3219f
Merge pull request #154 from this-is-this-team/release/basket-about_us
asuponev Sep 19, 2023
8057431
test: add testing of shoping-hero
asuponev Sep 22, 2023
48a4040
test: add testing for product-card
asuponev Sep 22, 2023
5af20c6
test: add testing for sup-component
MaxLisyanskiy Sep 22, 2023
5432fbe
test: add testing for popup-component
MaxLisyanskiy Sep 22, 2023
1b1c673
test: add testing for list-component
MaxLisyanskiy Sep 22, 2023
b526412
refactor: remove getElement in all test-cases
MaxLisyanskiy Sep 22, 2023
1469f0e
test: add test suites for logo component
eugenebalts Sep 22, 2023
f878b21
test: add test suites for promo-codes
eugenebalts Sep 22, 2023
414d129
test: add test suites for promo-codes-list
eugenebalts Sep 22, 2023
fc93f06
Merge pull request #161 from this-is-this-team/157-additional_max_tes…
asuponev Sep 22, 2023
7e2da5f
Merge pull request #162 from this-is-this-team/158-additional_testing…
asuponev Sep 22, 2023
ad60cd8
Merge pull request #160 from this-is-this-team/159-additional_testing_p1
asuponev Sep 22, 2023
18c2dbe
docs: update README.md
asuponev Sep 27, 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
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["@babel/preset-env"]
}
3 changes: 3 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
last 2 versions
not dead
> 0.5%
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
node_modules
36 changes: 36 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "jest", "prettier", "import"],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:prettier/recommended", "prettier"],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"env": {
"es6": true,
"browser": true,
"node": true
},
"rules": {
"no-debugger": "off",
"no-console": "off",
"object-shorthand": "warn",
"array-callback-return": "warn",
"prefer-destructuring": "warn",
"prefer-arrow-callback": "warn",
"no-duplicate-imports": "warn",
"import/first": "warn",
"eqeqeq": "warn",
"no-unneeded-ternary": "warn",
"no-else-return": "warn",
"spaced-comment": "warn",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-var-requires": "off",
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
]
}
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
1. Task: [link](https://github.com/rolling-scopes-school/tasks/blob/master/tasks/eCommerce-Application/Sprints/Sprint%231.md)
2. Screenshot:
2. Screenshot:
3. Deploy: [link]()
4. Done 07.08.2023 / deadline 07.08.2023
5. Score: 110 / 110

#### CrossCheck Criteria (55/55):

- [x] Example (5/5):
- (+5) Example.
- [x] Example (50/50):
- (+50) Example.

#### Mentor Evaluation Criteria (55/55):

- [x] Example (5/5):
- (+5) Example.
- [x] Example (50/50):
Expand Down
13 changes: 7 additions & 6 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
__1. Task__
**1. Task**
_task_title_

__2. Link in [project](https://github.com/orgs/this-is-this-team/projects/3)__
**2. Link in [project](https://github.com/orgs/this-is-this-team/projects/3)**
_if multiple issues are combined into a single pull request then insert all links (link-1, link-2, etc.)_
[link](_insert_link_here_)

__3. Sprint__
**3. Sprint**
_number_of_sprint_

__4. Timeline__
**4. Timeline**
Done 01.08.2023 / Deadline 30.08.2023

__5. Task description and solution__
**5. Task description and solution**
_task_description_and_solution_

__6. Self Check before Merge__
**6. Self Check before Merge**

- [ ] Pull request title should follow [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/#summary)
- [ ] Reviewers added (elsuppo/MaxLisyanskiy/eugenebalts)
- [ ] All commits in pull request should follow [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/#summary)
Expand Down
5 changes: 5 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
npm run test
1 change: 1 addition & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "*.{js,ts}": ["npm run lint:check"], "*": ["npm run prettier:check"] }
10 changes: 10 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"trailingComma": "es5",
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"printWidth": 120,
"bracketSameLine": false,
"endOfLine": "auto"
}
146 changes: 145 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,145 @@
# eCommerce-Application
# eCommerce-Application _«this is this.»_

:earth_americas:`this is this.` is a web application for searching and buying travel tours.
The project is being developed as part of the final task of the course [JavaScript/Front-end (2023Q1)](https://rs.school/js/) from the [RS School](https://rs.school/).
The [`this-is-this team`](https://github.com/this-is-this-team) is working on the project.

## Commercetools Setup

<details>
<summary>.env example</summary>
<br />
<pre>
CTP_PROJECT_KEY=
CTP_CLIENT_SECRET=
CTP_CLIENT_ID=
CTP_AUTH_URL=
CTP_API_URL=
CTP_SCOPES=
</pre>
</details>

<details>
<summary>necessary scopes</summary>
<br />
<img src="https://github.com/elsuppo/this-is-this-eCommerce-application/assets/68076610/2533901d-a1bb-4a05-85c9-301057cece49" alt="profile-details"/>
<ul>
<li>view_products</li>
<li>view_cart_discounts</li>
<li>view_shipping_methods</li>
<li>view_categories</li>
<li>view_discount_codes</li>
<li>view_product_selections</li>
<li>manage_my_shopping_lists</li>
<li>manage_my_payments</li>
<li>manage_my_profile</li>
<li>manage_my_orders</li>
<li>create_anonymous_token</li>
</ul>
</details>

## Project Purpose

- Develop a Single Page Application (SPA) without using frameworks
- Teamwork skills
- Task planning
- Consolidation of knowledge gained on the course

## Technology Stack

[![skills](https://skillicons.dev/icons?i=webpack,ts,html,css,scss,jest,git&theme=light)](#technology-stack) <a href="#technology-stack" title="ESLint"><img src="https://github.com/get-icon/geticon/raw/master/icons/json.svg" alt="eslint" width="48px" height="48px"></a> <a href="#technology-stack" title="Prettier"><img src="https://github.com/get-icon/geticon/raw/master/icons/prettier.svg" alt="prettier" width="48px" height="48px"></a> <a href="https://www.typescriptlang.org/" title="ESLint"><img src="https://github.com/get-icon/geticon/raw/master/icons/eslint.svg" alt="eslint" width="48px" height="48px"></a>

- **TypeScript** <sup>_[docs](https://www.typescriptlang.org/docs/handbook/typescript-from-scratch.html)_</sup>
- **Webpack 5** <sup>_[docs](https://webpack.js.org/concepts/)_</sup>
- **Jest** <sup>_[docs](https://jestjs.io/docs/getting-started)_</sup>
- **SCSS** <sup>_[docs](https://sass-lang.com/documentation/)_</sup>
- **CommerceTools API** <sup>_[docs](https://docs.commercetools.com/api/general-concepts)_</sup>
- Teamwork tools:
- **Prettier** <sup>_[docs](https://prettier.io/docs/en/)_</sup>
- **ESLint** <sup>_[docs](https://eslint.org/docs/latest/use/core-concepts)_</sup>
- **Husky** <sup>_[docs](https://typicode.github.io/husky/)_</sup>
- **lint-staged** <sup>_[docs](https://github.com/okonet/lint-staged)_</sup>

## Getting Started

To get a local copy of the project perform the following actions:

1. Clone the repo

```
git clone https://github.com/this-is-this-team/eCommerce-Application.git
```

2. Install npm packages

```
npm install
```

3. Run the project locally

```
npm run start
```

## Available scripts

#### Webpack (code building)

- build development version

```
npm run build:dev
```

- build production version

```
npm run build:prod
```

#### Prettier (code formatting)

- сhecks formatting for all project files

```
npm run prettier:check
```

- auto fixes formatting for all project files

```
npm run prettier:fix
```

#### ESLint (code linting)

- checks linting for all project files

```
npm run lint:check
```

- auto fixes linting error for all project files

```
npm run lint:fix
```

#### JEST (code testing)

- run all `*.test.ts` files for test execution

```
npm run test
```

<details>
<summary>ALSO</summary>

Before making a commit an **automated** check is performed for formatting, linting, and code testing using Husky and lint-staged
```
npx lint-staged
npm run test
```
</details>
9 changes: 9 additions & 0 deletions jest.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"preset": "ts-jest",
"testEnvironment": "jsdom",
"moduleFileExtensions": ["ts", "js"],
"testMatch": ["**/__tests__/**/*.+(ts|tsx|js)", "**/?(*.)+(spec|test).+(ts|tsx|js)"],
"moduleNameMapper": {
"^.+\\.(css|less|scss)$": "babel-jest"
}
}
Loading