File tree 3 files changed +15
-6
lines changed
3 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -113,12 +113,12 @@ const ApiService = {
113
113
this . closeEventStream ( ) ;
114
114
} ) ;
115
115
116
- evtSource . onopen = function ( e ) {
116
+ evtSource . onopen = ( e ) => {
117
117
sseReconnectFrequencySeconds = 1 ;
118
- console . log ( "Eventstream opened" ) ;
118
+ console . log ( "Eventstream opened" , { e } ) ;
119
119
} ;
120
- evtSource . onerror = function ( e ) {
121
- console . log ( "Eventstream error" ) ;
120
+ evtSource . onerror = ( e ) => {
121
+ console . log ( "Eventstream error" , { e } ) ;
122
122
evtSource . close ( ) ;
123
123
store . dispatch ( "updateSessionStreamState" , false ) ;
124
124
setTimeout ( tryToSetupFunc , waitFunc ( ) ) ;
Original file line number Diff line number Diff line change 3
3
<div class =" card-content" >
4
4
<div class =" level is-mobile" >
5
5
<div class =" level-left" >
6
- <div class =" level-item" >
6
+ <div class =" smiley level-item" >
7
7
<twemoji
8
8
:emojis =" smiley"
9
9
css-class =" twa twa-3x"
19
19
v-if =" trend !== 0"
20
20
:icon =" trend > 0 ? 'angle-up' : 'angle-down'"
21
21
size =" is-small"
22
- :class =" trend > 0 ? 'has-text-success' : 'has-text-danger'"
22
+ :class =" trend > 0 ? 'trend has-text-success' : 'trend has-text-danger'"
23
23
/>{{ currentRate }}<span class =" subtitle-unit" >/m</span >
24
24
</p >
25
25
</div >
@@ -138,4 +138,13 @@ export default {
138
138
.card + .card {
139
139
margin- top: 0 .8rem ;
140
140
}
141
+
142
+ .trend {
143
+ margin- left: - 1 .5rem ;
144
+ }
145
+
146
+ .smiley {
147
+ margin- left: - 1rem ;
148
+ padding- right: 1rem ;
149
+ }
141
150
< / style>
You can’t perform that action at this time.
0 commit comments