From 8ac8ad09c71b10597a354eabf81cbafa14f00940 Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Mon, 29 Jun 2020 16:52:17 -0400 Subject: playing with filtering by category --- iridescence/src/store/index.js | 56 +++++++++++++----------------------------- 1 file changed, 17 insertions(+), 39 deletions(-) (limited to 'iridescence/src/store') diff --git a/iridescence/src/store/index.js b/iridescence/src/store/index.js index 2d88e02..b5b0445 100644 --- a/iridescence/src/store/index.js +++ b/iridescence/src/store/index.js @@ -9,10 +9,12 @@ export default new Vuex.Store({ { id: 1, name: "Beach Box", - quantity: -1, // quantity of -1 could mean made on demand + quantity: 0, cents: 1100, imgPath: "/beach_box.jpg", - description: "This is a beach box." + description: "This is a beach box.", + featured: false, + category: { name: "Stained Glass", subcategory: { name: "Gardeny" } } }, { id: 2, @@ -20,7 +22,9 @@ export default new Vuex.Store({ quantity: 0, cents: 4500, imgPath: "/wind-chime.jpg", - description: "Makes noise when the wind blows." + description: "Makes noise when the wind blows.", + featured: false, + categories: ["Fused Glass", ["Beachy"]] }, { id: 3, @@ -28,7 +32,9 @@ export default new Vuex.Store({ quantity: 5, cents: 1100, imgPath: "/beach_box.jpg", - description: "This is a beach box." + description: "This is a beach box.", + featured: false, + categories: ["Stained Glass", ["Christmas"]] }, { id: 4, @@ -36,47 +42,19 @@ export default new Vuex.Store({ quantity: 2, cents: 4500, imgPath: "/wind-chime.jpg", - description: "Makes noise when the wind blows." + description: "Makes noise when the wind blows.", + featured: false, + categories: ["Fused Glass", ["Kiln-y"]] }, { id: 5, - name: "Beach Box", - quantity: 5, - cents: 1100, - imgPath: "/beach_box.jpg", - description: "This is a beach box." - }, - { - id: 6, - name: "Wind Chime", - quantity: 2, - cents: 4500, - imgPath: "/wind-chime.jpg", - description: "Makes noise when the wind blows." - }, - { - id: 7, - name: "Beach Box", + name: "Beach Box (New!)", quantity: 5, cents: 1100, imgPath: "/beach_box.jpg", - description: "This is a beach box." - }, - { - id: 8, - name: "Wind Chime", - quantity: 2, - cents: 4500, - imgPath: "/wind-chime.jpg", - description: "Makes noise when the wind blows." - }, - { - id: 9, - name: "Wind Chime", - quantity: 2, - cents: 4500, - imgPath: "/wind-chime.jpg", - description: "Makes noise when the wind blows." + description: "This is a beach box.", + featured: true, + categories: ["Stained Glass", ["Christmas"]] } ], term: "" -- cgit v1.2.3