-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
established the compatibility with Shopware from version 6.5
- Loading branch information
Showing
16 changed files
with
157 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
import './module/sw-dashboard-index'; | ||
import './module/sw-dashboard/page/sw-dashboard-index'; | ||
import './module/sw-dashboard/component/sw-dashboard-statistics'; |
119 changes: 0 additions & 119 deletions
119
src/Resources/app/administration/src/module/sw-dashboard-index/sw-dashboard-index.html.twig
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
src/Resources/app/administration/src/module/sw-dashboard-index/sw-dashboard-index.scss
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...ces/app/administration/src/module/sw-dashboard/component/sw-dashboard-statistics/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import './../../acl'; | ||
|
||
import template from './sw-dashboard-statistics.html.twig'; | ||
|
||
Shopware.Component.override('sw-dashboard-statistics', { | ||
template, | ||
|
||
inject: { | ||
acl: 'acl' | ||
}, | ||
}); |
49 changes: 49 additions & 0 deletions
49
...c/module/sw-dashboard/component/sw-dashboard-statistics/sw-dashboard-statistics.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{% block sw_dashboard_statistics_intro_stats_headline %} | ||
{% block sw_dashboard_statistics_intro_stats_headline_before %}{% endblock %} | ||
<template v-if="acl.can('admin') || !acl.can('dashboard.stats_today')"> | ||
{% block sw_dashboard_statistics_intro_stats_headline_inner_before %}{% endblock %} | ||
{% parent() %} | ||
{% block sw_dashboard_statistics_intro_stats_headline_inner_after %}{% endblock %} | ||
</template> | ||
{% block sw_dashboard_statistics_intro_stats_headline_after %}{% endblock %} | ||
{% endblock %} | ||
|
||
{% block sw_dashboard_statistics_intro_stats_today %} | ||
{% block sw_dashboard_statistics_intro_stats_today_before %}{% endblock %} | ||
<template v-if="acl.can('admin') || !acl.can('dashboard.stats_today')"> | ||
{% block sw_dashboard_statistics_intro_stats_today_inner_before %}{% endblock %} | ||
{% parent() %} | ||
{% block sw_dashboard_statistics_intro_stats_today_inner_after %}{% endblock %} | ||
</template> | ||
{% block sw_dashboard_statistics_intro_stats_today_after %}{% endblock %} | ||
{% endblock %} | ||
|
||
{% block sw_dashboard_statistics_grid %} | ||
{% block sw_dashboard_statistics_grid_before %}{% endblock %} | ||
<template v-if="acl.can('admin') || !acl.can('dashboard.stats_today')"> | ||
{% block sw_dashboard_statistics_grid_inner_before %}{% endblock %} | ||
{% parent() %} | ||
{% block sw_dashboard_statistics_grid_inner_after %}{% endblock %} | ||
</template> | ||
{% block sw_dashboard_statistics_grid_after %}{% endblock %} | ||
{% endblock %} | ||
|
||
{% block sw_dashboard_statistics_count %} | ||
{% block sw_dashboard_statistics_count_before %}{% endblock %} | ||
<template v-if="acl.can('admin') || !acl.can('dashboard.statistics_count')"> | ||
{% block sw_dashboard_statistics_count_inner_before %}{% endblock %} | ||
{% parent() %} | ||
{% block sw_dashboard_statistics_count_inner_after %}{% endblock %} | ||
</template> | ||
{% block sw_dashboard_statistics_count_after %}{% endblock %} | ||
{% endblock %} | ||
|
||
{% block sw_dashboard_statistics_sum %} | ||
{% block sw_dashboard_statistics_sum_before %}{% endblock %} | ||
<template v-if="acl.can('admin') || !acl.can('dashboard.statistics_sum')"> | ||
{% block sw_dashboard_statistics_sum_inner_before %}{% endblock %} | ||
{% parent() %} | ||
{% block sw_dashboard_statistics_sum_inner_after %}{% endblock %} | ||
</template> | ||
{% block sw_dashboard_statistics_sum_after %}{% endblock %} | ||
{% endblock %} |
6 changes: 3 additions & 3 deletions
6
...on/src/module/sw-dashboard-index/index.js → ...ashboard/page/sw-dashboard-index/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
...ministration/src/module/sw-dashboard/page/sw-dashboard-index/sw-dashboard-index.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{% block sw_dashboard_index %} | ||
{% block sw_dashboard_index_before %}{% endblock %} | ||
<div class="sw-page__outer"> | ||
{% block sw_dashboard_index_inner_before %}{% endblock %} | ||
{% parent() %} | ||
{% block sw_dashboard_index_inner_after %}{% endblock %} | ||
</div> | ||
{% block sw_dashboard_index_after %}{% endblock %} | ||
{% endblock %} | ||
|
||
{% block sw_dashboard_index_content_intro_card %} | ||
{% block sw_dashboard_index_content_intro_card_before %}{% endblock %} | ||
<template v-if="acl.can('admin') || !acl.can('dashboard.intro')"> | ||
{% block sw_dashboard_index_content_intro_card_inner_before %}{% endblock %} | ||
{% parent() %} | ||
{% block sw_dashboard_index_content_intro_card_inner_after %}{% endblock %} | ||
</template> | ||
{% block sw_dashboard_index_content_intro_card_after %}{% endblock %} | ||
{% endblock %} | ||
|
||
{% block sw_dashboard_index_content_info_grid %} | ||
{% block sw_dashboard_index_content_info_grid_before %}{% endblock %} | ||
<template v-if="acl.can('admin') || (!acl.can('dashboard.welcome') || !acl.can('dashboard.feedback'))"> | ||
{% block sw_dashboard_index_content_info_grid_inner_before %}{% endblock %} | ||
{% parent() %} | ||
{% block sw_dashboard_index_content_info_grid_inner_after %}{% endblock %} | ||
</template> | ||
{% block sw_dashboard_index_content_info_grid_after %}{% endblock %} | ||
{% endblock %} | ||
|
||
{% block sw_dashboard_index_content_info__grid_inner_welcome_card %} | ||
{% block sw_dashboard_index_content_info__grid_inner_welcome_card_before %}{% endblock %} | ||
<template v-if="acl.can('admin') || !acl.can('dashboard.welcome')"> | ||
{% block sw_dashboard_index_content_info__grid_inner_welcome_card_inner_before %}{% endblock %} | ||
{% parent() %} | ||
{% block sw_dashboard_index_content_info__grid_inner_welcome_card_inner_after %}{% endblock %} | ||
</template> | ||
{% block sw_dashboard_index_content_info__grid_inner_welcome_card_after %}{% endblock %} | ||
{% endblock %} | ||
|
||
{% block sw_dashboard_index_content_grid_info_inner_feedback_card %} | ||
{% block sw_dashboard_index_content_grid_info_inner_feedback_card_before %}{% endblock %} | ||
<template v-if="acl.can('admin') || !acl.can('dashboard.feedback')"> | ||
{% block sw_dashboard_index_content_grid_info_inner_feedback_card_inner_before %}{% endblock %} | ||
{% parent() %} | ||
{% block sw_dashboard_index_content_grid_info_inner_feedback_card_inner_after %}{% endblock %} | ||
</template> | ||
{% block sw_dashboard_index_content_grid_info_inner_feedback_card_after %}{% endblock %} | ||
{% endblock %} |
25 changes: 25 additions & 0 deletions
25
...pp/administration/src/module/sw-dashboard/page/sw-dashboard-index/sw-dashboard-index.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
.sw-page__outer { | ||
position: relative; | ||
height: 100%; | ||
|
||
.sw-dashboard-index__welcome-text { | ||
margin-bottom: 32px; | ||
} | ||
|
||
.sw-dashboard-index__card-grid { | ||
margin-top: 0; | ||
} | ||
|
||
.sw-card { | ||
display: none; | ||
|
||
&.sw-dashboard-statistics__statistics-count, | ||
&.sw-dashboard-statistics__statistics-sum { | ||
display: block; | ||
} | ||
} | ||
|
||
.sw-dashboard-statistics__card-headline + div > .sw-card { | ||
display: block; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Resources/public/administration/css/sschreier-administration-dashboard.css
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.