From b6cf41b2f33057798d7d125a4d0e6a1b5e92b1cf 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 (#70) --- .../locale/portlet/LayoutEditor_en.properties | 1 + .../components/PageTemplatesManagement.vue | 1 + .../list/PageTemplateIllustration.vue | 73 +++++++++++++++++ .../PageTemplateIllustrationPreviewDialog.vue | 80 +++++++++++++++++++ .../components/list/PageTemplateItem.vue | 14 +--- .../initComponents.js | 5 ++ 6 files changed, 162 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..8819e0606 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,7 @@ pageTemplate.label.editProperties=Edit Properties pageTemplate.label.duplicate=Duplicate pageTemplate.label.templateMenu={0} pageTemplate.label.closeMenu=Close Menu +pageTemplate.label.close=Close 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"> -
- -
+