rizzo-next
Version:
The next generation of Lonely Planet's style guide and pattern library.
1,233 lines • 150 kB
JSON
{
"type": "Program",
"start": 0,
"end": 1350,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 42,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 26,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 26
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 7,
"end": 12,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 12
}
},
"local": {
"type": "Identifier",
"start": 7,
"end": 12,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 12
}
},
"name": "React"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 18,
"end": 25,
"loc": {
"start": {
"line": 1,
"column": 18
},
"end": {
"line": 1,
"column": 25
}
},
"value": "react",
"rawValue": "react",
"raw": "\"react\""
}
},
{
"type": "ImportDeclaration",
"start": 27,
"end": 67,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 40
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 34,
"end": 43,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 16
}
},
"local": {
"type": "Identifier",
"start": 34,
"end": 43,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 16
}
},
"name": "Slideshow"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 49,
"end": 66,
"loc": {
"start": {
"line": 2,
"column": 22
},
"end": {
"line": 2,
"column": 39
}
},
"value": "../../slideshow",
"rawValue": "../../slideshow",
"raw": "\"../../slideshow\""
}
},
{
"type": "ImportDeclaration",
"start": 68,
"end": 91,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 23
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 75,
"end": 76,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 8
}
},
"local": {
"type": "Identifier",
"start": 75,
"end": 76,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 8
}
},
"name": "$"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 82,
"end": 90,
"loc": {
"start": {
"line": 3,
"column": 14
},
"end": {
"line": 3,
"column": 22
}
},
"value": "jquery",
"rawValue": "jquery",
"raw": "\"jquery\""
}
},
{
"type": "ExportDefaultDeclaration",
"start": 93,
"end": 1349,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 41,
"column": 1
}
},
"declaration": {
"type": "ClassDeclaration",
"start": 108,
"end": 1349,
"loc": {
"start": {
"line": 5,
"column": 15
},
"end": {
"line": 41,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 114,
"end": 124,
"loc": {
"start": {
"line": 5,
"column": 21
},
"end": {
"line": 5,
"column": 31
}
},
"name": "AboutPanel"
},
"superClass": {
"type": "MemberExpression",
"start": 133,
"end": 148,
"loc": {
"start": {
"line": 5,
"column": 40
},
"end": {
"line": 5,
"column": 55
}
},
"object": {
"type": "Identifier",
"start": 133,
"end": 138,
"loc": {
"start": {
"line": 5,
"column": 40
},
"end": {
"line": 5,
"column": 45
}
},
"name": "React"
},
"property": {
"type": "Identifier",
"start": 139,
"end": 148,
"loc": {
"start": {
"line": 5,
"column": 46
},
"end": {
"line": 5,
"column": 55
}
},
"name": "Component"
},
"computed": false
},
"body": {
"type": "ClassBody",
"start": 149,
"end": 1349,
"loc": {
"start": {
"line": 5,
"column": 56
},
"end": {
"line": 41,
"column": 1
}
},
"body": [
{
"type": "MethodDefinition",
"start": 153,
"end": 503,
"loc": {
"start": {
"line": 6,
"column": 2
},
"end": {
"line": 18,
"column": 3
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 153,
"end": 170,
"loc": {
"start": {
"line": 6,
"column": 2
},
"end": {
"line": 6,
"column": 19
}
},
"name": "componentDidMount"
},
"static": false,
"kind": "method",
"value": {
"type": "FunctionExpression",
"start": 170,
"end": 503,
"loc": {
"start": {
"line": 6,
"column": 19
},
"end": {
"line": 18,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 173,
"end": 503,
"loc": {
"start": {
"line": 6,
"column": 22
},
"end": {
"line": 18,
"column": 3
}
},
"body": [
{
"type": "IfStatement",
"start": 179,
"end": 499,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 17,
"column": 5
}
},
"test": {
"type": "MemberExpression",
"start": 183,
"end": 216,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 41
}
},
"object": {
"type": "MemberExpression",
"start": 183,
"end": 209,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 34
}
},
"object": {
"type": "MemberExpression",
"start": 183,
"end": 202,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 27
}
},
"object": {
"type": "MemberExpression",
"start": 183,
"end": 193,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 18
}
},
"object": {
"type": "ThisExpression",
"start": 183,
"end": 187,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 188,
"end": 193,
"loc": {
"start": {
"line": 7,
"column": 13
},
"end": {
"line": 7,
"column": 18
}
},
"name": "props"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 194,
"end": 202,
"loc": {
"start": {
"line": 7,
"column": 19
},
"end": {
"line": 7,
"column": 27
}
},
"name": "location"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 203,
"end": 209,
"loc": {
"start": {
"line": 7,
"column": 28
},
"end": {
"line": 7,
"column": 34
}
},
"name": "images"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 210,
"end": 216,
"loc": {
"start": {
"line": 7,
"column": 35
},
"end": {
"line": 7,
"column": 41
}
},
"name": "length"
},
"computed": false
},
"consequent": {
"type": "BlockStatement",
"start": 218,
"end": 434,
"loc": {
"start": {
"line": 7,
"column": 43
},
"end": {
"line": 15,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 226,
"end": 428,
"loc": {
"start": {
"line": 8,
"column": 6
},
"end": {
"line": 14,
"column": 9
}
},
"expression": {
"type": "AssignmentExpression",
"start": 226,
"end": 427,
"loc": {
"start": {
"line": 8,
"column": 6
},
"end": {
"line": 14,
"column": 8
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 226,
"end": 240,
"loc": {
"start": {
"line": 8,
"column": 6
},
"end": {
"line": 8,
"column": 20
}
},
"object": {
"type": "ThisExpression",
"start": 226,
"end": 230,
"loc": {
"start": {
"line": 8,
"column": 6
},
"end": {
"line": 8,
"column": 10
}
}
},
"property": {
"type": "Identifier",
"start": 231,
"end": 240,
"loc": {
"start": {
"line": 8,
"column": 11
},
"end": {
"line": 8,
"column": 20
}
},
"name": "slideshow"
},
"computed": false
},
"right": {
"type": "NewExpression",
"start": 243,
"end": 427,
"loc": {
"start": {
"line": 8,
"column": 23
},
"end": {
"line": 14,
"column": 8
}
},
"callee": {
"type": "Identifier",
"start": 247,
"end": 256,
"loc": {
"start": {
"line": 8,
"column": 27
},
"end": {
"line": 8,
"column": 36
}
},
"name": "Slideshow"
},
"arguments": [
{
"type": "ObjectExpression",
"start": 257,
"end": 426,
"loc": {
"start": {
"line": 8,
"column": 37
},
"end": {
"line": 14,
"column": 7
}
},
"properties": [
{
"type": "Property",
"start": 267,
"end": 303,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 44
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 267,
"end": 269,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 10
}
},
"name": "el"
},
"value": {
"type": "CallExpression",
"start": 271,
"end": 303,
"loc": {
"start": {
"line": 9,
"column": 12
},
"end": {
"line": 9,
"column": 44
}
},
"callee": {
"type": "MemberExpression",
"start": 271,
"end": 301,
"loc": {
"start": {
"line": 9,
"column": 12
},
"end": {
"line": 9,
"column": 42
}
},
"object": {
"type": "MemberExpression",
"start": 271,
"end": 290,
"loc": {
"start": {
"line": 9,
"column": 12
},
"end": {
"line": 9,
"column": 31
}
},
"object": {
"type": "MemberExpression",
"start": 271,
"end": 280,
"loc": {
"start": {
"line": 9,
"column": 12
},
"end": {
"line": 9,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 271,
"end": 275,
"loc": {
"start": {
"line": 9,
"column": 12
},
"end": {
"line": 9,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 276,
"end": 280,
"loc": {
"start": {
"line": 9,
"column": 17
},
"end": {
"line": 9,
"column": 21
}
},
"name": "refs"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 281,
"end": 290,
"loc": {
"start": {
"line": 9,
"column": 22
},
"end": {
"line": 9,
"column": 31
}
},
"name": "slideshow"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 291,
"end": 301,
"loc": {
"start": {
"line": 9,
"column": 32
},
"end": {
"line": 9,
"column": 42
}
},
"name": "getDOMNode"
},
"computed": false
},
"arguments": []
},
"kind": "init"
},
{
"type": "Property",
"start": 313,
"end": 325,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 20
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 313,
"end": 317,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 12
}
},
"name": "type"
},
"value": {
"type": "Literal",
"start": 319,
"end": 325,
"loc": {
"start": {
"line": 10,
"column": 14
},
"end": {
"line": 10,
"column": 20
}
},
"value": "fade",
"rawValue": "fade",
"raw": "\"fade\""
},
"kind": "init"
},
{
"type": "Property",
"start": 335,
"end": 369,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 42
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 335,
"end": 341,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 14
}
},
"name": "images"
},
"value": {
"type": "MemberExpression",
"start": 343,
"end": 369,
"loc": {
"start": {
"line": 11,
"column": 16
},
"end": {
"line": 11,
"column": 42
}
},
"object": {
"type": "MemberExpression",
"start": 343,
"end": 362,
"loc": {
"start": {
"line": 11,
"column": 16
},
"end": {
"line": 11,
"column": 35
}
},
"object": {
"type": "MemberExpression",
"start": 343,
"end": 353,
"loc": {
"start": {
"line": 11,
"column": 16
},
"end": {
"line": 11,
"column": 26
}
},
"object": {
"type": "ThisExpression",
"start": 343,
"end": 347,
"loc": {
"start": {
"line": 11,
"column": 16
},
"end": {
"line": 11,
"column": 20
}
}
},
"property": {
"type": "Identifier",
"start": 348,
"end": 353,
"loc": {
"start": {
"line": 11,
"column": 21
},
"end": {
"line": 11,
"column": 26
}
},
"name": "props"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 354,
"end": 362,
"loc": {
"start": {
"line": 11,
"column": 27
},
"end": {
"line": 11,
"column": 35
}
},
"name": "location"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 363,
"end": 369,
"loc": {
"start": {
"line": 11,
"column": 36
},
"end": {
"line": 11,
"column": 42
}
},
"name": "images"
},
"computed": false
},
"kind": "init"
},
{
"type": "Property",
"start": 379,
"end": 390,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 19
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 379,
"end": 385,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 14
}
},
"name": "height"
},
"value": {
"type": "Literal",
"start": 387,
"end": 390,
"loc": {
"start": {
"line": 12,
"column": 16
},
"end": {
"line": 12,
"column": 19
}
},
"value": 270,
"rawValue": 270,
"raw": "270"
},
"kind": "init"
},
{
"type": "Property",
"start": 400,
"end": 418,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 26
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 400,
"end": 412,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 20
}
},
"name": "showProgress"
},
"value": {
"type": "Literal",
"start": 414,
"end": 418,
"loc": {
"start": {
"line": 13,
"column": 22
},
"end": {
"line": 13,
"column": 26
}
},
"value": true,
"rawValue": true,
"raw": "true"
},
"kind": "init"
}
]
}
]
}
}
}
]
},
"alternate": {
"type": "BlockStatement",
"start": 440,
"end": 499,
"loc": {
"start": {
"line": 15,
"column": 11
},
"end": {
"line": 17,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 448,
"end": 493,
"loc": {
"start": {
"line": 16,
"column": 6
},
"end": {
"line": 16,
"column": 51
}
},
"expression": {
"type": "CallExpression",
"start": 448,
"end": 492,
"loc": {
"start": {
"line": 16,
"column": 6
},
"end": {
"line": 16,
"column": 50
}
},
"callee": {
"type": "MemberExpression",
"start": 448,
"end": 490,
"loc": {
"start": {
"line": 16,
"column": 6
},
"end": {
"line": 16,
"column": 48
}
},
"object": {
"type": "CallExpression",
"start": 448,
"end": 483,
"loc": {
"start": {
"line": 16,
"column": 6
},
"end": {
"line": 16,
"column": 41
}
},
"callee": {
"type": "Identif