Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
疯人忠
Cvat
提交
f0311a92
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,发现更多精彩内容 >>
未验证
提交
f0311a92
编写于
12月 31, 2022
作者:
R
Roman Donchenko
提交者:
GitHub
12月 31, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix some ESLint errors in cvat-core (#5537)
All of which are about old-style imports.
上级
d2a48306
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
10 addition
and
10 deletion
+10
-10
cvat-core/src/download.worker.js
cvat-core/src/download.worker.js
+1
-1
cvat-core/src/project-implementation.ts
cvat-core/src/project-implementation.ts
+4
-4
cvat-core/src/project.ts
cvat-core/src/project.ts
+5
-5
未找到文件。
cvat-core/src/download.worker.js
浏览文件 @
f0311a92
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
//
//
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: MIT
const
Axios
=
require
(
'
axios
'
)
;
import
Axios
from
'
axios
'
;
Axios
.
defaults
.
withCredentials
=
true
;
Axios
.
defaults
.
withCredentials
=
true
;
Axios
.
defaults
.
xsrfHeaderName
=
'
X-CSRFTOKEN
'
;
Axios
.
defaults
.
xsrfHeaderName
=
'
X-CSRFTOKEN
'
;
...
...
cvat-core/src/project-implementation.ts
浏览文件 @
f0311a92
...
@@ -5,11 +5,11 @@
...
@@ -5,11 +5,11 @@
import
{
Storage
}
from
'
./storage
'
;
import
{
Storage
}
from
'
./storage
'
;
const
serverProxy
=
require
(
'
./server-proxy
'
).
default
;
import
serverProxy
from
'
./server-proxy
'
;
const
{
getPreview
}
=
require
(
'
./frames
'
)
;
import
{
getPreview
}
from
'
./frames
'
;
const
Project
=
require
(
'
./project
'
).
default
;
import
Project
from
'
./project
'
;
const
{
exportDataset
,
importDataset
}
=
require
(
'
./annotations
'
)
;
import
{
exportDataset
,
importDataset
}
from
'
./annotations
'
;
export
default
function
implementProject
(
projectClass
)
{
export
default
function
implementProject
(
projectClass
)
{
projectClass
.
prototype
.
save
.
implementation
=
async
function
()
{
projectClass
.
prototype
.
save
.
implementation
=
async
function
()
{
...
...
cvat-core/src/project.ts
浏览文件 @
f0311a92
...
@@ -6,11 +6,11 @@
...
@@ -6,11 +6,11 @@
import
{
StorageLocation
}
from
'
./enums
'
;
import
{
StorageLocation
}
from
'
./enums
'
;
import
{
Storage
}
from
'
./storage
'
;
import
{
Storage
}
from
'
./storage
'
;
const
PluginRegistry
=
require
(
'
./plugins
'
).
default
;
import
PluginRegistry
from
'
./plugins
'
;
const
{
ArgumentError
}
=
require
(
'
./exceptions
'
)
;
import
{
ArgumentError
}
from
'
./exceptions
'
;
const
{
Label
}
=
require
(
'
./labels
'
)
;
import
{
Label
}
from
'
./labels
'
;
const
User
=
require
(
'
./user
'
).
default
;
import
User
from
'
./user
'
;
const
{
FieldUpdateTrigger
}
=
require
(
'
./common
'
)
;
import
{
FieldUpdateTrigger
}
from
'
./common
'
;
/**
/**
* Class representing a project
* Class representing a project
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录