完善新建订阅页面

This commit is contained in:
whyour
2022-05-14 19:21:24 +08:00
parent 419c5a7c5b
commit 5a21247cbb
7 changed files with 110 additions and 38 deletions
+8 -2
View File
@@ -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={{
-2
View File
@@ -123,8 +123,6 @@ const CronLogModal = ({
centered
className="log-modal"
bodyStyle={{
overflowY: 'auto',
maxHeight: 'calc(80vh - var(--vh-offset, 0px))',
minHeight: '300px',
}}
forceRender