mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-19 08:19:15 +08:00
feat: 镜像拉取日志 Unicode 转义 (#4239)
This commit is contained in:
parent
ebc3195df4
commit
8cf8375911
@ -162,6 +162,9 @@ const getContent = () => {
|
|||||||
if (!end.value && res.data.end) {
|
if (!end.value && res.data.end) {
|
||||||
lastContent.value = content.value;
|
lastContent.value = content.value;
|
||||||
}
|
}
|
||||||
|
res.data.content = res.data.content.replace(/\\u(\w{4})/g, function (match, grp) {
|
||||||
|
return String.fromCharCode(parseInt(grp, 16));
|
||||||
|
});
|
||||||
data.value = res.data;
|
data.value = res.data;
|
||||||
if (res.data.content != '') {
|
if (res.data.content != '') {
|
||||||
if (stopSignals.some((signal) => res.data.content.endsWith(signal))) {
|
if (stopSignals.some((signal) => res.data.content.endsWith(signal))) {
|
||||||
|
@ -110,7 +110,12 @@
|
|||||||
<Status :key="row.state" :status="row.state"></Status>
|
<Status :key="row.state" :status="row.state"></Status>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column :label="$t('container.source')" show-overflow-tooltip min-width="100">
|
<el-table-column
|
||||||
|
:label="$t('container.source')"
|
||||||
|
show-overflow-tooltip
|
||||||
|
prop="resource"
|
||||||
|
min-width="100"
|
||||||
|
>
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<div v-if="row.hasLoad">
|
<div v-if="row.hasLoad">
|
||||||
<div class="source-font">CPU: {{ row.cpuPercent.toFixed(2) }}%</div>
|
<div class="source-font">CPU: {{ row.cpuPercent.toFixed(2) }}%</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user