sbd-npm 1.3.99 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/status.js +9 -1
- package/summary_daily.js +1 -1
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
|
};
|