Skip to content

Commit

Permalink
NEXT-36523 - Add extension components
Browse files Browse the repository at this point in the history
  • Loading branch information
quynhnguyen68 committed Jun 19, 2024
1 parent ddb5890 commit 5061cac
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: Add extension component in product detail, order detail, customer detail and dashboard page
issue: NEXT-36523
---
# Administration
* Added `sw-extension-component-section` with position-identifier `sw-customer-detail__before-content` in file `sw-customer-detail.html.twig`
* Added `sw-extension-component-section` with position-identifier `sw-order-detail__before-content` in file `sw-order-detail.html.twig`
* Added `sw-extension-component-section` with position-identifier `sw-product-detail__before-content` in file `sw-product-detail.html.twig`
* Added `sw-extension-component-section` with position-identifier `sw-dashboard__before-content` in file `sw-dashboard-index.html.twig`
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@
</sw-tabs>
{% endblock %}

<sw-extension-component-section
position-identifier="sw-customer-detail__before-content"
/>

<!-- eslint-disable-next-line sw-deprecation-rules/no-twigjs-blocks -->
{% block sw_customer_detail_content_view %}
<template v-if="isLoading">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
{% block sw_dashboard_index_content %}
<template #content>
<sw-card-view class="sw-dashboard-index__content">

<!-- eslint-disable-next-line sw-deprecation-rules/no-twigjs-blocks -->
{% block sw_dashboard_index_content_intro_card %}
<!-- eslint-disable-next-line sw-deprecation-rules/no-twigjs-blocks -->
Expand All @@ -34,6 +33,11 @@
{% endblock %}
{% endblock %}

<sw-extension-component-section
position-identifier="sw-dashboard__before-content"
class="sw-dashboard__before-content"
/>

<sw-usage-data-consent-banner :can-be-hidden="true" />

<!-- eslint-disable-next-line sw-deprecation-rules/no-twigjs-blocks -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,8 @@ $content-max-width: 960px;
.sw-card {
max-width: $content-max-width !important;
}

.sw-dashboard__before-content {
margin-top: 32px;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,10 @@
</sw-tabs>
{% endblock %}

<sw-extension-component-section
position-identifier="sw-order-detail__before-content"
/>

<!-- eslint-disable-next-line sw-deprecation-rules/no-twigjs-blocks -->
{% block sw_order_detail_content_view %}
<template v-if="isLoading">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,10 @@
</sw-tabs>
{% endblock %}

<sw-extension-component-section
position-identifier="sw-product-detail__before-content"
/>

<!-- eslint-disable-next-line sw-deprecation-rules/no-twigjs-blocks -->
{% block sw_product_detail_content_view %}
<router-view
Expand Down

0 comments on commit 5061cac

Please sign in to comment.