Details
-
Task
-
Status: Closed
-
Minor
-
Resolution: Discarded
-
None
-
None
-
None
Description
Part of our plan to remove usages of metal in DXP codebase
The goal of this task is to remove existing usages of {Soy} and {Config} from the metal-soy package.
The intended order of removal is:
- Replace the classes/function calls with standard APIs or specific DXP functions when needed.
- Remove imports of these functions/objects in the .js files
- Remove the dependencies in package.json file if it's declared there
Do not look for occurrences in neither .npmbundlerrc nor .eslintrc.js files as these will be dealt with in a separate task.
As the kind of functionality provided by the Soy class is related to the rendering of soy templates, most of these usages may be removed naturally if components are migrated from metal to React. Still, there are some references to the metal-soy package in package.json file
Here is a list of usages
commerce | commerce-cart-taglib | META-INF/resources/add_to_cart/AddToCart.es.js | Soy |
package.json | |||
commerce-frontend-taglib | META-INF/resources/account_selector/AccountSelector.es.js | Soy, Config | |
META-INF/resources/account_selector/AccountsTable.es.js | Soy, Config | ||
META-INF/resources/account_selector/AccountsTableItem.es.js | Soy, Config | ||
META-INF/resources/account_selector/OrdersTable.es.js | Soy, Config | ||
META-INF/resources/add_account_modal/AddAccountModal.es.js | Soy, Config | ||
META-INF/resources/add_organizations_modal/AddOrganizationsModal.es.js | Soy, Config | ||
META-INF/resources/add_organizations_modal/OrganizationInputItem.es.js | Soy, Config | ||
META-INF/resources/add_organizations_modal/OrganizationListItem.es.js | Soy, Config | ||
META-INF/resources/add_to_cart/AddToCartButton.es.js | Soy, Config | ||
META-INF/resources/add_to_tick_item/AddToTickItem.es.js | Soy, Config | ||
META-INF/resources/address_modal/AddressModal.es.js | Soy, Config | ||
META-INF/resources/autocomplete_item/AutocompleteItem.es.js | Soy, Config | ||
META-INF/resources/compare_checkbox/CompareCheckbox.es.js | Soy, Config | ||
META-INF/resources/input_utils/CommerceInputText.js | Soy, Config | ||
META-INF/resources/price/Price.es.js | Soy, Config | ||
META-INF/resources/product_card/ProductCard.es.js | Soy, Config | ||
META-INF/resources/product_details_modal/ProductDetailsModal.js | Soy, Config | ||
META-INF/resources/products_compare/ProductsCompare.es.js | Soy, Config | ||
META-INF/resources/products_compare/ProductsCompareItem.es.js | Soy, Config | ||
META-INF/resources/quantity_selector/QuantitySelector.es.js | Soy, Config | ||
META-INF/resources/search_bar/SearchBar.es.js | Soy, Config | ||
META-INF/resources/search_results/SearchResults.es.js | Soy, Config | ||
META-INF/resources/user_invitation_modal/UserInvitationModal.es.js | Soy, Config | ||
META-INF/resources/user_roles_modal/RoleInputItem.es.js | Soy, Config | ||
META-INF/resources/user_roles_modal/RoleListItem.es.js | Soy, Config | ||
META-INF/resources/user_roles_modal/UserRolesModal.es.js | Soy, Config | ||
META-INF/resources/user_utils/UserInputItem.es.js | Soy, Config | ||
META-INF/resources/user_utils/UserInvitation.es.js | Soy, Config | ||
META-INF/resources/user_utils/UserListItem.es.js | Soy, Config | ||
package.json | |||
commerce-product-content-web | META-INF/resources/js/AutoField.es.js | Soy | |
META-INF/resources/js/CategorySelector.es.js | Soy | ||
META-INF/resources/js/TagSelector.es.js | Soy | ||
package.json | |||
commerce-product-options-web | META-INF/resources/CPOptionDetail.es.js | Soy | |
META-INF/resources/CPOptionList.es.js | Soy | ||
META-INF/resources/CPOptionsEditor.es.js | Soy | ||
META-INF/resources/CPOptionValueDetail.es.js | Soy | ||
META-INF/resources/CPOptionValueList.es.js | Soy | ||
META-INF/resources/CPOptionValuesEditor.es.js | Soy | ||
package.json | |||
commerce-theme-minium-impl | META-INF/resources/action_menus/MiniumActionsMenu.es.js | Soy | |
package.json | |||
data-engine | data-engine-taglib | META-INF/resources/data_layout_builder/js/components/rule-builder/Calculator/CalculatorReactAdapter.es.js | Soy |
dynamic-data-mapping | dynamic-data-mapping-form-builder | META-INF/resources/js/components/Calculator/Calculator.es.js | Soy |
META-INF/resources/js/components/RuleEditor/RuleEditor.es.js | Soy | ||
META-INF/resources/js/components/RuleList/RuleList.es.js | Soy | ||
test/js/_fixtures_/MockField.es.js | Soy | ||
dynamic-data-mapping-form-field-type | META-INF/resources/components/FormPortal/FormPortal.es.js | Soy | |
META-INF/resources/components/Tooltip/Tooltip.es.js | Soy | ||
META-INF/resources/FieldBase/FieldBase.es.js | Soy | ||
package.json | |||
test/js/_fixtures_/PageRenderer.es.js | Soy | ||
dynamic-data-mapping-form-renderer | META-INF/resources/js/util/ReactComponentAdapter.es.js | Soy (in a comment!) | |
META-INF/resources/js/components/Field/MetalFieldAdapter.es.js | Soy | ||
META-INF/resources/js/components/Field/ReactFieldAdapter.es.js | Soy | ||
META-INF/resources/js/containers/Form.es.js | Soy | ||
package.json | |||
test/js/_mock_/MetalFieldMock.es.js | Soy | ||
flags | flags-taglib | META-INF/resources/flags.soy/Flags.es.js | Soy |
package.json | |||
frontend-js | frontend-js-web | META-INF/resources/liferay.compat.modal/Modal.es.js | Soy |
package.json | |||
frontend-taglib | frontend-taglib-clay | META-INF/resources/management_toolbar/ManagementToolbar.es.js | Soy |
package.json | |||
journal | journal-article-dynamic-data-mapping-form-field-type | package.json | |
layout | layout-dynamic-data-mapping-form-field-type | package.json | |
sdk/project-templates | project-templates-form-field | META-INF/resources/_artifactId_.es.js | Soy |
package.json | |||
util | portal-tools-soy-builder | com/liferay/portal/tools/soy/builder/commands/dependencies/replace_soy_translation/metal_cli/footer.soy.js | |
com/liferay/portal/tools/soy/builder/commands/dependencies/replace_soy_translation/metal_cli/header.soy.js | |||
com/liferay/portal/tools/soy/builder/commands/dependencies/replace_soy_translation/metal_cli/navigation.soy.js | |||
com/liferay/portal/tools/soy/builder/commands/dependencies/replace_soy_translation/metal_cli/view.soy.js | |||
com/liferay/portal/tools/soy/builder/commands/dependencies/replace_soy_translation/metal_cli/expected/footer.soy.js | |||
com/liferay/portal/tools/soy/builder/commands/dependencies/replace_soy_translation/metal_cli/expected/header.soy.js | |||
com/liferay/portal/tools/soy/builder/commands/dependencies/replace_soy_translation/metal_cli/expected/navigation.soy.js | |||
com/liferay/portal/tools/soy/builder/commands/dependencies/replace_soy_translation/metal_cli/expected/view.soy.js | |||
com/liferay/portal/tools/soy/builder/commands/dependencies/replace_soy_translation/metal_cli_2/footer.soy.js | |||
com/liferay/portal/tools/soy/builder/commands/dependencies/replace_soy_translation/metal_cli_2/header.soy.js | |||
com/liferay/portal/tools/soy/builder/commands/dependencies/replace_soy_translation/metal_cli_2/navigation.soy.js | |||
com/liferay/portal/tools/soy/builder/commands/dependencies/replace_soy_translation/metal_cli_2/view.soy.js | |||
com/liferay/portal/tools/soy/builder/commands/dependencies/replace_soy_translation/metal_cli_2.expected/footer.soy.js | |||
com/liferay/portal/tools/soy/builder/commands/dependencies/replace_soy_translation/metal_cli_2.expected/header.soy.js | |||
com/liferay/portal/tools/soy/builder/commands/dependencies/replace_soy_translation/metal_cli_2.expected/navigation.soy.js | |||
com/liferay/portal/tools/soy/builder/commands/dependencies/replace_soy_translation/metal_cli_2.expected/view.soy.js |