awv3
Version:
AWV client CAD framework
1,304 lines (1,303 loc) • 137 kB
JSON
{
"type": "Program",
"start": 0,
"end": 1109,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 33,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 40,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 40
}
},
"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": "jsonpatch"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 22,
"end": 39,
"loc": {
"start": {
"line": 1,
"column": 22
},
"end": {
"line": 1,
"column": 39
}
},
"value": "fast-json-patch",
"rawValue": "fast-json-patch",
"raw": "'fast-json-patch'"
}
},
{
"type": "ImportDeclaration",
"start": 42,
"end": 91,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 49
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 49,
"end": 57,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 15
}
},
"local": {
"type": "Identifier",
"start": 49,
"end": 57,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 15
}
},
"name": "SocketIO"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 63,
"end": 90,
"loc": {
"start": {
"line": 2,
"column": 21
},
"end": {
"line": 2,
"column": 48
}
},
"value": "../communication/socketio",
"rawValue": "../communication/socketio",
"raw": "'../communication/socketio'"
}
},
{
"type": "ExportDefaultDeclaration",
"start": 95,
"end": 1107,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 32,
"column": 1
}
},
"declaration": {
"type": "ClassDeclaration",
"start": 110,
"end": 1107,
"loc": {
"start": {
"line": 4,
"column": 15
},
"end": {
"line": 32,
"column": 1
}
},
"id": null,
"superClass": {
"type": "Identifier",
"start": 124,
"end": 132,
"loc": {
"start": {
"line": 4,
"column": 29
},
"end": {
"line": 4,
"column": 37
}
},
"name": "SocketIO"
},
"body": {
"type": "ClassBody",
"start": 133,
"end": 1107,
"loc": {
"start": {
"line": 4,
"column": 38
},
"end": {
"line": 32,
"column": 1
}
},
"body": [
{
"type": "MethodDefinition",
"start": 140,
"end": 1104,
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 31,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 140,
"end": 151,
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 5,
"column": 15
}
},
"name": "constructor"
},
"static": false,
"kind": "constructor",
"value": {
"type": "FunctionExpression",
"start": 151,
"end": 1104,
"loc": {
"start": {
"line": 5,
"column": 15
},
"end": {
"line": 31,
"column": 5
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "AssignmentPattern",
"start": 152,
"end": 180,
"loc": {
"start": {
"line": 5,
"column": 16
},
"end": {
"line": 5,
"column": 44
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 152,
"end": 157,
"loc": {
"start": {
"line": 5,
"column": 16
},
"end": {
"line": 5,
"column": 21
}
},
"name": "types"
},
"right": {
"type": "ArrayExpression",
"start": 160,
"end": 180,
"loc": {
"start": {
"line": 5,
"column": 24
},
"end": {
"line": 5,
"column": 44
}
},
"elements": [
{
"type": "Literal",
"start": 161,
"end": 168,
"loc": {
"start": {
"line": 5,
"column": 25
},
"end": {
"line": 5,
"column": 32
}
},
"value": "patch",
"rawValue": "patch",
"raw": "'patch'"
},
{
"type": "Literal",
"start": 170,
"end": 179,
"loc": {
"start": {
"line": 5,
"column": 34
},
"end": {
"line": 5,
"column": 43
}
},
"value": "message",
"rawValue": "message",
"raw": "'message'"
}
]
}
}
],
"body": {
"type": "BlockStatement",
"start": 182,
"end": 1104,
"loc": {
"start": {
"line": 5,
"column": 46
},
"end": {
"line": 31,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 193,
"end": 233,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 48
}
},
"expression": {
"type": "CallExpression",
"start": 193,
"end": 232,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 47
}
},
"callee": {
"type": "Super",
"start": 193,
"end": 198,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 13
}
}
},
"arguments": [
{
"type": "ObjectExpression",
"start": 199,
"end": 231,
"loc": {
"start": {
"line": 6,
"column": 14
},
"end": {
"line": 6,
"column": 46
}
},
"properties": [
{
"type": "Property",
"start": 201,
"end": 212,
"loc": {
"start": {
"line": 6,
"column": 16
},
"end": {
"line": 6,
"column": 27
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 201,
"end": 206,
"loc": {
"start": {
"line": 6,
"column": 16
},
"end": {
"line": 6,
"column": 21
}
},
"name": "debug"
},
"value": {
"type": "Literal",
"start": 208,
"end": 212,
"loc": {
"start": {
"line": 6,
"column": 23
},
"end": {
"line": 6,
"column": 27
}
},
"value": true,
"rawValue": true,
"raw": "true"
},
"kind": "init"
},
{
"type": "Property",
"start": 214,
"end": 229,
"loc": {
"start": {
"line": 6,
"column": 29
},
"end": {
"line": 6,
"column": 44
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 214,
"end": 225,
"loc": {
"start": {
"line": 6,
"column": 29
},
"end": {
"line": 6,
"column": 40
}
},
"name": "credentials"
},
"value": {
"type": "ArrayExpression",
"start": 227,
"end": 229,
"loc": {
"start": {
"line": 6,
"column": 42
},
"end": {
"line": 6,
"column": 44
}
},
"elements": []
},
"kind": "init"
}
]
}
]
}
},
{
"type": "ExpressionStatement",
"start": 245,
"end": 264,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 27
}
},
"expression": {
"type": "AssignmentExpression",
"start": 245,
"end": 263,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 26
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 245,
"end": 258,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 245,
"end": 249,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 250,
"end": 258,
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 8,
"column": 21
}
},
"name": "messages"
},
"computed": false
},
"right": {
"type": "ArrayExpression",
"start": 261,
"end": 263,
"loc": {
"start": {
"line": 8,
"column": 24
},
"end": {
"line": 8,
"column": 26
}
},
"elements": []
}
}
},
{
"type": "ExpressionStatement",
"start": 274,
"end": 588,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 18,
"column": 10
}
},
"expression": {
"type": "AssignmentExpression",
"start": 274,
"end": 587,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 18,
"column": 9
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 274,
"end": 284,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 18
}
},
"object": {
"type": "ThisExpression",
"start": 274,
"end": 278,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 279,
"end": 284,
"loc": {
"start": {
"line": 9,
"column": 13
},
"end": {
"line": 9,
"column": 18
}
},
"name": "state"
},
"computed": false
},
"right": {
"type": "ObjectExpression",
"start": 287,
"end": 587,
"loc": {
"start": {
"line": 9,
"column": 21
},
"end": {
"line": 18,
"column": 9
}
},
"properties": [
{
"type": "Property",
"start": 302,
"end": 316,
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 26
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 302,
"end": 306,
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 16
}
},
"name": "type"
},
"value": {
"type": "Literal",
"start": 308,
"end": 316,
"loc": {
"start": {
"line": 10,
"column": 18
},
"end": {
"line": 10,
"column": 26
}
},
"value": "system",
"rawValue": "system",
"raw": "'system'"
},
"kind": "init"
},
{
"type": "Property",
"start": 331,
"end": 342,
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 23
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 331,
"end": 336,
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 17
}
},
"name": "alive"
},
"value": {
"type": "Literal",
"start": 338,
"end": 342,
"loc": {
"start": {
"line": 11,
"column": 19
},
"end": {
"line": 11,
"column": 23
}
},
"value": true,
"rawValue": true,
"raw": "true"
},
"kind": "init"
},
{
"type": "Property",
"start": 357,
"end": 367,
"loc": {
"start": {
"line": 12,
"column": 12
},
"end": {
"line": 12,
"column": 22
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 357,
"end": 363,
"loc": {
"start": {
"line": 12,
"column": 12
},
"end": {
"line": 12,
"column": 18
}
},
"name": "errors"
},
"value": {
"type": "ArrayExpression",
"start": 365,
"end": 367,
"loc": {
"start": {
"line": 12,
"column": 20
},
"end": {
"line": 12,
"column": 22
}
},
"elements": []
},
"kind": "init"
},
{
"type": "Property",
"start": 382,
"end": 473,
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 13,
"column": 103
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 382,
"end": 389,
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 13,
"column": 19
}
},
"name": "options"
},
"value": {
"type": "ObjectExpression",
"start": 391,
"end": 473,
"loc": {
"start": {
"line": 13,
"column": 21
},
"end": {
"line": 13,
"column": 103
}
},
"properties": [
{
"type": "Property",
"start": 393,
"end": 409,
"loc": {
"start": {
"line": 13,
"column": 23
},
"end": {
"line": 13,
"column": 39
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 393,
"end": 403,
"loc": {
"start": {
"line": 13,
"column": 23
},
"end": {
"line": 13,
"column": 33
}
},
"name": "publicport"
},
"value": {
"type": "Literal",
"start": 405,
"end": 409,
"loc": {
"start": {
"line": 13,
"column": 35
},
"end": {
"line": 13,
"column": 39
}
},
"value": 9000,
"rawValue": 9000,
"raw": "9000"
},
"kind": "init"
},
{
"type": "Property",
"start": 411,
"end": 428,
"loc": {
"start": {
"line": 13,
"column": 41
},
"end": {
"line": 13,
"column": 58
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 411,
"end": 422,
"loc": {
"start": {
"line": 13,
"column": 41
},
"end": {
"line": 13,
"column": 52
}
},
"name": "privateport"
},
"value": {
"type": "Literal",
"start": 424,
"end": 428,
"loc": {
"start": {
"line": 13,
"column": 54
},
"end": {
"line": 13,
"column": 58
}
},
"value": 8080,
"rawValue": 8080,
"raw": "8080"
},
"kind": "init"
},
{
"type": "Property",
"start": 430,
"end": 442,
"loc": {
"start": {
"line": 13,
"column": 60
},
"end": {
"line": 13,
"column": 72
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 430,
"end": 436,
"loc": {
"start": {
"line": 13,
"column": 60
},
"end": {
"line": 13,
"column": 66
}
},
"name": "binary"
},
"value": {
"type": "Literal",
"start": 438,
"end": 442,
"loc": {
"start": {
"line": 13,
"column": 68
},
"end": {
"line": 13,
"column": 72
}
},
"value": true,
"rawValue": true,
"raw": "true"
},
"kind": "init"
},
{
"type": "Property",
"start": 444,
"end": 457,
"loc": {
"start": {
"line": 13,
"column": 74
},
"end": {
"line": 13,
"column": 87
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 444,
"end": 450,
"loc": {
"start": {
"line": 13,
"column": 74
},
"end": {
"line": 13,
"column": 80
}
},
"name": "stdout"
},
"value": {
"type": "Literal",
"start": 452,
"end": 457,
"loc": {
"start": {
"line": 13,
"column": 82
},
"end": {
"line": 13,
"column": 87
}
},
"value": false,
"rawValue": false,
"raw": "false"
},
"kind": "init"
},
{
"type": "Property",
"start": 459,
"end": 471,
"loc": {
"start": {
"line": 13,
"column": 89
},
"end": {
"line": 13,
"column": 101
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 459,
"end": 468,
"loc": {
"start": {
"line": 13,
"column": 89
},
"end": {
"line": 13,
"column": 98
}
},
"name": "instances"
},
"value": {
"type": "Literal",
"start": 470,
"end": 471,
"loc": {
"start": {
"line": 13,
"column": 100
},
"end": {
"line": 13,
"column": 101
}
},
"value": 1,
"rawValue": 1,
"raw": "1"
},
"kind": "init"
}
]
},
"kind": "init"
},
{
"type": "Property",
"start": 488,
"end": 497,
"loc": {
"start": {
"line": 14,
"column": 12
},
"end": {
"line": 14,
"column": 21
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 488,
"end": 493,
"loc": {
"start": {
"line": 14,
"column": 12
},
"end": {
"line": 14,
"column": 17
}
},
"name": "tasks"
},
"value": {
"type": "ArrayExpression",
"start": 495,
"end": 497,
"loc": {
"start": {
"line": 14,
"column": 19
},
"end": {
"line": 14,
"column": 21
}
},
"elements": []
},
"kind": "init"
},
{
"type": "Property",
"start": 512,
"end": 521,
"loc": {
"start": {
"line": 15,
"column": 12
},
"end": {
"line": 15,
"column": 21
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 512,
"end": 517,
"loc": {
"start": {
"line": 15,
"column": 12
},
"end": {
"line": 15,
"column": 17
}
},
"name": "users"
},
"value": {
"type": "ArrayExpression",
"start": 519,
"end": 521,
"loc": {
"start": {
"line": 15,
"column": 19
},
"end": {
"line": 15,
"column": 21
}
},
"elements": []
},
"kind": "init"
},
{
"type": "Property",
"start": 536,
"end": 549,
"loc": {
"start": {
"line": 16,
"column": 12
},
"end": {
"line": 16,