🐤 Sync 2026-05-08 20:31:49

This commit is contained in:
github-actions[bot] committed 2026-05-08 20:31:49 +08:00
1 parent dc55b8fdfe
commit e2f4c3d0b5
22 files changed
+738 -92

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ LUCI_TITLE:=Design Theme
LUCI_DEPENDS:=
PKG_LICENSE:=Apache-2.0
PKG_VERSION:=7.1
PKG_RELEASE:=5
PKG_RELEASE:=6
LUCI_MINIFY_CSS:=
CONFIG_LUCI_CSSTIDY:=
@@ -4735,6 +4735,45 @@ body.modal-overlay-active #modal_overlay .modal.cbi-modal .cbi-value-field.cbi-d
margin-bottom: 1rem;
}
body.node-admin-services-dockerman-overview[data-page="admin-services-dockerman"] .table.cbi-section-table {
width: 100% !important;
table-layout: fixed !important;
}
body.node-admin-services-dockerman-overview[data-page="admin-services-dockerman"] .table.cbi-section-table .tr > .td,
body.node-admin-services-dockerman-overview[data-page="admin-services-dockerman"] .table.cbi-section-table .tr > .th {
display: table-cell !important;
vertical-align: top !important;
}
body.node-admin-services-dockerman-overview[data-page="admin-services-dockerman"] .table.cbi-section-table .tr > .td:first-child,
body.node-admin-services-dockerman-overview[data-page="admin-services-dockerman"] .table.cbi-section-table .tr > .th:first-child {
width: 14rem !important;
}
body.node-admin-services-dockerman-overview[data-page="admin-services-dockerman"] .table.cbi-section-table .td[data-title="Entry"],
body.node-admin-services-dockerman-overview[data-page="admin-services-dockerman"] .table.cbi-section-table .th[data-title="Entry"] {
width: 14rem !important;
}
body.node-admin-services-dockerman-overview[data-page="admin-services-dockerman"] .table.cbi-section-table .td[data-title="Value"],
body.node-admin-services-dockerman-overview[data-page="admin-services-dockerman"] .table.cbi-section-table .td[data-title="值"] {
text-align: center !important;
white-space: normal !important;
}
body.node-admin-services-dockerman-overview[data-page="admin-services-dockerman"] .table.cbi-section-table .td[data-title="Value"] output,
body.node-admin-services-dockerman-overview[data-page="admin-services-dockerman"] .table.cbi-section-table .td[data-title="值"] output {
display: block !important;
width: min(100%, 72rem);
max-width: 100%;
margin: 0 auto;
white-space: normal !important;
overflow-wrap: anywhere !important;
word-break: break-word !important;
text-align: center !important;
}
[data-page="admin-network-network"] .ifacebox {
margin: 0.5rem;
border-radius: 8px;
@@ -77,12 +77,32 @@ return baseclass.extend({
window.location.replace(url.toString());
},
getFileListStamp: function(path, suffix) {
return L.resolveDefault(fs.list(path), []).then(function(entries) {
return entries.filter(function(entry) {
return entry && entry.type === 'file' &&
(suffix == null || entry.name.endsWith(suffix));
}).map(function(entry) {
return [ entry.name, entry.mtime || 0, entry.size || 0 ].join(':');
}).sort().join('|');
});
},
getConditionalMenuStamp: function() {
var googleFuMode = !!document.querySelector('.navbar a[href*="/admin/services/openclash"]');
return Promise.resolve(JSON.stringify({
google_fu_mode: googleFuMode
}));
return Promise.all([
this.getFileListStamp('/usr/share/luci/menu.d', '.json'),
this.getFileListStamp('/usr/share/rpcd/acl.d', '.json'),
L.resolveDefault(fs.stat('/etc/config/wireless'), null)
]).then(function(stamps) {
return JSON.stringify({
google_fu_mode: googleFuMode,
menu_definitions: stamps[0],
acl_definitions: stamps[1],
wireless_config: stamps[2] ? [ stamps[2].mtime || 0, stamps[2].size || 0 ].join(':') : 'absent'
});
});
},
flushBackendMenuCache: function() {
@@ -4,10 +4,13 @@ import { glob, unlink } from 'fs';
return {
menu_flush: function() {
for (let path in glob('/tmp/luci-indexcache', '/tmp/luci-indexcache.*'))
for (let path in glob(
'/tmp/luci-indexcache', '/tmp/luci-indexcache.*',
'/var/luci-indexcache', '/var/luci-indexcache.*'
))
unlink(path);
system('rm -rf /tmp/luci-modulecache 2>/dev/null');
system('rm -rf /tmp/luci-modulecache /var/luci-modulecache 2>/dev/null');
http.prepare_content('application/json');
http.write_json({ flushed: true });