sbd-npm 1.5.42 → 1.5.45

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
@@ -162,8 +162,8 @@ const MenuList = [
162
162
  'menu': [
163
163
  {'key': 'portfolio_recommend', 'name': '特别关注', 'url': '/0x2da99e58e28de94b670c4200657ac7e26dd8dceb'},
164
164
  {'key': 'portfolio_gao', 'name': '高大侠', 'url': '/0x44fe5ef98b6802a9e7a893a1dcc231031ef8683d'},
165
- {'key': 'portfolio_uestc', 'name': '独钓寒江雪', 'url': '/0x7cbaee9df4ea09cc2ad0d001f4b948109b75f39f'},
166
165
  {'key': 'portfolio_stratagem', 'name': '上兵伐谋zgz', 'url': '/0x622a4a04d7a04e3b28c85a36500371ba28edea83'},
166
+ {'key': 'portfolio_uestc', 'name': '独钓寒江雪', 'url': '/0x7cbaee9df4ea09cc2ad0d001f4b948109b75f39f'},
167
167
  {'key': 'portfolio_ning', 'name': '宁湖', 'url': '/0x69717049aefea13348d702755a4ed38a2f0e40ad'},
168
168
  {'key': 'portfolio_two', 'name': '两瓢(彭波)', 'url': '/0x376350389c657c5153d59959b6351935c9357651'},
169
169
  {'key': 'portfolio_li', 'name': '力氏周期', 'url': '/0xe639df667bcb74829d1db04e48c0d6c10ea5a1f9'},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbd-npm",
3
- "version": "1.5.42",
3
+ "version": "1.5.45",
4
4
  "description": "Stock Big Data",
5
5
  "author": "DHQ <dhq314@gmail.com>",
6
6
  "license": "ISC",
package/status.js CHANGED
@@ -196,7 +196,9 @@ $(function () {
196
196
  let html = [], ip_num = 0;
197
197
  j.data.forEach(function (item) {
198
198
  ip_num++;
199
- if (item.is_block === 1) {
199
+ if (item.type === 1) {
200
+ html.push("<tr class='success'>");
201
+ } else if (item.type === 2) {
200
202
  html.push("<tr class='danger'>");
201
203
  } else {
202
204
  html.push("<tr>");
@@ -849,7 +851,7 @@ $(function () {
849
851
  {"name": "物理内存", "table_sort": 1, "title": "Resident Set Size(常驻内存,进程实际占用的物理内存)"},
850
852
  {"name": "启动命令"},
851
853
  {"name": "创建时间", "class": "info", "table_sort": 1},
852
- {"name": "操作", "id": "machine_action_log", "link": "#", "title": "操作日志记录"}
854
+ {"name": "操作", "id": "machine_action_log", "title": "操作日志记录"}
853
855
  ]
854
856
  });
855
857
  Status.handle_machine_action_log();
@@ -1055,7 +1057,7 @@ $(function () {
1055
1057
  if (machine_id) {
1056
1058
  let info_object = $(this).find('span.label.label-info');
1057
1059
  if (info_object.length) {
1058
- Util.show_tips("[操作日志记录] 获取中...", 4567, "alert-success");
1060
+ Util.show_tips("[操作日志记录] 获取中", 4567, "alert-success");
1059
1061
  } else {
1060
1062
  let instruction = "screen_1_machine_action_log";
1061
1063
  let success_object = $(this).find('span.label.label-success');
package/util.js CHANGED
@@ -195,6 +195,8 @@ const Util = {
195
195
  let upper_code = item.code.toUpperCase();
196
196
  if (item.type && item.type === 1) {
197
197
  href = Util.get_url("fund_public") + "?fund_code=" + upper_code;
198
+ } else if (item.type && item.type === 2) {
199
+ href = Util.get_url("snowball_user") + "?uid=" + upper_code;
198
200
  } else {
199
201
  href = "/stock/" + upper_code;
200
202
  }
@@ -4695,14 +4697,14 @@ const Util = {
4695
4697
  cursor: pointer;
4696
4698
  font-size: 14px;
4697
4699
  `;
4698
- copyButton.addEventListener('click', function() {
4700
+ copyButton.addEventListener('click', () => {
4699
4701
  navigator.clipboard.writeText(message).then(
4700
4702
  function() {
4701
4703
  // 复制成功,临时改变按钮文字
4702
4704
  const originalText = copyButton.textContent;
4703
4705
  copyButton.textContent = '已复制';
4704
4706
  copyButton.style.backgroundColor = '#45a049';
4705
- setTimeout(function() {
4707
+ setTimeout(() => {
4706
4708
  copyButton.textContent = originalText;
4707
4709
  copyButton.style.backgroundColor = '#4CAF50';
4708
4710
  }, 2000);
@@ -4725,7 +4727,7 @@ const Util = {
4725
4727
  cursor: pointer;
4726
4728
  font-size: 14px;
4727
4729
  `;
4728
- closeButton.addEventListener('click', function() {
4730
+ closeButton.addEventListener('click', () => {
4729
4731
  document.body.removeChild(modal);
4730
4732
  });
4731
4733
  // 组装按钮容器