soocrate-core
Version:
this is the core of soocrate application
1,223 lines • 715 kB
JSON
{
"type": "File",
"start": 0,
"end": 4600,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 115,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 4600,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 115,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "Identifier",
"start": 2,
"end": 624,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 20,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 11,
"end": 23,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 21
},
"identifierName": "StatesHeader"
},
"name": "StatesHeader"
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 24,
"end": 29,
"loc": {
"start": {
"line": 2,
"column": 22
},
"end": {
"line": 2,
"column": 27
},
"identifierName": "model"
},
"name": "model"
},
{
"type": "Identifier",
"start": 31,
"end": 40,
"loc": {
"start": {
"line": 2,
"column": 29
},
"end": {
"line": 2,
"column": 38
},
"identifierName": "container"
},
"name": "container"
}
],
"body": {
"type": "BlockStatement",
"start": 41,
"end": 624,
"loc": {
"start": {
"line": 2,
"column": 39
},
"end": {
"line": 20,
"column": 1
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 48,
"end": 67,
"loc": {
"start": {
"line": 3,
"column": 4
},
"end": {
"line": 3,
"column": 23
}
},
"expression": {
"type": "AssignmentExpression",
"start": 48,
"end": 66,
"loc": {
"start": {
"line": 3,
"column": 4
},
"end": {
"line": 3,
"column": 22
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 48,
"end": 58,
"loc": {
"start": {
"line": 3,
"column": 4
},
"end": {
"line": 3,
"column": 14
}
},
"object": {
"type": "ThisExpression",
"start": 48,
"end": 52,
"loc": {
"start": {
"line": 3,
"column": 4
},
"end": {
"line": 3,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 53,
"end": 58,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 14
},
"identifierName": "model"
},
"name": "model"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 61,
"end": 66,
"loc": {
"start": {
"line": 3,
"column": 17
},
"end": {
"line": 3,
"column": 22
},
"identifierName": "model"
},
"name": "model"
}
}
},
{
"type": "ExpressionStatement",
"start": 79,
"end": 100,
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 5,
"column": 25
}
},
"expression": {
"type": "AssignmentExpression",
"start": 79,
"end": 99,
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 5,
"column": 24
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 79,
"end": 87,
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 5,
"column": 12
}
},
"object": {
"type": "ThisExpression",
"start": 79,
"end": 83,
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 5,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 84,
"end": 87,
"loc": {
"start": {
"line": 5,
"column": 9
},
"end": {
"line": 5,
"column": 12
},
"identifierName": "red"
},
"name": "red"
},
"computed": false
},
"right": {
"type": "StringLiteral",
"start": 90,
"end": 99,
"loc": {
"start": {
"line": 5,
"column": 15
},
"end": {
"line": 5,
"column": 24
}
},
"extra": {
"rawValue": "#cd2626",
"raw": "\"#cd2626\""
},
"value": "#cd2626"
}
}
},
{
"type": "ExpressionStatement",
"start": 106,
"end": 130,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 28
}
},
"expression": {
"type": "AssignmentExpression",
"start": 106,
"end": 129,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 27
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 106,
"end": 117,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 15
}
},
"object": {
"type": "ThisExpression",
"start": 106,
"end": 110,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 111,
"end": 117,
"loc": {
"start": {
"line": 6,
"column": 9
},
"end": {
"line": 6,
"column": 15
},
"identifierName": "yellow"
},
"name": "yellow"
},
"computed": false
},
"right": {
"type": "StringLiteral",
"start": 120,
"end": 129,
"loc": {
"start": {
"line": 6,
"column": 18
},
"end": {
"line": 6,
"column": 27
}
},
"extra": {
"rawValue": "#eead0e",
"raw": "\"#eead0e\""
},
"value": "#eead0e"
}
}
},
{
"type": "ExpressionStatement",
"start": 136,
"end": 159,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 27
}
},
"expression": {
"type": "AssignmentExpression",
"start": 136,
"end": 158,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 26
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 136,
"end": 146,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 14
}
},
"object": {
"type": "ThisExpression",
"start": 136,
"end": 140,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 141,
"end": 146,
"loc": {
"start": {
"line": 7,
"column": 9
},
"end": {
"line": 7,
"column": 14
},
"identifierName": "green"
},
"name": "green"
},
"computed": false
},
"right": {
"type": "StringLiteral",
"start": 149,
"end": 158,
"loc": {
"start": {
"line": 7,
"column": 17
},
"end": {
"line": 7,
"column": 26
}
},
"extra": {
"rawValue": "#228b22",
"raw": "\"#228b22\""
},
"value": "#228b22"
}
}
},
{
"type": "ExpressionStatement",
"start": 165,
"end": 187,
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"column": 26
}
},
"expression": {
"type": "AssignmentExpression",
"start": 165,
"end": 186,
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"column": 25
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 165,
"end": 174,
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"column": 13
}
},
"object": {
"type": "ThisExpression",
"start": 165,
"end": 169,
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 170,
"end": 174,
"loc": {
"start": {
"line": 8,
"column": 9
},
"end": {
"line": 8,
"column": 13
},
"identifierName": "blue"
},
"name": "blue"
},
"computed": false
},
"right": {
"type": "StringLiteral",
"start": 177,
"end": 186,
"loc": {
"start": {
"line": 8,
"column": 16
},
"end": {
"line": 8,
"column": 25
}
},
"extra": {
"rawValue": "#00BFFF",
"raw": "\"#00BFFF\""
},
"value": "#00BFFF"
}
}
},
{
"type": "ExpressionStatement",
"start": 199,
"end": 576,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 17,
"column": 16
}
},
"expression": {
"type": "AssignmentExpression",
"start": 199,
"end": 575,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 17,
"column": 15
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 199,
"end": 218,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 10,
"column": 23
}
},
"object": {
"type": "ThisExpression",
"start": 199,
"end": 203,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 10,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 204,
"end": 218,
"loc": {
"start": {
"line": 10,
"column": 9
},
"end": {
"line": 10,
"column": 23
},
"identifierName": "signalingState"
},
"name": "signalingState"
},
"computed": false
},
"right": {
"type": "CallExpression",
"start": 221,
"end": 575,
"loc": {
"start": {
"line": 10,
"column": 26
},
"end": {
"line": 17,
"column": 15
}
},
"callee": {
"type": "MemberExpression",
"start": 221,
"end": 573,
"loc": {
"start": {
"line": 10,
"column": 26
},
"end": {
"line": 17,
"column": 13
}
},
"object": {
"type": "CallExpression",
"start": 221,
"end": 558,
"loc": {
"start": {
"line": 10,
"column": 26
},
"end": {
"line": 16,
"column": 18
}
},
"callee": {
"type": "MemberExpression",
"start": 221,
"end": 556,
"loc": {
"start": {
"line": 10,
"column": 26
},
"end": {
"line": 16,
"column": 16
}
},
"object": {
"type": "CallExpression",
"start": 221,
"end": 538,
"loc": {
"start": {
"line": 10,
"column": 26
},
"end": {
"line": 15,
"column": 41
}
},
"callee": {
"type": "MemberExpression",
"start": 221,
"end": 510,
"loc": {
"start": {
"line": 10,
"column": 26
},
"end": {
"line": 15,
"column": 13
}
},
"object": {
"type": "CallExpression",
"start": 221,
"end": 495,
"loc": {
"start": {
"line": 10,
"column": 26
},
"end": {
"line": 14,
"column": 59
}
},
"callee": {
"type": "MemberExpression",
"start": 221,
"end": 475,
"loc": {
"start": {
"line": 10,
"column": 26
},
"end": {
"line": 14,
"column": 39
}
},
"object": {
"type": "CallExpression",
"start": 221,
"end": 470,
"loc": {
"start": {
"line": 10,
"column": 26
},
"end": {
"line": 14,
"column": 34
}
},
"callee": {
"type": "MemberExpression",
"start": 221,
"end": 449,
"loc": {
"start": {
"line": 10,
"column": 26
},
"end": {
"line": 14,
"column": 13
}
},
"object": {
"type": "CallExpression",
"start": 221,
"end": 434,
"loc": {
"start": {
"line": 10,
"column": 26
},
"end": {
"line": 13,
"column": 49
}
},
"callee": {
"type": "MemberExpression",
"start": 221,
"end": 398,
"loc": {
"start": {
"line": 10,
"column": 26
},
"end": {
"line": 13,
"column": 13
}
},
"object": {
"type": "CallExpression",
"start": 221,
"end": 383,
"loc": {
"start": {
"line": 10,
"column": 26
},
"end": {
"line": 12,
"column": 69
}
},
"callee": {
"type": "MemberExpression",
"start": 221,
"end": 357,
"loc": {
"start": {
"line": 10,
"column": 26
},
"end": {
"line": 12,
"column": 43
}
},
"object": {
"type": "CallExpression",
"start": 221,
"end": 352,
"loc": {
"start": {
"line": 10,
"column": 26
},
"end": {
"line": 12,
"column": 38
}
},
"callee": {
"type": "MemberExpression",
"start": 221,
"end": 327,
"loc": {
"start": {
"line": 10,
"column": 26
},
"end": {
"line": 12,
"column": 13
}
},
"object": {
"type": "CallExpression",
"start": 221,
"end": 312,
"loc": {
"start": {
"line": 10,
"column": 26
},
"end": {
"line": 11,
"column": 47
}
},
"callee": {
"type": "MemberExpression",
"start": 221,
"end": 282,
"loc": {
"start": {
"line": 10,
"column": 26
},
"end": {
"line": 11,
"column": 17
}
},
"object": {
"type": "CallExpression",
"start": 221,
"end": 263,
"loc": {
"start": {
"line": 10,
"column": 26
},
"end": {
"line": 10,
"column": 68
}
},
"callee": {
"type": "MemberExpression",
"start": 221,
"end": 243,
"loc": {
"start": {
"line": 10,
"column": 26
},
"end": {
"line": 10,
"column": 48
}
},
"object": {
"type": "CallExpression",
"start": 221,
"end": 234,
"loc": {
"start": {
"line": 10,
"column": 26
},
"end": {
"line": 10,
"column": 39
}
},
"callee": {
"type": "Identifier",
"start": 221,
"end": 227,
"loc": {
"start": {
"line": 10,
"column": 26
},
"end": {
"line": 10,
"column": 32
},
"identifierName": "jQuery"
},
"name": "jQuery"
},
"arguments": [
{
"type": "StringLiteral",
"start": 228,
"end": 233,
"loc": {
"start": {
"line": 10,
"column": 33
},
"end": {
"line": 10,
"column": 38
}
},
"extra": {
"rawValue": "<i>",
"raw": "'<i>'"
},
"value": "<i>"
}
]
},
"property": {
"type": "Identifier",
"start": 235,
"end": 243,
"loc": {
"start": {
"line": 10,
"column": 40
},
"end": {
"line": 10,
"column": 48
},
"identifierName": "appendTo"
},
"name": "appendTo"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 244,
"end": 262,
"loc": {
"start": {
"line": 10,
"column": 49
},
"end": {
"line": 10,
"column": 67
}
},
"extra": {
"rawValue": "#connectionState",
"raw": "\"#connectionState\""
},
"value": "#connectionState"
}
]
},
"property": {
"type": "Identifier",
"start": 274,
"end": 282,
"loc": {
"start": {
"line": 11,
"column": 9
},
"end": {
"line": 11,
"column": 17
},
"identifierName": "addClass"
},
"name": "addClass"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 283,
"end": 311,
"loc": {
"start": {
"line": 11,
"column": 18
},
"end": {
"line": 11,
"column": 46
}
},
"extra": {
"rawValue": "fa fa-circle-o-notch fa-2x",
"raw": "'fa fa-circle-o-notch fa-2x'"
},
"value": "fa fa-circle-o-notch fa-2x"
}
]
},
"property": {
"type": "Identifier",
"start": 323,
"end": 327,
"loc": {
"start": {
"line": 12,
"column": 9
},
"end": {
"line": 12,
"column": 13
},
"identifierName": "attr"
},
"name": "attr"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 328,
"end": 342,
"loc": {
"start": {
"line": 12,
"column": 14
},
"end": {
"line": 12,
"column": 28
}
},
"extra": {
"rawValue": "data-trigger",
"raw": "'data-trigger'"
},
"value": "data-trigger"
},
{
"type": "StringLiteral",
"start": 344,
"end": 351,
"loc": {
"start": {
"line": 12,
"column": 30
},
"end": {
"line": 12,
"column": 37
}
},
"extra": {
"rawValue": "hover",
"raw": "'hover'"
},
"value": "hover"
}
]
},
"property": {
"type": "Identifier",
"start": 353,
"end": 357,
"loc": {
"start": {
"line": 12,
"column": 39
},
"end": {
"line": 12,
"column": 43
},
"identifierName": "attr"
},
"name": "attr"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 358,
"end": 371,
"loc": {
"start": {
"line": 12,
"column": 44
},
"end": {
"line": 12,
"column": 57
}
},
"extra": {
"rawValue": "data-toggle",
"raw": "'data-toggle'"
},
"value": "data-toggle"
},
{
"type": "StringLiteral",
"start": 373,
"end": 382,
"loc": {
"start": {
"line": 12,
"column": 59
},
"end": {
"line": 12,
"column": 68
}
},
"extra": {
"rawValue": "popover",
"raw": "'popover'"
},
"value"