🌈 Sync 2026-04-08 22:17:33

This commit is contained in:
github-actions[bot] committed 2026-04-08 22:17:33 +08:00
1 parent babac663b9
commit 5fb3abba3a
23 files changed
+1227 -868

No files matched your search

@@ -114,7 +114,7 @@ return view.extend({
o = s.option(form.Flag, 'scheduled_restart', _('Scheduled Restart'));
o.rmempty = false;
o = s.option(form.Value, 'cron_expression', _('Cron Expression'));
o = s.option(form.Value, 'scheduled_restart_cron', _('Scheduled Restart Cron'));
o.retain = true;
o.rmempty = false;
o.depends('scheduled_restart', '1');
@@ -24,6 +24,30 @@ return view.extend({
s = m.section(form.NamedSection, 'log', 'log', _('Log'));
s.tab('log_config', _('Log Config'));
o = s.taboption('log_config', form.Flag, 'scheduled_clear', _('Scheduled Clear'));
o.rmempty = false;
o = s.taboption('log_config', form.Value, 'scheduled_clear_cron', _('Scheduled Clear Cron'));
o.retain = true;
o.rmempty = false;
o.depends('scheduled_clear', '1');
o = s.taboption('log_config', form.Value, 'scheduled_clear_size_limit', _('Scheduled Clear Size Limit'));
o.retain = true;
o.rmempty = false;
o.datatype = 'uinteger';
o.depends('scheduled_clear', '1');
o = s.taboption('log_config', form.ListValue, 'scheduled_clear_size_limit_unit', _('Scheduled Clear Size Limit Unit'));
o.retain = true;
o.rmempty = false;
o.depends('scheduled_clear', '1');
o.value('KB', 'KB');
o.value('MB', 'MB');
o.value('GB', 'GB');
s.tab('app_log', _('App Log'));
o = s.taboption('app_log', form.Button, 'clear_app_log');
@@ -117,8 +141,5 @@ return view.extend({
};
return m.render();
},
handleSaveApply: null,
handleSave: null,
handleReset: null
}
});