Permalink
Browse files

Build the starter app.

  • Loading branch information...
1 parent 177b42a commit c196a172ef1ec9bc55e5fd69150e61fd07aaf529 @nelstrom nelstrom committed Dec 4, 2012
Showing with 17,461 additions and 6 deletions.
  1. +141 −0 .architect
  2. +89 −4 CompanyStats.xds
  3. +142 −0 api/stats
  4. +802 −0 api/stock-data-1.json
  5. +802 −0 api/stock-data-10.json
  6. +802 −0 api/stock-data-11.json
  7. +802 −0 api/stock-data-12.json
  8. +802 −0 api/stock-data-13.json
  9. +802 −0 api/stock-data-14.json
  10. +802 −0 api/stock-data-15.json
  11. +802 −0 api/stock-data-16.json
  12. +802 −0 api/stock-data-17.json
  13. +802 −0 api/stock-data-18.json
  14. +802 −0 api/stock-data-19.json
  15. +802 −0 api/stock-data-2.json
  16. +802 −0 api/stock-data-20.json
  17. +802 −0 api/stock-data-3.json
  18. +802 −0 api/stock-data-4.json
  19. +802 −0 api/stock-data-5.json
  20. +802 −0 api/stock-data-6.json
  21. +802 −0 api/stock-data-7.json
  22. +802 −0 api/stock-data-8.json
  23. +802 −0 api/stock-data-9.json
  24. +24 −1 app.js
  25. +89 −0 app/controller/CompanyController.js
  26. +40 −0 app/model/Company.js
  27. +31 −0 app/model/StockData.js
  28. +35 −0 app/store/CompanyStore.js
  29. +35 −0 app/store/StockDataStore.js
  30. +33 −0 app/view/ChartContainer.js
  31. +37 −0 app/view/CompanyDetail.js
  32. +36 −0 app/view/CompanyNavigation.js
  33. +56 −0 app/view/Main.js
  34. +18 −1 metadata/Application
  35. +164 −0 metadata/controller/CompanyController
  36. +81 −0 metadata/model/Company
  37. +42 −0 metadata/model/StockData
  38. +44 −0 metadata/store/CompanyStore
  39. +44 −0 metadata/store/StockDataStore
  40. +30 −0 metadata/view/ChartContainer
  41. +42 −0 metadata/view/CompanyDetail
  42. +62 −0 metadata/view/CompanyNavigation
  43. +77 −0 metadata/view/Main
  44. +29 −0 random.js
