luci-app-upnp: Add Expires to port map listing - #7481
Conversation
|
Draft, as the cell should have a #upnp_status_table th:nth-child(6),
#upnp_status_table td:nth-child(6) {
text-align: right;
}The time calculation is done on the client, the backend would probably be more accurate. I chose Port map ...
Could be a nice thing for the 24.10 release. |
Close openwrt#7481 Signed-off-by: Self-Hosting-Group <selfhostinggroup-git+openwrt@shost.ing>
ae0cf63 to
f3c2377
Compare
Close openwrt#7481 Signed-off-by: Self-Hosting-Group <selfhostinggroup-git+openwrt@shost.ing>
Close openwrt#7481 Signed-off-by: Self-Hosting-Group <selfhostinggroup-git+openwrt@shost.ing>
f3c2377 to
f4882d1
Compare
Close openwrt#7481 Signed-off-by: Self-Hosting-Group <selfhostinggroup-git+openwrt@shost.ing>
f4882d1 to
d7af2de
Compare
Close openwrt#7481 Signed-off-by: Self-Hosting-Group <selfhostinggroup-git+openwrt@shost.ing>
d7af2de to
5f9dc6c
Compare
|
Thanks for simplifying the code. I have taken your suggestions and re-tested. The code runs on the frontend, which is fine, only the noted CSS would complete the PR. |
|
OK, did you re-run i18n-sync after the js changes? |
Yes. Can the CSS code above be added? |
|
Above? |
First comment. |
|
Sure. Test the CSS for that column. But it might be a bit over-engineered to do so. Maybe |
But the Expires can also include hours and the right-hand alignment would actually be good. I understand |
|
Add the equivalent |
Close openwrt#7481 Signed-off-by: Self-Hosting-Group <selfhostinggroup-git+openwrt@shost.ing>
5f9dc6c to
80be4b1
Compare
Close openwrt#7481 Signed-off-by: Self-Hosting-Group <selfhostinggroup-git+openwrt@shost.ing>
a6c15f9 to
cb1d696
Compare
|
I discovered the CSS class I have also just written the first ucode to perform the most important function of the expires calculation with the backend/router time. |
|
Merged. Thanks @Self-Hosting-Group |
|
@systemcrash Happy 2025! Thanks to you too. Cool how quickly we were able to get this PR done. |
Status/overview UI:
Screenshot 23.05 release
The Port Control Protocol (PCP) is the successor to NAT-PMP, has similar protocol concepts and packet formats, but adds support for IPv6 port maps and options/extensions. For more information, see:
Port Mapping Protocols Overview and Comparison 2024: About UPnP IGD & PCP/NAT-PMP
https://github.com/Self-Hosting-Group/wiki/wiki/Port-Mapping-Protocols-Overview
Maintainer: @jow-
Previous improvement: #7407