mirror of
https://github.com/whyour/qinglong.git
synced 2026-08-12 19:30:48 +08:00
fix: address dashboard scope and preview interactions
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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' },
|
||||
|
||||
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user