Skip to content

Commit

Permalink
feat(demo): add dashboards media library browsing (#944)
Browse files Browse the repository at this point in the history
  • Loading branch information
Davidmattei authored Jul 4, 2024
1 parent 7cd60eb commit f661233
Show file tree
Hide file tree
Showing 8 changed files with 72 additions and 5 deletions.
2 changes: 1 addition & 1 deletion configs/admin/dashboard/default-search.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"options": {
"body": "{{ block(\"ems_body\", \"@EMSCH/template_ems/dashboard/default_search.twig\") }}"
},
"orderKey": 2
"orderKey": 1
},
"replaced": []
}
22 changes: 22 additions & 0 deletions configs/admin/dashboard/media-lib-browse-file.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"class": "EMS\\CoreBundle\\Entity\\Dashboard",
"arguments": [],
"properties": {
"name": "media-lib-browse-file",
"icon": "fa fa-file-text",
"label": "Browse media library",
"sidebarMenu": false,
"notificationMenu": false,
"definition": "browser_file",
"type": "ems_core.dashboard.template",
"role": "ROLE_AUTHOR",
"color": null,
"options": {
"body": "{{ block(\"body\", \"@EMSCH/template_ems/dashboard/media_library.twig\") }}",
"header": "{{ block(\"css\", \"@EMSCH/template_ems/dashboard/media_library.twig\") }}",
"footer": "{{ block(\"javascript\", \"@EMSCH/template_ems/dashboard/media_library.twig\") }}"
},
"orderKey": 5
},
"replaced": []
}
22 changes: 22 additions & 0 deletions configs/admin/dashboard/media-lib-browse-image.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"class": "EMS\\CoreBundle\\Entity\\Dashboard",
"arguments": [],
"properties": {
"name": "media-lib-browse-image",
"icon": "fa fa-image",
"label": "Browse media library",
"sidebarMenu": false,
"notificationMenu": false,
"definition": "browser_image",
"type": "ems_core.dashboard.template",
"role": "ROLE_AUTHOR",
"color": null,
"options": {
"body": "{{ block(\"body\", \"@EMSCH/template_ems/dashboard/media_library.twig\") }}",
"header": "{{ block(\"css\", \"@EMSCH/template_ems/dashboard/media_library.twig\") }}",
"footer": "{{ block(\"javascript\", \"@EMSCH/template_ems/dashboard/media_library.twig\") }}"
},
"orderKey": 7
},
"replaced": []
}
22 changes: 22 additions & 0 deletions configs/admin/dashboard/media-lib-browse-object.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"class": "EMS\\CoreBundle\\Entity\\Dashboard",
"arguments": [],
"properties": {
"name": "media-lib-browse-object",
"icon": "glyphicon glyphicon-pushpin",
"label": "Browse media library",
"sidebarMenu": false,
"notificationMenu": false,
"definition": "browser_object",
"type": "ems_core.dashboard.template",
"role": "ROLE_AUTHOR",
"color": null,
"options": {
"body": "{{ block(\"body\", \"@EMSCH/template_ems/dashboard/media_library.twig\") }}",
"header": "{{ block(\"css\", \"@EMSCH/template_ems/dashboard/media_library.twig\") }}",
"footer": "{{ block(\"javascript\", \"@EMSCH/template_ems/dashboard/media_library.twig\") }}"
},
"orderKey": 6
},
"replaced": []
}
4 changes: 2 additions & 2 deletions configs/admin/dashboard/media-library.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"label": "Media library",
"sidebarMenu": true,
"notificationMenu": false,
"definition": "browser_file",
"definition": null,
"type": "ems_core.dashboard.template",
"role": "ROLE_AUTHOR",
"color": null,
Expand All @@ -16,7 +16,7 @@
"header": "{{ block(\"css\", \"@EMSCH/template_ems/dashboard/media_library.twig\") }}",
"footer": "{{ block(\"javascript\", \"@EMSCH/template_ems/dashboard/media_library.twig\") }}"
},
"orderKey": 3
"orderKey": 4
},
"replaced": []
}
2 changes: 1 addition & 1 deletion configs/admin/dashboard/sitemap.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"footer": "{{ block(\"ems_footer\", \"@EMSCH/template_ems/dashboard/sitemap.twig\") }}",
"header": "{{ block(\"ems_header\", \"@EMSCH/template_ems/dashboard/sitemap.twig\") }}"
},
"orderKey": 1
"orderKey": 2
},
"replaced": []
}
2 changes: 1 addition & 1 deletion configs/admin/dashboard/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"role": "ROLE_USER",
"color": null,
"options": [],
"orderKey": 4
"orderKey": 3
},
"replaced": []
}
1 change: 1 addition & 0 deletions skeleton/template/structure/by_path.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

{% set path = app.request.get('path') %}
{% set locale = app.request.get('_locale') %}
{% set locales = app.request.server.all['EMSCH_LOCALES']|default('[]')|ems_json_decode %}

{% set searchSection = emsch_search('section', {
"size": 1,
Expand Down

0 comments on commit f661233

Please sign in to comment.