rizzo-next
Version:
The next generation of Lonely Planet's style guide and pattern library.
1,452 lines (1,451 loc) • 71.7 kB
JSON
{
"type": "Program",
"start": 0,
"end": 391,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 21,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 44,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 44
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 9,
"end": 18,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 18
}
},
"imported": {
"type": "Identifier",
"start": 9,
"end": 18,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 18
}
},
"name": "Component"
},
"local": {
"type": "Identifier",
"start": 9,
"end": 18,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 18
}
},
"name": "Component"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 26,
"end": 43,
"loc": {
"start": {
"line": 1,
"column": 26
},
"end": {
"line": 1,
"column": 43
}
},
"value": "../../core/bane",
"rawValue": "../../core/bane",
"raw": "\"../../core/bane\""
}
},
{
"type": "ImportDeclaration",
"start": 45,
"end": 68,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 23
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 52,
"end": 53,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 8
}
},
"local": {
"type": "Identifier",
"start": 52,
"end": 53,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 8
}
},
"name": "$"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 59,
"end": 67,
"loc": {
"start": {
"line": 2,
"column": 14
},
"end": {
"line": 2,
"column": 22
}
},
"value": "jquery",
"rawValue": "jquery",
"raw": "\"jquery\""
}
},
{
"type": "Identifier",
"start": 70,
"end": 366,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 18,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 76,
"end": 82,
"loc": {
"start": {
"line": 4,
"column": 6
},
"end": {
"line": 4,
"column": 12
}
},
"name": "Footer"
},
"superClass": {
"type": "Identifier",
"start": 91,
"end": 100,
"loc": {
"start": {
"line": 4,
"column": 21
},
"end": {
"line": 4,
"column": 30
}
},
"name": "Component"
},
"body": {
"type": "ClassBody",
"start": 101,
"end": 366,
"loc": {
"start": {
"line": 4,
"column": 31
},
"end": {
"line": 18,
"column": 1
}
},
"body": [
{
"type": "MethodDefinition",
"start": 105,
"end": 158,
"loc": {
"start": {
"line": 5,
"column": 2
},
"end": {
"line": 7,
"column": 3
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 105,
"end": 115,
"loc": {
"start": {
"line": 5,
"column": 2
},
"end": {
"line": 5,
"column": 12
}
},
"name": "initialize"
},
"static": false,
"kind": "method",
"value": {
"type": "FunctionExpression",
"start": 115,
"end": 158,
"loc": {
"start": {
"line": 5,
"column": 12
},
"end": {
"line": 7,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 118,
"end": 158,
"loc": {
"start": {
"line": 5,
"column": 15
},
"end": {
"line": 7,
"column": 3
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 124,
"end": 154,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 34
}
},
"expression": {
"type": "CallExpression",
"start": 124,
"end": 153,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 33
}
},
"callee": {
"type": "MemberExpression",
"start": 124,
"end": 151,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 31
}
},
"object": {
"type": "ThisExpression",
"start": 124,
"end": 128,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 129,
"end": 151,
"loc": {
"start": {
"line": 6,
"column": 9
},
"end": {
"line": 6,
"column": 31
}
},
"name": "updateLocationOnChange"
},
"computed": false
},
"arguments": []
}
}
]
}
}
},
{
"type": "MethodDefinition",
"start": 162,
"end": 364,
"loc": {
"start": {
"line": 9,
"column": 2
},
"end": {
"line": 17,
"column": 3
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 162,
"end": 184,
"loc": {
"start": {
"line": 9,
"column": 2
},
"end": {
"line": 9,
"column": 24
}
},
"name": "updateLocationOnChange"
},
"static": false,
"kind": "method",
"value": {
"type": "FunctionExpression",
"start": 184,
"end": 364,
"loc": {
"start": {
"line": 9,
"column": 24
},
"end": {
"line": 17,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 187,
"end": 364,
"loc": {
"start": {
"line": 9,
"column": 27
},
"end": {
"line": 17,
"column": 3
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 193,
"end": 360,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 16,
"column": 7
}
},
"expression": {
"type": "CallExpression",
"start": 193,
"end": 359,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 16,
"column": 6
}
},
"callee": {
"type": "MemberExpression",
"start": 193,
"end": 220,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 10,
"column": 31
}
},
"object": {
"type": "CallExpression",
"start": 193,
"end": 217,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 10,
"column": 28
}
},
"callee": {
"type": "Identifier",
"start": 193,
"end": 194,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 10,
"column": 5
}
},
"name": "$"
},
"arguments": [
{
"type": "Literal",
"start": 195,
"end": 216,
"loc": {
"start": {
"line": 10,
"column": 6
},
"end": {
"line": 10,
"column": 27
}
},
"value": ".js-language-select",
"rawValue": ".js-language-select",
"raw": "\".js-language-select\""
}
]
},
"property": {
"type": "Identifier",
"start": 218,
"end": 220,
"loc": {
"start": {
"line": 10,
"column": 29
},
"end": {
"line": 10,
"column": 31
}
},
"name": "on"
},
"computed": false
},
"arguments": [
{
"type": "Literal",
"start": 221,
"end": 229,
"loc": {
"start": {
"line": 10,
"column": 32
},
"end": {
"line": 10,
"column": 40
}
},
"value": "change",
"rawValue": "change",
"raw": "\"change\""
},
{
"type": "FunctionExpression",
"start": 231,
"end": 358,
"loc": {
"start": {
"line": 10,
"column": 42
},
"end": {
"line": 16,
"column": 5
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 240,
"end": 245,
"loc": {
"start": {
"line": 10,
"column": 51
},
"end": {
"line": 10,
"column": 56
}
},
"name": "event"
}
],
"body": {
"type": "BlockStatement",
"start": 247,
"end": 358,
"loc": {
"start": {
"line": 10,
"column": 58
},
"end": {
"line": 16,
"column": 5
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 255,
"end": 291,
"loc": {
"start": {
"line": 11,
"column": 6
},
"end": {
"line": 11,
"column": 42
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 259,
"end": 290,
"loc": {
"start": {
"line": 11,
"column": 10
},
"end": {
"line": 11,
"column": 41
}
},
"id": {
"type": "Identifier",
"start": 259,
"end": 262,
"loc": {
"start": {
"line": 11,
"column": 10
},
"end": {
"line": 11,
"column": 13
}
},
"name": "url"
},
"init": {
"type": "BinaryExpression",
"start": 265,
"end": 290,
"loc": {
"start": {
"line": 11,
"column": 16
},
"end": {
"line": 11,
"column": 41
}
},
"left": {
"type": "Literal",
"start": 265,
"end": 274,
"loc": {
"start": {
"line": 11,
"column": 16
},
"end": {
"line": 11,
"column": 25
}
},
"value": "http://",
"rawValue": "http://",
"raw": "\"http://\""
},
"operator": "+",
"right": {
"type": "CallExpression",
"start": 277,
"end": 290,
"loc": {
"start": {
"line": 11,
"column": 28
},
"end": {
"line": 11,
"column": 41
}
},
"callee": {
"type": "MemberExpression",
"start": 277,
"end": 288,
"loc": {
"start": {
"line": 11,
"column": 28
},
"end": {
"line": 11,
"column": 39
}
},
"object": {
"type": "CallExpression",
"start": 277,
"end": 284,
"loc": {
"start": {
"line": 11,
"column": 28
},
"end": {
"line": 11,
"column": 35
}
},
"callee": {
"type": "Identifier",
"start": 277,
"end": 278,
"loc": {
"start": {
"line": 11,
"column": 28
},
"end": {
"line": 11,
"column": 29
}
},
"name": "$"
},
"arguments": [
{
"type": "ThisExpression",
"start": 279,
"end": 283,
"loc": {
"start": {
"line": 11,
"column": 30
},
"end": {
"line": 11,
"column": 34
}
}
}
]
},
"property": {
"type": "Identifier",
"start": 285,
"end": 288,
"loc": {
"start": {
"line": 11,
"column": 36
},
"end": {
"line": 11,
"column": 39
}
},
"name": "val"
},
"computed": false
},
"arguments": []
}
}
}
],
"kind": "let"
},
{
"type": "ExpressionStatement",
"start": 299,
"end": 321,
"loc": {
"start": {
"line": 13,
"column": 6
},
"end": {
"line": 13,
"column": 28
}
},
"expression": {
"type": "AssignmentExpression",
"start": 299,
"end": 320,
"loc": {
"start": {
"line": 13,
"column": 6
},
"end": {
"line": 13,
"column": 27
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 299,
"end": 314,
"loc": {
"start": {
"line": 13,
"column": 6
},
"end": {
"line": 13,
"column": 21
}
},
"object": {
"type": "Identifier",
"start": 299,
"end": 305,
"loc": {
"start": {
"line": 13,
"column": 6
},
"end": {
"line": 13,
"column": 12
}
},
"name": "window"
},
"property": {
"type": "Identifier",
"start": 306,
"end": 314,
"loc": {
"start": {
"line": 13,
"column": 13
},
"end": {
"line": 13,
"column": 21
}
},
"name": "location"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 317,
"end": 320,
"loc": {
"start": {
"line": 13,
"column": 24
},
"end": {
"line": 13,
"column": 27
}
},
"name": "url"
}
}
},
{
"type": "ExpressionStatement",
"start": 329,
"end": 352,
"loc": {
"start": {
"line": 15,
"column": 6
},
"end": {
"line": 15,
"column": 29
}
},
"expression": {
"type": "CallExpression",
"start": 329,
"end": 351,
"loc": {
"start": {
"line": 15,
"column": 6
},
"end": {
"line": 15,
"column": 28
}
},
"callee": {
"type": "MemberExpression",
"start": 329,
"end": 349,
"loc": {
"start": {
"line": 15,
"column": 6
},
"end": {
"line": 15,
"column": 26
}
},
"object": {
"type": "Identifier",
"start": 329,
"end": 334,
"loc": {
"start": {
"line": 15,
"column": 6
},
"end": {
"line": 15,
"column": 11
}
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 335,
"end": 349,
"loc": {
"start": {
"line": 15,
"column": 12
},
"end": {
"line": 15,
"column": 26
}
},
"name": "preventDefault"
},
"computed": false
},
"arguments": []
}
}
]
}
}
]
}
}
]
}
}
}
]
},
"name": "_",
"leadingComments": [],
"trailingComments": []
},
{
"type": "Identifier",
"start": 368,
"end": 390,
"loc": {
"start": {
"line": 20,
"column": 0
},
"end": {
"line": 20,
"column": 22
}
},
"declaration": {
"type": "Identifier",
"start": 383,
"end": 389,
"loc": {
"start": {
"line": 20,
"column": 15
},
"end": {
"line": 20,
"column": 21
}
},
"name": "Footer"
},
"name": "_",
"leadingComments": [],
"trailingComments": []
},
{
"type": "ExportDefaultDeclaration",
"start": 368,
"end": 390,
"loc": {
"start": {
"line": 20,
"column": 0
},
"end": {
"line": 20,
"column": 22
}
},
"declaration": {
"type": "ClassDeclaration",
"start": 70,
"end": 366,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 18,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 76,
"end": 82,
"loc": {
"start": {
"line": 4,
"column": 6
},
"end": {
"line": 4,
"column": 12
}
},
"name": "Footer"
},
"superClass": {
"type": "Identifier",
"start": 91,
"end": 100,
"loc": {
"start": {
"line": 4,
"column": 21
},
"end": {
"line": 4,
"column": 30
}
},
"name": "Component"
},
"body": {
"type": "ClassBody",
"start": 101,
"end": 366,
"loc": {
"start": {
"line": 4,
"column": 31
},
"end": {
"line": 18,
"column": 1
}
},
"body": [
{
"type": "MethodDefinition",
"start": 105,
"end": 158,
"loc": {
"start": {
"line": 5,
"column": 2
},
"end": {
"line": 7,
"column": 3
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 105,
"end": 115,
"loc": {
"start": {
"line": 5,
"column": 2
},
"end": {
"line": 5,
"column": 12
}
},
"name": "initialize"
},
"static": false,
"kind": "method",
"value": {
"type": "FunctionExpression",
"start": 115,
"end": 158,
"loc": {
"start": {
"line": 5,
"column": 12
},
"end": {
"line": 7,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 118,
"end": 158,
"loc": {
"start": {
"line": 5,
"column": 15
},
"end": {
"line": 7,
"column": 3
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 124,
"end": 154,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 34
}
},
"expression": {
"type": "CallExpression",
"start": 124,
"end": 153,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 33
}
},
"callee": {
"type": "MemberExpression",
"start": 124,
"end": 151,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 31
}
},
"object": {
"type": "ThisExpression",
"start": 124,
"end": 128,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 129,
"end": 151,
"loc": {
"start": {
"line": 6,
"column": 9
},
"end": {
"line": 6,
"column": 31
}
},
"name": "updateLocationOnChange"
},
"computed": false
},
"arguments": []
}
}
]
}
}
},
{
"type": "MethodDefinition",
"start": 162,
"end": 364,
"loc": {
"start": {
"line": 9,
"column": 2
},
"end": {
"line": 17,
"column": 3
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 162,
"end": 184,
"loc": {
"start": {
"line": 9,
"column": 2
},
"end": {
"line": 9,
"column": 24
}
},
"name": "updateLocationOnChange"
},
"static": false,
"kind": "method",
"value": {
"type": "FunctionExpression",
"start": 184,
"end": 364,
"loc": {
"start": {
"line": 9,
"column": 24
},
"end": {
"line": 17,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 187,
"end": 364,
"loc": {
"start": {
"line": 9,
"column": 27
},
"end": {
"line": 17,
"column": 3
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 193,
"end": 360,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 16,
"column": 7
}
},
"expression": {
"type": "CallExpression",
"start": 193,
"end": 359,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 16,
"column": 6
}
},
"callee": {
"type": "MemberExpression",
"start": 193,
"end": 220,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 10,
"column": 31
}
},
"object": {
"type": "CallExpression",
"start": 193,
"end": 217,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 10,
"column": 28
}
},
"callee": {
"type": "Identifier",
"start": 193,
"end": 194,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 10,
"column": 5
}
},
"name": "$"
},
"arguments": [
{
"type": "Literal",
"start": 195,
"end": 216,
"loc": {
"start": {
"line": 10,
"column": 6
},
"end": {
"line": 10,
"column": 27
}
},
"value": ".js-language-select",
"rawValue": ".js-language-select",
"raw": "\".js-language-select\""
}
]
},
"property": {
"type": "Identifier",
"start": 218,
"end": 220,
"loc": {
"start": {
"line": 10,
"column": 29
},
"end": {
"line": 10,
"column": 31
}
},
"name": "on"
},
"computed": false
},
"arguments": [
{
"type": "Literal",
"start": 221,
"end": 229,
"loc": {
"start": {
"line": 10,
"column": 32
},
"end": {
"line": 10,
"column": 40
}
},
"value": "change",
"rawValue": "change",
"raw": "\"change\""
},
{
"type": "FunctionExpression",
"start": 231,