From 1cbd8c8746c6a9e0757f1006c540c1d0954ebd70 Mon Sep 17 00:00:00 2001 From: Venu Vustipalli Date: Sat, 23 Aug 2025 14:26:41 -0500 Subject: [PATCH] Removing quote component for demo purposes --- blocks/quote/quote.css | 61 --------------------------------------- blocks/quote/quote.js | 7 ----- component-definition.json | 17 ----------- component-filters.json | 3 +- component-models.json | 19 ------------ 5 files changed, 1 insertion(+), 106 deletions(-) delete mode 100644 blocks/quote/quote.css delete mode 100644 blocks/quote/quote.js diff --git a/blocks/quote/quote.css b/blocks/quote/quote.css deleted file mode 100644 index b30910b..0000000 --- a/blocks/quote/quote.css +++ /dev/null @@ -1,61 +0,0 @@ -.block.quote { - background-color: #ccc; - padding: 0 0 24px; - display: flex; - flex-direction: column; - margin: 1rem 0; -} - -.block.quote blockquote { - margin: 16px; - text-indent: 0; -} - -.block.quote>div:last-child>div { - margin: 0 16px; - font-size: small; - font-style: italic; - position: relative; -} - -.block.quote>div:last-child>div::after { - content: ""; - display: block; - position: absolute; - left: 0; - bottom: -8px; - height: 5px; - width: 30px; - background-color: darkgray; -} - -.block.quote { - background-color: #ccc; - padding: 0 0 24px; - display: flex; - flex-direction: column; - margin: 1rem 0; -} - -.block.quote blockquote { - margin: 16px; - text-indent: 0; -} - -.block.quote>div:last-child>div { - margin: 0 16px; - font-size: small; - font-style: italic; - position: relative; -} - -.block.quote>div:last-child>div::after { - content: ""; - display: block; - position: absolute; - left: 0; - bottom: -8px; - height: 5px; - width: 30px; - background-color: darkgray; -} \ No newline at end of file diff --git a/blocks/quote/quote.js b/blocks/quote/quote.js deleted file mode 100644 index 366e746..0000000 --- a/blocks/quote/quote.js +++ /dev/null @@ -1,7 +0,0 @@ -export default function decorate(block) { - const [quoteWrapper] = block.children; - - const blockquote = document.createElement('blockquote'); - blockquote.textContent = quoteWrapper.textContent.trim(); - quoteWrapper.replaceChildren(blockquote); -} \ No newline at end of file diff --git a/component-definition.json b/component-definition.json index 9347615..4749151 100644 --- a/component-definition.json +++ b/component-definition.json @@ -676,23 +676,6 @@ } } }, - { - "title": "Quote", - "id": "quote", - "plugins": { - "xwalk": { - "page": { - "resourceType": "core/franklin/components/block/v1/block", - "template": { - "name": "Quote", - "model": "quote", - "quote": "

You miss 100% of the shots you don't take.

", - "author": "Wayne Gretzky" - } - } - } - } - }, { "title": "Order Accordion", "id": "order-accordion", diff --git a/component-filters.json b/component-filters.json index 3309a16..e928283 100644 --- a/component-filters.json +++ b/component-filters.json @@ -19,8 +19,7 @@ "form", "embed-adaptive-form", "order-accordion", - "order-status", - "quote" + "order-status" ] }, { diff --git a/component-models.json b/component-models.json index cca004f..db71b90 100644 --- a/component-models.json +++ b/component-models.json @@ -5166,25 +5166,6 @@ } ] }, - { - "id": "quote", - "fields": [ - { - "component": "richtext", - "name": "quote", - "value": "", - "label": "Quote", - "valueType": "string" - }, - { - "component": "text", - "valueType": "string", - "name": "quthor", - "label": "Author", - "value": "" - } - ] - }, { "id": "order-accordion", "fields": [