mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 14:56:07 +08:00
修复环境变量中单引号转义
This commit is contained in:
parent
461fa8e131
commit
fe934fa4af
|
@ -202,9 +202,7 @@ export default class EnvService {
|
||||||
let value = group
|
let value = group
|
||||||
.map((x) => x.value)
|
.map((x) => x.value)
|
||||||
.join('&')
|
.join('&')
|
||||||
.replace(/(\\)[^n]/g, '\\\\')
|
.replace(/'/g, "'\\''")
|
||||||
.replace(/(\\$)/, '\\\\')
|
|
||||||
.replace(/'/g, "\\'")
|
|
||||||
.trim();
|
.trim();
|
||||||
env_string += `export ${key}='${value}'\n`;
|
env_string += `export ${key}='${value}'\n`;
|
||||||
}
|
}
|
||||||
|
|
|
@ -390,9 +390,10 @@ select:-webkit-autofill:focus {
|
||||||
}
|
}
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
word-break: break-all !important;
|
word-break: break-all;
|
||||||
white-space: break-spaces !important;
|
white-space: break-spaces;
|
||||||
padding: 0 !important;
|
padding: 0;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.virtuallist {
|
.virtuallist {
|
||||||
|
|
|
@ -241,7 +241,6 @@ const EditModal = ({
|
||||||
/>
|
/>
|
||||||
<pre
|
<pre
|
||||||
style={{
|
style={{
|
||||||
height: '100%',
|
|
||||||
padding: '0 15px',
|
padding: '0 15px',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|
|
@ -75,16 +75,7 @@ const CheckUpdate = ({ socketMessage, systemInfo }: any) => {
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
),
|
),
|
||||||
content: (
|
content: <pre>{lastLog}</pre>,
|
||||||
<pre
|
|
||||||
style={{
|
|
||||||
fontSize: 12,
|
|
||||||
fontWeight: 400,
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{lastLog}
|
|
||||||
</pre>
|
|
||||||
),
|
|
||||||
okText: intl.get('下载更新'),
|
okText: intl.get('下载更新'),
|
||||||
cancelText: intl.get('以后再说'),
|
cancelText: intl.get('以后再说'),
|
||||||
onOk() {
|
onOk() {
|
||||||
|
@ -109,16 +100,7 @@ const CheckUpdate = ({ socketMessage, systemInfo }: any) => {
|
||||||
okButtonProps: { disabled: true },
|
okButtonProps: { disabled: true },
|
||||||
title: intl.get('下载更新中...'),
|
title: intl.get('下载更新中...'),
|
||||||
centered: true,
|
centered: true,
|
||||||
content: (
|
content: <pre>{value}</pre>,
|
||||||
<pre
|
|
||||||
style={{
|
|
||||||
fontSize: 12,
|
|
||||||
fontWeight: 400,
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{value}
|
|
||||||
</pre>
|
|
||||||
),
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -185,14 +167,7 @@ const CheckUpdate = ({ socketMessage, systemInfo }: any) => {
|
||||||
okButtonProps: { disabled: !updateFailed },
|
okButtonProps: { disabled: !updateFailed },
|
||||||
content: (
|
content: (
|
||||||
<>
|
<>
|
||||||
<pre
|
<pre>{newMessage}</pre>
|
||||||
style={{
|
|
||||||
fontSize: 12,
|
|
||||||
fontWeight: 400,
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{newMessage}
|
|
||||||
</pre>
|
|
||||||
<div id="log-identifier" style={{ paddingBottom: 5 }}></div>
|
<div id="log-identifier" style={{ paddingBottom: 5 }}></div>
|
||||||
</>
|
</>
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user