fix: clarify built-in and system scheduler labels

This commit is contained in:
whyour committed 2026-11-20 00:53:16 +08:00
1 parent 2070931c82
commit 0902bc074d
4 files changed
+8 -8

No files matched your search

+2 -2
View File
@@ -907,8 +907,8 @@
"搜索脚本名称": "Search script names", "搜索脚本名称": "Search script names",
"排队中 {runs} 次,涉及 {tasks} 个任务": "Queued runs: {runs} across {tasks} tasks", "排队中 {runs} 次,涉及 {tasks} 个任务": "Queued runs: {runs} across {tasks} tasks",
"今日定时调度": "Today's scheduled triggers", "今日定时调度": "Today's scheduled triggers",
"由青龙触发": "Triggered by Qinglong", "内置调度": "Built-in scheduler",
"由系统触发(crond)": "Triggered by system cron", "系统调度(crond)": "System scheduler (crond)",
"按计划统计": "Scheduled occurrences", "按计划统计": "Scheduled occurrences",
"按触发记录统计(共 {count} 条)": "Trigger records ({count} total)", "按触发记录统计(共 {count} 条)": "Trigger records ({count} total)",
"跳过次数": "Skipped runs", "跳过次数": "Skipped runs",
+2 -2
View File
@@ -907,8 +907,8 @@
"搜索脚本名称": "搜索脚本名称", "搜索脚本名称": "搜索脚本名称",
"排队中 {runs} 次,涉及 {tasks} 个任务": "排队中 {runs} 次,涉及 {tasks} 个任务", "排队中 {runs} 次,涉及 {tasks} 个任务": "排队中 {runs} 次,涉及 {tasks} 个任务",
"今日定时调度": "今日定时调度", "今日定时调度": "今日定时调度",
"由青龙触发": "由青龙触发", "内置调度": "内置调度",
"由系统触发(crond)": "由系统触发(crond)", "系统调度(crond)": "系统调度(crond)",
"按计划统计": "按计划统计", "按计划统计": "按计划统计",
"按触发记录统计(共 {count} 条)": "按触发记录统计(共 {count} 条)", "按触发记录统计(共 {count} 条)": "按触发记录统计(共 {count} 条)",
"跳过次数": "跳过次数", "跳过次数": "跳过次数",
+2 -2
View File
@@ -325,7 +325,7 @@ const Dashboard = () => {
]; ];
sources.push({ sources.push({
key: 'panel', key: 'panel',
label: intl.get('由青龙触发'), label: intl.get('内置调度'),
help: <> help: <>
{audit.partial && <p className="schedule-note">{intl.get('规则切换期间有些计划无法确认。这里只统计能确认的计划,暂不显示准时率。')}</p>} {audit.partial && <p className="schedule-note">{intl.get('规则切换期间有些计划无法确认。这里只统计能确认的计划,暂不显示准时率。')}</p>}
<p className="schedule-note">{intl.get('从 {time} 起统计,最近 5 秒暂不计入。触发时间与计划相差不超过 5 秒算准时。准时率 = 准时触发次数 ÷ 计划触发次数。', { <p className="schedule-note">{intl.get('从 {time} 起统计,最近 5 秒暂不计入。触发时间与计划相差不超过 5 秒算准时。准时率 = 准时触发次数 ÷ 计划触发次数。', {
@@ -363,7 +363,7 @@ const Dashboard = () => {
if (systemAudit) { if (systemAudit) {
sources.push({ sources.push({
key: 'system', key: 'system',
label: intl.get('由系统触发(crond)'), label: intl.get('系统调度(crond)'),
help: <> help: <>
<p className="schedule-note">{intl.get('同一计划多出的记录计为重复。只有明确记录的跳过才计入跳过次数。记录写入前中断的派发无法核实。')}</p> <p className="schedule-note">{intl.get('同一计划多出的记录计为重复。只有明确记录的跳过才计入跳过次数。记录写入前中断的派发无法核实。')}</p>
<p className="schedule-note">{intl.get('上次成功安装规则')} {systemAudit.confirmedAt ? new Date(systemAudit.confirmedAt).toLocaleString() : '—'} <p className="schedule-note">{intl.get('上次成功安装规则')} {systemAudit.confirmedAt ? new Date(systemAudit.confirmedAt).toLocaleString() : '—'}
+2 -2
View File
@@ -116,7 +116,7 @@ export default function ScheduleAnomalies({ selection, close, openLog, onUpdate,
return () => { ctrl.abort(); clearTimeout(timer); clearTimeout(deadline); }; return () => { ctrl.abort(); clearTimeout(timer); clearTimeout(deadline); };
}, [selection, query, onUpdate, onInvalidate]); }, [selection, query, onUpdate, onInvalidate]);
const format = (ms: number) => new Date(ms).toLocaleString(undefined, { timeZone: data?.zone, hour12: false }); const format = (ms: number) => new Date(ms).toLocaleString(undefined, { timeZone: data?.zone, hour12: false });
return <Modal open width={860} title={<>{intl.get(titles[selection.kind])} · {intl.get(selection.source === 'panel' ? '由青龙触发' : '由系统触发(crond)')}</>} onCancel={close} footer={null}> return <Modal open width={860} title={<>{intl.get(titles[selection.kind])} · {intl.get(selection.source === 'panel' ? '内置调度' : '系统调度(crond)')}</>} onCancel={close} footer={null}>
<p>{intl.get('截至 {time} 的计划,明细随回报更新。', { time: format(selection.at - 5000) })}</p> <p>{intl.get('截至 {time} 的计划,明细随回报更新。', { time: format(selection.at - 5000) })}</p>
{failed ? <Alert type="error" message={<>{intl.get('加载失败')} <Button type="link" {failed ? <Alert type="error" message={<>{intl.get('加载失败')} <Button type="link"
onClick={() => setQuery({ ...query })}>{intl.get('重试')}</Button></>} /> : <> onClick={() => setQuery({ ...query })}>{intl.get('重试')}</Button></>} /> : <>
@@ -130,7 +130,7 @@ export default function ScheduleAnomalies({ selection, close, openLog, onUpdate,
{ title: intl.get('任务'), render: (_, r) => <>{r.name || '#' + r.task}<br/><small>{r.rule}</small></> }, { title: intl.get('任务'), render: (_, r) => <>{r.name || '#' + r.task}<br/><small>{r.rule}</small></> },
{ title: intl.get('计划时间'), render: (_, r) => r.time != null ? format(r.time) : <> { title: intl.get('计划时间'), render: (_, r) => r.time != null ? format(r.time) : <>
{intl.get('计划时间无法确定')}<br/><small>{r.observed != null && intl.get('收到于 {time}', {time: format(r.observed)})}</small></> }, {intl.get('计划时间无法确定')}<br/><small>{r.observed != null && intl.get('收到于 {time}', {time: format(r.observed)})}</small></> },
{ title: intl.get('调度来源'), render: (_, r) => intl.get(r.source === 'system' ? '由系统触发(crond)' : r.source === 'recovery' ? '重启补跑' : '由青龙触发') }, { title: intl.get('调度来源'), render: (_, r) => intl.get(r.source === 'system' ? '系统调度(crond)' : r.source === 'recovery' ? '重启补跑' : '内置调度') },
{ title: intl.get('判断原因'), render: (_, r) => explanation(selection.kind, r) }, { title: intl.get('判断原因'), render: (_, r) => explanation(selection.kind, r) },
{ title: intl.get('日志'), render: (_, r) => r.hasLog && r.trigger ? <Button type="link" size="small" { title: intl.get('日志'), render: (_, r) => r.hasLog && r.trigger ? <Button type="link" size="small"
onClick={() => openLog(r.task, r.trigger!, r.name)}>{intl.get('查看日志')}</Button> : '—' }, onClick={() => openLog(r.task, r.trigger!, r.name)}>{intl.get('查看日志')}</Button> : '—' },