summaryrefslogtreecommitdiff
path: root/iridescence/src/components/InventoryCard.vue
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2020-09-12 08:35:13 -0400
committerAdam T. Carpenter <atc@53hor.net>2020-09-12 08:35:13 -0400
commit92b5b5cc69fdd3dfe67ea07a0fcf26bdd3c930f8 (patch)
tree5a4998f7e75bd140319be6e5136d57ceb3990b7b /iridescence/src/components/InventoryCard.vue
parent07e2b64c03c2fb566f324310f89b88797881b039 (diff)
downloadtheglassyladies-92b5b5cc69fdd3dfe67ea07a0fcf26bdd3c930f8.tar.xz
theglassyladies-92b5b5cc69fdd3dfe67ea07a0fcf26bdd3c930f8.zip
Moved testing products into api/dichroism; renamed inventory to
products.
Diffstat (limited to 'iridescence/src/components/InventoryCard.vue')
-rw-r--r--iridescence/src/components/InventoryCard.vue55
1 files changed, 0 insertions, 55 deletions
diff --git a/iridescence/src/components/InventoryCard.vue b/iridescence/src/components/InventoryCard.vue
deleted file mode 100644
index 6bcc548..0000000
--- a/iridescence/src/components/InventoryCard.vue
+++ /dev/null
@@ -1,55 +0,0 @@
-<template>
- <div id="inventoryCard">
- <div class="card">
- <div class="card-image">
- <figure class="image is-4by3">
- <img
- src="https://bulma.io/images/placeholders/1280x960.png"
- :alt="name"
- />
- </figure>
- </div>
- <div class="card-content">
- <div class="content">
- <p class="title is-4">{{ name }}</p>
- <p class="subtitle is-4">
- {{ dollars(cents) }}
- </p>
- <p class="subtitle is-6">{{ stock }}</p>
- </div>
-
- <div class="content">
- {{ description }}
- </div>
- </div>
- </div>
- </div>
-</template>
-
-<script>
-export default {
- name: "InventoryCard",
- props: {
- id: Number,
- name: String,
- quantity: Number,
- cents: Number,
- imgPath: String,
- description: String
- },
- computed: {
- stock() {
- if (this.quantity < 0) {
- return "Made to order";
- } else if (this.quantity == 0) {
- return "Out of stock";
- } else {
- return [this.quantity, "in stock"].join(" ");
- }
- }
- },
- methods: {
- dollars: cents => "$ " + (cents / 100).toFixed(2)
- }
-};
-</script>