sbd-npm 1.3.99 → 1.4.2
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/status.js +9 -1
- package/summary_daily.js +1 -1
package/constant.js
CHANGED
@@ -201,6 +201,7 @@ const MenuList = [
|
|
201
201
|
{'key': 'us_qqq', 'name': '纳斯达克100', 'url': '/0xcab775d9229a1e5ab101fcf9971ee8246ab539bf'},
|
202
202
|
{'key': 'us_cn', 'name': '中国概念股', 'url': '/0x50b6fa90ffcfb88a735215c583c60392818f5265'},
|
203
203
|
{'key': 'us_buffett', 'name': '巴菲特持仓', 'url': '/0xe51dc830e90a6ca5bbae5d867ebd69d57aa85208'},
|
204
|
+
{'key': 'us_biotechnology', 'name': '生物科技', 'url': '/0x88bee1b829887f7c2fbfeea7a3c60c330d477f62'},
|
204
205
|
{'key': 'us_dollar_index', 'name': '美元指数', 'url': '/0x99533982f67f489dce7c0738c2e2a94239e35cde'},
|
205
206
|
{'key': 'us_bond_yield', 'name': '美十年国债收益率', 'url': '/0xdf01c6a366340dce84867ca34e7dd6fc6ed5e631'},
|
206
207
|
{'key': 'us_usd_cnh', 'name': '美元离岸人民币汇率', 'url': '/0x6010e54df39e6e00b255d6271d9972fb8c9faf11'},
|
package/package.json
CHANGED
package/status.js
CHANGED
@@ -120,12 +120,20 @@ $(function () {
|
|
120
120
|
},
|
121
121
|
|
122
122
|
render_ip_daily: function(ip_daily_data) {
|
123
|
-
let _html = [];
|
123
|
+
let _html = [], referer_search = "", referer_replacement = "";
|
124
|
+
let u = new URL(window.location.href);
|
125
|
+
if (u.hostname && u.port) {
|
126
|
+
referer_search = u.hostname + "/";
|
127
|
+
referer_replacement = u.hostname + ":" + u.port + "/";
|
128
|
+
}
|
124
129
|
ip_daily_data.forEach(function (item) {
|
125
130
|
_html.push("<tr>");
|
126
131
|
_html.push("<td>", Status.pack_ip_link(item["ip"]), "</td>");
|
127
132
|
_html.push("<td>", Status.map_url(item['location']), "</td>");
|
128
133
|
item["referer"] = item["referer"].replace("?", "?");
|
134
|
+
if (referer_search && referer_replacement) {
|
135
|
+
item["referer"] = item["referer"].replace(referer_search, referer_replacement);
|
136
|
+
}
|
129
137
|
_html.push("<td title='", item["referer"], "'>", Util.pack_html_link("http://" + item["referer"], Util.sub_str(item["referer"], 50)), "</td>");
|
130
138
|
_html.push("<td>", item["visit"], "</td>");
|
131
139
|
_html.push("<td>", Util.seconds_to_format(item["time"]), "</td>");
|
package/summary_daily.js
CHANGED
@@ -144,7 +144,7 @@ $(function () {
|
|
144
144
|
_stock_rate_html.push('<span class="sr-only">', rate_width, '% Complete</span>');
|
145
145
|
_stock_rate_html.push('</div>');
|
146
146
|
_stock_rate_html.push('</div></div>');
|
147
|
-
_stock_rate_html.push('<div class="w_right w_20"><span><a href="#" data-toggle="modal" data-target=".stock_rate_modal" data-cp="', rate_range, '">', rate, '</a></span></div>');
|
147
|
+
_stock_rate_html.push('<div class="w_right w_20"><span><a href="#" class="link_cls" data-toggle="modal" data-target=".stock_rate_modal" data-cp="', rate_range, '">', rate, '</a></span></div>');
|
148
148
|
_stock_rate_html.push('</div>');
|
149
149
|
return _stock_rate_html.join("");
|
150
150
|
};
|