rizzo-next
Version:
The next generation of Lonely Planet's style guide and pattern library.
1,636 lines • 980 kB
JSON
{
"type": "Program",
"start": 0,
"end": 4933,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 179,
"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": 78,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 33
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 52,
"end": 59,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 14
}
},
"local": {
"type": "Identifier",
"start": 52,
"end": 59,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 14
}
},
"name": "Overlay"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 65,
"end": 77,
"loc": {
"start": {
"line": 2,
"column": 20
},
"end": {
"line": 2,
"column": 32
}
},
"value": "../overlay",
"rawValue": "../overlay",
"raw": "\"../overlay\""
}
},
{
"type": "ImportDeclaration",
"start": 79,
"end": 135,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 56
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 86,
"end": 98,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 19
}
},
"local": {
"type": "Identifier",
"start": 86,
"end": 98,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 19
}
},
"name": "Notification"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 104,
"end": 134,
"loc": {
"start": {
"line": 3,
"column": 25
},
"end": {
"line": 3,
"column": 55
}
},
"value": "../notification/notification",
"rawValue": "../notification/notification",
"raw": "\"../notification/notification\""
}
},
{
"type": "ImportDeclaration",
"start": 136,
"end": 203,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 67
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 143,
"end": 160,
"loc": {
"start": {
"line": 4,
"column": 7
},
"end": {
"line": 4,
"column": 24
}
},
"local": {
"type": "Identifier",
"start": 143,
"end": 160,
"loc": {
"start": {
"line": 4,
"column": 7
},
"end": {
"line": 4,
"column": 24
}
},
"name": "waitForTransition"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 166,
"end": 202,
"loc": {
"start": {
"line": 4,
"column": 30
},
"end": {
"line": 4,
"column": 66
}
},
"value": "../../core/utils/waitForTransition",
"rawValue": "../../core/utils/waitForTransition",
"raw": "\"../../core/utils/waitForTransition\""
}
},
{
"type": "ImportDeclaration",
"start": 204,
"end": 257,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 53
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 211,
"end": 228,
"loc": {
"start": {
"line": 5,
"column": 7
},
"end": {
"line": 5,
"column": 24
}
},
"local": {
"type": "Identifier",
"start": 211,
"end": 228,
"loc": {
"start": {
"line": 5,
"column": 7
},
"end": {
"line": 5,
"column": 24
}
},
"name": "NavigationActions"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 234,
"end": 256,
"loc": {
"start": {
"line": 5,
"column": 30
},
"end": {
"line": 5,
"column": 52
}
},
"value": "./navigation_actions",
"rawValue": "./navigation_actions",
"raw": "\"./navigation_actions\""
}
},
{
"type": "ImportDeclaration",
"start": 258,
"end": 307,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 6,
"column": 49
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 265,
"end": 280,
"loc": {
"start": {
"line": 6,
"column": 7
},
"end": {
"line": 6,
"column": 22
}
},
"local": {
"type": "Identifier",
"start": 265,
"end": 280,
"loc": {
"start": {
"line": 6,
"column": 7
},
"end": {
"line": 6,
"column": 22
}
},
"name": "NavigationState"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 286,
"end": 306,
"loc": {
"start": {
"line": 6,
"column": 28
},
"end": {
"line": 6,
"column": 48
}
},
"value": "./navigation_state",
"rawValue": "./navigation_state",
"raw": "\"./navigation_state\""
}
},
{
"type": "ImportDeclaration",
"start": 308,
"end": 350,
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 7,
"column": 42
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 315,
"end": 319,
"loc": {
"start": {
"line": 7,
"column": 7
},
"end": {
"line": 7,
"column": 11
}
},
"local": {
"type": "Identifier",
"start": 315,
"end": 319,
"loc": {
"start": {
"line": 7,
"column": 7
},
"end": {
"line": 7,
"column": 11
}
},
"name": "Tabs"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 325,
"end": 349,
"loc": {
"start": {
"line": 7,
"column": 17
},
"end": {
"line": 7,
"column": 41
}
},
"value": "../tabs/tabs_component",
"rawValue": "../tabs/tabs_component",
"raw": "\"../tabs/tabs_component\""
}
},
{
"type": "ImportDeclaration",
"start": 351,
"end": 407,
"loc": {
"start": {
"line": 8,
"column": 0
},
"end": {
"line": 8,
"column": 56
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 358,
"end": 367,
"loc": {
"start": {
"line": 8,
"column": 7
},
"end": {
"line": 8,
"column": 16
}
},
"local": {
"type": "Identifier",
"start": 358,
"end": 367,
"loc": {
"start": {
"line": 8,
"column": 7
},
"end": {
"line": 8,
"column": 16
}
},
"name": "subscribe"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 373,
"end": 406,
"loc": {
"start": {
"line": 8,
"column": 22
},
"end": {
"line": 8,
"column": 55
}
},
"value": "../../core/decorators/subscribe",
"rawValue": "../../core/decorators/subscribe",
"raw": "\"../../core/decorators/subscribe\""
}
},
{
"type": "ImportDeclaration",
"start": 408,
"end": 436,
"loc": {
"start": {
"line": 9,
"column": 0
},
"end": {
"line": 9,
"column": 28
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 415,
"end": 421,
"loc": {
"start": {
"line": 9,
"column": 7
},
"end": {
"line": 9,
"column": 13
}
},
"local": {
"type": "Identifier",
"start": 415,
"end": 421,
"loc": {
"start": {
"line": 9,
"column": 7
},
"end": {
"line": 9,
"column": 13
}
},
"name": "moment"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 427,
"end": 435,
"loc": {
"start": {
"line": 9,
"column": 19
},
"end": {
"line": 9,
"column": 27
}
},
"value": "moment",
"rawValue": "moment",
"raw": "\"moment\""
}
},
{
"type": "VariableDeclaration",
"start": 439,
"end": 491,
"loc": {
"start": {
"line": 12,
"column": 0
},
"end": {
"line": 12,
"column": 52
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 443,
"end": 490,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 51
}
},
"id": {
"type": "Identifier",
"start": 443,
"end": 460,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 21
}
},
"name": "userPanelTemplate"
},
"init": {
"type": "CallExpression",
"start": 463,
"end": 490,
"loc": {
"start": {
"line": 12,
"column": 24
},
"end": {
"line": 12,
"column": 51
}
},
"callee": {
"type": "Identifier",
"start": 463,
"end": 470,
"loc": {
"start": {
"line": 12,
"column": 24
},
"end": {
"line": 12,
"column": 31
}
},
"name": "require"
},
"arguments": [
{
"type": "Literal",
"start": 471,
"end": 489,
"loc": {
"start": {
"line": 12,
"column": 32
},
"end": {
"line": 12,
"column": 50
}
},
"value": "./user_panel.hbs",
"rawValue": "./user_panel.hbs",
"raw": "\"./user_panel.hbs\""
}
]
}
}
],
"kind": "let",
"trailingComments": [
{
"type": "CommentLine",
"value": " Handlebars.registerPartial('submenu', $(\"#submenu\").html());",
"start": 492,
"end": 555,
"loc": {
"start": {
"line": 13,
"column": 0
},
"end": {
"line": 13,
"column": 63
}
},
"range": [
492,
555
]
}
]
},
{
"type": "Identifier",
"start": 557,
"end": 4895,
"loc": {
"start": {
"line": 15,
"column": 0
},
"end": {
"line": 176,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 563,
"end": 582,
"loc": {
"start": {
"line": 15,
"column": 6
},
"end": {
"line": 15,
"column": 25
}
},
"name": "NavigationComponent",
"leadingComments": null
},
"superClass": {
"type": "Identifier",
"start": 591,
"end": 600,
"loc": {
"start": {
"line": 15,
"column": 34
},
"end": {
"line": 15,
"column": 43
}
},
"name": "Component"
},
"body": {
"type": "ClassBody",
"start": 601,
"end": 4895,
"loc": {
"start": {
"line": 15,
"column": 44
},
"end": {
"line": 176,
"column": 1
}
},
"body": [
{
"type": "MethodDefinition",
"start": 606,
"end": 1460,
"loc": {
"start": {
"line": 17,
"column": 2
},
"end": {
"line": 43,
"column": 3
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 606,
"end": 616,
"loc": {
"start": {
"line": 17,
"column": 2
},
"end": {
"line": 17,
"column": 12
}
},
"name": "initialize"
},
"static": false,
"kind": "method",
"value": {
"type": "FunctionExpression",
"start": 616,
"end": 1460,
"loc": {
"start": {
"line": 17,
"column": 12
},
"end": {
"line": 43,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 619,
"end": 1460,
"loc": {
"start": {
"line": 17,
"column": 15
},
"end": {
"line": 43,
"column": 3
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 626,
"end": 666,
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 19,
"column": 44
}
},
"expression": {
"type": "AssignmentExpression",
"start": 626,
"end": 665,
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 19,
"column": 43
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 626,
"end": 636,
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 19,
"column": 14
}
},
"object": {
"type": "ThisExpression",
"start": 626,
"end": 630,
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 19,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 631,
"end": 636,
"loc": {
"start": {
"line": 19,
"column": 9
},
"end": {
"line": 19,
"column": 14
}
},
"name": "state"
},
"computed": false
},
"right": {
"type": "CallExpression",
"start": 639,
"end": 665,
"loc": {
"start": {
"line": 19,
"column": 17
},
"end": {
"line": 19,
"column": 43
}
},
"callee": {
"type": "MemberExpression",
"start": 639,
"end": 663,
"loc": {
"start": {
"line": 19,
"column": 17
},
"end": {
"line": 19,
"column": 41
}
},
"object": {
"type": "Identifier",
"start": 639,
"end": 654,
"loc": {
"start": {
"line": 19,
"column": 17
},
"end": {
"line": 19,
"column": 32
}
},
"name": "NavigationState"
},
"property": {
"type": "Identifier",
"start": 655,
"end": 663,
"loc": {
"start": {
"line": 19,
"column": 33
},
"end": {
"line": 19,
"column": 41
}
},
"name": "getState"
},
"computed": false
},
"arguments": []
}
}
},
{
"type": "ExpressionStatement",
"start": 671,
"end": 700,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 20,
"column": 33
}
},
"expression": {
"type": "AssignmentExpression",
"start": 671,
"end": 699,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 20,
"column": 32
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 671,
"end": 683,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 20,
"column": 16
}
},
"object": {
"type": "ThisExpression",
"start": 671,
"end": 675,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 20,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 676,
"end": 683,
"loc": {
"start": {
"line": 20,
"column": 9
},
"end": {
"line": 20,
"column": 16
}
},
"name": "overlay"
},
"computed": false
},
"right": {
"type": "NewExpression",
"start": 686,
"end": 699,
"loc": {
"start": {
"line": 20,
"column": 19
},
"end": {
"line": 20,
"column": 32
}
},
"callee": {
"type": "Identifier",
"start": 690,
"end": 697,
"loc": {
"start": {
"line": 20,
"column": 23
},
"end": {
"line": 20,
"column": 30
}
},
"name": "Overlay"
},
"arguments": []
}
}
},
{
"type": "ExpressionStatement",
"start": 706,
"end": 891,
"loc": {
"start": {
"line": 22,
"column": 4
},
"end": {
"line": 26,
"column": 7
}
},
"expression": {
"type": "AssignmentExpression",
"start": 706,
"end": 890,
"loc": {
"start": {
"line": 22,
"column": 4
},
"end": {
"line": 26,
"column": 6
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 706,
"end": 723,
"loc": {
"start": {
"line": 22,
"column": 4
},
"end": {
"line": 22,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 706,
"end": 710,
"loc": {
"start": {
"line": 22,
"column": 4
},
"end": {
"line": 22,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 711,
"end": 723,
"loc": {
"start": {
"line": 22,
"column": 9
},
"end": {
"line": 22,
"column": 21
}
},
"name": "notification"
},
"computed": false
},
"right": {
"type": "NewExpression",
"start": 726,
"end": 890,
"loc": {
"start": {
"line": 22,
"column": 24
},
"end": {
"line": 26,
"column": 6
}
},
"callee": {
"type": "Identifier",
"start": 730,
"end": 742,
"loc": {
"start": {
"line": 22,
"column": 28
},
"end": {
"line": 22,
"column": 40
}
},
"name": "Notification"
},
"arguments": [
{
"type": "ObjectExpression",
"start": 743,
"end": 889,
"loc": {
"start": {
"line": 22,
"column": 41
},
"end": {
"line": 26,
"column": 5
}
},
"properties": [
{
"type": "Property",
"start": 751,
"end": 797,
"loc": {
"start": {
"line": 23,
"column": 6
},
"end": {
"line": 23,
"column": 52
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 751,
"end": 757,
"loc": {
"start": {
"line": 23,
"column": 6
},
"end": {
"line": 23,
"column": 12
}
},
"name": "target"
},
"value": {
"type": "CallExpression",
"start": 759,
"end": 797,
"loc": {
"start": {
"line": 23,
"column": 14
},
"end": {
"line": 23,
"column": 52
}
},
"callee": {
"type": "MemberExpression",
"start": 759,
"end": 772,
"loc": {
"start": {
"line": 23,
"column": 14
},
"end": {
"line": 23,
"column": 27
}
},
"object": {
"type": "MemberExpression",
"start": 759,
"end": 767,
"loc": {
"start": {
"line": 23,
"column": 14
},
"end": {
"line": 23,
"column": 22
}
},
"object": {
"type": "ThisExpression",
"start": 759,
"end": 763,
"loc": {
"start": {
"line": 23,
"column": 14
},
"end": {
"line": 23,
"column": 18
}
}
},
"property": {
"type": "Identifier",
"start": 764,
"end": 767,
"loc": {
"start": {
"line": 23,
"column": 19
},
"end": {
"line": 23,
"column": 22
}
},
"name": "$el"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 768,
"end": 772,
"loc": {
"start": {
"line": 23,
"column": 23
},
"end": {
"line": 23,
"column": 27
}
},
"name": "find"
},
"computed": false
},
"arguments": [
{
"type": "Literal",
"start": 773,
"end": 796,
"loc": {
"start": {
"line": 23,
"column": 28
},
"end": {
"line": 23,
"column": 51
}
},
"value": ".js-cart-notification",
"rawValue": ".js-cart-notification",
"raw": "\".js-cart-notification\""
}
]
},
"kind": "init"
},
{
"type": "Property",
"start": 805,
"end": 838,
"loc": {
"start": {
"line": 24,
"column": 6
},
"end": {
"line": 24,
"column": 39
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 805,
"end": 812,
"loc": {
"start": {
"line": 24,
"column": 6
},
"end": {
"line": 24,
"column": 13
}
},
"name": "content"
},
"value": {
"type": "MemberExpression",
"start": 814,
"end": 838,
"loc": {
"start": {
"line": 24,
"column": 15
},
"end": {
"line": 24,
"column": 39
}
},
"object": {
"type": "MemberExpression",
"start": 814,
"end": 824,
"loc": {
"start": {
"line": 24,
"column": 15
},
"end": {
"line": 24,
"column": 25
}
},
"object": {
"type": "ThisExpression",
"start": 814,
"end": 818,
"loc": {
"start": {
"line": 24,
"column": 15
},
"end": {
"line": 24,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"start": 819,
"end": 824,
"loc": {
"start": {
"line": 24,
"column": 20
},
"end": {
"line": 24,
"column": 25
}
},
"name": "state"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 825,
"end": 838,
"loc": {
"start": {
"line": 24,
"column": 26
},
"end": {
"line": 24,
"column": 39
}
},
"name": "cartItemCount"
},
"computed": false
},
"kind": "init"
},
{
"type": "Property",
"start": 846,
"end": 883,
"loc": {
"start": {
"line": 25,
"column": 6
},
"end": {
"line": 25,
"column": 43
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 846,
"end": 855,
"loc": {
"start": {
"line": 25,
"column": 6
},
"end": {
"line": 25,
"column": 15
}
},
"name": "className"
},
"value": {
"type": "Literal",
"start": 857,
"end": 883,
"loc": {
"start": {
"line": 25,
"column": 17
},
"end": {
"line": 25,
"column": 43
}
},
"value": "notification-badge--shop",
"rawValue": "notification-badge--shop",
"raw": "\"notification-badge--shop\""
},
"kind": "init"
}
]
}
]
}
}
},
{
"type": "ExpressionStatement",
"start": 897,
"end": 922,
"loc": {
"start": {
"line": 28,
"column": 4
},
"end": {
"line": 28,
"column": 29
}
},
"expression": {
"type": "AssignmentExpression",
"start": 897,
"end": 921,
"loc": {
"start": {
"line": 28,
"column": 4
},
"end": {
"line": 28,
"column": 28
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 897,
"end": 906,
"loc": {
"start": {
"line": 28,
"column": 4
},
"end": {
"line": 28,
"column": 13
}
},
"object": {
"type": "ThisExpression",
"start": 897,
"end": 901,
"loc": {
"start": {
"line": 28,
"column": 4
},
"end": {
"line": 2