diff options
| author | Jules Laplace <jules@okfoc.us> | 2016-12-31 05:58:49 +0100 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2016-12-31 05:58:49 +0100 |
| commit | fe31b3ad482c959deb5b4fa447e3d73c042e982c (patch) | |
| tree | f8ddac33fd7890d599e1f75a00eb08217ecde84d /examples | |
| parent | 3319b60ca946a0fad11da52bb3fee4aa66afb62c (diff) | |
| parent | 073b2af3e21edccb35dad6b5bfdda2772f164abf (diff) | |
merge
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/db.json | 43 | ||||
| -rw-r--r-- | examples/index.js | 11 |
2 files changed, 12 insertions, 42 deletions
diff --git a/examples/db.json b/examples/db.json index d037d2b..ed60f22 100644 --- a/examples/db.json +++ b/examples/db.json @@ -122,7 +122,7 @@ "title": "About Us", "body": "Just a small bakery", "id": "about", - "__index": "1", + "__index": 1, "links": [], "dateCreated": "" }, @@ -284,44 +284,5 @@ "dateCreated": "Fri, 02 Sep 2016 16:41:10 GMT" } ], - "flour": [ - { - "id": "test", - "title": "Test", - "image": { - "uri": "", - "caption": "", - "width": "", - "height": "" - }, - "images": [ - { - "uri": "https://ltho.s3.amazonaws.com/okcms-example/07ad6a70-8a49-11e6-80c3-41900948e24c.png", - "width": "463", - "height": "606", - "label": "1", - "caption": "2", - "code": "3" - }, - { - "uri": "https://ltho.s3.amazonaws.com/okcms-example/07ad1c50-8a49-11e6-80c3-41900948e24c.png", - "width": "515", - "height": "441", - "label": "13", - "caption": "23", - "code": "33" - }, - { - "uri": "https://ltho.s3.amazonaws.com/okcms-example/07aa3620-8a49-11e6-80c3-41900948e24c.png", - "width": "566", - "height": "329", - "label": "14", - "caption": "25", - "code": "36" - } - ], - "__index": 0, - "dateCreated": "Tue, 04 Oct 2016 15:41:52 GMT" - } - ] + "flour": [] }
\ No newline at end of file diff --git a/examples/index.js b/examples/index.js index 92db7c0..8918043 100644 --- a/examples/index.js +++ b/examples/index.js @@ -36,13 +36,22 @@ var app = okcms.createApp({ id: {type: 'string'}, title: {type: 'string'}, body: {type: 'text'}, - links: {type: 'link-list'}, + links: {type: 'link-list', textLabel: "A", linkLabel: "B"}, }, bread: { type: {type: 'string', id: true}, title: {type: 'string'}, description: {type: 'text'}, color: {type: 'enum', options: ["red","blue","green"]}, + rating: {type: 'enum', options: { + "e": "Everyone", + "ec": "Early Childhood", + "e10": "Everyone 10+", + "t": "Teen", + "m": "Mature", + "ao": "Adults Only", + "rp": "Rating Pending", + }}, video: {type: 'video'}, images: {type: 'gallery'} }, |
