mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-17 17:54:32 +08:00
修改日志脚本文件大小展示
This commit is contained in:
@@ -475,5 +475,6 @@
|
||||
"代理地址, 支持HTTP(S)/SOCK5": "Proxy Address, supports HTTP(S)/SOCK5",
|
||||
"NPM 镜像源": "NPM Mirror Source",
|
||||
"PyPI 镜像源": "PyPI Mirror Source",
|
||||
"alpine linux 镜像源, 例如 https://mirrors.aliyun.com": "Alpine Linux Mirror Source, e.g. https://mirrors.aliyun.com"
|
||||
"alpine linux 镜像源, 例如 https://mirrors.aliyun.com": "Alpine Linux Mirror Source, e.g. https://mirrors.aliyun.com",
|
||||
"如果恢复失败,可进入容器执行": "If recovery fails, you can enter the container and execute"
|
||||
}
|
||||
|
||||
@@ -475,5 +475,6 @@
|
||||
"代理地址, 支持HTTP(S)/SOCK5": "代理地址, 支持HTTP(S)/SOCK5",
|
||||
"NPM 镜像源": "NPM 镜像源",
|
||||
"PyPI 镜像源": "PyPI 镜像源",
|
||||
"alpine linux 镜像源, 例如 https://mirrors.aliyun.com": "alpine linux 镜像源, 例如 https://mirrors.aliyun.com"
|
||||
"alpine linux 镜像源, 例如 https://mirrors.aliyun.com": "alpine linux 镜像源, 例如 https://mirrors.aliyun.com",
|
||||
"如果恢复失败,可进入容器执行": "如果恢复失败,可进入容器执行"
|
||||
}
|
||||
|
||||
+11
-2
@@ -25,6 +25,7 @@ import { depthFirstSearch } from '@/utils';
|
||||
import debounce from 'lodash/debounce';
|
||||
import uniq from 'lodash/uniq';
|
||||
import useFilterTreeData from '@/hooks/useFilterTreeData';
|
||||
import prettyBytes from 'pretty-bytes';
|
||||
|
||||
const { Text } = Typography;
|
||||
|
||||
@@ -186,8 +187,16 @@ const Log = () => {
|
||||
<>
|
||||
{select}
|
||||
{currentNode?.type === 'file' && (
|
||||
<span style={{ marginLeft: 6, fontSize: 12, color: '#999' }}>
|
||||
{(currentNode.size / 1024).toFixed(3)}KB
|
||||
<span
|
||||
style={{
|
||||
marginLeft: 6,
|
||||
fontSize: 12,
|
||||
color: '#999',
|
||||
display: 'inline-block',
|
||||
height: 14,
|
||||
}}
|
||||
>
|
||||
{prettyBytes(currentNode.size)}
|
||||
</span>
|
||||
)}
|
||||
</>
|
||||
|
||||
@@ -45,6 +45,7 @@ import IconFont from '@/components/iconfont';
|
||||
import RenameModal from './renameModal';
|
||||
import { langs } from '@uiw/codemirror-extensions-langs';
|
||||
import { useHotkeys } from 'react-hotkeys-hook';
|
||||
import prettyBytes from 'pretty-bytes';
|
||||
const { Text } = Typography;
|
||||
|
||||
const Script = () => {
|
||||
@@ -466,8 +467,16 @@ const Script = () => {
|
||||
<>
|
||||
{select}
|
||||
{currentNode?.type === 'file' && (
|
||||
<span style={{ marginLeft: 6, fontSize: 12, color: '#999' }}>
|
||||
{(currentNode.size / 1024).toFixed(3)}KB
|
||||
<span
|
||||
style={{
|
||||
marginLeft: 6,
|
||||
fontSize: 12,
|
||||
color: '#999',
|
||||
display: 'inline-block',
|
||||
height: 14,
|
||||
}}
|
||||
>
|
||||
{prettyBytes(currentNode.size)}
|
||||
</span>
|
||||
)}
|
||||
</>
|
||||
|
||||
@@ -132,7 +132,12 @@ const Other = ({
|
||||
maskClosable: false,
|
||||
title: intl.get('确认重启'),
|
||||
centered: true,
|
||||
content: intl.get('备份数据上传成功,确认覆盖数据'),
|
||||
content: (
|
||||
<>
|
||||
<div>{intl.get('备份数据上传成功,确认覆盖数据')}</div>
|
||||
<div>{intl.get('如果恢复失败,可进入容器执行')} ql reload data</div>
|
||||
</>
|
||||
),
|
||||
okText: intl.get('重启'),
|
||||
onOk() {
|
||||
request
|
||||
|
||||
Reference in New Issue
Block a user