From f863769301d520d5c3b374a01d484f23a994d0e5 Mon Sep 17 00:00:00 2001 From: Boubaker Khanfir Date: Mon, 20 May 2024 13:34:41 +0100 Subject: [PATCH] feat: Add Page Template Illustration Preview - MEED-6849 - Meeds-io/MIPs#133 --- .../locale/portlet/LayoutEditor_en.properties | 2 + .../components/PageTemplatesManagement.vue | 1 + .../list/PageTemplateIllustration.vue | 74 +++++++++++++++++ .../PageTemplateIllustrationPreviewDialog.vue | 80 +++++++++++++++++++ .../components/list/PageTemplateItem.vue | 14 +--- .../initComponents.js | 5 ++ 6 files changed, 164 insertions(+), 12 deletions(-) create mode 100644 layout-webapp/src/main/webapp/vue-app/page-templates-management/components/list/PageTemplateIllustration.vue create mode 100644 layout-webapp/src/main/webapp/vue-app/page-templates-management/components/list/PageTemplateIllustrationPreviewDialog.vue diff --git a/layout-webapp/src/main/resources/locale/portlet/LayoutEditor_en.properties b/layout-webapp/src/main/resources/locale/portlet/LayoutEditor_en.properties index 884a98655..5dd0c6b80 100644 --- a/layout-webapp/src/main/resources/locale/portlet/LayoutEditor_en.properties +++ b/layout-webapp/src/main/resources/locale/portlet/LayoutEditor_en.properties @@ -136,6 +136,8 @@ pageTemplate.label.editProperties=Edit Properties pageTemplate.label.duplicate=Duplicate pageTemplate.label.templateMenu={0} pageTemplate.label.closeMenu=Close Menu +pageTemplate.label.close=Close +pageTemplate.label.openIllustrationPreview=Open illustration Preview pageTemplate.label.enableTemplate=Enable Template pageTemplate.label.disableTemplate=Disable Template pageTemplate.label.system.noDelete=This product template cannot be deleted diff --git a/layout-webapp/src/main/webapp/vue-app/page-templates-management/components/PageTemplatesManagement.vue b/layout-webapp/src/main/webapp/vue-app/page-templates-management/components/PageTemplatesManagement.vue index bedce382e..1bca737d9 100644 --- a/layout-webapp/src/main/webapp/vue-app/page-templates-management/components/PageTemplatesManagement.vue +++ b/layout-webapp/src/main/webapp/vue-app/page-templates-management/components/PageTemplatesManagement.vue @@ -32,6 +32,7 @@ :keyword="keyword" /> + \ No newline at end of file diff --git a/layout-webapp/src/main/webapp/vue-app/page-templates-management/components/list/PageTemplateIllustrationPreviewDialog.vue b/layout-webapp/src/main/webapp/vue-app/page-templates-management/components/list/PageTemplateIllustrationPreviewDialog.vue new file mode 100644 index 000000000..3dde80a6c --- /dev/null +++ b/layout-webapp/src/main/webapp/vue-app/page-templates-management/components/list/PageTemplateIllustrationPreviewDialog.vue @@ -0,0 +1,80 @@ + + + \ No newline at end of file diff --git a/layout-webapp/src/main/webapp/vue-app/page-templates-management/components/list/PageTemplateItem.vue b/layout-webapp/src/main/webapp/vue-app/page-templates-management/components/list/PageTemplateItem.vue index e4faf5e42..1ed7519f8 100644 --- a/layout-webapp/src/main/webapp/vue-app/page-templates-management/components/list/PageTemplateItem.vue +++ b/layout-webapp/src/main/webapp/vue-app/page-templates-management/components/list/PageTemplateItem.vue @@ -5,12 +5,8 @@ v-if="!$root.isMobile" align="center" width="70px"> -
- -
+