rizzo-next
Version:
The next generation of Lonely Planet's style guide and pattern library.
874 lines • 34 kB
JSON
{
"type": "Program",
"start": 0,
"end": 346,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 17,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 39,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 39
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 7,
"end": 13,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 13
}
},
"local": {
"type": "Identifier",
"start": 7,
"end": 13,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 13
}
},
"name": "Arkham"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 19,
"end": 38,
"loc": {
"start": {
"line": 1,
"column": 19
},
"end": {
"line": 1,
"column": 38
}
},
"value": "../../core/arkham",
"rawValue": "../../core/arkham",
"raw": "\"../../core/arkham\""
}
},
{
"type": "ImportDeclaration",
"start": 40,
"end": 63,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 23
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 47,
"end": 48,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 8
}
},
"local": {
"type": "Identifier",
"start": 47,
"end": 48,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 8
}
},
"name": "$"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 54,
"end": 62,
"loc": {
"start": {
"line": 2,
"column": 14
},
"end": {
"line": 2,
"column": 22
}
},
"value": "jquery",
"rawValue": "jquery",
"raw": "\"jquery\""
}
},
{
"type": "ExportDefaultDeclaration",
"start": 65,
"end": 345,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 16,
"column": 2
}
},
"declaration": {
"type": "ObjectExpression",
"start": 80,
"end": 344,
"loc": {
"start": {
"line": 4,
"column": 15
},
"end": {
"line": 16,
"column": 1
}
},
"properties": [
{
"type": "Property",
"start": 84,
"end": 341,
"loc": {
"start": {
"line": 5,
"column": 2
},
"end": {
"line": 15,
"column": 3
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 84,
"end": 89,
"loc": {
"start": {
"line": 5,
"column": 2
},
"end": {
"line": 5,
"column": 7
}
},
"name": "fetch"
},
"value": {
"type": "ArrowFunctionExpression",
"start": 91,
"end": 341,
"loc": {
"start": {
"line": 5,
"column": 9
},
"end": {
"line": 15,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 92,
"end": 95,
"loc": {
"start": {
"line": 5,
"column": 10
},
"end": {
"line": 5,
"column": 13
}
},
"name": "url"
}
],
"body": {
"type": "BlockStatement",
"start": 100,
"end": 341,
"loc": {
"start": {
"line": 5,
"column": 18
},
"end": {
"line": 15,
"column": 3
}
},
"body": [
{
"type": "ReturnStatement",
"start": 106,
"end": 337,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 14,
"column": 7
}
},
"argument": {
"type": "CallExpression",
"start": 113,
"end": 336,
"loc": {
"start": {
"line": 6,
"column": 11
},
"end": {
"line": 14,
"column": 6
}
},
"callee": {
"type": "MemberExpression",
"start": 113,
"end": 149,
"loc": {
"start": {
"line": 6,
"column": 11
},
"end": {
"line": 8,
"column": 12
}
},
"object": {
"type": "CallExpression",
"start": 113,
"end": 143,
"loc": {
"start": {
"line": 6,
"column": 11
},
"end": {
"line": 8,
"column": 6
}
},
"callee": {
"type": "MemberExpression",
"start": 113,
"end": 119,
"loc": {
"start": {
"line": 6,
"column": 11
},
"end": {
"line": 6,
"column": 17
}
},
"object": {
"type": "Identifier",
"start": 113,
"end": 114,
"loc": {
"start": {
"line": 6,
"column": 11
},
"end": {
"line": 6,
"column": 12
}
},
"name": "$"
},
"property": {
"type": "Identifier",
"start": 115,
"end": 119,
"loc": {
"start": {
"line": 6,
"column": 13
},
"end": {
"line": 6,
"column": 17
}
},
"name": "ajax"
},
"computed": false
},
"arguments": [
{
"type": "ObjectExpression",
"start": 120,
"end": 142,
"loc": {
"start": {
"line": 6,
"column": 18
},
"end": {
"line": 8,
"column": 5
}
},
"properties": [
{
"type": "Property",
"start": 128,
"end": 136,
"loc": {
"start": {
"line": 7,
"column": 6
},
"end": {
"line": 7,
"column": 14
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 128,
"end": 131,
"loc": {
"start": {
"line": 7,
"column": 6
},
"end": {
"line": 7,
"column": 9
}
},
"name": "url"
},
"value": {
"type": "Identifier",
"start": 133,
"end": 136,
"loc": {
"start": {
"line": 7,
"column": 11
},
"end": {
"line": 7,
"column": 14
}
},
"name": "url"
},
"kind": "init"
}
]
}
]
},
"property": {
"type": "Identifier",
"start": 144,
"end": 149,
"loc": {
"start": {
"line": 8,
"column": 7
},
"end": {
"line": 8,
"column": 12
}
},
"name": "error"
},
"computed": false
},
"arguments": [
{
"type": "ArrowFunctionExpression",
"start": 150,
"end": 335,
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 14,
"column": 5
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 151,
"end": 158,
"loc": {
"start": {
"line": 8,
"column": 14
},
"end": {
"line": 8,
"column": 21
}
},
"name": "results"
}
],
"body": {
"type": "BlockStatement",
"start": 163,
"end": 335,
"loc": {
"start": {
"line": 8,
"column": 26
},
"end": {
"line": 14,
"column": 5
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 171,
"end": 277,
"loc": {
"start": {
"line": 9,
"column": 6
},
"end": {
"line": 12,
"column": 8
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 175,
"end": 276,
"loc": {
"start": {
"line": 9,
"column": 10
},
"end": {
"line": 12,
"column": 7
}
},
"id": {
"type": "Identifier",
"start": 175,
"end": 180,
"loc": {
"start": {
"line": 9,
"column": 10
},
"end": {
"line": 9,
"column": 15
}
},
"name": "error"
},
"init": {
"type": "ObjectExpression",
"start": 183,
"end": 276,
"loc": {
"start": {
"line": 9,
"column": 18
},
"end": {
"line": 12,
"column": 7
}
},
"properties": [
{
"type": "Property",
"start": 193,
"end": 238,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 53
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 193,
"end": 200,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 15
}
},
"name": "message"
},
"value": {
"type": "BinaryExpression",
"start": 202,
"end": 238,
"loc": {
"start": {
"line": 10,
"column": 17
},
"end": {
"line": 10,
"column": 53
}
},
"left": {
"type": "Literal",
"start": 202,
"end": 232,
"loc": {
"start": {
"line": 10,
"column": 17
},
"end": {
"line": 10,
"column": 47
}
},
"value": "There was an error fetching ",
"rawValue": "There was an error fetching ",
"raw": "\"There was an error fetching \""
},
"operator": "+",
"right": {
"type": "Identifier",
"start": 235,
"end": 238,
"loc": {
"start": {
"line": 10,
"column": 50
},
"end": {
"line": 10,
"column": 53
}
},
"name": "url"
}
},
"kind": "init"
},
{
"type": "Property",
"start": 248,
"end": 268,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 28
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 248,
"end": 252,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 12
}
},
"name": "type"
},
"value": {
"type": "MemberExpression",
"start": 254,
"end": 268,
"loc": {
"start": {
"line": 11,
"column": 14
},
"end": {
"line": 11,
"column": 28
}
},
"object": {
"type": "Identifier",
"start": 254,
"end": 261,
"loc": {
"start": {
"line": 11,
"column": 14
},
"end": {
"line": 11,
"column": 21
}
},
"name": "results"
},
"property": {
"type": "Identifier",
"start": 262,
"end": 268,
"loc": {
"start": {
"line": 11,
"column": 22
},
"end": {
"line": 11,
"column": 28
}
},
"name": "status"
},
"computed": false
},
"kind": "init"
}
]
}
}
],
"kind": "let"
},
{
"type": "ExpressionStatement",
"start": 284,
"end": 329,
"loc": {
"start": {
"line": 13,
"column": 6
},
"end": {
"line": 13,
"column": 51
}
},
"expression": {
"type": "CallExpression",
"start": 284,
"end": 328,
"loc": {
"start": {
"line": 13,
"column": 6
},
"end": {
"line": 13,
"column": 50
}
},
"callee": {
"type": "MemberExpression",
"start": 284,
"end": 298,
"loc": {
"start": {
"line": 13,
"column": 6
},
"end": {
"line": 13,
"column": 20
}
},
"object": {
"type": "Identifier",
"start": 284,
"end": 290,
"loc": {
"start": {
"line": 13,
"column": 6
},
"end": {
"line": 13,
"column": 12
}
},
"name": "Arkham"
},
"property": {
"type": "Identifier",
"start": 291,
"end": 298,
"loc": {
"start": {
"line": 13,
"column": 13
},
"end": {
"line": 13,
"column": 20
}
},
"name": "trigger"
},
"computed": false
},
"arguments": [
{
"type": "Literal",
"start": 299,
"end": 320,
"loc": {
"start": {
"line": 13,
"column": 21
},
"end": {
"line": 13,
"column": 42
}
},
"value": "place.errorfetching",
"rawValue": "place.errorfetching",
"raw": "\"place.errorfetching\""
},
{
"type": "Identifier",
"start": 322,
"end": 327,
"loc": {
"start": {
"line": 13,
"column": 44
},
"end": {
"line": 13,
"column": 49
}
},
"name": "error"
}
]
}
}
]
}
}
]
}
}
]
}
},
"kind": "init"
}
],
"leadingComments": [],
"trailingComments": []
}
}
]
}