mirror of
https://github.com/qingchencloud/clawpanel.git
synced 2026-05-06 20:02:49 +08:00
feat(cron): register cron page in router + sidebar, fix Gateway RPC call formats
- main.js: register /cron route
- sidebar.js: add '定时任务' to '数据' section
- cron.js: fix RPC params to match Gateway API:
- cron.list: add includeDisabled param
- cron.add: use structured schedule{kind,expr} + payload{kind,message}
- cron.update: use patch format
- cron.run: add mode:'force'
- Map Gateway CronJob state fields (lastRunStatus, lastRunAtMs, etc)
This commit is contained in:
@@ -33,6 +33,7 @@ const NAV_ITEMS_FULL = [
|
||||
section: '数据',
|
||||
items: [
|
||||
{ route: '/memory', label: '记忆文件', icon: 'memory' },
|
||||
{ route: '/cron', label: '定时任务', icon: 'clock' },
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -304,6 +304,7 @@ async function boot() {
|
||||
registerRoute('/setup', () => import('./pages/setup.js'))
|
||||
registerRoute('/docker', () => import('./pages/docker.js'))
|
||||
registerRoute('/channels', () => import('./pages/channels.js'))
|
||||
registerRoute('/cron', () => import('./pages/cron.js'))
|
||||
|
||||
renderSidebar(sidebar)
|
||||
initRouter(content)
|
||||
|
||||
Reference in New Issue
Block a user