rizzo-next
Version:
The next generation of Lonely Planet's style guide and pattern library.
1,521 lines • 1.65 MB
JSON
{
"type": "Program",
"start": 0,
"end": 7696,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 290,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 45,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 45
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 7,
"end": 16,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 16
}
},
"local": {
"type": "Identifier",
"start": 7,
"end": 16,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 16
}
},
"name": "Component"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 22,
"end": 44,
"loc": {
"start": {
"line": 1,
"column": 22
},
"end": {
"line": 1,
"column": 44
}
},
"value": "../../core/component",
"rawValue": "../../core/component",
"raw": "\"../../core/component\""
}
},
{
"type": "ImportDeclaration",
"start": 46,
"end": 113,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 67
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 53,
"end": 70,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 24
}
},
"local": {
"type": "Identifier",
"start": 53,
"end": 70,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 24
}
},
"name": "waitForTransition"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 76,
"end": 112,
"loc": {
"start": {
"line": 2,
"column": 30
},
"end": {
"line": 2,
"column": 66
}
},
"value": "../../core/utils/waitForTransition",
"rawValue": "../../core/utils/waitForTransition",
"raw": "\"../../core/utils/waitForTransition\""
}
},
{
"type": "ImportDeclaration",
"start": 114,
"end": 166,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 52
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 121,
"end": 128,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 14
}
},
"local": {
"type": "Identifier",
"start": 121,
"end": 128,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 14
}
},
"name": "publish"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 134,
"end": 165,
"loc": {
"start": {
"line": 3,
"column": 20
},
"end": {
"line": 3,
"column": 51
}
},
"value": "../../core/decorators/publish",
"rawValue": "../../core/decorators/publish",
"raw": "\"../../core/decorators/publish\""
}
},
{
"type": "ImportDeclaration",
"start": 167,
"end": 206,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 39
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 174,
"end": 180,
"loc": {
"start": {
"line": 4,
"column": 7
},
"end": {
"line": 4,
"column": 13
}
},
"local": {
"type": "Identifier",
"start": 174,
"end": 180,
"loc": {
"start": {
"line": 4,
"column": 7
},
"end": {
"line": 4,
"column": 13
}
},
"name": "$clamp"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 186,
"end": 205,
"loc": {
"start": {
"line": 4,
"column": 19
},
"end": {
"line": 4,
"column": 38
}
},
"value": "clamp-js/clamp.js",
"rawValue": "clamp-js/clamp.js",
"raw": "\"clamp-js/clamp.js\""
}
},
{
"type": "ImportDeclaration",
"start": 207,
"end": 239,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 32
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 214,
"end": 219,
"loc": {
"start": {
"line": 5,
"column": 7
},
"end": {
"line": 5,
"column": 12
}
},
"local": {
"type": "Identifier",
"start": 214,
"end": 219,
"loc": {
"start": {
"line": 5,
"column": 7
},
"end": {
"line": 5,
"column": 12
}
},
"name": "rizzo"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 225,
"end": 238,
"loc": {
"start": {
"line": 5,
"column": 18
},
"end": {
"line": 5,
"column": 31
}
},
"value": "../../rizzo",
"rawValue": "../../rizzo",
"raw": "\"../../rizzo\""
}
},
{
"type": "Identifier",
"start": 241,
"end": 7667,
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 287,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 247,
"end": 257,
"loc": {
"start": {
"line": 7,
"column": 6
},
"end": {
"line": 7,
"column": 16
}
},
"name": "ThingsToDo"
},
"superClass": {
"type": "Identifier",
"start": 266,
"end": 275,
"loc": {
"start": {
"line": 7,
"column": 25
},
"end": {
"line": 7,
"column": 34
}
},
"name": "Component"
},
"body": {
"type": "ClassBody",
"start": 276,
"end": 7667,
"loc": {
"start": {
"line": 7,
"column": 35
},
"end": {
"line": 287,
"column": 1
}
},
"body": [
{
"type": "MethodDefinition",
"start": 280,
"end": 354,
"loc": {
"start": {
"line": 8,
"column": 2
},
"end": {
"line": 10,
"column": 3
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 284,
"end": 289,
"loc": {
"start": {
"line": 8,
"column": 6
},
"end": {
"line": 8,
"column": 11
}
},
"name": "title"
},
"static": false,
"kind": "get",
"value": {
"type": "FunctionExpression",
"start": 289,
"end": 354,
"loc": {
"start": {
"line": 8,
"column": 11
},
"end": {
"line": 10,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 292,
"end": 354,
"loc": {
"start": {
"line": 8,
"column": 14
},
"end": {
"line": 10,
"column": 3
}
},
"body": [
{
"type": "ReturnStatement",
"start": 298,
"end": 350,
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 56
}
},
"argument": {
"type": "TemplateLiteral",
"start": 305,
"end": 349,
"loc": {
"start": {
"line": 9,
"column": 11
},
"end": {
"line": 9,
"column": 55
}
},
"expressions": [
{
"type": "MemberExpression",
"start": 327,
"end": 347,
"loc": {
"start": {
"line": 9,
"column": 33
},
"end": {
"line": 9,
"column": 53
}
},
"object": {
"type": "MemberExpression",
"start": 327,
"end": 342,
"loc": {
"start": {
"line": 9,
"column": 33
},
"end": {
"line": 9,
"column": 48
}
},
"object": {
"type": "MemberExpression",
"start": 327,
"end": 336,
"loc": {
"start": {
"line": 9,
"column": 33
},
"end": {
"line": 9,
"column": 42
}
},
"object": {
"type": "Identifier",
"start": 327,
"end": 333,
"loc": {
"start": {
"line": 9,
"column": 33
},
"end": {
"line": 9,
"column": 39
}
},
"name": "window"
},
"property": {
"type": "Identifier",
"start": 334,
"end": 336,
"loc": {
"start": {
"line": 9,
"column": 40
},
"end": {
"line": 9,
"column": 42
}
},
"name": "lp"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 337,
"end": 342,
"loc": {
"start": {
"line": 9,
"column": 43
},
"end": {
"line": 9,
"column": 48
}
},
"name": "place"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 343,
"end": 347,
"loc": {
"start": {
"line": 9,
"column": 49
},
"end": {
"line": 9,
"column": 53
}
},
"name": "name"
},
"computed": false
}
],
"quasis": [
{
"type": "TemplateElement",
"start": 306,
"end": 325,
"loc": {
"start": {
"line": 9,
"column": 12
},
"end": {
"line": 9,
"column": 31
}
},
"value": {
"raw": "Top experiences in ",
"cooked": "Top experiences in "
},
"tail": false
},
{
"type": "TemplateElement",
"start": 348,
"end": 348,
"loc": {
"start": {
"line": 9,
"column": 54
},
"end": {
"line": 9,
"column": 54
}
},
"value": {
"raw": "",
"cooked": ""
},
"tail": true
}
]
}
}
]
}
}
},
{
"type": "MethodDefinition",
"start": 357,
"end": 826,
"loc": {
"start": {
"line": 11,
"column": 2
},
"end": {
"line": 29,
"column": 3
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 357,
"end": 367,
"loc": {
"start": {
"line": 11,
"column": 2
},
"end": {
"line": 11,
"column": 12
}
},
"name": "initialize"
},
"static": false,
"kind": "method",
"value": {
"type": "FunctionExpression",
"start": 367,
"end": 826,
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 29,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 370,
"end": 826,
"loc": {
"start": {
"line": 11,
"column": 15
},
"end": {
"line": 29,
"column": 3
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 376,
"end": 426,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 54
}
},
"expression": {
"type": "AssignmentExpression",
"start": 376,
"end": 425,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 53
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 376,
"end": 393,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 376,
"end": 380,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 381,
"end": 393,
"loc": {
"start": {
"line": 12,
"column": 9
},
"end": {
"line": 12,
"column": 21
}
},
"name": "currentIndex"
},
"computed": false
},
"right": {
"type": "LogicalExpression",
"start": 396,
"end": 425,
"loc": {
"start": {
"line": 12,
"column": 24
},
"end": {
"line": 12,
"column": 53
}
},
"left": {
"type": "CallExpression",
"start": 397,
"end": 419,
"loc": {
"start": {
"line": 12,
"column": 25
},
"end": {
"line": 12,
"column": 47
}
},
"callee": {
"type": "MemberExpression",
"start": 397,
"end": 417,
"loc": {
"start": {
"line": 12,
"column": 25
},
"end": {
"line": 12,
"column": 45
}
},
"object": {
"type": "ThisExpression",
"start": 397,
"end": 401,
"loc": {
"start": {
"line": 12,
"column": 25
},
"end": {
"line": 12,
"column": 29
}
}
},
"property": {
"type": "Identifier",
"start": 402,
"end": 417,
"loc": {
"start": {
"line": 12,
"column": 30
},
"end": {
"line": 12,
"column": 45
}
},
"name": "getCurrentIndex"
},
"computed": false
},
"arguments": [],
"parenthesizedExpression": true
},
"operator": "||",
"right": {
"type": "Literal",
"start": 424,
"end": 425,
"loc": {
"start": {
"line": 12,
"column": 52
},
"end": {
"line": 12,
"column": 53
}
},
"value": 0,
"rawValue": 0,
"raw": "0"
}
}
}
},
{
"type": "ExpressionStatement",
"start": 432,
"end": 475,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 16,
"column": 6
}
},
"expression": {
"type": "AssignmentExpression",
"start": 432,
"end": 474,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 16,
"column": 5
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 432,
"end": 444,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 14,
"column": 16
}
},
"object": {
"type": "ThisExpression",
"start": 432,
"end": 436,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 14,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 437,
"end": 444,
"loc": {
"start": {
"line": 14,
"column": 9
},
"end": {
"line": 14,
"column": 16
}
},
"name": "options"
},
"computed": false
},
"right": {
"type": "ObjectExpression",
"start": 447,
"end": 474,
"loc": {
"start": {
"line": 14,
"column": 19
},
"end": {
"line": 16,
"column": 5
}
},
"properties": [
{
"type": "Property",
"start": 455,
"end": 468,
"loc": {
"start": {
"line": 15,
"column": 6
},
"end": {
"line": 15,
"column": 19
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 455,
"end": 465,
"loc": {
"start": {
"line": 15,
"column": 6
},
"end": {
"line": 15,
"column": 16
}
},
"name": "numOfCards"
},
"value": {
"type": "Literal",
"start": 467,
"end": 468,
"loc": {
"start": {
"line": 15,
"column": 18
},
"end": {
"line": 15,
"column": 19
}
},
"value": 4,
"rawValue": 4,
"raw": "4"
},
"kind": "init"
}
]
}
}
},
{
"type": "ExpressionStatement",
"start": 481,
"end": 653,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 23,
"column": 6
}
},
"expression": {
"type": "AssignmentExpression",
"start": 481,
"end": 652,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 23,
"column": 5
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 481,
"end": 492,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 15
}
},
"object": {
"type": "ThisExpression",
"start": 481,
"end": 485,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 486,
"end": 492,
"loc": {
"start": {
"line": 18,
"column": 9
},
"end": {
"line": 18,
"column": 15
}
},
"name": "events"
},
"computed": false
},
"right": {
"type": "ObjectExpression",
"start": 495,
"end": 652,
"loc": {
"start": {
"line": 18,
"column": 18
},
"end": {
"line": 23,
"column": 5
}
},
"properties": [
{
"type": "Property",
"start": 503,
"end": 535,
"loc": {
"start": {
"line": 19,
"column": 6
},
"end": {
"line": 19,
"column": 38
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Literal",
"start": 503,
"end": 523,
"loc": {
"start": {
"line": 19,
"column": 6
},
"end": {
"line": 19,
"column": 26
}
},
"value": "click .js-ttd-more",
"rawValue": "click .js-ttd-more",
"raw": "\"click .js-ttd-more\""
},
"value": {
"type": "Literal",
"start": 525,
"end": 535,
"loc": {
"start": {
"line": 19,
"column": 28
},
"end": {
"line": 19,
"column": 38
}
},
"value": "loadMore",
"rawValue": "loadMore",
"raw": "\"loadMore\""
},
"kind": "init"
},
{
"type": "Property",
"start": 543,
"end": 579,
"loc": {
"start": {
"line": 20,
"column": 6
},
"end": {
"line": 20,
"column": 42
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Literal",
"start": 543,
"end": 563,
"loc": {
"start": {
"line": 20,
"column": 6
},
"end": {
"line": 20,
"column": 26
}
},
"value": "click .js-ttd-less",
"rawValue": "click .js-ttd-less",
"raw": "\"click .js-ttd-less\""
},
"value": {
"type": "Literal",
"start": 565,
"end": 579,
"loc": {
"start": {
"line": 20,
"column": 28
},
"end": {
"line": 20,
"column": 42
}
},
"value": "loadPrevious",
"rawValue": "loadPrevious",
"raw": "\"loadPrevious\""
},
"kind": "init"
},
{
"type": "Property",
"start": 587,
"end": 615,
"loc": {
"start": {
"line": 21,
"column": 6
},
"end": {
"line": 21,
"column": 34
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Literal",
"start": 587,
"end": 599,
"loc": {
"start": {
"line": 21,
"column": 6
},
"end": {
"line": 21,
"column": 18
}
},
"value": "swiperight",
"rawValue": "swiperight",
"raw": "\"swiperight\""
},
"value": {
"type": "Literal",
"start": 601,
"end": 615,
"loc": {
"start": {
"line": 21,
"column": 20
},
"end": {
"line": 21,
"column": 34
}
},
"value": "loadPrevious",
"rawValue": "loadPrevious",
"raw": "\"loadPrevious\""
},
"kind": "init"
},
{
"type": "Property",
"start": 623,
"end": 646,
"loc": {
"start": {
"line": 22,
"column": 6
},
"end": {
"line": 22,
"column": 29
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Literal",
"start": 623,
"end": 634,
"loc": {
"start": {
"line": 22,
"column": 6
},
"end": {
"line": 22,
"column": 17
}
},
"value": "swipeleft",
"rawValue": "swipeleft",
"raw": "\"swipeleft\""
},
"value": {
"type": "Literal",
"start": 636,
"end": 646,
"loc": {
"start": {
"line": 22,
"column": 19
},
"end": {
"line": 22,
"column": 29
}
},
"value": "loadMore",
"rawValue": "loadMore",
"raw": "\"loadMore\""
},
"kind": "init"
}
]
}
}
},
{
"type": "ExpressionStatement",
"start": 659,
"end": 822,
"loc": {
"start": {
"line": 25,
"column": 4
},
"end": {
"line": 28,
"column": 7
}
},
"expression": {
"type": "CallExpression",
"start": 659,
"end": 821,
"loc": {
"start": {
"line": 25,
"column": 4
},
"end": {
"line": 28,
"column": 6
}
},
"callee": {
"type": "MemberExpression",
"start": 659,
"end": 716,
"loc": {
"start": {
"line": 25,
"column": 4
},
"end": {
"line": 25,
"column": 61
}
},
"object": {
"type": "CallExpression",
"start": 659,
"end": 711,
"loc": {
"start": {
"line": 25,
"column": 4
},
"end": {
"line": 25,
"column": 56
}
},
"callee": {
"type": "MemberExpression",
"start": 659,
"end": 681,
"loc": {
"start": {
"line": 25,
"column": 4
},
"end": {
"line": 25,
"column": 26
}
},
"object": {
"type": "CallExpression",
"start": 659,
"end": 676,
"loc": {
"start": {
"line": 25,
"column": 4
},
"end": {
"line": 25,
"column": 21
}
},
"callee": {
"type": "MemberExpression",
"start": 659,
"end": 674,
"loc": {
"start": {
"line": 25,
"column": 4
},
"end": {
"line": 25,
"column": 19
}
},
"object": {
"type": "ThisExpression",
"start": 659,
"end": 663,
"loc": {
"start": {
"line": 25,
"column": 4
},
"end": {
"line": 25,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 664,
"end": 674,
"loc": {
"start": {
"line": 25,
"column": 9
},
"end": {
"line": 25,
"column": 19
}
},
"name": "fetchCards"
},
"computed": false
},
"arguments": []
},
"property": {
"type": "Identifier",
"start": 677,
"end": 681,
"loc": {
"start": {
"line": 25,
"column": 22
},
"end": {
"line": 25,
"column": 26
}