Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
167 commits
Select commit Hold shift + click to select a range
98d7cf5
save the payment methods returned on updateTotals to state.
rain2o Sep 27, 2019
103d231
feat: moved trace logic to a server.onLoad hook
ResuBaka Sep 28, 2019
cf1c8da
Added missing hooks file for the server
ResuBaka Sep 28, 2019
f715fae
Changed server extend logic to an server hook
ResuBaka Sep 29, 2019
0904618
Added more server hooks cache/output and renamed current hooks
ResuBaka Sep 30, 2019
8e97a8a
save the payment methods returned on updateTotals to state.
rain2o Sep 27, 2019
ac05348
Merge branch 'feature/payment-methods-for-address' of github.com:rain…
rain2o Sep 30, 2019
4ac4c71
Update payment methods on billing country change
rain2o Sep 30, 2019
67e0293
Merge branch 'develop' of https://github.com/DivanteLtd/vue-storefron…
rain2o Sep 30, 2019
4e19586
Updated changelog with payment method for billing address change.
rain2o Sep 30, 2019
3aef7bb
Merge branch 'develop' into feature/payment-methods-for-address
pkarw Oct 2, 2019
1b2e01c
Renamed hooks and added use of return of MutatorHooks
ResuBaka Oct 2, 2019
dfbfda3
Merge branch 'develop' into feature/payment-methods-for-address
pkarw Oct 2, 2019
9792535
Fixed name of BillingAddress interface
rain2o Oct 3, 2019
ac9ad42
Removed use of bus emit and dispatch cart/syncPaymentMethods directly.
rain2o Oct 3, 2019
0b74aca
Merge branch 'feature/payment-methods-for-address' of github.com:rain…
rain2o Oct 3, 2019
16094a5
Removed redundant use of getter
rain2o Oct 3, 2019
2ce6f5b
unit test for payment methods for billing address updates.
rain2o Oct 3, 2019
5257589
Fixed cmsBlock getter cmsBlockIdentifier which called it self
ResuBaka Oct 4, 2019
e4678a7
Update CHANGELOG.md
ResuBaka Oct 4, 2019
ce8dcaa
Fix: Dynamic urls name should only be prefixed when appendStoreCode i…
ResuBaka Oct 4, 2019
a57d00b
Updated CHANGELOG.md
ResuBaka Oct 4, 2019
6f9d6cb
removed debugger
ResuBaka Oct 4, 2019
a81f99f
Merge pull request #3685 from ResuBaka/fix/multistore-appenstoreCode-…
andrzejewsky Oct 4, 2019
eb7cb4d
Merge branch 'release/v1.11' into fix/cms-block-getter-throws-error
ResuBaka Oct 4, 2019
b8ff716
update versioning
patzick Oct 3, 2019
6bc5007
es7 support
andrzejewsky Oct 6, 2019
4b4a40b
Fix: bundle product with only one option
ResuBaka Oct 8, 2019
9a61e6f
Fix: possible problem with event that is not working because of casin…
ResuBaka Oct 8, 2019
4992a7e
Fix: possible problem when two products have no server_item_id and it…
ResuBaka Oct 8, 2019
27441b5
Merge branch 'release/v1.11' of github.com:DivanteLtd/vue-storefront …
ResuBaka Oct 8, 2019
f659bdf
Updated CHANGELOG.md
ResuBaka Oct 8, 2019
0a06a25
Merge pull request #3683 from ResuBaka/fix/cms-block-getter-throws-error
andrzejewsky Oct 8, 2019
1f997e6
Cosmetic changes in ProductBundleOption.ts and productsEquals.ts
ResuBaka Oct 9, 2019
da8616b
Fixed line length of short if so it is not over 120 chars
ResuBaka Oct 9, 2019
25a13c4
add checkbox custom opton type
Oct 9, 2019
19c8bc7
update changelog
Oct 9, 2019
95c3bbd
Removed un needed brackets from find callback function
ResuBaka Oct 9, 2019
16327c0
reset nested menu
Oct 8, 2019
4da78a1
update changelog
Oct 8, 2019
239fcaa
Merge pull request #3693 from gibkigonzo/bugfix/show-categories-after…
andrzejewsky Oct 10, 2019
4176e24
Add dependencies to Dockerfile to fix VSF build fails
Oct 10, 2019
4a5ede4
Merge branch 'release/v1.11' into feature/es7-support
andrzejewsky Oct 10, 2019
b210500
Merge pull request #3692 from ResuBaka/fix/bundle-products-cases
andrzejewsky Oct 10, 2019
ddfee16
Merge branch 'release/v1.11' into feature/es7-support
andrzejewsky Oct 10, 2019
75dc54c
add customOption helper
Oct 10, 2019
510b482
add types
Oct 10, 2019
3215b78
Merge branch 'release/v1.11' into bugfix/add-checkbox-custom-option
andrzejewsky Oct 10, 2019
d0da19d
Merge pull request #3694 from gibkigonzo/bugfix/add-checkbox-custom-o…
andrzejewsky Oct 10, 2019
24049b5
Merge branch 'release/v1.11' into feature/es7-support
andrzejewsky Oct 10, 2019
f91b571
Merge pull request #3690 from andrzejewsky/feature/es7-support
andrzejewsky Oct 10, 2019
177663f
Add unit tests for 'core/modules/mailer'
Oct 11, 2019
860d7aa
Update CHANGELOG.md
andrzejewsky Oct 11, 2019
ee428f3
Merge branch 'release/v1.11' into feature/payment-methods-for-address
andrzejewsky Oct 11, 2019
cb67a10
Merge branch 'release/v1.11' into feature/mailer-tests
andrzejewsky Oct 11, 2019
71806f6
resolve conflicts
andrzejewsky Oct 11, 2019
7843186
update versioning
patzick Oct 3, 2019
7b27653
Merge pull request #3654 from rain2o/feature/payment-methods-for-address
patzick Oct 12, 2019
2fa6728
resolve conflicts
andrzejewsky Oct 12, 2019
fa2c66d
Merge branch 'release/v1.11' into bugfix/typo-fix
andrzejewsky Oct 12, 2019
7b5da2b
Merge branch 'release/v1.11' into feature/mailer-tests
andrzejewsky Oct 13, 2019
4f5e003
Merge pull request #3709 from afozbek/bugfix/typo-fix
patzick Oct 13, 2019
c7cd210
Update CHANGELOG.md
Oct 13, 2019
e265bcb
Add custom system filter fields as config value
Oct 13, 2019
c358e7e
Fix typo in docs
Oct 13, 2019
c0503f7
Add custom `pageSize` parameter for `category-next/loadCategoryProducts`
Oct 13, 2019
279475b
Update CHANGELOG.md
Oct 13, 2019
e688c5b
Merge pull request #3711 from krskibin/feature/mailer-tests
andrzejewsky Oct 13, 2019
47bc144
Merge branch 'release/v1.11' into bugfix/add-dependencies
andrzejewsky Oct 13, 2019
024e040
Merge pull request #3699 from krskibin/bugfix/add-dependencies
andrzejewsky Oct 13, 2019
4cdfd8c
Remove unneeded "pagesize" config value item
Oct 14, 2019
ff4d5a4
Merge branch 'release/v1.11' into feature/add-custom-category-product…
Oct 14, 2019
b39ee28
Fixed error around sort option in graphql
ResuBaka Oct 15, 2019
28d1fed
Added in to cmsBlock items response in graphql
ResuBaka Oct 15, 2019
0627ab2
Update CHANGELOG.md
ResuBaka Oct 15, 2019
a084ebc
Small fix to default sort order of _score
ResuBaka Oct 16, 2019
dd77bba
Add config value to getter
Oct 16, 2019
fbecd0f
Merge branch 'feature/add-custom-category-products-page-size' of gith…
Oct 16, 2019
e09b890
add product-quantity component
Oct 15, 2019
4c3c3d5
add quantity check in microcart
Oct 15, 2019
d6805e3
update changelog
Oct 15, 2019
817daec
add different notification if there are some products
Oct 15, 2019
cba149c
apply cr suggestions
Oct 17, 2019
a21c676
Merge pull request #3714 from icmaa/feature/add-custom-category-produ…
pkarw Oct 17, 2019
726a0e7
Merge pull request #3718 from ResuBaka/fix/grapghql-cms-block
pkarw Oct 17, 2019
b7678b0
change notification message object to factory fn
Oct 17, 2019
6d8500e
update changelog
Oct 17, 2019
8967c80
load recently viewed module in my account page
Oct 17, 2019
7a4a908
update changelog
Oct 17, 2019
5994d29
apply suggestions and check quantity when page change
Oct 18, 2019
651a272
Merge branch 'release/v1.11' into feature/add-info-about-qty-in-micro…
gibkigonzo Oct 18, 2019
37de6a0
remove unused dayjs locales
Oct 18, 2019
1fb6dbf
update changelog
Oct 18, 2019
741c145
Add validation message for city field
dz3n Oct 18, 2019
5061a7b
update CHANGELOG
dz3n Oct 18, 2019
c459c96
ignore all .map files for service worker cache
Oct 21, 2019
06b7219
update changelog
Oct 21, 2019
5cee194
Merge pull request #3651 from ResuBaka/feature/server-load-hook
andrzejewsky Oct 21, 2019
c390653
Update city field validation message
dz3n Oct 21, 2019
de509ac
update message
dz3n Oct 21, 2019
e6e87c2
Merge branch 'bugfix/3723_no_validation_message_city_field' of github…
dz3n Oct 21, 2019
cd706ea
Add missing validation messages
dz3n Oct 21, 2019
b921d0e
remove loading language in i18n module scope
Oct 22, 2019
61dd8ef
translate notification and change order notification for factory fn
Oct 22, 2019
194313c
Merge pull request #3730 from dz3n/bugfix/3723_no_validation_message_…
andrzejewsky Oct 22, 2019
039e655
Improving getAllComparableAttributes function for supporting boolean …
dz3n Oct 23, 2019
087836e
Improving getAllComparableAttributes function for supporting boolean …
dz3n Oct 23, 2019
78adbe8
update CHANGELOG
dz3n Oct 23, 2019
b0ad211
Merge pull request #3720 from gibkigonzo/feature/add-info-about-qty-i…
andrzejewsky Oct 23, 2019
2a4cee7
Merge branch 'release/v1.11' into bugfix/fix-notification-after-add-t…
andrzejewsky Oct 23, 2019
b9ece90
Merge branch 'release/v1.11' into bugfix/load-recently-viewed-module-…
andrzejewsky Oct 23, 2019
15f2ba6
Merge pull request #3725 from gibkigonzo/bugfix/load-recently-viewed-…
andrzejewsky Oct 23, 2019
b62cd54
Merge branch 'release/v1.11' into bugfix/fix-notification-after-add-t…
andrzejewsky Oct 23, 2019
727a624
Merge pull request #3724 from gibkigonzo/bugfix/fix-notification-afte…
andrzejewsky Oct 23, 2019
74b64b3
Merge branch 'release/v1.11' into bugfix/ignore-map-files-in-sw
andrzejewsky Oct 23, 2019
0cfa0a4
FIX: wrong urls in promoted banners
GrimLink Oct 23, 2019
044b91c
Use encodeURIComponent to encode get parameters in multimatch.js #3736
adityasharma7 Oct 22, 2019
18badcc
Added changelog #3736
adityasharma7 Oct 24, 2019
dfc3d10
Merge pull request #3734 from gibkigonzo/bugfix/ignore-map-files-in-sw
pkarw Oct 24, 2019
5b819ca
check in category if parent_id is same as id and allow different pare…
Oct 24, 2019
ee633ed
update changelog
Oct 24, 2019
3210a82
disable product mutation when making tax calculation
Oct 24, 2019
654dde0
update changelog
Oct 24, 2019
4435c9a
add flag to product after first calculation
Oct 24, 2019
a9cf4e2
Merge branch 'release/v1.11' of https://github.com/DivanteLtd/vue-sto…
Oct 24, 2019
e38c957
clear code
Oct 24, 2019
3b82f30
Add unit tests for `core/modules/wishlist`
Oct 25, 2019
b53139b
Merge branch 'release/v1.11' into bugfix/check-parent-id-for-recursiv…
pkarw Oct 25, 2019
a76ef70
Add unit tests for `core/modules/newsletter`
Oct 25, 2019
9cca552
Merge pull request #3745 from gibkigonzo/bugfix/check-parent-id-for-r…
andrzejewsky Oct 25, 2019
5164f46
Merge branch 'release/v1.11' into feature/remove-prefech-dayjs-locales
andrzejewsky Oct 25, 2019
3933f4f
Merge pull request #3728 from gibkigonzo/feature/remove-prefech-dayjs…
andrzejewsky Oct 25, 2019
fc3edaf
Merge pull request #3742 from hotwax/vue-storefront#3736-v.1.11
andrzejewsky Oct 25, 2019
12cbe47
Merge pull request #3741 from GrimLink/bugfix/urls-promoted-offers
andrzejewsky Oct 26, 2019
25bbb56
Merge pull request #3752 from psmyrek/feature/newsletter-tests
andrzejewsky Oct 27, 2019
e97cb9a
Merge pull request #3749 from psmyrek/feature/wishlist-tests
andrzejewsky Oct 27, 2019
369e113
rewrite updateProductPrices
Oct 28, 2019
3e25d23
add missing fields to productListWithChildren in config
Oct 28, 2019
a0c8923
update changelog
Oct 28, 2019
434e35b
update country in checkout
Oct 28, 2019
81c92ed
add final price to productList and fix check if original price is set
Oct 28, 2019
c287c11
Merge pull request #3739 from dz3n/bugfix/3697_comparison_flag_improving
pkarw Oct 29, 2019
6ffc57f
Merge branch 'release/v1.11' into bugfix/copy-product-when-price-calc
pkarw Oct 29, 2019
f3ea71e
allow to fetch avticity parameter
andrzejewsky Oct 29, 2019
34dd305
fix typos
andrzejewsky Oct 29, 2019
b4604f4
fix broken links
andrzejewsky Oct 29, 2019
5306854
fix links to the promoted banners
andrzejewsky Oct 29, 2019
98f0c86
fix dysplay categories in search menu
andrzejewsky Oct 29, 2019
37cda05
fix instant checkout
andrzejewsky Oct 30, 2019
1af9004
changelog
andrzejewsky Oct 30, 2019
51d83fa
Merge pull request #3759 from andrzejewsky/bugfix/3757
andrzejewsky Oct 30, 2019
41fae4c
Merge branch 'release/v1.11' into bugfix/3753
andrzejewsky Oct 30, 2019
f94aa27
Merge pull request #3761 from andrzejewsky/bugfix/3753
andrzejewsky Oct 30, 2019
e580c18
Merge branch 'release/v1.11' into bugfix/3754
andrzejewsky Oct 30, 2019
7627aae
Merge branch 'release/v1.11' into bugfix/copy-product-when-price-calc
andrzejewsky Oct 30, 2019
86d675e
Merge pull request #3746 from gibkigonzo/bugfix/copy-product-when-pri…
andrzejewsky Oct 30, 2019
27c1899
Merge branch 'release/v1.11' into bugfix/3758
andrzejewsky Oct 30, 2019
8e134d1
Merge branch 'release/v1.11' into instant-checkout
pkarw Oct 31, 2019
b86c037
Merge pull request #3765 from andrzejewsky/instant-checkout
andrzejewsky Oct 31, 2019
d8f76ed
Merge branch 'release/v1.11' into bugfix/3754
andrzejewsky Oct 31, 2019
cb26e89
Merge pull request #3760 from andrzejewsky/bugfix/3754
andrzejewsky Oct 31, 2019
bb46354
Merge branch 'release/v1.11' into bugfix/3758
andrzejewsky Oct 31, 2019
62c4fb4
Merge pull request #3762 from andrzejewsky/bugfix/3758
andrzejewsky Oct 31, 2019
ea086d0
bump version
andrzejewsky Oct 31, 2019
33be862
add media query for hover effect
andrzejewsky Nov 2, 2019
e29a4ef
Merge pull request #3768 from andrzejewsky/release/v1.11
andrzejewsky Nov 2, 2019
acde81d
Merge pull request #3773 from andrzejewsky/bugfix/3772
andrzejewsky Nov 4, 2019
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 .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module.exports = {
root: true,
env: { browser: true, jest: true },
globals: { fetchMock: true },
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
Expand Down
35 changes: 34 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,43 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.11.0-rc.2] - UNRELEASED
## [1.11.0-rc.2] - 2019.10.31

