🎄 Sync 2026-09-26 02:25:56

This commit is contained in:
github-actions[bot] committed 2026-09-26 02:25:56 +08:00
1 parent 99196a85d3
commit 4136a9b488
73 files changed
+2401 -4124

No files matched your search

@@ -295,7 +295,7 @@ return view.extend({
function applyFilter() {
const f = state.filter;
pane.querySelectorAll('.dd-line').forEach(function(el) {
if (matchesFilter(el.textContent, f))
if (matchesFilter(el._rawLine, f))
el.classList.remove('dd-hidden');
else
el.classList.add('dd-hidden');
@@ -309,6 +309,7 @@ return view.extend({
const ln = lines[i];
if (!ln) continue;
const el = buildLine(ln);
el._rawLine = ln;
if (!matchesFilter(ln, state.filter))
el.classList.add('dd-hidden');
frag.appendChild(el);
@@ -446,17 +446,19 @@ return view.extend({
healthBody.appendChild(mkRow('✓', 'dd-up-ok', _('Hot reload'), _('/etc/init.d/dae hot_reload is available')));
}
if (ctx.backend.useNetns && ns && ns.exists) {
if (ctx.backend.useNetns && ns && ns.exists && running[ctx.name]) {
healthBody.appendChild(mkRow('✓', 'dd-up-ok', _('netns daens'), HEALTH_PATHS.netns + ' · ' + _('in use by daed')));
} else if (ctx.backend.useNetns && ns && ns.exists) {
const btn = E('button', { 'class': 'dd-up-btn' }, _('Clean'));
btn.addEventListener('click', function() {
const daedRunning = !!(running && running[ctx.name]);
const msg = daedRunning
? _('%s is running. Deleting the daens netns now will break its networking until you restart it. Continue?').format(ctx.name)
: _('Delete the daens netns?');
if (!confirm(msg))
return;
btn.disabled = true;
fs.exec('/sbin/ip', ['netns', 'del', 'daens']).finally(function() { btn.disabled = false; });
backend.detectRunning().then(function(now) {
const msg = now[ctx.name]
? _('%s is running. Deleting the daens netns now will break its networking until you restart it. Continue?').format(ctx.name)
: _('Delete the daens netns?');
if (confirm(msg))
return fs.exec('/sbin/ip', ['netns', 'del', 'daens']);
}).finally(function() { btn.disabled = false; });
});
healthBody.appendChild(mkRow('⚠', 'dd-up-warn', _('netns daens'), HEALTH_PATHS.netns + ' · ' + _('exists, may block daed start'), btn));
} else if (ctx.backend.useNetns) {