@xuda.io/runtime-bundle 1.0.983 → 1.0.984
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.
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -13476,25 +13476,6 @@ func.UI.screen.create_container = function (SESSION_ID, $root_container, nodeP,
|
|
|
13476
13476
|
} else {
|
|
13477
13477
|
$div = $(`<${div} ${attr_str ? attr_str : ''}>`);
|
|
13478
13478
|
}
|
|
13479
|
-
// const svgNS = "http://www.w3.org/2000/svg";
|
|
13480
|
-
// // $div = $(document.createElementNS(svgNS, "svg"));
|
|
13481
|
-
// $div = $(`<${div} ${attr_str ? attr_str : ""} ${svg_attributes_str}>`);
|
|
13482
|
-
// } else {
|
|
13483
|
-
// $div = $(`<${div} ${attr_str ? attr_str : ""}>`);
|
|
13484
|
-
|
|
13485
|
-
// async function generateHash(str, algorithm = 'SHA-256') {
|
|
13486
|
-
// // Encode the string as UTF-8
|
|
13487
|
-
// const msgBuffer = new TextEncoder().encode(str);
|
|
13488
|
-
|
|
13489
|
-
// // Hash the string
|
|
13490
|
-
// const hashBuffer = await crypto.subtle.digest(algorithm, msgBuffer);
|
|
13491
|
-
|
|
13492
|
-
// // Convert to hex string
|
|
13493
|
-
// const hashArray = Array.from(new Uint8Array(hashBuffer));
|
|
13494
|
-
// const hashHex = hashArray.map((b) => b.toString(16).padStart(2, '0')).join('');
|
|
13495
|
-
|
|
13496
|
-
// return hashHex;
|
|
13497
|
-
// }
|
|
13498
13479
|
|
|
13499
13480
|
// Returns a 32-bit unsigned integer hash of a string (FNV-1a)
|
|
13500
13481
|
function hash32(str) {
|
|
@@ -13512,8 +13493,7 @@ func.UI.screen.create_container = function (SESSION_ID, $root_container, nodeP,
|
|
|
13512
13493
|
return (hash32(str) >>> 0).toString(16).padStart(8, '0');
|
|
13513
13494
|
}
|
|
13514
13495
|
|
|
13515
|
-
|
|
13516
|
-
const new_ui_id = hash32hex(ui_id);
|
|
13496
|
+
const new_ui_id = ui_id; // hash32hex(ui_id);
|
|
13517
13497
|
|
|
13518
13498
|
$div.attr('xu-ui-id', new_ui_id).data({
|
|
13519
13499
|
xuData: {
|
|
@@ -11201,25 +11201,6 @@ func.UI.screen.create_container = function (SESSION_ID, $root_container, nodeP,
|
|
|
11201
11201
|
} else {
|
|
11202
11202
|
$div = $(`<${div} ${attr_str ? attr_str : ''}>`);
|
|
11203
11203
|
}
|
|
11204
|
-
// const svgNS = "http://www.w3.org/2000/svg";
|
|
11205
|
-
// // $div = $(document.createElementNS(svgNS, "svg"));
|
|
11206
|
-
// $div = $(`<${div} ${attr_str ? attr_str : ""} ${svg_attributes_str}>`);
|
|
11207
|
-
// } else {
|
|
11208
|
-
// $div = $(`<${div} ${attr_str ? attr_str : ""}>`);
|
|
11209
|
-
|
|
11210
|
-
// async function generateHash(str, algorithm = 'SHA-256') {
|
|
11211
|
-
// // Encode the string as UTF-8
|
|
11212
|
-
// const msgBuffer = new TextEncoder().encode(str);
|
|
11213
|
-
|
|
11214
|
-
// // Hash the string
|
|
11215
|
-
// const hashBuffer = await crypto.subtle.digest(algorithm, msgBuffer);
|
|
11216
|
-
|
|
11217
|
-
// // Convert to hex string
|
|
11218
|
-
// const hashArray = Array.from(new Uint8Array(hashBuffer));
|
|
11219
|
-
// const hashHex = hashArray.map((b) => b.toString(16).padStart(2, '0')).join('');
|
|
11220
|
-
|
|
11221
|
-
// return hashHex;
|
|
11222
|
-
// }
|
|
11223
11204
|
|
|
11224
11205
|
// Returns a 32-bit unsigned integer hash of a string (FNV-1a)
|
|
11225
11206
|
function hash32(str) {
|
|
@@ -11237,8 +11218,7 @@ func.UI.screen.create_container = function (SESSION_ID, $root_container, nodeP,
|
|
|
11237
11218
|
return (hash32(str) >>> 0).toString(16).padStart(8, '0');
|
|
11238
11219
|
}
|
|
11239
11220
|
|
|
11240
|
-
|
|
11241
|
-
const new_ui_id = hash32hex(ui_id);
|
|
11221
|
+
const new_ui_id = ui_id; // hash32hex(ui_id);
|
|
11242
11222
|
|
|
11243
11223
|
$div.attr('xu-ui-id', new_ui_id).data({
|
|
11244
11224
|
xuData: {
|