### Fixed
- Fixed deprecated getter in cmsBlock store - @resubaka (#3683)
- Fixed problem around dynamic urls when default storeView is set with appendStoreCode false and url set to / . @resubaka (#3685)
- Fixed three problems you can run into when you have bundle products - @resubaka (#3692)
- Reset nested menu after logout - @gibkigonzo (#3680)
- Fixed handling checkbox custom option - @gibkigonzo (#2781)
- Fixed typos in docs - @afozbek (#3709)
- Fixed VSF build fails for some people due to lack of dependencies in the container - @krskibin (#3699)
- Fixed two graphql problems, one with cms_blocks and the other with default sort order - @resubaka (#3718)
- Allow falsy value for `parent_id` when searching category - @gibkigonzo (#3732)
- Remove including .map files in service worker cache - @gibkigonzo (#3734)
- Changed notification message object to factory fn - @gibkigozno (#3716)
- Load recently viewed module in my account page - @gibkigonzo (#3722)
- Added validation message for city field on checkout page - @dz3n (#3723)
- Make price calculation based on saved original prices - @gibkigonzo (#3740)
- Improving is_comparable to work with booleans and digits - @dz3n (#3697)
- Fixed displaying categories on search menu - @andrzejewsky (#3758)
- Fixed broken link for store locator - @andrzejewsky (#3754)
- Fixed instant checkout functionality - @andrzejewsky (#3765)
- Fixed links to the promoted banners - @andrzejewsky (#3753)
- Fixed missing parameter in the compare list - @andrzejewsky (#3757)
- Fixed product link on mobile - @andrzejewsky (#3772)

### Added
- Added support for ES7 - @andrzejewsky (#3690)
- Added unit tests for `core/modules/mailer` - @krskibin (#3710)
- Get payment methods with billing address data - @rain2o (#2878)
- Added custom page-size parameter for `category-next/loadCategoryProducts` action - @cewald (#3713, #3714)
- Remove unused dayjs locales - @gibkigonzo (#3498)
- check max quantity in microcart - @gibkigonzo (#3314)
- Add unit tests for `core/modules/newsletter` - @psmyrek (#3464)
- Add unit test for `core/modules/wishlist` - @psmyrek (#3471)

### Changed / Improved
- Use `encodeURIComponent` to encode get parameters in `multimatch.js` - @adityasharma7 (#3736)

## [1.11.0-rc.1] - 2019.10.03

Expand Down
10 changes: 4 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,22 @@ Here are some thoughts on how to use TypeScript features in Vue Storefront: [Typ

## Pull Request Checklist

Here's how to submit a pull request. **Pull request that don't meet these requirements will not be merged.**

**ALWAYS** use the [Pull Request template](https://github.com/DivanteLtd/vue-storefront/blob/master/PULL_REQUEST_TEMPLATE.md) it's automatically added to each PR.
1. Fork the repository and clone it locally fro the 'develop' branch. Make sure it's up to date with current `develop` branch
**ALWAYS** use [Pull Request template](https://github.com/DivanteLtd/vue-storefront/blob/master/PULL_REQUEST_TEMPLATE.md) it's automatically added to each PR.
1. Fork the repository and clone it locally from the 'develop' branch. Make sure it's up to date with current `develop` branch
2. Create a branch for your edits. Use the following branch naming conventions:
* bugfix/task-title
* feature/task-name
3. Use Pull Request template and fill as much fields as possible to describe your solution.
4. Reference any relevant issues or supporting documentation in your PR (ex. “Issue: 39. Issue title.”).
5. If you are adding new feature provide documentation along with the PR. Also, add it to [upgrade notes](https://github.com/DivanteLtd/vue-storefront/blob/master/doc/Upgrade%20notes.md)
6. If you are removing/renaming something or changing its behavior also include it in [upgrade notes](https://github.com/DivanteLtd/vue-storefront/blob/master/doc/Upgrade%20notes.md)
7. Test your changes! Run your changes against any existing tests and create new ones when needed. Make sure your changes don’t break the existing project. Make sure that your branch is passing Travis CI build.
7. Test your changes! Run your changes against any existing tests and create new ones when needed. Make sure your changes don’t break the existing project. Make sure that your branch is passing Travis CI build.
8. If you have found a potential security vulnerability, please DO NOT report it on the public issue tracker. Instead, send it to us at contributors@vuestorefront.io. We will work with you to verify and fix it as soon as possible.
(https://github.com/DivanteLtd/vue-storefront/blob/master/README.md#documentation--table-of-contents))

## Acceptance Criteria

Your pull request will be merged after meeting following criteria:
- Everything from "Pull Request Checklist"
- Pull request is proposed to appropriate branch
- PR is proposed to appropriate branch
- There are at least two approvals from core team members
7 changes: 4 additions & 3 deletions config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,15 @@
"validSearchOptionsFromRouteParams": ["url-key", "slug", "id"]
},
"attribute": {
"includeFields": [ "attribute_code", "id", "entity_type_id", "options", "default_value", "is_user_defined", "frontend_label", "attribute_id", "default_frontend_label", "is_visible_on_front", "is_visible", "is_comparable", "tier_prices", "frontend_input" ]
"includeFields": [ "activity", "attribute_code", "id", "entity_type_id", "options", "default_value", "is_user_defined", "frontend_label", "attribute_id", "default_frontend_label", "is_visible_on_front", "is_visible", "is_comparable", "tier_prices", "frontend_input" ]
},
"productList": {
"sort": "updated_at:desc",
"includeFields": [ "type_id", "*sku", "product_links", "tax_class_id", "special_price", "special_to_date", "special_from_date", "name", "price", "price_incl_tax", "original_price_incl_tax", "original_price", "special_price_incl_tax", "id", "image", "sale", "new", "url_path", "url_key", "status", "tier_prices", "configurable_children.sku", "configurable_children.price", "configurable_children.special_price", "configurable_children.price_incl_tax", "configurable_children.special_price_incl_tax", "configurable_children.original_price", "configurable_children.original_price_incl_tax", "*image","*small_image", "configurable_children.color", "configurable_children.size", "configurable_children.tier_prices"],
"includeFields": [ "activity", "type_id", "*sku", "product_links", "tax_class_id", "special_price", "special_to_date", "special_from_date", "name", "price", "price_incl_tax", "original_price_incl_tax", "original_price", "special_price_incl_tax", "id", "image", "sale", "new", "url_path", "url_key", "status", "tier_prices", "configurable_children.sku", "configurable_children.price", "configurable_children.special_price", "configurable_children.price_incl_tax", "configurable_children.special_price_incl_tax", "configurable_children.original_price", "configurable_children.original_price_incl_tax", "*image","*small_image", "configurable_children.color", "configurable_children.size", "configurable_children.tier_prices", "final_price", "configurable_children.final_price"],
"excludeFields": [ "description", "configurable_options", "sgn", "*.sgn", "msrp_display_actual_price_type", "*.msrp_display_actual_price_type", "required_options" ]
},
"productListWithChildren": {
"includeFields": [ "type_id", "sku", "name", "tax_class_id", "special_price", "special_to_date", "special_from_date", "price", "price_incl_tax", "original_price_incl_tax", "original_price", "special_price_incl_tax", "id", "image", "sale", "new", "configurable_children.image", "configurable_children.sku", "configurable_children.price", "configurable_children.special_price", "configurable_children.price_incl_tax", "configurable_children.special_price_incl_tax", "configurable_children.original_price", "configurable_children.original_price_incl_tax", "configurable_children.color", "configurable_children.size", "configurable_children.id", "configurable_children.tier_prices", "product_links", "url_path", "url_key", "status", "tier_prices"],
"includeFields": [ "activity", "type_id", "sku", "name", "tax_class_id", "final_price", "special_price", "special_to_date", "special_from_date", "price", "price_incl_tax", "original_price_incl_tax", "original_price", "special_price_incl_tax", "id", "image", "sale", "new", "configurable_children.image", "configurable_children.sku", "configurable_children.price", "configurable_children.special_price", "configurable_children.price_incl_tax", "configurable_children.special_price_incl_tax", "configurable_children.original_price", "configurable_children.original_price_incl_tax", "configurable_children.color", "configurable_children.size", "configurable_children.id", "configurable_children.tier_prices", "product_links", "url_path", "url_key", "status", "tier_prices", "configurable_children.special_to_date", "configurable_children.special_from_date", "configurable_children.regular_price", "configurable_children.final_price"],
"excludeFields": [ "description", "sgn", "*.sgn", "msrp_display_actual_price_type", "*.msrp_display_actual_price_type", "required_options"]
},
"review": {
Expand Down Expand Up @@ -311,6 +311,7 @@
"setupVariantByAttributeCode": true,
"endpoint": "/api/product",
"defaultFilters": ["color", "size", "price", "erin_recommends"],
"systemFilterNames": ["sort"],
"maxFiltersQuerySize": 999,
"routerFiltersSource": "query",
"filterFieldMapping": {
Expand Down
2 changes: 2 additions & 0 deletions core/build/webpack.base.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { buildLocaleIgnorePattern } from './../i18n/helpers';
import path from 'path';
import config from 'config';
import fs from 'fs';
Expand Down Expand Up @@ -60,6 +61,7 @@ const isProd = process.env.NODE_ENV === 'production'
// todo: usemultipage-webpack-plugin for multistore
export default {
plugins: [
new webpack.ContextReplacementPlugin(/dayjs[/\\]locale$/, buildLocaleIgnorePattern()),
new webpack.ProgressPlugin(),
// new BundleAnalyzerPlugin({
// generateStatsFile: true
Expand Down
4 changes: 3 additions & 1 deletion core/build/webpack.prod.sw.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ module.exports = merge(base, {
filename: 'service-worker.js',
staticFileGlobsIgnorePatterns: [/\.map$/],
staticFileGlobs: [
'dist/**.*',
'dist/**.*.js',
'dist/**.*.json',
'dist/**.*.css',
'assets/**.*',
'assets/ig/**.*',
'index.html',
Expand Down
29 changes: 29 additions & 0 deletions core/i18n/helpers.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import config from 'config'

export const currentBuildLocales = (): string[] => {
const defaultLocale = config.i18n.defaultLocale || 'en-US'
const multistoreLocales = config.storeViews.multistore
? Object.values(config.storeViews)
.map((store: any) => store && typeof store === 'object' && store.i18n && store.i18n.defaultLocale)
.filter(Boolean)
: []
const locales = multistoreLocales.includes(defaultLocale)
? multistoreLocales
: [defaultLocale, ...multistoreLocales]

return locales
}

export const transformToShortLocales = (locales: string[]): string[] => locales.map(locale => {
const separatorIndex = locale.indexOf('-')
const shortLocale = separatorIndex ? locale.substr(0, separatorIndex) : locale

return shortLocale
})

export const buildLocaleIgnorePattern = (): RegExp => {
const locales = transformToShortLocales(currentBuildLocales())
const localesRegex = locales.map(locale => `${locale}$`).join('|')

return new RegExp(localesRegex)
}
6 changes: 2 additions & 4 deletions core/i18n/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ function setI18nLanguage (lang: string): string {
const loadDateLocales = async (lang: string = 'en'): Promise<void> => {
let localeCode = lang.toLocaleLowerCase()
try { // try to load full locale name
await import(/* webpackChunkName: "dayjs-locales" */ `dayjs/locale/${localeCode}`)
await import(/* webpackChunkName: "dayjs-locales-[request]" */ `dayjs/locale/${localeCode}`)
} catch (e) { // load simplified locale name, example: de-DE -> de
const separatorIndex = localeCode.indexOf('-')
if (separatorIndex) {
localeCode = separatorIndex ? localeCode.substr(0, separatorIndex) : localeCode
await import(/* webpackChunkName: "dayjs-locales" */ `dayjs/locale/${localeCode}`)
await import(/* webpackChunkName: "dayjs-locales-[request]" */ `dayjs/locale/${localeCode}`)
}
}
}
Expand Down Expand Up @@ -62,6 +62,4 @@ export async function loadLanguageAsync (lang: string): Promise<string> {
return lang
}

loadLanguageAsync(config.i18n.defaultLocale)

export default i18n
2 changes: 2 additions & 0 deletions core/i18n/resource/i18n/cs-CZ.csv
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"No products synchronized for this category. Please come back while online!","V této kategorii nemáte žádné synchronizované produkty. Zkuste prosím znovu až budete online!"
"No such configuration for the product. Please do choose another combination of attributes.","Neexistuje žádná taková konfigurace pro daný výrobek. Vyberte prosím jinou kombinaci vlastností."
"OK","OK"
"Only {maxQuantity} products of this type are available!","Only {maxQuantity} products of this type are available!"
"Out of stock!","Vyprodáno!"
"Out of the stock!","Není skladem!"
"Payment Information","Informace o platbě"
Expand All @@ -36,6 +37,7 @@
"Proceed to checkout","Přejděte k nákupu"
"Product has been added to the cart!","Produkt byl přidán do košíku!"
"Product price is unknown, product cannot be added to the cart!","Cena produktu není známa, produkt nelze přidat do košíku!"
"Product quantity has been updated!","Množství produktu bylo aktualizováno!"
"Product {productName} has been added to the compare!","Produkt {productName} byl přidán k porovnání!"
"Product {productName} has been added to wishlist!","Produkt {productName} byl přidán do seznamu přání!"
"Product {productName} has been removed from compare!","Produkt {productName} byl odstraněn z porovnávání!"
Expand Down
2 changes: 2 additions & 0 deletions core/i18n/resource/i18n/de-DE.csv
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"No products synchronized for this category. Please come back while online!","Es sind keine Produkte für diese Kategorie synchronisiert. Bitte versuchen Sie es erneut, wenn Sie online sind!"
"No such configuration for the product. Please do choose another combination of attributes.","Diese Konfiguration ist für dieses Produkt nicht möglich. Bitte wählen Sie eine andere Kombination von Eigenschaften."
"OK","OK"
"Only {maxQuantity} products of this type are available!","Only {maxQuantity} products of this type are available!"
"Out of stock!","Nicht auf Lager!"
"Out of the stock!","Nicht mehr auf Lager!"
"Payment Information","Bezahlinformationen"
Expand All @@ -40,6 +41,7 @@
"Processing order...","Bestellung wird verarbeitet..."
"Product has been added to the cart!","Produkt wurde zum Warenkorb hinzugefügt!"
"Product price is unknown, product cannot be added to the cart!","Der Produktpreis ist unbekannt, daher kann dieses Produkt nicht zum Warenkorb hinzugefügt werden!"
"Product quantity has been updated!","Produktmenge wurde aktualisiert!"
"Product {productName} has been added to the compare!","Das Produkt {productName} wurde zur Vergleichsliste hinzugefügt!"
"Product {productName} has been added to wishlist!","Das Produkt {productName} wurde der Wunschliste hinzugefügt!"
"Product {productName} has been removed from compare!","Das Produkt {productName} wurde von der Vergleichsliste entfernt!"
Expand Down
1 change: 1 addition & 0 deletions core/i18n/resource/i18n/en-US.csv
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"No products synchronized for this category. Please come back while online!","No products synchronized for this category. Please come back while online!"
"No such configuration for the product. Please do choose another combination of attributes.","No such configuration for the product. Please do choose another combination of attributes."
"OK","OK"
"Only {maxQuantity} products of this type are available!","Only {maxQuantity} products of this type are available!"
"Or if you will stay on "Order confirmation" page, the order will be placed automatically without confirmation, once the internet connection will be back.","Or if you will stay on "Order confirmation" page, the order will be placed automatically without confirmation, once the internet connection will be back."
"Out of stock!","Out of stock!"
"Out of the stock!","Out of the stock!"
Expand Down
2 changes: 2 additions & 0 deletions core/i18n/resource/i18n/es-ES.csv
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@
"Newsletter preferences have successfully been updated","Las preferencias del boletín se han actualizado con éxito"
"No products synchronized for this category. Please come back while online!","No hay productos sincronizados para esta categoría. Por favor regrese mientras esta en linea!"
"No such configuration for the product. Please do choose another combination of attributes.","No hay tal configuración para el producto. Por favor, elija otra combinación de atributos."
"Only {maxQuantity} products of this type are available!","Only {maxQuantity} products of this type are available!"
"Out of stock!","¡Agotado!"
"Please fix the validation errors","Corrija los errores de validación"
"Product has been added to the cart!","¡El producto ha sido agregado al carrito!"
"Product price is unknown, product cannot be added to the cart!","El precio del producto es desconocido, ¡el producto no se puede agregar al carrito!"
"Product quantity has been updated!","¡La cantidad del producto ha sido actualizada!"
"Product {productName} has been added to the compare!","¡El producto {productName} se ha agregado a la comparación!"
"Product {productName} has been added to wishlist!","¡El producto {productName} ha sido agregado a la lista de deseos!"
"Product {productName} has been removed from compare!","¡El producto {productName} ha sido eliminado de la comparación!"
Expand Down
2 changes: 2 additions & 0 deletions core/i18n/resource/i18n/fr-FR.csv
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@
"No products synchronized for this category. Please come back while online!","Aucun produit synchronisé dans cette catégorie. Merci de passer en ligne !"
"No such configuration for the product. Please do choose another combination of attributes.","Aucune configuration de ce type pour le produit. Veuillez choisir une autre combinaison d'attributs."
"OK","OK"
"Only {maxQuantity} products of this type are available!","Only {maxQuantity} products of this type are available!"
"Out of stock!","Rupture de stock !"
"Out of the stock!","Épuisé !"
"Please configure product custom options and fix the validation errors","Veuillez configurer les options du produit et corriger les erreurs de validation"
"Please fix the validation errors","Veuillez corriger les erreurs de validation"
"Proceed to checkout","Passer la commande"
"Product has been added to the cart!","Le produit a été ajouté au panier !"
"Product price is unknown, product cannot be added to the cart!","Le prix du produit est inconnu, le produit ne peut pas être ajouté au panier !"
"Product quantity has been updated!","La quantité de produit a été mise à jour!"
"Product {productName} has been added to the compare!","Le produit {productName} a été ajouté au comparateur !"
"Product {productName} has been added to wishlist!","Le produit {productName} a été ajouté à la liste des souhaits !"
"Product {productName} has been removed from compare!","Le produit {productName} a été supprimé du comparateur !"
Expand Down
1 change: 1 addition & 0 deletions core/i18n/resource/i18n/it-IT.csv
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"No products synchronized for this category. Please come back while online!","Nessun prodotto in questa categoria. Verifica la connessione di rete e riprova!"
"No such configuration for the product. Please do choose another combination of attributes.","Configurazione del prodotto inesistente. Scegli un'altra combinazione di attributi"
"OK","OK"
"Only {maxQuantity} products of this type are available!","Only {maxQuantity} products of this type are available!"
"Or if you will stay on "Order confirmation" page, the order will be placed automatically without confirmation, once the internet connection will be back.","Oppure se rimarrai nella pagina di "Conferma ordine", l'ordine verrà automaticamente evaso senza conferma, una volta che la connessione sarà ripristinata."
"Out of stock!","Non disponibile"
"Out of the stock!","Non disponibile"
Expand Down
Loading