Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@przeor
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save przeor/9110559 to your computer and use it in GitHub Desktop.
Save przeor/9110559 to your computer and use it in GitHub Desktop.
Tu najlepiej to testować:
http://54.201.122.206/#/52f4cd0ee02208603ea68e1e/52a21089fa67c9dd6c1e1a4e/52a6f0f671f290782c2c712e/
Gdzie component id = 52a6ece271f290782c2c7117
czyli to jest JSON dla tego componentu ( który ma "hasStar": true, ):
---------------
{
"_id": {
"$oid": "52a6ece271f290782c2c7117"
},
"slug": "article_2",
"template": "toc",
"type": "tableOfContent",
"title": "This is second table of content",
"description": "<div><p>This part is html description for article</p></div>",
"otherMetadata": null,
"hasStar": true,
"articles": [
{
"title": "Article 1",
"sections": [
{
"title": "Section 1",
"class": "",
"subsections": [
{
"text": "We the People of the United States, in Order to form a more perfect Union, establish Justice, insure domestic Tranquility, provide for the common defense, promote the general Welfare, and secure the Blessings of Liberty to ourselves and our Posterity, do ordain and establish this Constitution for the United States of America.",
"explanation": "The Preamble explains the purposes of the Constitution, and defines the powers of the new government as originating from the people of the United States.",
"class": "section"
}
]
}
]
},
{
"title": "Article 2",
"sections": [
{
"title": "Section 1",
"class": "",
"subsections": [
{
"text": "All legislative Powers herein granted shall be vested in a Congress of the United States, which shall consist of a Senate and House of Representatives.",
"explanation": "The Constitution divides the federal government into three branches, giving legislative powers to a bicameral (two chamber) Congress.",
"class": "section"
}
]
},
{
"title": "Section 2",
"class": "",
"url": "http://www.youtube.com/embed/uihNc_tdGbk",
"subsections": [
{
"text": "The House of Representatives shall be composed of Members chosen every second Year by the People of the several States, and the Electors in each State shall have the Qualifications requisite for Electors of the most numerous Branch of the State Legislature.",
"explanation": "The House of Representatives was intended to be 'the people's house.' Its members were elected directly by the voters in the states, and the entire House would have to stand for election every two years.",
"class": "section"
},
{
"text": "No Person shall be a Representative who shall not have attained to the Age of twenty five Years, and been seven Years a Citizen of the United States, and who shall not, when elected, be an Inhabitant of that State in which he shall be chosen.",
"explanation": "Representatives need to be 25 years old (compared to 30 for senators), and 7 years a citizen (compared to 9 years for senators). They must be residents within their states at the time of their election, but do not necessarily have to live within their districts.",
"class": "section"
},
{
"text": "When vacancies happen in the Representation from any State, the Executive Authority thereof shall issue Writs of Election to fill such Vacancies.",
"explanation": "Vacant House seats must be filled by election. For the Senate, state governors may fill vacancies.",
"class": "section"
},
{
"text": "The House of Representatives shall chuse their Speaker and other Officers; and shall have the sole Power of Impeachment.",
"explanation": "Representatives choose their presiding officer, the Speaker, from among the membership of the majority party. Other elected officers, such as the chaplain, clerk of the House, sergeant at arms, and doorkeeper, are not members of the House. Impeachment is the power to remove federal officers. The House initiates the process by voting to impeach, which then refers the matter to the Senate for a trial.",
"class": "section"
}
]
},
{
"title": "Section 3",
"class": "",
"subsections": [
{
"text": "The Senate of the United States shall be composed of two Senators from each State, chosen by the Legislature thereof, for six Years; and each Senator shall have one Vote.",
"explanation": "Each state has two senators, regardless of the size of its population. Originally, senators were chosen by state legislatures. In 1913 the 17th amendment provided that senators would be directly elected by the people.",
"class": "section"
},
{
"text": "No Person shall be a Senator who shall not have attained to the Age of thirty Years, and been nine Years a Citizen of the United States, and who shall not, when elected, be an Inhabitant of that State for which he shall be chosen.",
"explanation": "As with representatives, the Constitution fixes the qualifications a person must meet to be eligible to be a senator.",
"class": "section"
},
{
"text": "The Vice President of the United States shall be President of the Senate, but shall have no Vote, unless they be equally divided.",
"explanation": "As the presiding officer of the Senate, the vice president may vote only to break a tie.",
"class": "section"
},
{
"text": "The Senate shall choose their other Officers, and also a President pro tempore, in the Absence of the Vice President, or when he shall exercise the Office of President of the United States.",
"explanation": "Except for the Vice President, the Senate elects its own officers. The President pro tempore is usually the longest-serving member of the majority party. Other elected officers include a chaplain, secretary of the Senate, and sergeant at arms, who are not senators.",
"class": "section"
},
{
"text": "Judgment in Cases of Impeachment shall not extend further than to removal from Office, and disqualification to hold and enjoy any Office of honor, Trust or Profit under the United States: but the Party convicted shall nevertheless be liable and subject to Indictment, Trial, Judgment and Punishment, according to Law.",
"explanation": "Convicted persons can be barred from holding future office, and may be subject to criminal trial in the courts.",
"class": "section"
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment