mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-18 10:39:20 +08:00
完善新建订阅页面
This commit is contained in:
@@ -41,6 +41,12 @@ const tabList = [
|
||||
tab: '脚本',
|
||||
},
|
||||
];
|
||||
const LangMap: any = {
|
||||
'.py': 'python',
|
||||
'.js': 'javascript',
|
||||
'.sh': 'shell',
|
||||
'.ts': 'typescript',
|
||||
};
|
||||
|
||||
interface LogItem {
|
||||
directory: string;
|
||||
@@ -87,9 +93,9 @@ const CronDetailModal = ({
|
||||
)}
|
||||
/>
|
||||
),
|
||||
script: (
|
||||
script: scriptInfo.filename && (
|
||||
<Editor
|
||||
language="shell"
|
||||
language={LangMap[scriptInfo.filename.slice(-3)] || ''}
|
||||
theme={theme}
|
||||
value={value}
|
||||
options={{
|
||||
|
||||
@@ -123,8 +123,6 @@ const CronLogModal = ({
|
||||
centered
|
||||
className="log-modal"
|
||||
bodyStyle={{
|
||||
overflowY: 'auto',
|
||||
maxHeight: 'calc(80vh - var(--vh-offset, 0px))',
|
||||
minHeight: '300px',
|
||||
}}
|
||||
forceRender
|
||||
|
||||
Reference in New Issue
Block a user