summaryrefslogtreecommitdiff
path: root/iridescence/src/models
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2022-10-26 21:02:31 -0400
committerAdam T. Carpenter <atc@53hor.net>2022-10-26 21:02:31 -0400
commit9f3098e80c6b6c87e9bfbfe36239a39e5cafb29f (patch)
treedb9ca419266117facecdff6d30460669f3148efb /iridescence/src/models
parentf243a3b7341012227d6e8342a65f9c5d7784256f (diff)
downloadtheglassyladies-9f3098e80c6b6c87e9bfbfe36239a39e5cafb29f.tar.xz
theglassyladies-9f3098e80c6b6c87e9bfbfe36239a39e5cafb29f.zip
init: add some stories and personas and begin layout out domain
Diffstat (limited to 'iridescence/src/models')
-rw-r--r--iridescence/src/models/photo_set.js10
-rw-r--r--iridescence/src/models/product.js16
2 files changed, 0 insertions, 26 deletions
diff --git a/iridescence/src/models/photo_set.js b/iridescence/src/models/photo_set.js
deleted file mode 100644
index 7d7213c..0000000
--- a/iridescence/src/models/photo_set.js
+++ /dev/null
@@ -1,10 +0,0 @@
-export default class PhotoSet {
- id = 0;
- fullsize = "";
- thumbnail = "";
- base = "";
-
- constructor(json) {
- Object.assign(this, json);
- }
-}
diff --git a/iridescence/src/models/product.js b/iridescence/src/models/product.js
deleted file mode 100644
index ded5434..0000000
--- a/iridescence/src/models/product.js
+++ /dev/null
@@ -1,16 +0,0 @@
-export default class Product {
- constructor(json) {
- if (json) {
- this.id = json.id ? json.id : null;
- this.name = json.name ? json.name : null;
- this.description = json.description ? json.description : null;
- this.cents = Number.isFinite(json.cents) ? json.cents : null;
- this.quantity = Number.isFinite(json.quantity) ? json.quantity : null;
- this.featured = json.featured ? json.featured : false;
- this.category = json.category ? json.category : null;
- this.photo_base = json.photo_base ? json.photo_base : null;
- this.photo_thumbnail = json.photo_thumbnail ? json.photo_thumbnail : null;
- this.photo_fullsize = json.photo_fullsize ? json.photo_fullsize : null;
- }
- }
-}