From 40855344cb9d09f386c46e775107b669a9868057 Mon Sep 17 00:00:00 2001 From: stone Date: Thu, 19 Nov 2015 21:07:55 -0500 Subject: the store can be closed --- db.json | 19 +++++++++++++++++++ index.js | 7 +++++++ 2 files changed, 26 insertions(+) diff --git a/db.json b/db.json index 766c4065..80b2b573 100644 --- a/db.json +++ b/db.json @@ -203,5 +203,24 @@ "dateCreated": "Tue, 17 Nov 2015 21:03:57 GMT", "tag": "care" } + ], + "store": [ + { + "id": "stone-island", + "title": "Stone Island", + "StoreIsOpen": "true", + "ClosedStoreImages": [ + { + "uri": "https://ltho.s3.amazonaws.com/f4c50852-0305-4e69-b125-5c71876cbbb4.png", + "caption": "" + }, + { + "uri": "https://ltho.s3.amazonaws.com/22c5df60-ad7c-4c8a-8e3e-d52247e22f01.jpg", + "caption": "" + } + ], + "__index": "0", + "dateCreated": "Fri, 20 Nov 2015 00:45:03 GMT" + } ] } \ No newline at end of file diff --git a/index.js b/index.js index e38a38c8..462f2d3d 100644 --- a/index.js +++ b/index.js @@ -37,6 +37,12 @@ var app = okcms.createApp({ body: {type: 'text'}, tag: {type: 'string'}, }, + store: { + id: {type: 'string', hidden: true}, + title: {type: 'string'}, + StoreIsOpen: {type: 'enum', options: ["true","false"] }, + ClosedStoreImages: {type: 'captioned-image-list'}, + }, }, resources: [ @@ -44,6 +50,7 @@ var app = okcms.createApp({ { type: 'archive' }, { type: 'hub' }, { type: 'page' }, + { type: 'store' }, ], views: { -- cgit v1.2.3-70-g09d2