bfg-common 1.3.95 → 1.3.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/scss/common/icons/icons-2.scss +222 -222
- package/components/atoms/switch/Switch.vue +107 -107
- package/components/atoms/table/dataGrid/DataGrid.vue +1576 -1576
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/Table.vue +137 -137
- package/components/common/monitor/lib/models/interfaces.ts +23 -23
- package/components/common/monitor/overview/Overview.vue +228 -470
- package/components/common/pages/Tasks.vue +120 -120
- package/components/common/recursionTree/RecursionTree.vue +203 -203
- package/components/common/vm/actions/clone/Clone.vue +518 -518
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuModel.vue +220 -220
- package/components/common/vm/actions/common/lib/config/capabilities.ts +1 -1
- package/components/common/vm/actions/common/select/storage/lib/config/config.ts +166 -166
- package/composables/useAppVersion.ts +21 -21
- package/composables/useEnvLanguage.ts +20 -20
- package/composables/useLocal.ts +38 -38
- package/lib/utils/sendTask.ts +72 -72
- package/minify.js +146 -146
- package/package.json +2 -2
- package/public/spice-console/application/codec.js +257 -257
- package/public/spice-console/lib/rasterEngine.js +907 -907
- package/public/spice-console/network/spicechannel.js +369 -369
- package/store/main/lib/interfaces.ts +9 -9
- package/store/tasks/actions.ts +133 -133
- package/store/tasks/getters.ts +25 -25
- package/store/tasks/lib/models/interfaces.ts +18 -18
- package/store/tasks/mutations.ts +58 -58
- package/store/tasks/state.ts +16 -16
|
@@ -1,470 +1,228 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="charts-view">
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
if (chartTwo.value && chartTwo.value?.hasLoaded) chartTwo.value.reflow()
|
|
230
|
-
|
|
231
|
-
if (chartThree.value && chartThree.value?.hasLoaded)
|
|
232
|
-
chartThree.value.reflow()
|
|
233
|
-
|
|
234
|
-
if (chartFour.value && chartFour.value?.hasLoaded) chartFour.value.reflow()
|
|
235
|
-
}, 1000)
|
|
236
|
-
}
|
|
237
|
-
const updateGraph = (
|
|
238
|
-
graphSetting: UI_I_GraphDataSettingItem | null,
|
|
239
|
-
name: string
|
|
240
|
-
): void => {
|
|
241
|
-
outputSize()
|
|
242
|
-
updateGraphsData(graphSetting, name)
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
const updateGraphsData = (
|
|
246
|
-
data: UI_I_GraphDataSettingItem | null,
|
|
247
|
-
name: string
|
|
248
|
-
): void => {
|
|
249
|
-
if (!data?.data) {
|
|
250
|
-
switch (name) {
|
|
251
|
-
case 'one':
|
|
252
|
-
oneGraphData.value = null
|
|
253
|
-
break
|
|
254
|
-
case 'two':
|
|
255
|
-
twoGraphData.value = null
|
|
256
|
-
break
|
|
257
|
-
case 'three':
|
|
258
|
-
threeGraphData.value = null
|
|
259
|
-
break
|
|
260
|
-
case 'four':
|
|
261
|
-
fourGraphData.value = null
|
|
262
|
-
break
|
|
263
|
-
}
|
|
264
|
-
return
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
const themeMode = useLocalStorage('themeMode') || props.themeMode
|
|
268
|
-
const isDarkMode = themeMode === 'dark-theme'
|
|
269
|
-
|
|
270
|
-
const width =
|
|
271
|
-
document
|
|
272
|
-
.querySelector(`.graph-${name} .graph-content`)
|
|
273
|
-
?.getBoundingClientRect().width || 700
|
|
274
|
-
|
|
275
|
-
setCurrentGraphData(name, data.data, isDarkMode, width, data.chartType)
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
const checkIsMountedError = (): void => {
|
|
279
|
-
if (
|
|
280
|
-
oneSettingsLocal.value ||
|
|
281
|
-
twoSettingsLocal.value ||
|
|
282
|
-
threeSettingsLocal.value ||
|
|
283
|
-
fourSettingsLocal.value
|
|
284
|
-
)
|
|
285
|
-
isMountedLoader.value = false
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
watch(
|
|
289
|
-
() => props.oneChart,
|
|
290
|
-
(newValue) => {
|
|
291
|
-
if (newValue === undefined) return
|
|
292
|
-
|
|
293
|
-
oneSettingsLocal.value = newValue
|
|
294
|
-
|
|
295
|
-
if (newValue) updateGraph(oneSettingsLocal.value, newValue.place)
|
|
296
|
-
|
|
297
|
-
isMountedLoader.value && checkIsMountedError()
|
|
298
|
-
},
|
|
299
|
-
{ deep: true, immediate: true }
|
|
300
|
-
)
|
|
301
|
-
|
|
302
|
-
watch(
|
|
303
|
-
() => props.twoChart,
|
|
304
|
-
(newValue) => {
|
|
305
|
-
if (newValue === undefined) return
|
|
306
|
-
|
|
307
|
-
twoSettingsLocal.value = newValue
|
|
308
|
-
|
|
309
|
-
if (newValue) updateGraph(twoSettingsLocal.value, newValue.place)
|
|
310
|
-
|
|
311
|
-
isMountedLoader.value && checkIsMountedError()
|
|
312
|
-
},
|
|
313
|
-
{ deep: true, immediate: true }
|
|
314
|
-
)
|
|
315
|
-
|
|
316
|
-
watch(
|
|
317
|
-
() => props.threeChart,
|
|
318
|
-
(newValue) => {
|
|
319
|
-
if (newValue === undefined) return
|
|
320
|
-
|
|
321
|
-
threeSettingsLocal.value = newValue
|
|
322
|
-
|
|
323
|
-
if (newValue) updateGraph(threeSettingsLocal.value, newValue.place)
|
|
324
|
-
|
|
325
|
-
isMountedLoader.value && checkIsMountedError()
|
|
326
|
-
},
|
|
327
|
-
{ deep: true, immediate: true }
|
|
328
|
-
)
|
|
329
|
-
|
|
330
|
-
watch(chartOne, (newValue) => {
|
|
331
|
-
if (!newValue) return
|
|
332
|
-
|
|
333
|
-
newValue.exportingGroup?.element?.children[0].children[0].remove()
|
|
334
|
-
})
|
|
335
|
-
watch(chartTwo, (newValue) => {
|
|
336
|
-
if (!newValue) return
|
|
337
|
-
newValue.exportingGroup?.element?.children[0].children[0].remove()
|
|
338
|
-
})
|
|
339
|
-
watch(chartFour, (newValue) => {
|
|
340
|
-
if (!newValue) return
|
|
341
|
-
newValue.exportingGroup?.element?.children[0].children[0].remove()
|
|
342
|
-
})
|
|
343
|
-
watch(chartThree, (newValue) => {
|
|
344
|
-
if (!newValue) return
|
|
345
|
-
newValue.exportingGroup?.element?.children[0].children[0].remove()
|
|
346
|
-
})
|
|
347
|
-
|
|
348
|
-
watch(
|
|
349
|
-
() => props.fourChart,
|
|
350
|
-
(newValue) => {
|
|
351
|
-
if (newValue === undefined) return
|
|
352
|
-
|
|
353
|
-
fourSettingsLocal.value = newValue
|
|
354
|
-
|
|
355
|
-
if (newValue) updateGraph(fourSettingsLocal.value, newValue.place)
|
|
356
|
-
|
|
357
|
-
isMountedLoader.value && checkIsMountedError()
|
|
358
|
-
},
|
|
359
|
-
{ deep: true, immediate: true }
|
|
360
|
-
)
|
|
361
|
-
|
|
362
|
-
const setResizeObserve = (): void => {
|
|
363
|
-
const el = document.getElementById('center-pane')
|
|
364
|
-
|
|
365
|
-
if (!el) {
|
|
366
|
-
setTimeout(setResizeObserve, 0)
|
|
367
|
-
return
|
|
368
|
-
}
|
|
369
|
-
new ResizeObserver(outputSize).observe(el)
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
onMounted(() => {
|
|
373
|
-
isMountedLoader.value = true
|
|
374
|
-
setResizeObserve()
|
|
375
|
-
})
|
|
376
|
-
</script>
|
|
377
|
-
|
|
378
|
-
<style>
|
|
379
|
-
:root {
|
|
380
|
-
--loader-bg-color: #ffffff;
|
|
381
|
-
}
|
|
382
|
-
:root.dark-theme {
|
|
383
|
-
--loader-bg-color: #22343c;
|
|
384
|
-
}
|
|
385
|
-
</style>
|
|
386
|
-
|
|
387
|
-
<style scoped lang="scss">
|
|
388
|
-
.charts-view {
|
|
389
|
-
position: relative;
|
|
390
|
-
display: flex;
|
|
391
|
-
flex-direction: row;
|
|
392
|
-
flex-wrap: wrap;
|
|
393
|
-
justify-content: space-between;
|
|
394
|
-
overflow: auto;
|
|
395
|
-
height: 100%;
|
|
396
|
-
|
|
397
|
-
.graphic-loader-block {
|
|
398
|
-
background-color: var(--loader-bg-color);
|
|
399
|
-
height: 100%;
|
|
400
|
-
display: flex;
|
|
401
|
-
flex-direction: column;
|
|
402
|
-
align-items: center;
|
|
403
|
-
justify-content: center;
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
.graph-empty-block {
|
|
407
|
-
display: flex;
|
|
408
|
-
flex-direction: column;
|
|
409
|
-
height: 100%;
|
|
410
|
-
background-color: var(--loader-bg-color);
|
|
411
|
-
|
|
412
|
-
.title {
|
|
413
|
-
text-align: center;
|
|
414
|
-
font-size: 18px;
|
|
415
|
-
margin-top: 10px;
|
|
416
|
-
color: var(--global-font-color);
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
.body-block {
|
|
420
|
-
height: 100%;
|
|
421
|
-
display: flex;
|
|
422
|
-
justify-content: center;
|
|
423
|
-
text-align: center;
|
|
424
|
-
align-items: center;
|
|
425
|
-
color: var(--global-font-color);
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
.chart-container {
|
|
430
|
-
box-sizing: border-box;
|
|
431
|
-
flex-grow: 1;
|
|
432
|
-
padding: 5px;
|
|
433
|
-
min-height: 300px;
|
|
434
|
-
height: 100%;
|
|
435
|
-
min-width: 300px;
|
|
436
|
-
width: 100%;
|
|
437
|
-
position: relative;
|
|
438
|
-
|
|
439
|
-
&:first-child:last-child {
|
|
440
|
-
height: 100%;
|
|
441
|
-
width: 100%;
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
&:first-child:nth-last-child(2),
|
|
445
|
-
&:nth-child(2):last-child {
|
|
446
|
-
width: 50%;
|
|
447
|
-
height: 100%;
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
.content-global-loading {
|
|
452
|
-
width: 100%;
|
|
453
|
-
height: 100%;
|
|
454
|
-
display: flex;
|
|
455
|
-
align-items: center;
|
|
456
|
-
justify-content: center;
|
|
457
|
-
color: var(--global-font-color);
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
@media (min-width: 1280px) {
|
|
461
|
-
.charts-view .chart-container {
|
|
462
|
-
width: 50%;
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
@media (min-height: 800px) {
|
|
466
|
-
.charts-view .chart-container {
|
|
467
|
-
height: 50%;
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="charts-view">
|
|
3
|
+
<div v-if="!allData.length" class="content-global-loading">
|
|
4
|
+
{{ localization.loading }}...
|
|
5
|
+
</div>
|
|
6
|
+
<template v-else>
|
|
7
|
+
<template v-for="(chartData, key) in allData" :key="chartData.title">
|
|
8
|
+
<div :class="['chart-container', `graph-${chartData.title}`]">
|
|
9
|
+
<div v-if="chartData.loader" class="graphic-loader-block">
|
|
10
|
+
<div class="spinner"></div>
|
|
11
|
+
<p>{{ localization.retrievingData }}...</p>
|
|
12
|
+
</div>
|
|
13
|
+
<common-graph
|
|
14
|
+
v-else-if="chartData.data"
|
|
15
|
+
:data="chartData.data"
|
|
16
|
+
:chart="charts[key]"
|
|
17
|
+
:update="updateHelper"
|
|
18
|
+
/>
|
|
19
|
+
<div v-else class="graph-empty-block">
|
|
20
|
+
<div class="title">{{ chartData.title }}</div>
|
|
21
|
+
<div class="body-block">
|
|
22
|
+
{{ localization.emptyGraphText }}
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</template>
|
|
27
|
+
</template>
|
|
28
|
+
</div>
|
|
29
|
+
</template>
|
|
30
|
+
|
|
31
|
+
<script setup lang="ts">
|
|
32
|
+
import { format } from 'date-fns'
|
|
33
|
+
import type {
|
|
34
|
+
I_SeriesColumn,
|
|
35
|
+
I_SeriesLine,
|
|
36
|
+
I_ColumnGraph,
|
|
37
|
+
I_LineGraph,
|
|
38
|
+
} from '~/node_modules/bfg-nuxt-3-graph/graph/lib/models/interfaces'
|
|
39
|
+
import {
|
|
40
|
+
columnGraphDataFunc,
|
|
41
|
+
graphDataFunc,
|
|
42
|
+
} from '~/node_modules/bfg-nuxt-3-graph/graph/lib/utils/renderGraph'
|
|
43
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
44
|
+
import type { UI_I_GraphDataSettingItem } from '~/components/common/monitor/lib/models/interfaces'
|
|
45
|
+
|
|
46
|
+
const props = defineProps<{
|
|
47
|
+
chartsSettings: Array<UI_I_GraphDataSettingItem | null>
|
|
48
|
+
themeMode?: string
|
|
49
|
+
formatDate?: string
|
|
50
|
+
formatTime?: string
|
|
51
|
+
graphType: string
|
|
52
|
+
}>()
|
|
53
|
+
|
|
54
|
+
const { $formattedDatetime } = useNuxtApp()
|
|
55
|
+
|
|
56
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
57
|
+
|
|
58
|
+
const allData = ref<UI_I_GraphDataSettingItem[]>([])
|
|
59
|
+
|
|
60
|
+
const charts = ref<any>([])
|
|
61
|
+
|
|
62
|
+
const getCurrentChart = (chart: any): void => {
|
|
63
|
+
charts.value = chart
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const instanceOfSeriesLine = (
|
|
67
|
+
object: I_SeriesLine | I_SeriesColumn
|
|
68
|
+
): object is I_SeriesLine => {
|
|
69
|
+
return 'lines' in object
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
const getCurrentData = (
|
|
73
|
+
chart: UI_I_GraphDataSettingItem,
|
|
74
|
+
chartType: string
|
|
75
|
+
): I_LineGraph | I_ColumnGraph | null => {
|
|
76
|
+
if (!chart || !chart.data) return null
|
|
77
|
+
|
|
78
|
+
const themeMode = useLocalStorage('themeMode') || props.themeMode
|
|
79
|
+
const isDarkMode = themeMode === 'dark-theme'
|
|
80
|
+
|
|
81
|
+
let graphData = null
|
|
82
|
+
|
|
83
|
+
if (chartType === 'column' && !instanceOfSeriesLine(chart.data)) {
|
|
84
|
+
graphData = columnGraphDataFunc(chart, localization.value)
|
|
85
|
+
} else if (instanceOfSeriesLine(chart.data)) {
|
|
86
|
+
graphData = graphDataFunc(
|
|
87
|
+
chart.data,
|
|
88
|
+
isDarkMode,
|
|
89
|
+
localization.value,
|
|
90
|
+
() => {},
|
|
91
|
+
false,
|
|
92
|
+
true,
|
|
93
|
+
true,
|
|
94
|
+
props.graphType,
|
|
95
|
+
'',
|
|
96
|
+
700,
|
|
97
|
+
getCurrentChart,
|
|
98
|
+
$formattedDatetime,
|
|
99
|
+
format,
|
|
100
|
+
props.formatDate,
|
|
101
|
+
props.formatTime
|
|
102
|
+
)
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
return graphData
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
const updateHelper = ref<number>(0)
|
|
109
|
+
|
|
110
|
+
const updateGraph = (charts: Array<UI_I_GraphDataSettingItem | null>): void => {
|
|
111
|
+
allData.value = []
|
|
112
|
+
charts.forEach((chart) => {
|
|
113
|
+
if (chart && chart.data) {
|
|
114
|
+
const constructedData = getCurrentData(chart, chart.chartType)
|
|
115
|
+
if (constructedData)
|
|
116
|
+
allData.value.push({
|
|
117
|
+
title: chart.title,
|
|
118
|
+
loader: chart.loader,
|
|
119
|
+
data: constructedData,
|
|
120
|
+
chartType: 'column',
|
|
121
|
+
})
|
|
122
|
+
}
|
|
123
|
+
})
|
|
124
|
+
updateHelper.value++
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
watch(
|
|
128
|
+
() => props.chartsSettings,
|
|
129
|
+
(newValue) => {
|
|
130
|
+
updateGraph(newValue)
|
|
131
|
+
},
|
|
132
|
+
{ deep: true, immediate: true }
|
|
133
|
+
)
|
|
134
|
+
</script>
|
|
135
|
+
|
|
136
|
+
<style>
|
|
137
|
+
:root {
|
|
138
|
+
--loader-bg-color: #ffffff;
|
|
139
|
+
}
|
|
140
|
+
:root.dark-theme {
|
|
141
|
+
--loader-bg-color: #22343c;
|
|
142
|
+
}
|
|
143
|
+
</style>
|
|
144
|
+
|
|
145
|
+
<style scoped lang="scss">
|
|
146
|
+
.charts-view {
|
|
147
|
+
position: relative;
|
|
148
|
+
display: flex;
|
|
149
|
+
flex-direction: row;
|
|
150
|
+
flex-wrap: wrap;
|
|
151
|
+
justify-content: space-between;
|
|
152
|
+
overflow: auto;
|
|
153
|
+
height: 100%;
|
|
154
|
+
|
|
155
|
+
.graphic-loader-block {
|
|
156
|
+
background-color: var(--loader-bg-color);
|
|
157
|
+
height: 100%;
|
|
158
|
+
display: flex;
|
|
159
|
+
flex-direction: column;
|
|
160
|
+
align-items: center;
|
|
161
|
+
justify-content: center;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.graph-empty-block {
|
|
165
|
+
display: flex;
|
|
166
|
+
flex-direction: column;
|
|
167
|
+
height: 100%;
|
|
168
|
+
background-color: var(--loader-bg-color);
|
|
169
|
+
|
|
170
|
+
.title {
|
|
171
|
+
text-align: center;
|
|
172
|
+
font-size: 18px;
|
|
173
|
+
margin-top: 10px;
|
|
174
|
+
color: var(--global-font-color);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.body-block {
|
|
178
|
+
height: 100%;
|
|
179
|
+
display: flex;
|
|
180
|
+
justify-content: center;
|
|
181
|
+
text-align: center;
|
|
182
|
+
align-items: center;
|
|
183
|
+
color: var(--global-font-color);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.chart-container {
|
|
188
|
+
box-sizing: border-box;
|
|
189
|
+
flex-grow: 1;
|
|
190
|
+
padding: 5px;
|
|
191
|
+
min-height: 300px;
|
|
192
|
+
height: 100%;
|
|
193
|
+
min-width: 300px;
|
|
194
|
+
width: 100%;
|
|
195
|
+
position: relative;
|
|
196
|
+
|
|
197
|
+
&:first-child:last-child {
|
|
198
|
+
height: 100%;
|
|
199
|
+
width: 100%;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
&:first-child:nth-last-child(2),
|
|
203
|
+
&:nth-child(2):last-child {
|
|
204
|
+
width: 50%;
|
|
205
|
+
height: 100%;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.content-global-loading {
|
|
210
|
+
width: 100%;
|
|
211
|
+
height: 100%;
|
|
212
|
+
display: flex;
|
|
213
|
+
align-items: center;
|
|
214
|
+
justify-content: center;
|
|
215
|
+
color: var(--global-font-color);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
@media (min-width: 1280px) {
|
|
219
|
+
.charts-view .chart-container {
|
|
220
|
+
width: 50%;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
@media (min-height: 800px) {
|
|
224
|
+
.charts-view .chart-container {
|
|
225
|
+
height: 50%;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
</style>
|