@xuda.io/xuda-worker-bundle 1.3.1363 → 1.3.1364

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +1 -212
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1409,218 +1409,7 @@ func.common.get_data_from_websocket = async function (
1409
1409
  });
1410
1410
  };
1411
1411
 
1412
- glb.DEBUG_INFO_OBJ = {};
1413
- // var CONNECTION_ATTEMPTS = 0;
1414
- glb.APP_INFO = {};
1415
- // var vars = {};
1416
- // var USERS_CACHE = {};
1417
- var SYSTEM_READY = null;
1418
- // var CPI_WEBSOCKET;
1419
- var GLB_JS_SCRIPTS_LOADED = [];
1420
-
1421
- var STUDIO_WEBSOCKET = null;
1422
- var STUDIO_WEBSOCKET_CONNECTION_ID = null;
1423
- var STUDIO_PEER = null;
1424
- var STUDIO_PEER_CONN_SEND_METHOD = null;
1425
- var STUDIO_PEER_CONN_ID = null;
1426
- var SUPPORT_PEER = null;
1427
- var SUPPORT_PEER_CONN = null;
1428
- var STUDIO_PEER_CONN_MSG_QUEUE = [];
1429
-
1430
- var CLIENT_ACTIVITY_TS;
1431
-
1432
- glb.REFERENCE_LESS_FUNCTIONS = [
1433
- "update",
1434
- "raise_event",
1435
- "call_library",
1436
- "invoke_action",
1437
- "loader_on",
1438
- "loader_off",
1439
- "emit_event",
1440
- "delay",
1441
- "execute_evaluate_javascript",
1442
- "execute_native_javascript",
1443
- ];
1444
-
1445
- var CACHE_PROG_UI = {};
1446
-
1447
- var ALERT_IS_ACTIVE = false;
1448
- glb.WORKER_ATTEMPTS_NOT_RESPONDING = 200000;
1449
-
1450
- glb.WORKER_TIMEOUT = 600000;
1451
- glb.WORKER_PAUSE = false;
1452
- // glb.EMAIL_SEND_RECEIVE_STATUS = {};
1453
- var DATASOURCE_INTERVALS = {};
1454
- var APP_MODAL_OBJ = {};
1455
- var CURRENT_APP_POPOVER = null;
1456
- var ELEMENT_CLICK_EVENT = null;
1457
- var posX = 0; //cursor x
1458
- var posY = 0; //cursor x
1459
- var LOADER_ACTIVE = false;
1460
- var LOADER_TEXT = "";
1461
- var REFRESHER_IN_PROGRESS = false;
1462
-
1463
- glb.screen_num = 0;
1464
- var RESPONSE_FROM_STUDIO_QUEUE = {};
1465
-
1466
- var SCREEN_BLOCKER_OBJ = {};
1467
- var IS_PROGRESS_SCREEN_OPEN = null;
1468
- // var UI_ENGINE_OBJ = null;
1469
-
1470
- var UI_WORKER_OBJ = { jobs: [], num: 9000 };
1471
-
1472
- glb.html5_events_handler = [
1473
- "onabort",
1474
- "onafterprint",
1475
- "onautocomplete",
1476
- "onautocompleteerror",
1477
- "onbeforeprint",
1478
- "onbeforeunload",
1479
- "onblur",
1480
- "oncancel",
1481
- "oncanplay",
1482
- "oncanplaythrough",
1483
- "onchange",
1484
- "onclick",
1485
- "onclose",
1486
- "oncontextmenu",
1487
- "oncopy",
1488
- "oncuechange",
1489
- "oncut",
1490
- "ondblclick",
1491
- "ondrag",
1492
- "ondragend",
1493
- "ondragenter",
1494
- "ondragexit",
1495
- "ondragleave",
1496
- "ondragover",
1497
- "ondragstart",
1498
- "ondrop",
1499
- "ondurationchange",
1500
- "onemptied",
1501
- "onended",
1502
- "onerror",
1503
- "onfocus",
1504
- "onhashchange",
1505
- "oninput",
1506
- "oninvalid",
1507
- "onkeydown",
1508
- "onkeypress",
1509
- "onkeyup",
1510
- "onload",
1511
- "onloadeddata",
1512
- "onloadedmetadata",
1513
- "onloadstart",
1514
- "onmessage",
1515
- "onmousedown",
1516
- "onmouseenter",
1517
- "onmouseleave",
1518
- "onmousemove",
1519
- "onmouseout",
1520
- "onmouseover",
1521
- "onmouseup",
1522
- "onmousewheel",
1523
- "onoffline",
1524
- "ononline",
1525
- "onpagehide",
1526
- "onpageshow",
1527
- "onpaste",
1528
- "onpause",
1529
- "onplay",
1530
- "onplaying",
1531
- "onpopstate",
1532
- "onprogress",
1533
- "onratechange",
1534
- "onreset",
1535
- "onresize",
1536
- "onscroll",
1537
- "onsearch",
1538
- "onseeked",
1539
- "onseeking",
1540
- "onselect",
1541
- "onshow",
1542
- "onsort",
1543
- "onstalled",
1544
- "onstorage",
1545
- "onsubmit",
1546
- "onsuspend",
1547
- "ontimeupdate",
1548
- "ontoggle",
1549
- "onunload",
1550
- "onvolumechange",
1551
- "onwaiting",
1552
- ];
1553
-
1554
- glb.lifecycle = {
1555
- plugins: {},
1556
- // queue: [],
1557
- fn_arr: [
1558
- "beforeInit",
1559
- "initialized",
1560
- "systemReady",
1561
- "beforeMounted",
1562
- "mounted",
1563
- ],
1564
- // add(type, fn, params) {
1565
- // this.queue.push({ type, fn, params });
1566
- // },
1567
- execute: async function (SESSION_ID, event) {
1568
- const _session = SESSION_OBJ[SESSION_ID];
1569
-
1570
- const xu_api = await func.common.get_module(
1571
- SESSION_ID,
1572
- "xuda-api-library.mjs",
1573
- {
1574
- func,
1575
- glb,
1576
- SESSION_OBJ,
1577
- SESSION_ID,
1578
- APP_OBJ,
1579
- dsSession: func.utils.get_last_datasource_no(),
1580
- }
1581
- );
1582
-
1583
- var params = {
1584
- SESSION_ID,
1585
- session_data: _session,
1586
- app_obj: APP_OBJ[_session.app_id],
1587
- xu_api,
1588
- };
1589
-
1590
- for await (const [plugin_name, val] of Object.entries(
1591
- glb.lifecycle.plugins
1592
- )) {
1593
- if (val?.plugin_script?.[event]) {
1594
- params.setup_data = val.setup_data;
1595
- await val.plugin_script[event](params);
1596
- }
1597
- }
1598
- },
1599
- };
1600
-
1601
- glb.run_xu_before = [
1602
- "xu-cdn",
1603
- "xu-style",
1604
- "xu-render",
1605
- "xu-for-key",
1606
- "xu-for-val",
1607
- // "xu-ui-plugin",
1608
- // "programParameters",
1609
- ];
1610
- glb.run_xu_after = ["xu-class", "xu-script", "xu-ui-plugin"];
1611
- glb.attr_abbreviations_arr = [
1612
- "xu-click",
1613
- "xu-dblclick",
1614
- "xu-contextmenu",
1615
- "xu-focus",
1616
- "xu-keyup",
1617
- "xu-change",
1618
- "xu-blur",
1619
- "xu-init",
1620
- ];
1621
- glb.solid_attributes = ["disabled"];
1622
-
1623
- func.datasource = {};
1412
+ func.datasource = {};
1624
1413
  func.datasource.create = async function (
1625
1414
  SESSION_ID,
1626
1415
  prog_id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle",
3
- "version": "1.3.1363",
3
+ "version": "1.3.1364",
4
4
  "description": "xuda framework",
5
5
  "main": "index.js",
6
6
  "scripts": {