rizzo-next
Version:
The next generation of Lonely Planet's style guide and pattern library.
1,281 lines (1,280 loc) • 51.8 kB
JSON
{
"type": "Program",
"start": 0,
"end": 316,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 15,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 23,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 23
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 7,
"end": 8,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 8
}
},
"local": {
"type": "Identifier",
"start": 7,
"end": 8,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 8
}
},
"name": "$"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 14,
"end": 22,
"loc": {
"start": {
"line": 1,
"column": 14
},
"end": {
"line": 1,
"column": 22
}
},
"value": "jquery",
"rawValue": "jquery",
"raw": "\"jquery\""
}
},
{
"type": "ImportDeclaration",
"start": 24,
"end": 82,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 58
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 31,
"end": 50,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 26
}
},
"local": {
"type": "Identifier",
"start": 31,
"end": 50,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 26
}
},
"name": "SearchServerActions"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 56,
"end": 81,
"loc": {
"start": {
"line": 2,
"column": 32
},
"end": {
"line": 2,
"column": 57
}
},
"value": "./search_server_actions",
"rawValue": "./search_server_actions",
"raw": "\"./search_server_actions\""
}
},
{
"type": "Identifier",
"start": 84,
"end": 288,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 12,
"column": 2
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 88,
"end": 287,
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 12,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 88,
"end": 97,
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 4,
"column": 13
}
},
"name": "SearchApi"
},
"init": {
"type": "ObjectExpression",
"start": 100,
"end": 287,
"loc": {
"start": {
"line": 4,
"column": 16
},
"end": {
"line": 12,
"column": 1
}
},
"properties": [
{
"type": "Property",
"start": 104,
"end": 285,
"loc": {
"start": {
"line": 5,
"column": 2
},
"end": {
"line": 11,
"column": 3
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 104,
"end": 110,
"loc": {
"start": {
"line": 5,
"column": 2
},
"end": {
"line": 5,
"column": 8
}
},
"name": "search"
},
"value": {
"type": "ArrowFunctionExpression",
"start": 112,
"end": 285,
"loc": {
"start": {
"line": 5,
"column": 10
},
"end": {
"line": 11,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 113,
"end": 118,
"loc": {
"start": {
"line": 5,
"column": 11
},
"end": {
"line": 5,
"column": 16
}
},
"name": "query"
}
],
"body": {
"type": "BlockStatement",
"start": 123,
"end": 285,
"loc": {
"start": {
"line": 5,
"column": 21
},
"end": {
"line": 11,
"column": 3
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 129,
"end": 281,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 10,
"column": 7
}
},
"expression": {
"type": "CallExpression",
"start": 129,
"end": 280,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 10,
"column": 6
}
},
"callee": {
"type": "MemberExpression",
"start": 129,
"end": 214,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 8,
"column": 11
}
},
"object": {
"type": "CallExpression",
"start": 129,
"end": 209,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 8,
"column": 6
}
},
"callee": {
"type": "MemberExpression",
"start": 129,
"end": 135,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 10
}
},
"object": {
"type": "Identifier",
"start": 129,
"end": 130,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 5
}
},
"name": "$"
},
"property": {
"type": "Identifier",
"start": 131,
"end": 135,
"loc": {
"start": {
"line": 6,
"column": 6
},
"end": {
"line": 6,
"column": 10
}
},
"name": "ajax"
},
"computed": false
},
"arguments": [
{
"type": "ObjectExpression",
"start": 136,
"end": 208,
"loc": {
"start": {
"line": 6,
"column": 11
},
"end": {
"line": 8,
"column": 5
}
},
"properties": [
{
"type": "Property",
"start": 144,
"end": 202,
"loc": {
"start": {
"line": 7,
"column": 6
},
"end": {
"line": 7,
"column": 64
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 144,
"end": 147,
"loc": {
"start": {
"line": 7,
"column": 6
},
"end": {
"line": 7,
"column": 9
}
},
"name": "url"
},
"value": {
"type": "TemplateLiteral",
"start": 149,
"end": 202,
"loc": {
"start": {
"line": 7,
"column": 11
},
"end": {
"line": 7,
"column": 64
}
},
"expressions": [
{
"type": "Identifier",
"start": 195,
"end": 200,
"loc": {
"start": {
"line": 7,
"column": 57
},
"end": {
"line": 7,
"column": 62
}
},
"name": "query"
}
],
"quasis": [
{
"type": "TemplateElement",
"start": 150,
"end": 193,
"loc": {
"start": {
"line": 7,
"column": 12
},
"end": {
"line": 7,
"column": 55
}
},
"value": {
"raw": "https://www.lonelyplanet.com/search.json?q=",
"cooked": "https://www.lonelyplanet.com/search.json?q="
},
"tail": false
},
{
"type": "TemplateElement",
"start": 201,
"end": 201,
"loc": {
"start": {
"line": 7,
"column": 63
},
"end": {
"line": 7,
"column": 63
}
},
"value": {
"raw": "",
"cooked": ""
},
"tail": true
}
]
},
"kind": "init"
}
]
}
]
},
"property": {
"type": "Identifier",
"start": 210,
"end": 214,
"loc": {
"start": {
"line": 8,
"column": 7
},
"end": {
"line": 8,
"column": 11
}
},
"name": "done"
},
"computed": false
},
"arguments": [
{
"type": "ArrowFunctionExpression",
"start": 215,
"end": 279,
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 10,
"column": 5
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 216,
"end": 223,
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 8,
"column": 20
}
},
"name": "results"
}
],
"body": {
"type": "BlockStatement",
"start": 228,
"end": 279,
"loc": {
"start": {
"line": 8,
"column": 25
},
"end": {
"line": 10,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 236,
"end": 273,
"loc": {
"start": {
"line": 9,
"column": 6
},
"end": {
"line": 9,
"column": 43
}
},
"expression": {
"type": "CallExpression",
"start": 236,
"end": 272,
"loc": {
"start": {
"line": 9,
"column": 6
},
"end": {
"line": 9,
"column": 42
}
},
"callee": {
"type": "MemberExpression",
"start": 236,
"end": 263,
"loc": {
"start": {
"line": 9,
"column": 6
},
"end": {
"line": 9,
"column": 33
}
},
"object": {
"type": "Identifier",
"start": 236,
"end": 255,
"loc": {
"start": {
"line": 9,
"column": 6
},
"end": {
"line": 9,
"column": 25
}
},
"name": "SearchServerActions"
},
"property": {
"type": "Identifier",
"start": 256,
"end": 263,
"loc": {
"start": {
"line": 9,
"column": 26
},
"end": {
"line": 9,
"column": 33
}
},
"name": "fetched"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 264,
"end": 271,
"loc": {
"start": {
"line": 9,
"column": 34
},
"end": {
"line": 9,
"column": 41
}
},
"name": "results"
}
]
}
}
]
}
}
]
}
}
]
}
},
"kind": "init"
}
]
}
}
],
"kind": "let",
"name": "_",
"leadingComments": [],
"trailingComments": []
},
{
"type": "Identifier",
"start": 290,
"end": 315,
"loc": {
"start": {
"line": 14,
"column": 0
},
"end": {
"line": 14,
"column": 25
}
},
"declaration": {
"type": "Identifier",
"start": 305,
"end": 314,
"loc": {
"start": {
"line": 14,
"column": 15
},
"end": {
"line": 14,
"column": 24
}
},
"name": "SearchApi"
},
"name": "_",
"leadingComments": [],
"trailingComments": []
},
{
"type": "ExportDefaultDeclaration",
"start": 290,
"end": 315,
"loc": {
"start": {
"line": 14,
"column": 0
},
"end": {
"line": 14,
"column": 25
}
},
"declaration": {
"type": "VariableDeclaration",
"start": 84,
"end": 288,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 12,
"column": 2
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 88,
"end": 287,
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 12,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 88,
"end": 97,
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 4,
"column": 13
}
},
"name": "SearchApi"
},
"init": {
"type": "ObjectExpression",
"start": 100,
"end": 287,
"loc": {
"start": {
"line": 4,
"column": 16
},
"end": {
"line": 12,
"column": 1
}
},
"properties": [
{
"type": "Property",
"start": 104,
"end": 285,
"loc": {
"start": {
"line": 5,
"column": 2
},
"end": {
"line": 11,
"column": 3
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 104,
"end": 110,
"loc": {
"start": {
"line": 5,
"column": 2
},
"end": {
"line": 5,
"column": 8
}
},
"name": "search"
},
"value": {
"type": "ArrowFunctionExpression",
"start": 112,
"end": 285,
"loc": {
"start": {
"line": 5,
"column": 10
},
"end": {
"line": 11,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 113,
"end": 118,
"loc": {
"start": {
"line": 5,
"column": 11
},
"end": {
"line": 5,
"column": 16
}
},
"name": "query"
}
],
"body": {
"type": "BlockStatement",
"start": 123,
"end": 285,
"loc": {
"start": {
"line": 5,
"column": 21
},
"end": {
"line": 11,
"column": 3
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 129,
"end": 281,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 10,
"column": 7
}
},
"expression": {
"type": "CallExpression",
"start": 129,
"end": 280,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 10,
"column": 6
}
},
"callee": {
"type": "MemberExpression",
"start": 129,
"end": 214,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 8,
"column": 11
}
},
"object": {
"type": "CallExpression",
"start": 129,
"end": 209,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 8,
"column": 6
}
},
"callee": {
"type": "MemberExpression",
"start": 129,
"end": 135,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 10
}
},
"object": {
"type": "Identifier",
"start": 129,
"end": 130,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 5
}
},
"name": "$"
},
"property": {
"type": "Identifier",
"start": 131,
"end": 135,
"loc": {
"start": {
"line": 6,
"column": 6
},
"end": {
"line": 6,
"column": 10
}
},
"name": "ajax"
},
"computed": false
},
"arguments": [
{
"type": "ObjectExpression",
"start": 136,
"end": 208,
"loc": {
"start": {
"line": 6,
"column": 11
},
"end": {
"line": 8,
"column": 5
}
},
"properties": [
{
"type": "Property",
"start": 144,
"end": 202,
"loc": {
"start": {
"line": 7,
"column": 6
},
"end": {
"line": 7,
"column": 64
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 144,
"end": 147,
"loc": {
"start": {
"line": 7,
"column": 6
},
"end": {
"line": 7,
"column": 9
}
},
"name": "url"
},
"value": {
"type": "TemplateLiteral",
"start": 149,
"end": 202,
"loc": {
"start": {
"line": 7,
"column": 11
},
"end": {
"line": 7,
"column": 64
}
},
"expressions": [
{
"type": "Identifier",
"start": 195,
"end": 200,
"loc": {
"start": {
"line": 7,
"column": 57
},
"end": {
"line": 7,
"column": 62
}
},
"name": "query"
}
],
"quasis": [
{
"type": "TemplateElement",
"start": 150,
"end": 193,
"loc": {
"start": {
"line": 7,
"column": 12
},
"end": {
"line": 7,
"column": 55
}
},
"value": {
"raw": "https://www.lonelyplanet.com/search.json?q=",
"cooked": "https://www.lonelyplanet.com/search.json?q="
},
"tail": false
},
{
"type": "TemplateElement",
"start": 201,
"end": 201,
"loc": {
"start": {
"line": 7,
"column": 63
},
"end": {
"line": 7,
"column": 63
}
},
"value": {
"raw": "",
"cooked": ""
},
"tail": true
}
]
},
"kind": "init"
}
]
}
]
},
"property": {
"type": "Identifier",
"start": 210,
"end": 214,
"loc": {
"start": {
"line": 8,
"column": 7
},
"end": {
"line": 8,
"column": 11
}
},
"name": "done"
},
"computed": false
},
"arguments": [
{
"type": "ArrowFunctionExpression",
"start": 215,
"end": 279,
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 10,
"column": 5
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 216,
"end": 223,
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 8,
"column": 20
}
},
"name": "results"
}
],
"body": {
"type": "BlockStatement",
"start": 228,
"end": 279,
"loc": {
"start": {
"line": 8,
"column": 25
},
"end": {
"line": 10,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 236,
"end": 273,
"loc": {
"start": {
"line": 9,
"column": 6
},
"end": {
"line": 9,
"column": 43
}
},
"expression": {
"type": "CallExpression",
"start": 236,
"end": 272,
"loc": {
"start": {
"line": 9,
"column": 6
},
"end": {
"line": 9,
"column": 42
}
},
"callee": {
"type": "MemberExpression",
"start": 236,
"end": 263,
"loc": {
"start": {
"line": 9,
"column": 6
},
"end": {
"line": 9,
"column": 33
}
},
"object": {
"type": "Identifier",
"start": 236,
"end": 255,
"loc": {
"start": {
"line": 9,
"column": 6
},
"end": {
"line": 9,
"column": 25
}
},
"name": "SearchServerActions"
},
"property": {
"type": "Identifier",
"start": 256,
"end": 263,
"loc": {
"start": {
"line": 9,
"column": 26
},
"end": {
"line": 9,
"column": 33