From 6439c582d003602578af9f007e27f3d14f8eef18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20L=C3=B8vgaard?= Date: Wed, 3 Jul 2024 20:41:06 +0200 Subject: [PATCH] Remove unused views and configuration for now --- src/Resources/config/app/config.yaml | 11 ---- src/Resources/translations/messages.en.yaml | 4 -- .../views/shop/product/_item.html.twig | 22 ------- .../views/shop/product/index.html.twig | 11 ---- .../shop/product/index/_scripts.html.twig | 61 ------------------- .../shop/product/index/_styles.html.twig | 28 --------- 6 files changed, 137 deletions(-) delete mode 100644 src/Resources/translations/messages.en.yaml delete mode 100644 src/Resources/views/shop/product/_item.html.twig delete mode 100644 src/Resources/views/shop/product/index.html.twig delete mode 100644 src/Resources/views/shop/product/index/_scripts.html.twig delete mode 100644 src/Resources/views/shop/product/index/_styles.html.twig diff --git a/src/Resources/config/app/config.yaml b/src/Resources/config/app/config.yaml index 8b5cf61..8205a21 100644 --- a/src/Resources/config/app/config.yaml +++ b/src/Resources/config/app/config.yaml @@ -2,14 +2,3 @@ framework: messenger: buses: setono_sylius_meilisearch.command_bus: ~ - -sylius_ui: - events: - sylius.shop.layout.javascripts: - blocks: - ssa_shop_product_index_scripts: - template: "@SetonoSyliusMeilisearchPlugin/shop/product/index/_scripts.html.twig" - sylius.shop.layout.stylesheets: - blocks: - ssa_shop_product_index_styles: - template: "@SetonoSyliusMeilisearchPlugin/shop/product/index/_styles.html.twig" diff --git a/src/Resources/translations/messages.en.yaml b/src/Resources/translations/messages.en.yaml deleted file mode 100644 index 0fdb74f..0000000 --- a/src/Resources/translations/messages.en.yaml +++ /dev/null @@ -1,4 +0,0 @@ -setono_sylius_meilisearch: - ui: - sort_by: - relevance: Relevance diff --git a/src/Resources/views/shop/product/_item.html.twig b/src/Resources/views/shop/product/_item.html.twig deleted file mode 100644 index 41ec73e..0000000 --- a/src/Resources/views/shop/product/_item.html.twig +++ /dev/null @@ -1,22 +0,0 @@ -{# -Notice this is the javascript template included as a template -(https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals) in the 'hits' widget -#} -{% verbatim %} -
- -
-
-
-
{{ 'sylius.ui.view_more'|trans }}
-
-
-
- {{ name }} -
- -
-{% endverbatim %} diff --git a/src/Resources/views/shop/product/index.html.twig b/src/Resources/views/shop/product/index.html.twig deleted file mode 100644 index 088ebed..0000000 --- a/src/Resources/views/shop/product/index.html.twig +++ /dev/null @@ -1,11 +0,0 @@ -{% extends "@SyliusShop/layout.html.twig" %} - -{% block content %} - {{ sylius_template_event('sylius.shop.taxon.header', {'taxon': taxon}) }} - -
-
-
-
- -{% endblock %} diff --git a/src/Resources/views/shop/product/index/_scripts.html.twig b/src/Resources/views/shop/product/index/_scripts.html.twig deleted file mode 100644 index a54b909..0000000 --- a/src/Resources/views/shop/product/index/_scripts.html.twig +++ /dev/null @@ -1,61 +0,0 @@ -{% set scripts = [ - {'src': 'https://cdn.jsdelivr.net/npm/algoliasearch@4.14.2/dist/algoliasearch-lite.umd.js', 'integrity': 'sha256-dImjLPUsG/6p3+i7gVKBiDM8EemJAhQ0VvkRK2pVsQY='}, - {'src': 'https://cdn.jsdelivr.net/npm/instantsearch.js@4.49.1/dist/instantsearch.production.min.js', 'integrity': 'sha256-3s8yn/IU/hV+UjoqczP+9xDS1VXIpMf3QYRUi9XoG0Y='} -] %} - -{% for script in scripts %} - - -{% endfor %} - - diff --git a/src/Resources/views/shop/product/index/_styles.html.twig b/src/Resources/views/shop/product/index/_styles.html.twig deleted file mode 100644 index 727f787..0000000 --- a/src/Resources/views/shop/product/index/_styles.html.twig +++ /dev/null @@ -1,28 +0,0 @@ - - - -