few ipv6 fixes in web ui

Signed-off-by: si458 <simonsmith5521@gmail.com>

si458 committed Jun 19, 2025 at 19:40 UTC 28aa2710fddd62da0fd579b4ef494d2423ba4af4
3 files changed +30 -30
translate/translate.json
+24 -24
@@ -5382,10 +5382,10 @@
5382 "xloc": [
5383 "default-mobile.handlebars->11->518",
5384 "default.handlebars->47->2249",
5385 - "default.handlebars->47->448",
5385 + "default.handlebars->47->447",
5386 "default.handlebars->47->931",
5387 "default3.handlebars->35->2245",
5388 - "default3.handlebars->35->445",
5388 + "default3.handlebars->35->444",
5389 "default3.handlebars->35->928"
5390 ]
5391 },
@@ -14779,9 +14779,9 @@
14779 "zh-cht": "CCM",
14780 "xloc": [
14781 "default-mobile.handlebars->11->517",
14782 - "default.handlebars->47->446",
14782 + "default.handlebars->47->445",
14783 "default.handlebars->47->929",
14784 - "default3.handlebars->35->443",
14784 + "default3.handlebars->35->442",
14785 "default3.handlebars->35->926"
14786 ]
14787 },
@@ -20002,9 +20002,9 @@
20002 "xloc": [
20003 "default-mobile.handlebars->11->4",
20004 "default.handlebars->47->11",
20005 - "default.handlebars->47->440",
20005 + "default.handlebars->47->448",
20006 "default3.handlebars->35->11",
20007 - "default3.handlebars->35->437",
20007 + "default3.handlebars->35->445",
20008 "sharing-mobile.handlebars->11->4",
20009 "sharing.handlebars->11->4",
20010 "ssh.handlebars->3->4",
@@ -40462,8 +40462,8 @@
40462 "pl": "W",
40463 "uk": "Вх",
40464 "xloc": [
40465 - "default.handlebars->47->444",
40466 - "default3.handlebars->35->441"
40465 + "default.handlebars->47->443",
40466 + "default3.handlebars->35->440"
40467 ]
40468 },
40469 {
@@ -42284,8 +42284,8 @@
42284 "pl": "Nazwa hosta Intel&reg; AMT",
42285 "uk": "Ім'я хоста Intel&reg; AMT",
42286 "xloc": [
42287 - "default.handlebars->47->365",
42288 - "default3.handlebars->35->362"
42287 + "default.handlebars->47->364",
42288 + "default3.handlebars->35->361"
42289 ]
42290 },
42291 {
@@ -42314,9 +42314,9 @@
42314 "zh-chs": "在Intel&reg; AMT尔AMT",
42315 "zh-cht": "在管理控制模式下啟動了Intel&reg; AMT",
42316 "xloc": [
42317 - "default.handlebars->47->447",
42317 + "default.handlebars->47->446",
42318 "default.handlebars->47->930",
42319 - "default3.handlebars->35->444",
42319 + "default3.handlebars->35->443",
42320 "default3.handlebars->35->927"
42321 ]
42322 },
@@ -42346,9 +42346,9 @@
42346 "zh-chs": "英特尔AMT在客户端控制模式下被激活",
42347 "zh-cht": "Intel&reg; AMT在客户端控制模式下被启动",
42348 "xloc": [
42349 - "default.handlebars->47->445",
42349 + "default.handlebars->47->444",
42350 "default.handlebars->47->928",
42351 - "default3.handlebars->35->442",
42351 + "default3.handlebars->35->441",
42352 "default3.handlebars->35->925"
42353 ]
42354 },
@@ -42359,8 +42359,8 @@
42359 "pl": "Intel&reg; AMT jest w trybie aktywacji",
42360 "uk": "Intel&reg; AMT знаходиться в режимі активації",
42361 "xloc": [
42362 - "default.handlebars->47->443",
42363 - "default3.handlebars->35->440"
42362 + "default.handlebars->47->442",
42363 + "default3.handlebars->35->439"
42364 ]
42365 },
42366 {
@@ -42370,8 +42370,8 @@
42370 "pl": "Intel&reg; AMT nie jest aktywowane",
42371 "uk": "Intel&reg; AMT не активовано",
42372 "xloc": [
42373 - "default.handlebars->47->441",
42374 - "default3.handlebars->35->438"
42373 + "default.handlebars->47->440",
42374 + "default3.handlebars->35->437"
42375 ]
42376 },
42377 {
@@ -42591,8 +42591,8 @@
42591 "nl": "Intel&reg; AMT status",
42592 "uk": "Стан Intel&reg; AMT",
42593 "xloc": [
42594 - "default.handlebars->47->366",
42595 - "default3.handlebars->35->363"
42594 + "default.handlebars->47->365",
42595 + "default3.handlebars->35->362"
42596 ]
42597 },
42598 {
@@ -46302,10 +46302,10 @@
46302 "zh-chs": "最后一次露面",
46303 "zh-cht": "最後一次露面",
46304 "xloc": [
46305 - "default.handlebars->47->364",
46305 + "default.handlebars->47->366",
46306 "default.handlebars->47->398",
46307 "default.handlebars->container->column_l->p1->devListToolbarSpan->1->0->9->devListToolbarSort->sortselect->11",
46308 - "default3.handlebars->35->361",
46308 + "default3.handlebars->35->363",
46309 "default3.handlebars->35->395",
46310 "default3.handlebars->container->column_l->p1->devListToolbarSpan->7->devListToolbarSort->sortselect->11"
46311 ]
@@ -63337,8 +63337,8 @@
63337 "nl": "Pre",
63338 "pl": "Przed",
63339 "xloc": [
63340 - "default.handlebars->47->442",
63341 - "default3.handlebars->35->439"
63340 + "default.handlebars->47->441",
63341 + "default3.handlebars->35->438"
63342 ]
63343 },
63344 {
views/default.handlebars
+3 -3
@@ -4651,7 +4651,7 @@
4651 }
4652
4653 // This height of 1 div at the end to fix a problem in Linux firefox browsers
4654 - r = '<table style=width:100%;margin-top:4px cellpadding=0 cellspacing=0><th style=color:gray>' + colums + r + '</tr></table><div style=height:1px></div>';
4654 + r = '<table style=width:100%;margin-top:4px;table-layout:fixed cellpadding=0 cellspacing=0><th style=color:gray>' + colums + r + '</tr></table><div style=height:1px></div>';
4655 }
4656 } else {
4657 r += '</table>';
@@ -4958,7 +4958,7 @@
4958 }
4959 if (deviceViewSettings.devsCols.indexOf('links') >= 0) { r += '<td style=text-align:center;font-size:x-small>' + getShortRouterLinks(node); } // Links
4960 if (deviceViewSettings.devsCols.indexOf('user') >= 0) { r += '<td style=text-align:center>' + getUserShortStr(node); } // User
4961 - if (deviceViewSettings.devsCols.indexOf('ip') >= 0) { var ip = ''; if (node.mtype == 3) { ip = node.host; } else if (node.ip) { ip = node.ip; } r += '<td style=text-align:center>' + ip; } // IP address
4961 + if (deviceViewSettings.devsCols.indexOf('ip') >= 0) { var ip = ''; if (node.mtype == 3) { ip = node.host; } else if (node.ip) { ip = node.ip; } r += '<td style=text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis title="' + EscapeHtml(ip) + '">' + EscapeHtml(ip); } // IP address
4962 if (deviceViewSettings.devsCols.indexOf('conn') >= 0) { r += '<td style=text-align:center>' + states.join('&nbsp;+&nbsp;'); } // Connectivity
4963 if (deviceViewSettings.devsCols.indexOf('amthost') >= 0) { r += '<td style=text-align:center>' + (((node.intelamt == null) || (node.intelamt.host == null)) ? '' : EscapeHtml(node.intelamt.host)); }
4964 if (deviceViewSettings.devsCols.indexOf('amtstate') >= 0) {
@@ -12216,7 +12216,7 @@
12216 var splitip = node.lastaddr.split(':');
12217 if (splitip.length > 2) {
12218 // IPv6
12219 - x += addDetailItem("Last agent address", node.lastaddr);
12219 + x += addDetailItem("Last agent address", '<a href="https://iplocation.com/?ip=' + splitip.slice(0, -1).join(':') + '" rel="noreferrer noopener" target="MeshIPLoopup">' + splitip.slice(0, -1).join(':') + '</a>');
12220 } else {
12221 // IPv4
12222 if (isPrivateIP(node.lastaddr)) {
views/default3.handlebars
+3 -3
@@ -5138,7 +5138,7 @@
5138 if (requestedLastConnects == false) { requestedLastConnects = true; meshserver.send({ action: 'lastconnects' }); }
5139 }
5140 // This height of 1 div at the end to fix a problem in Linux firefox browsers
5141 - r = '<table style=width:100%;margin-top:4px cellpadding=0 cellspacing=0><th>' + colums + r + '</tr></table><div style=height:1px></div>';
5141 + r = '<table style=width:100%;margin-top:4px;table-layout:fixed cellpadding=0 cellspacing=0><th>' + colums + r + '</tr></table><div style=height:1px></div>';
5142 }
5143 } else {
5144 r += '</table>';
@@ -5445,7 +5445,7 @@
5445 }
5446 if (deviceViewSettings.devsCols.indexOf('links') >= 0) { r += '<td style=text-align:center;font-size:x-small>' + getShortRouterLinks(node); } // Links
5447 if (deviceViewSettings.devsCols.indexOf('user') >= 0) { r += '<td style=text-align:center>' + getUserShortStr(node); } // User
5448 - if (deviceViewSettings.devsCols.indexOf('ip') >= 0) { var ip = ''; if (node.mtype == 3) { ip = node.host; } else if (node.ip) { ip = node.ip; } r += '<td style=text-align:center>' + ip; } // IP address
5448 + if (deviceViewSettings.devsCols.indexOf('ip') >= 0) { var ip = ''; if (node.mtype == 3) { ip = node.host; } else if (node.ip) { ip = node.ip; } r += '<td style=text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis title="' + EscapeHtml(ip) + '">' + EscapeHtml(ip); } // IP address
5449 if (deviceViewSettings.devsCols.indexOf('conn') >= 0) { r += '<td style=text-align:center>' + states.join('&nbsp;+&nbsp;'); } // Connectivity
5450 if (deviceViewSettings.devsCols.indexOf('amthost') >= 0) { r += '<td style=text-align:center>' + (((node.intelamt == null) || (node.intelamt.host == null)) ? '' : EscapeHtml(node.intelamt.host)); }
5451 if (deviceViewSettings.devsCols.indexOf('amtstate') >= 0) {
@@ -13053,7 +13053,7 @@
13053 var splitip = node.lastaddr.split(':');
13054 if (splitip.length > 2) {
13055 // IPv6
13056 - x += addDetailItem("Last agent address", node.lastaddr);
13056 + x += addDetailItem("Last agent address", '<a href="https://iplocation.com/?ip=' + splitip.slice(0, -1).join(':') + '" rel="noreferrer noopener" target="MeshIPLoopup">' + splitip.slice(0, -1).join(':') + '</a>');
13057 } else {
13058 // IPv4
13059 if (isPrivateIP(node.lastaddr)) {