rizzo-next
Version:
The next generation of Lonely Planet's style guide and pattern library.
1,512 lines • 97 kB
JSON
{
"type": "Program",
"start": 0,
"end": 532,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 23,
"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": 75,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 30
}
},
"specifiers": [],
"source": {
"type": "Literal",
"start": 52,
"end": 74,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 29
}
},
"value": "./_notification.scss",
"rawValue": "./_notification.scss",
"raw": "\"./_notification.scss\""
}
},
{
"type": "Identifier",
"start": 77,
"end": 501,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 20,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 83,
"end": 95,
"loc": {
"start": {
"line": 4,
"column": 6
},
"end": {
"line": 4,
"column": 18
}
},
"name": "Notification"
},
"superClass": {
"type": "Identifier",
"start": 104,
"end": 113,
"loc": {
"start": {
"line": 4,
"column": 27
},
"end": {
"line": 4,
"column": 36
}
},
"name": "Component"
},
"body": {
"type": "ClassBody",
"start": 114,
"end": 501,
"loc": {
"start": {
"line": 4,
"column": 37
},
"end": {
"line": 20,
"column": 1
}
},
"body": [
{
"type": "MethodDefinition",
"start": 118,
"end": 323,
"loc": {
"start": {
"line": 5,
"column": 2
},
"end": {
"line": 11,
"column": 3
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 118,
"end": 128,
"loc": {
"start": {
"line": 5,
"column": 2
},
"end": {
"line": 5,
"column": 12
}
},
"name": "initialize"
},
"static": false,
"kind": "method",
"value": {
"type": "FunctionExpression",
"start": 128,
"end": 323,
"loc": {
"start": {
"line": 5,
"column": 12
},
"end": {
"line": 11,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 129,
"end": 136,
"loc": {
"start": {
"line": 5,
"column": 13
},
"end": {
"line": 5,
"column": 20
}
},
"name": "options"
}
],
"body": {
"type": "BlockStatement",
"start": 138,
"end": 323,
"loc": {
"start": {
"line": 5,
"column": 22
},
"end": {
"line": 11,
"column": 3
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 144,
"end": 175,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 35
}
},
"expression": {
"type": "AssignmentExpression",
"start": 144,
"end": 174,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 34
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 144,
"end": 156,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 16
}
},
"object": {
"type": "ThisExpression",
"start": 144,
"end": 148,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 149,
"end": 156,
"loc": {
"start": {
"line": 6,
"column": 9
},
"end": {
"line": 6,
"column": 16
}
},
"name": "content"
},
"computed": false
},
"right": {
"type": "MemberExpression",
"start": 159,
"end": 174,
"loc": {
"start": {
"line": 6,
"column": 19
},
"end": {
"line": 6,
"column": 34
}
},
"object": {
"type": "Identifier",
"start": 159,
"end": 166,
"loc": {
"start": {
"line": 6,
"column": 19
},
"end": {
"line": 6,
"column": 26
}
},
"name": "options"
},
"property": {
"type": "Identifier",
"start": 167,
"end": 174,
"loc": {
"start": {
"line": 6,
"column": 27
},
"end": {
"line": 6,
"column": 34
}
},
"name": "content"
},
"computed": false
}
}
},
{
"type": "ExpressionStatement",
"start": 180,
"end": 209,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 33
}
},
"expression": {
"type": "AssignmentExpression",
"start": 180,
"end": 208,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 32
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 180,
"end": 191,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 15
}
},
"object": {
"type": "ThisExpression",
"start": 180,
"end": 184,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 185,
"end": 191,
"loc": {
"start": {
"line": 7,
"column": 9
},
"end": {
"line": 7,
"column": 15
}
},
"name": "target"
},
"computed": false
},
"right": {
"type": "MemberExpression",
"start": 194,
"end": 208,
"loc": {
"start": {
"line": 7,
"column": 18
},
"end": {
"line": 7,
"column": 32
}
},
"object": {
"type": "Identifier",
"start": 194,
"end": 201,
"loc": {
"start": {
"line": 7,
"column": 18
},
"end": {
"line": 7,
"column": 25
}
},
"name": "options"
},
"property": {
"type": "Identifier",
"start": 202,
"end": 208,
"loc": {
"start": {
"line": 7,
"column": 26
},
"end": {
"line": 7,
"column": 32
}
},
"name": "target"
},
"computed": false
}
}
},
{
"type": "ExpressionStatement",
"start": 214,
"end": 249,
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"column": 39
}
},
"expression": {
"type": "AssignmentExpression",
"start": 214,
"end": 248,
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"column": 38
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 214,
"end": 228,
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"column": 18
}
},
"object": {
"type": "ThisExpression",
"start": 214,
"end": 218,
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 219,
"end": 228,
"loc": {
"start": {
"line": 8,
"column": 9
},
"end": {
"line": 8,
"column": 18
}
},
"name": "className"
},
"computed": false
},
"right": {
"type": "MemberExpression",
"start": 231,
"end": 248,
"loc": {
"start": {
"line": 8,
"column": 21
},
"end": {
"line": 8,
"column": 38
}
},
"object": {
"type": "Identifier",
"start": 231,
"end": 238,
"loc": {
"start": {
"line": 8,
"column": 21
},
"end": {
"line": 8,
"column": 28
}
},
"name": "options"
},
"property": {
"type": "Identifier",
"start": 239,
"end": 248,
"loc": {
"start": {
"line": 8,
"column": 29
},
"end": {
"line": 8,
"column": 38
}
},
"name": "className"
},
"computed": false
}
}
},
{
"type": "ExpressionStatement",
"start": 254,
"end": 300,
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 50
}
},
"expression": {
"type": "AssignmentExpression",
"start": 254,
"end": 299,
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 49
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 254,
"end": 267,
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 17
}
},
"object": {
"type": "ThisExpression",
"start": 254,
"end": 258,
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 259,
"end": 267,
"loc": {
"start": {
"line": 9,
"column": 9
},
"end": {
"line": 9,
"column": 17
}
},
"name": "template"
},
"computed": false
},
"right": {
"type": "CallExpression",
"start": 270,
"end": 299,
"loc": {
"start": {
"line": 9,
"column": 20
},
"end": {
"line": 9,
"column": 49
}
},
"callee": {
"type": "Identifier",
"start": 270,
"end": 277,
"loc": {
"start": {
"line": 9,
"column": 20
},
"end": {
"line": 9,
"column": 27
}
},
"name": "require"
},
"arguments": [
{
"type": "Literal",
"start": 278,
"end": 298,
"loc": {
"start": {
"line": 9,
"column": 28
},
"end": {
"line": 9,
"column": 48
}
},
"value": "./notification.hbs",
"rawValue": "./notification.hbs",
"raw": "\"./notification.hbs\""
}
]
}
}
},
{
"type": "ExpressionStatement",
"start": 305,
"end": 319,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 10,
"column": 18
}
},
"expression": {
"type": "CallExpression",
"start": 305,
"end": 318,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 10,
"column": 17
}
},
"callee": {
"type": "MemberExpression",
"start": 305,
"end": 316,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 10,
"column": 15
}
},
"object": {
"type": "ThisExpression",
"start": 305,
"end": 309,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 10,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 310,
"end": 316,
"loc": {
"start": {
"line": 10,
"column": 9
},
"end": {
"line": 10,
"column": 15
}
},
"name": "render"
},
"computed": false
},
"arguments": []
}
}
]
}
}
},
{
"type": "MethodDefinition",
"start": 326,
"end": 499,
"loc": {
"start": {
"line": 12,
"column": 2
},
"end": {
"line": 19,
"column": 3
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 326,
"end": 332,
"loc": {
"start": {
"line": 12,
"column": 2
},
"end": {
"line": 12,
"column": 8
}
},
"name": "render"
},
"static": false,
"kind": "method",
"value": {
"type": "FunctionExpression",
"start": 332,
"end": 499,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 19,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 335,
"end": 499,
"loc": {
"start": {
"line": 12,
"column": 11
},
"end": {
"line": 19,
"column": 3
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 341,
"end": 440,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 16,
"column": 7
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 345,
"end": 439,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 16,
"column": 6
}
},
"id": {
"type": "Identifier",
"start": 345,
"end": 357,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 20
}
},
"name": "notification"
},
"init": {
"type": "CallExpression",
"start": 360,
"end": 439,
"loc": {
"start": {
"line": 13,
"column": 23
},
"end": {
"line": 16,
"column": 6
}
},
"callee": {
"type": "MemberExpression",
"start": 360,
"end": 370,
"loc": {
"start": {
"line": 13,
"column": 23
},
"end": {
"line": 13,
"column": 33
}
},
"object": {
"type": "ThisExpression",
"start": 360,
"end": 364,
"loc": {
"start": {
"line": 13,
"column": 23
},
"end": {
"line": 13,
"column": 27
}
}
},
"property": {
"type": "Identifier",
"start": 365,
"end": 370,
"loc": {
"start": {
"line": 13,
"column": 28
},
"end": {
"line": 13,
"column": 33
}
},
"name": "build"
},
"computed": false
},
"arguments": [
{
"type": "ObjectExpression",
"start": 371,
"end": 438,
"loc": {
"start": {
"line": 13,
"column": 34
},
"end": {
"line": 16,
"column": 5
}
},
"properties": [
{
"type": "Property",
"start": 379,
"end": 399,
"loc": {
"start": {
"line": 14,
"column": 6
},
"end": {
"line": 14,
"column": 26
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 379,
"end": 385,
"loc": {
"start": {
"line": 14,
"column": 6
},
"end": {
"line": 14,
"column": 12
}
},
"name": "number"
},
"value": {
"type": "MemberExpression",
"start": 387,
"end": 399,
"loc": {
"start": {
"line": 14,
"column": 14
},
"end": {
"line": 14,
"column": 26
}
},
"object": {
"type": "ThisExpression",
"start": 387,
"end": 391,
"loc": {
"start": {
"line": 14,
"column": 14
},
"end": {
"line": 14,
"column": 18
}
}
},
"property": {
"type": "Identifier",
"start": 392,
"end": 399,
"loc": {
"start": {
"line": 14,
"column": 19
},
"end": {
"line": 14,
"column": 26
}
},
"name": "content"
},
"computed": false
},
"kind": "init"
},
{
"type": "Property",
"start": 407,
"end": 432,
"loc": {
"start": {
"line": 15,
"column": 6
},
"end": {
"line": 15,
"column": 31
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 407,
"end": 416,
"loc": {
"start": {
"line": 15,
"column": 6
},
"end": {
"line": 15,
"column": 15
}
},
"name": "className"
},
"value": {
"type": "MemberExpression",
"start": 418,
"end": 432,
"loc": {
"start": {
"line": 15,
"column": 17
},
"end": {
"line": 15,
"column": 31
}
},
"object": {
"type": "ThisExpression",
"start": 418,
"end": 422,
"loc": {
"start": {
"line": 15,
"column": 17
},
"end": {
"line": 15,
"column": 21
}
}
},
"property": {
"type": "Identifier",
"start": 423,
"end": 432,
"loc": {
"start": {
"line": 15,
"column": 22
},
"end": {
"line": 15,
"column": 31
}
},
"name": "className"
},
"computed": false
},
"kind": "init"
}
]
}
]
}
}
],
"kind": "let"
},
{
"type": "ExpressionStatement",
"start": 445,
"end": 478,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 37
}
},
"expression": {
"type": "CallExpression",
"start": 445,
"end": 477,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 36
}
},
"callee": {
"type": "MemberExpression",
"start": 445,
"end": 463,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 22
}
},
"object": {
"type": "MemberExpression",
"start": 445,
"end": 456,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 15
}
},
"object": {
"type": "ThisExpression",
"start": 445,
"end": 449,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 450,
"end": 456,
"loc": {
"start": {
"line": 17,
"column": 9
},
"end": {
"line": 17,
"column": 15
}
},
"name": "target"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 457,
"end": 463,
"loc": {
"start": {
"line": 17,
"column": 16
},
"end": {
"line": 17,
"column": 22
}
},
"name": "append"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 464,
"end": 476,
"loc": {
"start": {
"line": 17,
"column": 23
},
"end": {
"line": 17,
"column": 35
}
},
"name": "notification"
}
]
}
},
{
"type": "ReturnStatement",
"start": 483,
"end": 495,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 16
}
},
"argument": {
"type": "ThisExpression",
"start": 490,
"end": 494,
"loc": {
"start": {
"line": 18,
"column": 11
},
"end": {
"line": 18,
"column": 15
}
}
}
}
]
}
}
}
]
},
"name": "_",
"leadingComments": [],
"trailingComments": []
},
{
"type": "Identifier",
"start": 503,
"end": 531,
"loc": {
"start": {
"line": 22,
"column": 0
},
"end": {
"line": 22,
"column": 28
}
},
"declaration": {
"type": "Identifier",
"start": 518,
"end": 530,
"loc": {
"start": {
"line": 22,
"column": 15
},
"end": {
"line": 22,
"column": 27
}
},
"name": "Notification"
},
"name": "_",
"leadingComments": [],
"trailingComments": []
},
{
"type": "ExportDefaultDeclaration",
"start": 503,
"end": 531,
"loc": {
"start": {
"line": 22,
"column": 0
},
"end": {
"line": 22,
"column": 28
}
},
"declaration": {
"type": "ClassDeclaration",
"start": 77,
"end": 501,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 20,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 83,
"end": 95,
"loc": {
"start": {
"line": 4,
"column": 6
},
"end": {
"line": 4,
"column": 18
}
},
"name": "Notification"
},
"superClass": {
"type": "Identifier",
"start": 104,
"end": 113,
"loc": {
"start": {
"line": 4,
"column": 27
},
"end": {
"line": 4,
"column": 36
}
},
"name": "Component"
},
"body": {
"type": "ClassBody",
"start": 114,
"end": 501,
"loc": {
"start": {
"line": 4,
"column": 37
},
"end": {
"line": 20,
"column": 1
}
},
"body": [
{
"type": "MethodDefinition",
"start": 118,
"end": 323,
"loc": {
"start": {
"line": 5,
"c