sbd-npm 1.5.51 → 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 +1 -0
- package/package.json +1 -1
- package/snowball_tool.js +1 -1
- package/snowball_tweet.js +2 -0
- package/status.js +47 -8
- package/util.js +1 -1
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
package/snowball_tool.js
CHANGED
|
@@ -369,7 +369,7 @@ $(function () {
|
|
|
369
369
|
let html = [];
|
|
370
370
|
j.data.forEach(function (item, index) {
|
|
371
371
|
html.push("<tr>");
|
|
372
|
-
html.push("<td>", (index + 1), "</td>");
|
|
372
|
+
html.push("<td>", Util.pack_html_link("https://www.xueqiu.com/u/" + item.uid, index + 1), "</td>");
|
|
373
373
|
html.push("<td><a class='user_td' data-val='", item.uid, "' href='#'>", item.user_name, "</a></td>");
|
|
374
374
|
html.push("<td class='code_item'>", Util.snowball_url(Util.is_alphabet(item.code) ? item.code.toUpperCase() : item.code), "</td>");
|
|
375
375
|
html.push("<td>", Util.stock_url(item.code, item.name ? item.name : item.code.toUpperCase()), "</td>");
|
package/snowball_tweet.js
CHANGED
|
@@ -256,6 +256,8 @@ $(function () {
|
|
|
256
256
|
}
|
|
257
257
|
} else if (SnowballTweet.user_data[item.uid]) {
|
|
258
258
|
user_name = Util.pack_html_link(user_url, SnowballTweet.user_data[item.uid]);
|
|
259
|
+
} else if (item.user_name) {
|
|
260
|
+
user_name = Util.pack_html_link(user_url, item.user_name);
|
|
259
261
|
} else {
|
|
260
262
|
user_name = Util.pack_html_link(user_url, item.uid);
|
|
261
263
|
}
|
package/status.js
CHANGED
|
@@ -213,8 +213,8 @@ $(function () {
|
|
|
213
213
|
html.push("<td>", Util.pack_html_link(Status.ip_url(item.ip), item.ip), "</td>");
|
|
214
214
|
html.push("<td>", Status.map_url(Status.convert_ip_address(item)), "</td>");
|
|
215
215
|
html.push("<td>", item.times, "</td>");
|
|
216
|
-
html.push("<td>", Util.seconds_to_format(item.first_time), "</td>");
|
|
217
|
-
html.push("<td>", Util.seconds_to_format(item.latest_time), "</td>");
|
|
216
|
+
html.push("<td data-val='", item.first_time, "'>", Util.seconds_to_format(item.first_time), "</td>");
|
|
217
|
+
html.push("<td data-val='", item.latest_time, "'>", Util.seconds_to_format(item.latest_time), "</td>");
|
|
218
218
|
html.push("</tr>");
|
|
219
219
|
});
|
|
220
220
|
Util.render_table_html("mysql_ssh_modal_body_body", html);
|
|
@@ -508,7 +508,7 @@ $(function () {
|
|
|
508
508
|
html.push("</tr>");
|
|
509
509
|
});
|
|
510
510
|
Util.render_table_html("database_variable_div_body", html);
|
|
511
|
-
|
|
511
|
+
document.getElementById('database_variable_num').innerHTML = " 共 <span class='label label-info'>" + database_variable_num + "</span> 条 ";
|
|
512
512
|
Util.hide_tips();
|
|
513
513
|
});
|
|
514
514
|
},
|
|
@@ -534,16 +534,55 @@ $(function () {
|
|
|
534
534
|
html.push("</tr>");
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
|
-
html.push("<tr><td class='text-right'>浏览器代号</td><td class='text-left' style='word-break: break-all'>"
|
|
538
|
-
html.push("<tr><td class='text-right'>浏览器名称</td><td class='text-left' style='word-break: break-all'>"
|
|
539
|
-
html.push("<tr><td class='text-right'>浏览器版本</td><td class='text-left' style='word-break: break-all'>"
|
|
540
|
-
html.push("<tr><td class='text-right'>启用Cookies</td><td class='text-left' style='word-break: break-all'>"
|
|
541
|
-
html.push("<tr><td class='text-right'>硬件平台</td><td class='text-left' style='word-break: break-all'>"
|
|
537
|
+
html.push("<tr><td class='text-right'>浏览器代号</td><td class='text-left' style='word-break: break-all'>", navigator.appCodeName, "</td></tr>");
|
|
538
|
+
html.push("<tr><td class='text-right'>浏览器名称</td><td class='text-left' style='word-break: break-all'>", navigator.appName, "</td></tr>");
|
|
539
|
+
html.push("<tr><td class='text-right'>浏览器版本</td><td class='text-left' style='word-break: break-all'>", navigator.appVersion, "</td></tr>");
|
|
540
|
+
html.push("<tr><td class='text-right'>启用Cookies</td><td class='text-left' style='word-break: break-all'>", navigator.cookieEnabled, "</td></tr>");
|
|
541
|
+
html.push("<tr><td class='text-right'>硬件平台</td><td class='text-left' style='word-break: break-all'>", navigator.platform, "</td></tr>");
|
|
542
|
+
html.push("<tr><td class='text-right'>默认语言</td><td class='text-left' style='word-break: break-all'>", navigator.language, "</td></tr>");
|
|
543
|
+
html.push("<tr><td class='text-right'>所在时区</td><td class='text-left' style='word-break: break-all'>", Intl.DateTimeFormat().resolvedOptions().timeZone, "</td></tr>");
|
|
542
544
|
if (navigator.systemLanguage) {
|
|
543
545
|
html.push("<tr><td class='text-right'>系统语言</td><td class='text-left' style='word-break: break-all'>" + navigator.systemLanguage + "</td></tr>");
|
|
544
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) {
|
|
545
579
|
Util.render_table_html("request_headers_div_body", html);
|
|
546
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
|
+
}
|
|
547
586
|
});
|
|
548
587
|
},
|
|
549
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.
|
|
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) {
|