mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 06:46:09 +08:00
修复任务详情脚本行数展示
This commit is contained in:
parent
be1d68c0d1
commit
ca8790bbec
|
@ -183,13 +183,21 @@ export default class SystemService {
|
||||||
...oDoc,
|
...oDoc,
|
||||||
info: { ...oDoc.info, ...info },
|
info: { ...oDoc.info, ...info },
|
||||||
});
|
});
|
||||||
let targetDomain = 'dl-cdn.alpinelinux.org';
|
let defaultDomain = 'https://dl-cdn.alpinelinux.org';
|
||||||
|
let targetDomain = 'https://dl-cdn.alpinelinux.org';
|
||||||
|
if (oDoc.info?.linuxMirror) {
|
||||||
|
defaultDomain = oDoc.info.linuxMirror;
|
||||||
|
}
|
||||||
if (info.linuxMirror) {
|
if (info.linuxMirror) {
|
||||||
targetDomain = info.linuxMirror;
|
targetDomain = info.linuxMirror;
|
||||||
}
|
}
|
||||||
const command = `sed -i 's/${
|
const command = `sed -i 's/${defaultDomain.replace(
|
||||||
oDoc.info?.linuxMirror || 'dl-cdn.alpinelinux.org'
|
/\//g,
|
||||||
}/${targetDomain}/g' /etc/apk/repositories && apk update -f`;
|
'\\/',
|
||||||
|
)}/${targetDomain.replace(
|
||||||
|
/\//g,
|
||||||
|
'\\/',
|
||||||
|
)}/g' /etc/apk/repositories && apk update -f`;
|
||||||
|
|
||||||
this.scheduleService.runTask(
|
this.scheduleService.runTask(
|
||||||
command,
|
command,
|
||||||
|
|
|
@ -475,5 +475,5 @@
|
||||||
"代理地址, 支持HTTP(S)/SOCK5": "Proxy Address, supports HTTP(S)/SOCK5",
|
"代理地址, 支持HTTP(S)/SOCK5": "Proxy Address, supports HTTP(S)/SOCK5",
|
||||||
"NPM 镜像源": "NPM Mirror Source",
|
"NPM 镜像源": "NPM Mirror Source",
|
||||||
"PyPI 镜像源": "PyPI Mirror Source",
|
"PyPI 镜像源": "PyPI Mirror Source",
|
||||||
"alpine linux 镜像源, 例如 mirrors.aliyun.com": "Alpine Linux Mirror Source, e.g. mirrors.aliyun.com"
|
"alpine linux 镜像源, 例如 https://mirrors.aliyun.com": "Alpine Linux Mirror Source, e.g. https://mirrors.aliyun.com"
|
||||||
}
|
}
|
||||||
|
|
|
@ -475,5 +475,5 @@
|
||||||
"代理地址, 支持HTTP(S)/SOCK5": "代理地址, 支持HTTP(S)/SOCK5",
|
"代理地址, 支持HTTP(S)/SOCK5": "代理地址, 支持HTTP(S)/SOCK5",
|
||||||
"NPM 镜像源": "NPM 镜像源",
|
"NPM 镜像源": "NPM 镜像源",
|
||||||
"PyPI 镜像源": "PyPI 镜像源",
|
"PyPI 镜像源": "PyPI 镜像源",
|
||||||
"alpine linux 镜像源, 例如 mirrors.aliyun.com": "alpine linux 镜像源, 例如 mirrors.aliyun.com"
|
"alpine linux 镜像源, 例如 https://mirrors.aliyun.com": "alpine linux 镜像源, 例如 https://mirrors.aliyun.com"
|
||||||
}
|
}
|
||||||
|
|
|
@ -107,10 +107,9 @@ const CronDetailModal = ({
|
||||||
value={value}
|
value={value}
|
||||||
options={{
|
options={{
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
|
minimap: { enabled: false },
|
||||||
lineNumbersMinChars: 3,
|
lineNumbersMinChars: 3,
|
||||||
fontFamily: 'Source Code Pro',
|
|
||||||
glyphMargin: false,
|
glyphMargin: false,
|
||||||
wordWrap: 'on',
|
|
||||||
}}
|
}}
|
||||||
onMount={(editor, monaco) => {
|
onMount={(editor, monaco) => {
|
||||||
editorRef.current = editor;
|
editorRef.current = editor;
|
||||||
|
@ -364,7 +363,7 @@ const CronDetailModal = ({
|
||||||
<div className="crontab-title-wrapper">
|
<div className="crontab-title-wrapper">
|
||||||
<div style={{ minWidth: 0 }}>
|
<div style={{ minWidth: 0 }}>
|
||||||
<Typography.Text
|
<Typography.Text
|
||||||
style={{width: '100%'}}
|
style={{ width: '100%' }}
|
||||||
ellipsis={{ tooltip: currentCron.name }}
|
ellipsis={{ tooltip: currentCron.name }}
|
||||||
>
|
>
|
||||||
{currentCron.name}
|
{currentCron.name}
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
max-height: calc(80vh - 57px);
|
max-height: calc(80vh - 57px);
|
||||||
max-height: calc(80vh - var(--vh-offset, 57px));
|
max-height: calc(80vh - var(--vh-offset, 57px));
|
||||||
|
word-wrap: unset;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-card-body {
|
.ant-card-body {
|
||||||
|
@ -197,4 +198,4 @@ body[data-mode='desktop'] {
|
||||||
|
|
||||||
.cron.pinned-cron > td {
|
.cron.pinned-cron > td {
|
||||||
background: #f2f2f2;
|
background: #f2f2f2;
|
||||||
}
|
}
|
||||||
|
|
|
@ -266,11 +266,10 @@ const Log = () => {
|
||||||
options={{
|
options={{
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
|
minimap: { enabled: false },
|
||||||
lineNumbersMinChars: 3,
|
lineNumbersMinChars: 3,
|
||||||
fontFamily: 'Source Code Pro',
|
|
||||||
folding: false,
|
folding: false,
|
||||||
glyphMargin: false,
|
glyphMargin: false,
|
||||||
wordWrap: 'on',
|
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</SplitPane>
|
</SplitPane>
|
||||||
|
|
|
@ -185,7 +185,7 @@ const Dependence = () => {
|
||||||
<Input
|
<Input
|
||||||
style={{ width: 360 }}
|
style={{ width: 360 }}
|
||||||
placeholder={intl.get(
|
placeholder={intl.get(
|
||||||
'alpine linux 镜像源, 例如 mirrors.aliyun.com',
|
'alpine linux 镜像源, 例如 https://mirrors.aliyun.com',
|
||||||
)}
|
)}
|
||||||
value={systemConfig?.linuxMirror}
|
value={systemConfig?.linuxMirror}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user