sbd-npm 1.5.52 → 1.5.53

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/constant.js CHANGED
@@ -164,6 +164,7 @@ const MenuList = [
164
164
  {'key': 'portfolio_stratagem', 'name': '上兵伐谋zgz', 'url': '/0x622a4a04d7a04e3b28c85a36500371ba28edea83'},
165
165
  {'key': 'portfolio_gao', 'name': '高大侠', 'url': '/0x44fe5ef98b6802a9e7a893a1dcc231031ef8683d'},
166
166
  {'key': 'portfolio_ming', 'name': '明泓投资', 'url': '/0x70144fc2814bd29d01c8090245cf5518bbee41b1'},
167
+ {'key': 'portfolio_yuan', 'name': '大宸小媛', 'url': '/0xebc0e01dc32baace8bcea287e451e1466bb8ddf4'},
167
168
  {'key': 'portfolio_uestc', 'name': '独钓寒江雪', 'url': '/0x7cbaee9df4ea09cc2ad0d001f4b948109b75f39f'},
168
169
  {'key': 'portfolio_ning', 'name': '宁湖', 'url': '/0x69717049aefea13348d702755a4ed38a2f0e40ad'},
169
170
  {'key': 'portfolio_two', 'name': '两瓢(彭波)', 'url': '/0x376350389c657c5153d59959b6351935c9357651'},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbd-npm",
3
- "version": "1.5.52",
3
+ "version": "1.5.53",
4
4
  "description": "Stock Big Data",
5
5
  "author": "DHQ <dhq314@gmail.com>",
6
6
  "license": "ISC",
package/status.js CHANGED
@@ -508,7 +508,7 @@ $(function () {
508
508
  html.push("</tr>");
509
509
  });
510
510
  Util.render_table_html("database_variable_div_body", html);
511
- $("#database_variable_num").html("&nbsp;&nbsp;共 <span class='label label-info'>" + database_variable_num + "</span> 条&nbsp;&nbsp;");
511
+ document.getElementById('database_variable_num').innerHTML = "&nbsp;&nbsp;共 <span class='label label-info'>" + database_variable_num + "</span> 条&nbsp;&nbsp;";
512
512
  Util.hide_tips();
513
513
  });
514
514
  },
@@ -544,8 +544,45 @@ $(function () {
544
544
  if (navigator.systemLanguage) {
545
545
  html.push("<tr><td class='text-right'>系统语言</td><td class='text-left' style='word-break: break-all'>" + navigator.systemLanguage + "</td></tr>");
546
546
  }
547
+ if (navigator.hardwareConcurrency) {
548
+ html.push("<tr><td class='text-right'>CPU逻辑核心数</td><td class='text-left' style='word-break: break-all'>", navigator.hardwareConcurrency, "</td></tr>");
549
+ }
550
+ if (navigator.deviceMemory) {
551
+ html.push("<tr><td class='text-right'>设备内存</td><td class='text-left' style='word-break: break-all'>", navigator.deviceMemory, "GB</td></tr>");
552
+ }
553
+ if (navigator.connection) {
554
+ if (navigator.connection.effectiveType) {
555
+ html.push("<tr><td class='text-right'>网络类型</td><td class='text-left' style='word-break: break-all'>", navigator.connection.effectiveType.toUpperCase(), "</td></tr>");
556
+ }
557
+ if (navigator.connection.downlink) {
558
+ html.push("<tr><td class='text-right'>预估带宽</td><td class='text-left' style='word-break: break-all'>", navigator.connection.downlink, "Mbps</td></tr>");
559
+ }
560
+ if (navigator.connection.rtt) {
561
+ html.push("<tr><td class='text-right'>往返延迟</td><td class='text-left' style='word-break: break-all'>", navigator.connection.rtt, "ms</td></tr>");
562
+ }
563
+ }
564
+ if (typeof navigator.getBattery === 'function') {
565
+ html.push("<tr><td class='text-right'>电池电量</td><td id='battery_level' class='text-left' style='word-break: break-all'>--</td></tr>");
566
+ }
567
+ // if (navigator.userAgentData) {
568
+ // const info = await navigator.userAgentData.getHighEntropyValues([
569
+ // "architecture",
570
+ // "platform",
571
+ // "platformVersion",
572
+ // "model",
573
+ // "bitness",
574
+ // "fullVersionList"
575
+ // ]);
576
+ // console.log(info);
577
+ // }
578
+ // if (navigator.userAgentData) {
547
579
  Util.render_table_html("request_headers_div_body", html);
548
580
  Util.hide_tips();
581
+ if (typeof navigator.getBattery === 'function') {
582
+ navigator.getBattery().then((battery) => {
583
+ document.getElementById('battery_level').innerHTML = parseInt(battery.level * 100) + "%";
584
+ });
585
+ }
549
586
  });
550
587
  },
551
588
 
package/util.js CHANGED
@@ -3536,7 +3536,7 @@ const Util = {
3536
3536
  let html = [];
3537
3537
  data.forEach(function (item) {
3538
3538
  html.push("<tr>");
3539
- html.push("<td>", Util.pack_html_link("https://fund.eastmoney.com/" + item.code + ".html", item.code), "</td>");
3539
+ html.push("<td>", Util.snowball_url(item.code), "</td>");
3540
3540
  html.push("<td><a class='link_cls' data-toggle='modal' data-target='.public_fund_modal' data-val='", item.code, "'>", item.name, "</a></td>");
3541
3541
  let change_quotient = "--";
3542
3542
  if (item.start_quotient && item.end_quotient) {