fix: address dashboard scope and preview interactions

This commit is contained in:
whyour
2026-08-10 23:40:53 +08:00
parent 6618240c61
commit 2ac4f07fca
3 changed files with 13 additions and 0 deletions
+2
View File
@@ -130,6 +130,8 @@ const CronDetailModal = ({
{(item) => (
<List.Item
className="log-item"
onClick={() => item.log_path && viewInstanceLog(item)}
style={{ cursor: item.log_path ? 'pointer' : 'default' }}
actions={[
item.log_path && (
<Tooltip title={intl.get('查看日志')} key="log">
+5
View File
@@ -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' },
+6
View File
@@ -10,6 +10,12 @@ interface FileTypeConfig {
// 文件类型分类配置(只包含特殊文件类型)
const fileTypeConfigs: Record<string, FileTypeConfig> = {
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: [