Skip to content

Commit

Permalink
Merge pull request #133 from joshuawaheed/WEBDEV-891
Browse files Browse the repository at this point in the history
[WEBDEV-891] Formulate article component
  • Loading branch information
joshuawaheed authored Nov 14, 2018
2 parents 63823e4 + e7722f9 commit 237157d
Show file tree
Hide file tree
Showing 53 changed files with 3,178 additions and 1,599 deletions.
347 changes: 347 additions & 0 deletions data/articles/12345678.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,347 @@
{
"layout": {
"template": "layout"
},
"meta": {
"title": "articles.show.title",
"request-id": "|KREVXLEvDlTwng==.",
"data-alternates": [{
"type": "application/n-triples",
"href": "http://localhost:3030/api/v1/articles_by_id.nt?articles_id=12345678"
}, {
"type": "text/turtle",
"href": "http://localhost:3030/api/v1/articles_by_id.ttl?articles_id=12345678"
}, {
"type": "text/tab-separated-values",
"href": "http://localhost:3030/api/v1/articles_by_id.tsv?articles_id=12345678"
}, {
"type": "text/csv",
"href": "http://localhost:3030/api/v1/articles_by_id.csv?articles_id=12345678"
}, {
"type": "application/json+rdf",
"href": "http://localhost:3030/api/v1/articles_by_id.rj?articles_id=12345678"
}, {
"type": "application/json+ld",
"href": "http://localhost:3030/api/v1/articles_by_id.json?articles_id=12345678"
}, {
"type": "application/rdf+xml",
"href": "http://localhost:3030/api/v1/articles_by_id.xml?articles_id=12345678"
}],
"open-graph": {
"title": "articles.index.title",
"original-url": "https://localhost/articles/12345678",
"image-url": "https://static.parliament.uk/assets-public/opengraph-oblong.png",
"image-width": "1200",
"image-height": "630",
"twitter-card": "summary_large_image"
},
"opensearch-description-url": "https://localhost/search/opensearch"
},
"header-components": [{
"name": "link",
"data": {
"link": "#content",
"display": {
"name": "partials__display",
"data": [{
"component": "skip-to-content"
}]
},
"selector": "skiplink",
"content": "shared.header.skip-to-content"
}
}, {
"name": "status__banner",
"data": {
"display": {
"name": "partials__display",
"data": [{
"component": "status",
"variant": "banner"
}, {
"component": "theme",
"variant": "caution"
}, {
"component": "cookie"
}]
},
"selector": "cookie",
"components": [{
"name": "paragraph",
"data": [{
"content": "shared.header.cookie-banner-text",
"data": {
"link": "/meta/cookie-policy"
}
}]
}]
}
}, {
"name": "status__banner",
"data": {
"display": {
"name": "partials__display",
"data": [{
"component": "status",
"variant": "banner"
}]
},
"components": [{
"name": "paragraph",
"data": [{
"content": "shared.header.beta-status"
}]
}]
}
}, {
"name": "header",
"data": {
"components": [{
"name": "link",
"data": {
"link": "/",
"display": {
"name": "partials__display",
"data": [{
"component": "uk_parliament"
}]
},
"label": "shared.header.label",
"components": [{
"name": "icon__uk-parliament",
"data": "shared.header.label"
}]
}
}, {
"name": "form__search",
"data": {
"global": true,
"label": "search.label",
"components": [{
"name": "icon__search",
"data": "search.search-icon"
}],
"search-action": "/search"
}
}]
}
}],
"main-components": [{
"name": "article__article",
"data": {
"header": [{
"name": "header",
"data": {
"components": [{
"name": "heading1",
"data": {
"subheading": {
"content": "<a href=\"#\">Article Type [Article, News, Guidance]</a>"
},
"heading": {
"content": "Article header"
},
"context": {
"content": "Context"
}
}
}, {
"name": "paragraph",
"data": [{
"content": "Summary is a brief overview of what the content is about."
}, {
"content": "If you want to find out what what's happening on a particular day in the Chamber the best way is to look at the Order Paper, which is the daily agenda."
}]
}, {
"name": "list__description",
"data": {
"meta": true,
"items": [{
"term": {
"content": "Publisher/s"
},
"description": [{
"content": "<a href=\"#\">Name of publisher</a>, <a href=\"#\">Name of second publisher</a>"
}]
}, {
"term": {
"content": "Date published"
},
"description": [{
"content": "<time datetime=\"2018-09-18\">18 September 2018</time>"
}]
}, {
"term": {
"content": "Found in"
},
"description": [{
"content": "<a href=\"#\">Collection 1</a>, <a href=\"#\">Collection 2</a>"
}]
}]
}
}]
}
}],
"main": [{
"name": "partials__figure",
"data": {
"display": {
"name": "partials__display"
},
"link": "#",
"source-media": "(min-width: 480px)",
"source-srcset": "https://api-parliament-uk.azure-api.net/photo/0qLRSwb3.jpeg?crop=CU_5:2&width=732&quality=80, https://api-parliament-uk.azure-api.net/photo/0qLRSwb3.jpeg?crop=CU_5:2&width=1464&quality=80 2x",
"source-srcset-2": "https://api-parliament-uk.azure-api.net/photo/0qLRSwb3.jpeg?crop=MCU_3:2&width=444&quality=80, https://api-parliament-uk.azure-api.net/photo/0qLRSwb3.jpeg?crop=MCU_3:2&width=888&quality=80 2x",
"alt-text": "Margot James",
"source": "https://api-parliament-uk.azure-api.net/photo/0qLRSwb3.jpeg?width=732&quality=80",
"figcaption": {
"content": "Lead image (optional) <a href=\"#\">example link to resource</a>"
}
}
}, {
"name": "paragraph",
"data": [{
"content": "You can speak in debates in the Chamber and Westminster Hall. You should be aware of the Rules of behaviour and courtesies in the House, issued by the Speaker, before you do so."
}, {
"content": "The House reaches its decisions or highlights its opinions by debating motions. MPs argue for or against a specific motion and then reach a decision, with or without the need for a vote. Motions are listed on the Order Paper, along with the names of the MPs who support them."
}, {
"content": "A general motion is neutrally worded. It usually begins, “That this House has considered”. It lets the House discuss an issue without giving an opinion or taking action on it. You can’t amend this kind of motion."
}, {
"content": "A substantive motion calls on the House to take action or express an opinion. You can amend a substantive motion."
}, {
"content": "Although most motions that are debated are tabled by the Government, there are opportunities for backbenchers to hold debates too:"
}]
}, {
"name": "list__generic",
"data": {
"type": "ol",
"contents": [{
"content": "adjournment debates"
}, {
"content": "Westminster Hall debates"
}, {
"content": "Backbench Business Committee debates"
}, {
"content": "emergency debates"
}]
}
}, {
"name": "list__generic",
"data": {
"type": "ul",
"contents": [{
"content": "adjournment debates"
}, {
"content": "Westminster Hall debates"
}, {
"content": "Backbench Business Committee debates"
}, {
"content": "emergency debates"
}]
}
}, {
"name": "paragraph",
"data": [{
"content": "The main Opposition parties get a chance to hold debates on their motions on Opposition days."
}]
}],
"footer": [{
"name": "footer",
"data": {
"components": [{
"name": "aside",
"data": {
"components": [{
"name": "heading",
"data": {
"size": 2,
"content": "<a href=\"#\">Collection one</a>"
}
}, {
"name": "list__generic",
"data": {
"type": "ol",
"contents": [{
"content": "<a href=\"#\">Article one</a>"
}, {
"content": "Article header"
}, {
"content": "<a href=\"#\">Article three</a>"
}]
}
}, {
"name": "heading",
"data": {
"size": 2,
"content": "<a href=\"#\">Collection two</a>"
}
}, {
"name": "list__generic",
"data": {
"type": "ol",
"contents": [{
"content": "<a href=\"#\">Article one</a>"
}, {
"content": "<a href=\"#\">Article two</a>"
}, {
"content": "Article header"
}]
}
}]
}
}, {
"name": "list__generic",
"data": {
"type": "ul",
"display": {
"name": "partials__display",
"data": [{
"component": "utilities"
}]
},
"contents": [{
"content": "<a href=\"#\">Print page</a>"
}, {
"content": "<a href=\"#\">Download as PDF</a>"
}]
}
}]
}
}]
}
}],
"footer-components": [{
"name": "footer",
"data": {
"uk-parliament": "shared.footer.uk-parliament",
"components": [{
"name": "heading",
"data": {
"size": 2,
"content": "UK Parliament"
}
}, {
"name": "list__generic",
"data": {
"type": "ul",
"display": {
"name": "partials__display",
"data": [{
"component": "list"
}]
},
"contents": [{
"content": "shared.footer.current-website"
}, {
"content": "shared.footer.cookie-policy",
"data": {
"link": "/meta/cookie-policy"
}
}, {
"content": "shared.footer.data-protection-privacy"
}]
}
}]
}
}]
}
Loading

0 comments on commit 237157d

Please sign in to comment.