Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
疯人忠
Cvat
提交
91a7714b
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,发现更多精彩内容 >>
提交
91a7714b
编写于
12月 25, 2018
作者:
N
Nikita Manovich
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'origin/release-0.3' into develop
上级
407f1a64
ac97df83
变更
6
展开全部
隐藏空白更改
内联
并排
Showing
6 changed file
with
521 addition
and
379 deletion
+521
-379
cvat/apps/engine/static/engine/js/base.js
cvat/apps/engine/static/engine/js/base.js
+0
-26
cvat/apps/engine/static/engine/js/idGenerator.js
cvat/apps/engine/static/engine/js/idGenerator.js
+36
-0
cvat/apps/engine/static/engine/js/qunitTests.js
cvat/apps/engine/static/engine/js/qunitTests.js
+482
-353
cvat/apps/engine/templates/engine/base.html
cvat/apps/engine/templates/engine/base.html
+1
-0
tests/eslintrc.conf.js
tests/eslintrc.conf.js
+1
-0
tests/karma.conf.js
tests/karma.conf.js
+1
-0
未找到文件。
cvat/apps/engine/static/engine/js/base.js
浏览文件 @
91a7714b
...
...
@@ -6,8 +6,6 @@
/* exported
ExportType
IncrementIdGenerator
ConstIdGenerator
confirm
createExportContainer
dumpAnnotationRequest
...
...
@@ -245,30 +243,6 @@ function getExportTargetContainer(export_type, shape_type, container) {
return
shape_container_target
;
}
class
IncrementIdGenerator
{
constructor
(
startId
=
0
)
{
this
.
_startId
=
startId
;
}
next
()
{
return
this
.
_startId
++
;
}
reset
(
startId
=
0
)
{
this
.
_startId
=
startId
;
}
}
class
ConstIdGenerator
{
constructor
(
startId
=-
1
)
{
this
.
_startId
=
startId
;
}
next
()
{
return
this
.
_startId
;
}
}
/* These HTTP methods do not require CSRF protection */
function
csrfSafeMethod
(
method
)
{
return
(
/^
(
GET|HEAD|OPTIONS|TRACE
)
$/
.
test
(
method
));
...
...
cvat/apps/engine/static/engine/js/idGenerator.js
0 → 100644
浏览文件 @
91a7714b
/*
* Copyright (C) 2018 Intel Corporation
*
* SPDX-License-Identifier: MIT
*/
/* exported
IncrementIdGenerator
ConstIdGenerator
*/
"
use strict
"
;
class
IncrementIdGenerator
{
constructor
(
startId
=
0
)
{
this
.
_startId
=
startId
;
}
next
()
{
return
this
.
_startId
++
;
}
reset
(
startId
=
0
)
{
this
.
_startId
=
startId
;
}
}
class
ConstIdGenerator
{
constructor
(
startId
=-
1
)
{
this
.
_startId
=
startId
;
}
next
()
{
return
this
.
_startId
;
}
}
cvat/apps/engine/static/engine/js/qunitTests.js
浏览文件 @
91a7714b
此差异已折叠。
点击以展开。
cvat/apps/engine/templates/engine/base.html
浏览文件 @
91a7714b
...
...
@@ -37,6 +37,7 @@
{% compress js file cvat %}
{% block head_js_cvat %}
<script
type=
"text/javascript"
src=
"{% static 'engine/js/base.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'engine/js/idGenerator.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'engine/js/userConfig.js' %}"
></script>
{% endblock %}
{% endcompress %}
...
...
tests/eslintrc.conf.js
浏览文件 @
91a7714b
...
...
@@ -52,6 +52,7 @@ module.exports = {
'
createExportContainer
'
:
true
,
'
ExportType
'
:
true
,
'
getExportTargetContainer
'
:
true
,
// from idGenerator.js
'
IncrementIdGenerator
'
:
true
,
'
ConstIdGenerator
'
:
true
,
// from shapeCollection.js
...
...
tests/karma.conf.js
浏览文件 @
91a7714b
...
...
@@ -10,6 +10,7 @@ module.exports = function(config) {
basePath
:
path
.
join
(
process
.
env
.
HOME
,
'
cvat/apps/
'
),
frameworks
:
[
'
qunit
'
],
files
:
[
'
engine/static/engine/js/idGenerator.js
'
,
'
engine/static/engine/js/labelsInfo.js
'
,
'
engine/static/engine/js/annotationParser.js
'
,
'
engine/static/engine/js/listener.js
'
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录