Skip to content

Commit

Permalink
MAGETWO-96618: JS files relocation BC in 2.3 too
Browse files Browse the repository at this point in the history
  • Loading branch information
rbayet committed Dec 5, 2018
1 parent cf69967 commit f38f09f
Show file tree
Hide file tree
Showing 13 changed files with 37 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
var config = {
map: {
'*': {
transparent: 'Magento_Payment/js/transparent'
transparent: 'Magento_Payment/js/transparent',
'Magento_Payment/transparent': 'Magento_Payment/js/transparent'
}
}
};
3 changes: 2 additions & 1 deletion app/code/Magento/Captcha/view/frontend/requirejs-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
var config = {
map: {
'*': {
captcha: 'Magento_Captcha/js/captcha'
captcha: 'Magento_Captcha/js/captcha',
'Magento_Captcha/captcha': 'Magento_Captcha/js/captcha'
}
}
};
4 changes: 3 additions & 1 deletion app/code/Magento/Customer/view/frontend/requirejs-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ var config = {
changeEmailPassword: 'Magento_Customer/js/change-email-password',
passwordStrengthIndicator: 'Magento_Customer/js/password-strength-indicator',
zxcvbn: 'Magento_Customer/js/zxcvbn',
addressValidation: 'Magento_Customer/js/addressValidation'
addressValidation: 'Magento_Customer/js/addressValidation',
'Magento_Customer/address': 'Magento_Customer/js/address',
'Magento_Customer/change-email-password': 'Magento_Customer/js/change-email-password'
}
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
var config = {
map: {
'*': {
downloadable: 'Magento_Downloadable/js/downloadable'
downloadable: 'Magento_Downloadable/js/downloadable',
'Magento_Downloadable/downloadable': 'Magento_Downloadable/js/downloadable'
}
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ var config = {
map: {
'*': {
giftOptions: 'Magento_GiftMessage/js/gift-options',
extraOptions: 'Magento_GiftMessage/js/extra-options'
extraOptions: 'Magento_GiftMessage/js/extra-options',
'Magento_GiftMessage/gift-options': 'Magento_GiftMessage/js/gift-options',
'Magento_GiftMessage/extra-options': 'Magento_GiftMessage/js/extra-options'
}
}
};
3 changes: 2 additions & 1 deletion app/code/Magento/Payment/view/frontend/requirejs-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
var config = {
map: {
'*': {
creditCardType: 'Magento_Payment/js/cc-type'
creditCardType: 'Magento_Payment/js/cc-type',
'Magento_Payment/cc-type': 'Magento_Payment/js/cc-type'
}
}
};
3 changes: 2 additions & 1 deletion app/code/Magento/Paypal/view/base/requirejs-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
var config = {
map: {
'*': {
transparent: 'Magento_Payment/js/transparent'
transparent: 'Magento_Payment/js/transparent',
'Magento_Payment/transparent': 'Magento_Payment/js/transparent'
}
}
};
1 change: 1 addition & 0 deletions app/code/Magento/Paypal/view/frontend/requirejs-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ var config = {
map: {
'*': {
orderReview: 'Magento_Paypal/js/order-review',
'Magento_Paypal/order-review': 'Magento_Paypal/js/order-review',
paypalCheckout: 'Magento_Paypal/js/paypal-checkout'
}
},
Expand Down
4 changes: 3 additions & 1 deletion app/code/Magento/Sales/view/frontend/requirejs-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ var config = {
map: {
'*': {
giftMessage: 'Magento_Sales/js/gift-message',
ordersReturns: 'Magento_Sales/js/orders-returns'
ordersReturns: 'Magento_Sales/js/orders-returns',
'Magento_Sales/gift-message': 'Magento_Sales/js/gift-message',
'Magento_Sales/orders-returns': 'Magento_Sales/js/orders-returns'
}
}
};
3 changes: 2 additions & 1 deletion app/code/Magento/Search/view/frontend/requirejs-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
var config = {
map: {
'*': {
quickSearch: 'Magento_Search/js/form-mini'
quickSearch: 'Magento_Search/js/form-mini',
'Magento_Search/form-mini': 'Magento_Search/js/form-mini'
}
}
};
11 changes: 11 additions & 0 deletions app/code/Magento/SendFriend/view/frontend/web/requirejs-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
var config = {
map: {
'*': {
'Magento_SendFriend/back-event': 'Magento_SendFriend/js/back-event'
}
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ var config = {
map: {
'*': {
editTrigger: 'mage/edit-trigger',
addClass: 'Magento_Translation/js/add-class'
addClass: 'Magento_Translation/js/add-class',
'Magento_Translation/add-class': 'Magento_Translation/js/add-class'
}
},
deps: [
Expand Down
3 changes: 2 additions & 1 deletion app/code/Magento/Weee/view/frontend/requirejs-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
var config = {
map: {
'*': {
'taxToggle': 'Magento_Weee/js/tax-toggle'
'taxToggle': 'Magento_Weee/js/tax-toggle',
'Magento_Weee/tax-toggle': 'Magento_Weee/js/tax-toggle'
}
}
};

0 comments on commit f38f09f

Please sign in to comment.