Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
VisualDL
提交
0be5b06c
V
VisualDL
项目概览
PaddlePaddle
/
VisualDL
大约 1 年 前同步成功
通知
88
Star
4655
Fork
642
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
5
Wiki
分析
仓库
DevOps
项目成员
Pages
V
VisualDL
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
5
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
0be5b06c
编写于
4月 06, 2018
作者:
J
Jeff Wang
提交者:
daminglu
4月 06, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Eslint clean up (#369)
上级
6dfa1d42
变更
27
显示空白变更内容
内联
并排
Showing
27 changed file
with
342 addition
and
68 deletion
+342
-68
.pre-commit-config.yaml
.pre-commit-config.yaml
+7
-7
frontend/.eslintrc.js
frontend/.eslintrc.js
+9
-0
frontend/src/audio/Audio.vue
frontend/src/audio/Audio.vue
+1
-1
frontend/src/audio/ui/AudioPanel.vue
frontend/src/audio/ui/AudioPanel.vue
+22
-5
frontend/src/audio/ui/AudioPanelContainer.vue
frontend/src/audio/ui/AudioPanelContainer.vue
+18
-1
frontend/src/audio/ui/Config.vue
frontend/src/audio/ui/Config.vue
+8
-2
frontend/src/common/component/AppMenu.vue
frontend/src/common/component/AppMenu.vue
+6
-1
frontend/src/common/component/ExpandPanel.vue
frontend/src/common/component/ExpandPanel.vue
+8
-2
frontend/src/graph/ui/Config.vue
frontend/src/graph/ui/Config.vue
+10
-1
frontend/src/high-dimensional/HighDimensional.vue
frontend/src/high-dimensional/HighDimensional.vue
+6
-6
frontend/src/high-dimensional/ui/Chart.vue
frontend/src/high-dimensional/ui/Chart.vue
+28
-8
frontend/src/high-dimensional/ui/Config.vue
frontend/src/high-dimensional/ui/Config.vue
+4
-2
frontend/src/histogram/ui/Chart.vue
frontend/src/histogram/ui/Chart.vue
+22
-1
frontend/src/histogram/ui/ChartPage.vue
frontend/src/histogram/ui/ChartPage.vue
+18
-2
frontend/src/histogram/ui/Config.vue
frontend/src/histogram/ui/Config.vue
+10
-1
frontend/src/images/Images.vue
frontend/src/images/Images.vue
+1
-2
frontend/src/images/ui/ChartPage.vue
frontend/src/images/ui/ChartPage.vue
+18
-1
frontend/src/images/ui/Config.vue
frontend/src/images/ui/Config.vue
+8
-2
frontend/src/images/ui/Image.vue
frontend/src/images/ui/Image.vue
+26
-5
frontend/src/scalars/Scalars.vue
frontend/src/scalars/Scalars.vue
+1
-1
frontend/src/scalars/ui/Chart.vue
frontend/src/scalars/ui/Chart.vue
+37
-4
frontend/src/scalars/ui/ChartPage.vue
frontend/src/scalars/ui/ChartPage.vue
+18
-3
frontend/src/scalars/ui/Config.vue
frontend/src/scalars/ui/Config.vue
+8
-2
frontend/src/texts/Texts.vue
frontend/src/texts/Texts.vue
+1
-1
frontend/src/texts/ui/Chart.vue
frontend/src/texts/ui/Chart.vue
+21
-4
frontend/src/texts/ui/ChartPage.vue
frontend/src/texts/ui/ChartPage.vue
+18
-1
frontend/src/texts/ui/Config.vue
frontend/src/texts/ui/Config.vue
+8
-2
未找到文件。
.pre-commit-config.yaml
浏览文件 @
0be5b06c
...
...
@@ -34,10 +34,10 @@
language
:
system
files
:
\.(py)$
#
- repo: local
#
hooks:
#
- id: eslint-format-checker
#
name: eslint-format-checker
#
description: Format files with ESLint.
#
entry: bash ./.eslint_format.hook
#
language: system
-
repo
:
local
hooks
:
-
id
:
eslint-format-checker
name
:
eslint-format-checker
description
:
Format files with ESLint.
entry
:
bash ./.eslint_format.hook
language
:
system
frontend/.eslintrc.js
浏览文件 @
0be5b06c
...
...
@@ -5,11 +5,20 @@ module.exports = {
'
plugin:vue/essential
'
,
'
plugin:vue/strongly-recommended
'
,
],
parserOptions
:
{
"
sourceType
"
:
"
module
"
,
},
rules
:
{
// override/add rules settings here, such as:
'
vue/no-unused-vars
'
:
'
warn
'
,
'
max-len
'
:
[
"
warn
"
,
120
],
"
vue/prop-name-casing
"
:
[
"
error
"
],
'
vue/script-indent
'
:
'
error
'
,
// The following rules should apply eventually. Turn them off for now
// so we can have pre-commit running
'
no-invalid-this
'
:
'
off
'
,
'
require-jsdoc
'
:
'
off
'
,
'
no-unused-vars
'
:
'
off
'
,
}
}
frontend/src/audio/Audio.vue
浏览文件 @
0be5b06c
...
...
@@ -31,7 +31,7 @@
<
script
>
import
{
getPluginAudioTags
,
getRuns
}
from
'
../service
'
;
import
{
debounce
,
flatten
,
uniq
,
isArray
}
from
'
lodash
'
;
import
{
debounce
,
flatten
,
uniq
}
from
'
lodash
'
;
import
autoAdjustHeight
from
'
../common/util/autoAdjustHeight
'
;
import
Config
from
'
./ui/Config
'
;
...
...
frontend/src/audio/ui/AudioPanel.vue
浏览文件 @
0be5b06c
...
...
@@ -8,7 +8,7 @@
<p>
<span>
Step:
</span>
<span>
{{
audioData
.
step
}}
</span>
<span
class=
"visual-del-audio-time"
>
{{
audioData
.
wall
_t
ime
|
formatTime
}}
</span>
<span
class=
"visual-del-audio-time"
>
{{
audioData
.
wall
T
ime
|
formatTime
}}
</span>
</p>
<v-slider
:max=
"steps"
...
...
@@ -31,7 +31,24 @@ import {getPluginAudioAudio} from '../../service';
const
intervalTime
=
30
;
export
default
{
props
:
[
'
tagInfo
'
,
'
runs
'
,
'
running
'
,
'
runsItems
'
],
props
:
{
runsItems
:
{
type
:
Array
,
required
:
true
,
},
tagInfo
:
{
type
:
Object
,
required
:
true
,
},
runs
:
{
type
:
Array
,
required
:
true
,
},
running
:
{
type
:
Boolean
,
required
:
true
,
},
},
computed
:
{
steps
()
{
let
data
=
this
.
data
||
[];
...
...
@@ -85,13 +102,13 @@ export default {
currentIndex
:
function
(
index
)
{
if
(
this
.
data
&&
this
.
data
[
index
])
{
let
currentAudioInfo
=
this
.
data
?
this
.
data
[
index
]
:
{};
let
{
query
,
step
,
wall
_t
ime
}
=
currentAudioInfo
;
let
url
=
'
/data/plugin/audio/individualAudio?ts=
'
+
wall
_t
ime
;
let
{
query
,
step
,
wall
T
ime
}
=
currentAudioInfo
;
let
url
=
'
/data/plugin/audio/individualAudio?ts=
'
+
wall
T
ime
;
let
audioSrc
=
[
url
,
query
].
join
(
'
&
'
);
this
.
audioData
=
{
audioSrc
,
step
,
wall
_t
ime
,
wall
T
ime
,
};
}
},
...
...
frontend/src/audio/ui/AudioPanelContainer.vue
浏览文件 @
0be5b06c
...
...
@@ -29,7 +29,24 @@ import AudioPanel from './AudioPanel';
import
{
cloneDeep
,
flatten
}
from
'
lodash
'
;
export
default
{
props
:
[
'
config
'
,
'
runsItems
'
,
'
tagList
'
,
'
title
'
],
props
:
{
runsItems
:
{
type
:
Array
,
required
:
true
,
},
config
:
{
type
:
Object
,
required
:
true
,
},
tagList
:
{
type
:
Array
,
required
:
true
,
},
title
:
{
type
:
String
,
required
:
true
,
},
},
components
:
{
'
ui-audio
'
:
AudioPanel
,
'
ui-expand-panel
'
:
ExpandPanel
,
...
...
frontend/src/audio/ui/Config.vue
浏览文件 @
0be5b06c
...
...
@@ -33,8 +33,14 @@
export
default
{
props
:
{
runsItems
:
Array
,
config
:
Object
,
runsItems
:
{
type
:
Array
,
required
:
true
,
},
config
:
{
type
:
Object
,
required
:
true
,
},
},
data
()
{
return
{
...
...
frontend/src/common/component/AppMenu.vue
浏览文件 @
0be5b06c
...
...
@@ -22,7 +22,12 @@
<
script
>
export
default
{
props
:
[
'
initialRoute
'
],
props
:
{
initialRoute
:
{
type
:
String
,
required
:
true
,
},
},
name
:
'
AppMenu
'
,
data
()
{
return
{
...
...
frontend/src/common/component/ExpandPanel.vue
浏览文件 @
0be5b06c
...
...
@@ -23,8 +23,14 @@
<
script
>
export
default
{
props
:
{
title
:
String
,
info
:
Number
,
title
:
{
type
:
String
,
required
:
true
,
},
info
:
{
type
:
Number
,
required
:
true
,
},
},
computed
:
{
iconName
()
{
...
...
frontend/src/graph/ui/Config.vue
浏览文件 @
0be5b06c
...
...
@@ -54,7 +54,16 @@
<
script
>
export
default
{
props
:
[
'
config
'
,
'
curNode
'
],
props
:
{
curNode
:
{
type
:
Object
,
required
:
true
,
},
config
:
{
type
:
Object
,
required
:
true
,
},
},
methods
:
{
handleFitScreen
()
{
this
.
$emit
(
'
fitScreen
'
);
...
...
frontend/src/high-dimensional/HighDimensional.vue
浏览文件 @
0be5b06c
...
...
@@ -6,7 +6,7 @@
:display-word-label=
"config.displayWordLabel"
:search-text=
"config.searchText"
:dimension=
"config.dimension"
:embedding
_data=
"embedding_d
ata"
:embedding
-data=
"embeddingD
ata"
/>
</div>
<div
class=
"visual-dl-page-right"
>
...
...
@@ -40,7 +40,7 @@ export default {
reduction
:
'
tsne
'
,
running
:
true
,
},
embedding
_d
ata
:
[],
embedding
D
ata
:
[],
};
},
created
()
{
...
...
@@ -65,14 +65,14 @@ export default {
reduction
:
this
.
config
.
reduction
,
};
getHighDimensionalDatasets
(
params
).
then
(({
errno
,
data
})
=>
{
let
vector
_d
ata
=
data
.
embedding
;
let
vector
D
ata
=
data
.
embedding
;
let
labels
=
data
.
labels
;
for
(
let
i
=
0
;
i
<
vector
_d
ata
.
length
;
i
++
)
{
vector
_d
ata
[
i
].
push
(
labels
[
i
]);
for
(
let
i
=
0
;
i
<
vector
D
ata
.
length
;
i
++
)
{
vector
D
ata
[
i
].
push
(
labels
[
i
]);
}
this
.
embedding
_data
=
vector_d
ata
;
this
.
embedding
Data
=
vectorD
ata
;
});
},
},
...
...
frontend/src/high-dimensional/ui/Chart.vue
浏览文件 @
0be5b06c
...
...
@@ -14,7 +14,28 @@ import echarts from 'echarts';
import
'
echarts-gl
'
;
export
default
{
props
:
[
'
config
'
,
'
displayWordLabel
'
,
'
searchText
'
,
'
embedding_data
'
,
'
dimension
'
],
props
:
{
embeddingData
:
{
type
:
Array
,
required
:
true
,
},
config
:
{
type
:
Object
,
required
:
true
,
},
displayWordLabel
:
{
type
:
Boolean
,
required
:
true
,
},
searchText
:
{
type
:
String
,
required
:
true
,
},
dimension
:
{
type
:
String
,
required
:
true
,
},
},
data
()
{
return
{
width
:
900
,
...
...
@@ -36,7 +57,7 @@ export default {
this
.
setDisplayWordLabel
();
},
watch
:
{
embedding
_d
ata
:
function
(
val
)
{
embedding
D
ata
:
function
(
val
)
{
this
.
myChart
.
hideLoading
();
this
.
myChart
.
setOption
({
series
:
[{
...
...
@@ -62,7 +83,7 @@ export default {
},
searchText
:
function
(
val
)
{
// Filter the data that has the hasPrefix
let
matched
_w
ords
=
[];
let
matched
W
ords
=
[];
if
(
val
!=
''
)
{
val
=
val
.
toLowerCase
();
...
...
@@ -71,7 +92,7 @@ export default {
return
(
typeof
word
==
'
string
'
&&
word
.
toLowerCase
().
startsWith
(
val
));
}
matched
_words
=
this
.
embedding_d
ata
.
filter
(
hasPrefix
);
matched
Words
=
this
.
embeddingD
ata
.
filter
(
hasPrefix
);
}
// Update the matched series data
...
...
@@ -79,7 +100,7 @@ export default {
series
:
[{
// Grab the 'matched' series data
name
:
'
matched
'
,
data
:
matched
_w
ords
,
data
:
matched
W
ords
,
}],
});
},
...
...
@@ -91,14 +112,13 @@ export default {
this
.
myChart
=
echarts
.
init
(
el
);
},
set2DChartOptions
()
{
let
typeD
=
'
normal
'
;
let
option
=
{
xAxis
:
{},
yAxis
:
{},
series
:
[{
name
:
'
all
'
,
symbolSize
:
10
,
data
:
this
.
embedding
_d
ata
,
data
:
this
.
embedding
D
ata
,
type
:
'
scatter
'
,
},
{
...
...
@@ -137,7 +157,7 @@ export default {
xAxis3D
:
{},
zAxis3D
:
{},
dataset
:
{
source
:
this
.
embedding
_d
ata
,
source
:
this
.
embedding
D
ata
,
},
series
:
[
{
...
...
frontend/src/high-dimensional/ui/Config.vue
浏览文件 @
0be5b06c
...
...
@@ -55,8 +55,10 @@
export
default
{
props
:
{
runsItems
:
Array
,
config
:
Object
,
config
:
{
type
:
Object
,
required
:
true
,
},
},
data
()
{
return
{
...
...
frontend/src/histogram/ui/Chart.vue
浏览文件 @
0be5b06c
...
...
@@ -40,7 +40,28 @@ const p = Math.max(0, precisionRound(0.01, 1.01) - 1);
const
yValueFormat
=
format
(
'
.
'
+
p
+
'
e
'
);
export
default
{
props
:
[
'
tagInfo
'
,
'
runs
'
,
'
chartType
'
,
'
running
'
,
'
runsItems
'
],
props
:
{
runsItems
:
{
type
:
Array
,
required
:
true
,
},
tagInfo
:
{
type
:
Object
,
required
:
true
,
},
runs
:
{
type
:
Array
,
required
:
true
,
},
running
:
{
type
:
Boolean
,
required
:
true
,
},
chartType
:
{
type
:
String
,
required
:
true
,
},
},
data
()
{
return
{
originData
:
[],
...
...
frontend/src/histogram/ui/ChartPage.vue
浏览文件 @
0be5b06c
...
...
@@ -31,8 +31,24 @@ import Chart from './Chart';
import
{
cloneDeep
,
flatten
}
from
'
lodash
'
;
export
default
{
props
:
[
'
config
'
,
'
runsItems
'
,
'
tagList
'
,
'
title
'
],
props
:
{
runsItems
:
{
type
:
Array
,
required
:
true
,
},
config
:
{
type
:
Object
,
required
:
true
,
},
tagList
:
{
type
:
Array
,
required
:
true
,
},
title
:
{
type
:
String
,
required
:
true
,
},
},
components
:
{
'
ui-chart
'
:
Chart
,
'
ui-expand-panel
'
:
ExpandPanel
,
...
...
frontend/src/histogram/ui/Config.vue
浏览文件 @
0be5b06c
...
...
@@ -42,7 +42,16 @@
</
template
>
<
script
>
export
default
{
props
:
[
'
config
'
,
'
runsItems
'
],
props
:
{
runsItems
:
{
type
:
Array
,
required
:
true
,
},
config
:
{
type
:
Object
,
required
:
true
,
},
},
data
()
{
return
{
chartTypeItems
:
[
...
...
frontend/src/images/Images.vue
浏览文件 @
0be5b06c
...
...
@@ -31,7 +31,7 @@
<
script
>
import
{
getPluginImagesTags
,
getRuns
}
from
'
../service
'
;
import
{
debounce
,
flatten
,
uniq
,
isArray
}
from
'
lodash
'
;
import
{
debounce
,
flatten
,
uniq
}
from
'
lodash
'
;
import
autoAdjustHeight
from
'
../common/util/autoAdjustHeight
'
;
import
Config
from
'
./ui/Config
'
;
...
...
@@ -112,7 +112,6 @@ export default {
});
},
filteredConfig
()
{
let
tansformArr
=
[
'
isActualImageSize
'
];
let
config
=
this
.
config
||
{};
let
filteredConfig
=
{};
Object
.
keys
(
config
).
forEach
((
key
)
=>
{
...
...
frontend/src/images/ui/ChartPage.vue
浏览文件 @
0be5b06c
...
...
@@ -30,7 +30,24 @@ import Image from './Image';
import
{
cloneDeep
,
flatten
}
from
'
lodash
'
;
export
default
{
props
:
[
'
config
'
,
'
runsItems
'
,
'
tagList
'
,
'
title
'
],
props
:
{
runsItems
:
{
type
:
Array
,
required
:
true
,
},
config
:
{
type
:
Object
,
required
:
true
,
},
tagList
:
{
type
:
Array
,
required
:
true
,
},
title
:
{
type
:
String
,
required
:
true
,
},
},
components
:
{
'
ui-image
'
:
Image
,
'
ui-expand-panel
'
:
ExpandPanel
,
...
...
frontend/src/images/ui/Config.vue
浏览文件 @
0be5b06c
...
...
@@ -38,8 +38,14 @@
export
default
{
props
:
{
runsItems
:
Array
,
config
:
Object
,
runsItems
:
{
type
:
Array
,
required
:
true
,
},
config
:
{
type
:
Object
,
required
:
true
,
},
},
data
()
{
return
{
...
...
frontend/src/images/ui/Image.vue
浏览文件 @
0be5b06c
...
...
@@ -8,7 +8,7 @@
<p>
<span>
Step:
</span>
<span>
{{
imgData
.
step
}}
</span>
<span
class=
"visual-del-image-time"
>
{{
imgData
.
wall
_t
ime
|
formatTime
}}
</span>
<span
class=
"visual-del-image-time"
>
{{
imgData
.
wall
T
ime
|
formatTime
}}
</span>
</p>
<v-slider
:max=
"steps"
...
...
@@ -32,7 +32,28 @@ const defaultImgHeight = 300;
const
intervalTime
=
30
;
export
default
{
props
:
[
'
tagInfo
'
,
'
isActualImageSize
'
,
'
runs
'
,
'
running
'
,
'
runsItems
'
],
props
:
{
runsItems
:
{
type
:
Array
,
required
:
true
,
},
tagInfo
:
{
type
:
Object
,
required
:
true
,
},
runs
:
{
type
:
Array
,
required
:
true
,
},
running
:
{
type
:
Boolean
,
required
:
true
,
},
isActualImageSize
:
{
type
:
Boolean
,
required
:
true
,
},
},
computed
:
{
steps
()
{
let
data
=
this
.
data
||
[];
...
...
@@ -95,15 +116,15 @@ export default {
/* eslint-disable fecs-camelcase */
if
(
this
.
data
&&
this
.
data
[
index
])
{
let
currentImgInfo
=
this
.
data
?
this
.
data
[
index
]
:
{};
let
{
height
,
width
,
query
,
step
,
wall
_t
ime
}
=
currentImgInfo
;
let
url
=
'
/data/plugin/images/individualImage?ts=
'
+
wall
_t
ime
;
let
{
height
,
width
,
query
,
step
,
wall
T
ime
}
=
currentImgInfo
;
let
url
=
'
/data/plugin/images/individualImage?ts=
'
+
wall
T
ime
;
let
imgSrc
=
[
url
,
query
].
join
(
'
&
'
);
this
.
imgData
=
{
imgSrc
,
height
,
width
,
step
,
wall
_t
ime
,
wall
T
ime
,
};
}
/* eslint-enable fecs-camelcase */
...
...
frontend/src/scalars/Scalars.vue
浏览文件 @
0be5b06c
...
...
@@ -30,7 +30,7 @@
<
script
>
import
{
getPluginScalarsTags
,
getRuns
}
from
'
../service
'
;
import
{
debounce
,
flatten
,
uniq
,
isArray
}
from
'
lodash
'
;
import
{
debounce
,
flatten
,
uniq
}
from
'
lodash
'
;
import
autoAdjustHeight
from
'
../common/util/autoAdjustHeight
'
;
import
Config
from
'
./ui/Config
'
;
...
...
frontend/src/scalars/ui/Chart.vue
浏览文件 @
0be5b06c
...
...
@@ -102,8 +102,40 @@ const maxQuantile = 0.95;
const
intervalTime
=
15
;
export
default
{
props
:
[
'
tagInfo
'
,
'
groupNameReg
'
,
'
smoothing
'
,
'
horizontal
'
,
'
sortingMethod
'
,
'
outlier
'
,
'
runs
'
,
'
running
'
,
'
runsItems
'
],
props
:
{
runsItems
:
{
type
:
Array
,
required
:
true
,
},
tagInfo
:
{
type
:
Object
,
required
:
true
,
},
runs
:
{
type
:
Array
,
required
:
true
,
},
running
:
{
type
:
Boolean
,
required
:
true
,
},
smoothing
:
{
type
:
Number
,
required
:
true
,
},
horizontal
:
{
type
:
String
,
required
:
true
,
},
sortingMethod
:
{
type
:
String
,
required
:
true
,
},
outlier
:
{
type
:
Boolean
,
required
:
true
,
},
},
computed
:
{
computedStyle
()
{
return
'
height:
'
+
this
.
height
+
'
px;
'
...
...
@@ -366,7 +398,7 @@ export default {
/**
* @desc 1、add smooth data depend on smoothingWeight. see https://en.wikipedia.org/wiki/Moving_average for detail
* 2、add relative data
* @param {Object} echarts series Object
* @param {Object}
seriesData:
echarts series Object
* @param {number} smoothingWeight smooth weight, between 0 ~ 1
*/
transformData
(
seriesData
,
smoothingWeight
)
{
...
...
@@ -645,7 +677,8 @@ export default {
let
headerHtml
=
'
<tr style="font-size:14px;">
'
;
headerHtml
+=
Object
.
keys
(
transformedData
[
0
]).
map
((
key
)
=>
{
return
'
<td style="padding: 0 4px; font-family:
\'
Merriweather Sans
\'
; font-weight: bold; width:
'
+
widthPropMap
[
key
]
+
'
px;">
'
+
key
+
'
</td>
'
;
return
'
<td style="padding: 0 4px; font-family:
\'
Merriweather Sans
\'
; font-weight: bold; width:
'
+
widthPropMap
[
key
]
+
'
px;">
'
+
key
+
'
</td>
'
;
}).
join
(
''
);
headerHtml
+=
'
</tr>
'
;
...
...
frontend/src/scalars/ui/ChartPage.vue
浏览文件 @
0be5b06c
...
...
@@ -10,7 +10,6 @@
v-for=
"(tagInfo, index) in filteredTagList"
:key=
"index"
:tag-info=
"tagInfo"
:group-name-reg=
"config.groupNameReg"
:smoothing=
"config.smoothing"
:horizontal=
"config.horizontal"
:sorting-method=
"config.sortingMethod"
...
...
@@ -37,9 +36,25 @@ export default {
components
:
{
'
ui-chart
'
:
Chart
,
'
ui-expand-panel
'
:
ExpandPanel
,
// 'ui-pagination': Pagination
},
props
:
[
'
config
'
,
'
runsItems
'
,
'
tagList
'
,
'
title
'
],
props
:
{
runsItems
:
{
type
:
Array
,
required
:
true
,
},
config
:
{
type
:
Object
,
required
:
true
,
},
tagList
:
{
type
:
Array
,
required
:
true
,
},
title
:
{
type
:
String
,
required
:
true
,
},
},
computed
:
{
filteredRunsList
()
{
let
tagList
=
this
.
tagList
||
[];
...
...
frontend/src/scalars/ui/Config.vue
浏览文件 @
0be5b06c
...
...
@@ -77,8 +77,14 @@
export
default
{
props
:
{
runsItems
:
Array
,
config
:
Object
,
runsItems
:
{
type
:
Array
,
required
:
true
,
},
config
:
{
type
:
Object
,
required
:
true
,
},
},
data
()
{
return
{
...
...
frontend/src/texts/Texts.vue
浏览文件 @
0be5b06c
...
...
@@ -31,7 +31,7 @@
<
script
>
import
{
getPluginTextsTags
,
getRuns
}
from
'
../service
'
;
import
{
debounce
,
flatten
,
uniq
,
isArray
}
from
'
lodash
'
;
import
{
debounce
,
flatten
,
uniq
}
from
'
lodash
'
;
import
autoAdjustHeight
from
'
../common/util/autoAdjustHeight
'
;
import
Config
from
'
./ui/Config
'
;
...
...
frontend/src/texts/ui/Chart.vue
浏览文件 @
0be5b06c
...
...
@@ -8,7 +8,7 @@
<p>
<span>
Step:
</span>
<span>
{{
textData
.
step
}}
</span>
<span
class=
"visual-del-text-time"
>
{{
textData
.
wall
_t
ime
|
formatTime
}}
</span>
<span
class=
"visual-del-text-time"
>
{{
textData
.
wall
T
ime
|
formatTime
}}
</span>
</p>
<v-slider
:max=
"steps"
...
...
@@ -28,7 +28,24 @@ import {getPluginTextsTexts} from '../../service';
const
intervalTime
=
30
;
export
default
{
props
:
[
'
tagInfo
'
,
'
runs
'
,
'
running
'
,
'
runsItems
'
],
props
:
{
runsItems
:
{
type
:
Array
,
required
:
true
,
},
tagInfo
:
{
type
:
Object
,
required
:
true
,
},
runs
:
{
type
:
Array
,
required
:
true
,
},
running
:
{
type
:
Boolean
,
required
:
true
,
},
},
computed
:
{
steps
()
{
let
data
=
this
.
data
||
[];
...
...
@@ -82,13 +99,13 @@ export default {
currentIndex
:
function
(
index
)
{
if
(
this
.
data
&&
this
.
data
[
index
])
{
let
currentTextInfo
=
this
.
data
?
this
.
data
[
index
]
:
{};
let
wall
_t
ime
=
currentTextInfo
[
0
];
let
wall
T
ime
=
currentTextInfo
[
0
];
let
step
=
currentTextInfo
[
1
];
let
message
=
currentTextInfo
[
2
];
this
.
textData
=
{
step
,
wall
_t
ime
,
wall
T
ime
,
message
,
};
}
...
...
frontend/src/texts/ui/ChartPage.vue
浏览文件 @
0be5b06c
...
...
@@ -35,7 +35,24 @@ export default {
'
ui-chart
'
:
Chart
,
'
ui-expand-panel
'
:
ExpandPanel
,
},
props
:
[
'
config
'
,
'
runsItems
'
,
'
tagList
'
,
'
title
'
],
props
:
{
runsItems
:
{
type
:
Array
,
required
:
true
,
},
config
:
{
type
:
Object
,
required
:
true
,
},
tagList
:
{
type
:
Array
,
required
:
true
,
},
title
:
{
type
:
String
,
required
:
true
,
},
},
computed
:
{
filteredRunsList
()
{
let
tagList
=
this
.
tagList
||
[];
...
...
frontend/src/texts/ui/Config.vue
浏览文件 @
0be5b06c
...
...
@@ -35,8 +35,14 @@
export
default
{
props
:
{
runsItems
:
Array
,
config
:
Object
,
runsItems
:
{
type
:
Array
,
required
:
true
,
},
config
:
{
type
:
Object
,
required
:
true
,
},
},
data
()
{
return
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录