rizzo-next
Version:
The next generation of Lonely Planet's style guide and pattern library.
1,596 lines • 74.6 kB
JSON
{
"type": "Program",
"start": 0,
"end": 564,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 20,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 34,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 34
}
},
"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": "Flamsteed"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 22,
"end": 33,
"loc": {
"start": {
"line": 1,
"column": 22
},
"end": {
"line": 1,
"column": 33
}
},
"value": "flamsteed",
"rawValue": "flamsteed",
"raw": "\"flamsteed\""
}
},
{
"type": "ImportDeclaration",
"start": 35,
"end": 83,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 48
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 42,
"end": 52,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 17
}
},
"local": {
"type": "Identifier",
"start": 42,
"end": 52,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 17
}
},
"name": "CookieUtil"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 58,
"end": 82,
"loc": {
"start": {
"line": 2,
"column": 23
},
"end": {
"line": 2,
"column": 47
}
},
"value": "../../core/cookie_util",
"rawValue": "../../core/cookie_util",
"raw": "\"../../core/cookie_util\""
}
},
{
"type": "ExpressionStatement",
"start": 85,
"end": 113,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 28
}
},
"expression": {
"type": "AssignmentExpression",
"start": 85,
"end": 112,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 27
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 85,
"end": 94,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 9
}
},
"object": {
"type": "Identifier",
"start": 85,
"end": 91,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 6
}
},
"name": "window"
},
"property": {
"type": "Identifier",
"start": 92,
"end": 94,
"loc": {
"start": {
"line": 4,
"column": 7
},
"end": {
"line": 4,
"column": 9
}
},
"name": "lp"
},
"computed": false
},
"right": {
"type": "LogicalExpression",
"start": 97,
"end": 112,
"loc": {
"start": {
"line": 4,
"column": 12
},
"end": {
"line": 4,
"column": 27
}
},
"left": {
"type": "MemberExpression",
"start": 97,
"end": 106,
"loc": {
"start": {
"line": 4,
"column": 12
},
"end": {
"line": 4,
"column": 21
}
},
"object": {
"type": "Identifier",
"start": 97,
"end": 103,
"loc": {
"start": {
"line": 4,
"column": 12
},
"end": {
"line": 4,
"column": 18
}
},
"name": "window"
},
"property": {
"type": "Identifier",
"start": 104,
"end": 106,
"loc": {
"start": {
"line": 4,
"column": 19
},
"end": {
"line": 4,
"column": 21
}
},
"name": "lp"
},
"computed": false
},
"operator": "||",
"right": {
"type": "ObjectExpression",
"start": 110,
"end": 112,
"loc": {
"start": {
"line": 4,
"column": 25
},
"end": {
"line": 4,
"column": 27
}
},
"properties": []
}
}
}
},
{
"type": "ExpressionStatement",
"start": 115,
"end": 375,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 11,
"column": 2
}
},
"expression": {
"type": "AssignmentExpression",
"start": 115,
"end": 374,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 11,
"column": 1
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 115,
"end": 127,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 6,
"column": 12
}
},
"object": {
"type": "MemberExpression",
"start": 115,
"end": 124,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 6,
"column": 9
}
},
"object": {
"type": "Identifier",
"start": 115,
"end": 121,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 6,
"column": 6
}
},
"name": "window"
},
"property": {
"type": "Identifier",
"start": 122,
"end": 124,
"loc": {
"start": {
"line": 6,
"column": 7
},
"end": {
"line": 6,
"column": 9
}
},
"name": "lp"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 125,
"end": 127,
"loc": {
"start": {
"line": 6,
"column": 10
},
"end": {
"line": 6,
"column": 12
}
},
"name": "fs"
},
"computed": false
},
"right": {
"type": "ObjectExpression",
"start": 130,
"end": 374,
"loc": {
"start": {
"line": 6,
"column": 15
},
"end": {
"line": 11,
"column": 1
}
},
"properties": [
{
"type": "Property",
"start": 134,
"end": 144,
"loc": {
"start": {
"line": 7,
"column": 2
},
"end": {
"line": 7,
"column": 12
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 134,
"end": 140,
"loc": {
"start": {
"line": 7,
"column": 2
},
"end": {
"line": 7,
"column": 8
}
},
"name": "buffer"
},
"value": {
"type": "ArrayExpression",
"start": 142,
"end": 144,
"loc": {
"start": {
"line": 7,
"column": 10
},
"end": {
"line": 7,
"column": 12
}
},
"elements": []
},
"kind": "init"
},
{
"type": "Property",
"start": 148,
"end": 205,
"loc": {
"start": {
"line": 8,
"column": 2
},
"end": {
"line": 8,
"column": 59
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 148,
"end": 151,
"loc": {
"start": {
"line": 8,
"column": 2
},
"end": {
"line": 8,
"column": 5
}
},
"name": "now"
},
"value": {
"type": "ArrowFunctionExpression",
"start": 153,
"end": 205,
"loc": {
"start": {
"line": 8,
"column": 7
},
"end": {
"line": 8,
"column": 59
}
},
"id": null,
"generator": false,
"expression": true,
"async": false,
"params": [],
"body": {
"type": "ConditionalExpression",
"start": 160,
"end": 204,
"loc": {
"start": {
"line": 8,
"column": 14
},
"end": {
"line": 8,
"column": 58
}
},
"test": {
"type": "MemberExpression",
"start": 160,
"end": 168,
"loc": {
"start": {
"line": 8,
"column": 14
},
"end": {
"line": 8,
"column": 22
}
},
"object": {
"type": "Identifier",
"start": 160,
"end": 164,
"loc": {
"start": {
"line": 8,
"column": 14
},
"end": {
"line": 8,
"column": 18
}
},
"name": "Date"
},
"property": {
"type": "Identifier",
"start": 165,
"end": 168,
"loc": {
"start": {
"line": 8,
"column": 19
},
"end": {
"line": 8,
"column": 22
}
},
"name": "now"
},
"computed": false
},
"consequent": {
"type": "CallExpression",
"start": 171,
"end": 181,
"loc": {
"start": {
"line": 8,
"column": 25
},
"end": {
"line": 8,
"column": 35
}
},
"callee": {
"type": "MemberExpression",
"start": 171,
"end": 179,
"loc": {
"start": {
"line": 8,
"column": 25
},
"end": {
"line": 8,
"column": 33
}
},
"object": {
"type": "Identifier",
"start": 171,
"end": 175,
"loc": {
"start": {
"line": 8,
"column": 25
},
"end": {
"line": 8,
"column": 29
}
},
"name": "Date"
},
"property": {
"type": "Identifier",
"start": 176,
"end": 179,
"loc": {
"start": {
"line": 8,
"column": 30
},
"end": {
"line": 8,
"column": 33
}
},
"name": "now"
},
"computed": false
},
"arguments": []
},
"alternate": {
"type": "CallExpression",
"start": 184,
"end": 204,
"loc": {
"start": {
"line": 8,
"column": 38
},
"end": {
"line": 8,
"column": 58
}
},
"callee": {
"type": "MemberExpression",
"start": 184,
"end": 202,
"loc": {
"start": {
"line": 8,
"column": 38
},
"end": {
"line": 8,
"column": 56
}
},
"object": {
"type": "NewExpression",
"start": 184,
"end": 194,
"loc": {
"start": {
"line": 8,
"column": 38
},
"end": {
"line": 8,
"column": 48
}
},
"callee": {
"type": "Identifier",
"start": 188,
"end": 192,
"loc": {
"start": {
"line": 8,
"column": 42
},
"end": {
"line": 8,
"column": 46
}
},
"name": "Date"
},
"arguments": []
},
"property": {
"type": "Identifier",
"start": 195,
"end": 202,
"loc": {
"start": {
"line": 8,
"column": 49
},
"end": {
"line": 8,
"column": 56
}
},
"name": "getTime"
},
"computed": false
},
"arguments": []
},
"parenthesizedExpression": true
}
},
"kind": "init"
},
{
"type": "Property",
"start": 209,
"end": 262,
"loc": {
"start": {
"line": 9,
"column": 2
},
"end": {
"line": 9,
"column": 55
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 209,
"end": 212,
"loc": {
"start": {
"line": 9,
"column": 2
},
"end": {
"line": 9,
"column": 5
}
},
"name": "log"
},
"value": {
"type": "ArrowFunctionExpression",
"start": 214,
"end": 262,
"loc": {
"start": {
"line": 9,
"column": 7
},
"end": {
"line": 9,
"column": 55
}
},
"id": null,
"generator": false,
"expression": true,
"async": false,
"params": [
{
"type": "Identifier",
"start": 215,
"end": 216,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 9
}
},
"name": "x"
}
],
"body": {
"type": "CallExpression",
"start": 221,
"end": 262,
"loc": {
"start": {
"line": 9,
"column": 14
},
"end": {
"line": 9,
"column": 55
}
},
"callee": {
"type": "MemberExpression",
"start": 221,
"end": 237,
"loc": {
"start": {
"line": 9,
"column": 14
},
"end": {
"line": 9,
"column": 30
}
},
"object": {
"type": "MemberExpression",
"start": 221,
"end": 232,
"loc": {
"start": {
"line": 9,
"column": 14
},
"end": {
"line": 9,
"column": 25
}
},
"object": {
"type": "ThisExpression",
"start": 221,
"end": 225,
"loc": {
"start": {
"line": 9,
"column": 14
},
"end": {
"line": 9,
"column": 18
}
}
},
"property": {
"type": "Identifier",
"start": 226,
"end": 232,
"loc": {
"start": {
"line": 9,
"column": 19
},
"end": {
"line": 9,
"column": 25
}
},
"name": "buffer"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 233,
"end": 237,
"loc": {
"start": {
"line": 9,
"column": 26
},
"end": {
"line": 9,
"column": 30
}
},
"name": "push"
},
"computed": false
},
"arguments": [
{
"type": "ObjectExpression",
"start": 238,
"end": 261,
"loc": {
"start": {
"line": 9,
"column": 31
},
"end": {
"line": 9,
"column": 54
}
},
"properties": [
{
"type": "Property",
"start": 240,
"end": 244,
"loc": {
"start": {
"line": 9,
"column": 33
},
"end": {
"line": 9,
"column": 37
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 240,
"end": 241,
"loc": {
"start": {
"line": 9,
"column": 33
},
"end": {
"line": 9,
"column": 34
}
},
"name": "e"
},
"value": {
"type": "Identifier",
"start": 243,
"end": 244,
"loc": {
"start": {
"line": 9,
"column": 36
},
"end": {
"line": 9,
"column": 37
}
},
"name": "x"
},
"kind": "init"
},
{
"type": "Property",
"start": 246,
"end": 259,
"loc": {
"start": {
"line": 9,
"column": 39
},
"end": {
"line": 9,
"column": 52
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 246,
"end": 247,
"loc": {
"start": {
"line": 9,
"column": 39
},
"end": {
"line": 9,
"column": 40
}
},
"name": "t"
},
"value": {
"type": "CallExpression",
"start": 249,
"end": 259,
"loc": {
"start": {
"line": 9,
"column": 42
},
"end": {
"line": 9,
"column": 52
}
},
"callee": {
"type": "MemberExpression",
"start": 249,
"end": 257,
"loc": {
"start": {
"line": 9,
"column": 42
},
"end": {
"line": 9,
"column": 50
}
},
"object": {
"type": "ThisExpression",
"start": 249,
"end": 253,
"loc": {
"start": {
"line": 9,
"column": 42
},
"end": {
"line": 9,
"column": 46
}
}
},
"property": {
"type": "Identifier",
"start": 254,
"end": 257,
"loc": {
"start": {
"line": 9,
"column": 47
},
"end": {
"line": 9,
"column": 50
}
},
"name": "now"
},
"computed": false
},
"arguments": []
},
"kind": "init"
}
]
}
]
}
},
"kind": "init"
},
{
"type": "Property",
"start": 266,
"end": 372,
"loc": {
"start": {
"line": 10,
"column": 2
},
"end": {
"line": 10,
"column": 108
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 266,
"end": 270,
"loc": {
"start": {
"line": 10,
"column": 2
},
"end": {
"line": 10,
"column": 6
}
},
"name": "time"
},
"value": {
"type": "ArrowFunctionExpression",
"start": 272,
"end": 372,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 108
}
},
"id": null,
"generator": false,
"expression": true,
"async": false,
"params": [
{
"type": "Identifier",
"start": 273,
"end": 274,
"loc": {
"start": {
"line": 10,
"column": 9
},
"end": {
"line": 10,
"column": 10
}
},
"name": "x"
}
],
"body": {
"type": "LogicalExpression",
"start": 279,
"end": 372,
"loc": {
"start": {
"line": 10,
"column": 15
},
"end": {
"line": 10,
"column": 108
}
},
"left": {
"type": "LogicalExpression",
"start": 279,
"end": 327,
"loc": {
"start": {
"line": 10,
"column": 15
},
"end": {
"line": 10,
"column": 63
}
},
"left": {
"type": "UnaryExpression",
"start": 279,
"end": 299,
"loc": {
"start": {
"line": 10,
"column": 15
},
"end": {
"line": 10,
"column": 35
}
},
"operator": "!",
"prefix": true,
"argument": {
"type": "UnaryExpression",
"start": 280,
"end": 299,
"loc": {
"start": {
"line": 10,
"column": 16
},
"end": {
"line": 10,
"column": 35
}
},
"operator": "!",
"prefix": true,
"argument": {
"type": "MemberExpression",
"start": 281,
"end": 299,
"loc": {
"start": {
"line": 10,
"column": 17
},
"end": {
"line": 10,
"column": 35
}
},
"object": {
"type": "Identifier",
"start": 281,
"end": 287,
"loc": {
"start": {
"line": 10,
"column": 17
},
"end": {
"line": 10,
"column": 23
}
},
"name": "window"
},
"property": {
"type": "Identifier",
"start": 288,
"end": 299,
"loc": {
"start": {
"line": 10,
"column": 24
},
"end": {
"line": 10,
"column": 35
}
},
"name": "performance"
},
"computed": false
}
}
},
"operator": "&&",
"right": {
"type": "UnaryExpression",
"start": 303,
"end": 327,
"loc": {
"start": {
"line": 10,
"column": 39
},
"end": {
"line": 10,
"column": 63
}
},
"operator": "!",
"prefix": true,
"argument": {
"type": "UnaryExpression",
"start": 304,
"end": 327,
"loc": {
"start": {
"line": 10,
"column": 40
},
"end": {
"line": 10,
"column": 63
}
},
"operator": "!",
"prefix": true,
"argument": {
"type": "MemberExpression",
"start": 305,
"end": 327,
"loc": {
"start": {
"line": 10,
"column": 41
},
"end": {
"line": 10,
"column": 63
}
},
"object": {
"type": "MemberExpression",
"start": 305,
"end": 323,
"loc": {
"start": {
"line": 10,
"column": 41
},
"end": {
"line": 10,
"column": 59
}
},
"object": {
"type": "Identifier",
"start": 305,
"end": 311,
"loc": {
"start": {
"line": 10,
"column": 41
},
"end": {
"line": 10,
"column": 47
}
},
"name": "window"
},
"property": {
"type": "Identifier",
"start": 312,
"end": 323,
"loc": {
"start": {
"line": 10,
"column": 48
},
"end": {
"line": 10,
"column": 59
}
},
"name": "performance"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 324,
"end": 327,
"loc": {
"start": {
"line": 10,
"column": 60
},
"end": {
"line": 10,
"column": 63
}
},
"name": "now"
},
"computed": false
}
}
}
},
"operator": "&&",
"right": {
"type": "CallExpression",
"start": 331,
"end": 372,
"loc": {
"start": {
"line": 10,
"column": 67
},
"end": {
"line": 10,
"column": 108
}
},
"callee": {
"type": "MemberExpression",
"start": 331,
"end": 347,
"loc": {
"start": {
"line": 10,
"column": 67
},
"end": {
"line": 10,
"column": 83
}
},
"object": {
"type": "MemberExpression",
"start": 331,
"end": 342,
"loc": {
"start": {
"line": 10,
"column": 67
},
"end": {
"line": 10,
"column": 78
}
},
"object": {
"type": "ThisExpression",
"start": 331,
"end": 335,
"loc": {
"start": {
"line": 10,
"column": 67
},
"end": {
"line": 10,
"column": 71
}
}
},
"property": {
"type": "Identifier",
"start": 336,
"end": 342,
"loc": {
"start": {
"line": 10,
"column": 72
},
"end": {
"line": 10,
"column": 78
}
},
"name": "buffer"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 343,
"end": 347,
"loc": {
"start": {
"line": 10,
"column": 79
},
"end": {
"line": 10,
"column": 83
}
},
"name": "push"
},
"computed": false
},
"arguments": [
{
"type": "ObjectExpression",
"start": 349,
"end": 371,
"loc": {
"start": {
"line": 10,
"column": 85
},
"end": {
"line": 10,
"column": 107
}
},
"properties": [
{
"type": "Property",
"start": 351,
"end": 355,
"loc": {
"start": {
"line": 10,
"column": 87
},
"end": {
"line": 10,
"column": 91
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 351,
"end": 352,
"loc": {
"start": {
"line": 10,
"column": 87
},
"end": {
"line": 10,
"column": 88
}
},
"name": "e"
},
"value": {
"type": "Identifier",
"start": 354,
"end": 355,
"loc": {
"start": {
"line": 10,
"column": 90
},
"end": {
"line": 10,
"column": 91
}
},
"name": "x"
},
"kind": "init"
},
{
"type": "Property",
"start": 357,
"end": 370,
"loc": {
"start": {
"line": 10,
"column": 93
},
"end": {
"line": 10,
"column": 106
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 357,
"end": 358,
"loc": {
"start": {
"line": 10,
"column": 93
},
"end": {
"line": 10,
"column": 94
}
},
"name": "t"
},
"value": {
"type": "CallExpression",
"start": 360,
"end": 370,
"loc": {
"start": {
"line": 10,
"column": 96
},
"end": {
"line": 10,
"column": 106
}
},
"callee": {
"type": "MemberExpression",
"start": 360,
"end": 368,
"loc": {
"start": {
"line": 10,
"column": 96
},
"end": {
"line": 10,
"c