View
@@ -5,6 +5,147 @@
"component": true,
"controller": true,
"resource": true,
+ "00d49b68-1c14-48c1-b941-656b75d076fa": {
+ "id": "00d49b68-1c14-48c1-b941-656b75d076fa",
+ "cn": [
+ {
+ "id": "341b2ab5-2b68-4b2c-ab91-200a97ea8d43"
+ },
+ {
+ "id": "7fdcff2b-5e46-4577-96fe-f886dc4878fe"
+ },
+ {
+ "id": "e55efca5-eed6-4277-a502-7c67a1c04bb1",
+ "expanded": false,
+ "cn": [
+ {
+ "id": "2e796abb-ad94-4666-9c23-8edec9e4117a"
+ }
+ ]
+ }
+ ]
+ },
+ "be0a6884-f6d6-436f-8bc6-bd096763f018": {
+ "id": "be0a6884-f6d6-436f-8bc6-bd096763f018",
+ "expanded": false,
+ "cn": [
+ {
+ "id": "51751877-84e6-4d78-af3b-749531906487",
+ "cn": [
+ {
+ "id": "24604896-173a-4554-80d5-c7c760a5cb62"
+ }
+ ]
+ },
+ {
+ "id": "5bd34648-b2b7-42ef-b374-aec379228edc"
+ }
+ ]
+ },
+ "92d27d78-73e9-4a38-9f7d-08c64c5d119c": {
+ "id": "92d27d78-73e9-4a38-9f7d-08c64c5d119c",
+ "cn": [
+ {
+ "id": "d430b969-95f2-4805-8a27-3e2fd0fe8a0e"
+ }
+ ]
+ },
+ "7bce5aac-18fb-40af-9299-c695aa8259a4": {
+ "id": "7bce5aac-18fb-40af-9299-c695aa8259a4",
+ "expanded": false,
+ "cn": [
+ {
+ "id": "b19df552-f044-4108-870c-3e8a6956cfd6"
+ }
+ ]
+ },
+ "76b625d5-78d0-426c-acc5-3f3f890702d2": {
+ "id": "76b625d5-78d0-426c-acc5-3f3f890702d2",
+ "expanded": false,
+ "cn": [
+ {
+ "id": "d6b138d8-d736-4cd8-b4a7-9005c01f6a7e",
+ "cn": [
+ {
+ "id": "80281795-eae3-4ade-aef5-7bfffd9c7522"
+ }
+ ]
+ }
+ ]
+ },
+ "40fc7982-3e30-4c67-b518-5fd5447da535": {
+ "id": "40fc7982-3e30-4c67-b518-5fd5447da535",
+ "expanded": false,
+ "cn": [
+ {
+ "id": "bec4ca8e-7b50-417e-9c7a-8d161e9effaa",
+ "cn": [
+ {
+ "id": "cc37697f-8c23-4676-a933-9d64c22fd63f"
+ }
+ ]
+ }
+ ]
+ },
+ "b1393dcb-2a9e-48db-9048-56a5eae135a2": {
+ "id": "b1393dcb-2a9e-48db-9048-56a5eae135a2",
+ "expanded": false,
+ "cn": [
+ {
+ "id": "4eaa0af7-a167-428f-b179-74d2183487e5"
+ },
+ {
+ "id": "8a571d91-efc7-47b6-8e77-c97088f4a874"
+ },
+ {
+ "id": "4bc6128c-4eef-4ad7-b69a-17fdbd8065ad"
+ },
+ {
+ "id": "8f54b5e8-7a0f-4ce7-b4d0-65dacb156561"
+ },
+ {
+ "id": "578e3aa1-5606-4fef-9619-e3f1eab1befc"
+ }
+ ]
+ },
+ "d34a5fff-2dff-481d-bb53-5d3b076d42a7": {
+ "id": "d34a5fff-2dff-481d-bb53-5d3b076d42a7",
+ "expanded": false,
+ "cn": [
+ {
+ "id": "9c42f961-e1ff-499a-9b5a-c4edbe918809"
+ },
+ {
+ "id": "6fd961f5-bdae-4bc9-9d00-e2118f3e911c"
+ }
+ ]
+ },
+ "e8247472-3c88-43e7-bda0-dab35f114c19": {
+ "id": "e8247472-3c88-43e7-bda0-dab35f114c19",
+ "cn": [
+ {
+ "id": "fcab84d2-ef8a-4fb3-aa9d-c0bf65173a3e"
+ },
+ {
+ "id": "3a8c7245-b625-4ae1-b395-c36d55ffdc95"
+ },
+ {
+ "id": "e54caf91-49d4-4976-8929-0a760b58b446"
+ },
+ {
+ "id": "975f5213-c47b-49ae-8e44-76ed3dff6933"
+ },
+ {
+ "id": "7d0a6760-5ecc-46bb-a62c-53625673fb14"
+ },
+ {
+ "id": "c0fc0a0c-a0a0-4a4a-832b-8b0aa518f590"
+ },
+ {
+ "id": "c2e4dbc8-36e5-40d7-93e6-f30f2d197c9b"
+ }
+ ]
+ },
"b852498f-4d0f-47b8-9d93-949ab17c4d90": {
"id": "b852498f-4d0f-47b8-9d93-949ab17c4d90"
}
View
@@ -12,13 +12,98 @@
"metadata/resource/Library"
],
"className": "Library"
+ },
+ "00d49b68-1c14-48c1-b941-656b75d076fa": {
+ "paths": [
+ "metadata/view/Main",
+ "app/view/override/Main.js",
+ "app/view/Main.js"
+ ],
+ "className": "Main"
+ },
+ "be0a6884-f6d6-436f-8bc6-bd096763f018": {
+ "paths": [
+ "metadata/view/CompanyNavigation",
+ "app/view/override/CompanyNavigation.js",
+ "app/view/CompanyNavigation.js"
+ ],
+ "className": "CompanyNavigation"
+ },
+ "76b625d5-78d0-426c-acc5-3f3f890702d2": {
+ "paths": [
+ "metadata/store/CompanyStore",
+ "app/store/override/CompanyStore.js",
+ "app/store/CompanyStore.js"
+ ],
+ "className": "CompanyStore"
+ },
+ "b1393dcb-2a9e-48db-9048-56a5eae135a2": {
+ "paths": [
+ "metadata/model/Company",
+ "app/model/override/Company.js",
+ "app/model/Company.js"
+ ],
+ "className": "Company"
+ },
+ "92d27d78-73e9-4a38-9f7d-08c64c5d119c": {
+ "paths": [
+ "metadata/view/CompanyDetail",
+ "app/view/override/CompanyDetail.js",
+ "app/view/CompanyDetail.js"
+ ],
+ "className": "CompanyDetail"
+ },
+ "e8247472-3c88-43e7-bda0-dab35f114c19": {
+ "paths": [
+ "metadata/controller/CompanyController",
+ "app/controller/override/CompanyController.js",
+ "app/controller/CompanyController.js"
+ ],
+ "className": "CompanyController"
+ },
+ "7bce5aac-18fb-40af-9299-c695aa8259a4": {
+ "paths": [
+ "metadata/view/ChartContainer",
+ "app/view/override/ChartContainer.js",
+ "app/view/ChartContainer.js"
+ ],
+ "className": "ChartContainer"
+ },
+ "d34a5fff-2dff-481d-bb53-5d3b076d42a7": {
+ "paths": [
+ "metadata/model/StockData",
+ "app/model/override/StockData.js",
+ "app/model/StockData.js"
+ ],
+ "className": "StockData"
+ },
+ "40fc7982-3e30-4c67-b518-5fd5447da535": {
+ "paths": [
+ "metadata/store/StockDataStore",
+ "app/store/override/StockDataStore.js",
+ "app/store/StockDataStore.js"
+ ],
+ "className": "StockDataStore"
}
},
"viewOrderMap": {
- "view": [],
- "store": [],
- "controller": [],
- "model": [],
+ "view": [
+ "00d49b68-1c14-48c1-b941-656b75d076fa",
+ "be0a6884-f6d6-436f-8bc6-bd096763f018",
+ "92d27d78-73e9-4a38-9f7d-08c64c5d119c",
+ "7bce5aac-18fb-40af-9299-c695aa8259a4"
+ ],
+ "store": [
+ "76b625d5-78d0-426c-acc5-3f3f890702d2",
+ "40fc7982-3e30-4c67-b518-5fd5447da535"
+ ],
+ "controller": [
+ "e8247472-3c88-43e7-bda0-dab35f114c19"
+ ],
+ "model": [
+ "b1393dcb-2a9e-48db-9048-56a5eae135a2",
+ "d34a5fff-2dff-481d-bb53-5d3b076d42a7"
+ ],
"resource": [
"b852498f-4d0f-47b8-9d93-949ab17c4d90"
],
View
142 api/stats
@@ -0,0 +1,142 @@
+[
+{
+"id": "1",
+"name": "Exxon Mobil",
+"industry": "Petroleum",
+"revenue": "486.429",
+"employees": "99100"
+},
+{
+"id": "2",
+"name": "Royal Dutch Shell",
+"industry": "Oil and Gas",
+"revenue": "470.171",
+"employees": "90000"
+},
+{
+"id": "3",
+"name": "Walmart",
+"industry": "Retail",
+"revenue": "446.950",
+"employees": "2200000"
+},
+{
+"id": "4",
+"name": "Sinopec Group",
+"industry": "Oil and Gas",
+"revenue": "397.775",
+"employees": "400513"
+},
+{
+"id": "5",
+"name": "China National Petroleum Corporation",
+"industry": "Oil and Gas",
+"revenue": "378.025",
+"employees": "464000"
+},
+{
+"id": "6",
+"name": "BP",
+"industry": "Oil and Gas",
+"revenue": "375.517",
+"employees": "83400"
+},
+{
+"id": "7",
+"name": "Vitol",
+"industry": "Commodities",
+"revenue": "297",
+"employees": "2810"
+},
+{
+"id": "8",
+"name": "State Grid Corporation of China",
+"industry": "Electric utility",
+"revenue": "265.962",
+"employees": "1564001"
+},
+{
+"id": "9",
+"name": "Chevron",
+"industry": "Oil and Gas",
+"revenue": "253.706",
+"employees": "61189"
+},
+{
+"id": "10",
+"name": "ConocoPhillips",
+"industry": "Oil and Gas",
+"revenue": "251.226",
+"employees": "29800"
+},
+{
+"id": "11",
+"name": "Toyota",
+"industry": "Automotive",
+"revenue": "226.106",
+"employees": "325905"
+},
+{
+"id": "12",
+"name": "Total",
+"industry": "Oil and Gas",
+"revenue": "215.567",
+"employees": "111401"
+},
+{
+"id": "13",
+"name": "Volkswagen Group",
+"industry": "Automotive",
+"revenue": "206.264",
+"employees": "501956"
+},
+{
+"id": "14",
+"name": "Japan Post Holdings",
+"industry": "Conglomerate",
+"revenue": "201.187",
+"employees": "229134"
+},
+{
+"id": "15",
+"name": "Glencore",
+"industry": "Commodities",
+"revenue": "186.152",
+"employees": "52000"
+},
+{
+"id": "16",
+"name": "Saudi Aramco",
+"industry": "Oil and Gas",
+"revenue": "182",
+"employees": "54441"
+},
+{
+"id": "17",
+"name": "Gazprom",
+"industry": "Oil and Gas",
+"revenue": "158.1",
+"employees": "432000"
+},
+{
+"id": "18",
+"name": "Apple Inc.",
+"industry": "Electronics",
+"revenue": "156.508",
+"employees": "76100"
+},
+{
+"id": "19",
+"name": "General Motors",
+"industry": "Automotive",
+"revenue": "150.276",
+"employees": "284000"
+},
+{
+"id": "20",
+"name": "General Electric",
+"industry": "Conglomerate",
+"revenue": "147.300",
+"employees": "287000"
+}
+]
Oops, something went wrong.

0 comments on commit c196a17

Please sign in to comment.