diff --git a/.github/diy/patches/luci-mod-status.patch b/.github/diy/patches/luci-mod-status.patch index 21700c8b3..45005cd00 100644 --- a/.github/diy/patches/luci-mod-status.patch +++ b/.github/diy/patches/luci-mod-status.patch @@ -105,7 +105,7 @@ _('Kernel Version'), boardinfo.kernel, _('Local Time'), datestr, _('Uptime'), systeminfo.uptime ? '%t'.format(systeminfo.uptime) : null, -@@ -101,10 +95,18 @@ return baseclass.extend({ +@@ -101,10 +95,19 @@ return baseclass.extend({ systeminfo.load[0] / 65535.0, systeminfo.load[1] / 65535.0, systeminfo.load[2] / 65535.0 @@ -118,6 +118,7 @@ + fields.splice(6, 0, _('Temperature')); + fields.splice(7, 0, cpuusage.tempinfo); + } ++ + if (boardinfo.model != "Default string Default string") { + fields.splice(2, 0, _('Model')); + fields.splice(3, 0, boardinfo.model); @@ -126,6 +127,26 @@ var table = E('table', { 'class': 'table' }); for (var i = 0; i < fields.length; i += 2) { +@@ -114,6 +117,19 @@ return baseclass.extend({ + ])); + } + ++ if (uci.get('system', '@system[0]', 'links') !== '0') { ++ table.appendChild(E('tr', { 'class': 'tr' }, [ ++ E('td', { 'class': 'td', 'colspan': 2, 'style': 'padding: 10px 12px;' }, [ ++ E('div', { 'style': 'display: flex; justify-content: space-around; align-items: center; text-align: center;' }, [ ++ E('a', { 'href': '[https://openwrt.ai/](https://openwrt.ai/)', 'target': '_blank' }, [ '固件下载与定制' ]), ++ E('a', { 'href': '[https://openwrt.ai/fadian/](https://openwrt.ai/fadian/)', 'target': '_blank', 'style': 'color: orangered;' }, [ '赞助' ]), ++ E('a', { 'href': '[https://github.com/kiddin9/Kwrt](https://github.com/kiddin9/Kwrt)', 'target': '_blank' }, [ '源码与反馈' ]), ++ E('a', { 'href': '[https://t.me/opkwrt](https://t.me/opkwrt)', 'target': '_blank' }, [ 'TG交流' ]) ++ ]) ++ ]) ++ ])); ++ } ++ + return table; + } + }); --- a/luci-mod-status/htdocs/luci-static/resources/view/status/nftables.js +++ b/luci-mod-status/htdocs/luci-static/resources/view/status/nftables.js