diff --git a/src/pages/crontab/detail.tsx b/src/pages/crontab/detail.tsx index 172c0872..1baf32ef 100644 --- a/src/pages/crontab/detail.tsx +++ b/src/pages/crontab/detail.tsx @@ -130,6 +130,8 @@ const CronDetailModal = ({ {(item) => ( item.log_path && viewInstanceLog(item)} + style={{ cursor: item.log_path ? 'pointer' : 'default' }} actions={[ item.log_path && ( diff --git a/src/utils/config.ts b/src/utils/config.ts index e5ee7f1b..3140c091 100644 --- a/src/utils/config.ts +++ b/src/utils/config.ts @@ -48,6 +48,10 @@ export default { name: intl.get('系统信息'), value: 'system', }, + { + name: intl.get('仪表盘'), + value: 'dashboard', + }, ], scopesMap: { crons: intl.get('定时任务'), @@ -58,6 +62,7 @@ export default { logs: intl.get('日志管理'), dependencies: intl.get('依赖管理'), system: intl.get('系统信息'), + dashboard: intl.get('仪表盘'), }, notificationModes: [ { value: 'gotify', label: 'Gotify' }, diff --git a/src/utils/monaco/index.ts b/src/utils/monaco/index.ts index d9a0bc74..6ca2fb39 100644 --- a/src/utils/monaco/index.ts +++ b/src/utils/monaco/index.ts @@ -10,6 +10,12 @@ interface FileTypeConfig { // 文件类型分类配置(只包含特殊文件类型) const fileTypeConfigs: Record = { + config: { + // Keep common text configuration files previewable even when a Monaco + // build has not registered its optional INI language contribution yet. + extensions: ['.ini'], + }, + // 前端特殊文件 frontend: { extensions: [