Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
疯人忠
Cvat
提交
ba49fc40
C
Cvat
项目概览
疯人忠
/
Cvat
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
Cvat
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
ba49fc40
编写于
2月 02, 2023
作者:
M
Maria Khrustaleva
提交者:
GitHub
2月 02, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove limit on maximum number of manifest files that can be added for cloud storage (#5660)
上级
4df7c4c2
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
5 addition
and
23 deletion
+5
-23
CHANGELOG.md
CHANGELOG.md
+1
-1
cvat-ui/package.json
cvat-ui/package.json
+1
-1
cvat-ui/src/components/create-cloud-storage-page/manifests-manager.tsx
...omponents/create-cloud-storage-page/manifests-manager.tsx
+3
-21
未找到文件。
CHANGELOG.md
浏览文件 @
ba49fc40
...
...
@@ -43,7 +43,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
-
TDB
### Removed
-
TDB
-
Limit on the maximum number of manifest files that can be added for cloud storage (
<https://github.com/opencv/cvat/pull/5660>
)
### Fixed
-
Helm: Empty password for Redis (
<https://github.com/opencv/cvat/pull/5520>
)
...
...
cvat-ui/package.json
浏览文件 @
ba49fc40
{
"name"
:
"cvat-ui"
,
"version"
:
"1.48.
0
"
,
"version"
:
"1.48.
1
"
,
"description"
:
"CVAT single-page application"
,
"main"
:
"src/index.tsx"
,
"scripts"
:
{
...
...
cvat-ui/src/components/create-cloud-storage-page/manifests-manager.tsx
浏览文件 @
ba49fc40
// Copyright (C) 2021-2022 Intel Corporation
// Copyright (C) 2023 CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT
import
React
,
{
useEffect
,
useRef
,
useState
}
from
'
react
'
;
import
React
,
{
useEffect
}
from
'
react
'
;
import
{
DeleteOutlined
,
PlusCircleOutlined
,
QuestionCircleOutlined
}
from
'
@ant-design/icons
'
;
import
Button
from
'
antd/lib/button
'
;
import
Col
from
'
antd/lib/col
'
;
...
...
@@ -10,7 +11,6 @@ import Form, { RuleObject } from 'antd/lib/form';
import
{
FormListFieldData
,
FormListOperation
}
from
'
antd/lib/form/FormList
'
;
import
Input
from
'
antd/lib/input
'
;
import
Row
from
'
antd/lib/row
'
;
import
notification
from
'
antd/lib/notification
'
;
import
Tooltip
from
'
antd/lib/tooltip
'
;
import
config
from
'
config
'
;
...
...
@@ -22,8 +22,6 @@ interface Props {
export
default
function
ManifestsManager
(
props
:
Props
):
JSX
.
Element
{
const
{
form
,
manifestNames
,
setManifestNames
}
=
props
;
const
maxManifestsCount
=
useRef
(
5
);
const
[
limitingAddingManifestNotification
,
setLimitingAddingManifestNotification
]
=
useState
(
false
);
const
{
DATASET_MANIFEST_GUIDE_URL
}
=
config
;
const
updateManifestFields
=
():
void
=>
{
...
...
@@ -40,15 +38,6 @@ export default function ManifestsManager(props: Props): JSX.Element {
updateManifestFields
();
},
[
manifestNames
]);
useEffect
(()
=>
{
if
(
limitingAddingManifestNotification
)
{
notification
.
warning
({
message
:
`Unable to add manifest. The maximum number of files is
${
maxManifestsCount
.
current
}
`
,
className
:
'
cvat-notification-limiting-adding-manifest
'
,
});
}
},
[
limitingAddingManifestNotification
]);
const
onChangeManifestPath
=
(
manifestName
:
string
|
undefined
,
manifestId
:
number
):
void
=>
{
if
(
manifestName
!==
undefined
)
{
setManifestNames
(
manifestNames
.
map
((
name
,
idx
)
=>
(
idx
!==
manifestId
?
name
:
manifestName
)));
...
...
@@ -56,18 +45,11 @@ export default function ManifestsManager(props: Props): JSX.Element {
};
const
onDeleteManifestItem
=
(
key
:
number
):
void
=>
{
if
(
maxManifestsCount
.
current
===
manifestNames
.
length
&&
limitingAddingManifestNotification
)
{
setLimitingAddingManifestNotification
(
false
);
}
setManifestNames
(
manifestNames
.
filter
((
name
,
idx
)
=>
idx
!==
key
));
};
const
onAddManifestItem
=
():
void
=>
{
if
(
maxManifestsCount
.
current
<=
manifestNames
.
length
)
{
setLimitingAddingManifestNotification
(
true
);
}
else
{
setManifestNames
(
manifestNames
.
concat
([
''
]));
}
};
return
(
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录