sbd-npm 1.3.98 → 1.4.1
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/package.json +1 -1
- package/status.js +9 -1
- package/summary_daily.js +1 -1
- package/util.js +11 -4
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
|
};
|
package/util.js
CHANGED
|
@@ -622,7 +622,7 @@ const Util = {
|
|
|
622
622
|
*/
|
|
623
623
|
rand_stock: function (rand_btn_id, stock_type) {
|
|
624
624
|
$("#" + rand_btn_id).click(function () {
|
|
625
|
-
$(
|
|
625
|
+
$(this).attr("disabled", true);
|
|
626
626
|
Util.post("/action", {action: "rand_stock", stock_type: stock_type}, function (j) {
|
|
627
627
|
$("#" + rand_btn_id).attr("disabled", false);
|
|
628
628
|
if (j["code"]) {
|
|
@@ -1447,14 +1447,21 @@ const Util = {
|
|
|
1447
1447
|
if (fund_code) {
|
|
1448
1448
|
Util.fetch_public_fund_detail(fund_code, component_id);
|
|
1449
1449
|
} else {
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1450
|
+
if (localStorage["modal_public_fund_code"]) {
|
|
1451
|
+
Util.fetch_public_fund_detail(localStorage["modal_public_fund_code"], component_id);
|
|
1452
|
+
} else {
|
|
1453
|
+
let request_arguments = Util.request_arguments();
|
|
1454
|
+
if (request_arguments["fund_code"]) {
|
|
1455
|
+
Util.fetch_public_fund_detail(request_arguments["fund_code"], component_id);
|
|
1456
|
+
}
|
|
1453
1457
|
}
|
|
1454
1458
|
}
|
|
1455
1459
|
});
|
|
1456
1460
|
component_obj.on('hidden.bs.modal', function () {
|
|
1457
1461
|
$("#" + component_id + "_body_body").html("<tr><td colspan='14'>Loading...</td></tr>");
|
|
1462
|
+
if (localStorage["modal_public_fund_code"]) {
|
|
1463
|
+
localStorage.removeItem("modal_public_fund_code");
|
|
1464
|
+
}
|
|
1458
1465
|
Util.hide_tips();
|
|
1459
1466
|
});
|
|
1460
1467
|
},
|