Skip to content

Commit c692845

Browse files
authored
resolve the histogram hover circle problem and adjust code (#141)
* modify overlay and offset chart view interplay problem * resolve frontend fecs problem * resolve the hover circle problem for histogram * modify the color of multiple lines in scalar * adjust the frontend code * modify san template * adjust histogramHelper code * reslove fecs code style problem
1 parent 7b3e837 commit c692845

File tree

25 files changed

+110
-210
lines changed

25 files changed

+110
-210
lines changed

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "front",
2+
"name": "VisualDL",
33
"version": "1.0.0",
44
"description": "Visualization toolkit for deep learning",
55
"scripts": {

frontend/src/App.san

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ export default {
3737
location.hash = '#/scalars';
3838
}
3939
},
40-
menuChange({value, url, title}) {
41-
routeTo(url);
40+
menuChange(dataItem) {
41+
routeTo(dataItem.url);
4242
}
4343
};
4444

frontend/src/common/component/AppMenu.san

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<san-appbar title="VisualDL">
44
<san-menu slot="right">
55
<san-menu-item
6-
san-for="item in items"
6+
s-for="item in items"
77
class="{{selected === item.name ? 'sm-menu-item-selected' : ''}}"
88
on-click="handleItemClick(item)"
99
title="{{item.title}}" />

frontend/src/common/component/CheckBoxGroup.san

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<label class="label">{{label}}</label>
44
<div class="group-box">
55
<san-checkbox
6-
san-if="showAll"
6+
s-if="showAll"
77
class="checkbox-all"
88
label="全选"
99
value="all"
@@ -12,7 +12,7 @@
1212
></san-checkbox>
1313
<div class="san-form-check-group">
1414
<san-checkbox
15-
san-for="item in items"
15+
s-for="item in items"
1616
label="{{item.name}}"
1717
value="{{item.value}}"
1818
disabled="{{item.disabled}}"

frontend/src/common/component/ExpandPanel.san

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</span>
1212
</h3>
1313
<div
14-
san-if="{{isShow}}"
14+
s-if="{{isShow}}"
1515
class="visaul-dl-expand-panel-content"
1616
>
1717
<slot></slot>

frontend/src/common/component/Notification/Notification.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66
```san Notification
77
<template>
88
<div>
9-
<san-button
9+
<s-button
1010
variants="raised info"
1111
on-click="handleClick01">
1212
auto close
13-
</san-button>
14-
<san-button
13+
</s-button>
14+
<s-button
1515
variants="raised info"
1616
on-click="handleClick02">
1717
no auto close
18-
</san-button>
18+
</s-button>
1919
</div>
2020
</template>
2121
@@ -53,31 +53,31 @@ export default {
5353
```san Notification
5454
<template>
5555
<div>
56-
<san-button
56+
<s-button
5757
variants="raised info"
5858
on-click="handleClick01">
5959
success
60-
</san-button>
61-
<san-button
60+
</s-button>
61+
<s-button
6262
variants="raised info"
6363
on-click="handleClick02">
6464
warning
65-
</san-button>
66-
<san-button
65+
</s-button>
66+
<s-button
6767
variants="raised info"
6868
on-click="handleClick03">
6969
info
70-
</san-button>
71-
<san-button
70+
</s-button>
71+
<s-button
7272
variants="raised info"
7373
on-click="handleClick04">
7474
error
75-
</san-button>
76-
<san-button
75+
</s-button>
76+
<s-button
7777
variants="raised info"
7878
on-click="handleClick05">
7979
simplify
80-
</san-button>
80+
</s-button>
8181
</div>
8282
</template>
8383
@@ -130,11 +130,11 @@ export default {
130130
```san Notification
131131
<template>
132132
<div>
133-
<san-button
133+
<s-button
134134
variants="raised info"
135135
on-click="handleClick01">
136136
width offset
137-
</san-button>
137+
</s-button>
138138
</div>
139139
</template>
140140

frontend/src/common/component/Notification/NotificationItem.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ export default class NotificationItem extends Component {
1616
on-mouseenter="clearTimer"
1717
on-mouseleave="startTimer"
1818
on-click="handleClick">
19-
<san-icon
20-
san-if="type"
19+
<s-icon
20+
s-if="type"
2121
class="sm-notification-type type-{{type}}"
22-
size="50">{{iconType}}</san-icon>
22+
size="50">{{iconType}}</s-icon>
2323
<div class="sm-notification-group" >
2424
<p class="sm-notification-title">{{title}}</p>
2525
<div class="sm-notification-content">{{message}}</div>
2626
<div on-click="close($event)" class="sm-notification-close">
27-
<san-icon size="20" class="sm-notification-close-btn">close</san-icon>
27+
<s-icon size="20" class="sm-notification-close-btn">close</s-icon>
2828
</div>
2929
</div>
3030
</div>

frontend/src/common/component/RadioGroup.san

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div class="group-box">
55
<san-radio
66
on-change="handleChange($event)"
7-
san-for="item in items"
7+
s-for="item in items"
88
label="{{item.name}}"
99
value="{{item.value}}"
1010
disabled="{{item.disabled}}"

frontend/src/common/component/Slider.san

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,6 @@
1010
step="{{step}}"
1111
/>
1212
<span>{{value}}</span>
13-
<!--
14-
<san-input-number
15-
min="{{min}}"
16-
max="{{max}}"
17-
step="{{step}}"
18-
value="{=value=}"
19-
on-change="handlerChange($event)"
20-
size="small">
21-
</san-input-number>
22-
-->
2313
</div>
2414
</div>
2515
</template>

frontend/src/graph/Graph.san

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
</template>
2222

2323
<script>
24-
import {getPluginGraphsGraph} from '../service';
2524
import autoAdjustHeight from '../common/util/autoAdjustHeight';
2625
import config from './ui/config';
2726
import chart from './ui/chart';

0 commit comments

Comments
 (0)