diff --git a/demos/app.js b/demos/app.js index f98a92b..d3cd3a2 100644 --- a/demos/app.js +++ b/demos/app.js @@ -3,7 +3,6 @@ const express = require('@financial-times/n-internal-tool'); const fixtures = require('./fixtures/fixtures.json'); const fixturesCommercial = require('./fixtures/fixtures-commercial-content'); -const fixturesPackage = require('./fixtures/fixtures-package'); const fixturesPackageArticle = require('./fixtures/fixtures-article-in-package'); const fixturesVideo = require('./fixtures/fixtures-video'); const fixturesLiveBlog = require('./fixtures/fixures-live-blog.json'); @@ -40,13 +39,6 @@ app.get('/package-article', (req, res) => { }, fixturesPackageArticle)); }); -app.get('/package', (req, res) => { - res.render('demo-package', Object.assign({ - title: 'Package with content teasers', - layout: 'demo-layout', - }, fixturesPackage)); -}); - app.get('/video', (req, res) => { res.render('demo', Object.assign({ title: 'Video teasers', diff --git a/demos/fixtures/fixtures-package.json b/demos/fixtures/fixtures-package.json deleted file mode 100644 index 8d6d1b2..0000000 --- a/demos/fixtures/fixtures-package.json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "javascriptBundles": null, - "content": [{ - "type": "Package", - "id": "a3d0eff4-c224-11e6-81c2-f57d90f6741a", - "canBePackage": true, - "relativeUrl": "/package", - "title": "Example content title", - "publishedDate": "2016-12-15T05:37:23Z", - "isEditorsChoice": false, - "genreTag": null, - "primaryBrandTag": { - "prefLabel": "FT Series" - }, - "canBeSyndicated": "yes", - "authorTags": [{ - "prefLabel": "Jonathan Ford", - "relativeUrl": "/package" - }], - "isOpinion": false, - "teaserTag": { - "prefLabel": "Example tag", - "relativeUrl": "/" - }, - "standfirst": "Example standfirst", - "mainImage": { - "title": "Ringing the changes: inside the Lloyd's of London building", - "description": "Lloyds London Insurance City tradition ...Lloyds of London for the big page. Underwriters and brokers cut deals on the trading floor at Lloyds where face to face negotiations still rule.", - "url": "http://im.ft-static.com/content/images/a60ae24b-b87f-439c-bf1b-6e54946b4cf2.img", - "width": 2048, - "height": 1152, - "ratio": 1.7777777777778, - "sourceParam": "n-teaser" - }, - "design": { - "theme": "basic" - }, - "contains": [{ - "id": "e26d3c84-8bad-11e6-8cb7-e7ada1d123b1", - "apiUrl": "http://api.ft.com/enrichedcontent/e26d3c84-8bad-11e6-8cb7-e7ada1d123b1", - "title": "Political upsets and lack of dynamism drive doubts" - },{ - "id": "e9c1897c-8bad-11e6-8cb7-e7ada1d123b1", - "apiUrl": "http://api.ft.com/enrichedcontent/e9c1897c-8bad-11e6-8cb7-e7ada1d123b1", - "title": "Foreign minister Sebastian Kurz on migrant crisis" - },{ - "id": "ffa10ed8-8bea-11e6-8cb7-e7ada1d123b1", - "apiUrl": "http://api.ft.com/enrichedcontent/ffa10ed8-8bea-11e6-8cb7-e7ada1d123b1", - "title": "Is Brand Austria a marketing asset or liability?" - }, { - "id": "6c126eae-b81e-11e6-ba85-95d1533d9a62", - "apiUrl": "http://api.ft.com/enrichedcontent/6c126eae-b81e-11e6-ba85-95d1533d9a62", - "title": "History" - }, { - "id": "c2736eba-b81e-11e6-ba85-95d1533d9a62", - "apiUrl": "http://api.ft.com/enrichedcontent/c2736eba-b81e-11e6-ba85-95d1533d9a62", - "title": "Science" - }, { - "id": "0ddeb68e-b81f-11e6-ba85-95d1533d9a62", - "apiUrl": "http://api.ft.com/enrichedcontent/0ddeb68e-b81f-11e6-ba85-95d1533d9a62", - "title": "Sport" - }, { - "id": "536e6672-b81f-11e6-ba85-95d1533d9a62", - "apiUrl": "http://api.ft.com/enrichedcontent/536e6672-b81f-11e6-ba85-95d1533d9a62", - "title": "Art & photography" - }, { - "id": "a9c4758e-b81f-11e6-ba85-95d1533d9a62", - "apiUrl": "http://api.ft.com/enrichedcontent/a9c4758e-b81f-11e6-ba85-95d1533d9a62", - "title": "Architecture & design" - }], - "primaryTag": { - "latestContent": [{ - "type": "Article", - "relativeUrl": "\/content\/a3d0eff4-c224-11e6-81c2-f57d90f6741a", - "isPremium": false, - "title": "Lloyd\u2019s of London to establish EU base in the new year", - "promotionalTitle": "Lloyd\u2019s of London to establish EU base in new year", - "id": "a3d0eff4-c224-11e6-81c2-f57d90f6741a" - }, { - "type": "Article", - "relativeUrl": "\/content\/00adf2a4-b5ae-11e6-961e-a1acd97f622d", - "isPremium": false, - "title": "Insurers face extra $15bn asbestos bill", - "promotionalTitle": "Insurers face extra $15bn asbestos bill", - "id": "00adf2a4-b5ae-11e6-961e-a1acd97f622d" - }, { - "type": "Article", - "relativeUrl": "\/content\/acac3a5e-b255-11e6-a37c-f4a01f1b0fa1", - "isPremium": false, - "title": "Lloyd\u2019s chief urges UK to share cyber attack data", - "promotionalTitle": "Lloyd\u2019s chief urges UK to share cyber attack data", - "id": "acac3a5e-b255-11e6-a37c-f4a01f1b0fa1" - }, { - "type": "Article", - "relativeUrl": "\/content\/9942f06c-80ae-11e6-bc52-0c7211ef3198", - "isPremium": false, - "title": "Li Ka-shing means more ka-ching for Grid", - "promotionalTitle": "Li Ka-shing means more ka-ching for Grid", - "id": "9942f06c-80ae-11e6-bc52-0c7211ef3198" - }] - } - }] -}