From c32dd9675f42040b0273c87ff1c43a2538f415c2 Mon Sep 17 00:00:00 2001 From: tintinthong Date: Tue, 24 Dec 2024 12:18:09 -0500 Subject: [PATCH] Remove product with video and ratings --- .../03b3e910-a7ea-4881-b2cc-a1bb738530d9.json | 40 ----- .../product-with-video-and-ratings.gts | 143 ------------------ 2 files changed, 183 deletions(-) delete mode 100644 packages/seed-realm/ProductWithVideoAndRatings/03b3e910-a7ea-4881-b2cc-a1bb738530d9.json delete mode 100644 packages/seed-realm/product-with-video-and-ratings.gts diff --git a/packages/seed-realm/ProductWithVideoAndRatings/03b3e910-a7ea-4881-b2cc-a1bb738530d9.json b/packages/seed-realm/ProductWithVideoAndRatings/03b3e910-a7ea-4881-b2cc-a1bb738530d9.json deleted file mode 100644 index 5ce1e1781e..0000000000 --- a/packages/seed-realm/ProductWithVideoAndRatings/03b3e910-a7ea-4881-b2cc-a1bb738530d9.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "data": { - "type": "card", - "attributes": { - "videoUrl": "https://v.etsystatic.com/video/upload/ac_none,du_15,q_auto:good/m_s_igd099.mp4", - "images": [ - "https://i.etsystatic.com/8595526/r/il/b3b96c/3064849416/il_1588xN.3064849416_r41c.jpg", - "https://i.etsystatic.com/8595526/r/il/19a557/3064848658/il_1588xN.3064848658_m2t5.jpg", - "https://i.etsystatic.com/8595526/r/il/ac2b0b/3064860134/il_1588xN.3064860134_mm80.jpg", - "https://i.etsystatic.com/8595526/r/il/0e8ff6/3112592903/il_1588xN.3112592903_hq05.jpg", - "https://i.etsystatic.com/8595526/r/il/370ede/3064859840/il_1588xN.3064859840_rft0.jpg" - ], - "unitPriceCents": 10277, - "usShippingCostCents": 0, - "leadTimeDays": 14, - "deliveryWindowDays": 19, - "isReturnable": false, - "details": "This listing is a special deal. It's a HEAVILY DISCOUNTED package of the 2 busts that I make and sell separately – Marcus Aurelius and Seneca.\n\nThese busts look and feel great. Their rustic appearance is a joy to look at. The stone cold concrete is mesmerising to the touch!\n\nIn the past, my customers were buying these separately for a full price, but now you can get these two together and pay around 25% less.", - "ratingsSummary": { - "average": 4.99, - "count": 385 - }, - "title": "MARCUS + SENECA Premium Concrete Busts | Stoic Set", - "description": null - }, - "relationships": { - "seller": { - "links": { - "self": "../Seller/2e039829-9d63-4e06-a257-0986614d9242" - } - } - }, - "meta": { - "adoptsFrom": { - "module": "../product-with-video-and-ratings", - "name": "ProductWithVideoAndRatings" - } - } - } -} diff --git a/packages/seed-realm/product-with-video-and-ratings.gts b/packages/seed-realm/product-with-video-and-ratings.gts deleted file mode 100644 index 9acbccd0be..0000000000 --- a/packages/seed-realm/product-with-video-and-ratings.gts +++ /dev/null @@ -1,143 +0,0 @@ -import { Product, ProductDetail, ProductImages } from './product'; -import { - Component, - field, - contains, - StringField, -} from 'https://cardstack.com/base/card-api'; -import { tracked } from '@glimmer/tracking'; -import { action } from '@ember/object'; -import { RatingsSummary as RatingsSummaryField } from './ratings-summary'; -import { MonetaryAmountAtom } from './monetary-amount'; - -class Isolated extends Component { - @tracked activeImage = this.args.model.images?.[0]; - - @action updateActiveImage(image: string) { - this.activeImage = image; - } - - -} - -// @ts-ignore -export class ProductWithVideoAndRatings extends Product { - static displayName = 'Product with Video and Ratings'; - @field videoUrl = contains(StringField); - @field ratingsSummary = contains(RatingsSummaryField, { - computeVia(this: ProductWithVideoAndRatings) { - return { - average: Math.floor(Math.random() * 6), // random number between 0 and 5 inclusive - count: Math.floor(Math.random() * 29701) + 300, // random number between 300 and 30000 - }; - }, - }); - static isolated = Isolated; -}