mirror of
https://github.com/whyour/qinglong.git
synced 2026-08-13 04:02:56 +08:00
fix: address dashboard scope and preview interactions
This commit is contained in:
@@ -130,6 +130,8 @@ const CronDetailModal = ({
|
|||||||
{(item) => (
|
{(item) => (
|
||||||
<List.Item
|
<List.Item
|
||||||
className="log-item"
|
className="log-item"
|
||||||
|
onClick={() => item.log_path && viewInstanceLog(item)}
|
||||||
|
style={{ cursor: item.log_path ? 'pointer' : 'default' }}
|
||||||
actions={[
|
actions={[
|
||||||
item.log_path && (
|
item.log_path && (
|
||||||
<Tooltip title={intl.get('查看日志')} key="log">
|
<Tooltip title={intl.get('查看日志')} key="log">
|
||||||
|
|||||||
@@ -48,6 +48,10 @@ export default {
|
|||||||
name: intl.get('系统信息'),
|
name: intl.get('系统信息'),
|
||||||
value: 'system',
|
value: 'system',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: intl.get('仪表盘'),
|
||||||
|
value: 'dashboard',
|
||||||
|
},
|
||||||
],
|
],
|
||||||
scopesMap: {
|
scopesMap: {
|
||||||
crons: intl.get('定时任务'),
|
crons: intl.get('定时任务'),
|
||||||
@@ -58,6 +62,7 @@ export default {
|
|||||||
logs: intl.get('日志管理'),
|
logs: intl.get('日志管理'),
|
||||||
dependencies: intl.get('依赖管理'),
|
dependencies: intl.get('依赖管理'),
|
||||||
system: intl.get('系统信息'),
|
system: intl.get('系统信息'),
|
||||||
|
dashboard: intl.get('仪表盘'),
|
||||||
},
|
},
|
||||||
notificationModes: [
|
notificationModes: [
|
||||||
{ value: 'gotify', label: 'Gotify' },
|
{ value: 'gotify', label: 'Gotify' },
|
||||||
|
|||||||
@@ -10,6 +10,12 @@ interface FileTypeConfig {
|
|||||||
|
|
||||||
// 文件类型分类配置(只包含特殊文件类型)
|
// 文件类型分类配置(只包含特殊文件类型)
|
||||||
const fileTypeConfigs: Record<string, 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: {
|
frontend: {
|
||||||
extensions: [
|
extensions: [
|
||||||
|
|||||||
Reference in New Issue
Block a user