bfg-common 1.3.239 → 1.3.241
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/components/common/BadBrowser.vue +16 -12
- package/components/common/accordion/Accordion.vue +1 -0
- package/components/common/accordion/Recursion.vue +2 -0
- package/components/common/accordion/lib/models/interfaces.ts +1 -0
- package/components/common/adapterManager/AddAdapterModal.vue +11 -4
- package/components/common/adapterManager/AddAdapterWarningModal.vue +1 -0
- package/components/common/adapterManager/ui/actions/AddAdapterButton.vue +2 -0
- package/components/common/adapterManager/ui/actions/MoveDownAdapterButton.vue +2 -0
- package/components/common/adapterManager/ui/actions/MoveUpAdapterButton.vue +2 -0
- package/components/common/adapterManager/ui/actions/RemoveAdapterButton.vue +2 -0
- package/components/common/adapterManager/ui/table/Adapters.vue +14 -13
- package/components/common/adapterManager/ui/table/Header.vue +6 -4
- package/components/common/adapterManager/ui/table/Table.vue +13 -4
- package/components/common/browse/Browse.vue +5 -1
- package/components/common/browse/blocks/Container.vue +3 -0
- package/components/common/browse/blocks/contents/Files.vue +1 -0
- package/components/common/context/ContextRecursion.vue +6 -1
- package/components/common/details/DetailsItem.vue +3 -0
- package/components/common/diagramMain/Header.vue +4 -0
- package/components/common/diagramMain/adapter/AdapterItem.vue +2 -0
- package/components/common/diagramMain/adapter/Contents.vue +2 -0
- package/components/common/diagramMain/lib/models/interfaces.ts +10 -0
- package/components/common/diagramMain/modals/editSettings/tabs/NetworkProperties.vue +1 -0
- package/components/common/diagramMain/modals/editSettings/tabs/Security.vue +13 -27
- package/components/common/diagramMain/modals/editSettings/tabs/SwitchProperties.vue +1 -0
- package/components/common/diagramMain/modals/editSettings/tabs/TeamingFailover.vue +3 -0
- package/components/common/diagramMain/modals/editSettings/tabs/TrafficShaping.vue +8 -0
- package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +6 -0
- package/components/common/diagramMain/modals/editSettings/tabs/port/PortProperties.vue +2 -0
- package/components/common/diagramMain/modals/lib/config/networkModal.ts +4 -0
- package/components/common/diagramMain/modals/lib/config/portModal.ts +7 -2
- package/components/common/diagramMain/modals/lib/mappers/mappers.ts +36 -0
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/ConnectionSettings.vue +19 -13
- package/components/common/diagramMain/modals/remove/RemoveModal.vue +5 -0
- package/components/common/diagramMain/modals/viewSettings/ViewSettings.vue +11 -7
- package/components/common/diagramMain/network/Contents.vue +5 -4
- package/components/common/diagramMain/port/Port.vue +1 -0
- package/components/common/feedback/Buttons.vue +2 -0
- package/components/common/feedback/Feedback.vue +9 -2
- package/components/common/feedback/Message.vue +9 -0
- package/components/common/feedback/VisitPortal.vue +11 -2
- package/components/common/help/navbar/left/Left.vue +1 -0
- package/components/common/help/navbar/right/Right.vue +12 -2
- package/components/common/help/navbar/right/lib/models/interfaces.ts +1 -0
- package/components/common/home/alertsTable/AlertsTable.vue +1 -0
- package/components/common/modals/Confirmation.vue +10 -2
- package/components/common/modals/Rename.vue +1 -0
- package/components/common/monitor/advanced/tools/Tools.vue +10 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/Actions.vue +7 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/saveOptionsModal/SaveOptionsModal.vue +6 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/form/Form.vue +14 -1
- package/components/common/monitor/overview/filters/Filters.vue +12 -5
- package/components/common/monitor/overview/filters/customIntervalModal/CustomIntervalModal.vue +4 -0
- package/components/common/pages/Tasks.vue +120 -120
- package/components/common/perPage/PerPage.vue +1 -0
- package/components/common/recursionTree/RecursionTree.vue +205 -203
- package/components/common/recursionTree/lib/models/interfaces.ts +4 -2
- package/components/common/select/button/ButtonDropdown.vue +2 -0
- package/components/common/select/button/lib/models/interfaces.ts +1 -0
- package/components/common/select/input/Input.vue +1 -0
- package/components/common/select/radio/RadioGroup.vue +2 -0
- package/components/common/select/radio/lib/models/interfaces.ts +1 -0
- package/components/common/shortcuts/Block.vue +2 -0
- package/components/common/shortcuts/Category.vue +1 -0
- package/components/common/shortcuts/lib/models/interfaces.ts +1 -0
- package/components/common/spiceConsole/Drawer.vue +4 -0
- package/components/common/spiceConsole/keyboard/Keyboard.vue +1 -0
- package/components/common/spiceConsole/keyboard/lib/config/keyboardRows.ts +81 -6
- package/components/common/spiceConsole/keyboard/lib/models/interfaces.ts +1 -0
- package/components/common/split/horizontal/Horizontal.vue +1 -0
- package/components/common/vm/actions/add/Add.vue +576 -575
- package/components/common/vm/actions/clone/select/options/Options.vue +9 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/Bus.vue +5 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDrive.vue +7 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +2 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CoresPerSocket.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuHotPlug.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuModel.vue +225 -220
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Hv.vue +2 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Iommu.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Pc.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Sa.vue +2 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/Shares.vue +5 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/tooltip/Tooltip.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/limit/Limit.vue +2 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/Memory.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/MemoryHotPlug.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/Location.vue +6 -6
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +5 -6
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/cache/Cache.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/limitIops/LimitIops.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/mode/Mode.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/provisioning/Provisioning.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/sharing/Sharing.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/Location.vue +2 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetwork.vue +295 -294
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/adapterType/AdapterType.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddress.vue +12 -4
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIo.vue +5 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGrid.vue +2 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/typeSelection/TypeSelection.vue +2 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbController.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/reservation/Reservation.vue +3 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/Graphics.vue +6 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/TotalVideoMemory.vue +2 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCard.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/model/Model.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/numberDisplays/NumberDisplays.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/Menu.vue +6 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/Secure.vue +6 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/delay/Delay.vue +5 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/Firmware.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +5 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/lib/models/interfaces.ts +1 -0
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptions.vue +4 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/CopyPaste.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/FileTransfer.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/FolderSharing.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/PlaybackCompression.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/PowerControl.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/imgCompression/ImgCompression.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/jpegCompression/JpegCompression.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +2 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/mouseMode/MouseMode.vue +6 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/Password.vue +7 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/sharePolicy/SharePolicy.vue +5 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/streamingMode/StreamingMode.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/type/Type.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirection.vue +2 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/zlibCompression/ZlibCompression.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/vmoptions/tools/Tools.vue +6 -1
- package/components/common/vm/actions/common/select/compatibility/Compatibility.vue +31 -27
- package/components/common/vm/actions/common/select/name/Name.vue +7 -1
- package/components/common/vm/actions/common/select/os/os.vue +7 -1
- package/components/common/weekSelect/WeekSelect.vue +143 -112
- package/components/common/weekSelect/lib/models/interfaces.ts +1 -0
- package/components/common/wizards/datastore/add/local/createName/CreateName.vue +1 -0
- package/components/common/wizards/datastore/add/nfs/accessibility/Accessibility.vue +8 -7
- package/components/common/wizards/datastore/add/nfs/configuration/Configuration.vue +9 -1
- package/components/common/wizards/datastore/add/nfs/configuration/serversList/DeletePopover.vue +6 -3
- package/components/common/wizards/datastore/add/nfs/kerberosAuthentication/KerberosAuthentication.vue +1 -0
- package/components/common/wizards/datastore/add/nfs/kerberosAuthentication/lib/config/radioOptions.ts +3 -0
- package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/DeviceSelection.vue +2 -0
- package/components/common/wizards/datastore/add/sharedStorm/partitionConfiguration/PartitionConfiguration.vue +2 -0
- package/components/common/wizards/datastore/add/types/Types.vue +1 -0
- package/components/common/wizards/network/add/modals/SelectNetwork.vue +16 -3
- package/components/common/wizards/network/add/modals/SelectStandardSwitch.vue +10 -2
- package/components/common/wizards/network/add/modals/SelectSwitch.vue +10 -2
- package/components/common/wizards/network/add/steps/ConnectionSettings.vue +5 -1
- package/components/common/wizards/network/add/steps/IpFourSettings.vue +12 -2
- package/components/common/wizards/network/add/steps/PortProperties.vue +16 -3
- package/components/common/wizards/network/add/steps/SelectConnectionType.vue +6 -3
- package/components/common/wizards/network/add/steps/SelectedTargetDevice.vue +11 -0
- package/components/common/wizards/vm/common/tooltip/Tooltip.vue +2 -0
- package/components/common/wizards/vm/migrate/select/network/Network.vue +1 -0
- package/components/common/wizards/vm/migrate/select/network/table/network/Network.vue +1 -0
- package/components/common/wizards/vm/migrate/select/storage/Storage.vue +5 -1
- package/components/common/wizards/vm/migrate/select/storage/configure/disk/Disk.vue +1 -0
- package/components/common/wizards/vm/migrate/select/storage/diskFormat/DiskFormat.vue +1 -0
- package/components/common/wizards/vm/migrate/select/storage/policy/Policy.vue +1 -0
- package/components/common/wizards/vm/migrate/select/storage/selectedPerDisk/SelectedPerDisk.vue +1 -0
- package/components/common/wizards/vm/migrate/select/targetServer/new/New.vue +9 -1
- package/package.json +1 -1
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
<select
|
|
19
19
|
id="periodSelect"
|
|
20
20
|
v-model="selectedPeriod"
|
|
21
|
+
data-id="period-select"
|
|
21
22
|
:disabled="props.disabledPeriod"
|
|
22
23
|
@change="onChangePeriod"
|
|
23
24
|
>
|
|
@@ -33,6 +34,7 @@
|
|
|
33
34
|
<a
|
|
34
35
|
id="chart-options-button"
|
|
35
36
|
class="chart-options-button"
|
|
37
|
+
data-id="show-chart-options-button"
|
|
36
38
|
@click="onShowChartOptions"
|
|
37
39
|
>{{ localization.chartOptions }}</a
|
|
38
40
|
>
|
|
@@ -45,6 +47,7 @@
|
|
|
45
47
|
<select
|
|
46
48
|
id="viewSelect"
|
|
47
49
|
v-model="selectedView"
|
|
50
|
+
data-id="view-select"
|
|
48
51
|
:disabled="props.disabledView"
|
|
49
52
|
@change="onChangeView"
|
|
50
53
|
>
|
|
@@ -63,6 +66,7 @@
|
|
|
63
66
|
<li class="menu-item">
|
|
64
67
|
<a
|
|
65
68
|
id="advanced-page-link"
|
|
69
|
+
data-id="advanced-page-button"
|
|
66
70
|
class="item-link"
|
|
67
71
|
@click="onOpenAdvancedPage"
|
|
68
72
|
>
|
|
@@ -72,7 +76,12 @@
|
|
|
72
76
|
<li class="menu-item">
|
|
73
77
|
<atoms-dropdown :drop-menu="exportMenu" @select="onExportMenuItem">
|
|
74
78
|
<template #icon>
|
|
75
|
-
<a
|
|
79
|
+
<a
|
|
80
|
+
id="export-link"
|
|
81
|
+
data-id="export-link"
|
|
82
|
+
href="#"
|
|
83
|
+
class="item-link"
|
|
84
|
+
>
|
|
76
85
|
<span class="vx-icon-export icon"></span>
|
|
77
86
|
</a>
|
|
78
87
|
</template>
|
|
@@ -5,7 +5,11 @@
|
|
|
5
5
|
>{{ localization.chartOptions }}:</label
|
|
6
6
|
>
|
|
7
7
|
<div class="select">
|
|
8
|
-
<select
|
|
8
|
+
<select
|
|
9
|
+
id="chartOptionsSelect"
|
|
10
|
+
v-model="localSelectedChartOption"
|
|
11
|
+
data-id="chart-options-select"
|
|
12
|
+
>
|
|
9
13
|
<option
|
|
10
14
|
v-for="item in chartOptions"
|
|
11
15
|
:key="item.value"
|
|
@@ -19,6 +23,7 @@
|
|
|
19
23
|
<div>
|
|
20
24
|
<button
|
|
21
25
|
class="btn chart-options-save-button"
|
|
26
|
+
data-id="chart-options-save-button"
|
|
22
27
|
@click="onShowSaveOptionsModal"
|
|
23
28
|
>
|
|
24
29
|
{{ localization.saveOptionsAs }}...
|
|
@@ -31,6 +36,7 @@
|
|
|
31
36
|
<button
|
|
32
37
|
class="btn chart-options-delete-button"
|
|
33
38
|
:disabled="!disabledDeleteAction"
|
|
39
|
+
data-id="chart-options-delete-button"
|
|
34
40
|
@click="onDeleteAction"
|
|
35
41
|
>
|
|
36
42
|
{{ localization.deleteOptions }}
|
|
@@ -16,7 +16,12 @@
|
|
|
16
16
|
<label class="save-option-name-label" for="chartOptionsName"
|
|
17
17
|
>{{ localization.chartOptionsName }}:</label
|
|
18
18
|
>
|
|
19
|
-
<input
|
|
19
|
+
<input
|
|
20
|
+
id="chartOptionsName"
|
|
21
|
+
v-model="name"
|
|
22
|
+
data-id="chart-options-name"
|
|
23
|
+
type="text"
|
|
24
|
+
/>
|
|
20
25
|
</div>
|
|
21
26
|
</template>
|
|
22
27
|
</atoms-modal>
|
package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/form/Form.vue
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
<select
|
|
13
13
|
id="chart-timespan-type-select"
|
|
14
14
|
v-model="localSelectedTimespan"
|
|
15
|
+
data-id="chart-timespan-type-select"
|
|
15
16
|
>
|
|
16
17
|
<option
|
|
17
18
|
v-for="(item, index) in timespanOptions"
|
|
@@ -37,6 +38,7 @@
|
|
|
37
38
|
<input
|
|
38
39
|
id="custom-time-lastInput"
|
|
39
40
|
v-model="localPeriodType"
|
|
41
|
+
data-id="custom-time-lastInput"
|
|
40
42
|
type="radio"
|
|
41
43
|
value="last"
|
|
42
44
|
class="custom-radio-button"
|
|
@@ -58,6 +60,7 @@
|
|
|
58
60
|
<input
|
|
59
61
|
id="chart-option-setting-row"
|
|
60
62
|
v-model="localLast"
|
|
63
|
+
data-id="chart-option-setting-row"
|
|
61
64
|
type="number"
|
|
62
65
|
class="chart-option-setting-row custom-time-input"
|
|
63
66
|
/>
|
|
@@ -71,6 +74,7 @@
|
|
|
71
74
|
<select
|
|
72
75
|
id="chart-timespan-type-select"
|
|
73
76
|
v-model="localSelectedCustomTime"
|
|
77
|
+
data-id="chart-timespan-type-select"
|
|
74
78
|
>
|
|
75
79
|
<option
|
|
76
80
|
v-for="(item, index) in customTimeOptions"
|
|
@@ -91,6 +95,7 @@
|
|
|
91
95
|
<input
|
|
92
96
|
id="custom-time-fromInput"
|
|
93
97
|
v-model="localPeriodType"
|
|
98
|
+
data-id="custom-time-from-input"
|
|
94
99
|
type="radio"
|
|
95
100
|
value="period"
|
|
96
101
|
class="custom-radio-button"
|
|
@@ -112,6 +117,7 @@
|
|
|
112
117
|
<input
|
|
113
118
|
id="current-date-from"
|
|
114
119
|
v-model.lazy="localCurrentDateFrom"
|
|
120
|
+
data-id="current-date-from-input"
|
|
115
121
|
type="text"
|
|
116
122
|
class="chart-option-setting-row custom-time-input first-from"
|
|
117
123
|
/>
|
|
@@ -126,6 +132,7 @@
|
|
|
126
132
|
<input
|
|
127
133
|
id="current-time-from"
|
|
128
134
|
v-model="currentTimeFrom"
|
|
135
|
+
data-id="current-time-from-input"
|
|
129
136
|
type="text"
|
|
130
137
|
class="chart-option-setting-row custom-time-input"
|
|
131
138
|
/>
|
|
@@ -146,6 +153,7 @@
|
|
|
146
153
|
<input
|
|
147
154
|
id="current-date-to"
|
|
148
155
|
v-model.lazy="currentDateTo"
|
|
156
|
+
data-id="current-date-to-input"
|
|
149
157
|
type="text"
|
|
150
158
|
class="chart-option-setting-row custom-time-input first-to"
|
|
151
159
|
/>
|
|
@@ -160,6 +168,7 @@
|
|
|
160
168
|
<input
|
|
161
169
|
id="current-time-to"
|
|
162
170
|
v-model="currentTimeTo"
|
|
171
|
+
data-id="current-time-to-input"
|
|
163
172
|
type="text"
|
|
164
173
|
class="chart-option-setting-row custom-time-input"
|
|
165
174
|
/>
|
|
@@ -188,7 +197,11 @@
|
|
|
188
197
|
>{{ localization.chartType }}:</label
|
|
189
198
|
>
|
|
190
199
|
<div class="select">
|
|
191
|
-
<select
|
|
200
|
+
<select
|
|
201
|
+
id="chart-type-select"
|
|
202
|
+
v-model="chartType"
|
|
203
|
+
data-id="chart-type-select"
|
|
204
|
+
>
|
|
192
205
|
<option
|
|
193
206
|
v-for="(item, index) in chartTypeOptions"
|
|
194
207
|
:key="index"
|
|
@@ -5,7 +5,11 @@
|
|
|
5
5
|
>{{ localization.period }}:</label
|
|
6
6
|
>
|
|
7
7
|
<div v-if="!disabledPeriodOptions" class="select">
|
|
8
|
-
<select
|
|
8
|
+
<select
|
|
9
|
+
id="periodSelect"
|
|
10
|
+
v-model="selectedPeriod"
|
|
11
|
+
data-id="period-select"
|
|
12
|
+
>
|
|
9
13
|
<option
|
|
10
14
|
v-for="(item, index) in periodOptions"
|
|
11
15
|
:key="index"
|
|
@@ -18,9 +22,12 @@
|
|
|
18
22
|
<span v-else class="single-option">{{ periodOptions[0].text }}</span>
|
|
19
23
|
</div>
|
|
20
24
|
<div v-show="isShowCustomIntervalButton">
|
|
21
|
-
<a
|
|
22
|
-
|
|
23
|
-
|
|
25
|
+
<a
|
|
26
|
+
id="show-interval-modal-button"
|
|
27
|
+
data-id="show-interval-modal-button"
|
|
28
|
+
@click="onShowIntervalModal"
|
|
29
|
+
>{{ localization.changeCustomInterval }}</a
|
|
30
|
+
>
|
|
24
31
|
</div>
|
|
25
32
|
<div v-if="!disabledPeriodOptions" class="chart-title">
|
|
26
33
|
{{ chartTitleDate }}
|
|
@@ -30,7 +37,7 @@
|
|
|
30
37
|
>{{ localization.view }}:</label
|
|
31
38
|
>
|
|
32
39
|
<div class="select">
|
|
33
|
-
<select id="viewSelect" v-model="selectedView">
|
|
40
|
+
<select id="viewSelect" v-model="selectedView" data-id="view-select">
|
|
34
41
|
<option
|
|
35
42
|
v-for="(item, index) in viewOptions"
|
|
36
43
|
:key="index"
|
package/components/common/monitor/overview/filters/customIntervalModal/CustomIntervalModal.vue
CHANGED
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
<input
|
|
34
34
|
id="current-date-from"
|
|
35
35
|
v-model.lazy="currentDateFrom"
|
|
36
|
+
data-id="current-date-from-input"
|
|
36
37
|
type="text"
|
|
37
38
|
class="chart-option-setting-row custom-time-input first-from"
|
|
38
39
|
/>
|
|
@@ -48,6 +49,7 @@
|
|
|
48
49
|
<input
|
|
49
50
|
id="current-time-from"
|
|
50
51
|
v-model="currentTimeFrom"
|
|
52
|
+
data-id="current-time-from-input"
|
|
51
53
|
type="text"
|
|
52
54
|
class="chart-option-setting-row custom-time-input"
|
|
53
55
|
/>
|
|
@@ -67,6 +69,7 @@
|
|
|
67
69
|
<input
|
|
68
70
|
id="current-date-to"
|
|
69
71
|
v-model.lazy="currentDateTo"
|
|
72
|
+
data-id="current-date-to-input"
|
|
70
73
|
type="text"
|
|
71
74
|
class="chart-option-setting-row custom-time-input first-from"
|
|
72
75
|
/>
|
|
@@ -82,6 +85,7 @@
|
|
|
82
85
|
<input
|
|
83
86
|
id="current-time-to"
|
|
84
87
|
v-model="currentTimeTo"
|
|
88
|
+
data-id="current-time-to-input"
|
|
85
89
|
type="text"
|
|
86
90
|
class="chart-option-setting-row custom-time-input"
|
|
87
91
|
/>
|
|
@@ -1,120 +1,120 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="tasks">
|
|
3
|
-
<common-headline
|
|
4
|
-
:headline="localization.taskConsole"
|
|
5
|
-
class="tasks__headline"
|
|
6
|
-
/>
|
|
7
|
-
|
|
8
|
-
<div class="btn-group">
|
|
9
|
-
<button
|
|
10
|
-
id="task-previous-button"
|
|
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
|
-
} from '~/lib/models/interfaces'
|
|
44
|
-
import type {
|
|
45
|
-
UI_I_Pagination,
|
|
46
|
-
UI_I_DataTableQuery,
|
|
47
|
-
} from '~/lib/models/table/interfaces'
|
|
48
|
-
import type { UI_I_Task } from '~/lib/models/store/tasks/interfaces'
|
|
49
|
-
|
|
50
|
-
definePageMeta({
|
|
51
|
-
middleware: ['auth'],
|
|
52
|
-
})
|
|
53
|
-
|
|
54
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
55
|
-
const { $store }: any = useNuxtApp()
|
|
56
|
-
|
|
57
|
-
const pagination = ref<UI_I_Pagination>({
|
|
58
|
-
page: 1,
|
|
59
|
-
pageSize: 100,
|
|
60
|
-
})
|
|
61
|
-
const sort = ref<string | null>(null)
|
|
62
|
-
|
|
63
|
-
const tasksList = computed<UI_I_Task>(() => $store.getters['tasks/getTaskList'])
|
|
64
|
-
|
|
65
|
-
const onClickButton = (status: string): void => {
|
|
66
|
-
if (status === 'next') {
|
|
67
|
-
pagination.value.page += 1
|
|
68
|
-
return
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
pagination.value.page -= 1
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
const getTasks = async (): Promise<void> => {
|
|
75
|
-
pauseGlobalRefresh()
|
|
76
|
-
|
|
77
|
-
const payload: UI_I_DataTableQuery = {
|
|
78
|
-
...pagination.value,
|
|
79
|
-
sortBy: sort.value || '',
|
|
80
|
-
}
|
|
81
|
-
await $store.dispatch('tasks/A_GET_TASKS', payload)
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
const onUpdatePagination = (event: UI_I_Pagination): void => {
|
|
85
|
-
pagination.value = event
|
|
86
|
-
getTasks()
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
const onSortTable = (event: string): void => {
|
|
90
|
-
sort.value = event
|
|
91
|
-
getTasks()
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
const isLoading = computed<boolean>(() =>
|
|
95
|
-
$store.getters['tasks/getLoading']('tasks')
|
|
96
|
-
)
|
|
97
|
-
const pauseGlobalRefresh = (): void => {
|
|
98
|
-
const tasksLastRequestType = $store.getters['tasks/getTasksLastRequestType']
|
|
99
|
-
$store.dispatch('main/A_PAUSE_GLOBAL_REFRESH', tasksLastRequestType)
|
|
100
|
-
}
|
|
101
|
-
onUnmounted(() => {
|
|
102
|
-
pauseGlobalRefresh()
|
|
103
|
-
})
|
|
104
|
-
</script>
|
|
105
|
-
|
|
106
|
-
<style lang="scss">
|
|
107
|
-
@import '~/node_modules/bfg-common/assets/scss/common/mixins';
|
|
108
|
-
.tasks {
|
|
109
|
-
@include flex($dir: column);
|
|
110
|
-
height: 100%;
|
|
111
|
-
padding-left: 10px;
|
|
112
|
-
&__headline {
|
|
113
|
-
padding-left: 10px;
|
|
114
|
-
margin-bottom: 0.6rem;
|
|
115
|
-
}
|
|
116
|
-
.btn {
|
|
117
|
-
text-transform: uppercase;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="tasks">
|
|
3
|
+
<common-headline
|
|
4
|
+
:headline="localization.taskConsole"
|
|
5
|
+
class="tasks__headline"
|
|
6
|
+
/>
|
|
7
|
+
|
|
8
|
+
<div class="btn-group">
|
|
9
|
+
<button
|
|
10
|
+
id="task-previous-button"
|
|
11
|
+
data-id="task-previous-button"
|
|
12
|
+
class="btn btn-sm btn-link nav-link"
|
|
13
|
+
:disabled="pagination.page === 1"
|
|
14
|
+
@click="onClickButton('previous')"
|
|
15
|
+
>
|
|
16
|
+
{{ localization.previous }}
|
|
17
|
+
</button>
|
|
18
|
+
|
|
19
|
+
<button
|
|
20
|
+
id="task-next-button"
|
|
21
|
+
data-id="task-next-button"
|
|
22
|
+
class="btn btn-sm btn-link nav-link"
|
|
23
|
+
:disabled="pagination.page === tasksList?.total_pages"
|
|
24
|
+
@click="onClickButton('next')"
|
|
25
|
+
>
|
|
26
|
+
{{ localization.next }}
|
|
27
|
+
</button>
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
<templates-tasks-table-view
|
|
31
|
+
:data-table="tasksList?.items || []"
|
|
32
|
+
:total-items="tasksList?.total_items || 0"
|
|
33
|
+
:total-pages="tasksList?.total_pages || 1"
|
|
34
|
+
:pagination="pagination"
|
|
35
|
+
:loading="isLoading"
|
|
36
|
+
@pagination="onUpdatePagination"
|
|
37
|
+
@sort="onSortTable"
|
|
38
|
+
/>
|
|
39
|
+
</div>
|
|
40
|
+
</template>
|
|
41
|
+
|
|
42
|
+
<script lang="ts" setup>
|
|
43
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
44
|
+
import type {
|
|
45
|
+
UI_I_Pagination,
|
|
46
|
+
UI_I_DataTableQuery,
|
|
47
|
+
} from '~/lib/models/table/interfaces'
|
|
48
|
+
import type { UI_I_Task } from '~/lib/models/store/tasks/interfaces'
|
|
49
|
+
|
|
50
|
+
definePageMeta({
|
|
51
|
+
middleware: ['auth'],
|
|
52
|
+
})
|
|
53
|
+
|
|
54
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
55
|
+
const { $store }: any = useNuxtApp()
|
|
56
|
+
|
|
57
|
+
const pagination = ref<UI_I_Pagination>({
|
|
58
|
+
page: 1,
|
|
59
|
+
pageSize: 100,
|
|
60
|
+
})
|
|
61
|
+
const sort = ref<string | null>(null)
|
|
62
|
+
|
|
63
|
+
const tasksList = computed<UI_I_Task>(() => $store.getters['tasks/getTaskList'])
|
|
64
|
+
|
|
65
|
+
const onClickButton = (status: string): void => {
|
|
66
|
+
if (status === 'next') {
|
|
67
|
+
pagination.value.page += 1
|
|
68
|
+
return
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
pagination.value.page -= 1
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
const getTasks = async (): Promise<void> => {
|
|
75
|
+
pauseGlobalRefresh()
|
|
76
|
+
|
|
77
|
+
const payload: UI_I_DataTableQuery = {
|
|
78
|
+
...pagination.value,
|
|
79
|
+
sortBy: sort.value || '',
|
|
80
|
+
}
|
|
81
|
+
await $store.dispatch('tasks/A_GET_TASKS', payload)
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
const onUpdatePagination = (event: UI_I_Pagination): void => {
|
|
85
|
+
pagination.value = event
|
|
86
|
+
getTasks()
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
const onSortTable = (event: string): void => {
|
|
90
|
+
sort.value = event
|
|
91
|
+
getTasks()
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
const isLoading = computed<boolean>(() =>
|
|
95
|
+
$store.getters['tasks/getLoading']('tasks')
|
|
96
|
+
)
|
|
97
|
+
const pauseGlobalRefresh = (): void => {
|
|
98
|
+
const tasksLastRequestType = $store.getters['tasks/getTasksLastRequestType']
|
|
99
|
+
$store.dispatch('main/A_PAUSE_GLOBAL_REFRESH', tasksLastRequestType)
|
|
100
|
+
}
|
|
101
|
+
onUnmounted(() => {
|
|
102
|
+
pauseGlobalRefresh()
|
|
103
|
+
})
|
|
104
|
+
</script>
|
|
105
|
+
|
|
106
|
+
<style lang="scss">
|
|
107
|
+
@import '~/node_modules/bfg-common/assets/scss/common/mixins';
|
|
108
|
+
.tasks {
|
|
109
|
+
@include flex($dir: column);
|
|
110
|
+
height: 100%;
|
|
111
|
+
padding-left: 10px;
|
|
112
|
+
&__headline {
|
|
113
|
+
padding-left: 10px;
|
|
114
|
+
margin-bottom: 0.6rem;
|
|
115
|
+
}
|
|
116
|
+
.btn {
|
|
117
|
+
text-transform: uppercase;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
</style>
|